// ==UserScript==
// @name bilibili-app-recommend
// @namespace https://magicdawn.fun
// @version 0.11.4
// @author magicdawn
// @description 为B站首页添加像App一样的推荐
// @license MIT
// @homepageURL https://gf.qytechs.cn/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/[email protected]/dist/axios.min.js
// @require https://unpkg.com/[email protected]/dist/axiosGmxhrAdapter.min.js
// @require https://unpkg.com/[email protected]/umd/react.production.min.js
// @require https://unpkg.com/[email protected]/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
// ==/UserScript==
(e=>{const i=document.createElement("style");i.dataset.source="vite-plugin-monkey",i.textContent=e,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}._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, Ji, uh, _w) {
'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 Ji__namespace = /*#__PURE__*/_interopNamespaceDefault(Ji);
var mw=Object.defineProperty;var gw=(e,t,n)=>t in e?mw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var bw=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ot=(e,t,n)=>(gw(e,typeof t!="symbol"?t+"":t,n),n),Ru=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var k=(e,t,n)=>(Ru(e,t,"read from private field"),n?n.call(e):t.get(e)),ft=(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);},Xe=(e,t,n,r)=>(Ru(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Js=(e,t,n,r)=>({set _(o){Xe(e,t,o,n);},get _(){return k(e,t,r)}}),Fe=(e,t,n)=>(Ru(e,t,"access private method"),n);var EB=bw((lo,co)=>{var lb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rw(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 cb={exports:{}},Sc={};/**
* @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 Mw=f,Tw=Symbol.for("react.element"),Iw=Symbol.for("react.fragment"),Nw=Object.prototype.hasOwnProperty,Aw=Mw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Dw={key:!0,ref:!0,__self:!0,__source:!0};function ub(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)Nw.call(t,r)&&!Dw.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:Tw,type:e,key:i,ref:a,props:o,_owner:Aw.current}}Sc.Fragment=Iw;Sc.jsx=ub;Sc.jsxs=ub;cb.exports=Sc;var rs=cb.exports;function kw(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Lw(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Fw=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o);},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag);},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Lw(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=kw(o);try{i.insertRule(r,i.cssRules.length);}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++;},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0;},e}(),$n="-ms-",Ul="-moz-",Pt="-webkit-",db="comm",dh="rule",fh="decl",zw="@import",fb="@keyframes",jw="@layer",Hw=Math.abs,wc=String.fromCharCode,Bw=Object.assign;function Ww(e,t){return bn(e,0)^45?(((t<<2^bn(e,0))<<2^bn(e,1))<<2^bn(e,2))<<2^bn(e,3):0}function hb(e){return e.trim()}function Vw(e,t){return (e=t.exec(e))?e[0]:e}function _t(e,t,n){return e.replace(t,n)}function zd(e,t){return e.indexOf(t)}function bn(e,t){return e.charCodeAt(t)|0}function os(e,t,n){return e.slice(t,n)}function kr(e){return e.length}function hh(e){return e.length}function el(e,t){return t.push(e),e}function Uw(e,t){return e.map(t).join("")}var xc=1,ea=1,vb=0,Dn=0,rn=0,da="";function $c(e,t,n,r,o,i,a){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:xc,column:ea,length:a,return:""}}function Ca(e,t){return Bw($c("",null,null,"",null,null,0),e,{length:-e.length},t)}function Gw(){return rn}function Kw(){return rn=Dn>0?bn(da,--Dn):0,ea--,rn===10&&(ea=1,xc--),rn}function qn(){return rn=Dn<vb?bn(da,Dn++):0,ea++,rn===10&&(ea=1,xc++),rn}function jr(){return bn(da,Dn)}function xl(){return Dn}function Os(e,t){return os(da,e,t)}function is(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function pb(e){return xc=ea=1,vb=kr(da=e),Dn=0,[]}function mb(e){return da="",e}function $l(e){return hb(Os(Dn-1,jd(e===91?e+2:e===40?e+1:e)))}function Xw(e){for(;(rn=jr())&&rn<33;)qn();return is(e)>2||is(rn)>3?"":" "}function qw(e,t){for(;--t&&qn()&&!(rn<48||rn>102||rn>57&&rn<65||rn>70&&rn<97););return Os(e,xl()+(t<6&&jr()==32&&qn()==32))}function jd(e){for(;qn();)switch(rn){case e:return Dn;case 34:case 39:e!==34&&e!==39&&jd(rn);break;case 40:e===41&&jd(e);break;case 92:qn();break}return Dn}function Yw(e,t){for(;qn()&&e+rn!==47+10;)if(e+rn===42+42&&jr()===47)break;return "/*"+Os(t,Dn-1)+"*"+wc(e===47?e:qn())}function Zw(e){for(;!is(jr());)qn();return Os(e,Dn)}function gb(e){return mb(El("",null,null,null,[""],e=pb(e),0,[0],e))}function El(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,S="",$=o,w=i,C=r,x=S;g;)switch(p=y,y=qn()){case 40:if(p!=108&&bn(x,d-1)==58){zd(x+=_t($l(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:x+=$l(y);break;case 9:case 10:case 13:case 32:x+=Xw(p);break;case 92:x+=qw(xl()-1,7);continue;case 47:switch(jr()){case 42:case 47:el(Qw(Yw(qn(),xl()),t,n),l);break;default:x+="/";}break;case 123*m:s[c++]=kr(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&&kr(x)-d&&el(v>32?tp(x+";",r,n,d-1):tp(_t(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(el(C=ep(x,t,n,c,u,o,s,S,$=[],w=[],d),i),y===123)if(u===0)El(x,t,C,C,$,i,d,s,w);else switch(h===99&&bn(x,3)===110?100:h){case 100:case 108:case 109:case 115:El(e,C,C,r&&el(ep(e,C,C,0,0,o,s,S,o,$=[],d),w),o,w,d,s,r?$:w);break;default:El(x,C,C,C,[""],w,0,s,w);}}c=u=v=0,m=b=1,S=x="",d=a;break;case 58:d=1+kr(x),v=p;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&Kw()==125)continue}switch(x+=wc(y),y*m){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(kr(x)-1)*b,b=1;break;case 64:jr()===45&&(x+=$l(qn())),h=jr(),u=d=kr(S=x+=Zw(xl())),y++;break;case 45:p===45&&kr(x)==2&&(m=0);}}return i}function ep(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,h=o===0?i:[""],v=hh(h),p=0,m=0,g=0;p<r;++p)for(var b=0,y=os(e,d+1,d=Hw(m=a[p])),S=e;b<v;++b)(S=hb(m>0?h[b]+" "+y:_t(y,/&\f/g,h[b])))&&(l[g++]=S);return $c(e,t,n,o===0?dh:s,l,c,u)}function Qw(e,t,n){return $c(e,t,n,db,wc(Gw()),os(e,2,-2),0)}function tp(e,t,n,r){return $c(e,t,n,fh,os(e,0,r),os(e,r+1,-1),r)}function ai(e,t){for(var n="",r=hh(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function bb(e,t,n,r){switch(e.type){case jw:if(e.children.length)break;case zw:case fh:return e.return=e.return||e.value;case db:return "";case fb:return e.return=e.value+"{"+ai(e.children,r)+"}";case dh:e.value=e.props.join(",");}return kr(n=ai(e.children,r))?e.return=e.value+"{"+n+"}":""}function Jw(e){var t=hh(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function ex(e){return function(t){t.root||(t=t.return)&&e(t);}}function tx(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var nx=function(t,n,r){for(var o=0,i=0;o=i,i=jr(),o===38&&i===12&&(n[r]=1),!is(i);)qn();return Os(t,Dn)},rx=function(t,n){var r=-1,o=44;do switch(is(o)){case 0:o===38&&jr()===12&&(n[r]=1),t[r]+=nx(Dn-1,n,r);break;case 2:t[r]+=$l(o);break;case 4:if(o===44){t[++r]=jr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=wc(o);}while(o=qn());return t},ox=function(t,n){return mb(rx(pb(t),n))},np=new WeakMap,ix=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!np.get(r))&&!o){np.set(t,!0);for(var i=[],a=ox(n,i),s=r.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l];}}},ax=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function yb(e,t){switch(Ww(e,t)){case 5103:return Pt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Pt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pt+e+Ul+e+$n+e+e;case 6828:case 4268:return Pt+e+$n+e+e;case 6165:return Pt+e+$n+"flex-"+e+e;case 5187:return Pt+e+_t(e,/(\w+).+(:[^]+)/,Pt+"box-$1$2"+$n+"flex-$1$2")+e;case 5443:return Pt+e+$n+"flex-item-"+_t(e,/flex-|-self/,"")+e;case 4675:return Pt+e+$n+"flex-line-pack"+_t(e,/align-content|flex-|-self/,"")+e;case 5548:return Pt+e+$n+_t(e,"shrink","negative")+e;case 5292:return Pt+e+$n+_t(e,"basis","preferred-size")+e;case 6060:return Pt+"box-"+_t(e,"-grow","")+Pt+e+$n+_t(e,"grow","positive")+e;case 4554:return Pt+_t(e,/([^-])(transform)/g,"$1"+Pt+"$2")+e;case 6187:return _t(_t(_t(e,/(zoom-|grab)/,Pt+"$1"),/(image-set)/,Pt+"$1"),e,"")+e;case 5495:case 3959:return _t(e,/(image-set\([^]*)/,Pt+"$1$`$1");case 4968:return _t(_t(e,/(.+:)(flex-)?(.*)/,Pt+"box-pack:$3"+$n+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pt+e+e;case 4095:case 3583:case 4068:case 2532:return _t(e,/(.+)-inline(.+)/,Pt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kr(e)-1-t>6)switch(bn(e,t+1)){case 109:if(bn(e,t+4)!==45)break;case 102:return _t(e,/(.+:)(.+)-([^]+)/,"$1"+Pt+"$2-$3$1"+Ul+(bn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~zd(e,"stretch")?yb(_t(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(bn(e,t+1)!==115)break;case 6444:switch(bn(e,kr(e)-3-(~zd(e,"!important")&&10))){case 107:return _t(e,":",":"+Pt)+e;case 101:return _t(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Pt+(bn(e,14)===45?"inline-":"")+"box$3$1"+Pt+"$2$3$1"+$n+"$2box$3")+e}break;case 5936:switch(bn(e,t+11)){case 114:return Pt+e+$n+_t(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pt+e+$n+_t(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pt+e+$n+_t(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Pt+e+$n+e+e}return e}var sx=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case fh:t.return=yb(t.value,t.length);break;case fb:return ai([Ca(t,{value:_t(t.value,"@","@"+Pt)})],o);case dh:if(t.length)return Uw(t.props,function(i){switch(Vw(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ai([Ca(t,{props:[_t(i,/:(read-\w+)/,":"+Ul+"$1")]})],o);case"::placeholder":return ai([Ca(t,{props:[_t(i,/:(plac\w+)/,":"+Pt+"input-$1")]}),Ca(t,{props:[_t(i,/:(plac\w+)/,":"+Ul+"$1")]}),Ca(t,{props:[_t(i,/:(plac\w+)/,$n+"input-$1")]})],o)}return ""})}},lx=[sx],Cb=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||lx,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<g.length;b++)i[g[b]]=!0;s.push(m);});var l,c=[ix,ax];{var u,d=[bb,ex(function(m){u.insert(m);})],h=Jw(c.concat(o,d)),v=function(g){return ai(gb(g),h)};l=function(g,b,y,S){u=y,v(g?g+"{"+b.styles+"}":b.styles),S&&(p.inserted[b.name]=!0);};}var p={key:n,sheet:new Fw({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return p.sheet.hydrate(s),p};function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},we.apply(this,arguments)}var Sb={exports:{}},At={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var hn=typeof Symbol=="function"&&Symbol.for,vh=hn?Symbol.for("react.element"):60103,ph=hn?Symbol.for("react.portal"):60106,Ec=hn?Symbol.for("react.fragment"):60107,Oc=hn?Symbol.for("react.strict_mode"):60108,Pc=hn?Symbol.for("react.profiler"):60114,_c=hn?Symbol.for("react.provider"):60109,Rc=hn?Symbol.for("react.context"):60110,mh=hn?Symbol.for("react.async_mode"):60111,Mc=hn?Symbol.for("react.concurrent_mode"):60111,Tc=hn?Symbol.for("react.forward_ref"):60112,Ic=hn?Symbol.for("react.suspense"):60113,cx=hn?Symbol.for("react.suspense_list"):60120,Nc=hn?Symbol.for("react.memo"):60115,Ac=hn?Symbol.for("react.lazy"):60116,ux=hn?Symbol.for("react.block"):60121,dx=hn?Symbol.for("react.fundamental"):60117,fx=hn?Symbol.for("react.responder"):60118,hx=hn?Symbol.for("react.scope"):60119;function Zn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vh:switch(e=e.type,e){case mh:case Mc:case Ec:case Pc:case Oc:case Ic:return e;default:switch(e=e&&e.$$typeof,e){case Rc:case Tc:case Ac:case Nc:case _c:return e;default:return t}}case ph:return t}}}function wb(e){return Zn(e)===Mc}At.AsyncMode=mh;At.ConcurrentMode=Mc;At.ContextConsumer=Rc;At.ContextProvider=_c;At.Element=vh;At.ForwardRef=Tc;At.Fragment=Ec;At.Lazy=Ac;At.Memo=Nc;At.Portal=ph;At.Profiler=Pc;At.StrictMode=Oc;At.Suspense=Ic;At.isAsyncMode=function(e){return wb(e)||Zn(e)===mh};At.isConcurrentMode=wb;At.isContextConsumer=function(e){return Zn(e)===Rc};At.isContextProvider=function(e){return Zn(e)===_c};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vh};At.isForwardRef=function(e){return Zn(e)===Tc};At.isFragment=function(e){return Zn(e)===Ec};At.isLazy=function(e){return Zn(e)===Ac};At.isMemo=function(e){return Zn(e)===Nc};At.isPortal=function(e){return Zn(e)===ph};At.isProfiler=function(e){return Zn(e)===Pc};At.isStrictMode=function(e){return Zn(e)===Oc};At.isSuspense=function(e){return Zn(e)===Ic};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ec||e===Mc||e===Pc||e===Oc||e===Ic||e===cx||typeof e=="object"&&e!==null&&(e.$$typeof===Ac||e.$$typeof===Nc||e.$$typeof===_c||e.$$typeof===Rc||e.$$typeof===Tc||e.$$typeof===dx||e.$$typeof===fx||e.$$typeof===hx||e.$$typeof===ux)};At.typeOf=Zn;Sb.exports=At;var gh=Sb.exports,xb=gh,vx={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},px={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$b={};$b[xb.ForwardRef]=vx;$b[xb.Memo]=px;var mx=!0;function bh(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var Eb=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||mx===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},Ob=function(t,n,r){Eb(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function gx(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)}var bx={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},yx=/[A-Z]|^ms/g,Cx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pb=function(t){return t.charCodeAt(1)===45},rp=function(t){return t!=null&&typeof t!="boolean"},Tu=tx(function(e){return Pb(e)?e:e.replace(yx,"-$&").toLowerCase()}),op=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Cx,function(r,o,i){return Lr={name:o,styles:i,next:Lr},o})}return bx[t]!==1&&!Pb(t)&&typeof n=="number"&&n!==0?n+"px":n};function as(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 Lr={name:n.name,styles:n.styles,next:Lr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Lr={name:r.name,styles:r.styles,next:Lr},r=r.next;var o=n.styles+";";return o}return Sx(e,t,n)}case"function":{if(e!==void 0){var i=Lr,a=n(e);return Lr=i,as(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Sx(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=as(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":rp(a)&&(r+=Tu(i)+":"+op(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)rp(a[s])&&(r+=Tu(i)+":"+op(i,a[s])+";");else {var l=as(e,t,a);switch(i){case"animation":case"animationName":{r+=Tu(i)+":"+l+";";break}default:r+=i+"{"+l+"}";}}}return r}var ip=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Lr,ja=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Lr=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=as(r,n,a)):i+=a[0];for(var s=1;s<t.length;s++)i+=as(r,n,t[s]),o&&(i+=a[s]);ip.lastIndex=0;for(var l="",c;(c=ip.exec(i))!==null;)l+="-"+c[1];var u=gx(i)+l;return {name:u,styles:i,next:Lr}},wx=function(t){return t()},xx=f__namespace["useInsertionEffect"]?f__namespace["useInsertionEffect"]:!1,$x=xx||wx,Dc={}.hasOwnProperty,_b=f__namespace.createContext(typeof HTMLElement<"u"?Cb({key:"css"}):null);_b.Provider;var Ex=function(t){return f.forwardRef(function(n,r){var o=f.useContext(_b);return t(n,o,r)})},Ox=f__namespace.createContext({}),Hd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Rb=function(t,n){var r={};for(var o in n)Dc.call(n,o)&&(r[o]=n[o]);return r[Hd]=t,r},Px=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Eb(n,r,o),$x(function(){return Ob(n,r,o)}),null},_x=Ex(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Hd],i=[r],a="";typeof e.className=="string"?a=bh(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=ja(i,void 0,f__namespace.useContext(Ox));a+=t.key+"-"+s.name;var l={};for(var c in e)Dc.call(e,c)&&c!=="css"&&c!==Hd&&(l[c]=e[c]);return l.ref=n,l.className=a,f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(Px,{cache:t,serialized:s,isStringTag:typeof o=="string"}),f__namespace.createElement(o,l))}),Mb=_x,sn=rs.Fragment;function j(e,t,n){return Dc.call(t,"css")?rs.jsx(Mb,Rb(e,t),n):rs.jsx(e,t,n)}function be(e,t,n){return Dc.call(t,"css")?rs.jsxs(Mb,Rb(e,t),n):rs.jsxs(e,t,n)}var Bd={exports:{}},Iu,ap;function Rx(){if(ap)return Iu;ap=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;Iu=function(u,d){d=d||{};var h=typeof u;if(h==="string"&&u.length>0)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 Iu}function Mx(e){n.debug=n,n.default=n,n.coerce=l,n.disable=i,n.enable=o,n.enabled=a,n.humanize=Rx(),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<u.length;h++)d=(d<<5)-d+u.charCodeAt(h),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,h=null,v,p;function m(...g){if(!m.enabled)return;const b=m,y=Number(new Date),S=y-(d||y);b.diff=S,b.prev=d,b.curr=y,d=y,g[0]=n.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");let $=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,(C,x)=>{if(C==="%%")return "%";$++;const _=n.formatters[x];if(typeof _=="function"){const T=g[$];C=_.call(b,T),g.splice($,1),$--;}return C}),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<v;d++)h[d]&&(u=h[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")));}function i(){const u=[...n.names.map(s),...n.skips.map(s).map(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<h;d++)if(n.skips[d].test(u))return !1;for(d=0,h=n.names.length;d<h;d++)if(n.names[d].test(u))return !0;return !1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");}return n.enable(n.load()),n}var Tx=Mx;(function(e,t){t.formatArgs=r,t.save=o,t.load=i,t.useColors=n,t.storage=a(),t.destroy=(()=>{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=Tx(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Bd,Bd.exports);var Ix=Bd.exports;const Nx=Gr(Ix),Lo="bilibili-app-recommend",Ax="bilibili_app_recommend",Tb=Nx(Lo);var Dx=typeof global=="object"&&global&&global.Object===Object&&global;const Ib=Dx;var kx=typeof self=="object"&&self&&self.Object===Object&&self,Lx=Ib||kx||Function("return this")();const Kr=Lx;var Fx=Kr.Symbol;const Wr=Fx;var Nb=Object.prototype,zx=Nb.hasOwnProperty,jx=Nb.toString,Sa=Wr?Wr.toStringTag:void 0;function Hx(e){var t=zx.call(e,Sa),n=e[Sa];try{e[Sa]=void 0;var r=!0;}catch{}var o=jx.call(e);return r&&(t?e[Sa]=n:delete e[Sa]),o}var Bx=Object.prototype,Wx=Bx.toString;function Vx(e){return Wx.call(e)}var Ux="[object Null]",Gx="[object Undefined]",sp=Wr?Wr.toStringTag:void 0;function fa(e){return e==null?e===void 0?Gx:Ux:sp&&sp in Object(e)?Hx(e):Vx(e)}function ta(e){return e!=null&&typeof e=="object"}var Kx="[object Symbol]";function kc(e){return typeof e=="symbol"||ta(e)&&fa(e)==Kx}function Xx(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var qx=Array.isArray;const Vr=qx;var Yx=1/0,lp=Wr?Wr.prototype:void 0,cp=lp?lp.toString:void 0;function Ab(e){if(typeof e=="string")return e;if(Vr(e))return Xx(e,Ab)+"";if(kc(e))return cp?cp.call(e):"";var t=e+"";return t=="0"&&1/e==-Yx?"-0":t}var Zx=/\s/;function Qx(e){for(var t=e.length;t--&&Zx.test(e.charAt(t)););return t}var Jx=/^\s+/;function e$(e){return e&&e.slice(0,Qx(e)+1).replace(Jx,"")}function ho(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var up=0/0,t$=/^[-+]0x[0-9a-f]+$/i,n$=/^0b[01]+$/i,r$=/^0o[0-7]+$/i,o$=parseInt;function Wd(e){if(typeof e=="number")return e;if(kc(e))return up;if(ho(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ho(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=e$(e);var n=n$.test(e);return n||r$.test(e)?o$(e.slice(2),n?2:8):t$.test(e)?up:+e}var dp=1/0,i$=17976931348623157e292;function a$(e){if(!e)return e===0?e:0;if(e=Wd(e),e===dp||e===-dp){var t=e<0?-1:1;return t*i$}return e===e?e:0}function s$(e){var t=a$(e),n=t%1;return t===t?n?t-n:t:0}function Db(e){return e}var l$="[object AsyncFunction]",c$="[object Function]",u$="[object GeneratorFunction]",d$="[object Proxy]";function kb(e){if(!ho(e))return !1;var t=fa(e);return t==c$||t==u$||t==l$||t==d$}var f$=Kr["__core-js_shared__"];const Nu=f$;var fp=function(){var e=/[^.]+$/.exec(Nu&&Nu.keys&&Nu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function h$(e){return !!fp&&fp in e}var v$=Function.prototype,p$=v$.toString;function fi(e){if(e!=null){try{return p$.call(e)}catch{}try{return e+""}catch{}}return ""}var m$=/[\\^$.*+?()[\]{}|]/g,g$=/^\[object .+?Constructor\]$/,b$=Function.prototype,y$=Object.prototype,C$=b$.toString,S$=y$.hasOwnProperty,w$=RegExp("^"+C$.call(S$).replace(m$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function x$(e){if(!ho(e)||h$(e))return !1;var t=kb(e)?w$:g$;return t.test(fi(e))}function $$(e,t){return e==null?void 0:e[t]}function hi(e,t){var n=$$(e,t);return x$(n)?n:void 0}var E$=hi(Kr,"WeakMap");const Vd=E$;function O$(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function P$(){}var _$=800,R$=16,M$=Date.now;function T$(e){var t=0,n=0;return function(){var r=M$(),o=R$-(r-n);if(n=r,o>0){if(++t>=_$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function I$(e){return function(){return e}}var N$=function(){try{var e=hi(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Gl=N$;var A$=Gl?function(e,t){return Gl(e,"toString",{configurable:!0,enumerable:!1,value:I$(t),writable:!0})}:Db;const D$=A$;var k$=T$(D$);const L$=k$;function F$(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return -1}function z$(e){return e!==e}function j$(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}function H$(e,t,n){return t===t?j$(e,t,n):F$(e,z$,n)}function B$(e,t){var n=e==null?0:e.length;return !!n&&H$(e,t,0)>-1}var W$=9007199254740991,V$=/^(?:0|[1-9]\d*)$/;function yh(e,t){var n=typeof e;return t=t??W$,!!t&&(n=="number"||n!="symbol"&&V$.test(e))&&e>-1&&e%1==0&&e<t}function U$(e,t,n){t=="__proto__"&&Gl?Gl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}function Ch(e,t){return e===t||e!==e&&t!==t}var G$=Object.prototype,K$=G$.hasOwnProperty;function X$(e,t,n){var r=e[t];(!(K$.call(e,t)&&Ch(r,n))||n===void 0&&!(t in e))&&U$(e,t,n);}var hp=Math.max;function q$(e,t,n){return t=hp(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=hp(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),O$(e,this,s)}}var Y$=9007199254740991;function Sh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Y$}function Z$(e){return e!=null&&Sh(e.length)&&!kb(e)}var Q$=Object.prototype;function J$(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Q$;return e===n}function eE(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var tE="[object Arguments]";function vp(e){return ta(e)&&fa(e)==tE}var Lb=Object.prototype,nE=Lb.hasOwnProperty,rE=Lb.propertyIsEnumerable,oE=vp(function(){return arguments}())?vp:function(e){return ta(e)&&nE.call(e,"callee")&&!rE.call(e,"callee")};const wh=oE;function iE(){return !1}var Fb=typeof lo=="object"&&lo&&!lo.nodeType&&lo,pp=Fb&&typeof co=="object"&&co&&!co.nodeType&&co,aE=pp&&pp.exports===Fb,mp=aE?Kr.Buffer:void 0,sE=mp?mp.isBuffer:void 0,lE=sE||iE;const Ud=lE;var cE="[object Arguments]",uE="[object Array]",dE="[object Boolean]",fE="[object Date]",hE="[object Error]",vE="[object Function]",pE="[object Map]",mE="[object Number]",gE="[object Object]",bE="[object RegExp]",yE="[object Set]",CE="[object String]",SE="[object WeakMap]",wE="[object ArrayBuffer]",xE="[object DataView]",$E="[object Float32Array]",EE="[object Float64Array]",OE="[object Int8Array]",PE="[object Int16Array]",_E="[object Int32Array]",RE="[object Uint8Array]",ME="[object Uint8ClampedArray]",TE="[object Uint16Array]",IE="[object Uint32Array]",Kt={};Kt[$E]=Kt[EE]=Kt[OE]=Kt[PE]=Kt[_E]=Kt[RE]=Kt[ME]=Kt[TE]=Kt[IE]=!0;Kt[cE]=Kt[uE]=Kt[wE]=Kt[dE]=Kt[xE]=Kt[fE]=Kt[hE]=Kt[vE]=Kt[pE]=Kt[mE]=Kt[gE]=Kt[bE]=Kt[yE]=Kt[CE]=Kt[SE]=!1;function NE(e){return ta(e)&&Sh(e.length)&&!!Kt[fa(e)]}function AE(e){return function(t){return e(t)}}var zb=typeof lo=="object"&&lo&&!lo.nodeType&&lo,Ha=zb&&typeof co=="object"&&co&&!co.nodeType&&co,DE=Ha&&Ha.exports===zb,Au=DE&&Ib.process,kE=function(){try{var e=Ha&&Ha.require&&Ha.require("util").types;return e||Au&&Au.binding&&Au.binding("util")}catch{}}();const gp=kE;var bp=gp&&gp.isTypedArray,LE=bp?AE(bp):NE;const jb=LE;var FE=Object.prototype,zE=FE.hasOwnProperty;function jE(e,t){var n=Vr(e),r=!n&&wh(e),o=!n&&!r&&Ud(e),i=!n&&!r&&!o&&jb(e),a=n||r||o||i,s=a?eE(e.length,String):[],l=s.length;for(var c in e)(t||zE.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||yh(c,l)))&&s.push(c);return s}function HE(e,t){return function(n){return e(t(n))}}var BE=HE(Object.keys,Object);const WE=BE;var VE=Object.prototype,UE=VE.hasOwnProperty;function GE(e){if(!J$(e))return WE(e);var t=[];for(var n in Object(e))UE.call(e,n)&&n!="constructor"&&t.push(n);return t}function Hb(e){return Z$(e)?jE(e):GE(e)}var KE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,XE=/^\w*$/;function xh(e,t){if(Vr(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||kc(e)?!0:XE.test(e)||!KE.test(e)||t!=null&&e in Object(t)}var qE=hi(Object,"create");const ss=qE;function YE(){this.__data__=ss?ss(null):{},this.size=0;}function ZE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var QE="__lodash_hash_undefined__",JE=Object.prototype,eO=JE.hasOwnProperty;function tO(e){var t=this.__data__;if(ss){var n=t[e];return n===QE?void 0:n}return eO.call(t,e)?t[e]:void 0}var nO=Object.prototype,rO=nO.hasOwnProperty;function oO(e){var t=this.__data__;return ss?t[e]!==void 0:rO.call(t,e)}var iO="__lodash_hash_undefined__";function aO(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ss&&t===void 0?iO:t,this}function di(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1]);}}di.prototype.clear=YE;di.prototype.delete=ZE;di.prototype.get=tO;di.prototype.has=oO;di.prototype.set=aO;function sO(){this.__data__=[],this.size=0;}function Lc(e,t){for(var n=e.length;n--;)if(Ch(e[n][0],t))return n;return -1}var lO=Array.prototype,cO=lO.splice;function uO(e){var t=this.__data__,n=Lc(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():cO.call(t,n,1),--this.size,!0}function dO(e){var t=this.__data__,n=Lc(t,e);return n<0?void 0:t[n][1]}function fO(e){return Lc(this.__data__,e)>-1}function hO(e,t){var n=this.__data__,r=Lc(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();++t<n;){var r=e[t];this.set(r[0],r[1]);}}bo.prototype.clear=sO;bo.prototype.delete=uO;bo.prototype.get=dO;bo.prototype.has=fO;bo.prototype.set=hO;var vO=hi(Kr,"Map");const ls=vO;function pO(){this.size=0,this.__data__={hash:new di,map:new(ls||bo),string:new di};}function mO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Fc(e,t){var n=e.__data__;return mO(t)?n[typeof t=="string"?"string":"hash"]:n.map}function gO(e){var t=Fc(this,e).delete(e);return this.size-=t?1:0,t}function bO(e){return Fc(this,e).get(e)}function yO(e){return Fc(this,e).has(e)}function CO(e,t){var n=Fc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function yo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1]);}}yo.prototype.clear=pO;yo.prototype.delete=gO;yo.prototype.get=bO;yo.prototype.has=yO;yo.prototype.set=CO;var SO="Expected a function";function $h(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(SO);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new($h.Cache||yo),n}$h.Cache=yo;var wO=500;function xO(e){var t=$h(e,function(r){return n.size===wO&&n.clear(),r}),n=t.cache;return t}var $O=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,EO=/\\(\\)?/g,OO=xO(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace($O,function(n,r,o,i){t.push(o?i.replace(EO,"$1"):r||n);}),t});const PO=OO;function _O(e){return e==null?"":Ab(e)}function zc(e,t){return Vr(e)?e:xh(e,t)?[e]:PO(_O(e))}var RO=1/0;function Ps(e){if(typeof e=="string"||kc(e))return e;var t=e+"";return t=="0"&&1/e==-RO?"-0":t}function Eh(e,t){t=zc(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ps(t[n++])];return n&&n==r?e:void 0}function MO(e,t,n){var r=e==null?void 0:Eh(e,t);return r===void 0?n:r}function Bb(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var yp=Wr?Wr.isConcatSpreadable:void 0;function TO(e){return Vr(e)||wh(e)||!!(yp&&e&&e[yp])}function Wb(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=TO),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?Wb(s,t-1,n,r,o):Bb(o,s):r||(o[o.length]=s);}return o}function IO(e){var t=e==null?0:e.length;return t?Wb(e,1):[]}function NO(e){return L$(q$(e,void 0,IO),e+"")}var AO="Expected a function";function DO(e,t){var n;if(typeof t!="function")throw new TypeError(AO);return e=s$(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function kO(){this.__data__=new bo,this.size=0;}function LO(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function FO(e){return this.__data__.get(e)}function zO(e){return this.__data__.has(e)}var jO=200;function HO(e,t){var n=this.__data__;if(n instanceof bo){var r=n.__data__;if(!ls||r.length<jO-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new yo(r);}return n.set(e,t),this.size=n.size,this}function uo(e){var t=this.__data__=new bo(e);this.size=t.size;}uo.prototype.clear=kO;uo.prototype.delete=LO;uo.prototype.get=FO;uo.prototype.has=zO;uo.prototype.set=HO;function BO(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a);}return i}function WO(){return []}var VO=Object.prototype,UO=VO.propertyIsEnumerable,Cp=Object.getOwnPropertySymbols,GO=Cp?function(e){return e==null?[]:(e=Object(e),BO(Cp(e),function(t){return UO.call(e,t)}))}:WO;const KO=GO;function XO(e,t,n){var r=t(e);return Vr(e)?r:Bb(r,n(e))}function Sp(e){return XO(e,Hb,KO)}var qO=hi(Kr,"DataView");const Gd=qO;var YO=hi(Kr,"Promise");const Kd=YO;var ZO=hi(Kr,"Set");const Hi=ZO;var wp="[object Map]",QO="[object Object]",xp="[object Promise]",$p="[object Set]",Ep="[object WeakMap]",Op="[object DataView]",JO=fi(Gd),eP=fi(ls),tP=fi(Kd),nP=fi(Hi),rP=fi(Vd),qo=fa;(Gd&&qo(new Gd(new ArrayBuffer(1)))!=Op||ls&&qo(new ls)!=wp||Kd&&qo(Kd.resolve())!=xp||Hi&&qo(new Hi)!=$p||Vd&&qo(new Vd)!=Ep)&&(qo=function(e){var t=fa(e),n=t==QO?e.constructor:void 0,r=n?fi(n):"";if(r)switch(r){case JO:return Op;case eP:return wp;case tP:return xp;case nP:return $p;case rP:return Ep}return t});const Pp=qo;var oP=Kr.Uint8Array;const _p=oP;var iP="__lodash_hash_undefined__";function aP(e){return this.__data__.set(e,iP),this}function sP(e){return this.__data__.has(e)}function cs(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new yo;++t<n;)this.add(e[t]);}cs.prototype.add=cs.prototype.push=aP;cs.prototype.has=sP;function lP(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return !0;return !1}function Vb(e,t){return e.has(t)}var cP=1,uP=2;function Ub(e,t,n,r,o,i){var a=n&cP,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))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&uP?new cs:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var p=e[d],m=t[d];if(r)var g=a?r(m,p,d,t,e,i):r(p,m,d,e,t,i);if(g!==void 0){if(g)continue;h=!1;break}if(v){if(!lP(t,function(b,y){if(!Vb(v,y)&&(p===b||o(p,b,n,r,i)))return v.push(y)})){h=!1;break}}else if(!(p===m||o(p,m,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}function dP(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}function Oh(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var fP=1,hP=2,vP="[object Boolean]",pP="[object Date]",mP="[object Error]",gP="[object Map]",bP="[object Number]",yP="[object RegExp]",CP="[object Set]",SP="[object String]",wP="[object Symbol]",xP="[object ArrayBuffer]",$P="[object DataView]",Rp=Wr?Wr.prototype:void 0,Du=Rp?Rp.valueOf:void 0;function EP(e,t,n,r,o,i,a){switch(n){case $P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case xP:return !(e.byteLength!=t.byteLength||!i(new _p(e),new _p(t)));case vP:case pP:case bP:return Ch(+e,+t);case mP:return e.name==t.name&&e.message==t.message;case yP:case SP:return e==t+"";case gP:var s=dP;case CP:var l=r&fP;if(s||(s=Oh),e.size!=t.size&&!l)return !1;var c=a.get(e);if(c)return c==t;r|=hP,a.set(e,t);var u=Ub(s(e),s(t),r,o,i,a);return a.delete(e),u;case wP:if(Du)return Du.call(e)==Du.call(t)}return !1}var OP=1,PP=Object.prototype,_P=PP.hasOwnProperty;function RP(e,t,n,r,o,i){var a=n&OP,s=Sp(e),l=s.length,c=Sp(t),u=c.length;if(l!=u&&!a)return !1;for(var d=l;d--;){var h=s[d];if(!(a?h in t:_P.call(t,h)))return !1}var v=i.get(e),p=i.get(t);if(v&&p)return v==t&&p==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=a;++d<l;){h=s[d];var b=e[h],y=t[h];if(r)var S=a?r(y,b,h,t,e,i):r(b,y,h,e,t,i);if(!(S===void 0?b===y||o(b,y,n,r,i):S)){m=!1;break}g||(g=h=="constructor");}if(m&&!g){var $=e.constructor,w=t.constructor;$!=w&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof w=="function"&&w instanceof w)&&(m=!1);}return i.delete(e),i.delete(t),m}var MP=1,Mp="[object Arguments]",Tp="[object Array]",tl="[object Object]",TP=Object.prototype,Ip=TP.hasOwnProperty;function IP(e,t,n,r,o,i){var a=Vr(e),s=Vr(t),l=a?Tp:Pp(e),c=s?Tp:Pp(t);l=l==Mp?tl:l,c=c==Mp?tl:c;var u=l==tl,d=c==tl,h=l==c;if(h&&Ud(e)){if(!Ud(t))return !1;a=!0,u=!1;}if(h&&!u)return i||(i=new uo),a||jb(e)?Ub(e,t,n,r,o,i):EP(e,t,l,n,r,o,i);if(!(n&MP)){var v=u&&Ip.call(e,"__wrapped__"),p=d&&Ip.call(t,"__wrapped__");if(v||p){var m=v?e.value():e,g=p?t.value():t;return i||(i=new uo),o(m,g,n,r,i)}}return h?(i||(i=new uo),RP(e,t,n,r,o,i)):!1}function jc(e,t,n,r,o){return e===t?!0:e==null||t==null||!ta(e)&&!ta(t)?e!==e&&t!==t:IP(e,t,n,r,jc,o)}var NP=1,AP=2;function DP(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return !i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return !1}for(;++o<i;){s=n[o];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return !1}else {var d=new uo;if(r)var h=r(c,u,l,e,t,d);if(!(h===void 0?jc(u,c,NP|AP,r,d):h))return !1}}return !0}function Gb(e){return e===e&&!ho(e)}function kP(e){for(var t=Hb(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Gb(o)];}return t}function Kb(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function LP(e){var t=kP(e);return t.length==1&&t[0][2]?Kb(t[0][0],t[0][1]):function(n){return n===e||DP(n,e,t)}}function FP(e,t){return e!=null&&t in Object(e)}function zP(e,t,n){t=zc(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Ps(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a];}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Sh(o)&&yh(a,o)&&(Vr(e)||wh(e)))}function Xb(e,t){return e!=null&&zP(e,t,FP)}var jP=1,HP=2;function BP(e,t){return xh(e)&&Gb(t)?Kb(Ps(e),t):function(n){var r=MO(n,e);return r===void 0&&r===t?Xb(n,e):jc(t,r,jP|HP)}}function WP(e){return function(t){return t==null?void 0:t[e]}}function VP(e){return function(t){return Eh(t,e)}}function UP(e){return xh(e)?WP(Ps(e)):VP(e)}function GP(e){return typeof e=="function"?e:e==null?Db:typeof e=="object"?Vr(e)?BP(e[0],e[1]):LP(e):UP(e)}var KP=function(){return Kr.Date.now()};const ku=KP;var XP="Expected a function",qP=Math.max,YP=Math.min;function qb(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(XP);t=Wd(t)||0,ho(n)&&(u=!!n.leading,d="maxWait"in n,i=d?qP(Wd(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function v(C){var x=r,_=o;return r=o=void 0,c=C,a=e.apply(_,x),a}function p(C){return c=C,s=setTimeout(b,t),u?v(C):a}function m(C){var x=C-l,_=C-c,T=t-x;return d?YP(T,i-_):T}function g(C){var x=C-l,_=C-c;return l===void 0||x>=t||x<0||d&&_>=i}function b(){var C=ku();if(g(C))return y(C);s=setTimeout(b,m(C));}function y(C){return s=void 0,h&&r?v(C):(r=o=void 0,a)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function $(){return s===void 0?a:y(ku())}function w(){var C=ku(),x=g(C);if(r=arguments,o=this,l=C,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=S,w.flush=$,w}function ZP(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return !0;return !1}function QP(e,t){return jc(e,t)}function JP(e,t,n,r){if(!ho(e))return e;t=zc(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=Ps(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=ho(u)?u:yh(t[o+1])?[]:{});}X$(s,l,c),s=s[l];}return e}function e_(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Eh(e,a);n(s,a)&&JP(i,zc(a,e),s);}return i}function t_(e){return DO(2,e)}function n_(e,t){return e_(e,t,function(n,r){return Xb(e,r)})}var r_=NO(function(e,t){return e==null?{}:n_(e,t)});const Yb=r_;var o_="Expected a function";function i_(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(o_);return ho(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),qb(e,t,{leading:r,maxWait:t,trailing:o})}var a_=1/0,s_=Hi&&1/Oh(new Hi([,-0]))[1]==a_?function(e){return new Hi(e)}:P$;const l_=s_;var c_=200;function u_(e,t,n){var r=-1,o=B$,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=ZP;else if(i>=c_){var c=t?null:l_(e);if(c)return Oh(c);a=!1,o=Vb,l=new cs;}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u);}else o(l,d,n)||(l!==s&&l.push(d),s.push(u));}return s}function Hc(e,t){return e&&e.length?u_(e,GP(t)):[]}const d_=Symbol(),Ph=Symbol(),wa="a",Ba="w";let f_=(e,t)=>new Proxy(e,t);const Xd=Object.getPrototypeOf,qd=new WeakMap,Zb=e=>e&&(qd.has(e)?qd.get(e):Xd(e)===Object.prototype||Xd(e)===Array.prototype),Kl=e=>typeof e=="object"&&e!==null,h_=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(Xd(e),t)},_h=e=>e[Ph]||e,Qb=(e,t,n,r)=>{if(!Zb(e))return e;let o=r&&r.get(e);if(!o){const l=_h(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,h_(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[wa].get(l);if(g||(g={},u[wa].set(l,g)),p===Ba)g[Ba]=!0;else {let b=g[p];b||(b=new Set,g[p]=b),b.add(m);}}},v={get:(p,m)=>m===Ph?l:(h("k",m),Qb(Reflect.get(p,m),u[wa],u.c,u.t)),has:(p,m)=>m===d_?(d=!0,u[wa].delete(l),!0):(h("h",m),Reflect.has(p,m)),getOwnPropertyDescriptor:(p,m)=>(h("o",m),Reflect.getOwnPropertyDescriptor(p,m)),ownKeys:p=>(h(Ba),Reflect.ownKeys(p))};return c&&(v.set=v.deleteProperty=()=>!1),[v,u]})(i,!!a),s[1].p=f_(a||i,s[0]),n&&n.set(i,s)),s[1][wa]=t,s[1].c=n,s[1].t=r,s[1].p},Jb=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!Kl(e)||!Kl(t))return !0;const o=n.get(_h(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[Ba]===!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=Jb(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i});}},v_=e=>Zb(e)&&e[Ph]||null,Np=(e,t=!0)=>{qd.set(e,t);},p_=(e,t,n)=>{const r=[],o=new WeakSet,i=(a,s)=>{if(o.has(a))return;Kl(a)&&o.add(a);const l=Kl(a)&&t.get(_h(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[Ba]===!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},Lu=e=>typeof e=="object"&&e!==null,_o=new WeakMap,nl=new WeakSet,m_=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>Lu(c)&&!nl.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 Np(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(nl.has(m))Np(m,!1);else if(m instanceof Promise)delete g.value,g.get=()=>d(m);else if(_o.has(m)){const[b,y]=_o.get(m);g.value=i(b,y(),d);}Object.defineProperty(v,p,g);}),v},a=new WeakMap,s=[1,1],l=c=>{if(!Lu(c))throw new Error("object required");const u=a.get(c);if(u)return u;let d=s[0];const h=new Set,v=(T,R=++s[0])=>{d!==R&&(d=R,h.forEach(I=>I(T,R)));};let p=s[1];const m=(T=++s[1])=>(p!==T&&!h.size&&(p=T,b.forEach(([R])=>{const I=R[1](T);I>d&&(d=I);})),d),g=T=>(R,I)=>{const O=[...R];O[1]=[T,...O[1]],v(O,I);},b=new Map,y=(T,R)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&b.has(T))throw new Error("prop listener already exists");if(h.size){const I=R[3](g(T));b.set(T,[R,I]);}else b.set(T,[R]);},S=T=>{var R;const I=b.get(T);I&&(b.delete(T),(R=I[1])==null||R.call(I));},$=T=>(h.add(T),h.size===1&&b.forEach(([I,O],P)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&O)throw new Error("remove already exists");const E=I[3](g(P));b.set(P,[I,E]);}),()=>{h.delete(T),h.size===0&&b.forEach(([I,O],P)=>{O&&(O(),b.set(P,[I]));});}),w=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),x=t(w,{deleteProperty(T,R){const I=Reflect.get(T,R);S(R);const O=Reflect.deleteProperty(T,R);return O&&v(["delete",[R],I]),O},set(T,R,I,O){const P=Reflect.has(T,R),E=Reflect.get(T,R,O);if(P&&(e(E,I)||a.has(I)&&e(E,a.get(I))))return !0;S(R),Lu(I)&&(I=v_(I)||I);let M=I;if(I instanceof Promise)I.then(N=>{I.status="fulfilled",I.value=N,v(["resolve",[R],N]);}).catch(N=>{I.status="rejected",I.reason=N,v(["reject",[R],N]);});else {!_o.has(I)&&n(I)&&(M=l(I));const N=!nl.has(M)&&_o.get(M);N&&y(R,N);}return Reflect.set(T,R,M,O),v(["set",[R],I,E]),!0}});a.set(c,x);const _=[w,m,i,$];return _o.set(x,_),Reflect.ownKeys(c).forEach(T=>{const R=Object.getOwnPropertyDescriptor(c,T);"value"in R&&(x[T]=c[T],delete R.value,delete R.writable),Object.defineProperty(w,T,R);}),x})=>[l,_o,nl,e,t,n,r,o,i,a,s],[g_]=m_();function _s(e={}){return g_(e)}function e0(e,t,n){const r=_o.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 Ap(e,t){const n=_o.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 t0={exports:{}},n0={};/**
* @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 na=f;function b_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var y_=typeof Object.is=="function"?Object.is:b_,C_=na.useState,S_=na.useEffect,w_=na.useLayoutEffect,x_=na.useDebugValue;function $_(e,t){var n=t(),r=C_({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return w_(function(){o.value=n,o.getSnapshot=t,Fu(o)&&i({inst:o});},[e,n,t]),S_(function(){return Fu(o)&&i({inst:o}),e(function(){Fu(o)&&i({inst:o});})},[e]),x_(n),n}function Fu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !y_(e,n)}catch{return !0}}function E_(e,t){return t()}var O_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?E_:$_;n0.useSyncExternalStore=na.useSyncExternalStore!==void 0?na.useSyncExternalStore:O_;t0.exports=n0;var P_=t0.exports;const __=Gr(P_),{use:Dp}=f,{useSyncExternalStore:R_}=__,M_=(e,t)=>{const n=f.useRef();f.useEffect(()=>{n.current=p_(e,t,!0);}),f.useDebugValue(n.current);},T_=new WeakMap;function ha(e,t){const n=t==null?void 0:t.sync,r=f.useRef(),o=f.useRef();let i=!0;const a=R_(f.useCallback(c=>{const u=e0(e,c,n);return c(),u},[e,n]),()=>{const c=Ap(e,Dp);try{if(!i&&r.current&&o.current&&!Jb(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>Ap(e,Dp));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"&&M_(a,s);const l=f.useMemo(()=>new WeakMap,[]);return Qb(a,s,l,T_)}const Rh={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},mt=_s({...Rh}),r0=Object.keys(Rh),Cr=function(){return ha(mt)},I_=Lo,o0=`${I_}.settings`;function N_(){const e=GM_getValue(o0);e&&typeof e=="object"&&Object.assign(mt,Yb(e,r0)),e0(mt,()=>{A_();});}function A_(){const e=Yb(mt,r0);GM_setValue(o0,e);}function ra(e){Object.assign(mt,e);}function D_(){return ra(Rh)}N_();var i0={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(lb,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(P){var E=["th","st","nd","rd"],M=P%100;return "["+P+(E[(M-20)%10]||E[M]||E[0])+"]"}},S=function(P,E,M){var N=String(P);return !N||N.length>=E?P:""+Array(E+1-N.length).join(M)+P},$={s:S,z:function(P){var E=-P.utcOffset(),M=Math.abs(E),N=Math.floor(M/60),A=M%60;return (E<=0?"+":"-")+S(N,2,"0")+":"+S(A,2,"0")},m:function P(E,M){if(E.date()<M.date())return -P(M,E);var N=12*(M.year()-E.year())+(M.month()-E.month()),A=E.clone().add(N,d),D=M-A<0,L=E.clone().add(N+(D?-1:1),d);return +(-(N+(M-A)/(D?A-L:L-A))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return {M:d,y:v,w:u,d:c,D:p,h:l,m:s,s:a,ms:i,Q:h}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},w="en",C={};C[w]=y;var x=function(P){return P instanceof I},_=function P(E,M,N){var A;if(!E)return w;if(typeof E=="string"){var D=E.toLowerCase();C[D]&&(A=D),M&&(C[D]=M,A=D);var L=E.split("-");if(!A&&L.length>1)return P(L[0])}else {var B=E.name;C[B]=E,A=B;}return !N&&A&&(w=A),A||!N&&w},T=function(P,E){if(x(P))return P.clone();var M=typeof E=="object"?E:{};return M.date=P,M.args=arguments,new I(M)},R=$;R.l=_,R.i=x,R.w=function(P,E){return T(P,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var I=function(){function P(M){this.$L=_(M.locale,null,!0),this.parse(M);}var E=P.prototype;return E.parse=function(M){this.$d=function(N){var A=N.date,D=N.utc;if(A===null)return new Date(NaN);if(R.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var L=A.match(g);if(L){var B=L[2]-1||0,U=(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,U)):new Date(L[1],B,L[3]||1,L[4]||0,L[5]||0,L[6]||0,U)}}return new Date(A)}(M),this.$x=M.x||{},this.init();},E.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds();},E.$utils=function(){return R},E.isValid=function(){return this.$d.toString()!==m},E.isSame=function(M,N){var A=T(M);return this.startOf(N)<=A&&A<=this.endOf(N)},E.isAfter=function(M,N){return T(M)<this.startOf(N)},E.isBefore=function(M,N){return this.endOf(N)<T(M)},E.$g=function(M,N,A){return R.u(M)?this[N]:this.set(A,M)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(M,N){var A=this,D=!!R.u(N)||N,L=R.p(M),B=function(J,ne){var ae=R.w(A.$u?Date.UTC(A.$y,ne,J):new Date(A.$y,ne,J),A);return D?ae:ae.endOf(c)},U=function(J,ne){return R.w(A.toDate()[J].apply(A.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(ne)),A)},z=this.$W,W=this.$M,K=this.$D,q="set"+(this.$u?"UTC":"");switch(L){case v:return D?B(1,0):B(31,11);case d:return D?B(1,W):B(0,W+1);case u:var Y=this.$locale().weekStart||0,Z=(z<Y?z+7:z)-Y;return B(D?K-Z:K+(6-Z),W);case c:case p:return U(q+"Hours",0);case l:return U(q+"Minutes",1);case s:return U(q+"Seconds",2);case a:return U(q+"Milliseconds",3);default:return this.clone()}},E.endOf=function(M){return this.startOf(M,!1)},E.$set=function(M,N){var A,D=R.p(M),L="set"+(this.$u?"UTC":""),B=(A={},A[c]=L+"Date",A[p]=L+"Date",A[d]=L+"Month",A[v]=L+"FullYear",A[l]=L+"Hours",A[s]=L+"Minutes",A[a]=L+"Seconds",A[i]=L+"Milliseconds",A)[D],U=D===c?this.$D+(N-this.$W):N;if(D===d||D===v){var z=this.clone().set(p,1);z.$d[B](U),z.init(),this.$d=z.set(p,Math.min(this.$D,z.daysInMonth())).$d;}else B&&this.$d[B](U);return this.init(),this},E.set=function(M,N){return this.clone().$set(M,N)},E.get=function(M){return this[R.p(M)]()},E.add=function(M,N){var A,D=this;M=Number(M);var L=R.p(N),B=function(W){var K=T(D);return R.w(K.date(K.date()+Math.round(W*M)),D)};if(L===d)return this.set(d,this.$M+M);if(L===v)return this.set(v,this.$y+M);if(L===c)return B(1);if(L===u)return B(7);var U=(A={},A[s]=r,A[l]=o,A[a]=n,A)[L]||1,z=this.$d.getTime()+M*U;return R.w(z,this)},E.subtract=function(M,N){return this.add(-1*M,N)},E.format=function(M){var N=this,A=this.$locale();if(!this.isValid())return A.invalidDate||m;var D=M||"YYYY-MM-DDTHH:mm:ssZ",L=R.z(this),B=this.$H,U=this.$m,z=this.$M,W=A.weekdays,K=A.months,q=function(ne,ae,de,pe){return ne&&(ne[ae]||ne(N,D))||de[ae].slice(0,pe)},Y=function(ne){return R.s(B%12||12,ne,"0")},Z=A.meridiem||function(ne,ae,de){var pe=ne<12?"AM":"PM";return de?pe.toLowerCase():pe},J={YY:String(this.$y).slice(-2),YYYY:this.$y,M:z+1,MM:R.s(z+1,2,"0"),MMM:q(A.monthsShort,z,K,3),MMMM:q(K,z),D:this.$D,DD:R.s(this.$D,2,"0"),d:String(this.$W),dd:q(A.weekdaysMin,this.$W,W,2),ddd:q(A.weekdaysShort,this.$W,W,3),dddd:W[this.$W],H:String(B),HH:R.s(B,2,"0"),h:Y(1),hh:Y(2),a:Z(B,U,!0),A:Z(B,U,!1),m:String(U),mm:R.s(U,2,"0"),s:String(this.$s),ss:R.s(this.$s,2,"0"),SSS:R.s(this.$ms,3,"0"),Z:L};return D.replace(b,function(ne,ae){return ae||J[ne]||L.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(M,N,A){var D,L=R.p(N),B=T(M),U=(B.utcOffset()-this.utcOffset())*r,z=this-B,W=R.m(this,B);return W=(D={},D[v]=W/12,D[d]=W,D[h]=W/3,D[u]=(z-U)/6048e5,D[c]=(z-U)/864e5,D[l]=z/o,D[s]=z/r,D[a]=z/n,D)[L]||z,A?W:R.a(W)},E.daysInMonth=function(){return this.endOf(d).$D},E.$locale=function(){return C[this.$L]},E.locale=function(M,N){if(!M)return this.$L;var A=this.clone(),D=_(M,N,!0);return D&&(A.$L=D),A},E.clone=function(){return R.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},P}(),O=I.prototype;return T.prototype=O,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",c],["$M",d],["$y",v],["$D",p]].forEach(function(P){O[P[1]]=function(E){return this.$g(E,P[0],P[1])};}),T.extend=function(P,E){return P.$i||(P(E,I,T),P.$i=!0),T},T.locale=_,T.isDayjs=x,T.unix=function(P){return T(1e3*P)},T.en=C[w],T.Ls=C,T.p={},T});})(i0);var k_=i0.exports;const Bc=Gr(k_);var a0={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(lb,function(){var n,r,o=1e3,i=6e4,a=36e5,s=864e5,l=/\[([^\]]+)]|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,c=31536e6,u=2592e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h={years:c,months:u,days:s,hours:a,minutes:i,seconds:o,milliseconds:1,weeks:6048e5},v=function(w){return w instanceof $},p=function(w,C,x){return new $(w,x,C.$l)},m=function(w){return r.p(w)+"s"},g=function(w){return w<0},b=function(w){return g(w)?Math.ceil(w):Math.floor(w)},y=function(w){return Math.abs(w)},S=function(w,C){return w?g(w)?{negative:!0,format:""+y(w)+C}:{negative:!1,format:""+w+C}:{negative:!1,format:""}},$=function(){function w(x,_,T){var R=this;if(this.$d={},this.$l=T,x===void 0&&(this.$ms=0,this.parseFromMilliseconds()),_)return p(x*h[m(_)],this);if(typeof x=="number")return this.$ms=x,this.parseFromMilliseconds(),this;if(typeof x=="object")return Object.keys(x).forEach(function(P){R.$d[m(P)]=x[P];}),this.calMilliseconds(),this;if(typeof x=="string"){var I=x.match(d);if(I){var O=I.slice(2).map(function(P){return P!=null?Number(P):0});return this.$d.years=O[0],this.$d.months=O[1],this.$d.weeks=O[2],this.$d.days=O[3],this.$d.hours=O[4],this.$d.minutes=O[5],this.$d.seconds=O[6],this.calMilliseconds(),this}}return this}var C=w.prototype;return C.calMilliseconds=function(){var x=this;this.$ms=Object.keys(this.$d).reduce(function(_,T){return _+(x.$d[T]||0)*h[T]},0);},C.parseFromMilliseconds=function(){var x=this.$ms;this.$d.years=b(x/c),x%=c,this.$d.months=b(x/u),x%=u,this.$d.days=b(x/s),x%=s,this.$d.hours=b(x/a),x%=a,this.$d.minutes=b(x/i),x%=i,this.$d.seconds=b(x/o),x%=o,this.$d.milliseconds=x;},C.toISOString=function(){var x=S(this.$d.years,"Y"),_=S(this.$d.months,"M"),T=+this.$d.days||0;this.$d.weeks&&(T+=7*this.$d.weeks);var R=S(T,"D"),I=S(this.$d.hours,"H"),O=S(this.$d.minutes,"M"),P=this.$d.seconds||0;this.$d.milliseconds&&(P+=this.$d.milliseconds/1e3);var E=S(P,"S"),M=x.negative||_.negative||R.negative||I.negative||O.negative||E.negative,N=I.format||O.format||E.format?"T":"",A=(M?"-":"")+"P"+x.format+_.format+R.format+N+I.format+O.format+E.format;return A==="P"||A==="-P"?"P0D":A},C.toJSON=function(){return this.toISOString()},C.format=function(x){var _=x||"YYYY-MM-DDTHH:mm:ss",T={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return _.replace(l,function(R,I){return I||String(T[R])})},C.as=function(x){return this.$ms/h[m(x)]},C.get=function(x){var _=this.$ms,T=m(x);return T==="milliseconds"?_%=1e3:_=T==="weeks"?b(_/h[T]):this.$d[T],_===0?0:_},C.add=function(x,_,T){var R;return R=_?x*h[m(_)]:v(x)?x.$ms:p(x,this).$ms,p(this.$ms+R*(T?-1:1),this)},C.subtract=function(x,_){return this.add(x,_,!0)},C.locale=function(x){var _=this.clone();return _.$l=x,_},C.clone=function(){return p(this.$ms,this)},C.humanize=function(x){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!x)},C.milliseconds=function(){return this.get("milliseconds")},C.asMilliseconds=function(){return this.as("milliseconds")},C.seconds=function(){return this.get("seconds")},C.asSeconds=function(){return this.as("seconds")},C.minutes=function(){return this.get("minutes")},C.asMinutes=function(){return this.as("minutes")},C.hours=function(){return this.get("hours")},C.asHours=function(){return this.as("hours")},C.days=function(){return this.get("days")},C.asDays=function(){return this.as("days")},C.weeks=function(){return this.get("weeks")},C.asWeeks=function(){return this.as("weeks")},C.months=function(){return this.get("months")},C.asMonths=function(){return this.as("months")},C.years=function(){return this.get("years")},C.asYears=function(){return this.as("years")},w}();return function(w,C,x){n=x,r=x().$utils(),x.duration=function(R,I){var O=x.locale();return p(R,{$l:O},I)},x.isDuration=v;var _=C.prototype.add,T=C.prototype.subtract;C.prototype.add=function(R,I){return v(R)&&(R=R.asMilliseconds()),_.bind(this)(R,I)},C.prototype.subtract=function(R,I){return v(R)&&(R=R.asMilliseconds()),T.bind(this)(R,I)};}});})(a0);var L_=a0.exports;const F_=Gr(L_),us=t_(()=>!!document.querySelectorAll(".bili-feed4").length),kp=document.querySelector(".bili-header__bar"),z_=!!(kp&&window.getComputedStyle(kp).display==="none"),s0=z_?50:64,l0=()=>document.body.classList.contains("dark"),c0=_s({value:l0()});function Wc(){return ha(c0).value}const Ol=new MutationObserver(function(){c0.value=l0();});Ol.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{Ol==null||Ol.disconnect();});function vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function et(e){"@babel/helpers - typeof";return et=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},et(e)}function j_(e,t){if(et(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(et(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function u0(e){var t=j_(e,"string");return et(t)==="symbol"?t:String(t)}function Lp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u0(r.key),r);}}function pn(e,t,n){return t&&Lp(e.prototype,t),n&&Lp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yd(e,t){return Yd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Yd(e,t)}function Fo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yd(e,t);}function Xl(e){return Xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xl(e)}function H_(){if(typeof Reflect>"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 ht(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B_(e,t){if(t&&(et(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ht(e)}function zo(e){var t=H_();return function(){var r=Xl(e),o;if(t){var i=Xl(this).constructor;o=Reflect.construct(r,arguments,i);}else o=r.apply(this,arguments);return B_(this,o)}}var d0={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;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var s=n.apply(null,i);s&&r.push(s);}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&r.push(l);}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n;})();})(d0);var W_=d0.exports;const X=Gr(W_);function Sr(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(Sr(r)):gh.isFragment(r)&&r.props?n=n.concat(Sr(r.props.children,t)):n.push(r));}),n}var Zd={},V_=function(t){};function U_(e,t){}function G_(e,t){}function K_(){Zd={};}function f0(e,t,n){!t&&!Zd[n]&&(e(!1,n),Zd[n]=!0);}function Cn(e,t){f0(U_,e,t);}function X_(e,t){f0(G_,e,t);}Cn.preMessage=V_;Cn.resetWarned=K_;Cn.noteOnce=X_;function V(e,t,n){return t=u0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fp(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 F(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fp(Object(n),!0).forEach(function(r){V(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Rs(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}function Mh(e,t){typeof e=="function"?e(t):et(e)==="object"&&e&&"current"in e&&(e.current=t);}function Pn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(i){Mh(i,o);});}}function Ms(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Rs(function(){return Pn.apply(void 0,t)},t,function(r,o){return r.length===o.length&&r.every(function(i,a){return i===o[a]})})}function jo(e){var t,n,r=gh.isMemo(e)?e.type.type:e.type;return !(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}function ql(e){return e instanceof HTMLElement||e instanceof SVGElement}function ds(e){return ql(e)?e:e instanceof f.Component?Ji.findDOMNode(e):null}var h0=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[];}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r]);},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1);},t.prototype.has=function(n){return !!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0);},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0]);}},t}()}(),Qd=typeof window<"u"&&typeof document<"u"&&window.document===document,Yl=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),q_=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Yl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Y_=2;function Z_(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s();}function a(){q_(i);}function s(){var l=Date.now();if(n){if(l-o<Y_)return;r=!0;}else n=!0,r=!1,setTimeout(a,t);o=l;}return s}var Q_=20,J_=["top","right","bottom","left","width","height","size","weight"],eR=typeof MutationObserver<"u",tR=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Z_(this.refresh.bind(this),Q_);}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_();},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_();},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh();},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Qd||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),eR?(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(){!Qd||!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=J_.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}(),v0=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0});}return e},oa=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Yl},p0=Vc(0,0,0,0);function Zl(e){return parseFloat(e)||0}function zp(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Zl(i)},0)}function nR(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Zl(a);}return n}function rR(e){var t=e.getBBox();return Vc(0,0,t.width,t.height)}function oR(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p0;var r=oa(e).getComputedStyle(e),o=nR(r),i=o.left+o.right,a=o.top+o.bottom,s=Zl(r.width),l=Zl(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=zp(r,"left","right")+i),Math.round(l+a)!==n&&(l-=zp(r,"top","bottom")+a)),!aR(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u);}return Vc(o.left,o.top,s,l)}var iR=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof oa(e).SVGGraphicsElement}:function(e){return e instanceof oa(e).SVGElement&&typeof e.getBBox=="function"}}();function aR(e){return e===oa(e).document.documentElement}function sR(e){return Qd?iR(e)?rR(e):oR(e):p0}function lR(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return v0(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function Vc(e,t,n,r){return {x:e,y:t,width:n,height:r}}var cR=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Vc(0,0,0,0),this.target=t;}return e.prototype.isActive=function(){var t=sR(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),uR=function(){function e(t,n){var r=lR(n);v0(this,{target:t,contentRect:r});}return e}(),dR=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new h0,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r;}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof oa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new cR(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 oa(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 uR(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}(),m0=typeof WeakMap<"u"?new WeakMap:new h0,g0=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=tR.getInstance(),r=new dR(t,n,this);m0.set(this,r);}return e}();["observe","unobserve","disconnect"].forEach(function(e){g0.prototype[e]=function(){var t;return (t=m0.get(this))[e].apply(t,arguments)};});var b0=function(){return typeof Yl.ResizeObserver<"u"?Yl.ResizeObserver:g0}(),Mo=new Map;function fR(e){e.forEach(function(t){var n,r=t.target;(n=Mo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var y0=new b0(fR);function hR(e,t){Mo.has(e)||(Mo.set(e,new Set),y0.observe(e)),Mo.get(e).add(t);}function vR(e,t){Mo.has(e)&&(Mo.get(e).delete(t),Mo.get(e).size||(y0.unobserve(e),Mo.delete(e)));}var pR=function(e){Fo(n,e);var t=zo(n);function n(){return vn(this,n),t.apply(this,arguments)}return pn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),Jd=f__namespace.createContext(null);function mR(e){var t=e.children,n=e.onBatchResize,r=f__namespace.useRef(0),o=f__namespace.useRef([]),i=f__namespace.useContext(Jd),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(Jd.Provider,{value:a},t)}function gR(e,t){var n=e.children,r=e.disabled,o=f__namespace.useRef(null),i=f__namespace.useRef(null),a=f__namespace.useContext(Jd),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)&&jo(l),d=u?l.ref:null,h=f__namespace.useMemo(function(){return Pn(d,o)},[d,o]),v=function(){return ds(o.current)||ds(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,S=b.data,$=g.getBoundingClientRect(),w=$.width,C=$.height,x=g.offsetWidth,_=g.offsetHeight,T=Math.floor(w),R=Math.floor(C);if(c.current.width!==T||c.current.height!==R||c.current.offsetWidth!==x||c.current.offsetHeight!==_){var I={width:T,height:R,offsetWidth:x,offsetHeight:_};c.current=I;var O=x===Math.round(w)?w:x,P=_===Math.round(C)?C:_,E=F(F({},I),{},{offsetWidth:O,offsetHeight:P});a==null||a(E,g,S),y&&Promise.resolve().then(function(){y(E,g);});}},[]);return f__namespace.useEffect(function(){var g=v();return g&&!r&&hR(g,m),function(){return vR(g,m)}},[o.current,r]),f__namespace.createElement(pR,{ref:i},u?f__namespace.cloneElement(l,{ref:h}):l)}var bR=f__namespace.forwardRef(gR),yR="rc-observer-key";function CR(e,t){var n=e.children,r=typeof n=="function"?[n]:Sr(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(yR,"-").concat(i);return f__namespace.createElement(bR,we({},e,{key:a,ref:i===0?t:void 0}),o)})}var vo=f__namespace.forwardRef(CR);vo.Collection=mR;function wr(e,t){var n=F({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}function ef(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function SR(e){if(Array.isArray(e))return ef(e)}function C0(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Th(e,t){if(e){if(typeof e=="string")return ef(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ef(e,t)}}function wR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function me(e){return SR(e)||C0(e)||Th(e)||wR()}function Ih(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 xR(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function qe(e,t){if(e==null)return {};var n=xR(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function Ts(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(Cn(!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;u<i.length;u++)if(!o(i[u],a[u],c))return !1;return !0}if(i&&a&&et(i)==="object"&&et(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(h){return o(i[h],a[h],c)})}return !1}return o(e,t)}var $R=function(){function e(t){vn(this,e),V(this,"instanceId",void 0),V(this,"cache",new Map),this.instanceId=t;}return pn(e,[{key:"get",value:function(n){return this.cache.get(n.join("%"))||null}},{key:"update",value:function(n,r){var o=n.join("%"),i=this.cache.get(o),a=r(i);a===null?this.cache.delete(o):this.cache.set(o,a);}}]),e}(),tf="data-token-hash",Bi="data-css-hash",ki="__cssinjs_instance__";function ER(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Bi,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[ki]=o[ki]||e,o[ki]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(Bi,"]"))).forEach(function(o){var i=o.getAttribute(Bi);if(r[i]){if(o[ki]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o);}}else r[i]=!0;});}return new $R(e)}var OR=f__namespace.createContext({hashPriority:"low",cache:ER(),defaultCache:!0});const Nh=OR;function Mn(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}function Wa(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 jp="data-rc-order",PR="rc-util-key",nf=new Map;function S0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):PR}function Uc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function _R(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function w0(e){return Array.from((nf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function x0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Mn())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(jp,_R(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=Uc(t),a=i.firstChild;if(r){if(r==="queue"){var s=w0(i).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(jp))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,a);}else i.appendChild(o);return o}function $0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Uc(t);return w0(n).find(function(r){return r.getAttribute(S0(t))===e})}function Ql(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=$0(e,t);if(n){var r=Uc(t);r.removeChild(n);}}function RR(e,t){var n=nf.get(e);if(!n||!Wa(document,n)){var r=x0("",t),o=r.parentNode;nf.set(e,o),e.removeChild(r);}}function ia(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Uc(n);RR(r,n);var o=$0(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=x0(e,n);return l.setAttribute(S0(n),t),l}function Jl(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&et(r)==="object"?t+=Jl(r):t+=r;}),t}function MR(e,t){return Ih("".concat(t,"_").concat(Jl(e)))}var Va="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),E0="903px";function TR(e,t){if(Mn()){var n;ia(e,Va);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===E0;return (n=r.parentNode)===null||n===void 0||n.removeChild(r),Ql(Va),o}return !1}var zu=void 0;function IR(){return zu===void 0&&(zu=TR("@layer ".concat(Va," { .").concat(Va," { width: ").concat(E0,"!important; } }"),function(e){e.className=Va;})),zu}function O0(e){if(Array.isArray(e))return e}function NR(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 P0(){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 G(e,t){return O0(e)||NR(e,t)||Th(e,t)||P0()}function _0(e,t,n,r){var o=f__namespace.useContext(Nh),i=o.cache,a=[e].concat(me(t));return f__namespace.useMemo(function(){i.update(a,function(s){var l=s||[],c=G(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=G(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 AR={},DR="css",Zo=new Map;function kR(e){Zo.set(e,(Zo.get(e)||0)+1);}function LR(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(tf,'="').concat(e,'"]'));n.forEach(function(r){if(r[ki]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}function FR(e,t){Zo.set(e,(Zo.get(e)||0)-1);var n=Array.from(Zo.keys()),r=n.filter(function(o){var i=Zo.get(o)||0;return i<=0});r.length<n.length&&r.forEach(function(o){LR(o,t),Zo.delete(o);});}function zR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(Nh),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,s=n.override,l=s===void 0?AR:s,c=n.formatToken,u=f__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(me(t)))},[t]),d=f__namespace.useMemo(function(){return Jl(u)},[u]),h=f__namespace.useMemo(function(){return Jl(l)},[l]),v=_0("token",[a,e.id,d,h],function(){var p=e.getDerivativeToken(u),m=F(F({},p),l);c&&(m=c(m));var g=MR(m,a);m._tokenKey=g,kR(g);var b="".concat(DR,"-").concat(Ih(g));return m._hashId=b,[m,b]},function(p){FR(p[0]._tokenKey,o);});return v}var jR={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},Hp=Mn(),HR="_skip_check_",R0="_multi_value_";function Bp(e){var t=ai(gb(e),bb);return t.replace(/\{%%%\:[^;];}/g,";")}function BR(e){return et(e)==="object"&&e&&(HR in e||R0 in e)}function WR(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 VR=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(S){var $=S.getName(s);if(!v[$]){var w=e(S.style,n,{root:!1,parentSelectors:a}),C=G(w,1),x=C[0];v[$]="@keyframes ".concat(S.getName(s)).concat(x);}}function m(S){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(w){Array.isArray(w)?m(w,$):w&&$.push(w);}),$}var g=m(Array.isArray(t)?t:[t]);if(g.forEach(function(S){var $=typeof S=="string"&&!o?{}:S;if(typeof $=="string")h+="".concat($,`
`);else if($._keyframe)p($);else {var w=d.reduce(function(C,x){var _;return (x==null||(_=x.visit)===null||_===void 0?void 0:_.call(x,C))||C},$);Object.keys(w).forEach(function(C){var x=w[C];if(et(x)==="object"&&x&&(C!=="animationName"||!x._keyframe)&&!BR(x)){var _=!1,T=C.trim(),R=!1;(o||i)&&s?T.startsWith("@")?_=!0:T=WR(C,s,c):o&&!s&&(T==="&"||T==="")&&(T="",R=!0);var I=e(x,n,{root:R,injectHash:_,parentSelectors:[].concat(me(a),[T])}),O=G(I,2),P=O[0],E=O[1];v=F(F({},v),E),h+="".concat(T).concat(P);}else {let A=function(D,L){var B=D.replace(/[A-Z]/g,function(z){return "-".concat(z.toLowerCase())}),U=L;!jR[D]&&typeof U=="number"&&U!==0&&(U="".concat(U,"px")),D==="animationName"&&L!==null&&L!==void 0&&L._keyframe&&(p(L),U=L.getName(s)),h+="".concat(B,":").concat(U,";");};var M,N=(M=x==null?void 0:x.value)!==null&&M!==void 0?M:x;et(x)==="object"&&x!==null&&x!==void 0&&x[R0]&&Array.isArray(N)?N.forEach(function(D){A(C,D);}):A(C,N);}});}}),!o)h="{".concat(h,"}");else if(l&&IR()){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 UR(e,t){return Ih("".concat(e.join("%")).concat(t))}function GR(){return null}function rf(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=f__namespace.useContext(Nh),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=Hp,S=_0("style",b,function(){var _=t(),T=VR(_,{hashId:o,hashPriority:u,layer:i,path:r.join("-"),transformers:v,linters:p}),R=G(T,2),I=R[0],O=R[1],P=Bp(I),E=UR(b,P);if(y){var M={mark:Bi,prepend:"queue",attachTo:d},N=typeof a=="function"?a():a;N&&(M.csp={nonce:N});var A=ia(P,E,M);A[ki]=m.instanceId,A.setAttribute(tf,g),Object.keys(O).forEach(function(D){ia(Bp(O[D]),"_effect-".concat(D),M);});}return [P,g,E]},function(_,T){var R=G(_,3),I=R[2];(T||l)&&Hp&&Ql(I,{mark:Bi});}),$=G(S,3),w=$[0],C=$[1],x=$[2];return function(_){var T;if(!h||y||!c)T=f__namespace.createElement(GR,null);else {var R;T=f__namespace.createElement("style",we({},(R={},V(R,tf,C),V(R,Bi,x),R),{dangerouslySetInnerHTML:{__html:w}}));}return f__namespace.createElement(f__namespace.Fragment,null,T,_)}}var Mt=function(){function e(t,n){vn(this,e),V(this,"name",void 0),V(this,"style",void 0),V(this,"_keyframe",!0),this.name=t,this.style=n;}return pn(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 KR(e,t){if(e.length!==t.length)return !1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return !1;return !0}var Ah=function(){function e(){vn(this,e),V(this,"cache",void 0),V(this,"keys",void 0),V(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return pn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&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=G(c,2),h=d[1];return o.internalGet(u)[1]<h?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=G(i,1),s=a[0];this.delete(s);}this.keys.push(n);}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else {var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map;}});}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return (!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return !KR(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();V(Ah,"MAX_CACHE_SIZE",20);V(Ah,"MAX_CACHE_OFFSET",5);var Wp=0,XR=function(){function e(t){vn(this,e),V(this,"derivatives",void 0),V(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Wp,t.length===0&&(t.length>0,void 0),Wp+=1;}return pn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),ju=new Ah;function M0(e){var t=Array.isArray(e)?e:[e];return ju.has(t)||ju.set(t,new XR(t)),ju.get(t)}function Ci(e){return e.notSplit=!0,e}Ci(["borderTop","borderBottom"]),Ci(["borderTop"]),Ci(["borderBottom"]),Ci(["borderLeft","borderRight"]),Ci(["borderLeft"]),Ci(["borderRight"]);var qR=f.createContext({});const Dh=qR;var Jo="RC_FORM_INTERNAL_HOOKS",kt=function(){Cn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},aa=f__namespace.createContext({getFieldValue:kt,getFieldsValue:kt,getFieldError:kt,getFieldWarning:kt,getFieldsError:kt,isFieldsTouched:kt,isFieldTouched:kt,isFieldValidating:kt,isFieldsValidating:kt,resetFields:kt,setFields:kt,setFieldValue:kt,setFieldsValue:kt,validateFields:kt,submit:kt,getInternalHooks:function(){return kt(),{dispatch:kt,initEntityValue:kt,registerField:kt,useSubscribe:kt,setInitialValues:kt,destroyForm:kt,setCallbacks:kt,registerWatch:kt,getFields:kt,setValidateMessages:kt,setPreserve:kt,getInitialValue:kt}}}),of=f__namespace.createContext(null);function af(e){return e==null?[]:Array.isArray(e)?e:[e]}function YR(e){return e&&!!e._init}function Tn(){Tn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(O,P,E){O[P]=E.value;},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(O,P,E){return Object.defineProperty(O,P,{value:E,enumerable:!0,configurable:!0,writable:!0}),O[P]}try{l({},"");}catch{l=function(E,M,N){return E[M]=N};}function c(O,P,E,M){var N=P&&P.prototype instanceof h?P:h,A=Object.create(N.prototype),D=new T(M||[]);return r(A,"_invoke",{value:w(O,E,D)}),A}function u(O,P,E){try{return {type:"normal",arg:O.call(P,E)}}catch(M){return {type:"throw",arg:M}}}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(R([])));b&&b!==t&&n.call(b,i)&&(m=b);var y=p.prototype=h.prototype=Object.create(m);function S(O){["next","throw","return"].forEach(function(P){l(O,P,function(E){return this._invoke(P,E)});});}function $(O,P){function E(N,A,D,L){var B=u(O[N],O,A);if(B.type!=="throw"){var U=B.arg,z=U.value;return z&&et(z)=="object"&&n.call(z,"__await")?P.resolve(z.__await).then(function(W){E("next",W,D,L);},function(W){E("throw",W,D,L);}):P.resolve(z).then(function(W){U.value=W,D(U);},function(W){return E("throw",W,D,L)})}L(B.arg);}var M;r(this,"_invoke",{value:function(A,D){function L(){return new P(function(B,U){E(A,D,B,U);})}return M=M?M.then(L,L):L()}});}function w(O,P,E){var M="suspendedStart";return function(N,A){if(M==="executing")throw new Error("Generator is already running");if(M==="completed"){if(N==="throw")throw A;return I()}for(E.method=N,E.arg=A;;){var D=E.delegate;if(D){var L=C(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(M==="suspendedStart")throw M="completed",E.arg;E.dispatchException(E.arg);}else E.method==="return"&&E.abrupt("return",E.arg);M="executing";var B=u(O,P,E);if(B.type==="normal"){if(M=E.done?"completed":"suspendedYield",B.arg===d)continue;return {value:B.arg,done:E.done}}B.type==="throw"&&(M="completed",E.method="throw",E.arg=B.arg);}}}function C(O,P){var E=P.method,M=O.iterator[E];if(M===void 0)return P.delegate=null,E==="throw"&&O.iterator.return&&(P.method="return",P.arg=void 0,C(O,P),P.method==="throw")||E!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+E+"' method")),d;var N=u(M,O.iterator,P.arg);if(N.type==="throw")return P.method="throw",P.arg=N.arg,P.delegate=null,d;var A=N.arg;return A?A.done?(P[O.resultName]=A.value,P.next=O.nextLoc,P.method!=="return"&&(P.method="next",P.arg=void 0),P.delegate=null,d):A:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,d)}function x(O){var P={tryLoc:O[0]};1 in O&&(P.catchLoc=O[1]),2 in O&&(P.finallyLoc=O[2],P.afterLoc=O[3]),this.tryEntries.push(P);}function _(O){var P=O.completion||{};P.type="normal",delete P.arg,O.completion=P;}function T(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(x,this),this.reset(!0);}function R(O){if(O){var P=O[i];if(P)return P.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var E=-1,M=function N(){for(;++E<O.length;)if(n.call(O,E))return N.value=O[E],N.done=!1,N;return N.value=void 0,N.done=!0,N};return M.next=M}}return {next:I}}function I(){return {value:void 0,done:!0}}return v.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:v,configurable:!0}),v.displayName=l(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(O){var P=typeof O=="function"&&O.constructor;return !!P&&(P===v||(P.displayName||P.name)==="GeneratorFunction")},e.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,p):(O.__proto__=p,l(O,s,"GeneratorFunction")),O.prototype=Object.create(y),O},e.awrap=function(O){return {__await:O}},S($.prototype),l($.prototype,a,function(){return this}),e.AsyncIterator=$,e.async=function(O,P,E,M,N){N===void 0&&(N=Promise);var A=new $(c(O,P,E,M),N);return e.isGeneratorFunction(P)?A:A.next().then(function(D){return D.done?D.value:A.next()})},S(y),l(y,s,"Generator"),l(y,i,function(){return this}),l(y,"toString",function(){return "[object Generator]"}),e.keys=function(O){var P=Object(O),E=[];for(var M in P)E.push(M);return E.reverse(),function N(){for(;E.length;){var A=E.pop();if(A in P)return N.value=A,N.done=!1,N}return N.done=!0,N}},e.values=R,T.prototype={constructor:T,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!P)for(var E in this)E.charAt(0)==="t"&&n.call(this,E)&&!isNaN(+E.slice(1))&&(this[E]=void 0);},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var E=this;function M(U,z){return D.type="throw",D.arg=P,E.next=U,z&&(E.method="next",E.arg=void 0),!!z}for(var N=this.tryEntries.length-1;N>=0;--N){var A=this.tryEntries[N],D=A.completion;if(A.tryLoc==="root")return M("end");if(A.tryLoc<=this.prev){var L=n.call(A,"catchLoc"),B=n.call(A,"finallyLoc");if(L&&B){if(this.prev<A.catchLoc)return M(A.catchLoc,!0);if(this.prev<A.finallyLoc)return M(A.finallyLoc)}else if(L){if(this.prev<A.catchLoc)return M(A.catchLoc,!0)}else {if(!B)throw new Error("try statement without catch or finally");if(this.prev<A.finallyLoc)return M(A.finallyLoc)}}}},abrupt:function(P,E){for(var M=this.tryEntries.length-1;M>=0;--M){var N=this.tryEntries[M];if(N.tryLoc<=this.prev&&n.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var A=N;break}}A&&(P==="break"||P==="continue")&&A.tryLoc<=E&&E<=A.finallyLoc&&(A=null);var D=A?A.completion:{};return D.type=P,D.arg=E,A?(this.method="next",this.next=A.finallyLoc,d):this.complete(D)},complete:function(P,E){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&E&&(this.next=E),d},finish:function(P){for(var E=this.tryEntries.length-1;E>=0;--E){var M=this.tryEntries[E];if(M.finallyLoc===P)return this.complete(M.completion,M.afterLoc),_(M),d}},catch:function(P){for(var E=this.tryEntries.length-1;E>=0;--E){var M=this.tryEntries[E];if(M.tryLoc===P){var N=M.completion;if(N.type==="throw"){var A=N.arg;_(M);}return A}}throw new Error("illegal catch attempt")},delegateYield:function(P,E,M){return this.delegate={iterator:R(P),resultName:E,nextLoc:M},this.method==="next"&&(this.arg=void 0),d}},e}function Vp(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 vi(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){Vp(i,r,o,a,s,"next",l);}function s(l){Vp(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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},ei.apply(this,arguments)}function ZR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fs(e,t);}function sf(e){return sf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sf(e)}function fs(e,t){return fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},fs(e,t)}function QR(){if(typeof Reflect>"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 Pl(e,t,n){return QR()?Pl=Reflect.construct.bind():Pl=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),c=new l;return a&&fs(c,a.prototype),c},Pl.apply(null,arguments)}function JR(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function lf(e){var t=typeof Map=="function"?new Map:void 0;return lf=function(r){if(r===null||!JR(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 Pl(r,arguments,sf(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),fs(o,r)},lf(e)}var e2=/%[sdj%]/g,t2=function(){};typeof process<"u"&&process.env;function cf(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 Xn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(e2,function(s){if(s==="%%")return "%";if(o>=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 n2(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||n2(t)&&typeof e=="string"&&!e)}function r2(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 Up(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<o?t(e[s],i):n([]);}i([]);}function o2(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[]);}),t}var Gp=function(e){ZR(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(lf(Error));function i2(e,t,n,r,o){if(t.first){var i=new Promise(function(h,v){var p=function(b){return r(b),b.length?v(new Gp(b,cf(b))):h(o)},m=o2(e);Up(m,n,p);});return i.catch(function(h){return h}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(h,v){var p=function(g){if(u.push.apply(u,g),c++,c===l)return r(u),u.length?v(new Gp(u,cf(u))):h(o)};s.length||(r(u),h(o)),s.forEach(function(m){var g=e[m];a.indexOf(m)!==-1?Up(g,n,p):r2(g,n,p);});});return d.catch(function(h){return h}),d}function a2(e){return !!(e&&e.message!==void 0)}function s2(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]];}return n}function Kp(e,t){return function(n){var r;return e.fullFields?r=s2(t,e.fullFields):r=t[n.field||e.fullField],a2(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Xp(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=ei({},e[n],r):e[n]=r;}}return e}var T0=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||un(n,a||t.type))&&o.push(Xn(i.messages.required,t.fullField));},l2=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Xn(i.messages.whitespace,t.fullField));},rl,c2=function(){if(rl)return rl;var e="[a-fA-F\\d:]",t=function($){return $&&$.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function($){return $&&$.exact?i:new RegExp("(?:"+t($)+n+t($)+")|(?:"+t($)+o+t($)+")","g")};l.v4=function(S){return S&&S.exact?a:new RegExp(""+t(S)+n+t(S),"g")},l.v6=function(S){return S&&S.exact?s:new RegExp(""+t(S)+o+t(S),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,h=l.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+h+"|"+v+p+m+")"+g+b;return rl=new RegExp("(?:^"+y+"$)","i"),rl},qp={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Da={integer:function(t){return Da.number(t)&&parseInt(t,10)===t},float:function(t){return Da.number(t)&&!Da.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"&&!Da.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(qp.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(c2())},hex:function(t){return typeof t=="string"&&!!t.match(qp.hex)}},u2=function(t,n,r,o,i){if(t.required&&n===void 0){T0(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?Da[s](n)||o.push(Xn(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Xn(i.messages.types[s],t.fullField,t.type));},d2=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(Xn(i.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(Xn(i.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(Xn(i.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(Xn(i.messages[d].range,t.fullField,t.min,t.max));},Si="enum",f2=function(t,n,r,o,i){t[Si]=Array.isArray(t[Si])?t[Si]:[],t[Si].indexOf(n)===-1&&o.push(Xn(i.messages[Si],t.fullField,t[Si].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(Xn(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(Xn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},gt={required:T0,whitespace:l2,type:u2,range:d2,enum:f2,pattern:h2},v2=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();gt.required(t,n,o,a,i,"string"),un(n,"string")||(gt.type(t,n,o,a,i),gt.range(t,n,o,a,i),gt.pattern(t,n,o,a,i),t.whitespace===!0&>.whitespace(t,n,o,a,i));}r(a);},p2=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();gt.required(t,n,o,a,i),n!==void 0&>.type(t,n,o,a,i);}r(a);},m2=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();gt.required(t,n,o,a,i),n!==void 0&&(gt.type(t,n,o,a,i),gt.range(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();gt.required(t,n,o,a,i),n!==void 0&>.type(t,n,o,a,i);}r(a);},b2=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();gt.required(t,n,o,a,i),un(n)||gt.type(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();gt.required(t,n,o,a,i),n!==void 0&&(gt.type(t,n,o,a,i),gt.range(t,n,o,a,i));}r(a);},C2=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();gt.required(t,n,o,a,i),n!==void 0&&(gt.type(t,n,o,a,i),gt.range(t,n,o,a,i));}r(a);},S2=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();gt.required(t,n,o,a,i,"array"),n!=null&&(gt.type(t,n,o,a,i),gt.range(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();gt.required(t,n,o,a,i),n!==void 0&>.type(t,n,o,a,i);}r(a);},x2="enum",$2=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();gt.required(t,n,o,a,i),n!==void 0&>[x2](t,n,o,a,i);}r(a);},E2=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();gt.required(t,n,o,a,i),un(n,"string")||gt.pattern(t,n,o,a,i);}r(a);},O2=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(gt.required(t,n,o,a,i),!un(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),gt.type(t,l,o,a,i),l&>.range(t,l.getTime(),o,a,i);}}r(a);},P2=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;gt.required(t,n,o,a,i,s),r(a);},Hu=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();gt.required(t,n,o,s,i,a),un(n,a)||gt.type(t,n,o,s,i);}r(s);},_2=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();gt.required(t,n,o,a,i);}r(a);},Ua={string:v2,method:p2,number:m2,boolean:g2,regexp:b2,integer:y2,float:C2,array:S2,object:w2,enum:$2,pattern:E2,date:O2,url:Hu,hex:Hu,email:Hu,required:P2,any:_2};function uf(){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 df=uf(),Is=function(){function e(n){this.rules=null,this._messages=df,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=Xp(uf(),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 S=0;S<m.length;S++)y(m[S]);g.length?(b=cf(g),c(g,b)):c(null,s);}if(l.messages){var d=this.messages();d===df&&(d=uf()),Xp(d,l.messages),l.messages=d;}else l.messages=this.messages();var h={},v=l.keys||Object.keys(this.rules);v.forEach(function(m){var g=a.rules[m],b=s[m];g.forEach(function(y){var S=y;typeof S.transform=="function"&&(s===r&&(s=ei({},s)),b=s[m]=S.transform(b)),typeof S=="function"?S={validator:S}:S=ei({},S),S.validator=a.getValidationMethod(S),S.validator&&(S.field=m,S.fullField=S.fullField||m,S.type=a.getType(S),h[m]=h[m]||[],h[m].push({rule:S,value:b,source:s,field:m}));});});var p={};return i2(h,l,function(m,g){var b=m.rule,y=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");y=y&&(b.required||!b.required&&m.value),b.field=m.field;function S(C,x){return ei({},x,{fullField:b.fullField+"."+C,fullFields:b.fullFields?[].concat(b.fullFields,[C]):[C]})}function $(C){C===void 0&&(C=[]);var x=Array.isArray(C)?C:[C];!l.suppressWarning&&x.length&&e.warning("async-validator:",x),x.length&&b.message!==void 0&&(x=[].concat(b.message));var _=x.map(Kp(b,s));if(l.first&&_.length)return p[b.field]=1,g(_);if(!y)g(_);else {if(b.required&&!m.value)return b.message!==void 0?_=[].concat(b.message).map(Kp(b,s)):l.error&&(_=[l.error(b,Xn(l.messages.required,b.field))]),g(_);var T={};b.defaultField&&Object.keys(m.value).map(function(O){T[O]=b.defaultField;}),T=ei({},T,m.rule.fields);var R={};Object.keys(T).forEach(function(O){var P=T[O],E=Array.isArray(P)?P:[P];R[O]=E.map(S.bind(null,O));});var I=new e(R);I.messages(l.messages),m.rule.options&&(m.rule.options.messages=l.messages,m.rule.options.error=l.error),I.validate(m.value,m.rule.options||l,function(O){var P=[];_&&_.length&&P.push.apply(P,_),O&&O.length&&P.push.apply(P,O),g(P.length?P:null);});}}var w;if(b.asyncValidator)w=b.asyncValidator(b,m.value,$,m.source,l);else if(b.validator){try{w=b.validator(b,m.value,$,m.source,l);}catch(C){console.error==null||console.error(C),l.suppressValidatorError||setTimeout(function(){throw C},0),$(C.message);}w===!0?$():w===!1?$(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):w instanceof Array?$(w):w instanceof Error&&$(w.message);}w&&w.then&&w.then(function(){return $()},function(C){return $(C)});},function(m){u(m);},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Ua.hasOwnProperty(r.type))throw new Error(Xn("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?Ua.required:Ua[this.getType(r)]||void 0},e}();Is.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ua[t]=n;};Is.warning=t2;Is.messages=df;Is.validators=Ua;var zn="'${name}' is not a valid ${type}",I0={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:zn,method:zn,array:zn,object:zn,number:zn,date:zn,boolean:zn,integer:zn,float:zn,regexp:zn,email:zn,url:zn,hex:zn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function ao(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function N0(e){return O0(e)||C0(e)||Th(e)||P0()}function A0(e,t,n,r){if(!t.length)return n;var o=N0(t),i=o[0],a=o.slice(1),s;return !e&&typeof i=="number"?s=[]:Array.isArray(e)?s=me(e):s=F({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=A0(s[i],a,n,r),s}function xo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!ao(e,t.slice(0,-1))?e:A0(e,t,n,r)}function Gc(e){return Array.isArray(e)?M2(e):et(e)==="object"&&e!==null?R2(e):e}function R2(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var n in e)t[n]=Gc(e[n]);return t}return e}function M2(e){return e.map(function(t){return Gc(t)})}function Jt(e){return af(e)}function Yp(e,t){var n={};return t.forEach(function(r){var o=ao(e,r);n=xo(n,r,o);}),n}function Ga(e,t){return e&&e.some(function(n){return k0(n,t)})}function Zp(e){return et(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function D0(e,t){var n=Array.isArray(e)?me(e):F({},e);return t&&Object.keys(t).forEach(function(r){var o=n[r],i=t[r],a=Zp(o)&&Zp(i);n[r]=a?D0(o,i||{}):Gc(i);}),n}function Ka(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(function(o,i){return D0(o,i)},e)}function k0(e,t){return !e||!t||e.length!==t.length?!1:e.every(function(n,r){return t[r]===n})}function T2(e,t){if(e===t)return !0;if(!e&&t||e&&!t||!e||!t||et(e)!=="object"||et(t)!=="object")return !1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return me(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function I2(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&et(t.target)==="object"&&e in t.target?t.target[e]:t}function Qp(e,t,n){var r=e.length;if(t<0||t>=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 Jp=Is;function N2(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var em="CODE_LOGIC_ERROR";function ff(e,t,n,r,o){return hf.apply(this,arguments)}function hf(){return hf=vi(Tn().mark(function e(t,n,r,o,i){var a,s,l,c,u,d,h,v,p;return Tn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return a=F({},r),delete a.ruleIndex,Jp.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(em)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Jp(V({},t,[a])),u=Ka({},I0,o.validateMessages),c.messages(u),d=[],g.prev=10,g.next=13,Promise.resolve(c.validate(V({},t,n),F({},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 S=b.message,$=S===em?u.default:S;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 ff("".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=F(F({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),p=d.map(function(b){return typeof b=="string"?N2(b,v):b}),g.abrupt("return",p);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),hf.apply(this,arguments)}function A2(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(u,d){var h=u.validator,v=F(F({},u),{},{ruleIndex:d});return h&&(v.validator=function(p,m,g){var b=!1,y=function(){for(var w=arguments.length,C=new Array(w),x=0;x<w;x++)C[x]=arguments[x];Promise.resolve().then(function(){Cn(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||g.apply(void 0,C);});},S=h(p,m,y);b=S&&typeof S.then=="function"&&typeof S.catch=="function",Cn(b,"`callback` is deprecated. Please return a promise instead."),b&&S.then(function(){g();}).catch(function($){g($||" ");});}),v}).sort(function(u,d){var h=u.warningOnly,v=u.ruleIndex,p=d.warningOnly,m=d.ruleIndex;return !!h==!!p?v-m:h?1:-1}),l;if(o===!0)l=new Promise(function(){var u=vi(Tn().mark(function d(h,v){var p,m,g;return Tn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:p=0;case 1:if(!(p<s.length)){y.next=12;break}return m=s[p],y.next=5,ff(a,t,m,r,i);case 5:if(g=y.sent,!g.length){y.next=9;break}return v([{errors:g,rule:m}]),y.abrupt("return");case 9:p+=1,y.next=1;break;case 12:h([]);case 13:case"end":return y.stop()}},d)}));return function(d,h){return u.apply(this,arguments)}}());else {var c=s.map(function(u){return ff(a,t,u,r,i).then(function(d){return {errors:d,rule:u}})});l=(o?k2(c):D2(c)).then(function(u){return Promise.reject(u)});}return l.catch(function(u){return u}),l}function D2(e){return vf.apply(this,arguments)}function vf(){return vf=vi(Tn().mark(function e(t){return Tn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,me(o));return a}));case 1:case"end":return r.stop()}},e)})),vf.apply(this,arguments)}function k2(e){return pf.apply(this,arguments)}function pf(){return pf=vi(Tn().mark(function e(t){var n;return Tn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([]);});});}));case 2:case"end":return o.stop()}},e)})),pf.apply(this,arguments)}var L2=["name"],tr=[];function tm(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var kh=function(e){Fo(n,e);var t=zo(n);function n(r){var o;if(vn(this,n),o=t.call(this,r),o.state={resetCount:0},o.cancelRegisterFunc=null,o.mounted=!1,o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.prevValidating=void 0,o.errors=tr,o.warnings=tr,o.cancelRegister=function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Jt(d)),o.cancelRegisterFunc=null;},o.getNamePath=function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,h=d===void 0?[]:d;return c!==void 0?[].concat(me(h),me(c)):[]},o.getRules=function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(h){return typeof h=="function"?h(d):h})},o.refresh=function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return {resetCount:c+1}});},o.triggerMetaEvent=function(l){var c=o.props.onMetaChange;c==null||c(F(F({},o.getMeta()),{},{destroy:l}));},o.onStoreChange=function(l,c,u){var d=o.props,h=d.shouldUpdate,v=d.dependencies,p=v===void 0?[]:v,m=d.onReset,g=u.store,b=o.getNamePath(),y=o.getValue(l),S=o.getValue(g),$=c&&Ga(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&y!==S&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=tr,o.warnings=tr,o.triggerMetaEvent()),u.type){case"reset":if(!c||$){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=tr,o.warnings=tr,o.triggerMetaEvent(),m==null||m(),o.refresh();return}break;case"remove":{if(h){o.reRender();return}break}case"setField":{if($){var w=u.data;"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||tr),"warnings"in w&&(o.warnings=w.warnings||tr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}if(h&&!b.length&&tm(h,l,g,y,S,u)){o.reRender();return}break}case"dependenciesUpdate":{var C=p.map(Jt);if(C.some(function(x){return Ga(u.relatedFields,x)})){o.reRender();return}break}default:if($||(!p.length||b.length||h)&&tm(h,l,g,y,S,u)){o.reRender();return}break}h===!0&&o.reRender();},o.validateRules=function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},h=d.triggerName,v=d.validateOnly,p=v===void 0?!1:v,m=Promise.resolve().then(function(){if(!o.mounted)return [];var g=o.props,b=g.validateFirst,y=b===void 0?!1:b,S=g.messageVariables,$=o.getRules();h&&($=$.filter(function(C){return C}).filter(function(C){var x=C.validateTrigger;if(!x)return !0;var _=af(x);return _.includes(h)}));var w=A2(c,u,$,l,y,S);return w.catch(function(C){return C}).then(function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tr;if(o.validatePromise===m){var x;o.validatePromise=null;var _=[],T=[];(x=C.forEach)===null||x===void 0||x.call(C,function(R){var I=R.rule.warningOnly,O=R.errors,P=O===void 0?tr:O;I?T.push.apply(T,me(P)):_.push.apply(_,me(P));}),o.errors=_,o.warnings=T,o.triggerMetaEvent(),o.reRender();}}),w});return p||(o.validatePromise=m,o.dirty=!0,o.errors=tr,o.warnings=tr,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 F(F({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=Sr(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 ao(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(),S=g.getInternalHooks,$=g.getFieldsValue,w=S(Jo),C=w.dispatch,x=o.getValue(),_=m||function(O){return V({},p,O)},T=l[u],R=F(F({},l),_(x));R[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var O,P=arguments.length,E=new Array(P),M=0;M<P;M++)E[M]=arguments[M];h?O=h.apply(void 0,E):O=I2.apply(void 0,[p].concat(E)),v&&(O=v(O,x,$(!0))),C({type:"updateValue",namePath:y,value:O}),T&&T.apply(void 0,E);};var I=af(b||[]);return I.forEach(function(O){var P=R[O];R[O]=function(){P&&P.apply(void 0,arguments);var E=o.props.rules;E&&E.length&&C({type:"validateField",namePath:y,triggerName:O});};}),R},r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(Jo),s=a.initEntityValue;s(ht(o));}return o}return pn(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)):(Cn(!s,"`children` of Field is not validate ReactElement."),c=s),f__namespace.createElement(f__namespace.Fragment,{key:o},c)}}]),n}(f__namespace.Component);kh.contextType=aa;kh.defaultProps={trigger:"onChange",valuePropName:"value"};function L0(e){var t=e.name,n=qe(e,L2),r=f__namespace.useContext(aa),o=f__namespace.useContext(of),i=t!==void 0?Jt(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),f__namespace.createElement(kh,we({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}var F2=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(aa),c=f__namespace.useContext(of),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 F(F({},l),{},{prefixName:h})},[l,h]),p=f__namespace.useMemo(function(){return {getKey:function(b){var y=h.length,S=b[y];return [d.keys[S],b.slice(y+1)]}}},[h]);if(typeof o!="function")return Cn(!1,"Form.List only accepts function as children."),null;var m=function(b,y,S){var $=S.source;return $==="internal"?!1:b!==y};return f__namespace.createElement(of.Provider,{value:p},f__namespace.createElement(aa.Provider,{value:v},f__namespace.createElement(L0,{name:[],shouldUpdate:m,rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:s??!!c},function(g,b){var y=g.value,S=y===void 0?[]:y,$=g.onChange,w=l.getFieldValue,C=function(){var R=w(h||[]);return R||[]},x={add:function(R,I){var O=C();I>=0&&I<=O.length?(d.keys=[].concat(me(d.keys.slice(0,I)),[d.id],me(d.keys.slice(I))),$([].concat(me(O.slice(0,I)),[R],me(O.slice(I))))):(d.keys=[].concat(me(d.keys),[d.id]),$([].concat(me(O),[R]))),d.id+=1;},remove:function(R){var I=C(),O=new Set(Array.isArray(R)?R:[R]);O.size<=0||(d.keys=d.keys.filter(function(P,E){return !O.has(E)}),$(I.filter(function(P,E){return !O.has(E)})));},move:function(R,I){if(R!==I){var O=C();R<0||R>=O.length||I<0||I>=O.length||(d.keys=Qp(d.keys,R,I),$(Qp(O,R,I)));}}},_=S||[];return Array.isArray(_)||(_=[]),o(_.map(function(T,R){var I=d.keys[R];return I===void 0&&(d.keys[R]=d.id,I=d.keys[R],d.id+=1),{name:R,key:I,isListField:!0}}),x,b)})))};function z2(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 F0="__@field_split__";function Bu(e){return e.map(function(t){return "".concat(et(t),":").concat(t)}).join(F0)}var wi=function(){function e(){vn(this,e),this.kvs=new Map;}return pn(e,[{key:"set",value:function(n,r){this.kvs.set(Bu(n),r);}},{key:"get",value:function(n){return this.kvs.get(Bu(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(Bu(n));}},{key:"map",value:function(n){return me(this.kvs.entries()).map(function(r){var o=G(r,2),i=o[0],a=o[1],s=i.split(F0);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=G(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}(),j2=["name"],H2=pn(function e(t){var n=this;vn(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}):(Cn(!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=Ka({},r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=xo(a,l,ao(r,l));}),n.prevWithoutPreserves=null,n.updateStore(a);}},this.destroyForm=function(){var r=new wi;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0);}),n.prevWithoutPreserves=r;},this.getInitialValue=function(r){var o=ao(n.initialValues,r);return r.length?Gc(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 wi;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);}}),Yp(n.store,a.map(Jt))},this.getFieldValue=function(r){n.warningUnhooked();var o=Jt(r);return ao(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;i<r;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(Jt),c=!1):(l=null,c=a):(l=a.map(Jt),c=s);var u=n.getFieldEntities(!0),d=function(g){return g.isFieldTouched()};if(!l)return c?u.every(d):u.some(d);var h=new wi;l.forEach(function(m){h.set(m,[]);}),u.forEach(function(m){var g=m.getNamePath();l.forEach(function(b){b.every(function(y,S){return g[S]===y})&&h.update(b,function(y){return [].concat(me(y),[m])});});});var v=function(g){return g.some(d)},p=h.map(function(m){var g=m.value;return g});return c?p.every(v):p.some(v)},this.isFieldTouched=function(r){return n.warningUnhooked(),n.isFieldsTouched([r])},this.isFieldsValidating=function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(Jt);return o.some(function(a){var s=a.getNamePath();return Ga(i,s)&&a.isFieldValidating()})},this.isFieldValidating=function(r){return n.warningUnhooked(),n.isFieldsValidating([r])},this.resetWithFieldInitialValue=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new wi,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)Cn(!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)Cn(!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(xo(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(Ka({},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(xo(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,j2),c=Jt(s);i.push(c),"value"in l&&n.updateStore(xo(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=F(F({},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=ao(n.store,i);a===void 0&&n.updateStore(xo(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 !k0(d.getNamePath(),o)})){var u=n.store;n.updateStore(xo(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=F(F({},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(xo(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=Yp(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=Ka(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 wi;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 wi;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 Ga(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||Ga(l,m)){var g=h.validateRules(F({validateMessages:F(F({},I0),n.validateMessages)},a));c.push(g.then(function(){return {name:m,errors:[],warnings:[]}}).catch(function(b){var y,S=[],$=[];return (y=b.forEach)===null||y===void 0||y.call(b,function(w){var C=w.rule.warningOnly,x=w.errors;C?$.push.apply($,me(x)):S.push.apply(S,me(x));}),S.length?Promise.reject({name:m,errors:S,warnings:$}):{name:m,errors:S,warnings:$}}));}}});var u=z2(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 z0(e){var t=f__namespace.useRef(),n=f__namespace.useState({}),r=G(n,2),o=r[1];if(!t.current)if(e)t.current=e;else {var i=function(){o({});},a=new H2(i);t.current=a.getForm();}return [t.current]}var mf=f__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),j0=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=f__namespace.useContext(mf),s=f__namespace.useRef({});return f__namespace.createElement(mf.Provider,{value:F(F({},a),{},{validateMessages:F(F({},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=F(F({},s.current),{},V({},c,u))),a.registerForm(c,u);},unregisterForm:function(c){var u=F({},s.current);delete u[c],s.current=u,a.unregisterForm(c);}})},i)},B2=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],W2=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,B2),S=f__namespace.useContext(mf),$=z0(a),w=G($,1),C=w[0],x=C.getInternalHooks(Jo),_=x.useSubscribe,T=x.setInitialValues,R=x.setCallbacks,I=x.setValidateMessages,O=x.setPreserve,P=x.destroyForm;f__namespace.useImperativeHandle(n,function(){return C}),f__namespace.useEffect(function(){return S.registerForm(r,C),function(){S.unregisterForm(r);}},[S,C,r]),I(F(F({},S.validateMessages),d)),R({onValuesChange:p,onFieldsChange:function(z){if(S.triggerFormChange(r,z),m){for(var W=arguments.length,K=new Array(W>1?W-1:0),q=1;q<W;q++)K[q-1]=arguments[q];m.apply(void 0,[z].concat(K));}},onFinish:function(z){S.triggerFormFinish(r,z),g&&g(z);},onFinishFailed:b}),O(s);var E=f__namespace.useRef(null);T(o,!E.current),E.current||(E.current=!0),f__namespace.useEffect(function(){return P},[]);var M,N=typeof l=="function";if(N){var A=C.getFieldsValue(!0);M=l(A,C);}else M=l;_(!N);var D=f__namespace.useRef();f__namespace.useEffect(function(){T2(D.current||[],i||[])||C.setFields(i||[]),D.current=i;},[i,C]);var L=f__namespace.useMemo(function(){return F(F({},C),{},{validateTrigger:v})},[C,v]),B=f__namespace.createElement(aa.Provider,{value:L},M);return u===!1?B:f__namespace.createElement(u,we({},y,{onSubmit:function(z){z.preventDefault(),z.stopPropagation(),C.submit();},onReset:function(z){var W;z.preventDefault(),C.resetFields(),(W=y.onReset)===null||W===void 0||W.call(y,z);}}),B)};function nm(e){try{return JSON.stringify(e)}catch{return Math.random()}}function V2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=r===void 0?[]:r,i=t[1],a=i===void 0?{}:i,s=YR(a)?{form:a}:a,l=s.form,c=f.useState(),u=G(c,2),d=u[0],h=u[1],v=f.useMemo(function(){return nm(d)},[d]),p=f.useRef(v);p.current=v;var m=f.useContext(aa),g=l||m,b=g&&g._init,y=Jt(o),S=f.useRef(y);return S.current=y,f.useEffect(function(){if(b){var $=g.getFieldsValue,w=g.getInternalHooks,C=w(Jo),x=C.registerWatch,_=x(function(R,I){var O=ao(s.preserve?I:R,S.current),P=nm(O);p.current!==P&&(p.current=P,h(O));}),T=ao(s.preserve?$(!0):$(),S.current);return h(T),_}},[b]),d}var U2=f__namespace.forwardRef(W2),Ns=U2;Ns.FormProvider=j0;Ns.Field=L0;Ns.List=F2;Ns.useForm=z0;Ns.useWatch=V2;const G2={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var K2={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const X2={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},H0=X2,q2={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},K2),timePickerLocale:Object.assign({},H0)},rm=q2,jn="${label} is not a valid ${type}",Y2={locale:"en",Pagination:G2,DatePicker:rm,TimePicker:H0,Calendar:rm,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:jn,method:jn,array:jn,object:jn,number:jn,date:jn,boolean:jn,integer:jn,float:jn,regexp:jn,email:jn,url:jn,hex:jn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}},sa=Y2;let Wu=Object.assign({},sa.Modal);function om(e){e?Wu=Object.assign(Object.assign({},Wu),e):Wu=Object.assign({},sa.Modal);}const Z2=f.createContext(void 0),Lh=Z2,Q2=(e,t)=>{const n=f__namespace.useContext(Lh),r=f__namespace.useMemo(()=>{var i;const a=t||sa[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?sa.locale:i},[n]);return [r,o]},Fh=Q2,J2="internalMark",eM=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f__namespace.useEffect(()=>(om(t&&t.Modal),()=>{om();}),[t]);const o=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(Lh.Provider,{value:o},n)},tM=eM,nM="5.5.0",hs=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Sn(e,t){rM(e)&&(e="100%");var n=oM(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 ol(e){return Math.min(1,Math.max(0,e))}function rM(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function oM(e){return typeof e=="string"&&e.indexOf("%")!==-1}function B0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function il(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ti(e){return e.length===1?"0"+e:String(e)}function iM(e,t,n){return {r:Sn(e,255)*255,g:Sn(t,255)*255,b:Sn(n,255)*255}}function im(e,t,n){e=Sn(e,255),t=Sn(t,255),n=Sn(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+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6;}return {h:i,s:a,l:s}}function Vu(e,t,n){return n<0&&(n+=1),n>1&&(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=Sn(e,360),t=Sn(t,100),n=Sn(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=Vu(s,a,e+1/3),o=Vu(s,a,e),i=Vu(s,a,e-1/3);}return {r:r*255,g:o*255,b:i*255}}function gf(e,t,n){e=Sn(e,255),t=Sn(t,255),n=Sn(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<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6;}return {h:i,s:l,v:a}}function sM(e,t,n){e=Sn(e,360)*6,t=Sn(t,100),n=Sn(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,a,i,i,s,n][l],u=[s,n,n,a,i,i][l],d=[i,i,s,n,n,a][l];return {r:c*255,g:u*255,b:d*255}}function bf(e,t,n,r){var o=[ti(Math.round(e).toString(16)),ti(Math.round(t).toString(16)),ti(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function lM(e,t,n,r,o){var i=[ti(Math.round(e).toString(16)),ti(Math.round(t).toString(16)),ti(Math.round(n).toString(16)),ti(cM(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function cM(e){return Math.round(parseFloat(e)*255).toString(16)}function am(e){return Wn(e)/255}function Wn(e){return parseInt(e,16)}function uM(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var yf={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 Ai(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"&&(to(e.r)&&to(e.g)&&to(e.b)?(t=iM(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):to(e.h)&&to(e.s)&&to(e.v)?(r=il(e.s),o=il(e.v),t=sM(e.h,r,o),a=!0,s="hsv"):to(e.h)&&to(e.s)&&to(e.l)&&(r=il(e.s),i=il(e.l),t=aM(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=B0(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 dM="[-\\+]?\\d+%?",fM="[-\\+]?\\d*\\.\\d+%?",To="(?:".concat(fM,")|(?:").concat(dM,")"),Uu="[\\s|\\(]+(".concat(To,")[,|\\s]+(").concat(To,")[,|\\s]+(").concat(To,")\\s*\\)?"),Gu="[\\s|\\(]+(".concat(To,")[,|\\s]+(").concat(To,")[,|\\s]+(").concat(To,")[,|\\s]+(").concat(To,")\\s*\\)?"),cr={CSS_UNIT:new RegExp(To),rgb:new RegExp("rgb"+Uu),rgba:new RegExp("rgba"+Gu),hsl:new RegExp("hsl"+Uu),hsla:new RegExp("hsla"+Gu),hsv:new RegExp("hsv"+Uu),hsva:new RegExp("hsva"+Gu),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(yf[e])e=yf[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:Wn(n[1]),g:Wn(n[2]),b:Wn(n[3]),a:am(n[4]),format:t?"name":"hex8"}:(n=cr.hex6.exec(e),n?{r:Wn(n[1]),g:Wn(n[2]),b:Wn(n[3]),format:t?"name":"hex"}:(n=cr.hex4.exec(e),n?{r:Wn(n[1]+n[1]),g:Wn(n[2]+n[2]),b:Wn(n[3]+n[3]),a:am(n[4]+n[4]),format:t?"name":"hex8"}:(n=cr.hex3.exec(e),n?{r:Wn(n[1]+n[1]),g:Wn(n[2]+n[2]),b:Wn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function to(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=uM(t)),this.originalInput=t;var o=Ai(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=B0(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=gf(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=gf(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=im(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=im(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),bf(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),lM(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(Sn(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(Sn(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="#"+bf(this.r,this.g,this.b,!1),n=0,r=Object.entries(yf);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return !1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=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=ol(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=ol(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=ol(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=ol(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<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),al=2,sm=.16,vM=.05,pM=.05,mM=.15,W0=5,V0=4,gM=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function lm(e){var t=e.r,n=e.g,r=e.b,o=gf(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function sl(e){var t=e.r,n=e.g,r=e.b;return "#".concat(bf(t,n,r,!1))}function bM(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function cm(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-al*t:Math.round(e.h)+al*t:r=n?Math.round(e.h)+al*t:Math.round(e.h)-al*t,r<0?r+=360:r>=360&&(r-=360),r}function um(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-sm*t:t===V0?r=e.s+sm:r=e.s+vM*t,r>1&&(r=1),n&&t===W0&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function dm(e,t,n){var r;return n?r=e.v+pM*t:r=e.v-mM*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=Ai(e),o=W0;o>0;o-=1){var i=lm(r),a=sl(Ai({h:cm(i,o,!0),s:um(i,o,!0),v:dm(i,o,!0)}));n.push(a);}n.push(sl(r));for(var s=1;s<=V0;s+=1){var l=lm(r),c=sl(Ai({h:cm(l,s),s:um(l,s),v:dm(l,s)}));n.push(c);}return t.theme==="dark"?gM.map(function(u){var d=u.index,h=u.opacity,v=sl(bM(Ai(t.backgroundColor||"#141414"),Ai(n[d]),h*100));return v}):n}var Ku={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"},Xu={},qu={};Object.keys(Ku).forEach(function(e){Xu[e]=po(Ku[e]),Xu[e].primary=Xu[e][5],qu[e]=po(Ku[e],{theme:"dark",backgroundColor:"#141414"}),qu[e].primary=qu[e][5];});const yM=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},U0=yM;function CM(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"},Kc=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 G0(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 SM=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}},wM=SM;function xM(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},wM(r))}const no=(e,t)=>new en(e).setAlpha(t).toRgbString(),xa=(e,t)=>new en(e).darken(t).toHexString(),$M=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]}},EM=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:no(r,.88),colorTextSecondary:no(r,.65),colorTextTertiary:no(r,.45),colorTextQuaternary:no(r,.25),colorFill:no(r,.15),colorFillSecondary:no(r,.06),colorFillTertiary:no(r,.04),colorFillQuaternary:no(r,.02),colorBgLayout:xa(n,4),colorBgContainer:xa(n,0),colorBgElevated:xa(n,0),colorBgSpotlight:no(r,.85),colorBorder:xa(n,15),colorBorderSecondary:xa(n,6)}};function OM(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 PM=e=>{const t=OM(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]}},K0=PM;function Xc(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),G0(e,{generateColorPalettes:$M,generateNeutralColorPalettes:EM})),K0(e.fontSize)),CM(e)),U0(e)),xM(e))}function Yu(e){return e>=0&&e<=255}function ll(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(Yu(u)&&Yu(d)&&Yu(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 _M=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function RM(e){const{override:t}=e,n=_M(e,["override"]),r=Object.assign({},t);Object.keys(Kc).forEach(h=>{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:ll(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:ll(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ll(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:ll(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 X0="anticon",MM=(e,t)=>t||(e?`ant-${e}`:"ant"),pt=f__namespace.createContext({getPrefixCls:MM,iconPrefixCls:X0}),TM=(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),S=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(${S}px 100%, 50% ${S}px, ${2*i-S}px 100%, ${S}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"}}},Wi={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}),As=()=>({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"}}),IM=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),NM=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"}}}),AM=(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"}}}}},qc=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),jh=e=>({"&:focus-visible":Object.assign({},qc(e))});function mn(e,t,n,r){return o=>{const[i,a,s]=pi(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=f.useContext(pt),d=l(),h={theme:i,token:a,hashId:s,nonce:()=>u==null?void 0:u.nonce};return rf(Object.assign(Object.assign({},h),{path:["Shared",d]}),()=>[{"&":NM(a)}]),[rf(Object.assign(Object.assign({},h),{path:[e,o,c]}),()=>{const{token:v,flush:p}=kM(a),m=typeof n=="function"?n(v):n,g=Object.assign(Object.assign({},m),a[e]),b=`.${o}`,y=Lt(v,{componentCls:b,prefixCls:o,iconCls:`.${c}`,antCls:`.${d}`},g),S=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:AM(a,o),S]}),s]}}const q0=typeof CSSINJS_STATISTIC<"u";let Cf=!0;function Lt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!q0)return Object.assign.apply(Object,[{}].concat(t));Cf=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]});});}),Cf=!0,r}function DM(){}function kM(e){let t,n=e,r=DM;return q0&&(t=new Set,n=new Proxy(e,{get(o,i){return Cf&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t);}),{token:n,keys:t,flush:r}}function Y0(e,t){return hs.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 LM=M0(Xc),ec={token:Kc,hashed:!0},Z0=f.createContext(ec);function pi(){const{token:e,hashed:t,theme:n,components:r}=f.useContext(Z0),o=`${nM}-${t||""}`,i=n||LM,[a,s]=zR(i,[Kc,e],{salt:o,override:Object.assign({override:e},r),formatToken:RM});return [i,a,t?s:""]}const FM=`-ant-${Date.now()}-${Math.random()}`;function zM(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 jM(e,t){const n=zM(e,t);Mn()&&ia(n,`${FM}-dynamic-theme`);}const Sf=f__namespace.createContext(!1),HM=e=>{let{children:t,disabled:n}=e;const r=f__namespace.useContext(Sf);return f__namespace.createElement(Sf.Provider,{value:n??r},t)},Ho=Sf,BM=e=>{const t=f.useContext(Yc);return f.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Er=BM,Q0=f__namespace.createContext(void 0),WM=e=>{let{children:t,size:n}=e;const r=Er(n);return f__namespace.createElement(Q0.Provider,{value:r},t)},Yc=Q0;function VM(){const e=f.useContext(Ho),t=f.useContext(Yc);return {componentDisabled:e,componentSize:t}}function UM(e,t){const n=e||{},r=n.inherit===!1||!t?ec:t;return Rs(()=>{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 !Ts(s,c,!0)}))}var GM=["children"],J0=f__namespace.createContext({});function KM(e){var t=e.children,n=qe(e,GM);return f__namespace.createElement(J0.Provider,{value:n},t)}var XM=function(e){Fo(n,e);var t=zo(n);function n(){return vn(this,n),t.apply(this,arguments)}return pn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component);function No(e){var t=f__namespace.useRef(!1),n=f__namespace.useState(e),r=G(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",cl="appear",ul="enter",dl="leave",fm="none",mr="prepare",Li="start",Fi="active",Hh="end",ey="prepared";function hm(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 qM(e,t){var n={animationend:hm("Animation","AnimationEnd"),transitionend:hm("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var YM=qM(Mn(),typeof window<"u"?window:{}),ty={};if(Mn()){var ZM=document.createElement("div");ty=ZM.style;}var fl={};function ny(e){if(fl[e])return fl[e];var t=YM[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in ty)return fl[e]=t[i],fl[e]}return ""}var ry=ny("animationend"),oy=ny("transitionend"),iy=!!(ry&&oy),vm=ry||"animationend",pm=oy||"transitionend";function mm(e,t){if(!e)return null;if(et(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const QM=function(e){var t=f.useRef(),n=f.useRef(e);n.current=e;var r=f__namespace.useCallback(function(a){n.current(a);},[]);function o(a){a&&(a.removeEventListener(pm,r),a.removeEventListener(vm,r));}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(pm,r),a.addEventListener(vm,r),t.current=a);}return f__namespace.useEffect(function(){return function(){o(t.current);}},[]),[i,o]};var ay=Mn()?f.useLayoutEffect:f.useEffect,sy=function(t){return +setTimeout(t,16)},ly=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(sy=function(t){return window.requestAnimationFrame(t)},ly=function(t){return window.cancelAnimationFrame(t)});var gm=0,Bh=new Map;function cy(e){Bh.delete(e);}var St=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;gm+=1;var r=gm;function o(i){if(i===0)cy(r),t();else {var a=sy(function(){o(i-1);});Bh.set(r,a);}}return o(n),r};St.cancel=function(e){var t=Bh.get(e);return cy(t),ly(t)};const JM=function(){var e=f__namespace.useRef(null);function t(){St.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=St(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 eT=[mr,Li,Fi,Hh],tT=[mr,ey],uy=!1,nT=!0;function dy(e){return e===Fi||e===Hh}const rT=function(e,t,n){var r=No(fm),o=G(r,2),i=o[0],a=o[1],s=JM(),l=G(s,2),c=l[0],u=l[1];function d(){a(mr,!0);}var h=t?tT:eT;return ay(function(){if(i!==fm&&i!==Hh){var v=h.indexOf(i),p=h[v+1],m=n(i);m===uy?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 oT(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,S=r.onEnterActive,$=r.onLeaveActive,w=r.onAppearEnd,C=r.onEnterEnd,x=r.onLeaveEnd,_=r.onVisibleChanged,T=No(),R=G(T,2),I=R[0],O=R[1],P=No(Yo),E=G(P,2),M=E[0],N=E[1],A=No(null),D=G(A,2),L=D[0],B=D[1],U=f.useRef(!1),z=f.useRef(null);function W(){return n()}var K=f.useRef(!1);function q(){N(Yo,!0),B(null,!0);}function Y(he){var ie=W();if(!(he&&!he.deadline&&he.target!==ie)){var xe=K.current,Ne;M===cl&&xe?Ne=w==null?void 0:w(ie,he):M===ul&&xe?Ne=C==null?void 0:C(ie,he):M===dl&&xe&&(Ne=x==null?void 0:x(ie,he)),M!==Yo&&xe&&Ne!==!1&&q();}}var Z=QM(Y),J=G(Z,1),ne=J[0],ae=function(ie){var xe,Ne,Ge;switch(ie){case cl:return xe={},V(xe,mr,h),V(xe,Li,m),V(xe,Fi,y),xe;case ul:return Ne={},V(Ne,mr,v),V(Ne,Li,g),V(Ne,Fi,S),Ne;case dl:return Ge={},V(Ge,mr,p),V(Ge,Li,b),V(Ge,Fi,$),Ge;default:return {}}},de=f__namespace.useMemo(function(){return ae(M)},[M]),pe=rT(M,!e,function(he){if(he===mr){var ie=de[mr];return ie?ie(W()):uy}if(ue in de){var xe;B(((xe=de[ue])===null||xe===void 0?void 0:xe.call(de,W(),null))||null);}return ue===Fi&&(ne(W()),u>0&&(clearTimeout(z.current),z.current=setTimeout(function(){Y({deadline:!0});},u))),ue===ey&&q(),nT}),te=G(pe,2),se=te[0],ue=te[1],ce=dy(ue);K.current=ce,ay(function(){O(t);var he=U.current;U.current=!0;var ie;!he&&t&&s&&(ie=cl),he&&t&&i&&(ie=ul),(he&&!t&&c||!he&&d&&!t&&c)&&(ie=dl);var xe=ae(ie);ie&&(e||xe[mr])?(N(ie),se()):N(Yo);},[t]),f.useEffect(function(){(M===cl&&!s||M===ul&&!i||M===dl&&!c)&&N(Yo);},[s,i,c]),f.useEffect(function(){return function(){U.current=!1,clearTimeout(z.current);}},[]);var ve=f__namespace.useRef(!1);f.useEffect(function(){I&&(ve.current=!0),I!==void 0&&M===Yo&&((ve.current||I)&&(_==null||_(I)),ve.current=!0);},[I,M]);var re=L;return de[mr]&&ue===Li&&(re=F({transition:"none"},re)),[M,ue,re,I??t]}function iT(e){var t=e;et(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(J0),g=m.motion,b=n(o,g),y=f.useRef(),S=f.useRef();function $(){try{return y.current instanceof HTMLElement?y.current:ds(S.current)}catch{return null}}var w=oT(b,s,$,o),C=G(w,4),x=C[0],_=C[1],T=C[2],R=C[3],I=f__namespace.useRef(R);R&&(I.current=!0);var O=f__namespace.useCallback(function(B){y.current=B,Mh(i,B);},[i]),P,E=F(F({},p),{},{visible:s});if(!d)P=null;else if(x===Yo)R?P=d(F({},E),O):!c&&I.current&&v?P=d(F(F({},E),{},{className:v}),O):u||!c&&!v?P=d(F(F({},E),{},{style:{display:"none"}}),O):P=null;else {var M,N;_===mr?N="prepare":dy(_)?N="active":_===Li&&(N="start");var A=mm(h,"".concat(x,"-").concat(N));P=d(F(F({},E),{},{className:X(mm(h,x),(M={},V(M,A,A&&N),V(M,h,typeof h=="string"),M)),style:T}),O);}if(f__namespace.isValidElement(P)&&jo(P)){var D=P,L=D.ref;L||(P=f__namespace.cloneElement(P,{ref:O}));}return f__namespace.createElement(XM,{ref:S},P)});return r.displayName="CSSMotion",r}const Or=iT(iy);var wf="add",xf="keep",$f="remove",Zu="removed";function aT(e){var t;return e&&et(e)==="object"&&"key"in e?t=e:t={key:e},F(F({},t),{},{key:String(t.key)})}function Ef(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(aT)}function sT(){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=Ef(e),a=Ef(t);i.forEach(function(c){for(var u=!1,d=r;d<o;d+=1){var h=a[d];if(h.key===c.key){r<d&&(n=n.concat(a.slice(r,d).map(function(v){return F(F({},v),{},{status:wf})})),r=d),n.push(F(F({},h),{},{status:xf})),r+=1,u=!0;break}}u||n.push(F(F({},c),{},{status:$f}));}),r<o&&(n=n.concat(a.slice(r).map(function(c){return F(F({},c),{},{status:wf})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1;});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,h=u.status;return d!==c||h!==$f}),n.forEach(function(u){u.key===c&&(u.status=xf);});}),n}var lT=["component","children","onVisibleChanged","onAllRemoved"],cT=["status"],uT=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function dT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Or,n=function(r){Fo(i,r);var o=zo(i);function i(){var a;vn(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),V(ht(a),"state",{keyEntities:[]}),V(ht(a),"removeKey",function(u){var d=a.state.keyEntities,h=d.map(function(v){return v.key!==u?v:F(F({},v),{},{status:Zu})});return a.setState({keyEntities:h}),h.filter(function(v){var p=v.status;return p!==Zu}).length}),a}return pn(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,h=c.onVisibleChanged,v=c.onAllRemoved,p=qe(c,lT),m=u||f__namespace.Fragment,g={};return uT.forEach(function(b){g[b]=p[b],delete p[b];}),delete p.keys,f__namespace.createElement(m,p,l.map(function(b){var y=b.status,S=qe(b,cT),$=y===wf||y===xf;return f__namespace.createElement(t,we({},g,{key:S.key,visible:$,eventProps:S,onVisibleChanged:function(C){if(h==null||h(C,{key:S.key}),!C){var x=s.removeKey(S.key);x===0&&v&&v();}}}),d)}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=Ef(c),h=sT(u,d);return {keyEntities:h.filter(function(v){var p=u.find(function(m){var g=m.key;return v.key===g});return !(p&&p.status===Zu&&v.status===$f)})}}}]),i}(f__namespace.Component);return V(n,"defaultProps",{component:"div"}),n}dT(iy);function fT(e){const{children:t}=e,[,n]=pi(),{motion:r}=n,o=f__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?f__namespace.createElement(KM,{motion:r},t):t}const hT=(e,t)=>{const[n,r]=pi();return rf({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},As()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},vT=hT;var pT=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mT=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select"],gT="ant";let fy;function bT(){return fy||gT}const yT=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(fy=t),r&&jM(bT(),r);},CT=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((M,N)=>{const{prefixCls:A}=e;if(N)return N;const D=A||p.getPrefixCls("");return M?`${D}-${M}`:D},[p.getPrefixCls,e.prefixCls]),S=m||p.iconPrefixCls||X0,$=S!==p.iconPrefixCls,w=n||p.csp,C=vT(S,w),x=UM(g,p.theme),_={csp:w,autoInsertSpaceInButton:r,locale:i||v,direction:s,space:l,virtual:c,popupMatchSelectWidth:d??u,popupOverflow:h,getPrefixCls:y,iconPrefixCls:S,theme:x},T=Object.assign({},p);Object.keys(_).forEach(M=>{_[M]!==void 0&&(T[M]=_[M]);}),mT.forEach(M=>{const N=e[M];N&&(T[M]=N);});const R=Rs(()=>T,T,(M,N)=>{const A=Object.keys(M),D=Object.keys(N);return A.length!==D.length||A.some(L=>M[L]!==N[L])}),I=f__namespace.useMemo(()=>({prefixCls:S,csp:w}),[S,w]);let O=$?C(t):t;const P=f__namespace.useMemo(()=>{var M,N,A;return Ka({},((M=sa.Form)===null||M===void 0?void 0:M.defaultValidateMessages)||{},((A=(N=R.locale)===null||N===void 0?void 0:N.Form)===null||A===void 0?void 0:A.defaultValidateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[R,o==null?void 0:o.validateMessages]);Object.keys(P).length>0&&(O=f__namespace.createElement(j0,{validateMessages:P},t)),i&&(O=f__namespace.createElement(tM,{locale:i,_ANT_MARK__:J2},O)),(S||w)&&(O=f__namespace.createElement(Dh.Provider,{value:I},O)),a&&(O=f__namespace.createElement(WM,{size:a},O)),O=f__namespace.createElement(fT,null,O);const E=f__namespace.useMemo(()=>{const M=x||{},{algorithm:N,token:A}=M,D=pT(M,["algorithm","token"]),L=N&&(!Array.isArray(N)||N.length>0)?M0(N):void 0;return Object.assign(Object.assign({},D),{theme:L,token:Object.assign(Object.assign({},Kc),A)})},[x]);return g&&(O=f__namespace.createElement(Z0.Provider,{value:E},O)),b!==void 0&&(O=f__namespace.createElement(HM,{disabled:b},O)),f__namespace.createElement(pt.Provider,{value:R},O)},va=e=>{const t=f__namespace.useContext(pt),n=f__namespace.useContext(Lh);return f__namespace.createElement(CT,Object.assign({parentContext:t,legacyLocale:n},e))};va.ConfigContext=pt;va.SizeContext=Yc;va.config=yT;va.useConfig=VM;Object.defineProperty(va,"SizeContext",{get:()=>Yc});const Wh=va;function ka(e,t,n,r){var o=Ji.unstable_batchedUpdates?function(a){Ji.unstable_batchedUpdates(n,a);}:n;return e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,o,r);}}}function ST(e,t){Cn(e,"[@ant-design/icons] ".concat(t));}function bm(e){return et(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(et(e.icon)==="object"||typeof e.icon=="function")}function ym(){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 Of(e,t,n){return n?f.createElement(e.tag,F(F({key:t},ym(e.attrs)),n),(e.children||[]).map(function(r,o){return Of(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):f.createElement(e.tag,F({key:t},ym(e.attrs)),(e.children||[]).map(function(r,o){return Of(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function hy(e){return po(e)[0]}function vy(e){return e?Array.isArray(e)?e:[e]:[]}var wT=`
.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);
}
}
`,xT=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wT,n=f.useContext(Dh),r=n.csp,o=n.prefixCls,i=t;o&&(i=i.replace(/anticon/g,o)),f.useEffect(function(){ia(i,"@ant-design-icons",{prepend:!0,csp:r});},[]);},$T=["icon","className","onClick","style","primaryColor","secondaryColor"],Xa={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function ET(e){var t=e.primaryColor,n=e.secondaryColor;Xa.primaryColor=t,Xa.secondaryColor=n||hy(t),Xa.calculated=!!n;}function OT(){return F({},Xa)}var Zc=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=qe(t,$T),c=Xa;if(a&&(c={primaryColor:a,secondaryColor:s||hy(a)}),xT(),ST(bm(n),"icon should be icon definiton, but got ".concat(n)),!bm(n))return null;var u=n;return u&&typeof u.icon=="function"&&(u=F(F({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),Of(u.icon,"svg-".concat(u.name),F({className:r,onClick:o,style:i,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};Zc.displayName="IconReact";Zc.getTwoToneColors=OT;Zc.setTwoToneColors=ET;const Vh=Zc;function py(e){var t=vy(e),n=G(t,2),r=n[0],o=n[1];return Vh.setTwoToneColors({primaryColor:r,secondaryColor:o})}function PT(){var e=Vh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var _T=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];py("#1890ff");var Qc=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,_T),d=f__namespace.useContext(Dh),h=d.prefixCls,v=h===void 0?"anticon":h,p=d.rootClassName,m=X(p,v,(n={},V(n,"".concat(v,"-").concat(o.name),!!o.name),V(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=vy(c),S=G(y,2),$=S[0],w=S[1];return f__namespace.createElement("span",F(F({role:"img","aria-label":o.name},u),{},{ref:t,tabIndex:g,onClick:l,className:m}),f__namespace.createElement(Vh,{icon:o,primaryColor:$,secondaryColor:w,style:b}))});Qc.displayName="AntdIcon";Qc.getTwoToneColor=PT;Qc.setTwoToneColor=py;const Qn=Qc;var RT={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 MT=RT;var my=function(t,n){return f__namespace.createElement(Qn,F(F({},t),{},{ref:n,icon:MT}))};my.displayName="CloseCircleFilled";const Uh=f__namespace.forwardRef(my);var TT={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 IT=TT;var gy=function(t,n){return f__namespace.createElement(Qn,F(F({},t),{},{ref:n,icon:IT}))};gy.displayName="CloseOutlined";const Gh=f__namespace.forwardRef(gy);var NT={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 AT=NT;var by=function(t,n){return f__namespace.createElement(Qn,F(F({},t),{},{ref:n,icon:AT}))};by.displayName="ExclamationCircleFilled";const yy=f__namespace.forwardRef(by);function DT(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:Kh}=f__namespace;function Cy(e){return e&&Kh(e)&&e.type===f__namespace.Fragment}function kT(e,t,n){return Kh(e)?f__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function xr(e,t){return kT(e,e,t)}function gr(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<o;a++)i[a]=arguments[a];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}var ee={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>=ee.F1&&n<=ee.F12)return !1;switch(n){case ee.ALT:case ee.CAPS_LOCK:case ee.CONTEXT_MENU:case ee.CTRL:case ee.DOWN:case ee.END:case ee.ESC:case ee.HOME:case ee.INSERT:case ee.LEFT:case ee.MAC_FF_META:case ee.META:case ee.NUMLOCK:case ee.NUM_CENTER:case ee.PAGE_DOWN:case ee.PAGE_UP:case ee.PAUSE:case ee.PRINT_SCREEN:case ee.RIGHT:case ee.SHIFT:case ee.UP:case ee.WIN_KEY:case ee.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=ee.ZERO&&t<=ee.NINE||t>=ee.NUM_ZERO&&t<=ee.NUM_MULTIPLY||t>=ee.A&&t<=ee.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case ee.SPACE:case ee.QUESTION_MARK:case ee.NUM_PLUS:case ee.NUM_MINUS:case ee.NUM_PERIOD:case ee.NUM_DIVISION:case ee.SEMICOLON:case ee.DASH:case ee.EQUALS:case ee.COMMA:case ee.PERIOD:case ee.SLASH:case ee.APOSTROPHE:case ee.SINGLE_QUOTE:case ee.OPEN_SQUARE_BRACKET:case ee.BACKSLASH:case ee.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},LT={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 FT=LT;var Sy=function(t,n){return f__namespace.createElement(Qn,F(F({},t),{},{ref:n,icon:FT}))};Sy.displayName="LoadingOutlined";const wy=f__namespace.forwardRef(Sy);var Ds=F({},Ji__namespace),zT=Ds.version,jT=Ds.render,HT=Ds.unmountComponentAtNode,Jc;try{var BT=Number((zT||"").split(".")[0]);BT>=18&&(Jc=Ds.createRoot);}catch{}function Cm(e){var t=Ds.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&et(t)==="object"&&(t.usingClientEntryPoint=e);}var tc="__rc_react_root__";function WT(e,t){Cm(!0);var n=t[tc]||Jc(t);Cm(!1),n.render(e),t[tc]=n;}function VT(e,t){jT(e,t);}function UT(e,t){if(Jc){WT(e,t);return}VT(e,t);}function GT(e){return Pf.apply(this,arguments)}function Pf(){return Pf=vi(Tn().mark(function e(t){return Tn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[tc])===null||o===void 0||o.unmount(),delete t[tc];}));case 1:case"end":return r.stop()}},e)})),Pf.apply(this,arguments)}function KT(e){HT(e);}function XT(e){return _f.apply(this,arguments)}function _f(){return _f=vi(Tn().mark(function e(t){return Tn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Jc===void 0){r.next=2;break}return r.abrupt("return",GT(t));case 2:KT(t);case 3:case"end":return r.stop()}},e)})),_f.apply(this,arguments)}const eu=function(e){if(!e)return !1;if(e instanceof Element){if(e.offsetParent)return !0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return !0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return !0}}return !1},qT=e=>{const{componentCls:t,colorPrimary:n}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},YT=mn("Wave",e=>[qT(e)]);function ZT(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 Qu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&ZT(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function QT(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Qu(t)?t:Qu(n)?n:Qu(r)?r:null}function Ju(e){return Number.isNaN(e)?0:e}const JT=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 S(){const $=getComputedStyle(n);i(QT(n));const w=$.position==="static",{borderLeftWidth:C,borderTopWidth:x}=$;c(w?n.offsetLeft:Ju(-parseFloat(C))),d(w?n.offsetTop:Ju(-parseFloat(x))),v(n.offsetWidth),m(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:T,borderBottomLeftRadius:R,borderBottomRightRadius:I}=$;s([_,T,I,R].map(O=>Ju(parseFloat(O))));}return f__namespace.useEffect(()=>{if(n){const $=St(()=>{S(),b(!0);});let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(S),w.observe(n)),()=>{St.cancel($),w==null||w.disconnect();}}},[]),g?f__namespace.createElement(Or,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,w)=>{var C;if(w.deadline||w.propertyName==="opacity"){const x=(C=r.current)===null||C===void 0?void 0:C.parentElement;XT(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 eI(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),UT(f__namespace.createElement(JT,{target:e,className:t}),n);}function tI(e,t){function n(){const r=e.current;eI(r,t);}return n}const nI=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=f.useContext(pt),o=f.useRef(null),i=r("wave"),[,a]=YT(i),s=tI(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"||!eu(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=jo(t)?Pn(t.ref,o):o;return xr(t,{ref:l})},xy=nI,rI=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},oI=rI,iI=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"}}}},$y=mn("Space",e=>[iI(e),oI(e)],()=>({}),{resetStyle:!1});var Ey=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const tu=f__namespace.createContext(null),ks=(e,t)=>{const n=f__namespace.useContext(tu),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}},vs=e=>{let{children:t}=e;return f__namespace.createElement(tu.Provider,{value:null},t)},aI=e=>{var{children:t}=e,n=Ey(e,["children"]);return f__namespace.createElement(tu.Provider,{value:n},t)},sI=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(pt),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=Ey(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Er(S=>{var $;return ($=r??S)!==null&&$!==void 0?$:"middle"}),h=t("space-compact",a),[v,p]=$y(h),m=X(h,p,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:i,[`${h}-vertical`]:o==="vertical"},s,l),g=f__namespace.useContext(tu),b=Sr(c),y=f__namespace.useMemo(()=>b.map((S,$)=>{const w=S&&S.key||`${h}-item-${$}`;return f__namespace.createElement(aI,{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))},S)}),[r,b,g]);return b.length===0?null:v(f__namespace.createElement("div",Object.assign({className:m},u),y))},lI=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)}),Oy=lI,Sm=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=X(`${n}-loading-icon`,r);return f.createElement(Oy,{prefixCls:n,className:a,style:o,ref:t},f.createElement(wy,{className:i}))}),ed=()=>({width:0,opacity:0,transform:"scale(0)"}),td=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),cI=e=>{let{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e;const a=!!n;return r?f.createElement(Sm,{prefixCls:t,className:o,style:i}):f.createElement(Or,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:ed,onAppearActive:td,onEnterStart:ed,onEnterActive:td,onLeaveStart:td,onLeaveActive:ed},(s,l)=>{let{className:c,style:u}=s;return f.createElement(Sm,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:l,iconClassName:c})})},uI=cI;var dI=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Py=f__namespace.createContext(void 0),fI=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(pt),{prefixCls:r,size:o,className:i}=e,a=dI(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=pi();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(Py.Provider,{value:o},f__namespace.createElement("div",Object.assign({},a,{className:u})))},hI=fI,wm=/^[\u4e00-\u9fa5]{2}$/,Rf=wm.test.bind(wm);function vI(e){return typeof e=="string"}function nd(e){return e==="text"||e==="link"}function pI(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&vI(e.type)&&Rf(e.props.children)?xr(e,{children:e.props.children.split("").join(n)}):typeof e=="string"?Rf(e)?f.createElement("span",null,e.split("").join(n)):f.createElement("span",null,e):Cy(e)?f.createElement("span",null,e):e}function mI(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=>pI(o,t))}function gI(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 bI(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 nu(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({},gI(e,r,t)),bI(n,r,t))}}function yI(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function CI(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 SI(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},yI(e,t)),CI(e.componentCls,t))}}const xm=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),wI=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}},xm(`${t}-primary`,o),xm(`${t}-danger`,i)]}},xI=wI,$I=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},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},[`> span + ${n}`]:{marginInlineStart: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}}),EI=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),OI=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Mf=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),nc=(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}})}),Xh=e=>({"&:disabled":Object.assign({},Mf(e))}),_y=e=>Object.assign({},Xh(e)),rc=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Ry=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_y(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})),nc(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})),nc(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Xh(e))}),PI=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_y(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})),nc(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})),nc(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Xh(e))}),_I=e=>Object.assign(Object.assign({},Ry(e)),{borderStyle:"dashed"}),RI=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},mo({color:e.colorLinkHover},{color:e.colorLinkActive})),rc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},mo({color:e.colorErrorHover},{color:e.colorErrorActive})),rc(e))}),MI=e=>Object.assign(Object.assign(Object.assign({},mo({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),rc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},rc(e)),mo({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),TI=e=>Object.assign(Object.assign({},Mf(e)),{[`&${e.componentCls}:hover`]:Object.assign({},Mf(e))}),II=e=>{const{componentCls:t}=e;return {[`${t}-default`]:Ry(e),[`${t}-primary`]:PI(e),[`${t}-dashed`]:_I(e),[`${t}-link`]:RI(e),[`${t}-text`]:MI(e),[`${t}-disabled`]:TI(e)}},qh=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}`]:EI(e)},{[`${n}${n}-round${t}`]:OI(e)}]},NI=e=>qh(e),AI=e=>{const t=Lt(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return qh(t,`${e.componentCls}-sm`)},DI=e=>{const t=Lt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return qh(t,`${e.componentCls}-lg`)},kI=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},LI=mn("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=Lt(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return [$I(r),AI(r),NI(r),DI(r),kI(r),II(r),xI(r),nu(e),SI(e)]});var FI=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function My(e){return e==="danger"?{danger:!0}:{type:e}}function zI(e){if(typeof e=="object"&&e){const t=e==null?void 0:e.delay;return {loading:!1,delay:!Number.isNaN(t)&&typeof t=="number"?t:0}}return {loading:!!e,delay:0}}const jI=(e,t)=>{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=FI(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames"]),{getPrefixCls:S,autoInsertSpaceInButton:$,direction:w}=f.useContext(pt),C=S("btn",r),[x,_]=LI(C),T=f.useContext(Ho),R=c??T,I=f.useContext(Py),O=f.useMemo(()=>zI(n),[n]),[P,E]=f.useState(O.loading),[M,N]=f.useState(!1),D=Pn(t,f.createRef()),L=f.Children.count(h)===1&&!v&&!nd(o);f.useEffect(()=>{let se=null;O.delay>0?se=setTimeout(()=>{se=null,E(!0);},O.delay):E(O.loading);function ue(){se&&(clearTimeout(se),se=null);}return ue},[O]),f.useEffect(()=>{if(!D||!D.current||$===!1)return;const se=D.current.textContent;L&&Rf(se)?M||N(!0):M&&N(!1);},[D]);const B=se=>{const{onClick:ue}=e;if(P||R){se.preventDefault();return}ue==null||ue(se);},U=$!==!1,{compactSize:z,compactItemClassnames:W}=ks(C,w),K={large:"lg",small:"sm",middle:void 0},q=Er(se=>{var ue,ce;return (ce=(ue=z??I)!==null&&ue!==void 0?ue:s)!==null&&ce!==void 0?ce:se}),Y=q&&K[q]||"",Z=P?"loading":v,J=wr(y,["navigate"]),ne=J.href!==void 0&&R,ae=X(C,_,{[`${C}-${a}`]:a!=="default"&&a,[`${C}-${o}`]:o,[`${C}-${Y}`]:Y,[`${C}-icon-only`]:!h&&h!==0&&!!Z,[`${C}-background-ghost`]:p&&!nd(o),[`${C}-loading`]:P,[`${C}-two-chinese-chars`]:M&&U&&!P,[`${C}-block`]:m,[`${C}-dangerous`]:!!i,[`${C}-rtl`]:w==="rtl",[`${C}-disabled`]:ne},W,u,d),de=v&&!P?f.createElement(Oy,{prefixCls:C,className:b==null?void 0:b.icon,style:l==null?void 0:l.icon},v):f.createElement(uI,{existIcon:!!v,prefixCls:C,loading:!!P}),pe=h||h===0?mI(h,L&&U):null;if(J.href!==void 0)return x(f.createElement("a",Object.assign({},J,{className:ae,onClick:B,ref:D}),de,pe));let te=f.createElement("button",Object.assign({},y,{type:g,className:ae,onClick:B,disabled:R,ref:D}),de,pe);return nd(o)||(te=f.createElement(xy,{disabled:!!P},te)),x(te)},Yh=f.forwardRef(jI);Yh.Group=hI;Yh.__ANT_BUTTON=!0;const An=Yh;function $m(e){return !!(e&&e.then)}const HI=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]=No(!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=>{$m(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&&!$m(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(An,Object.assign({},My(t),{onClick:g,loading:h,prefixCls:r},o,{ref:d}),n)},BI=HI,rd=()=>({height:0,opacity:0}),Em=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},WI=e=>({height:e?e.offsetHeight:0}),od=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",VI=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:rd,onEnterStart:rd,onAppearActive:Em,onEnterActive:Em,onLeaveStart:WI,onLeaveActive:rd,onAppearEnd:od,onEnterEnd:od,onLeaveEnd:od,motionDeadline:500}},UI=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",ru=(e,t,n)=>n!==void 0?n:`${e}-${t}`;var Ty=f__namespace.createContext(null),Ht=Mn()?f__namespace.useLayoutEffect:f__namespace.useEffect,Vi=function(t,n){var r=f__namespace.useRef(!0);Ht(function(){if(!r.current)return t()},n),Ht(function(){return r.current=!1,function(){r.current=!0;}},[]);},Om=[];function GI(e,t){var n=f__namespace.useState(function(){if(!Mn())return null;var p=document.createElement("div");return p}),r=G(n,1),o=r[0],i=f__namespace.useRef(!1),a=f__namespace.useContext(Ty),s=f__namespace.useState(Om),l=G(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 Ht(function(){return e?a?a(h):h():v(),v},[e]),Ht(function(){c.length&&(c.forEach(function(p){return p()}),u(Om));},[c]),[o,d]}var id;function KI(e){if(typeof document>"u")return 0;if(e||id===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),id=o-i;}return id}function XI(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var qI="rc-util-locker-".concat(Date.now()),Pm=0;function YI(e){var t=!!e,n=f__namespace.useState(function(){return Pm+=1,"".concat(qI,"_").concat(Pm)}),r=G(n,1),o=r[0];Ht(function(){if(t){var i=KI(),a=XI();ia(`
html body {
overflow-y: hidden;
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
}`),o);}else Ql(o);return function(){Ql(o);}},[t,o]);}var _m=!1;function ZI(e){return typeof e=="boolean"&&(_m=e),_m}var Rm=function(t){return t===!1?!1:!Mn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Iy=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=G(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 Rm(o)}),p=G(v,2),m=p[0],g=p[1];f__namespace.useEffect(function(){var I=Rm(o);g(I??null);});var b=GI(h&&!m),y=G(b,2),S=y[0],$=y[1],w=m??S;YI(r&&n&&Mn()&&(w===S||w===document.body));var C=null;if(s&&jo(s)&&t){var x=s;C=x.ref;}var _=Ms(C,t);if(!h||!Mn()||m===void 0)return null;var T=w===!1||ZI(),R=s;return t&&(R=f__namespace.cloneElement(s,{ref:_})),f__namespace.createElement(Ty.Provider,{value:$},T?R:Ji.createPortal(R,w))});function QI(){var e=F({},f__namespace);return e.useId}var Mm=0;function JI(e){var t=f__namespace.useState("ssr-id"),n=G(t,2),r=n[0],o=n[1],i=QI(),a=i==null?void 0:i();return f__namespace.useEffect(function(){if(!i){var s=Mm;Mm+=1,o("rc_unique_".concat(s));}},[]),e||a||r}var eN=`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`,tN=`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`,nN="".concat(eN," ").concat(tN).split(/[\s\n]+/),rN="aria-",oN="data-";function Tm(e,t){return e.indexOf(t)===0}function oc(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=F({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Tm(o,rN))||n.data&&Tm(o,oN)||n.attr&&nN.includes(o))&&(r[o]=e[o]);}),r}const Ur=f__namespace.createContext({}),ic=e=>{let{children:t,status:n,override:r}=e;const o=f.useContext(Ur),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(Ur.Provider,{value:i},t)},iN=()=>Mn()&&window.document.documentElement;let hl;const aN=()=>{if(!iN())return !1;if(hl!==void 0)return hl;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),hl=e.scrollHeight===1,document.body.removeChild(e),hl},sN=e=>({animationDuration:e,animationFillMode:"both"}),lN=e=>({animationDuration:e,animationFillMode:"both"}),Zh=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({},sN(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},lN(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"}}},cN=new Mt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uN=new Mt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),dN=new Mt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fN=new Mt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),hN=new Mt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vN=new Mt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pN=new Mt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mN=new Mt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),gN={"move-up":{inKeyframes:pN,outKeyframes:mN},"move-down":{inKeyframes:cN,outKeyframes:uN},"move-left":{inKeyframes:dN,outKeyframes:fN},"move-right":{inKeyframes:hN,outKeyframes:vN}},Im=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=gN[t];return [Zh(r,o,i,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ny=new Mt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ay=new Mt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Dy=new Mt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ky=new Mt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),bN=new Mt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),yN=new Mt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),CN=new Mt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),SN=new Mt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),wN={"slide-up":{inKeyframes:Ny,outKeyframes:Ay},"slide-down":{inKeyframes:Dy,outKeyframes:ky},"slide-left":{inKeyframes:bN,outKeyframes:yN},"slide-right":{inKeyframes:CN,outKeyframes:SN}},ac=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=wN[t];return [Zh(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}}]},xN=new Mt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$N=new Mt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Nm=new Mt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Am=new Mt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),EN=new Mt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ON=new Mt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),PN=new Mt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),_N=new Mt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),RN=new Mt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),MN=new Mt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),TN=new Mt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),IN=new Mt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),NN={zoom:{inKeyframes:xN,outKeyframes:$N},"zoom-big":{inKeyframes:Nm,outKeyframes:Am},"zoom-big-fast":{inKeyframes:Nm,outKeyframes:Am},"zoom-left":{inKeyframes:PN,outKeyframes:_N},"zoom-right":{inKeyframes:RN,outKeyframes:MN},"zoom-up":{inKeyframes:EN,outKeyframes:ON},"zoom-down":{inKeyframes:TN,outKeyframes:IN}},Ly=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=NN[t];return [Zh(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}}]},AN=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`}}}),DN=AN;function ad(e){return e!==void 0}function Qt(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=No(function(){return ad(o)?o:ad(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=G(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,h=a?a(d):d,v=gr(i),p=No([d]),m=G(p,2),g=m[0],b=m[1];Vi(function(){var S=g[0];c!==S&&v(c,S);},[g]),Vi(function(){ad(o)||u(o);},[o]);var y=gr(function(S,$){u(S,$),b([d],$);});return [h,y]}function Fy(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]=Qt(!1,{value:i.open}),{getPrefixCls:m}=f__namespace.useContext(pt),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);}),S=setInterval(()=>{var $;const w=n?`.${n(g)}`:`.${g}-dropdown`,C=($=l.current)===null||$===void 0?void 0:$.querySelector(w);C&&(clearInterval(S),y.observe(C));},10);return ()=>{clearInterval(S),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(Wh,{theme:{token:{motion:!1}}},f__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},f__namespace.createElement(e,Object.assign({},b))))}}const Ls=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 zy=f__namespace.createContext(null);function kN(){return f__namespace.useContext(zy)}function LN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f__namespace.useState(!1),n=G(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 jy(){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 FN(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 zN=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],xi=void 0;function jN(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,zN),y=a&&!v;function S(_){l(c,_);}f__namespace.useEffect(function(){return function(){S(null);}},[]);var $=i&&o!==xi?i(o):h,w;r||(w={opacity:y?0:1,height:y?0:xi,overflowY:y?"hidden":xi,order:a?p:xi,pointerEvents:y?"none":xi,position:y?"absolute":xi});var C={};y&&(C["aria-hidden"]=!0);var x=f__namespace.createElement(g,we({className:X(!r&&n,u),style:F(F({},w),d)},C,b,{ref:t}),$);return a&&(x=f__namespace.createElement(vo,{onResize:function(T){var R=T.offsetWidth;S(R);},disabled:s},x)),x}var qa=f__namespace.forwardRef(jN);qa.displayName="Item";function HN(e){if(typeof MessageChannel>"u")St(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function BN(){var e=f__namespace.useRef(null),t=function(r){e.current||(e.current=[],HN(function(){Ji.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=G(n,2),o=r[0],i=r[1],a=gr(function(s){e(function(){i(s);});});return [o,a]}var WN=["component"],VN=["className"],UN=["className"],GN=function(t,n){var r=f__namespace.useContext(sc);if(!r){var o=t.component,i=o===void 0?"div":o,a=qe(t,WN);return f__namespace.createElement(i,we({},a,{ref:n}))}var s=r.className,l=qe(r,VN),c=t.className,u=qe(t,UN);return f__namespace.createElement(sc.Provider,{value:null},f__namespace.createElement(qa,we({ref:n,className:X(s,c)},l,u)))},Hy=f__namespace.forwardRef(GN);Hy.displayName="RawItem";var KN=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],sc=f__namespace.createContext(null),By="responsive",Wy="invalidate";function XN(e){return "+ ".concat(e.length," ...")}function qN(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,S=y===void 0?"div":y,$=e.itemComponent,w=e.onVisibleChange,C=qe(e,KN),x=d==="full",_=BN(),T=$a(_,null),R=G(T,2),I=R[0],O=R[1],P=I||0,E=$a(_,new Map),M=G(E,2),N=M[0],A=M[1],D=$a(_,0),L=G(D,2),B=L[0],U=L[1],z=$a(_,0),W=G(z,2),K=W[0],q=W[1],Y=$a(_,0),Z=G(Y,2),J=Z[0],ne=Z[1],ae=f.useState(null),de=G(ae,2),pe=de[0],te=de[1],se=f.useState(null),ue=G(se,2),ce=ue[0],ve=ue[1],re=f__namespace.useMemo(function(){return ce===null&&x?Number.MAX_SAFE_INTEGER:ce||0},[ce,I]),he=f.useState(!1),ie=G(he,2),xe=ie[0],Ne=ie[1],Ge="".concat(r,"-item"),st=Math.max(B,K),lt=p===By,De=i.length&<,ze=p===Wy,_e=De||typeof p=="number"&&i.length>p,ke=f.useMemo(function(){var le=i;return De?I===null&&x?le=i:le=i.slice(0,Math.min(i.length,P/u)):typeof p=="number"&&(le=i.slice(0,p)),le},[i,u,I,p,De]),Pe=f.useMemo(function(){return De?i.slice(re+1):i.slice(ke.length)},[i,ke,De,re]),Ue=f.useCallback(function(le,fe){var oe;return typeof l=="function"?l(le):(oe=l&&(le==null?void 0:le[l]))!==null&&oe!==void 0?oe:fe},[l]),tt=f.useCallback(a||function(le){return le},[a]);function Ce(le,fe,oe){ce===le&&(fe===void 0||fe===pe)||(ve(le),oe||(Ne(le<i.length-1),w==null||w(le)),fe!==void 0&&te(fe));}function Se(le,fe){O(fe.clientWidth);}function Le(le,fe){A(function(oe){var Ee=new Map(oe);return fe===null?Ee.delete(le):Ee.set(le,fe),Ee});}function nt(le,fe){q(fe),U(K);}function Be(le,fe){ne(fe);}function wt(le){return N.get(Ue(ke[le],le))}Ht(function(){if(P&&typeof st=="number"&&ke){var le=J,fe=ke.length,oe=fe-1;if(!fe){Ce(0,null);return}for(var Ee=0;Ee<fe;Ee+=1){var Ie=wt(Ee);if(x&&(Ie=Ie||0),Ie===void 0){Ce(Ee-1,void 0,!0);break}if(le+=Ie,oe===0&&le<=P||Ee===oe-1&&le+wt(oe)<=P){Ce(oe,null);break}else if(le+st>P){Ce(Ee-1,le-Ie-J+K);break}}b&&wt(0)+J>P&&te(null);}},[P,N,K,J,Ue,ke]);var ye=xe&&!!Pe.length,Oe={};pe!==null&&De&&(Oe={position:"absolute",left:pe,top:0});var Ae={prefixCls:Ge,responsive:De,component:$,invalidate:ze},Re=s?function(le,fe){var oe=Ue(le,fe);return f__namespace.createElement(sc.Provider,{key:oe,value:F(F({},Ae),{},{order:fe,item:le,itemKey:oe,registerSize:Le,display:fe<=re})},s(le,fe))}:function(le,fe){var oe=Ue(le,fe);return f__namespace.createElement(qa,we({},Ae,{order:fe,key:oe,item:le,renderItem:tt,itemKey:oe,registerSize:Le,display:fe<=re}))},Qe,Tt={order:ye?re:Number.MAX_SAFE_INTEGER,className:"".concat(Ge,"-rest"),registerSize:nt,display:ye};if(g)g&&(Qe=f__namespace.createElement(sc.Provider,{value:F(F({},Ae),Tt)},g(Pe)));else {var Ft=m||XN;Qe=f__namespace.createElement(qa,we({},Ae,Tt),typeof Ft=="function"?Ft(Pe):Ft);}var Dt=f__namespace.createElement(S,we({className:X(!ze&&r,v),style:h,ref:t},C),ke.map(Re),_e?Qe:null,b&&f__namespace.createElement(qa,we({},Ae,{responsive:lt,responsiveDisabled:!De,order:re,className:"".concat(Ge,"-suffix"),registerSize:Be,display:!0,style:Oe}),b));return lt&&(Dt=f__namespace.createElement(vo,{onResize:Se,disabled:!De},Dt)),Dt}var Hr=f__namespace.forwardRef(qN);Hr.displayName="Overflow";Hr.Item=Hy;Hr.RESPONSIVE=By;Hr.INVALIDATE=Wy;var lc=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))},YN=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,S=t.onPaste,$=t.onCompositionStart,w=t.onCompositionEnd,C=t.open,x=t.attrs,_=s||f__namespace.createElement("input",null),T=_,R=T.ref,I=T.props,O=I.onKeyDown,P=I.onChange,E=I.onMouseDown,M=I.onCompositionStart,N=I.onCompositionEnd,A=I.style;return "maxLength"in _.props,_=f__namespace.cloneElement(_,F(F(F({type:"search"},I),{},{id:a,ref:Pn(n,R),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:X("".concat(i,"-selection-search-input"),(r=_)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":C,"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:F(F({},A),{},{opacity:h?null:0}),onKeyDown:function(L){g(L),O&&O(L);},onMouseDown:function(L){b(L),E&&E(L);},onChange:function(L){y(L),P&&P(L);},onCompositionStart:function(L){$(L),M&&M(L);},onCompositionEnd:function(L){w(L),N&&N(L);},onPaste:S})),_},Qh=f__namespace.forwardRef(YN);Qh.displayName="Input";function Vy(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var ZN=typeof window<"u"&&window.document&&window.document.documentElement,QN=ZN;function JN(e){return e!=null}function Dm(e){return ["string","number"].includes(et(e))}function Uy(e){var t=void 0;return e&&(Dm(e.title)?t=e.title.toString():Dm(e.label)&&(t=e.label.toString())),t}function eA(e,t){QN?f__namespace.useLayoutEffect(e,t):f__namespace.useEffect(e,t);}function tA(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var km=function(t){t.preventDefault(),t.stopPropagation();},nA=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,S=t.maxTagTextLength,$=t.maxTagPlaceholder,w=$===void 0?function(te){return "+ ".concat(te.length," ...")}:$,C=t.tagRender,x=t.onToggleOpen,_=t.onRemove,T=t.onInputChange,R=t.onInputPaste,I=t.onInputKeyDown,O=t.onInputMouseDown,P=t.onInputCompositionStart,E=t.onInputCompositionEnd,M=f__namespace.useRef(null),N=f.useState(0),A=G(N,2),D=A[0],L=A[1],B=f.useState(!1),U=G(B,2),z=U[0],W=U[1],K="".concat(r,"-selection"),q=i||d==="multiple"&&s===!1||d==="tags"?a:"",Y=d==="tags"||d==="multiple"&&s===!1||h&&(i||z);eA(function(){L(M.current.scrollWidth);},[q]);function Z(te,se,ue,ce,ve){return f__namespace.createElement("span",{className:X("".concat(K,"-item"),V({},"".concat(K,"-item-disabled"),ue)),title:Uy(te)},f__namespace.createElement("span",{className:"".concat(K,"-item-content")},se),ce&&f__namespace.createElement(lc,{className:"".concat(K,"-item-remove"),onMouseDown:km,onClick:ve,customizeIcon:b},"×"))}function J(te,se,ue,ce,ve){var re=function(ie){km(ie),x(!i);};return f__namespace.createElement("span",{onMouseDown:re},C({label:se,value:te,disabled:ue,closable:ce,onClose:ve}))}function ne(te){var se=te.disabled,ue=te.label,ce=te.value,ve=!u&&!se,re=ue;if(typeof S=="number"&&(typeof ue=="string"||typeof ue=="number")){var he=String(re);he.length>S&&(re="".concat(he.slice(0,S),"..."));}var ie=function(Ne){Ne&&Ne.stopPropagation(),_(te);};return typeof C=="function"?J(ce,re,se,ve,ie):Z(te,re,se,ve,ie)}function ae(te){var se=typeof w=="function"?w(te):w;return Z({title:se},se,!1)}var de=f__namespace.createElement("div",{className:"".concat(K,"-search"),style:{width:D},onFocus:function(){W(!0);},onBlur:function(){W(!1);}},f__namespace.createElement(Qh,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:v,autoComplete:p,editable:Y,activeDescendantId:m,value:q,onKeyDown:I,onMouseDown:O,onChange:T,onPaste:R,onCompositionStart:P,onCompositionEnd:E,tabIndex:g,attrs:oc(t,!0)}),f__namespace.createElement("span",{ref:M,className:"".concat(K,"-search-mirror"),"aria-hidden":!0},q," ")),pe=f__namespace.createElement(Hr,{prefixCls:"".concat(K,"-overflow"),data:o,renderItem:ne,renderRest:ae,suffix:de,itemKey:tA,maxCount:y});return f__namespace.createElement(f__namespace.Fragment,null,pe,!o.length&&!q&&f__namespace.createElement("span",{className:"".concat(K,"-placeholder")},c))},rA=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,S=t.onInputKeyDown,$=t.onInputMouseDown,w=t.onInputChange,C=t.onInputPaste,x=t.onInputCompositionStart,_=t.onInputCompositionEnd,T=t.title,R=f__namespace.useState(!1),I=G(R,2),O=I[0],P=I[1],E=u==="combobox",M=E||m,N=h[0],A=g||"";E&&b&&!O&&(A=b),f__namespace.useEffect(function(){E&&P(!1);},[E,b]);var D=u!=="combobox"&&!d&&!m?!1:!!A,L=T===void 0?Uy(N):T,B=function(){if(N)return null;var z=D?{visibility:"hidden"}:void 0;return f__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:z},v)};return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("span",{className:"".concat(r,"-selection-search")},f__namespace.createElement(Qh,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:M,activeDescendantId:c,value:A,onKeyDown:S,onMouseDown:$,onChange:function(z){P(!0),w(z);},onPaste:C,onCompositionStart:x,onCompositionEnd:_,tabIndex:p,attrs:oc(t,!0),maxLength:E?y:void 0})),!E&&N?f__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:D?{visibility:"hidden"}:void 0},N.label):null,B())};function oA(e){return ![ee.ESC,ee.SHIFT,ee.BACKSPACE,ee.TAB,ee.WIN_KEY,ee.ALT,ee.META,ee.WIN_KEY_RIGHT,ee.CTRL,ee.SEMICOLON,ee.EQUALS,ee.CAPS_LOCK,ee.CONTEXT_MENU,ee.F1,ee.F2,ee.F3,ee.F4,ee.F5,ee.F6,ee.F7,ee.F8,ee.F9,ee.F10,ee.F11,ee.F12].includes(e)}var iA=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=jy(0),b=G(g,2),y=b[0],S=b[1],$=function(A){var D=A.which;(D===ee.UP||D===ee.DOWN)&&A.preventDefault(),p&&p(A),D===ee.ENTER&&s==="tags"&&!o.current&&!a&&(h==null||h(A.target.value)),oA(D)&&v(!0);},w=function(){S(!0);},C=f.useRef(null),x=function(A){d(A,!0,o.current)!==!1&&v(!0);},_=function(){o.current=!0;},T=function(A){o.current=!1,s!=="combobox"&&x(A.target.value);},R=function(A){var D=A.target.value;if(c&&C.current&&/[\r\n]/.test(C.current)){var L=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(L,C.current);}C.current=null,x(D);},I=function(A){var D=A.clipboardData,L=D.getData("text");C.current=L;},O=function(A){var D=A.target;if(D!==r.current){var L=document.body.style.msTouchAction!==void 0;L?setTimeout(function(){r.current.focus();}):r.current.focus();}},P=function(A){var D=y();A.target!==r.current&&!D&&s!=="combobox"&&A.preventDefault(),(s!=="combobox"&&(!l||!D)||!a)&&(a&&u!==!1&&d("",!0,!1),v());},E={inputRef:r,onInputKeyDown:$,onInputMouseDown:w,onInputChange:R,onInputPaste:I,onInputCompositionStart:_,onInputCompositionEnd:T},M=s==="multiple"||s==="tags"?f__namespace.createElement(nA,we({},t,E)):f__namespace.createElement(rA,we({},t,E));return f__namespace.createElement("div",{ref:m,className:"".concat(i,"-selector"),onClick:O,onMouseDown:P},M)},Gy=f__namespace.forwardRef(iA);Gy.displayName="Selector";var Lm=f__namespace.createContext(null);function Fm(e){return e?Array.isArray(e)?e:[e]:[]}function aA(e,t,n,r){return f__namespace.useMemo(function(){var o=Fm(n??t),i=Fm(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 sA(){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 lA(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(sA((s=e[l])===null||s===void 0?void 0:s.points,o,r))return "".concat(t,"-placement-").concat(l)}return ""}function zm(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Fs(e){return e.ownerDocument.defaultView}function Tf(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Fs(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement;}return t}function ps(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ea(e){return ps(parseFloat(e),0)}function jm(e,t){var n=F({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement)){var o=Fs(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=Ea(s),b=Ea(l),y=Ea(c),S=Ea(u),$=ps(Math.round(d.width/p*1e3)/1e3),w=ps(Math.round(d.height/h*1e3)/1e3),C=(p-m-y-S)*$,x=(h-v-g-b)*w,_=g*w,T=b*w,R=y*$,I=S*$,O=0,P=0;if(i==="clip"){var E=Ea(a);O=E*$,P=E*w;}var M=d.x+R-O,N=d.y+_-P,A=M+d.width+2*O-R-I-C,D=N+d.height+2*P-_-T-x;n.left=Math.max(n.left,M),n.top=Math.max(n.top,N),n.right=Math.min(n.right,A),n.bottom=Math.min(n.bottom,D);}}),n}function Hm(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 Bm(e,t){var n=t||[],r=G(n,2),o=r[0],i=r[1];return [Hm(e.width,o),Hm(e.height,i)]}function Wm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function $i(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 So(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 cA(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=G(s,2),c=l[0],u=l[1],d=f__namespace.useRef(0),h=f__namespace.useMemo(function(){return t?Tf(t):[]},[t]),v=f__namespace.useRef({}),p=function(){v.current={};};e||p();var m=gr(function(){if(t&&n&&e){let je=function(ct,$t){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:te,Fn=R.x+ct,xn=R.y+$t,_r=Fn+z,er=xn+U,Go=Math.max(Fn,zt.left),Ys=Math.max(xn,zt.top),ba=Math.min(_r,zt.right),Zs=Math.min(er,zt.bottom);return Math.max(0,(ba-Go)*(Zs-Ys))},Ct=function(){Ee=R.y+Be,Ie=Ee+U,Je=R.x+nt,Ut=Je+z;};var y=t,S=y.style.left,$=y.style.top,w=y.ownerDocument,C=Fs(y),x=F(F({},o[r]),i);y.style.left="0",y.style.top="0";var _;if(Array.isArray(n))_={x:n[0],y:n[1],width:0,height:0};else {var T=n.getBoundingClientRect();_={x:T.x,y:T.y,width:T.width,height:T.height};}var R=y.getBoundingClientRect(),I=C.getComputedStyle(y),O=I.width,P=I.height,E=w.documentElement,M=E.clientWidth,N=E.clientHeight,A=E.scrollWidth,D=E.scrollHeight,L=E.scrollTop,B=E.scrollLeft,U=R.height,z=R.width,W=_.height,K=_.width,q={left:0,top:0,right:M,bottom:N},Y={left:-B,top:-L,right:A-B,bottom:D-L},Z=x.htmlRegion,J="visible",ne="visibleFirst";Z!=="scroll"&&Z!==ne&&(Z=J);var ae=Z===ne,de=jm(Y,h),pe=jm(q,h),te=Z===J?pe:de,se=ae?pe:te;y.style.left=S,y.style.top=$;var ue=ps(Math.round(z/parseFloat(O)*1e3)/1e3),ce=ps(Math.round(U/parseFloat(P)*1e3)/1e3);if(ue===0||ce===0||ql(n)&&!eu(n))return;var ve=x.offset,re=x.targetOffset,he=Bm(R,ve),ie=G(he,2),xe=ie[0],Ne=ie[1],Ge=Bm(_,re),st=G(Ge,2),lt=st[0],De=st[1];_.x-=lt,_.y-=De;var ze=x.points||[],_e=G(ze,2),ke=_e[0],Pe=_e[1],Ue=Wm(Pe),tt=Wm(ke),Ce=$i(_,Ue),Se=$i(R,tt),Le=F({},x),nt=Ce.x-Se.x+xe,Be=Ce.y-Se.y+Ne,wt=je(nt,Be),ye=je(nt,Be,pe),Oe=$i(_,["t","l"]),Ae=$i(R,["t","l"]),Re=$i(_,["b","r"]),Qe=$i(R,["b","r"]),Tt=x.overflow||{},Ft=Tt.adjustX,Dt=Tt.adjustY,le=Tt.shiftX,fe=Tt.shiftY,oe=function($t){return typeof $t=="boolean"?$t:$t>=0},Ee,Ie,Je,Ut;Ct();var bt=oe(Dt),nn=tt[0]===Ue[0];if(bt&&tt[0]==="t"&&(Ie>se.bottom||v.current.bt)){var yt=Be;nn?yt-=U-W:yt=Oe.y-Qe.y-Ne;var Ye=je(nt,yt),Ze=je(nt,yt,pe);Ye>wt||Ye===wt&&(!ae||Ze>=ye)?(v.current.bt=!0,Be=yt,Le.points=[So(tt,0),So(Ue,0)]):v.current.bt=!1;}if(bt&&tt[0]==="b"&&(Ee<se.top||v.current.tb)){var Me=Be;nn?Me+=U-W:Me=Re.y-Ae.y-Ne;var xt=je(nt,Me),vt=je(nt,Me,pe);xt>wt||xt===wt&&(!ae||vt>=ye)?(v.current.tb=!0,Be=Me,Le.points=[So(tt,0),So(Ue,0)]):v.current.tb=!1;}var Bt=oe(Ft),Ke=tt[1]===Ue[1];if(Bt&&tt[1]==="l"&&(Ut>se.right||v.current.rl)){var We=nt;Ke?We-=z-K:We=Oe.x-Qe.x-xe;var dt=je(We,Be),Et=je(We,Be,pe);dt>wt||dt===wt&&(!ae||Et>=ye)?(v.current.rl=!0,nt=We,Le.points=[So(tt,1),So(Ue,1)]):v.current.rl=!1;}if(Bt&&tt[1]==="r"&&(Je<se.left||v.current.lr)){var qt=nt;Ke?qt+=z-K:qt=Re.x-Ae.x-xe;var Wt=je(qt,Be),wn=je(qt,Be,pe);Wt>wt||Wt===wt&&(!ae||wn>=ye)?(v.current.lr=!0,nt=qt,Le.points=[So(tt,1),So(Ue,1)]):v.current.lr=!1;}Ct();var In=le===!0?0:le;typeof In=="number"&&(Je<te.left&&(nt-=Je-te.left,_.x+K<te.left+In&&(nt+=_.x-te.left+K-In)),Ut>te.right&&(nt-=Ut-te.right,_.x>te.right-In&&(nt+=_.x-te.right+In)));var lr=fe===!0?0:fe;typeof lr=="number"&&(Ee<te.top&&(Be-=Ee-te.top,_.y+W<te.top+lr&&(Be+=_.y-te.top+W-lr)),Ie>te.bottom&&(Be-=Ie-te.bottom,_.y>te.bottom-lr&&(Be+=_.y-te.bottom+lr)));var Xr=R.x+nt,Pr=Xr+z,Jn=R.y+Be,_n=Jn+U,qr=_.x,Bo=qr+K,Yr=_.y,Zr=Yr+W,Qr=Math.max(Xr,qr),Wo=Math.min(Pr,Bo),Vo=(Qr+Wo)/2,Uo=Vo-Xr,Jr=Math.max(Jn,Yr),eo=Math.min(_n,Zr),$e=(Jr+eo)/2,ge=$e-Jn;a==null||a(t,Le),u({ready:!0,offsetX:nt/ue,offsetY:Be/ce,arrowX:Uo/ue,arrowY:ge/ce,scaleX:ue,scaleY:ce,align:Le});}}),g=function(){d.current+=1;var S=d.current;Promise.resolve().then(function(){d.current===S&&m();});},b=function(){u(function(S){return F(F({},S),{},{ready:!1})});};return Ht(b,[r]),Ht(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function uA(e,t,n,r){Ht(function(){if(e&&t&&n){let u=function(){r();};var o=t,i=n,a=Tf(o),s=Tf(i),l=Fs(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 dA(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],S=m[1];g===y||!["t","b"].includes(g)?v.top=d:g==="t"?v.top=0:v.bottom=0,b===S||!["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 fA(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?f__namespace.createElement(Or,we({},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 hA=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),vA=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,S=e.autoDestroy,$=e.portal,w=e.zIndex,C=e.onMouseEnter,x=e.onMouseLeave,_=e.ready,T=e.offsetX,R=e.offsetY,I=e.onAlign,O=e.onPrepare,P=e.stretch,E=e.targetWidth,M=e.targetHeight,N=typeof n=="function"?n():n,A=l||c,D=(y==null?void 0:y.length)>0,L=f__namespace.useState(!y||!D),B=G(L,2),U=B[0],z=B[1];if(Ht(function(){!U&&D&&a&&z(!0);},[U,D,a]),!U)return null;var W=_||!l?{left:T,top:R}:{left:"-1000vw",top:"-1000vh"},K={};return P&&(P.includes("height")&&M?K.height=M:P.includes("minHeight")&&M&&(K.minHeight=M),P.includes("width")&&E?K.width=E:P.includes("minWidth")&&E&&(K.minWidth=E)),l||(K.pointerEvents="none"),f__namespace.createElement($,{open:b||A,getContainer:y&&function(){return y(a)},autoDestroy:S},f__namespace.createElement(fA,{prefixCls:o,open:l,zIndex:w,mask:d,motion:g}),f__namespace.createElement(vo,{onResize:I,disabled:!l},function(q){return f__namespace.createElement(Or,we({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:O,onEnterPrepare:O,visible:l,onVisibleChanged:function(Z){var J;m==null||(J=m.onVisibleChanged)===null||J===void 0||J.call(m,Z),s(Z);}}),function(Y,Z){var J=Y.className,ne=Y.style,ae=X(o,J,r);return f__namespace.createElement("div",{ref:Pn(q,t,Z),className:ae,style:F(F(F(F({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},W),K),ne),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:C,onMouseLeave:x,onClick:u},h&&f__namespace.createElement(dA,{prefixCls:o,arrow:h,arrowPos:v,align:p}),f__namespace.createElement(hA,{cache:!l},N))})}))}),pA=f__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=jo(n),i=f__namespace.useCallback(function(s){Mh(t,r?r(s):s);},[r]),a=Ms(i,n.ref);return o?f__namespace.cloneElement(n,{ref:a}):n}),mA=["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 gA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Iy,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,S=n.blurDelay,$=n.mask,w=n.maskClosable,C=w===void 0?!0:w,x=n.getPopupContainer,_=n.forceRender,T=n.autoDestroy,R=n.destroyPopupOnHide,I=n.popup,O=n.popupClassName,P=n.popupStyle,E=n.popupPlacement,M=n.builtinPlacements,N=M===void 0?{}:M,A=n.popupAlign,D=n.zIndex,L=n.stretch,B=n.getPopupClassNameFromAlign,U=n.alignPoint,z=n.onPopupClick,W=n.onPopupAlign,K=n.arrow,q=n.popupMotion,Y=n.maskMotion,Z=n.popupTransitionName,J=n.popupAnimation,ne=n.maskTransitionName,ae=n.maskAnimation,de=n.className,pe=n.getTriggerDOMNode,te=qe(n,mA),se=T||R||!1,ue=f__namespace.useState(!1),ce=G(ue,2),ve=ce[0],re=ce[1];Ht(function(){re(Ls());},[]);var he=f__namespace.useRef({}),ie=f__namespace.useContext(Lm),xe=f__namespace.useMemo(function(){return {registerSubPopup:function(rt,It){he.current[rt]=It,ie==null||ie.registerSubPopup(rt,It);}}},[ie]),Ne=JI(),Ge=f__namespace.useState(null),st=G(Ge,2),lt=st[0],De=st[1],ze=gr(function(He){ql(He)&<!==He&&De(He),ie==null||ie.registerSubPopup(Ne,He);}),_e=f__namespace.useState(null),ke=G(_e,2),Pe=ke[0],Ue=ke[1],tt=gr(function(He){ql(He)&&Pe!==He&&Ue(He);}),Ce=f__namespace.Children.only(a),Se=(Ce==null?void 0:Ce.props)||{},Le={},nt=gr(function(He){var rt,It,jt=Pe;return (jt==null?void 0:jt.contains(He))||(jt==null||(rt=jt.getRootNode())===null||rt===void 0?void 0:rt.host)===He||He===jt||(lt==null?void 0:lt.contains(He))||(lt==null||(It=lt.getRootNode())===null||It===void 0?void 0:It.host)===He||He===lt||Object.values(he.current).some(function(Rt){return (Rt==null?void 0:Rt.contains(He))||He===Rt})}),Be=zm(i,q,J,Z),wt=zm(i,Y,ae,ne),ye=f__namespace.useState(h||!1),Oe=G(ye,2),Ae=Oe[0],Re=Oe[1],Qe=d??Ae,Tt=gr(function(He){d===void 0&&Re(He);});Ht(function(){Re(d||!1);},[d]);var Ft=f__namespace.useRef(Qe);Ft.current=Qe;var Dt=gr(function(He){Qe!==He&&(Tt(He),v==null||v(He));}),le=f__namespace.useRef(),fe=function(){clearTimeout(le.current);},oe=function(rt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;fe(),It===0?Dt(rt):le.current=setTimeout(function(){Dt(rt);},It*1e3);};f__namespace.useEffect(function(){return fe},[]);var Ee=f__namespace.useState(!1),Ie=G(Ee,2),Je=Ie[0],Ut=Ie[1],bt=f__namespace.useRef(!0);Ht(function(){(!bt.current||Qe)&&Ut(!0),bt.current=!0;},[Qe]);var nn=f__namespace.useState(null),yt=G(nn,2),Ye=yt[0],Ze=yt[1],Me=f__namespace.useState([0,0]),xt=G(Me,2),vt=xt[0],Bt=xt[1],Ke=function(rt){Bt([rt.clientX,rt.clientY]);},We=cA(Qe,lt,U?vt:Pe,E,N,A,W),dt=G(We,9),Et=dt[0],qt=dt[1],Wt=dt[2],wn=dt[3],In=dt[4],lr=dt[5],Xr=dt[6],Pr=dt[7],Jn=dt[8],_n=gr(function(){Je||Jn();});uA(Qe,Pe,lt,_n),Ht(function(){_n();},[vt,E]),Ht(function(){Qe&&!(N!=null&&N[E])&&_n();},[JSON.stringify(A)]);var qr=f__namespace.useMemo(function(){var He=lA(N,i,Pr,U);return X(He,B==null?void 0:B(Pr))},[Pr,B,N,i,U]);f__namespace.useImperativeHandle(r,function(){return {forceAlign:_n}});var Bo=function(rt){Ut(!1),Jn(),p==null||p(rt);},Yr=function(){return new Promise(function(rt){Ze(function(){return rt});})};Ht(function(){Ye&&(Jn(),Ye(),Ze(null));},[Ye]);var Zr=f__namespace.useState(0),Qr=G(Zr,2),Wo=Qr[0],Vo=Qr[1],Uo=f__namespace.useState(0),Jr=G(Uo,2),eo=Jr[0],$e=Jr[1],ge=function(rt,It){if(_n(),L){var jt=It.getBoundingClientRect();Vo(jt.width),$e(jt.height);}},je=aA(ve,l,c,u),Ct=G(je,2),ct=Ct[0],$t=Ct[1],zt=function(rt,It,jt,Rt){Le[rt]=function(ya){var bi;Rt==null||Rt(ya),oe(It,jt);for(var Ko=arguments.length,yi=new Array(Ko>1?Ko-1:0),Qs=1;Qs<Ko;Qs++)yi[Qs-1]=arguments[Qs];(bi=Se[rt])===null||bi===void 0||bi.call.apply(bi,[Se,ya].concat(yi));};},Fn=ct.has("click"),xn=$t.has("click")||$t.has("contextMenu");(Fn||xn)&&(Le.onClick=function(He){var rt;Ft.current&&xn?oe(!1):!Ft.current&&Fn&&(Ke(He),oe(!0));for(var It=arguments.length,jt=new Array(It>1?It-1:0),Rt=1;Rt<It;Rt++)jt[Rt-1]=arguments[Rt];(rt=Se.onClick)===null||rt===void 0||rt.call.apply(rt,[Se,He].concat(jt));}),f__namespace.useEffect(function(){if(xn&<&&(!$||C)){var He=!1,rt=function(Ko){var yi=Ko.target;He=nt(yi);},It=function(Ko){var yi=Ko.target;Ft.current&&!He&&!nt(yi)&&oe(!1);},jt=Fs(lt),Rt=Pe==null?void 0:Pe.getRootNode();jt.addEventListener("mousedown",rt),jt.addEventListener("click",It);var ya=Rt&&Rt!==Pe.ownerDocument;return ya&&(Rt.addEventListener("mousedown",rt),Rt.addEventListener("click",It)),function(){jt.removeEventListener("mousedown",rt),jt.removeEventListener("click",It),ya&&(Rt.removeEventListener("mousedown",rt),Rt.removeEventListener("click",It));}}},[xn,Pe,lt,$,C]);var _r=ct.has("hover"),er=$t.has("hover"),Go,Ys;_r&&(zt("onMouseEnter",!0,m,function(He){Ke(He);}),Go=function(){oe(!0,m);},U&&(Le.onMouseMove=function(He){var rt;(rt=Se.onMouseMove)===null||rt===void 0||rt.call(Se,He);})),er&&(zt("onMouseLeave",!1,b),Ys=function(){oe(!1,b);}),ct.has("focus")&&zt("onFocus",!0,y),$t.has("focus")&&zt("onBlur",!1,S),ct.has("contextMenu")&&(Le.onContextMenu=function(He){var rt;Ke(He),oe(!0),He.preventDefault();for(var It=arguments.length,jt=new Array(It>1?It-1:0),Rt=1;Rt<It;Rt++)jt[Rt-1]=arguments[Rt];(rt=Se.onContextMenu)===null||rt===void 0||rt.call.apply(rt,[Se,He].concat(jt));}),de&&(Le.className=X(Se.className,de));var ba=F(F({},Se),Le),Zs={},fw=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];fw.forEach(function(He){te[He]&&(Zs[He]=function(){for(var rt,It=arguments.length,jt=new Array(It),Rt=0;Rt<It;Rt++)jt[Rt]=arguments[Rt];(rt=ba[He])===null||rt===void 0||rt.call.apply(rt,[ba].concat(jt)),te[He].apply(te,jt);});});var hw=f__namespace.cloneElement(Ce,F(F({},ba),Zs)),vw={x:wn,y:In},pw=K?F({},K!==!0?K:{}):null;return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(vo,{disabled:!Qe,ref:tt,onResize:ge},f__namespace.createElement(pA,{getTriggerDOMNode:pe},hw)),f__namespace.createElement(Lm.Provider,{value:xe},f__namespace.createElement(vA,{portal:e,ref:ze,prefixCls:i,popup:I,className:X(O,qr),style:P,target:Pe,onMouseEnter:Go,onMouseLeave:Ys,zIndex:D,open:Qe,keepDom:Je,onClick:z,mask:$,motion:Be,maskMotion:wt,onVisibleChanged:Bo,onPrepare:Yr,forceRender:_,autoDestroy:se,getPopupContainer:x,align:Pr,arrow:pw,arrowPos:vw,ready:Et,offsetX:qt,offsetY:Wt,onAlign:_n,stretch:L,targetWidth:Wo/lr,targetHeight:eo/Xr})))});return t}const Jh=gA(Iy);var bA=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],yA=function(t){var n=t===!0?0:1;return {bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},CA=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,s=t.containerWidth,l=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,h=t.direction,v=h===void 0?"ltr":h,p=t.placement,m=t.builtinPlacements,g=t.dropdownMatchSelectWidth,b=t.dropdownRender,y=t.dropdownAlign,S=t.getPopupContainer,$=t.empty,w=t.getTriggerDOMNode,C=t.onPopupVisibleChange,x=t.onPopupMouseEnter,_=qe(t,bA),T="".concat(r,"-dropdown"),R=a;b&&(R=b(a));var I=f__namespace.useMemo(function(){return m||yA(g)},[m,g]),O=l?"".concat(T,"-").concat(l):c,P=f__namespace.useRef(null);f__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return P.current}}});var E=F({minWidth:s},u);return typeof g=="number"?E.width=g:g&&(E.width=s),f__namespace.createElement(Jh,we({},_,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:p||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:T,popupTransitionName:O,popup:f__namespace.createElement("div",{ref:P,onMouseEnter:x},R),popupAlign:y,popupVisible:o,getPopupContainer:S,popupClassName:X(d,V({},"".concat(T,"-empty"),$)),popupStyle:E,getTriggerDOMNode:w,onPopupVisibleChange:C}),i)},Ky=f__namespace.forwardRef(CA);Ky.displayName="SelectTrigger";function Vm(e,t){var n=e.key,r;return "value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function Xy(e,t){var n=e||{},r=n.label,o=n.value,i=n.options;return {label:r||(t?"children":"label"),value:o||"value",options:i||"options"}}function SA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Xy(n,!1),a=i.label,s=i.value,l=i.options;function c(u,d){u.forEach(function(h){var v=h[a];if(d||!(l in h)){var p=h[s];o.push({key:Vm(h,o.length),groupOption:d,data:h,label:v,value:p});}else {var m=v;m===void 0&&r&&(m=h.label),o.push({key:Vm(h,o.length),group:!0,data:h,label:m}),c(h[l],!0);}});}return c(e,!1),o}function If(e){var t=F({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return Cn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function wA(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var s=N0(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 xA=["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"],$A=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Nf(e){return e==="tags"||e==="multiple"}var EA=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,S=e.loading,$=e.getInputElement,w=e.getRawInputElement,C=e.open,x=e.defaultOpen,_=e.onDropdownVisibleChange,T=e.activeValue,R=e.onActiveValueChange,I=e.activeDescendantId,O=e.searchValue,P=e.autoClearSearchValue,E=e.onSearch,M=e.onSearchSplit,N=e.tokenSeparators,A=e.allowClear,D=e.showArrow,L=e.inputIcon,B=e.clearIcon,U=e.OptionList,z=e.animation,W=e.transitionName,K=e.dropdownStyle,q=e.dropdownClassName,Y=e.dropdownMatchSelectWidth,Z=e.dropdownRender,J=e.dropdownAlign,ne=e.placement,ae=e.builtinPlacements,de=e.getPopupContainer,pe=e.showAction,te=pe===void 0?[]:pe,se=e.onFocus,ue=e.onBlur,ce=e.onKeyUp,ve=e.onKeyDown,re=e.onMouseDown,he=qe(e,xA),ie=Nf(b),xe=(s!==void 0?s:ie)||b==="combobox",Ne=F({},he);$A.forEach(function($e){delete Ne[$e];}),u==null||u.forEach(function($e){delete Ne[$e];});var Ge=f__namespace.useState(!1),st=G(Ge,2),lt=st[0],De=st[1];f__namespace.useEffect(function(){De(Ls());},[]);var ze=f__namespace.useRef(null),_e=f__namespace.useRef(null),ke=f__namespace.useRef(null),Pe=f__namespace.useRef(null),Ue=f__namespace.useRef(null),tt=LN(),Ce=G(tt,3),Se=Ce[0],Le=Ce[1],nt=Ce[2];f__namespace.useImperativeHandle(t,function(){var $e,ge;return {focus:($e=Pe.current)===null||$e===void 0?void 0:$e.focus,blur:(ge=Pe.current)===null||ge===void 0?void 0:ge.blur,scrollTo:function(Ct){var ct;return (ct=Ue.current)===null||ct===void 0?void 0:ct.scrollTo(Ct)}}});var Be=f__namespace.useMemo(function(){var $e;if(b!=="combobox")return O;var ge=($e=d[0])===null||$e===void 0?void 0:$e.value;return typeof ge=="string"||typeof ge=="number"?String(ge):""},[O,b,d]),wt=b==="combobox"&&typeof $=="function"&&$()||null,ye=typeof w=="function"&&w(),Oe=Ms(_e,ye==null||(n=ye.props)===null||n===void 0?void 0:n.ref),Ae=f__namespace.useState(!1),Re=G(Ae,2),Qe=Re[0],Tt=Re[1];Ht(function(){Tt(!0);},[]);var Ft=Qt(!1,{defaultValue:x,value:C}),Dt=G(Ft,2),le=Dt[0],fe=Dt[1],oe=Qe?le:!1,Ee=!m&&v;(y||Ee&&oe&&b==="combobox")&&(oe=!1);var Ie=Ee?!1:oe,Je=f__namespace.useCallback(function($e){var ge=$e!==void 0?$e:!oe;y||(fe(ge),oe!==ge&&(_==null||_(ge)));},[y,oe,fe,_]),Ut=f__namespace.useMemo(function(){return (N||[]).some(function($e){return [`
`,`\r
`].includes($e)})},[N]),bt=function(ge,je,Ct){var ct=!0,$t=ge;R==null||R(null);var zt=Ct?null:wA(ge,N);return b!=="combobox"&&zt&&($t="",M==null||M(zt),Je(!1),ct=!1),E&&Be!==$t&&E($t,{source:je?"typing":"effect"}),ct},nn=function(ge){!ge||!ge.trim()||E(ge,{source:"submit"});};f__namespace.useEffect(function(){!oe&&!ie&&b!=="combobox"&&bt("",!1,!1);},[oe]),f__namespace.useEffect(function(){le&&y&&fe(!1),y&&Le(!1);},[y]);var yt=jy(),Ye=G(yt,2),Ze=Ye[0],Me=Ye[1],xt=function(ge){var je=Ze(),Ct=ge.which;if(Ct===ee.ENTER&&(b!=="combobox"&&ge.preventDefault(),oe||Je(!0)),Me(!!Be),Ct===ee.BACKSPACE&&!je&&ie&&!Be&&d.length){for(var ct=me(d),$t=null,zt=ct.length-1;zt>=0;zt-=1){var Fn=ct[zt];if(!Fn.disabled){ct.splice(zt,1),$t=Fn;break}}$t&&h(ct,{type:"remove",values:[$t]});}for(var xn=arguments.length,_r=new Array(xn>1?xn-1:0),er=1;er<xn;er++)_r[er-1]=arguments[er];if(oe&&Ue.current){var Go;(Go=Ue.current).onKeyDown.apply(Go,[ge].concat(_r));}ve==null||ve.apply(void 0,[ge].concat(_r));},vt=function(ge){for(var je=arguments.length,Ct=new Array(je>1?je-1:0),ct=1;ct<je;ct++)Ct[ct-1]=arguments[ct];if(oe&&Ue.current){var $t;($t=Ue.current).onKeyUp.apply($t,[ge].concat(Ct));}ce==null||ce.apply(void 0,[ge].concat(Ct));},Bt=function(ge){var je=d.filter(function(Ct){return Ct!==ge});h(je,{type:"remove",values:[ge]});},Ke=f__namespace.useRef(!1),We=function(){Le(!0),y||(se&&!Ke.current&&se.apply(void 0,arguments),te.includes("focus")&&Je(!0)),Ke.current=!0;},dt=function(){Le(!1,function(){Ke.current=!1,Je(!1);}),!y&&(Be&&(b==="tags"?E(Be,{source:"submit"}):b==="multiple"&&E("",{source:"blur"})),ue&&ue.apply(void 0,arguments));},Et=[];f__namespace.useEffect(function(){return function(){Et.forEach(function($e){return clearTimeout($e)}),Et.splice(0,Et.length);}},[]);var qt=function(ge){var je,Ct=ge.target,ct=(je=ke.current)===null||je===void 0?void 0:je.getPopupElement();if(ct&&ct.contains(Ct)){var $t=setTimeout(function(){var _r=Et.indexOf($t);if(_r!==-1&&Et.splice(_r,1),nt(),!lt&&!ct.contains(document.activeElement)){var er;(er=Pe.current)===null||er===void 0||er.focus();}});Et.push($t);}for(var zt=arguments.length,Fn=new Array(zt>1?zt-1:0),xn=1;xn<zt;xn++)Fn[xn-1]=arguments[xn];re==null||re.apply(void 0,[ge].concat(Fn));},Wt=f__namespace.useState(null),wn=G(Wt,2),In=wn[0],lr=wn[1],Xr=f__namespace.useState({}),Pr=G(Xr,2),Jn=Pr[1];function _n(){Jn({});}Ht(function(){if(Ie){var $e,ge=Math.ceil(($e=ze.current)===null||$e===void 0?void 0:$e.offsetWidth);In!==ge&&!Number.isNaN(ge)&&lr(ge);}},[Ie]);var qr;ye&&(qr=function(ge){Je(ge);}),FN(function(){var $e;return [ze.current,($e=ke.current)===null||$e===void 0?void 0:$e.getPopupElement()]},Ie,Je,!!ye);var Bo=f__namespace.useMemo(function(){return F(F({},e),{},{notFoundContent:m,open:oe,triggerOpen:Ie,id:o,showSearch:xe,multiple:ie,toggleOpen:Je})},[e,m,Ie,oe,o,xe,ie,Je]),Yr=D!==void 0?D:S||!ie&&b!=="combobox",Zr;Yr&&(Zr=f__namespace.createElement(lc,{className:X("".concat(i,"-arrow"),V({},"".concat(i,"-arrow-loading"),S)),customizeIcon:L,customizeIconProps:{loading:S,searchValue:Be,open:oe,focused:Se,showSearch:xe}}));var Qr,Wo=function(){var ge;g==null||g(),(ge=Pe.current)===null||ge===void 0||ge.focus(),h([],{type:"clear",values:d}),bt("",!1,!1);};!y&&A&&(d.length||Be)&&!(b==="combobox"&&Be==="")&&(Qr=f__namespace.createElement(lc,{className:"".concat(i,"-clear"),onMouseDown:Wo,customizeIcon:B},"×"));var Vo=f__namespace.createElement(U,{ref:Ue}),Uo=X(i,a,(r={},V(r,"".concat(i,"-focused"),Se),V(r,"".concat(i,"-multiple"),ie),V(r,"".concat(i,"-single"),!ie),V(r,"".concat(i,"-allow-clear"),A),V(r,"".concat(i,"-show-arrow"),Yr),V(r,"".concat(i,"-disabled"),y),V(r,"".concat(i,"-loading"),S),V(r,"".concat(i,"-open"),oe),V(r,"".concat(i,"-customize-input"),wt),V(r,"".concat(i,"-show-search"),xe),r)),Jr=f__namespace.createElement(Ky,{ref:ke,disabled:y,prefixCls:i,visible:Ie,popupElement:Vo,containerWidth:In,animation:z,transitionName:W,dropdownStyle:K,dropdownClassName:q,direction:c,dropdownMatchSelectWidth:Y,dropdownRender:Z,dropdownAlign:J,placement:ne,builtinPlacements:ae,getPopupContainer:de,empty:v,getTriggerDOMNode:function(){return _e.current},onPopupVisibleChange:qr,onPopupMouseEnter:_n},ye?f__namespace.cloneElement(ye,{ref:Oe}):f__namespace.createElement(Gy,we({},e,{domRef:_e,prefixCls:i,inputElement:wt,ref:Pe,id:o,showSearch:xe,autoClearSearchValue:P,mode:b,activeDescendantId:I,tagRender:l,values:d,open:oe,onToggleOpen:Je,activeValue:T,searchValue:Be,onSearch:bt,onSearchSubmit:nn,onRemove:Bt,tokenWithEnter:Ut}))),eo;return ye?eo=Jr:eo=f__namespace.createElement("div",we({className:Uo},Ne,{ref:ze,onMouseDown:qt,onKeyDown:xt,onKeyUp:vt,onFocus:We,onBlur:dt}),Se&&!oe&&f__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map(function($e){var ge=$e.label,je=$e.value;return ["number","string"].includes(et(ge))?ge:je}).join(", "))),Jr,Zr,Qr),f__namespace.createElement(zy.Provider,{value:Bo},eo)});const OA=function(e,t){var n=f__namespace.useRef({values:new Map,options:new Map}),r=f__namespace.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=e.map(function(d){if(d.label===void 0){var h;return F(F({},d),{},{label:(h=a.get(d.value))===null||h===void 0?void 0:h.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value));}),n.current.values=c,n.current.options=u,l},[e,t]),o=f__namespace.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return [r,o]};function sd(e,t){return Vy(e).join("").toUpperCase().includes(t)}const PA=function(e,t,n,r,o){return f__namespace.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(v,p){return o?sd(p[o],u):p[i]?sd(p[a!=="children"?a:"label"],u):sd(p[s],u)},h=c?function(v){return If(v)}:function(v){return v};return e.forEach(function(v){if(v[i]){var p=d(n,h(v));if(p)l.push(v);else {var m=v[i].filter(function(g){return d(n,h(g))});m.length&&l.push(F(F({},v),{},V({},i,m)));}return}d(n,h(v))&&l.push(v);}),l},[e,r,o,n,t])};var Um=0,_A=Mn();function RA(){var e;return _A?(e=Um,Um+=1):e="TEST_OR_SSR",e}function MA(e){var t=f__namespace.useState(),n=G(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){o("rc_select_".concat(RA()));},[]),e||r}var TA=["children","value"],IA=["children"];function NA(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=qe(r,TA);return F({key:n,value:i!==void 0?i:n,children:o},a)}function qy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Sr(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,IA);return t||!i?NA(n):F(F({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:qy(l)})}).filter(function(n){return n})}function AA(e,t,n,r,o){return f__namespace.useMemo(function(){var i=e,a=!e;a&&(i=qy(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;v<d.length;v+=1){var p=d[v];!p[n.options]||h?(s.set(p[n.value],p),c(l,p,n.label),c(l,p,r),c(l,p,o)):u(p[n.options],!0);}}return u(i),{options:i,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function Gm(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var ev=function(){return null};ev.isSelectOptGroup=!0;var tv=function(){return null};tv.isSelectOption=!0;var Yy=f__namespace.forwardRef(function(e,t){var n=e.height,r=e.offset,o=e.children,i=e.prefixCls,a=e.onInnerResize,s=e.innerProps,l={},c={display:"flex",flexDirection:"column"};return r!==void 0&&(l={height:n,position:"relative",overflow:"hidden"},c=F(F({},c),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),f__namespace.createElement("div",{style:l},f__namespace.createElement(vo,{onResize:function(d){var h=d.offsetHeight;h&&a&&a();}},f__namespace.createElement("div",we({style:c,className:X(V({},"".concat(i,"-holder-inner"),i)),ref:t},s),o)))});Yy.displayName="Filler";var DA=20;function Km(e){return "touches"in e?e.touches[0].pageY:e.pageY}var kA=function(e){Fo(n,e);var t=zo(n);function n(){var r;vn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.moveRaf=null,r.scrollbarRef=f__namespace.createRef(),r.thumbRef=f__namespace.createRef(),r.visibleTimeout=null,r.state={dragging:!1,pageY:null,startTop:null,visible:!1},r.delayHidden=function(){clearTimeout(r.visibleTimeout),r.setState({visible:!0}),r.visibleTimeout=setTimeout(function(){r.setState({visible:!1});},2e3);},r.onScrollbarTouchStart=function(s){s.preventDefault();},r.onContainerMouseDown=function(s){s.stopPropagation(),s.preventDefault();},r.patchEvents=function(){window.addEventListener("mousemove",r.onMouseMove),window.addEventListener("mouseup",r.onMouseUp),r.thumbRef.current.addEventListener("touchmove",r.onMouseMove),r.thumbRef.current.addEventListener("touchend",r.onMouseUp);},r.removeEvents=function(){var s;window.removeEventListener("mousemove",r.onMouseMove),window.removeEventListener("mouseup",r.onMouseUp),(s=r.scrollbarRef.current)===null||s===void 0||s.removeEventListener("touchstart",r.onScrollbarTouchStart),r.thumbRef.current&&(r.thumbRef.current.removeEventListener("touchstart",r.onMouseDown),r.thumbRef.current.removeEventListener("touchmove",r.onMouseMove),r.thumbRef.current.removeEventListener("touchend",r.onMouseUp)),St.cancel(r.moveRaf);},r.onMouseDown=function(s){var l=r.props.onStartMove;r.setState({dragging:!0,pageY:Km(s),startTop:r.getTop()}),l(),r.patchEvents(),s.stopPropagation(),s.preventDefault();},r.onMouseMove=function(s){var l=r.state,c=l.dragging,u=l.pageY,d=l.startTop,h=r.props.onScroll;if(St.cancel(r.moveRaf),c){var v=Km(s)-u,p=d+v,m=r.getEnableScrollRange(),g=r.getEnableHeightRange(),b=g?p/g:0,y=Math.ceil(b*m);r.moveRaf=St(function(){h(y);});}},r.onMouseUp=function(){var s=r.props.onStopMove;r.setState({dragging:!1}),s(),r.removeEvents();},r.getSpinHeight=function(){var s=r.props,l=s.height,c=s.count,u=l/c*10;return u=Math.max(u,DA),u=Math.min(u,l/2),Math.floor(u)},r.getEnableScrollRange=function(){var s=r.props,l=s.scrollHeight,c=s.height;return l-c||0},r.getEnableHeightRange=function(){var s=r.props.height,l=r.getSpinHeight();return s-l||0},r.getTop=function(){var s=r.props.scrollTop,l=r.getEnableScrollRange(),c=r.getEnableHeightRange();if(s===0||l===0)return 0;var u=s/l;return u*c},r.showScroll=function(){var s=r.props,l=s.height,c=s.scrollHeight;return c>l},r}return pn(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.prefixCls,l=this.getSpinHeight(),c=this.getTop(),u=this.showScroll(),d=u&&a;return f__namespace.createElement("div",{ref:this.scrollbarRef,className:X("".concat(s,"-scrollbar"),V({},"".concat(s,"-scrollbar-show"),u)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:d?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},f__namespace.createElement("div",{ref:this.thumbRef,className:X("".concat(s,"-scrollbar-thumb"),V({},"".concat(s,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:l,top:c,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 LA(e){var t=e.children,n=e.setRef,r=f__namespace.useCallback(function(o){n(o);},[]);return f__namespace.cloneElement(t,{ref:r})}function FA(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(LA,{key:d,setRef:function(v){return r(s,v)}},u)})}var zA=function(){function e(){vn(this,e),this.maps=void 0,this.maps=Object.create(null);}return pn(e,[{key:"set",value:function(n,r){this.maps[n]=r;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function jA(e,t,n){var r=f__namespace.useState(0),o=G(r,2),i=o[0],a=o[1],s=f.useRef(new Map),l=f.useRef(new zA),c=f.useRef();function u(){St.cancel(c.current);}function d(){u(),c.current=St(function(){s.current.forEach(function(v,p){if(v&&v.offsetParent){var m=ds(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 HA(e,t,n,r,o,i,a,s){var l=f__namespace.useRef();return function(c){if(c==null){s();return}if(St.cancel(l.current),typeof c=="number")a(c);else if(c&&et(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,S=!1,$=b;if(y){for(var w=b||d,C=0,x=0,_=0,T=Math.min(t.length,u),R=0;R<=T;R+=1){var I=o(t[R]);x=C;var O=n.get(I);_=x+(O===void 0?r:O),C=_,R===u&&O===void 0&&(S=!0);}var P=null;switch(w){case"top":P=x-v;break;case"bottom":P=_-y+v;break;default:{var E=e.current.scrollTop,M=E+y;x<E?$="top":_>M&&($="bottom");}}P!==null&&P!==e.current.scrollTop&&a(P);}l.current=St(function(){S&&i(),m(g-1,$);},2);}};p(3);}}}function BA(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var s={__EMPTY_ITEM__:!0};function l(p){return p!==void 0?n(p):s}for(var c=null,u=Math.abs(r-o)!==1,d=0;d<a.length;d+=1){var h=l(i[d]),v=l(a[d]);if(h!==v){c=d,u=u||h!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:u}}function WA(e,t,n){var r=f__namespace.useState(e),o=G(r,2),i=o[0],a=o[1],s=f__namespace.useState(null),l=G(s,2),c=l[0],u=l[1];return f__namespace.useEffect(function(){var d=BA(i||[],e||[],t);(d==null?void 0:d.index)!==void 0&&(n==null||n(d.index),u(e[d.index])),a(e);},[e]),[c]}var VA=(typeof navigator>"u"?"undefined":et(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Zy=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 UA(e,t,n,r){var o=f.useRef(0),i=f.useRef(null),a=f.useRef(null),s=f.useRef(!1),l=Zy(t,n);function c(d){if(e){St.cancel(i.current);var h=d.deltaY;o.current+=h,a.current=h,!l(h)&&(VA||d.preventDefault(),i.current=St(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 GA=14/15;function KA(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*=GA,(!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));},Ht(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 XA=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange","innerProps"],qA=[],YA={overflowY:"auto",overflowAnchor:"none"};function ZA(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.component,m=p===void 0?"div":p,g=e.onScroll,b=e.onVisibleChange,y=e.innerProps,S=qe(e,XA),$=!!(v!==!1&&i&&a),w=$&&u&&a*u.length>i,C=f.useState(0),x=G(C,2),_=x[0],T=x[1],R=f.useState(!1),I=G(R,2),O=I[0],P=I[1],E=X(r,o),M=u||qA,N=f.useRef(),A=f.useRef(),D=f.useRef(),L=f__namespace.useCallback(function(Ce){return typeof h=="function"?h(Ce):Ce==null?void 0:Ce[h]},[h]),B={getKey:L};function U(Ce){T(function(Se){var Le;typeof Ce=="function"?Le=Ce(Se):Le=Ce;var nt=ie(Le);return N.current.scrollTop=nt,nt});}var z=f.useRef({start:0,end:M.length}),W=f.useRef(),K=WA(M,L),q=G(K,1),Y=q[0];W.current=Y;var Z=jA(L,null,null),J=G(Z,4),ne=J[0],ae=J[1],de=J[2],pe=J[3],te=f__namespace.useMemo(function(){if(!$)return {scrollHeight:void 0,start:0,end:M.length-1,offset:void 0};if(!w){var Ce;return {scrollHeight:((Ce=A.current)===null||Ce===void 0?void 0:Ce.offsetHeight)||0,start:0,end:M.length-1,offset:void 0}}for(var Se=0,Le,nt,Be,wt=M.length,ye=0;ye<wt;ye+=1){var Oe=M[ye],Ae=L(Oe),Re=de.get(Ae),Qe=Se+(Re===void 0?a:Re);Qe>=_&&Le===void 0&&(Le=ye,nt=Se),Qe>_+i&&Be===void 0&&(Be=ye),Se=Qe;}return Le===void 0&&(Le=0,nt=0,Be=Math.ceil(i/a)),Be===void 0&&(Be=M.length-1),Be=Math.min(Be+1,M.length),{scrollHeight:Se,start:Le,end:Be,offset:nt}},[w,$,_,M,pe,i]),se=te.scrollHeight,ue=te.start,ce=te.end,ve=te.offset;z.current.start=ue,z.current.end=ce;var re=se-i,he=f.useRef(re);he.current=re;function ie(Ce){var Se=Ce;return Number.isNaN(he.current)||(Se=Math.min(Se,he.current)),Se=Math.max(Se,0),Se}var xe=_<=0,Ne=_>=re,Ge=Zy(xe,Ne);function st(Ce){var Se=Ce;U(Se);}function lt(Ce){var Se=Ce.currentTarget.scrollTop;Se!==_&&U(Se),g==null||g(Ce);}var De=UA($,xe,Ne,function(Ce){U(function(Se){var Le=Se+Ce;return Le});}),ze=G(De,2),_e=ze[0],ke=ze[1];KA($,N,function(Ce,Se){return Ge(Ce,Se)?!1:(_e({preventDefault:function(){},deltaY:Ce}),!0)}),Ht(function(){function Ce(Se){$&&Se.preventDefault();}return N.current.addEventListener("wheel",_e),N.current.addEventListener("DOMMouseScroll",ke),N.current.addEventListener("MozMousePixelScroll",Ce),function(){N.current&&(N.current.removeEventListener("wheel",_e),N.current.removeEventListener("DOMMouseScroll",ke),N.current.removeEventListener("MozMousePixelScroll",Ce));}},[$]);var Pe=HA(N,M,de,a,L,ae,U,function(){var Ce;(Ce=D.current)===null||Ce===void 0||Ce.delayHidden();});f__namespace.useImperativeHandle(t,function(){return {scrollTo:Pe}}),Ht(function(){if(b){var Ce=M.slice(ue,ce+1);b(Ce,M);}},[ue,ce,M]);var Ue=FA(M,ue,ce,ne,d,B),tt=null;return i&&(tt=F(V({},l?"height":"maxHeight",i),YA),$&&(tt.overflowY="hidden",O&&(tt.pointerEvents="none"))),f__namespace.createElement("div",we({style:F(F({},c),{},{position:"relative"}),className:E},S),f__namespace.createElement(m,{className:"".concat(r,"-holder"),style:tt,ref:N,onScroll:lt},f__namespace.createElement(Yy,{prefixCls:r,height:se,offset:ve,onInnerResize:ae,ref:A,innerProps:y},Ue)),$&&f__namespace.createElement(kA,{ref:D,prefixCls:r,scrollTop:_,height:i,scrollHeight:se,count:M.length,onScroll:st,onStartMove:function(){P(!0);},onStopMove:function(){P(!1);}}))}var Qy=f__namespace.forwardRef(ZA);Qy.displayName="List";var Jy=f__namespace.createContext(null);function QA(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var JA=["disabled","title","children","style","className"];function Xm(e){return typeof e=="string"||typeof e=="number"}var eD=function(t,n){var r=kN(),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(Jy),p=v.flattenOptions,m=v.onActiveValue,g=v.defaultActiveFirstOption,b=v.onSelect,y=v.menuItemSelectedIcon,S=v.rawValues,$=v.fieldNames,w=v.virtual,C=v.listHeight,x=v.listItemHeight,_="".concat(o,"-item"),T=Rs(function(){return p},[a,p],function(Y,Z){return Z[0]&&Y[1]!==Z[1]}),R=f__namespace.useRef(null),I=function(Z){Z.preventDefault();},O=function(Z){R.current&&R.current.scrollTo(typeof Z=="number"?{index:Z}:Z);},P=function(Z){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ne=T.length,ae=0;ae<ne;ae+=1){var de=(Z+ae*J+ne)%ne,pe=T[de],te=pe.group,se=pe.data;if(!te&&!se.disabled)return de}return -1},E=f__namespace.useState(function(){return P(0)}),M=G(E,2),N=M[0],A=M[1],D=function(Z){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;A(Z);var ne={source:J?"keyboard":"mouse"},ae=T[Z];if(!ae){m(null,-1,ne);return}m(ae.value,Z,ne);};f.useEffect(function(){D(g!==!1?P(0):-1);},[T.length,c]);var L=f__namespace.useCallback(function(Y){return S.has(Y)&&l!=="combobox"},[l,me(S).toString(),S.size]);f.useEffect(function(){var Y=setTimeout(function(){if(!s&&a&&S.size===1){var J=Array.from(S)[0],ne=T.findIndex(function(ae){var de=ae.data;return de.value===J});ne!==-1&&(D(ne),O(ne));}});if(a){var Z;(Z=R.current)===null||Z===void 0||Z.scrollTo(void 0);}return function(){return clearTimeout(Y)}},[a,c,p.length]);var B=function(Z){Z!==void 0&&b(Z,{selected:!S.has(Z)}),s||u(!1);};if(f__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(Z){var J=Z.which,ne=Z.ctrlKey;switch(J){case ee.N:case ee.P:case ee.UP:case ee.DOWN:{var ae=0;if(J===ee.UP?ae=-1:J===ee.DOWN?ae=1:QA()&&ne&&(J===ee.N?ae=1:J===ee.P&&(ae=-1)),ae!==0){var de=P(N+ae,ae);O(de),D(de,!0);}break}case ee.ENTER:{var pe=T[N];pe&&!pe.data.disabled?B(pe.value):B(void 0),a&&Z.preventDefault();break}case ee.ESC:u(!1),a&&Z.stopPropagation();}},onKeyUp:function(){},scrollTo:function(Z){O(Z);}}}),T.length===0)return f__namespace.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(_,"-empty"),onMouseDown:I},d);var U=Object.keys($).map(function(Y){return $[Y]}),z=function(Z){return Z.label};function W(Y,Z){var J=Y.group;return {role:J?"presentation":"option",id:"".concat(i,"_list_").concat(Z)}}var K=function(Z){var J=T[Z];if(!J)return null;var ne=J.data||{},ae=ne.value,de=J.group,pe=oc(ne,!0),te=z(J);return J?f__namespace.createElement("div",we({"aria-label":typeof te=="string"&&!de?te:null},pe,{key:Z},W(J,Z),{"aria-selected":L(ae)}),ae):null},q={role:"listbox",id:"".concat(i,"_list")};return f__namespace.createElement(f__namespace.Fragment,null,w&&f__namespace.createElement("div",we({},q,{style:{height:0,width:0,overflow:"hidden"}}),K(N-1),K(N),K(N+1)),f__namespace.createElement(Qy,{itemKey:"key",ref:R,data:T,height:C,itemHeight:x,fullHeight:!1,onMouseDown:I,onScroll:h,virtual:w,innerProps:w?null:q},function(Y,Z){var J,ne=Y.group,ae=Y.groupOption,de=Y.data,pe=Y.label,te=Y.value,se=de.key;if(ne){var ue,ce=(ue=de.title)!==null&&ue!==void 0?ue:Xm(pe)?pe.toString():void 0;return f__namespace.createElement("div",{className:X(_,"".concat(_,"-group")),title:ce},pe!==void 0?pe:se)}var ve=de.disabled,re=de.title;de.children;var he=de.style,ie=de.className,xe=qe(de,JA),Ne=wr(xe,U),Ge=L(te),st="".concat(_,"-option"),lt=X(_,st,ie,(J={},V(J,"".concat(st,"-grouped"),ae),V(J,"".concat(st,"-active"),N===Z&&!ve),V(J,"".concat(st,"-disabled"),ve),V(J,"".concat(st,"-selected"),Ge),J)),De=z(Y),ze=!y||typeof y=="function"||Ge,_e=typeof De=="number"?De:De||te,ke=Xm(_e)?_e.toString():void 0;return re!==void 0&&(ke=re),f__namespace.createElement("div",we({},oc(Ne),w?{}:W(Y,Z),{"aria-selected":Ge,className:lt,title:ke,onMouseMove:function(){N===Z||ve||D(Z);},onClick:function(){ve||B(te);},style:he}),f__namespace.createElement("div",{className:"".concat(st,"-content")},_e),f__namespace.isValidElement(y)||Ge,ze&&f__namespace.createElement(lc,{className:"".concat(_,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:Ge}},Ge?"✓":null))}))},eC=f__namespace.forwardRef(eD);eC.displayName="OptionList";var tD=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],nD=["inputValue"];function rD(e){return !e||et(e)!=="object"}var oD=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,S=e.optionFilterProp,$=e.optionLabelProp,w=e.options,C=e.children,x=e.defaultActiveFirstOption,_=e.menuItemSelectedIcon,T=e.virtual,R=e.listHeight,I=R===void 0?200:R,O=e.listItemHeight,P=O===void 0?20:O,E=e.value,M=e.defaultValue,N=e.labelInValue,A=e.onChange,D=qe(e,tD),L=MA(n),B=Nf(r),U=!!(!w&&C),z=f__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),W=f__namespace.useMemo(function(){return Xy(s,U)},[JSON.stringify(s),U]),K=Qt("",{value:c!==void 0?c:l,postState:function(fe){return fe||""}}),q=G(K,2),Y=q[0],Z=q[1],J=AA(w,C,W,S,$),ne=J.valueOptions,ae=J.labelOptions,de=J.options,pe=f__namespace.useCallback(function(le){var fe=Vy(le);return fe.map(function(oe){var Ee,Ie,Je,Ut,bt;if(rD(oe))Ee=oe;else {var nn;Je=oe.key,Ie=oe.label,Ee=(nn=oe.value)!==null&&nn!==void 0?nn:Je;}var yt=ne.get(Ee);if(yt){var Ye;Ie===void 0&&(Ie=yt==null?void 0:yt[$||W.label]),Je===void 0&&(Je=(Ye=yt==null?void 0:yt.key)!==null&&Ye!==void 0?Ye:Ee),Ut=yt==null?void 0:yt.disabled,bt=yt==null?void 0:yt.title;}return {label:Ie,value:Ee,key:Je,disabled:Ut,title:bt}})},[W,$,ne]),te=Qt(M,{value:E}),se=G(te,2),ue=se[0],ce=se[1],ve=f__namespace.useMemo(function(){var le,fe=pe(ue);return r==="combobox"&&!((le=fe[0])!==null&&le!==void 0&&le.value)?[]:fe},[ue,pe,r]),re=OA(ve,ne),he=G(re,2),ie=he[0],xe=he[1],Ne=f__namespace.useMemo(function(){if(!r&&ie.length===1){var le=ie[0];if(le.value===null&&(le.label===null||le.label===void 0))return []}return ie.map(function(fe){var oe;return F(F({},fe),{},{label:(oe=fe.label)!==null&&oe!==void 0?oe:fe.value})})},[r,ie]),Ge=f__namespace.useMemo(function(){return new Set(ie.map(function(le){return le.value}))},[ie]);f__namespace.useEffect(function(){if(r==="combobox"){var le,fe=(le=ie[0])===null||le===void 0?void 0:le.value;Z(JN(fe)?String(fe):"");}},[ie]);var st=Gm(function(le,fe){var oe,Ee=fe??le;return oe={},V(oe,W.value,le),V(oe,W.label,Ee),oe}),lt=f__namespace.useMemo(function(){if(r!=="tags")return de;var le=me(de),fe=function(Ee){return ne.has(Ee)};return me(ie).sort(function(oe,Ee){return oe.value<Ee.value?-1:1}).forEach(function(oe){var Ee=oe.value;fe(Ee)||le.push(st(Ee,oe.label));}),le},[st,de,ne,ie,r]),De=PA(lt,W,Y,z,S),ze=f__namespace.useMemo(function(){return r!=="tags"||!Y||De.some(function(le){return le[S||"value"]===Y})?De:[st(Y)].concat(me(De))},[st,S,r,De,Y]),_e=f__namespace.useMemo(function(){return y?me(ze).sort(function(le,fe){return y(le,fe)}):ze},[ze,y]),ke=f__namespace.useMemo(function(){return SA(_e,{fieldNames:W,childrenAsData:U})},[_e,W,U]),Pe=function(fe){var oe=pe(fe);if(ce(oe),A&&(oe.length!==ie.length||oe.some(function(Je,Ut){var bt;return ((bt=ie[Ut])===null||bt===void 0?void 0:bt.value)!==(Je==null?void 0:Je.value)}))){var Ee=N?oe:oe.map(function(Je){return Je.value}),Ie=oe.map(function(Je){return If(xe(Je.value))});A(B?Ee:Ee[0],B?Ie:Ie[0]);}},Ue=f__namespace.useState(null),tt=G(Ue,2),Ce=tt[0],Se=tt[1],Le=f__namespace.useState(0),nt=G(Le,2),Be=nt[0],wt=nt[1],ye=x!==void 0?x:r!=="combobox",Oe=f__namespace.useCallback(function(le,fe){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ee=oe.source,Ie=Ee===void 0?"keyboard":Ee;wt(fe),a&&r==="combobox"&&le!==null&&Ie==="keyboard"&&Se(String(le));},[a,r]),Ae=function(fe,oe,Ee){var Ie=function(){var vt,Bt=xe(fe);return [N?{label:Bt==null?void 0:Bt[W.label],value:fe,key:(vt=Bt==null?void 0:Bt.key)!==null&&vt!==void 0?vt:fe}:fe,If(Bt)]};if(oe&&v){var Je=Ie(),Ut=G(Je,2),bt=Ut[0],nn=Ut[1];v(bt,nn);}else if(!oe&&p&&Ee!=="clear"){var yt=Ie(),Ye=G(yt,2),Ze=Ye[0],Me=Ye[1];p(Ze,Me);}},Re=Gm(function(le,fe){var oe,Ee=B?fe.selected:!0;Ee?oe=B?[].concat(me(ie),[le]):[le]:oe=ie.filter(function(Ie){return Ie.value!==le}),Pe(oe),Ae(le,Ee),r==="combobox"?Se(""):(!Nf||h)&&(Z(""),Se(""));}),Qe=function(fe,oe){Pe(fe);var Ee=oe.type,Ie=oe.values;(Ee==="remove"||Ee==="clear")&&Ie.forEach(function(Je){Ae(Je.value,!1,Ee);});},Tt=function(fe,oe){if(Z(fe),Se(null),oe.source==="submit"){var Ee=(fe||"").trim();if(Ee){var Ie=Array.from(new Set([].concat(me(Ge),[Ee])));Pe(Ie),Ae(Ee,!0),Z("");}return}oe.source!=="blur"&&(r==="combobox"&&Pe(fe),u==null||u(fe));},Ft=function(fe){var oe=fe;r!=="tags"&&(oe=fe.map(function(Ie){var Je=ae.get(Ie);return Je==null?void 0:Je.value}).filter(function(Ie){return Ie!==void 0}));var Ee=Array.from(new Set([].concat(me(Ge),me(oe))));Pe(Ee),Ee.forEach(function(Ie){Ae(Ie,!0);});},Dt=f__namespace.useMemo(function(){var le=T!==!1&&g!==!1;return F(F({},J),{},{flattenOptions:ke,onActiveValue:Oe,defaultActiveFirstOption:ye,onSelect:Re,menuItemSelectedIcon:_,rawValues:Ge,fieldNames:W,virtual:le,listHeight:I,listItemHeight:P,childrenAsData:U})},[J,ke,Oe,ye,Re,_,Ge,W,T,g,I,P,U]);return f__namespace.createElement(Jy.Provider,{value:Dt},f__namespace.createElement(EA,we({},D,{id:L,prefixCls:i,ref:t,omitDomProps:nD,mode:r,displayValues:Ne,onDisplayValuesChange:Qe,searchValue:Y,onSearch:Tt,autoClearSearchValue:h,onSearchSplit:Ft,dropdownMatchSelectWidth:g,OptionList:eC,emptyOptions:!ke.length,activeValue:Ce,activeDescendantId:"".concat(L,"_list_").concat(Be)})))}),nv=oD;nv.Option=tv;nv.OptGroup=ev;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 ou=(e,t)=>t||e,iD=()=>{const[,e]=pi(),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"}))))},aD=iD,sD=()=>{const[,e]=pi(),{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}))))},lD=sD,cD=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}}}}},uD=mn("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=Lt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [cD(r)]});var dD=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const tC=f__namespace.createElement(aD,null),nC=f__namespace.createElement(lD,null),rv=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=tC,description:i,children:a,imageStyle:s}=e,l=dD(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);const{getPrefixCls:c,direction:u}=f__namespace.useContext(pt),d=c("empty",r),[h,v]=uD(d),[p]=Fh("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===nC,[`${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)))};rv.PRESENTED_IMAGE_DEFAULT=tC;rv.PRESENTED_IMAGE_SIMPLE=nC;const Oa=rv,fD=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(pt),r=n("empty");switch(t){case"Table":case"List":return f.createElement(Oa,{image:Oa.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f.createElement(Oa,{image:Oa.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return f.createElement(Oa,null)}},hD=fD,vD=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"}},pD=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:Ny},[`
&${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:Dy},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Ay},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:ky},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},vD(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"},Wi),{"> *":Object.assign({},Wi)}),"&-state":{flex:"none"},[`&-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"}})},ac(e,"slide-up"),ac(e,"slide-down"),Im(e,"move-up"),Im(e,"move-down")]},mD=pD,Ei=2,rC=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return [o,i]};function ld(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=rC(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-Ei}px ${Ei*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:`${Ei}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:Ei,marginBottom:Ei,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:Ei*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({},As()),{display:"inline-block",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 gD=e=>{const{componentCls:t}=e,n=Lt(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Lt(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=rC(e);return [ld(e),ld(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},ld(r,"lg")]},bD=gD;function cd(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 yD(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [cd(e),cd(Lt(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}}}},cd(Lt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const CD=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"}}}},ud=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}})}}},SD=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"}}}},wD=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({},CD(e)),SD(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},Wi),{"> *":Object.assign({lineHeight:"inherit"},Wi)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},Wi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},As()),{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}}}},xD=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%"}}},wD(e),yD(e),bD(e),mD(e),{[`${t}-rtl`]:{direction:"rtl"}},ud(t,Lt(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),ud(`${t}-status-error`,Lt(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),ud(`${t}-status-warning`,Lt(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),nu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},$D=mn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Lt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return [xD(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),ED=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 OD(e,t){return e||ED(t)}function PD(e){return e??!0}var _D={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 RD=_D;var oC=function(t,n){return f__namespace.createElement(Qn,F(F({},t),{},{ref:n,icon:RD}))};oC.displayName="CheckOutlined";const MD=f__namespace.forwardRef(oC);var TD={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 ID=TD;var iC=function(t,n){return f__namespace.createElement(Qn,F(F({},t),{},{ref:n,icon:ID}))};iC.displayName="DownOutlined";const aC=f__namespace.forwardRef(iC);var ND={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 AD=ND;var sC=function(t,n){return f__namespace.createElement(Qn,F(F({},t),{},{ref:n,icon:AD}))};sC.displayName="SearchOutlined";const lC=f__namespace.forwardRef(sC);function DD(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(Uh,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(wy,{spin:!0}));else {const g=`${l}-suffix`;v=b=>{let{open:y,showSearch:S}=b;return h(y&&S?f__namespace.createElement(lC,{className:g}):f__namespace.createElement(aC,{className:g}))};}let p=null;r!==void 0?p=r:a?p=f__namespace.createElement(MD,null):p=null;let m=null;return o!==void 0?m=o:m=f__namespace.createElement(Gh,null),{clearIcon:d,suffixIcon:v,itemIcon:p,removeIcon:m}}var kD=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cC="SECRET_COMBOBOX_MODE_DO_NOT_USE",LD=(e,t)=>{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:h=24,size:v,disabled:p,notFoundContent:m,status:g,showArrow:b,builtinPlacements:y,dropdownMatchSelectWidth:S,popupMatchSelectWidth:$}=e,w=kD(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth"]);const{getPopupContainer:C,getPrefixCls:x,renderEmpty:_,direction:T,virtual:R,popupMatchSelectWidth:I,popupOverflow:O,select:P}=f__namespace.useContext(pt),E=x("select",r),M=x(),{compactSize:N,compactItemClassnames:A}=ks(E,T),[D,L]=$D(E),B=f__namespace.useMemo(()=>{const{mode:Ne}=w;if(Ne!=="combobox")return Ne===cC?"combobox":Ne},[w.mode]),U=B==="multiple"||B==="tags",z=PD(b),W=(n=$??S)!==null&&n!==void 0?n:I,{status:K,hasFeedback:q,isFormItemInput:Y,feedbackIcon:Z}=f__namespace.useContext(Ur),J=ou(K,g);let ne;m!==void 0?ne=m:B==="combobox"?ne=null:ne=(_==null?void 0:_("Select"))||f__namespace.createElement(hD,{componentName:"Select"});const{suffixIcon:ae,itemIcon:de,removeIcon:pe,clearIcon:te}=DD(Object.assign(Object.assign({},w),{multiple:U,hasFeedback:q,feedbackIcon:Z,showArrow:z,prefixCls:E})),se=wr(w,["suffixIcon","itemIcon"]),ue=X(l||c,{[`${E}-dropdown-${T}`]:T==="rtl"},a,L),ce=Er(Ne=>{var Ge;return (Ge=N??v)!==null&&Ge!==void 0?Ge:Ne}),ve=f__namespace.useContext(Ho),re=p??ve,he=X({[`${E}-lg`]:ce==="large",[`${E}-sm`]:ce==="small",[`${E}-rtl`]:T==="rtl",[`${E}-borderless`]:!o,[`${E}-in-form-item`]:Y},fo(E,J,q),A,i,a,L),ie=f__namespace.useMemo(()=>d!==void 0?d:T==="rtl"?"bottomRight":"bottomLeft",[d,T]),xe=OD(y,O);return D(f__namespace.createElement(nv,Object.assign({ref:t,virtual:R,showSearch:P==null?void 0:P.showSearch},se,{dropdownMatchSelectWidth:W,builtinPlacements:xe,transitionName:ru(M,UI(d),w.transitionName),listHeight:u,listItemHeight:h,mode:B,prefixCls:E,placement:ie,direction:T,inputIcon:ae,menuItemSelectedIcon:de,removeIcon:pe,clearIcon:te,notFoundContent:ne,className:he,getPopupContainer:s||C,dropdownClassName:ue,showArrow:q||z,disabled:re})))},pa=f__namespace.forwardRef(LD),FD=Fy(pa);pa.SECRET_COMBOBOX_MODE_DO_NOT_USE=cC;pa.Option=tv;pa.OptGroup=ev;pa._InternalPanelDoNotUseOrYouWillBeFired=FD;const zD=pa,la=e=>e?typeof e=="function"?e():e:null;var Oi={shiftX:64,adjustY:1},Pi={adjustX:1,shiftY:!0},nr=[0,0],jD={left:{points:["cr","cl"],overflow:Pi,offset:[-4,0],targetOffset:nr},right:{points:["cl","cr"],overflow:Pi,offset:[4,0],targetOffset:nr},top:{points:["bc","tc"],overflow:Oi,offset:[0,-4],targetOffset:nr},bottom:{points:["tc","bc"],overflow:Oi,offset:[0,4],targetOffset:nr},topLeft:{points:["bl","tl"],overflow:Oi,offset:[0,-4],targetOffset:nr},leftTop:{points:["tr","tl"],overflow:Pi,offset:[-4,0],targetOffset:nr},topRight:{points:["br","tr"],overflow:Oi,offset:[0,-4],targetOffset:nr},rightTop:{points:["tl","tr"],overflow:Pi,offset:[4,0],targetOffset:nr},bottomRight:{points:["tr","br"],overflow:Oi,offset:[0,4],targetOffset:nr},rightBottom:{points:["bl","br"],overflow:Pi,offset:[4,0],targetOffset:nr},bottomLeft:{points:["tl","bl"],overflow:Oi,offset:[0,4],targetOffset:nr},leftBottom:{points:["br","bl"],overflow:Pi,offset:[-4,0],targetOffset:nr}};function ov(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 HD=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],BD=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,S=t.placement,$=S===void 0?"right":S,w=t.align,C=w===void 0?{}:w,x=t.destroyTooltipOnHide,_=x===void 0?!1:x,T=t.defaultVisible,R=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var O=t.overlay,P=t.id,E=t.showArrow,M=E===void 0?!0:E,N=qe(t,HD),A=f.useRef(null);f.useImperativeHandle(n,function(){return A.current});var D=F({},N);"visible"in t&&(D.popupVisible=t.visible);var L=function(){return f__namespace.createElement(ov,{key:"content",prefixCls:h,id:P,overlayInnerStyle:I},O)};return f__namespace.createElement(Jh,we({popupClassName:r,prefixCls:h,popup:L,action:i,builtinPlacements:jD,popupPlacement:$,ref:A,popupAlign:C,getPopupContainer:R,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:b,popupMotion:y,defaultPopupVisible:T,autoDestroy:_,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:M},D),v)};const WD=f.forwardRef(BD),uC=8;function dC(e){const t=uC,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function vl(e,t){return e?t:{}}function fC(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}=dC({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"},TM(r,o,i,s,a)),{"&:before":{background:s}})]},vl(!!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}}})),vl(!!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}}})),vl(!!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}})),vl(!!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 VD(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 qm={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"]}},UD={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"]}},GD=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function KD(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i}=e,a=t/2,s={};return Object.keys(qm).forEach(l=>{const c=r&&UD[l]||qm[l],u=Object.assign(Object.assign({},c),{offset:[0,0]});switch(s[l]=u,GD.has(l)&&(u.autoArrow=!1),l){case"top":case"topLeft":case"topRight":u.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=a+o;break}const d=dC({contentRadius:i,limitVerticalRadius:!0});if(r)switch(l){case"topLeft":case"bottomLeft":u.offset[0]=-d.dropdownArrowOffset-a;break;case"topRight":case"bottomRight":u.offset[0]=d.dropdownArrowOffset+a;break;case"leftTop":case"rightTop":u.offset[1]=-d.dropdownArrowOffset-a;break;case"leftBottom":case"rightBottom":u.offset[1]=d.dropdownArrowOffset+a;break}u.overflow=VD(l,d,t,n);}),s}const wo=(e,t)=>new en(e).setAlpha(t).toRgbString(),_i=(e,t)=>new en(e).lighten(t).toHexString(),XD=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]}},qD=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:wo(r,.85),colorTextSecondary:wo(r,.65),colorTextTertiary:wo(r,.45),colorTextQuaternary:wo(r,.25),colorFill:wo(r,.18),colorFillSecondary:wo(r,.12),colorFillTertiary:wo(r,.08),colorFillQuaternary:wo(r,.04),colorBgElevated:_i(n,12),colorBgContainer:_i(n,8),colorBgLayout:_i(n,0),colorBgSpotlight:_i(n,26),colorBorder:_i(n,26),colorBorderSecondary:_i(n,19)}},YD=(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??Xc(e);return Object.assign(Object.assign(Object.assign({},r),n),G0(e,{generateColorPalettes:XD,generateNeutralColorPalettes:qD}))},ZD=YD;function QD(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 JD=(e,t)=>{const n=t??Xc(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),QD(t??e)),K0(r)),{controlHeight:o}),U0(Object.assign(Object.assign({},n),{controlHeight:o})))},ek=JD;function tk(){const[e,t,n]=pi();return {theme:e,token:t,hashId:n}}const cc={defaultConfig:ec,defaultSeed:ec.token,useToken:tk,defaultAlgorithm:Xc,darkAlgorithm:ZD,compactAlgorithm:ek},nk=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},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,uC)}},[`${t}-content`]:{position:"relative"}}),Y0(e,(h,v)=>{let{darkColor:p}=v;return {[`&${t}-${h}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},fC(Lt(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},hC=(e,t)=>mn("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:s}=r,l=Lt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return [nk(l),Ly(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return {zIndexPopup:o+70,colorBgDefault:i}})(e),rk=hs.map(e=>`${e}-inverse`),ok=["success","processing","error","default","warning"];function vC(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(me(rk),me(hs)).includes(e):hs.includes(e)}function ik(e){return ok.includes(e)}function pC(e,t){const n=vC(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 ak(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=f__namespace.useContext(pt),l=s("tooltip",t),[c,u]=hC(l,!0),d=pC(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(ov,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))}var sk=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const{useToken:lk}=cc,ck=(e,t)=>{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 uk(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}=ck(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=xr(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 mC=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:S=!0}=e,$=!!p,{token:w}=lk(),{getPopupContainer:C,getPrefixCls:x,direction:_}=f__namespace.useContext(pt),T=f__namespace.useRef(null),R=()=>{var re;(re=T.current)===null||re===void 0||re.forceAlign();};f__namespace.useImperativeHandle(t,()=>({forceAlign:R,forcePopupAlign:()=>{R();}}));const[I,O]=Qt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),P=!m&&!g&&m!==0,E=re=>{var he,ie;O(P?!1:re),P||((he=e.onOpenChange)===null||he===void 0||he.call(e,re),(ie=e.onVisibleChange)===null||ie===void 0||ie.call(e,re));},M=f__namespace.useMemo(()=>{var re,he;let ie=y;return typeof p=="object"&&(ie=(he=(re=p.pointAtCenter)!==null&&re!==void 0?re:p.arrowPointAtCenter)!==null&&he!==void 0?he:y),b||KD({arrowPointAtCenter:ie,autoAdjustOverflow:S,arrowWidth:$?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS})},[y,p,b,w]),N=f__namespace.useMemo(()=>m===0?m:g||m||"",[g,m]),A=f__namespace.createElement(vs,null,typeof N=="function"?N():N),{getPopupContainer:D,placement:L="top",mouseEnterDelay:B=.1,mouseLeaveDelay:U=.1,overlayStyle:z,rootClassName:W}=e,K=sk(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),q=x("tooltip",o),Y=x(),Z=e["data-popover-inject"];let J=I;!("open"in e)&&!("visible"in e)&&P&&(J=!1);const ne=uk(Kh(u)&&!Cy(u)?u:f__namespace.createElement("span",null,u),q),ae=ne.props,de=!ae.className||typeof ae.className=="string"?X(ae.className,{[i||`${q}-open`]:!0}):ae.className,[pe,te]=hC(q,!Z),se=pC(q,l),ue=Object.assign(Object.assign({},c),se.overlayStyle),ce=se.arrowStyle,ve=X(s,{[`${q}-rtl`]:_==="rtl"},se.className,W,te);return pe(f__namespace.createElement(WD,Object.assign({},K,{showArrow:$,placement:L,mouseEnterDelay:B,mouseLeaveDelay:U,prefixCls:q,overlayClassName:ve,overlayStyle:Object.assign(Object.assign({},ce),z),getTooltipContainer:D||a||C,ref:T,builtinPlacements:M,overlay:A,visible:J,onVisibleChange:E,afterVisibleChange:d??h,overlayInnerStyle:ue,arrowContent:f__namespace.createElement("span",{className:`${q}-arrow-content`}),motion:{motionName:ru(Y,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),J?xr(ne,{className:de}):ne))});mC._InternalPanelDoNotUseOrYouWillBeFired=ak;const iu=mC,dk=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}})},fC(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},fk=e=>{const{componentCls:t}=e;return {[t]:hs.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},hk=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`}}}},gC=mn("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=Lt(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return [dk(o),fk(o),r&&hk(o),Ly(o,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return {zIndexPopup:t+30,width:177}});var vk=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const pk=(e,t,n)=>{if(!(!t&&!n))return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${e}-title`},la(t)),f__namespace.createElement("div",{className:`${e}-inner-content`},la(n)))};function mk(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(ov,Object.assign({},e,{className:t,prefixCls:n}),l||pk(n,a,s)))}function bC(e){const{prefixCls:t}=e,n=vk(e,["prefixCls"]),{getPrefixCls:r}=f__namespace.useContext(pt),o=r("popover",t),[i,a]=gC(o);return i(f__namespace.createElement(mk,Object.assign({},n,{prefixCls:o,hashId:a})))}var gk=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bk=e=>{let{title:t,content:n,prefixCls:r}=e;return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${r}-title`},la(t)),f__namespace.createElement("div",{className:`${r}-inner-content`},la(n)))},yC=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=gk(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:h}=f__namespace.useContext(pt),v=h("popover",n),[p,m]=gC(v),g=h(),b=X(i,m);return p(f__namespace.createElement(iu,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(bk,{prefixCls:v,title:r,content:o}):null,transitionName:ru(g,"zoom-big",d.transitionName),"data-popover-inject":!0})))});yC._InternalPanelDoNotUseOrYouWillBeFired=bC;const CC=yC;var yk={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 Ck=yk;var SC=function(t,n){return f__namespace.createElement(Qn,F(F({},t),{},{ref:n,icon:Ck}))};SC.displayName="RightOutlined";const Sk=f__namespace.forwardRef(SC);var wk=ee.ESC,xk=ee.TAB;function $k(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 wk:s();break;case xk:{var h=!1;a.current||(h=l()),h?d.preventDefault():s();break}}};f__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&St(l,3),function(){window.removeEventListener("keydown",c),a.current=!1;}):function(){a.current=!1;}},[t]);}var Ek=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=Pn(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:jo(i)?a:void 0}))}),Ri={adjustX:1,adjustY:1},Mi=[0,0],Ok={topLeft:{points:["bl","tl"],overflow:Ri,offset:[0,-4],targetOffset:Mi},top:{points:["bc","tc"],overflow:Ri,offset:[0,-4],targetOffset:Mi},topRight:{points:["br","tr"],overflow:Ri,offset:[0,-4],targetOffset:Mi},bottomLeft:{points:["tl","bl"],overflow:Ri,offset:[0,4],targetOffset:Mi},bottom:{points:["tc","bc"],overflow:Ri,offset:[0,4],targetOffset:Mi},bottomRight:{points:["tr","br"],overflow:Ri,offset:[0,4],targetOffset:Mi}},Pk=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function _k(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?Ok:h,p=e.getPopupContainer,m=e.showAction,g=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,S=e.visible,$=e.trigger,w=$===void 0?["hover"]:$,C=e.autoFocus,x=e.overlay,_=e.children,T=e.onVisibleChange,R=qe(e,Pk),I=f.useState(),O=G(I,2),P=O[0],E=O[1],M="visible"in e?S:P,N=f.useRef(null),A=f.useRef(null),D=f.useRef(null);f.useImperativeHandle(t,function(){return N.current});var L=function(J){E(J),T==null||T(J);};$k({visible:M,triggerRef:D,onVisibleChange:L,autoFocus:C,overlayRef:A});var B=function(J){var ne=e.onOverlayClick;E(!1),ne&&ne(J);},U=function(){return f.createElement(Ek,{ref:A,overlay:x,prefixCls:a,arrow:o})},z=function(){return typeof x=="function"?U:U()},W=function(){var J=e.minOverlayWidthMatchTrigger,ne=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?J:!ne},K=function(){var J=e.openClassName;return J!==void 0?J:"".concat(a,"-open")},q=f.cloneElement(_,{className:X((n=_.props)===null||n===void 0?void 0:n.className,M&&K()),ref:jo(_)?Pn(D,_.ref):void 0}),Y=g;return !Y&&w.indexOf("contextMenu")!==-1&&(Y=["click"]),f.createElement(Jh,we({builtinPlacements:v},R,{prefixCls:a,ref:N,popupClassName:X(b,V({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:w,showAction:m,hideAction:Y,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:M,stretch:W()?"minWidth":"",popup:z(),onPopupVisibleChange:L,onPopupClick:B,getPopupContainer:p}),q)}const Rk=f.forwardRef(_k);var wC=f__namespace.createContext(null);function iv(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function xC(e){var t=f__namespace.useContext(wC);return iv(t,e)}var Mk=["children","locked"],$r=f__namespace.createContext(null);function Tk(e,t){var n=F({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function ms(e){var t=e.children,n=e.locked,r=qe(e,Mk),o=f__namespace.useContext($r),i=Rs(function(){return Tk(o,r)},[o,r],function(a,s){return !n&&(a[0]!==s[0]||!Ts(a[1],s[1],!0))});return f__namespace.createElement($r.Provider,{value:i},t)}var Ik=[],$C=f__namespace.createContext(null);function au(){return f__namespace.useContext($C)}var EC=f__namespace.createContext(Ik);function zs(e){var t=f__namespace.useContext(EC);return f__namespace.useMemo(function(){return e!==void 0?[].concat(me(t),[e]):t},[t,e])}var OC=f__namespace.createContext(null),av=f__namespace.createContext({});function Ym(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(eu(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 Nk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=me(e.querySelectorAll("*")).filter(function(r){return Ym(r,t)});return Ym(e,t)&&n.unshift(e),n}var Af=ee.LEFT,Df=ee.RIGHT,kf=ee.UP,_l=ee.DOWN,Rl=ee.ENTER,PC=ee.ESC,Pa=ee.HOME,_a=ee.END,Zm=[kf,_l,Af,Df];function Ak(e,t,n,r){var o,i,a,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Rl)return {inlineTrigger:!0};var h=(o={},V(o,kf,l),V(o,_l,c),o),v=(i={},V(i,Af,n?c:l),V(i,Df,n?l:c),V(i,_l,u),V(i,Rl,u),i),p=(a={},V(a,kf,l),V(a,_l,c),V(a,Rl,u),V(a,PC,d),V(a,Af,n?u:d),V(a,Df,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 Dk(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function kk(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function _C(e,t){var n=Nk(e,!0);return n.filter(function(r){return t.has(r)})}function Qm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=_C(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 Lk(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(){St.cancel(u.current);};return f__namespace.useEffect(function(){return function(){h();}},[]),function(v){var p=v.which;if([].concat(Zm,[Rl,PC,Pa,_a]).includes(p)){var m,g,b,y=function(){m=new Set,g=new Map,b=new Map;var M=i();return M.forEach(function(N){var A=document.querySelector("[data-menu-id='".concat(iv(r,N),"']"));A&&(m.add(A),b.set(A,N),g.set(N,A));}),m};y();var S=g.get(t),$=kk(S,m),w=b.get($),C=Ak(e,a(w,!0).length===1,n,p);if(!C&&p!==Pa&&p!==_a)return;(Zm.includes(p)||[Pa,_a].includes(p))&&v.preventDefault();var x=function(M){if(M){var N=M,A=M.querySelector("a");A!=null&&A.getAttribute("href")&&(N=A);var D=b.get(M);s(D),h(),u.current=St(function(){d.current===D&&N.focus();});}};if([Pa,_a].includes(p)||C.sibling||!$){var _;!$||e==="inline"?_=o.current:_=Dk($);var T,R=_C(_,m);p===Pa?T=R[0]:p===_a?T=R[R.length-1]:T=Qm(_,m,$,C.offset),x(T);}else if(C.inlineTrigger)l(w);else if(C.offset>0)l(w,!0),h(),u.current=St(function(){y();var E=$.getAttribute("aria-controls"),M=document.getElementById(E),N=Qm(M,m);x(N);},5);else if(C.offset<0){var I=a(w,!0),O=I[I.length-2],P=g.get(O);l(O,!1),x(P);}}c==null||c(v);}}function Fk(e){Promise.resolve().then(e);}var sv="__RC_UTIL_PATH_SPLIT__",Jm=function(t){return t.join(sv)},zk=function(t){return t.split(sv)},Lf="rc-menu-more";function jk(){var e=f__namespace.useState({}),t=G(e,2),n=t[1],r=f.useRef(new Map),o=f.useRef(new Map),i=f__namespace.useState([]),a=G(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(S,$){var w=Jm($);o.current.set(w,S),r.current.set(S,w),c.current+=1;var C=c.current;Fk(function(){C===c.current&&d();});},[]),v=f.useCallback(function(S,$){var w=Jm($);o.current.delete(w),r.current.delete(S);},[]),p=f.useCallback(function(S){l(S);},[]),m=f.useCallback(function(S,$){var w=r.current.get(S)||"",C=zk(w);return $&&s.includes(C[0])&&C.unshift(Lf),C},[s]),g=f.useCallback(function(S,$){return S.some(function(w){var C=m(w,!0);return C.includes($)})},[m]),b=function(){var $=me(r.current.keys());return s.length&&$.push(Lf),$},y=f.useCallback(function(S){var $="".concat(r.current.get(S)).concat(sv),w=new Set;return me(o.current.keys()).forEach(function(C){C.startsWith($)&&w.add(o.current.get(C));}),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 Di(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<o;a++)i[a]=arguments[a];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var Hk=Math.random().toFixed(5).toString().slice(2),eg=0;function Bk(e){var t=Qt(e,{value:e}),n=G(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){eg+=1;var i="".concat(Hk,"-").concat(eg);o("rc-menu-uuid-".concat(i));},[]),r}function RC(e,t,n,r){var o=f__namespace.useContext($r),i=o.activeKey,a=o.onActive,s=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e);},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e);}),l}function MC(e){var t=f__namespace.useContext($r),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function TC(e){var t=e.icon,n=e.props,r=e.children,o;return typeof t=="function"?o=f__namespace.createElement(t,F({},n)):o=t,o||r||null}var Wk=["item"];function uc(e){var t=e.item,n=qe(e,Wk);return Object.defineProperty(n,"item",{get:function(){return Cn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Vk=["title","attribute","elementRef"],Uk=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Gk=["active"],Kk=function(e){Fo(n,e);var t=zo(n);function n(){return vn(this,n),t.apply(this,arguments)}return pn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,s=o.elementRef,l=qe(o,Vk),c=wr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Cn(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f__namespace.createElement(Hr.Item,we({},a,{title:typeof i=="string"?i:void 0},c,{ref:s}))}}]),n}(f__namespace.Component),Xk=f__namespace.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey;e.warnKey;var a=e.disabled,s=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,h=e.onClick,v=e.onKeyDown,p=e.onFocus,m=qe(e,Uk),g=xC(i),b=f__namespace.useContext($r),y=b.prefixCls,S=b.onItemClick,$=b.disabled,w=b.overflowDisabled,C=b.itemIcon,x=b.selectedKeys,_=b.onActive,T=f__namespace.useContext(av),R=T._internalRenderMenuItem,I="".concat(y,"-item"),O=f__namespace.useRef(),P=f__namespace.useRef(),E=$||a,M=Ms(t,P),N=zs(i),A=function(ae){return {key:i,keyPath:me(N).reverse(),item:O.current,domEvent:ae}},D=s||C,L=RC(i,E,u,d),B=L.active,U=qe(L,Gk),z=x.includes(i),W=MC(N.length),K=function(ae){if(!E){var de=A(ae);h==null||h(uc(de)),S(de);}},q=function(ae){if(v==null||v(ae),ae.which===ee.ENTER){var de=A(ae);h==null||h(uc(de)),S(de);}},Y=function(ae){_(i),p==null||p(ae);},Z={};e.role==="option"&&(Z["aria-selected"]=z);var J=f__namespace.createElement(Kk,we({ref:O,elementRef:M,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":w&&g?null:g},m,U,Z,{component:"li","aria-disabled":a,style:F(F({},W),r),className:X(I,(n={},V(n,"".concat(I,"-active"),B),V(n,"".concat(I,"-selected"),z),V(n,"".concat(I,"-disabled"),E),n),o),onClick:K,onKeyDown:q,onFocus:Y}),l,f__namespace.createElement(TC,{props:F(F({},e),{},{isSelected:z}),icon:D}));return R&&(J=R(J,e,{selected:z})),J});function qk(e,t){var n=e.eventKey,r=au(),o=zs(n);return f__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:f__namespace.createElement(Xk,we({},e,{ref:t}))}const su=f__namespace.forwardRef(qk);var Yk=["className","children"],Zk=function(t,n){var r=t.className,o=t.children,i=qe(t,Yk),a=f__namespace.useContext($r),s=a.prefixCls,l=a.mode,c=a.rtl;return f__namespace.createElement("ul",we({className:X(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},lv=f__namespace.forwardRef(Zk);lv.displayName="SubMenuList";var Qk=["label","children","key","type"];function cv(e,t){return Sr(e).map(function(n,r){if(f__namespace.isValidElement(n)){var o,i,a=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,l=s==null;l&&(s="tmp_key-".concat([].concat(me(t),[r]).join("-")));var c={key:s,eventKey:s};return f__namespace.cloneElement(n,c)}return n})}function Ff(e){return (e||[]).map(function(t,n){if(t&&et(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,s=r.type,l=qe(r,Qk),c=a??"tmp-".concat(n);return i||s==="group"?s==="group"?f__namespace.createElement(GC,we({key:c},l,{title:o}),Ff(i)):f__namespace.createElement(pv,we({key:c},l,{title:o}),Ff(i)):s==="divider"?f__namespace.createElement(KC,we({key:c},l)):f__namespace.createElement(su,we({key:c},l),o)}return null}).filter(function(t){return t})}function Jk(e,t,n){var r=e;return t&&(r=Ff(t)),cv(r,n)}var eL=f.forwardRef(function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,i=f.useRef(),a=f.useRef();f.useImperativeHandle(t,function(){return {}});var s=f.useRef(!1);return !s.current&&Mn()&&(a.current=r(),i.current=a.current.parentNode,s.current=!0),f.useEffect(function(){n==null||n(e);}),f.useEffect(function(){return a.current.parentNode===null&&i.current!==null&&i.current.appendChild(a.current),function(){var l,c;(l=a.current)===null||l===void 0||(c=l.parentNode)===null||c===void 0||c.removeChild(a.current);}},[]),a.current?Ji.createPortal(o,a.current):null});function tL(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function nL(e,t,n){var r=e[t]||{};return F(F({},r),n)}function rL(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a];if(tL(e[s].points,o,r))return "".concat(t,"-placement-").concat(s)}return ""}function IC(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function oL(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,o=e.mask,i=e.maskMotion,a=e.maskAnimation,s=e.maskTransitionName;if(!o)return null;var l={};return (i||s||a)&&(l=F({motionAppear:!0},IC({motion:i,prefixCls:t,transitionName:s,animation:a}))),f__namespace.createElement(Or,we({},l,{visible:n,removeOnLeave:!0}),function(c){var u=c.className;return f__namespace.createElement("div",{style:{zIndex:r},className:X("".concat(t,"-mask"),u)})})}function tg(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 ng(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tg(Object(n),!0).forEach(function(r){iL(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function zf(e){"@babel/helpers - typeof";return zf=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},zf(e)}function iL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ra,aL={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function dc(){if(Ra!==void 0)return Ra;Ra="";var e=document.createElement("p").style,t="Transform";for(var n in aL)n+t in e&&(Ra=n);return Ra}function NC(){return dc()?"".concat(dc(),"TransitionProperty"):"transitionProperty"}function lu(){return dc()?"".concat(dc(),"Transform"):"transform"}function rg(e,t){var n=NC();n&&(e.style[n]=t,n!=="transitionProperty"&&(e.style.transitionProperty=t));}function dd(e,t){var n=lu();n&&(e.style[n]=t,n!=="transform"&&(e.style.transform=t));}function sL(e){return e.style.transitionProperty||e.style[NC()]}function lL(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(lu());if(n&&n!=="none"){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return {x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return {x:0,y:0}}var cL=/matrix\((.*)\)/,uL=/matrix3d\((.*)\)/;function dL(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(lu());if(r&&r!=="none"){var o,i=r.match(cL);if(i)i=i[1],o=i.split(",").map(function(s){return parseFloat(s,10)}),o[4]=t.x,o[5]=t.y,dd(e,"matrix(".concat(o.join(","),")"));else {var a=r.match(uL)[1];o=a.split(",").map(function(s){return parseFloat(s,10)}),o[12]=t.x,o[13]=t.y,dd(e,"matrix3d(".concat(o.join(","),")"));}}else dd(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"));}var fL=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,js;function og(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t;}function Ui(e,t,n){var r=n;if(zf(t)==="object"){for(var o in t)t.hasOwnProperty(o)&&Ui(e,o,t[o]);return}if(typeof r<"u"){typeof r=="number"&&(r="".concat(r,"px")),e.style[t]=r;return}return js(e,t)}function hL(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),n-=a.clientLeft||i.clientLeft||0,r-=a.clientTop||i.clientTop||0,{left:n,top:r}}function AC(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r]);}return n}function DC(e){return AC(e)}function kC(e){return AC(e,!0)}function gs(e){var t=hL(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=DC(r),t.top+=kC(r),t}function uv(e){return e!=null&&e==e.window}function LC(e){return uv(e)?e.document:e.nodeType===9?e:e.ownerDocument}function vL(e,t,n){var r=n,o="",i=LC(e);return r=r||i.defaultView.getComputedStyle(e,null),r&&(o=r.getPropertyValue(t)||r[t]),o}var pL=new RegExp("^(".concat(fL,")(?!px)[a-z%]+$"),"i"),mL=/^(top|right|bottom|left)$/,fd="currentStyle",hd="runtimeStyle",Xo="left",gL="px";function bL(e,t){var n=e[fd]&&e[fd][t];if(pL.test(n)&&!mL.test(t)){var r=e.style,o=r[Xo],i=e[hd][Xo];e[hd][Xo]=e[fd][Xo],r[Xo]=t==="fontSize"?"1em":n||0,n=r.pixelLeft+gL,r[Xo]=o,e[hd][Xo]=i;}return n===""?"auto":n}typeof window<"u"&&(js=window.getComputedStyle?vL:bL);function pl(e,t){return e==="left"?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ig(e){if(e==="left")return "right";if(e==="right")return "left";if(e==="top")return "bottom";if(e==="bottom")return "top"}function ag(e,t,n){Ui(e,"position")==="static"&&(e.style.position="relative");var r=-999,o=-999,i=pl("left",n),a=pl("top",n),s=ig(i),l=ig(a);i!=="left"&&(r=999),a!=="top"&&(o=999);var c="",u=gs(e);("left"in t||"top"in t)&&(c=sL(e)||"",rg(e,"none")),"left"in t&&(e.style[s]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(o,"px")),og(e);var d=gs(e),h={};for(var v in t)if(t.hasOwnProperty(v)){var p=pl(v,n),m=v==="left"?r:o,g=u[v]-d[v];p===v?h[p]=m+g:h[p]=m-g;}Ui(e,h),og(e),("left"in t||"top"in t)&&rg(e,c);var b={};for(var y in t)if(t.hasOwnProperty(y)){var S=pl(y,n),$=t[y]-u[y];y===S?b[S]=h[S]+$:b[S]=h[S]-$;}Ui(e,b);}function yL(e,t){var n=gs(e),r=lL(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),dL(e,o);}function CL(e,t,n){if(n.ignoreShake){var r=gs(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(o===a&&i===s)return}n.useCssRight||n.useCssBottom?ag(e,t,n):n.useCssTransform&&lu()in document.body.style?yL(e,t):ag(e,t,n);}function dv(e,t){for(var n=0;n<e.length;n++)t(e[n]);}function FC(e){return js(e,"boxSizing")==="border-box"}var SL=["margin","border","padding"],jf=-1,wL=2,Hf=1,xL=0;function $L(e,t,n){var r={},o=e.style,i;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);n.call(e);for(i in t)t.hasOwnProperty(i)&&(o[i]=r[i]);}function La(e,t,n){var r=0,o,i,a;for(i=0;i<t.length;i++)if(o=t[i],o)for(a=0;a<n.length;a++){var s=void 0;o==="border"?s="".concat(o).concat(n[a],"Width"):s=o+n[a],r+=parseFloat(js(e,s))||0;}return r}var Fr={getParent:function(t){var n=t;do n.nodeType===11&&n.host?n=n.host:n=n.parentNode;while(n&&n.nodeType!==1&&n.nodeType!==9);return n}};dv(["Width","Height"],function(e){Fr["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],Fr["viewport".concat(e)](n))},Fr["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement,a=i[n];return r.compatMode==="CSS1Compat"&&a||o&&o[n]||a};});function sg(e,t,n){var r=n;if(uv(e))return t==="width"?Fr.viewportWidth(e):Fr.viewportHeight(e);if(e.nodeType===9)return t==="width"?Fr.docWidth(e):Fr.docHeight(e);var o=t==="width"?["Left","Right"]:["Top","Bottom"],i=Math.floor(t==="width"?e.getBoundingClientRect().width:e.getBoundingClientRect().height),a=FC(e),s=0;(i==null||i<=0)&&(i=void 0,s=js(e,t),(s==null||Number(s)<0)&&(s=e.style[t]||0),s=Math.floor(parseFloat(s))||0),r===void 0&&(r=a?Hf:jf);var l=i!==void 0||a,c=i||s;return r===jf?l?c-La(e,["border","padding"],o):s:l?r===Hf?c:c+(r===wL?-La(e,["border"],o):La(e,["margin"],o)):s+La(e,SL.slice(r),o)}var EL={position:"absolute",visibility:"hidden",display:"block"};function lg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return o.offsetWidth!==0?r=sg.apply(void 0,t):$L(o,EL,function(){r=sg.apply(void 0,t);}),r}dv(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Fr["outer".concat(t)]=function(r,o){return r&&lg(r,e,o?xL:Hf)};var n=e==="width"?["Left","Right"]:["Top","Bottom"];Fr[e]=function(r,o){var i=o;if(i!==void 0){if(r){var a=FC(r);return a&&(i+=La(r,["padding","border"],n)),Ui(r,e,i)}return}return r&&lg(r,e,jf)};});function zC(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var it={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var n=t.ownerDocument||t;return n.defaultView||n.parentWindow},getDocument:LC,offset:function(t,n,r){if(typeof n<"u")CL(t,n,r||{});else return gs(t)},isWindow:uv,each:dv,css:Ui,clone:function(t){var n,r={};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);var o=t.overflow;if(o)for(n in t)t.hasOwnProperty(n)&&(r.overflow[n]=t.overflow[n]);return r},mix:zC,getWindowScrollLeft:function(t){return DC(t)},getWindowScrollTop:function(t){return kC(t)},merge:function(){for(var t={},n=0;n<arguments.length;n++)it.mix(t,n<0||arguments.length<=n?void 0:arguments[n]);return t},viewportWidth:0,viewportHeight:0};zC(it,Fr);var vd=it.getParent;function Bf(e){if(it.isWindow(e)||e.nodeType===9)return null;var t=it.getDocument(e),n=t.body,r,o=it.css(e,"position"),i=o==="fixed"||o==="absolute";if(!i)return e.nodeName.toLowerCase()==="html"?null:vd(e);for(r=vd(e);r&&r!==n&&r.nodeType!==9;r=vd(r))if(o=it.css(r,"position"),o!=="static")return r;return null}var cg=it.getParent;function OL(e){if(it.isWindow(e)||e.nodeType===9)return !1;var t=it.getDocument(e),n=t.body,r=null;for(r=cg(e);r&&r!==n&&r!==t;r=cg(r)){var o=it.css(r,"position");if(o==="fixed")return !0}return !1}function fv(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Bf(e),o=it.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,s=o.documentElement;r;){if((navigator.userAgent.indexOf("MSIE")===-1||r.clientWidth!==0)&&r!==a&&r!==s&&it.css(r,"overflow")!=="visible"){var l=it.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left);}else if(r===a||r===s)break;r=Bf(r);}var c=null;if(!it.isWindow(e)&&e.nodeType!==9){c=e.style.position;var u=it.css(e,"position");u==="absolute"&&(e.style.position="fixed");}var d=it.getWindowScrollLeft(i),h=it.getWindowScrollTop(i),v=it.viewportWidth(i),p=it.viewportHeight(i),m=s.scrollWidth,g=s.scrollHeight,b=window.getComputedStyle(a);if(b.overflowX==="hidden"&&(m=i.innerWidth),b.overflowY==="hidden"&&(g=i.innerHeight),e.style&&(e.style.position=c),t||OL(e))n.left=Math.max(n.left,d),n.top=Math.max(n.top,h),n.right=Math.min(n.right,d+v),n.bottom=Math.min(n.bottom,h+p);else {var y=Math.max(m,d+v);n.right=Math.min(n.right,y);var S=Math.max(g,h+p);n.bottom=Math.min(n.bottom,S);}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function PL(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=n.left),r.resizeWidth&&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=n.top),r.resizeHeight&&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 hv(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 ug(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 ml(e,t,n,r,o){var i=ug(t,n[1]),a=ug(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 dg(e,t,n){return e.left<n.left||e.left+t.width>n.right}function fg(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function _L(e,t,n){return e.left>n.right||e.left+t.width<n.left}function RL(e,t,n){return e.top>n.bottom||e.top+t.height<n.top}function gl(e,t,n){var r=[];return it.each(e,function(o){r.push(o.replace(t,function(i){return n[i]}));}),r}function bl(e,t){return e[t]=-e[t],e}function hg(e,t){var n;return /%$/.test(e)?n=parseInt(e.substring(0,e.length-1),10)/100*t:n=parseInt(e,10),n||0}function vg(e,t){e[0]=hg(e[0],t.width),e[1]=hg(e[1],t.height);}function jC(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;i=[].concat(i),a=[].concat(a),s=s||{};var c={},u=0,d=!!(s&&s.alwaysByViewport),h=fv(l,d),v=hv(l);vg(i,v),vg(a,t);var p=ml(v,t,o,i,a),m=it.merge(v,p);if(h&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&dg(p,v,h)){var g=gl(o,/[lr]/gi,{l:"r",r:"l"}),b=bl(i,0),y=bl(a,0),S=ml(v,t,g,b,y);_L(S,v,h)||(u=1,o=g,i=b,a=y);}if(s.adjustY&&fg(p,v,h)){var $=gl(o,/[tb]/gi,{t:"b",b:"t"}),w=bl(i,1),C=bl(a,1),x=ml(v,t,$,w,C);RL(x,v,h)||(u=1,o=$,i=w,a=C);}u&&(p=ml(v,t,o,i,a),it.mix(m,p));var _=dg(p,v,h),T=fg(p,v,h);if(_||T){var R=o;_&&(R=gl(o,/[lr]/gi,{l:"r",r:"l"})),T&&(R=gl(o,/[tb]/gi,{t:"b",b:"t"})),o=R,i=n.offset||[0,0],a=n.targetOffset||[0,0];}c.adjustX=s.adjustX&&_,c.adjustY=s.adjustY&&T,(c.adjustX||c.adjustY)&&(m=PL(p,v,h,c));}return m.width!==v.width&&it.css(l,"width",it.width(l)+m.width-v.width),m.height!==v.height&&it.css(l,"height",it.height(l)+m.height-v.height),it.offset(l,{left:m.left,top:m.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:c}}function ML(e,t){var n=fv(e,t),r=hv(e);return !n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}function vv(e,t,n){var r=n.target||t,o=hv(r),i=!ML(r,n.overflow&&n.overflow.alwaysByViewport);return jC(e,o,n,i)}vv.__getOffsetParent=Bf;vv.__getVisibleRectForElement=fv;function TL(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 jC(e,d,ng(ng({},n),{},{points:v}),h)}const IL=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 NL(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 AL(e,t){e!==document.activeElement&&Wa(t,e)&&typeof e.focus=="function"&&e.focus();}function pg(e,t){var n=null,r=null;function o(a){var s=G(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 b0(o);return e&&i.observe(e),function(){i.disconnect();}}function mg(e){return typeof e!="function"?null:e()}function gg(e){return et(e)!=="object"||!e?null:e}var DL=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=IL(function(){var I=p.current,O=I.disabled,P=I.target,E=I.align,M=I.onAlign,N=h.current;if(!O&&P&&N){var A,D=mg(P),L=gg(P);d.current.element=D,d.current.point=L,d.current.align=E;var B=document,U=B.activeElement;return D&&eu(D)?A=vv(N,D,E):L&&(A=TL(N,L,E)),AL(U,N),M&&A&&M(N,A),!0}return !1},u),g=G(m,2),b=g[0],y=g[1],S=f.useState(),$=G(S,2),w=$[0],C=$[1],x=f.useState(),_=G(x,2),T=_[0],R=_[1];return Ht(function(){C(mg(i)),R(gg(i));}),f.useEffect(function(){(d.current.element!==w||!NL(d.current.point,T)||!Ts(d.current.align,a))&&b();}),f.useEffect(function(){var I=pg(h.current,b);return I},[h.current]),f.useEffect(function(){var I=pg(w,b);return I},[w]),f.useEffect(function(){o?y():b();},[o]),f.useEffect(function(){if(l){var I=ka(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:Pn(v.ref,h)})),v},HC=f.forwardRef(DL);HC.displayName="Align";var bg=["measure","alignPre","align",null,"motion"];const kL=function(e,t){var n=No(null),r=G(n,2),o=r[0],i=r[1],a=f.useRef();function s(u){i(u,!0);}function l(){St.cancel(a.current);}function c(u){l(),a.current=St(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=St(vi(Tn().mark(function u(){var d,h;return Tn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:d=bg.indexOf(o),h=bg[d+1],h&&d!==-1&&s(h);case 3:case"end":return p.stop()}},u)}))));},[o]),f.useEffect(function(){return function(){l();}},[]),[o,c]},LL=function(e){var t=f__namespace.useState({width:0,height:0}),n=G(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 BC=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,S=e.onTouchStart,$=e.onClick,w=f.useRef(),C=f.useRef(),x=f.useState(),_=G(x,2),T=_[0],R=_[1],I=LL(l),O=G(I,2),P=O[0],E=O[1];function M(){l&&E(v());}var N=kL(n,M),A=G(N,2),D=A[0],L=A[1],B=f.useState(0),U=G(B,2),z=U[0],W=U[1],K=f.useRef();Ht(function(){D==="alignPre"&&W(0);},[D]);function q(){return h||v}function Y(){var te;(te=w.current)===null||te===void 0||te.forceAlign();}function Z(te,se){var ue=p(se);T!==ue&&R(ue),W(function(ce){return ce+1}),D==="align"&&(m==null||m(te,se));}Ht(function(){D==="align"&&(z<3?Y():L(function(){var te;(te=K.current)===null||te===void 0||te.call(K);}));},[z]);var J=F({},IC(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(te){var se=J[te];J[te]=function(ue,ce){return L(),se==null?void 0:se(ue,ce)};});function ne(){return new Promise(function(te){K.current=te;})}f__namespace.useEffect(function(){!J.motionName&&D==="motion"&&L();},[J.motionName,D]),f__namespace.useImperativeHandle(t,function(){return {forceAlign:Y,getElement:function(){return C.current}}});var ae=F(F({},P),{},{zIndex:s,opacity:D==="motion"||D==="stable"||!n?void 0:0,pointerEvents:!n&&D!=="stable"?"none":void 0},i),de=!0;d!=null&&d.points&&(D==="align"||D==="stable")&&(de=!1);var pe=a;return f__namespace.Children.count(a)>1&&(pe=f__namespace.createElement("div",{className:"".concat(r,"-content")},a)),f__namespace.createElement(Or,we({visible:n,ref:C,leavedClassName:"".concat(r,"-hidden")},J,{onAppearPrepare:ne,onEnterPrepare:ne,removeOnLeave:c,forceRender:u}),function(te,se){var ue=te.className,ce=te.style,ve=X(r,o,T,ue);return f__namespace.createElement(HC,{target:q(),key:"popup",ref:w,monitorWindowResize:!0,disabled:de,align:d,onAlign:Z},f__namespace.createElement("div",{ref:se,className:ve,onMouseEnter:g,onMouseLeave:b,onMouseDownCapture:y,onTouchStartCapture:S,onClick:$,style:F(F({},ce),ae)},pe))})});BC.displayName="PopupInner";var WC=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=F({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(Or,we({visible:r,ref:v,removeOnLeave:!0},u),function(g,b){var y=g.className,S=g.style,$=X(n,s,y);return f__namespace.createElement("div",{ref:b,className:$,onClick:h,style:F(F({},S),p)},m)})});WC.displayName="MobilePopupInner";var FL=["visible","mobile"],VC=f__namespace.forwardRef(function(e,t){var n=e.visible,r=e.mobile,o=qe(e,FL),i=f.useState(n),a=G(i,2),s=a[0],l=a[1],c=f.useState(!1),u=G(c,2),d=u[0],h=u[1],v=F(F({},o),{},{visible:s});f.useEffect(function(){l(n),n&&r&&h(Ls());},[n,r]);var p=d?f__namespace.createElement(WC,we({},v,{mobile:r,ref:t})):f__namespace.createElement(BC,we({},v,{ref:t}));return f__namespace.createElement("div",null,f__namespace.createElement(oL,v),p)});VC.displayName="Popup";var yg=f__namespace.createContext(null);function pd(){}function zL(){return ""}function jL(e){return e?e.ownerDocument:window.document}var HL=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function BL(e){var t=function(n){Fo(o,n);var r=zo(o);function o(i){var a;vn(this,o),a=r.call(this,i),V(ht(a),"popupRef",f__namespace.createRef()),V(ht(a),"triggerRef",f__namespace.createRef()),V(ht(a),"portalContainer",void 0),V(ht(a),"attachId",void 0),V(ht(a),"clickOutsideHandler",void 0),V(ht(a),"touchOutsideHandler",void 0),V(ht(a),"contextMenuOutsideHandler1",void 0),V(ht(a),"contextMenuOutsideHandler2",void 0),V(ht(a),"mouseDownTimeout",void 0),V(ht(a),"focusTime",void 0),V(ht(a),"preClickTime",void 0),V(ht(a),"preTouchTime",void 0),V(ht(a),"delayTimer",void 0),V(ht(a),"hasPopupMouseDown",void 0),V(ht(a),"onMouseEnter",function(l){var c=a.props.mouseEnterDelay;a.fireEvents("onMouseEnter",l),a.delaySetPopupVisible(!0,c,c?null:l);}),V(ht(a),"onMouseMove",function(l){a.fireEvents("onMouseMove",l),a.setPoint(l);}),V(ht(a),"onMouseLeave",function(l){a.fireEvents("onMouseLeave",l),a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay);}),V(ht(a),"onPopupMouseEnter",function(){a.clearDelayTimer();}),V(ht(a),"onPopupMouseLeave",function(l){var c;l.relatedTarget&&!l.relatedTarget.setTimeout&&Wa((c=a.popupRef.current)===null||c===void 0?void 0:c.getElement(),l.relatedTarget)||a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay);}),V(ht(a),"onFocus",function(l){a.fireEvents("onFocus",l),a.clearDelayTimer(),a.isFocusToShow()&&(a.focusTime=Date.now(),a.delaySetPopupVisible(!0,a.props.focusDelay));}),V(ht(a),"onMouseDown",function(l){a.fireEvents("onMouseDown",l),a.preClickTime=Date.now();}),V(ht(a),"onTouchStart",function(l){a.fireEvents("onTouchStart",l),a.preTouchTime=Date.now();}),V(ht(a),"onBlur",function(l){a.fireEvents("onBlur",l),a.clearDelayTimer(),a.isBlurToHide()&&a.delaySetPopupVisible(!1,a.props.blurDelay);}),V(ht(a),"onContextMenu",function(l){l.preventDefault(),a.fireEvents("onContextMenu",l),a.setPopupVisible(!0,l);}),V(ht(a),"onContextMenuClose",function(){a.isContextMenuToShow()&&a.close();}),V(ht(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);}),V(ht(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);}}),V(ht(a),"onDocumentClick",function(l){if(!(a.props.mask&&!a.props.maskClosable)){var c=l.target,u=a.getRootDomNode(),d=a.getPopupDomNode();(!Wa(u,c)||a.isContextMenuOnly())&&!Wa(d,c)&&!a.hasPopupMouseDown&&a.close();}}),V(ht(a),"getRootDomNode",function(){var l=a.props.getTriggerDOMNode;if(l)return l(a.triggerRef.current);try{var c=ds(a.triggerRef.current);if(c)return c}catch{}return Ji.findDOMNode(ht(a))}),V(ht(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(rL(h,v,l,p)),m&&c.push(m(l)),c.join(" ")}),V(ht(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,S=l.maskTransitionName,$=l.maskMotion,w=l.zIndex,C=l.popup,x=l.stretch,_=l.alignPoint,T=l.mobile,R=l.forceRender,I=l.onPopupClick,O=a.state,P=O.popupVisible,E=O.point,M=a.getPopupAlign(),N={};return a.isMouseEnterToShow()&&(N.onMouseEnter=a.onPopupMouseEnter),a.isMouseLeaveToHide()&&(N.onMouseLeave=a.onPopupMouseLeave),N.onMouseDown=a.onPopupMouseDown,N.onTouchStart=a.onPopupMouseDown,f__namespace.createElement(VC,we({prefixCls:c,destroyPopupOnHide:u,visible:P,point:_&&E,className:d,align:M,onAlign:h,animation:p,getClassNameFromAlign:a.getPopupClassNameFromAlign},N,{stretch:x,getRootDomNode:a.getRootDomNode,style:g,mask:b,zIndex:w,transitionName:m,maskAnimation:y,maskTransitionName:S,maskMotion:$,ref:a.popupRef,motion:v,mobile:T,forceRender:R,onClick:I}),typeof C=="function"?C():C)}),V(ht(a),"attachParent",function(l){St.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=St(function(){a.attachParent(l);});}),V(ht(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}),V(ht(a),"setPoint",function(l){var c=a.props.alignPoint;!c||!l||a.setState({point:{pageX:l.pageX,pageY:l.pageY}});}),V(ht(a),"handlePortalUpdate",function(){a.state.prevPopupVisible!==a.state.popupVisible&&a.props.afterPopupVisibleChange(a.state.popupVisible);}),V(ht(a),"triggerContextValue",{onPopupMouseDown:a.onPopupMouseDown});var s;return "popupVisible"in i?s=!!i.popupVisible:s=!!i.defaultPopupVisible,a.state={prevPopupVisible:s,popupVisible:s},HL.forEach(function(l){a["fire".concat(l)]=function(c){a.fireEvents(l,c);};}),a}return pn(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=ka(l,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(l=l||a.getDocument(this.getRootDomNode()),this.touchOutsideHandler=ka(l,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(l=l||a.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=ka(l,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=ka(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler();}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),St.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?nL(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=F({},p);jo(v)&&(g.ref=Pn(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(yg.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 V(t,"contextType",yg),V(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:zL,getDocument:jL,onPopupVisibleChange:pd,afterPopupVisibleChange:pd,onPopupAlign:pd,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 WL=BL(eL);var Io={adjustX:1,adjustY:1},VL={topLeft:{points:["bl","tl"],overflow:Io,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Io,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Io,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Io,offset:[4,0]}},UL={topLeft:{points:["bl","tl"],overflow:Io,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Io,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Io,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Io,offset:[4,0]}};function UC(e,t,n){if(t)return t;if(n)return n[e]||n.other}var GL={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function KL(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($r),d=u.getPopupContainer,h=u.rtl,v=u.subMenuOpenDelay,p=u.subMenuCloseDelay,m=u.builtinPlacements,g=u.triggerSubMenuAction,b=u.forceSubMenuRender,y=u.rootClassName,S=u.motion,$=u.defaultMotions,w=f__namespace.useState(!1),C=G(w,2),x=C[0],_=C[1],T=F(h?F({},UL):F({},VL),m),R=GL[l],I=UC(l,S,$),O=f__namespace.useRef(I);l!=="inline"&&(O.current=I);var P=F(F({},O.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),E=f__namespace.useRef();return f__namespace.useEffect(function(){return E.current=St(function(){_(n);}),function(){St.cancel(E.current);}},[n]),f__namespace.createElement(WL,{prefixCls:t,popupClassName:X("".concat(t,"-popup"),V({},"".concat(t,"-rtl"),h),i,y),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:T,popupPlacement:R,popupVisible:x,popup:o,popupAlign:a&&{offset:a},action:s?[]:[g],mouseEnterDelay:v,mouseLeaveDelay:p,onPopupVisibleChange:c,forceRender:b,popupMotion:P},r)}function XL(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=f__namespace.useContext($r),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=G(v,2),m=p[0],g=p[1],b=h.current?n:!1;f__namespace.useEffect(function(){h.current&&g(!1);},[d]);var y=F({},UC(i,c,u));r.length>1&&(y.motionAppear=!1);var S=y.onVisibleChanged;return y.onVisibleChanged=function($){return !h.current&&!$&&g(!0),S==null?void 0:S($)},m?null:f__namespace.createElement(ms,{mode:i,locked:!h.current},f__namespace.createElement(Or,we({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function($){var w=$.className,C=$.style;return f__namespace.createElement(lv,{id:t,className:w,style:C},o)}))}var qL=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],YL=["active"],ZL=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,S=t.onTitleMouseLeave,$=qe(t,qL),w=xC(a),C=f__namespace.useContext($r),x=C.prefixCls,_=C.mode,T=C.openKeys,R=C.disabled,I=C.overflowDisabled,O=C.activeKey,P=C.selectedKeys,E=C.itemIcon,M=C.expandIcon,N=C.onItemClick,A=C.onOpenChange,D=C.onActive,L=f__namespace.useContext(av),B=L._internalRenderSubMenuItem,U=f__namespace.useContext(OC),z=U.isSubPathKey,W=zs(),K="".concat(x,"-submenu"),q=R||s,Y=f__namespace.useRef(),Z=f__namespace.useRef(),J=u||E,ne=d||M,ae=T.includes(a),de=!I&&ae,pe=z(P,a),te=RC(a,q,y,S),se=te.active,ue=qe(te,YL),ce=f__namespace.useState(!1),ve=G(ce,2),re=ve[0],he=ve[1],ie=function(Le){q||he(Le);},xe=function(Le){ie(!0),m==null||m({key:a,domEvent:Le});},Ne=function(Le){ie(!1),g==null||g({key:a,domEvent:Le});},Ge=f__namespace.useMemo(function(){return se||(_!=="inline"?re||z([O],a):!1)},[_,se,O,re,a,z]),st=MC(W.length),lt=function(Le){q||(b==null||b({key:a,domEvent:Le}),_==="inline"&&A(a,!ae));},De=Di(function(Se){p==null||p(uc(Se)),N(Se);}),ze=function(Le){_!=="inline"&&A(a,Le);},_e=function(){D(a);},ke=w&&"".concat(w,"-popup"),Pe=f__namespace.createElement("div",we({role:"menuitem",style:st,className:"".concat(K,"-title"),tabIndex:q?null:-1,ref:Y,title:typeof i=="string"?i:null,"data-menu-id":I&&w?null:w,"aria-expanded":de,"aria-haspopup":!0,"aria-controls":ke,"aria-disabled":q,onClick:lt,onFocus:_e},ue),i,f__namespace.createElement(TC,{icon:_!=="horizontal"?ne:null,props:F(F({},t),{},{isOpen:de,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(K,"-arrow")}))),Ue=f__namespace.useRef(_);if(_!=="inline"&&W.length>1?Ue.current="vertical":Ue.current=_,!I){var tt=Ue.current;Pe=f__namespace.createElement(KL,{mode:tt,prefixCls:K,visible:!l&&de&&_!=="inline",popupClassName:h,popupOffset:v,popup:f__namespace.createElement(ms,{mode:tt==="horizontal"?"vertical":tt},f__namespace.createElement(lv,{id:ke,ref:Z},c)),disabled:q,onVisibleChange:ze},Pe);}var Ce=f__namespace.createElement(Hr.Item,we({role:"none"},$,{component:"li",style:r,className:X(K,"".concat(K,"-").concat(_),o,(n={},V(n,"".concat(K,"-open"),de),V(n,"".concat(K,"-active"),Ge),V(n,"".concat(K,"-selected"),pe),V(n,"".concat(K,"-disabled"),q),n)),onMouseEnter:xe,onMouseLeave:Ne}),Pe,!I&&f__namespace.createElement(XL,{id:ke,open:de,keyPath:W},c));return B&&(Ce=B(Ce,t,{selected:pe,active:Ge,open:de,disabled:q})),f__namespace.createElement(ms,{onItemClick:De,mode:_==="horizontal"?"vertical":_,itemIcon:J,expandIcon:ne},Ce)};function pv(e){var t=e.eventKey,n=e.children,r=zs(t),o=cv(n,r),i=au();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(ZL,e,o),f__namespace.createElement(EC.Provider,{value:r},a)}var QL=["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"],Ti=[],JL=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,S=o.disabled,$=o.disabledOverflow,w=o.subMenuOpenDelay,C=w===void 0?.1:w,x=o.subMenuCloseDelay,_=x===void 0?.1:x,T=o.forceSubMenuRender,R=o.defaultOpenKeys,I=o.openKeys,O=o.activeKey,P=o.defaultActiveFirst,E=o.selectable,M=E===void 0?!0:E,N=o.multiple,A=N===void 0?!1:N,D=o.defaultSelectedKeys,L=o.selectedKeys,B=o.onSelect,U=o.onDeselect,z=o.inlineIndent,W=z===void 0?24:z,K=o.motion,q=o.defaultMotions,Y=o.triggerSubMenuAction,Z=Y===void 0?"hover":Y,J=o.builtinPlacements,ne=o.itemIcon,ae=o.expandIcon,de=o.overflowedIndicator,pe=de===void 0?"...":de,te=o.overflowedIndicatorPopupClassName,se=o.getPopupContainer,ue=o.onClick,ce=o.onOpenChange,ve=o.onKeyDown;o.openAnimation,o.openTransitionName;var re=o._internalRenderMenuItem,he=o._internalRenderSubMenuItem,ie=qe(o,QL),xe=f__namespace.useMemo(function(){return Jk(v,h,Ti)},[v,h]),Ne=f__namespace.useState(!1),Ge=G(Ne,2),st=Ge[0],lt=Ge[1],De=f__namespace.useRef(),ze=Bk(m),_e=p==="rtl",ke=Qt(R,{value:I,postState:function(ge){return ge||Ti}}),Pe=G(ke,2),Ue=Pe[0],tt=Pe[1],Ce=function(ge){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ct(){tt(ge),ce==null||ce(ge);}je?Ji.flushSync(Ct):Ct();},Se=f__namespace.useState(Ue),Le=G(Se,2),nt=Le[0],Be=Le[1],wt=f__namespace.useRef(!1),ye=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),Oe=G(ye,2),Ae=Oe[0],Re=Oe[1],Qe=Ae==="inline",Tt=f__namespace.useState(Ae),Ft=G(Tt,2),Dt=Ft[0],le=Ft[1],fe=f__namespace.useState(Re),oe=G(fe,2),Ee=oe[0],Ie=oe[1];f__namespace.useEffect(function(){le(Ae),Ie(Re),wt.current&&(Qe?tt(nt):Ce(Ti));},[Ae,Re]);var Je=f__namespace.useState(0),Ut=G(Je,2),bt=Ut[0],nn=Ut[1],yt=bt>=xe.length-1||Dt!=="horizontal"||$;f__namespace.useEffect(function(){Qe&&Be(Ue);},[Ue]),f__namespace.useEffect(function(){return wt.current=!0,function(){wt.current=!1;}},[]);var Ye=jk(),Ze=Ye.registerPath,Me=Ye.unregisterPath,xt=Ye.refreshOverflowKeys,vt=Ye.isSubPathKey,Bt=Ye.getKeyPath,Ke=Ye.getKeys,We=Ye.getSubPathKeys,dt=f__namespace.useMemo(function(){return {registerPath:Ze,unregisterPath:Me}},[Ze,Me]),Et=f__namespace.useMemo(function(){return {isSubPathKey:vt}},[vt]);f__namespace.useEffect(function(){xt(yt?Ti:xe.slice(bt+1).map(function($e){return $e.key}));},[bt,yt]);var qt=Qt(O||P&&((n=xe[0])===null||n===void 0?void 0:n.key),{value:O}),Wt=G(qt,2),wn=Wt[0],In=Wt[1],lr=Di(function($e){In($e);}),Xr=Di(function(){In(void 0);});f.useImperativeHandle(t,function(){return {list:De.current,focus:function(ge){var je,Ct=wn??((je=xe.find(function(Fn){return !Fn.props.disabled}))===null||je===void 0?void 0:je.key);if(Ct){var ct,$t,zt;(ct=De.current)===null||ct===void 0||($t=ct.querySelector("li[data-menu-id='".concat(iv(ze,Ct),"']")))===null||$t===void 0||(zt=$t.focus)===null||zt===void 0||zt.call($t,ge);}}}});var Pr=Qt(D||[],{value:L,postState:function(ge){return Array.isArray(ge)?ge:ge==null?Ti:[ge]}}),Jn=G(Pr,2),_n=Jn[0],qr=Jn[1],Bo=function(ge){if(M){var je=ge.key,Ct=_n.includes(je),ct;A?Ct?ct=_n.filter(function(zt){return zt!==je}):ct=[].concat(me(_n),[je]):ct=[je],qr(ct);var $t=F(F({},ge),{},{selectedKeys:ct});Ct?U==null||U($t):B==null||B($t);}!A&&Ue.length&&Dt!=="inline"&&Ce(Ti);},Yr=Di(function($e){ue==null||ue(uc($e)),Bo($e);}),Zr=Di(function($e,ge){var je=Ue.filter(function(ct){return ct!==$e});if(ge)je.push($e);else if(Dt!=="inline"){var Ct=We($e);je=je.filter(function(ct){return !Ct.has(ct)});}Ts(Ue,je,!0)||Ce(je,!0);}),Qr=Di(se),Wo=function(ge,je){var Ct=je??!Ue.includes(ge);Zr(ge,Ct);},Vo=Lk(Dt,wn,_e,ze,De,Ke,Bt,In,Wo,ve);f__namespace.useEffect(function(){lt(!0);},[]);var Uo=f__namespace.useMemo(function(){return {_internalRenderMenuItem:re,_internalRenderSubMenuItem:he}},[re,he]),Jr=Dt!=="horizontal"||$?xe:xe.map(function($e,ge){return f__namespace.createElement(ms,{key:$e.key,overflowDisabled:ge>bt},$e)}),eo=f__namespace.createElement(Hr,we({id:m,ref:De,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:su,className:X(a,"".concat(a,"-root"),"".concat(a,"-").concat(Dt),c,(r={},V(r,"".concat(a,"-inline-collapsed"),Ee),V(r,"".concat(a,"-rtl"),_e),r),s),dir:p,style:l,role:"menu",tabIndex:d,data:Jr,renderRawItem:function(ge){return ge},renderRawRest:function(ge){var je=ge.length,Ct=je?xe.slice(-je):null;return f__namespace.createElement(pv,{eventKey:Lf,title:pe,disabled:yt,internalPopupClose:je===0,popupClassName:te},Ct)},maxCount:Dt!=="horizontal"||$?Hr.INVALIDATE:Hr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ge){nn(ge);},onKeyDown:Vo},ie));return f__namespace.createElement(av.Provider,{value:Uo},f__namespace.createElement(wC.Provider,{value:ze},f__namespace.createElement(ms,{prefixCls:a,rootClassName:s,mode:Dt,openKeys:Ue,rtl:_e,disabled:S,motion:st?K:null,defaultMotions:st?q:null,activeKey:wn,onActive:lr,onInactive:Xr,selectedKeys:_n,inlineIndent:W,subMenuOpenDelay:C,subMenuCloseDelay:_,forceSubMenuRender:T,builtinPlacements:J,triggerSubMenuAction:Z,getPopupContainer:Qr,itemIcon:ne,expandIcon:ae,onItemClick:Yr,onOpenChange:Zr},f__namespace.createElement(OC.Provider,{value:Et},eo),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement($C.Provider,{value:dt},xe)))))}),eF=["className","title","eventKey","children"],tF=["children"],nF=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=qe(t,eF),a=f__namespace.useContext($r),s=a.prefixCls,l="".concat(s,"-item-group");return f__namespace.createElement("li",we({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 GC(e){var t=e.children,n=qe(e,tF),r=zs(n.eventKey),o=cv(t,r),i=au();return i?o:f__namespace.createElement(nF,wr(n,["warnKey"]),o)}function KC(e){var t=e.className,n=e.style,r=f__namespace.useContext($r),o=r.prefixCls,i=au();return i?null:f__namespace.createElement("li",{className:X("".concat(o,"-item-divider"),t),style:n})}var Hs=JL;Hs.Item=su;Hs.SubMenu=pv;Hs.ItemGroup=GC;Hs.Divider=KC;var rF={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 oF=rF;var XC=function(t,n){return f__namespace.createElement(Qn,F(F({},t),{},{ref:n,icon:oF}))};XC.displayName="EllipsisOutlined";const iF=f__namespace.forwardRef(XC),aF=()=>{const[e,t]=f__namespace.useState(!1);return f__namespace.useEffect(()=>{t(aN());},[]),e};function sF(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(qC);let h={};return d||(n==="vertical"?r<u&&(h={marginBottom:l/(a?2:1)}):h=Object.assign(Object.assign({},r<u&&{[o]:l/(a?2:1)}),s&&{paddingBottom:c})),i==null?null:f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("div",{className:t,style:h},i),r<u&&a&&f__namespace.createElement("span",{className:`${t}-split`,style:h},a))}var lF=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qC=f__namespace.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),cF={small:8,middle:16,large:24};function uF(e){return typeof e=="string"?cF[e]:e||0}const dF=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,space:r,direction:o}=f__namespace.useContext(pt),{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=lF(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),g=aF(),[b,y]=f__namespace.useMemo(()=>(Array.isArray(i)?i:[i,i]).map(M=>uF(M)),[i]),S=Sr(c,{keepEmpty:!0}),$=a===void 0&&u==="horizontal"?"center":a,w=n("space",d),[C,x]=$y(w),_=X(w,x,`${w}-${u}`,{[`${w}-rtl`]:o==="rtl",[`${w}-align-${$}`]:$},s,l),T=`${w}-item`,R=o==="rtl"?"marginLeft":"marginRight";let I=0;const O=S.map((M,N)=>{M!=null&&(I=N);const A=M&&M.key||`${T}-${N}`;return f__namespace.createElement(sF,{className:T,key:A,direction:u,index:N,marginDirection:R,split:h,wrap:p},M)}),P=f__namespace.useMemo(()=>({horizontalSize:b,verticalSize:y,latestIndex:I,supportFlexGap:g}),[b,y,I,g]);if(S.length===0)return null;const E={};return p&&(E.flexWrap="wrap",g||(E.marginBottom=-y)),g&&(E.columnGap=b,E.rowGap=y),C(f__namespace.createElement("div",Object.assign({ref:t,className:_,style:Object.assign(Object.assign({},E),v)},m),f__namespace.createElement(qC.Provider,{value:P},O)))}),YC=dF;YC.Compact=sI;const mv=YC,ZC=f__namespace.createContext(null),fF=ZC.Provider,QC=f__namespace.createContext(null),hF=QC.Provider;var vF=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],JC=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,vF),m=f.useRef(null),g=Qt(u,{value:s}),b=G(g,2),y=b[0],S=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={},V(n,"".concat(o,"-checked"),y),V(n,"".concat(o,"-disabled"),l),n)),w=function(x){l||("checked"in e||S(x.target.checked),v==null||v({target:F(F({},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",we({},p,{className:"".concat(o,"-input"),ref:m,onChange:w,disabled:l,checked:!!y,type:h})),f__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const pF=new Mt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),mF=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"}})}},gF=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:S,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:pF,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({},qc(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:S?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:S?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}})}},bF=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:S,radioButtonCheckedBg:$,radioButtonHoverColor:w,radioButtonActiveColor:C,radioSolidCheckedColor:x,colorTextDisabled:_,colorBgContainerDisabled:T,radioDisabledButtonCheckedColor:R,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:S},"&:has(:focus-visible)":Object.assign({},qc(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:S,background:$,borderColor:S,"&::before":{backgroundColor:S},"&:first-child":{borderColor:S},"&:hover":{color:w,borderColor:w,"&::before":{backgroundColor:w}},"&:active":{color:C,borderColor:C,"&::before":{backgroundColor:C}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:S,borderColor:S,"&:hover":{color:x,background:w,borderColor:w},"&:active":{color:x,background:C,borderColor:C}},"&-disabled":{color:_,backgroundColor:T,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:_,backgroundColor:T,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:R,backgroundColor:I,borderColor:a,boxShadow:"none"}}}},eS=mn("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,S=4,$=y-S*2,w=m?$:y-(S+n)*2,C=d,x=u,_=l,T=c,R=t-n,P=Lt(e,{radioFocusShadow:g,radioButtonFocusShadow:b,radioSize:y,radioDotSize:w,radioDotDisabledSize:$,radioCheckedColor:C,radioDotDisabledColor:o,radioSolidCheckedColor:p,radioButtonBg:i,radioButtonCheckedBg:i,radioButtonColor:x,radioButtonHoverColor:_,radioButtonActiveColor:T,radioButtonPaddingHorizontal:R,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:o,radioWrapperMarginRight:h});return [mF(P),gF(P),bF(P)]});var yF=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const CF=(e,t)=>{var n,r;const o=f__namespace.useContext(ZC),i=f__namespace.useContext(QC),{getPrefixCls:a,direction:s}=f__namespace.useContext(pt),l=f__namespace.useRef(null),c=Pn(t,l),{isFormItemInput:u}=f__namespace.useContext(Ur),d=T=>{var R,I;(R=e.onChange)===null||R===void 0||R.call(e,T),(I=o==null?void 0:o.onChange)===null||I===void 0||I.call(o,T);},{prefixCls:h,className:v,rootClassName:p,children:m,style:g}=e,b=yF(e,["prefixCls","className","rootClassName","children","style"]),y=a("radio",h),S=((o==null?void 0:o.optionType)||i)==="button"?`${y}-button`:y,[$,w]=eS(y),C=Object.assign({},b),x=f__namespace.useContext(Ho);o&&(C.name=o.name,C.onChange=d,C.checked=e.value===o.value,C.disabled=(n=C.disabled)!==null&&n!==void 0?n:o.disabled),C.disabled=(r=C.disabled)!==null&&r!==void 0?r:x;const _=X(`${S}-wrapper`,{[`${S}-wrapper-checked`]:C.checked,[`${S}-wrapper-disabled`]:C.disabled,[`${S}-wrapper-rtl`]:s==="rtl",[`${S}-wrapper-in-form-item`]:u},v,p,w);return $(f__namespace.createElement("label",{className:_,style:g,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},f__namespace.createElement(JC,Object.assign({},C,{type:"radio",prefixCls:S,ref:c})),m!==void 0?f__namespace.createElement("span",null,m):null))},SF=f__namespace.forwardRef(CF),fc=SF,wF=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(pt),[o,i]=Qt(e.defaultValue,{value:e.value}),a=O=>{const P=o,E=O.target.value;"value"in e||i(E);const{onChange:M}=e;M&&E!==P&&M(O);},{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:S,onBlur:$}=e,w=n("radio",s),C=`${w}-group`,[x,_]=eS(w);let T=v;u&&u.length>0&&(T=u.map(O=>typeof O=="string"||typeof O=="number"?f__namespace.createElement(fc,{key:O.toString(),prefixCls:w,disabled:h,value:O,checked:o===O},O):f__namespace.createElement(fc,{key:`radio-group-value-options-${O.value}`,prefixCls:w,disabled:O.disabled||h,value:O.value,checked:o===O.value,style:O.style},O.label)));const R=Er(p),I=X(C,`${C}-${d}`,{[`${C}-${R}`]:R,[`${C}-rtl`]:r==="rtl"},l,c,_);return x(f__namespace.createElement("div",Object.assign({},DT(e),{className:I,style:m,onMouseEnter:b,onMouseLeave:y,onFocus:S,onBlur:$,id:g,ref:t}),f__namespace.createElement(fF,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},T)))}),xF=f__namespace.memo(wF);var $F=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const EF=(e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(pt),{prefixCls:r}=e,o=$F(e,["prefixCls"]),i=n("radio",r);return f__namespace.createElement(hF,{value:"button"},f__namespace.createElement(fc,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},OF=f__namespace.forwardRef(EF),cu=fc;cu.Button=OF;cu.Group=xF;cu.__ANT_RADIO=!0;const md=cu,tS=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Bs=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),hc=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),gv=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Bs(Lt(e,{inputBorderHoverColor:e.colorBorder})))}),nS=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}},rS=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),uu=(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({},hc(Lt(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({},hc(Lt(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},du=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}`},tS(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Bs(e)),"&:focus, &-focused":Object.assign({},hc(e)),"&-disabled, &[disabled]":Object.assign({},gv(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({},nS(e)),"&-sm":Object.assign({},rS(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),oS=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({},nS(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},rS(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"},IM()),{[`${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}}}})}},PF=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)),du(e)),uu(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"}})}},_F=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`}}}},RF=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({},du(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Bs(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}}}),_F(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),uu(e,`${t}-affix-wrapper`))}},MF=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Zt(e)),oS(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({},gv(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}}}})}},TF=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 iS(e){return Lt(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 IF=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"}}}}}},bv=mn("Input",e=>{const t=iS(e);return [PF(t),IF(t),RF(t),MF(t),TF(t),nu(t)]});var NF={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 AF=NF;var aS=function(t,n){return f__namespace.createElement(Qn,F(F({},t),{},{ref:n,icon:AF}))};aS.displayName="PlusOutlined";const DF=f__namespace.forwardRef(aS),fu=f.createContext(null);var sS=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)}),kF=["key","forceRender","style","className"];function LF(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=f__namespace.useContext(fu),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),V({},"".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,kF),b=h===n;return f__namespace.createElement(Or,we({key:h,visible:b,forceRender:v,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(y,S){var $=y.style,w=y.className;return f__namespace.createElement(sS,we({},g,{prefixCls:u,id:t,tabKey:h,animated:c,active:b,style:F(F({},p),$),className:X(m,w),ref:S}))})})))}var Cg={width:0,height:0,left:0,top:0};function FF(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)||Cg,a=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||Cg;}var d=o.get(l)||F({},c);d.right=a-d.left-d.width,o.set(l,d);}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Sg(e,t){var n=f__namespace.useRef(e),r=f__namespace.useState({}),o=G(r,2),i=o[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,i({});}return [n.current,a]}var zF=.1,wg=.01,Ml=20,xg=Math.pow(.995,Ml);function jF(e,t){var n=f.useState(),r=G(n,2),o=r[0],i=r[1],a=f.useState(0),s=G(a,2),l=s[0],c=s[1],u=f.useState(0),d=G(u,2),h=d[0],v=d[1],p=f.useState(),m=G(p,2),g=m[0],b=m[1],y=f.useRef();function S(T){var R=T.touches[0],I=R.screenX,O=R.screenY;i({x:I,y:O}),window.clearInterval(y.current);}function $(T){if(o){T.preventDefault();var R=T.touches[0],I=R.screenX,O=R.screenY;i({x:I,y:O});var P=I-o.x,E=O-o.y;t(P,E);var M=Date.now();c(M),v(M-l),b({x:P,y:E});}}function w(){if(o&&(i(null),b(null),g)){var T=g.x/h,R=g.y/h,I=Math.abs(T),O=Math.abs(R);if(Math.max(I,O)<zF)return;var P=T,E=R;y.current=window.setInterval(function(){if(Math.abs(P)<wg&&Math.abs(E)<wg){window.clearInterval(y.current);return}P*=xg,E*=xg,t(P*Ml,E*Ml);},Ml);}}var C=f.useRef();function x(T){var R=T.deltaX,I=T.deltaY,O=0,P=Math.abs(R),E=Math.abs(I);P===E?O=C.current==="x"?R:I:P>E?(O=R,C.current="x"):(O=I,C.current="y"),t(-O,-O)&&T.preventDefault();}var _=f.useRef(null);_.current={onTouchStart:S,onTouchMove:$,onTouchEnd:w,onWheel:x},f__namespace.useEffect(function(){function T(P){_.current.onTouchStart(P);}function R(P){_.current.onTouchMove(P);}function I(P){_.current.onTouchEnd(P);}function O(P){_.current.onWheel(P);}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",I,{passive:!1}),e.current.addEventListener("touchstart",T,{passive:!1}),e.current.addEventListener("wheel",O),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",I);}},[]);}function lS(e){var t=f.useState(0),n=G(t,2),r=n[0],o=n[1],i=f.useRef(0),a=f.useRef();return a.current=e,Vi(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 HF(e){var t=f.useRef([]),n=f.useState({}),r=G(n,2),o=r[1],i=f.useRef(typeof e=="function"?e():e),a=lS(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 $g={width:0,height:0,left:0,top:0,right:0};function BF(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;m<v;m+=1){var g=e.get(s[m].key)||$g;if(g[d]+g[u]>h+t){p=m-1;break}}for(var b=0,y=v-1;y>=0;y-=1){var S=e.get(s[y].key)||$g;if(S[d]<h){b=y+1;break}}return [b,p]},[e,t,r,o,i,h,l,s.map(function(v){return v.key}).join("_"),c])}function Eg(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var WF="TABS_DQ";function cS(e){return String(e).replace(/"/g,WF)}function VF(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return !r||r.showAdd===!1?null:f__namespace.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s});}},r.addIcon||"+")}const uS=f__namespace.forwardRef(VF);var Og=f__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return et(o)==="object"&&!f__namespace.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?f__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});function UF(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.moreIcon,l=s===void 0?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,h=e.editable,v=e.tabBarGutter,p=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,S=f.useState(!1),$=G(S,2),w=$[0],C=$[1],x=f.useState(null),_=G(x,2),T=_[0],R=_[1],I="".concat(r,"-more-popup"),O="".concat(n,"-dropdown"),P=T!==null?"".concat(I,"-").concat(T):null,E=i==null?void 0:i.dropdownAriaLabel;function M(z,W){z.preventDefault(),z.stopPropagation(),h.onEdit("remove",{key:W,event:z});}var N=f__namespace.createElement(Hs,{onClick:function(W){var K=W.key,q=W.domEvent;g(K,q),C(!1);},prefixCls:"".concat(O,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[T],"aria-label":E!==void 0?E:"expanded dropdown"},o.map(function(z){var W=h&&z.closable!==!1&&!z.disabled;return f__namespace.createElement(su,{key:z.key,id:"".concat(I,"-").concat(z.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(z.key),disabled:z.disabled},f__namespace.createElement("span",null,z.label),W&&f__namespace.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(O,"-menu-item-remove"),onClick:function(q){q.stopPropagation(),M(q,z.key);}},z.closeIcon||h.removeIcon||"×"))}));function A(z){for(var W=o.filter(function(J){return !J.disabled}),K=W.findIndex(function(J){return J.key===T})||0,q=W.length,Y=0;Y<q;Y+=1){K=(K+z+q)%q;var Z=W[K];if(!Z.disabled){R(Z.key);return}}}function D(z){var W=z.which;if(!w){[ee.DOWN,ee.SPACE,ee.ENTER].includes(W)&&(C(!0),z.preventDefault());return}switch(W){case ee.UP:A(-1),z.preventDefault();break;case ee.DOWN:A(1),z.preventDefault();break;case ee.ESC:C(!1);break;case ee.SPACE:case ee.ENTER:T!==null&&g(T,z);break}}f.useEffect(function(){var z=document.getElementById(P);z&&z.scrollIntoView&&z.scrollIntoView(!1);},[T]),f.useEffect(function(){w||R(null);},[w]);var L=V({},p?"marginRight":"marginLeft",v);o.length||(L.visibility="hidden",L.order=1);var B=X(V({},"".concat(O,"-rtl"),p)),U=a?null:f__namespace.createElement(Rk,{prefixCls:O,overlay:N,trigger:["hover"],visible:o.length?w:!1,transitionName:c,onVisibleChange:C,overlayClassName:X(B,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},f__namespace.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:L,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":I,id:"".concat(r,"-more"),"aria-expanded":w,onKeyDown:D},l));return f__namespace.createElement("div",{className:X("".concat(n,"-nav-operations"),d),style:u,ref:t},U,f__namespace.createElement(uS,{prefixCls:n,locale:i,editable:h}))}const GF=f__namespace.memo(f__namespace.forwardRef(UF),function(e,t){return t.tabMoving});function KF(e){var t,n=e.prefixCls,r=e.id,o=e.active,i=e.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=e.closable,d=e.renderWrapper,h=e.removeAriaLabel,v=e.editable,p=e.onClick,m=e.onFocus,g=e.style,b="".concat(n,"-tab"),y=v&&u!==!1&&!l;function S(C){l||p(C);}function $(C){C.preventDefault(),C.stopPropagation(),v.onEdit("remove",{key:a,event:C});}var w=f__namespace.createElement("div",{key:a,"data-node-key":cS(a),className:X(b,(t={},V(t,"".concat(b,"-with-remove"),y),V(t,"".concat(b,"-active"),o),V(t,"".concat(b,"-disabled"),l),t)),style:g,onClick:S},f__namespace.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(x){x.stopPropagation(),S(x);},onKeyDown:function(x){[ee.SPACE,ee.ENTER].includes(x.which)&&(x.preventDefault(),S(x));},onFocus:m},s),y&&f__namespace.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(x){x.stopPropagation(),$(x);}},c||v.removeIcon||"×"));return d?d(w):w}var Ii=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;return [o,a]},yl=function(t,n){return t[n?0:1]};function XF(e,t){var n,r=f__namespace.useContext(fu),o=r.prefixCls,i=r.tabs,a=e.className,s=e.style,l=e.id,c=e.animated,u=e.activeKey,d=e.rtl,h=e.extra,v=e.editable,p=e.locale,m=e.tabPosition,g=e.tabBarGutter,b=e.children,y=e.onTabClick,S=e.onTabScroll,$=f.useRef(),w=f.useRef(),C=f.useRef(),x=f.useRef(),_=f.useRef(),T=f.useRef(),R=f.useRef(),I=m==="top"||m==="bottom",O=Sg(0,function(Ke,We){I&&S&&S({direction:Ke>We?"left":"right"});}),P=G(O,2),E=P[0],M=P[1],N=Sg(0,function(Ke,We){!I&&S&&S({direction:Ke>We?"top":"bottom"});}),A=G(N,2),D=A[0],L=A[1],B=f.useState([0,0]),U=G(B,2),z=U[0],W=U[1],K=f.useState([0,0]),q=G(K,2),Y=q[0],Z=q[1],J=f.useState([0,0]),ne=G(J,2),ae=ne[0],de=ne[1],pe=f.useState([0,0]),te=G(pe,2),se=te[0],ue=te[1],ce=HF(new Map),ve=G(ce,2),re=ve[0],he=ve[1],ie=FF(i,re,Y[0]),xe=yl(z,I),Ne=yl(Y,I),Ge=yl(ae,I),st=yl(se,I),lt=xe<Ne+Ge,De=lt?xe-st:xe-Ge,ze="".concat(o,"-nav-operations-hidden"),_e=0,ke=0;I&&d?(_e=0,ke=Math.max(0,Ne-De)):(_e=Math.min(0,De-Ne),ke=0);function Pe(Ke){return Ke<_e?_e:Ke>ke?ke:Ke}var Ue=f.useRef(),tt=f.useState(),Ce=G(tt,2),Se=Ce[0],Le=Ce[1];function nt(){Le(Date.now());}function Be(){window.clearTimeout(Ue.current);}jF(x,function(Ke,We){function dt(Et,qt){Et(function(Wt){var wn=Pe(Wt+qt);return wn});}return lt?(I?dt(M,Ke):dt(L,We),Be(),nt(),!0):!1}),f.useEffect(function(){return Be(),Se&&(Ue.current=window.setTimeout(function(){Le(0);},100)),Be},[Se]);var wt=BF(ie,De,I?E:D,Ne,Ge,st,F(F({},e),{},{tabs:i})),ye=G(wt,2),Oe=ye[0],Ae=ye[1],Re=gr(function(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,We=ie.get(Ke)||{width:0,height:0,left:0,right:0,top:0};if(I){var dt=E;d?We.right<E?dt=We.right:We.right+We.width>E+De&&(dt=We.right+We.width-De):We.left<-E?dt=-We.left:We.left+We.width>-E+De&&(dt=-(We.left+We.width-De)),L(0),M(Pe(dt));}else {var Et=D;We.top<-D?Et=-We.top:We.top+We.height>-D+De&&(Et=-(We.top+We.height-De)),M(0),L(Pe(Et));}}),Qe={};m==="top"||m==="bottom"?Qe[d?"marginRight":"marginLeft"]=g:Qe.marginTop=g;var Tt=i.map(function(Ke,We){var dt=Ke.key;return f__namespace.createElement(KF,{id:l,prefixCls:o,key:dt,tab:Ke,style:We===0?void 0:Qe,closable:Ke.closable,editable:v,active:dt===u,renderWrapper:b,removeAriaLabel:p==null?void 0:p.removeAriaLabel,onClick:function(qt){y(dt,qt);},onFocus:function(){Re(dt),nt(),x.current&&(d||(x.current.scrollLeft=0),x.current.scrollTop=0);}})}),Ft=function(){return he(function(){var We=new Map;return i.forEach(function(dt){var Et,qt=dt.key,Wt=(Et=_.current)===null||Et===void 0?void 0:Et.querySelector('[data-node-key="'.concat(cS(qt),'"]'));Wt&&We.set(qt,{width:Wt.offsetWidth,height:Wt.offsetHeight,left:Wt.offsetLeft,top:Wt.offsetTop});}),We})};f.useEffect(function(){Ft();},[i.map(function(Ke){return Ke.key}).join("_")]);var Dt=lS(function(){var Ke=Ii($),We=Ii(w),dt=Ii(C);W([Ke[0]-We[0]-dt[0],Ke[1]-We[1]-dt[1]]);var Et=Ii(R);de(Et);var qt=Ii(T);ue(qt);var Wt=Ii(_);Z([Wt[0]-Et[0],Wt[1]-Et[1]]),Ft();}),le=i.slice(0,Oe),fe=i.slice(Ae+1),oe=[].concat(me(le),me(fe)),Ee=f.useState(),Ie=G(Ee,2),Je=Ie[0],Ut=Ie[1],bt=ie.get(u),nn=f.useRef();function yt(){St.cancel(nn.current);}f.useEffect(function(){var Ke={};return bt&&(I?(d?Ke.right=bt.right:Ke.left=bt.left,Ke.width=bt.width):(Ke.top=bt.top,Ke.height=bt.height)),yt(),nn.current=St(function(){Ut(Ke);}),yt},[bt,I,d]),f.useEffect(function(){Re();},[u,_e,ke,Eg(bt),Eg(ie),I]),f.useEffect(function(){Dt();},[d]);var Ye=!!oe.length,Ze="".concat(o,"-nav-wrap"),Me,xt,vt,Bt;return I?d?(xt=E>0,Me=E!==ke):(Me=E<0,xt=E!==_e):(vt=D<0,Bt=D!==_e),f__namespace.createElement(vo,{onResize:Dt},f__namespace.createElement("div",{ref:Ms(t,$),role:"tablist",className:X("".concat(o,"-nav"),a),style:s,onKeyDown:function(){nt();}},f__namespace.createElement(Og,{ref:w,position:"left",extra:h,prefixCls:o}),f__namespace.createElement("div",{className:X(Ze,(n={},V(n,"".concat(Ze,"-ping-left"),Me),V(n,"".concat(Ze,"-ping-right"),xt),V(n,"".concat(Ze,"-ping-top"),vt),V(n,"".concat(Ze,"-ping-bottom"),Bt),n)),ref:x},f__namespace.createElement(vo,{onResize:Dt},f__namespace.createElement("div",{ref:_,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(E,"px, ").concat(D,"px)"),transition:Se?"none":void 0}},Tt,f__namespace.createElement(uS,{ref:R,prefixCls:o,locale:p,editable:v,style:F(F({},Tt.length===0?void 0:Qe),{},{visibility:Ye?"hidden":null})}),f__namespace.createElement("div",{className:X("".concat(o,"-ink-bar"),V({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:Je})))),f__namespace.createElement(GF,we({},e,{removeAriaLabel:p==null?void 0:p.removeAriaLabel,ref:T,prefixCls:o,tabs:oe,className:!Ye&&ze,tabMoving:!!Se})),f__namespace.createElement(Og,{ref:C,position:"right",extra:h,prefixCls:o})))}const Pg=f__namespace.forwardRef(XF);var qF=["renderTabBar"],YF=["label","key"];function ZF(e){var t=e.renderTabBar,n=qe(e,qF),r=f__namespace.useContext(fu),o=r.tabs;if(t){var i=F(F({},n),{},{panes:o.map(function(a){var s=a.label,l=a.key,c=qe(a,YF);return f__namespace.createElement(sS,we({tab:s,key:l,tabKey:l},c))})});return t(i,Pg)}return f__namespace.createElement(Pg,n)}function QF(){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=F({inkBar:!0},et(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var JF=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],_g=0;function e3(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,S=e.moreIcon,$=e.moreTransitionName,w=e.destroyInactiveTabPane,C=e.renderTabBar,x=e.onChange,_=e.onTabClick,T=e.onTabScroll,R=e.getPopupContainer,I=e.popupClassName,O=qe(e,JF),P=f__namespace.useMemo(function(){return (s||[]).filter(function(ce){return ce&&et(ce)==="object"&&"key"in ce})},[s]),E=l==="rtl",M=QF(h),N=f.useState(!1),A=G(N,2),D=A[0],L=A[1];f.useEffect(function(){L(Ls());},[]);var B=Qt(function(){var ce;return (ce=P[0])===null||ce===void 0?void 0:ce.key},{value:c,defaultValue:u}),U=G(B,2),z=U[0],W=U[1],K=f.useState(function(){return P.findIndex(function(ce){return ce.key===z})}),q=G(K,2),Y=q[0],Z=q[1];f.useEffect(function(){var ce=P.findIndex(function(re){return re.key===z});if(ce===-1){var ve;ce=Math.max(0,Math.min(Y,P.length-1)),W((ve=P[ce])===null||ve===void 0?void 0:ve.key);}Z(ce);},[P.map(function(ce){return ce.key}).join("_"),z,Y]);var J=Qt(null,{value:r}),ne=G(J,2),ae=ne[0],de=ne[1];f.useEffect(function(){r||(de("rc-tabs-".concat(_g)),_g+=1);},[]);function pe(ce,ve){_==null||_(ce,ve);var re=ce!==z;W(ce),re&&(x==null||x(ce));}var te={id:ae,activeKey:z,animated:M,tabPosition:p,rtl:E,mobile:D},se,ue=F(F({},te),{},{editable:d,locale:y,moreIcon:S,moreTransitionName:$,tabBarGutter:m,onTabClick:pe,onTabScroll:T,extra:b,style:g,panes:null,getPopupContainer:R,popupClassName:I});return f__namespace.createElement(fu.Provider,{value:{tabs:P,prefixCls:i}},f__namespace.createElement("div",we({ref:t,id:r,className:X(i,"".concat(i,"-").concat(p),(n={},V(n,"".concat(i,"-mobile"),D),V(n,"".concat(i,"-editable"),d),V(n,"".concat(i,"-rtl"),E),n),a)},O),se,f__namespace.createElement(ZF,we({},ue,{renderTabBar:C})),f__namespace.createElement(LF,we({destroyInactiveTabPane:w},te,{animated:M}))))}var t3=f__namespace.forwardRef(e3);const n3=()=>null,r3=n3,o3={motionAppear:!1,motionEnter:!0,motionLeave:!0};function i3(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({},o3),{motionName:ru(e,"switch")})),n}var a3=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function s3(e){return e.filter(t=>t)}function l3(e,t){if(e)return e;const n=Sr(t).map(r=>{if(f__namespace.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=a3(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return s3(n)}const c3=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}`}}}}},[ac(e,"slide-up"),ac(e,"slide-down")]]},u3=c3,d3=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}}}}}}},f3=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({},Wi),{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"}}})}})}},h3=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}}}}}},v3=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`}}}}}},p3=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`}}}},m3=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"}}}}},g3=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"}}),p3(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"}}}}}},b3=mn("Tabs",e=>{const t=e.controlHeightLG,n=Lt(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 [v3(n),m3(n),h3(n),f3(n),d3(n),g3(n),u3(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var y3=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function dS(e){var{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:h}=e,v=y3(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated"]);const{prefixCls:p,moreIcon:m=f__namespace.createElement(iF,null)}=v,{direction:g,getPrefixCls:b,getPopupContainer:y}=f__namespace.useContext(pt),S=b("tabs",p),[$,w]=b3(S);let C;t==="editable-card"&&(C={onEdit:(I,O)=>{let{key:P,event:E}=O;i==null||i(I==="add"?E:P,I);},removeIcon:f__namespace.createElement(Gh,null),addIcon:l||f__namespace.createElement(DF,null),showAdd:a!==!0});const x=b(),_=l3(d,u),T=i3(S,h),R=Er(o);return $(f__namespace.createElement(t3,Object.assign({direction:g,getPopupContainer:y,moreTransitionName:`${x}-slide-up`},v,{items:_,className:X({[`${S}-${R}`]:R,[`${S}-card`]:["card","editable-card"].includes(t),[`${S}-editable-card`]:t==="editable-card",[`${S}-centered`]:s},n,r,w),popupClassName:X(c,w),editable:C,moreIcon:m,prefixCls:S,animated:T})))}dS.TabPane=r3;const C3=new Mt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),S3=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({},qc(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:C3,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 w3(e,t){const n=Lt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [S3(n)]}const fS=mn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [w3(n,e)]});var x3=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hS=f__namespace.createContext(null),$3=(e,t)=>{var{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=x3(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:d,direction:h}=f__namespace.useContext(pt),[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(O=>typeof O=="string"||typeof O=="number"?{label:O,value:O}:O),y=O=>{g(P=>P.filter(E=>E!==O));},S=O=>{g(P=>[].concat(me(P),[O]));},$=O=>{const P=v.indexOf(O.value),E=me(v);P===-1?E.push(O.value):E.splice(P,1),"value"in u||p(E);const M=b();c==null||c(E.filter(N=>m.includes(N)).sort((N,A)=>{const D=M.findIndex(B=>B.value===N),L=M.findIndex(B=>B.value===A);return D-L}));},w=d("checkbox",i),C=`${w}-group`,[x,_]=fS(w),T=wr(u,["value","disabled"]);o&&o.length>0&&(r=b().map(O=>f__namespace.createElement(vS,{prefixCls:w,key:O.value.toString(),disabled:"disabled"in O?O.disabled:u.disabled,value:O.value,checked:v.includes(O.value),onChange:O.onChange,className:`${C}-item`,style:O.style},O.label)));const R={toggleOption:$,value:v,disabled:u.disabled,name:u.name,registerValue:S,cancelValue:y},I=X(C,{[`${C}-rtl`]:h==="rtl"},a,s,_);return x(f__namespace.createElement("div",Object.assign({className:I,style:l},T,{ref:t}),f__namespace.createElement(hS.Provider,{value:R},r)))},E3=f__namespace.forwardRef($3),O3=f__namespace.memo(E3);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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _3=(e,t)=>{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=P3(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:p,direction:m}=f__namespace.useContext(pt),g=f__namespace.useContext(hS),{isFormItemInput:b}=f__namespace.useContext(Ur),y=f__namespace.useContext(Ho),S=(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),[C,x]=fS(w),_=Object.assign({},v);g&&!d&&(_.onChange=function(){v.onChange&&v.onChange.apply(v,arguments),g.toggleOption&&g.toggleOption({label:a,value:v.value});},_.name=g.name,_.checked=g.value.includes(v.value));const T=X({[`${w}-wrapper`]:!0,[`${w}-rtl`]:m==="rtl",[`${w}-wrapper-checked`]:_.checked,[`${w}-wrapper-disabled`]:S,[`${w}-wrapper-in-form-item`]:b},o,i,x),R=X({[`${w}-indeterminate`]:s},x),I=s?"mixed":void 0;return C(f__namespace.createElement("label",{className:T,style:l,onMouseEnter:c,onMouseLeave:u},f__namespace.createElement(JC,Object.assign({"aria-checked":I},_,{prefixCls:w,className:R,disabled:S,ref:t})),a!==void 0&&f__namespace.createElement("span",null,a)))},R3=f__namespace.forwardRef(_3),vS=R3,yv=vS;yv.Group=O3;yv.__ANT_CHECKBOX=!0;const M3=yv;var pS=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=G(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={},V(n,"".concat(r,"-content-active"),l),V(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},f.createElement("div",{className:"".concat(r,"-content-box")},s)):null});pS.displayName="PanelContent";var T3=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],I3=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,S=e.destroyInactivePanel,$=e.children,w=qe(e,T3),C=h==="disabled",x=h==="header",_=h==="icon",T=m!=null&&typeof m!="boolean",R=function(){l==null||l(p);},I=function(A){(A.key==="Enter"||A.keyCode===ee.ENTER||A.which===ee.ENTER)&&R();},O=typeof b=="function"?b(e):f.createElement("i",{className:"arrow"});O&&(O=f.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(h)?R:void 0},O));var P=X((n={},V(n,"".concat(d,"-item"),!0),V(n,"".concat(d,"-item-active"),s),V(n,"".concat(d,"-item-disabled"),C),n),u),E=X((r={},V(r,"".concat(d,"-header"),!0),V(r,"headerClass",a),V(r,"".concat(d,"-header-collapsible-only"),x),V(r,"".concat(d,"-icon-collapsible-only"),_),r)),M={className:E,"aria-expanded":s,"aria-disabled":C,onKeyPress:I};return !x&&!_&&(M.onClick=R,M.role=v?"tab":"button",M.tabIndex=C?-1:0),f.createElement("div",we({},w,{ref:t,className:P}),f.createElement("div",M,i&&O,f.createElement("span",{className:"".concat(d,"-header-text"),onClick:h==="header"?R:void 0},g),T&&f.createElement("div",{className:"".concat(d,"-extra")},m)),f.createElement(Or,we({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:S}),function(N,A){var D=N.className,L=N.style;return f.createElement(pS,{ref:A,prefixCls:d,className:D,style:L,isActive:s,forceRender:c,role:v?"tabpanel":void 0},$)}))});function N3(e){var t=e;if(!Array.isArray(t)){var n=et(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var A3=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=Qt([],{value:v,onChange:function(T){return m==null?void 0:m(T)},defaultValue:p,postState:N3}),y=G(b,2),S=y[0],$=y[1],w=function(T){return $(function(){if(s)return S[0]===T?[]:[T];var R=S.indexOf(T),I=R>-1;return I?S.filter(function(O){return O!==T}):[].concat(me(S),[T])})},C=function(T,R){if(!T)return null;var I=T.key||String(R),O=T.props,P=O.header,E=O.headerClass,M=O.destroyInactivePanel,N=O.collapsible,A=O.onItemClick,D=!1;s?D=S[0]===I:D=S.indexOf(I)>-1;var L=N??u,B=function(W){L!=="disabled"&&(w(W),A==null||A(W));},U={key:I,panelKey:I,header:P,headerClass:E,isActive:D,prefixCls:r,destroyInactivePanel:M??i,openMotion:d,accordion:s,children:T.props.children,onItemClick:B,expandIcon:h,collapsible:L};return typeof T.type=="string"?T:(Object.keys(U).forEach(function(z){typeof U[z]>"u"&&delete U[z];}),f.cloneElement(T,U))},x=Sr(c).map(C);return f.createElement("div",{ref:t,className:g,style:a,role:s?"tablist":void 0},x)});const Cv=Object.assign(A3,{Panel:I3});Cv.Panel;const D3=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(pt),{prefixCls:r,className:o="",showArrow:i=!0}=e,a=n("collapse",r),s=X({[`${a}-no-arrow`]:!i},o);return f__namespace.createElement(Cv.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),k3=D3,L3=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:S,paddingSM:$,paddingLG:w,motionDurationSlow:C,fontSizeIcon:x}=e,_=`${u}px ${d} ${h}`;return {[t]:Object.assign(Object.assign({},Zt(e)),{backgroundColor:i,border:_,borderBottom:0,borderRadius:`${c}px`,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:_,["&: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 ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*y,display:"flex",alignItems:"center",paddingInlineEnd:S},[`${t}-arrow`]:Object.assign(Object.assign({},As()),{fontSize:x,svg:{transition:`transform ${C}`}}),[`${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:_,[`& > ${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:S}}}}})}},F3=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},z3=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}}}},j3=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}}}}}},H3=mn("Collapse",e=>{const t=Lt(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 [L3(t),z3(t),j3(t),F3(t),DN(t)]}),B3=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(pt),{prefixCls:o,className:i,rootClassName:a,bordered:s=!0,ghost:l,size:c,expandIconPosition:u="start",children:d,expandIcon:h}=e,v=Er(x=>{var _;return (_=c??x)!==null&&_!==void 0?_:"middle"}),p=n("collapse",o),m=n(),[g,b]=H3(p),y=f__namespace.useMemo(()=>u==="left"?"start":u==="right"?"end":u,[u]),S=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const _=h?h(x):f__namespace.createElement(Sk,{rotate:x.isActive?90:void 0});return xr(_,()=>({className:X(_.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({},VI(m)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),C=f__namespace.useMemo(()=>Sr(d).map((x,_)=>{var T,R;if(!((T=x.props)===null||T===void 0)&&T.disabled){const I=(R=x.key)!==null&&R!==void 0?R:String(_),{disabled:O,collapsible:P}=x.props,E=Object.assign(Object.assign({},wr(x.props,["disabled"])),{key:I,collapsible:P??(O?"disabled":void 0)});return xr(x,E)}return x}),[d]);return g(f__namespace.createElement(Cv,Object.assign({ref:t,openMotion:w},wr(e,["rootClassName"]),{expandIcon:S,prefixCls:p,className:$}),C))}),mS=Object.assign(B3,{Panel:k3});var W3=["v"],Wf=function(e){Fo(n,e);var t=zo(n);function n(r){return vn(this,n),t.call(this,G3(r))}return pn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=si(o.s*100),a=si(o.b*100),s=si(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();et(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var i=o;i.v;var a=qe(i,W3);return F(F({},a),{},{b:o.v})}}]),n}(en),V3=["b"],U3="rc-color-picker",si=function(t){return Math.round(Number(t||0))},G3=function(t){if(t&&et(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=qe(n,V3);return F(F({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Ao=function(t){return t instanceof Wf?t:new Wf(t)},K3=Ao("#1677ff"),gS=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,S=(n.x+v)/l*360;if(a)switch(a){case"hue":return Ao(F(F({},b),{},{h:S<=0?0:S}));case"alpha":return Ao(F(F({},b),{},{a:y<=0?0:y}))}return Ao({h:b.h,s:m<=0?0:m,b:g>=1?1:g,a:b.a})},bS=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}}},Sv=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 X3(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 yS(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=G(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 S=a==null?void 0:a(r);S&&d(S);}},[s]),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=X3($),C=w.pageX,x=w.pageY,_=r.current.getBoundingClientRect(),T=_.x,R=_.y,I=_.width,O=_.height,P=n.current.getBoundingClientRect(),E=P.width,M=P.height,N=E/2,A=M/2,D=Math.max(0,Math.min(C-T,I))-N,L=Math.max(0,Math.min(x-R,O))-A,B={x:D,y:o==="x"?u.y:L};if(E===0&&M===0||E!==M)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 CS=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"),V({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},SS=function(t){var n=t.children,r=t.style,o=t.prefixCls;return f.createElement("div",{className:"".concat(o,"-palette"),style:F({position:"relative"},r)},n)},wS=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)}),q3=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=f.useRef(),a=f.useRef(),s=yS({color:n,containerRef:i,targetRef:a,calculate:function(h){return bS(h,a,n)},onDragChange:function(h){return r(gS({offset:h,targetRef:a,containerRef:i,color:n}))}}),l=G(s,2),c=l[0],u=l[1];return f.createElement("div",{ref:i,className:"".concat(o,"-select"),onMouseDown:u,onTouchStart:u},f.createElement(SS,{prefixCls:o},f.createElement(wS,{offset:c,ref:a},f.createElement(CS,{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))"}})))},Y3=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=Ao(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)},Rg=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=yS({color:a,targetRef:d,containerRef:u,calculate:function(b){return bS(b,d,a,i)},onDragChange:function(b){l(gS({offset:b,targetRef:d,containerRef:u,color:a,type:i}));},direction:"x"}),v=G(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(SS,{prefixCls:c},f.createElement(wS,{offset:p,ref:d},f.createElement(CS,{size:"small",color:s,prefixCls:c})),f.createElement(Y3,{colors:n,direction:r,type:i,prefixCls:c})))};function Mg(e){return e!==void 0}var Z3=function(t,n){var r=n.defaultValue,o=n.value,i=f.useState(function(){var c;return Mg(o)?c=o:Mg(r)?c=r:c=t,Ao(c)}),a=G(i,2),s=a[0],l=a[1];return f.useEffect(function(){o&&l(Ao(o));},[o]),[s,l]},Q3=["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%"],J3=function(t){var n=t.value,r=t.defaultValue,o=t.prefixCls,i=o===void 0?U3:o,a=t.onChange,s=t.panelRender,l=Z3(K3,{value:n,defaultValue:r}),c=G(l,2),u=c[0],d=c[1],h=f.useMemo(function(){var m=Ao(u.toRgbString());return m.setAlpha(1),m.toRgbString()},[u]),v=function(g){n||d(g),a==null||a(g);},p=f.useMemo(function(){return f.createElement(f.Fragment,null,f.createElement(q3,{color:u,onChange:v,prefixCls:i}),f.createElement("div",{className:"".concat(i,"-slider-container")},f.createElement("div",{className:"".concat(i,"-slider-group")},f.createElement(Rg,{gradientColors:Q3,prefixCls:i,color:u,value:"hsl(".concat(u.toHsb().h,",100%, 50%)"),onChange:v}),f.createElement(Rg,{type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",h],prefixCls:i,color:u,value:u.toRgbString(),onChange:v})),f.createElement(Sv,{color:u.toRgbString(),prefixCls:i})))},[i,h,u,v]);return f.createElement("div",{className:"".concat(i,"-panel")},typeof s=="function"?s(p):p)};const e5=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}}})}},t5=mn("Divider",e=>{const t=Lt(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return [e5(t)]},{sizePaddingEdgeHorizontal:0});var n5=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const r5=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(pt),{prefixCls:r,type:o="horizontal",orientation:i="center",orientationMargin:a,className:s,rootClassName:l,children:c,dashed:u,plain:d}=e,h=n5(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain"]),v=t("divider",r),[p,m]=t5(v),g=i.length>0?`-${i}`:i,b=!!c,y=i==="left"&&a!=null,S=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`]:S},s,l),w=Object.assign(Object.assign({},y&&{marginLeft:a}),S&&{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)))},o5=r5;let Tg=function(){function e(t){vn(this,e),this.metaColor=new Wf(t);}return pn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return s5(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 i5="ant-color-picker",Yn=e=>e instanceof Tg?e:new Tg(e),a5=e=>si(e.toHsb().a*100),Tl=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",s5=(e,t)=>e?Tl(e,t):"",l5=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=()=>{if(n){const i=n.toHsb();i.a=0;const a=Yn(i);r==null||r(a);}};return f.createElement("div",{className:`${t}-clear`,onClick:o})},xS=l5;var Do;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(Do||(Do={}));var c5={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 u5=c5;var $S=function(t,n){return f__namespace.createElement(Qn,F(F({},t),{},{ref:n,icon:u5}))};$S.displayName="UpOutlined";const d5=f__namespace.forwardRef($S);function Vf(){return typeof BigInt=="function"}function li(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 wv(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function bs(e){var t=String(e);if(wv(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(".")&&xv(t)?t.length-t.indexOf(".")-1:0}function hu(e){var t=String(e);if(wv(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Vf()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Vf()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(bs(t));}return li(t).fullStr}function xv(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}function ES(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var f5=function(){function e(t){if(vn(this,e),V(this,"origin",""),V(this,"number",void 0),V(this,"empty",void 0),ES(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return pn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(bs(this.number),bs(r));return new e(o.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":hu(this.number):this.origin}}]),e}(),h5=function(){function e(t){if(vn(this,e),V(this,"origin",""),V(this,"negative",void 0),V(this,"integer",void 0),V(this,"decimal",void 0),V(this,"decimalLen",void 0),V(this,"empty",void 0),V(this,"nan",void 0),ES(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(wv(n)&&(n=Number(n)),n=typeof n=="string"?n:hu(n),xv(n)){var r=li(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 pn(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=li(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()?"":li("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function ur(e){return Vf()?new h5(e):new f5(e)}function Il(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=li(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 Il(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 v5=function(){var t=f.useState(!1),n=G(t,2),r=n[0],o=n[1];return Ht(function(){o(Ls());},[]),r},p5=200,m5=600;function g5(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 S(){l.current(y),s.current=setTimeout(S,p5);}s.current=setTimeout(S,m5);},u=function(){clearTimeout(s.current);};f__namespace.useEffect(function(){return u},[]);var d=v5();if(d)return null;var h="".concat(t,"-handler"),v=X(h,"".concat(h,"-up"),V({},"".concat(h,"-up-disabled"),o)),p=X(h,"".concat(h,"-down"),V({},"".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",we({},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",we({},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 Ig(e){var t=typeof e=="number"?hu(e):li(e).fullStr,n=t.includes(".");return n?li(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function b5(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){Cn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message));}}return [r,o]}const y5=function(){var e=f.useRef(0),t=function(){St.cancel(e.current);};return f.useEffect(function(){return t},[]),function(n){t(),e.current=St(function(){n();});}};var C5=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Ng=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Ag=function(t){var n=ur(t);return n.isInvalidate()?null:n},OS=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,S=y===void 0?!0:y,$=e.stringMode,w=e.parser,C=e.formatter,x=e.precision,_=e.decimalSeparator,T=e.onChange,R=e.onInput,I=e.onPressEnter,O=e.onStep,P=qe(e,C5),E="".concat(o,"-input"),M=f__namespace.useRef(null),N=f__namespace.useState(!1),A=G(N,2),D=A[0],L=A[1],B=f__namespace.useRef(!1),U=f__namespace.useRef(!1),z=f__namespace.useRef(!1),W=f__namespace.useState(function(){return ur(h??d)}),K=G(W,2),q=K[0],Y=K[1];function Z(ye){h===void 0&&Y(ye);}var J=f__namespace.useCallback(function(ye,Oe){if(!Oe)return x>=0?x:Math.max(bs(ye),bs(u))},[x,u]),ne=f__namespace.useCallback(function(ye){var Oe=String(ye);if(w)return w(Oe);var Ae=Oe;return _&&(Ae=Ae.replace(_,".")),Ae.replace(/[^\w.-]+/g,"")},[w,_]),ae=f__namespace.useRef(""),de=f__namespace.useCallback(function(ye,Oe){if(C)return C(ye,{userTyping:Oe,input:String(ae.current)});var Ae=typeof ye=="number"?hu(ye):ye;if(!Oe){var Re=J(Ae,Oe);if(xv(Ae)&&(_||Re>=0)){var Qe=_||".";Ae=Il(Ae,Qe,Re);}}return Ae},[C,J,_]),pe=f__namespace.useState(function(){var ye=d??h;return q.isInvalidate()&&["string","number"].includes(et(ye))?Number.isNaN(ye)?"":ye:de(q.toString(),!1)}),te=G(pe,2),se=te[0],ue=te[1];ae.current=se;function ce(ye,Oe){ue(de(ye.isInvalidate()?ye.toString(!1):ye.toString(!Oe),Oe));}var ve=f__namespace.useMemo(function(){return Ag(l)},[l,x]),re=f__namespace.useMemo(function(){return Ag(s)},[s,x]),he=f__namespace.useMemo(function(){return !ve||!q||q.isInvalidate()?!1:ve.lessEquals(q)},[ve,q]),ie=f__namespace.useMemo(function(){return !re||!q||q.isInvalidate()?!1:q.lessEquals(re)},[re,q]),xe=b5(M.current,D),Ne=G(xe,2),Ge=Ne[0],st=Ne[1],lt=function(Oe){return ve&&!Oe.lessEquals(ve)?ve:re&&!re.lessEquals(Oe)?re:null},De=function(Oe){return !lt(Oe)},ze=function(Oe,Ae){var Re=Oe,Qe=De(Re)||Re.isEmpty();if(!Re.isEmpty()&&!Ae&&(Re=lt(Re)||Re,Qe=!0),!p&&!v&&Qe){var Tt=Re.toString(),Ft=J(Tt,Ae);return Ft>=0&&(Re=ur(Il(Tt,".",Ft)),De(Re)||(Re=ur(Il(Tt,".",Ft,!0)))),Re.equals(q)||(Z(Re),T==null||T(Re.isEmpty()?null:Ng($,Re)),h===void 0&&ce(Re,Ae)),Re}return q},_e=y5(),ke=function ye(Oe){if(Ge(),ue(Oe),!U.current){var Ae=ne(Oe),Re=ur(Ae);Re.isNaN()||ze(Re,!0);}R==null||R(Oe),_e(function(){var Qe=Oe;w||(Qe=Oe.replace(/。/g,".")),Qe!==Oe&&ye(Qe);});},Pe=function(){U.current=!0;},Ue=function(){U.current=!1,ke(M.current.value);},tt=function(Oe){ke(Oe.target.value);},Ce=function(Oe){var Ae;if(!(Oe&&he||!Oe&&ie)){B.current=!1;var Re=ur(z.current?Ig(u):u);Oe||(Re=Re.negate());var Qe=(q||ur(0)).add(Re.toString()),Tt=ze(Qe,!1);O==null||O(Ng($,Tt),{offset:z.current?Ig(u):u,type:Oe?"up":"down"}),(Ae=M.current)===null||Ae===void 0||Ae.focus();}},Se=function(Oe){var Ae=ur(ne(se)),Re=Ae;Ae.isNaN()?Re=q:Re=ze(Ae,Oe),h!==void 0?ce(q,!1):Re.isNaN()||ce(Re,!1);},Le=function(){B.current=!0;},nt=function(Oe){var Ae=Oe.which,Re=Oe.shiftKey;B.current=!0,Re?z.current=!0:z.current=!1,Ae===ee.ENTER&&(U.current||(B.current=!1),Se(!1),I==null||I(Oe)),b!==!1&&!U.current&&[ee.UP,ee.DOWN].includes(Ae)&&(Ce(ee.UP===Ae),Oe.preventDefault());},Be=function(){B.current=!1,z.current=!1;},wt=function(){Se(!1),L(!1),B.current=!1;};return Vi(function(){q.isInvalidate()||ce(q,!1);},[x]),Vi(function(){var ye=ur(h);Y(ye);var Oe=ur(ne(se));(!ye.equals(Oe)||!B.current||C)&&ce(ye,B.current);},[h]),Vi(function(){C&&st();},[se]),f__namespace.createElement("div",{className:X(o,i,(n={},V(n,"".concat(o,"-focused"),D),V(n,"".concat(o,"-disabled"),v),V(n,"".concat(o,"-readonly"),p),V(n,"".concat(o,"-not-a-number"),q.isNaN()),V(n,"".concat(o,"-out-of-range"),!q.isInvalidate()&&!De(q)),n)),style:a,onFocus:function(){L(!0);},onBlur:wt,onKeyDown:nt,onKeyUp:Be,onCompositionStart:Pe,onCompositionEnd:Ue,onBeforeInput:Le},S&&f__namespace.createElement(g5,{prefixCls:o,upNode:m,downNode:g,upDisabled:he,downDisabled:ie,onStep:Ce}),f__namespace.createElement("div",{className:"".concat(E,"-wrap")},f__namespace.createElement("input",we({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":q.isInvalidate()?null:q.toString(),step:u},P,{ref:Pn(M,t),className:E,value:se,onChange:tt,disabled:v,readOnly:p}))))});OS.displayName="InputNumber";const S5=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:S,controlWidth:$,handleVisible:w}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),du(e)),uu(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:S,[`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({},Bs(e)),"&-focused":Object.assign({},hc(e)),"&-disabled":Object.assign(Object.assign({},gv(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Zt(e)),oS(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:S}},"&-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"}),tS(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({},As()),{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}}}]},w5=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({},du(e)),uu(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({},Bs(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}}})}},x5=mn("InputNumber",e=>{const t=iS(e);return [S5(t),w5(t),nu(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var $5=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const PS=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(pt),[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,S=$5(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),$=n("input-number",d),[w,C]=x5($),{compactSize:x,compactItemClassnames:_}=ks($,r);let T=f__namespace.createElement(d5,{className:`${$}-handler-up-inner`}),R=f__namespace.createElement(aC,{className:`${$}-handler-down-inner`});const I=typeof y=="boolean"?y:void 0;typeof y=="object"&&(T=typeof y.upIcon>"u"?T:f__namespace.createElement("span",{className:`${$}-handler-up-inner`},y.upIcon),R=typeof y.downIcon>"u"?R:f__namespace.createElement("span",{className:`${$}-handler-down-inner`},y.downIcon));const{hasFeedback:O,status:P,isFormItemInput:E,feedbackIcon:M}=f__namespace.useContext(Ur),N=ou(P,b),A=Er(K=>{var q;return (q=x??c)!==null&&q!==void 0?q:K}),D=p!=null||O,L=!!(h||v),B=f__namespace.useContext(Ho),U=u??B,z=X({[`${$}-lg`]:A==="large",[`${$}-sm`]:A==="small",[`${$}-rtl`]:r==="rtl",[`${$}-borderless`]:!m,[`${$}-in-form-item`]:E},fo($,N),_,C,s,!D&&!L&&l);let W=f__namespace.createElement(OS,Object.assign({ref:a,disabled:U,className:z,upHandler:T,downHandler:R,prefixCls:$,readOnly:g,controls:I},S));if(D){const K=X(`${$}-affix-wrapper`,fo(`${$}-affix-wrapper`,N,O),{[`${$}-affix-wrapper-focused`]:o,[`${$}-affix-wrapper-disabled`]:e.disabled,[`${$}-affix-wrapper-sm`]:A==="small",[`${$}-affix-wrapper-lg`]:A==="large",[`${$}-affix-wrapper-rtl`]:r==="rtl",[`${$}-affix-wrapper-readonly`]:g,[`${$}-affix-wrapper-borderless`]:!m},!L&&s,!L&&l,C);W=f__namespace.createElement("div",{className:K,style:e.style,onMouseUp:()=>a.current.focus()},p&&f__namespace.createElement("span",{className:`${$}-prefix`},p),xr(W,{style:null,value:e.value,onFocus:q=>{var Y;i(!0),(Y=e.onFocus)===null||Y===void 0||Y.call(e,q);},onBlur:q=>{var Y;i(!1),(Y=e.onBlur)===null||Y===void 0||Y.call(e,q);}}),O&&f__namespace.createElement("span",{className:`${$}-suffix`},M));}if(L){const K=`${$}-group`,q=`${K}-addon`,Y=h?f__namespace.createElement("div",{className:q},h):null,Z=v?f__namespace.createElement("div",{className:q},v):null,J=X(`${$}-wrapper`,K,C,{[`${K}-rtl`]:r==="rtl"}),ne=X(`${$}-group-wrapper`,{[`${$}-group-wrapper-sm`]:A==="small",[`${$}-group-wrapper-lg`]:A==="large",[`${$}-group-wrapper-rtl`]:r==="rtl"},fo(`${$}-group-wrapper`,N,O),C,s,l);W=f__namespace.createElement("div",{className:ne,style:e.style},f__namespace.createElement("div",{className:J},Y&&f__namespace.createElement(vs,null,f__namespace.createElement(ic,{status:!0,override:!0},Y)),xr(W,{style:null,disabled:U}),Z&&f__namespace.createElement(vs,null,f__namespace.createElement(ic,{status:!0,override:!0},Z))));}return w(W)}),_S=PS,E5=e=>f__namespace.createElement(Wh,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(PS,Object.assign({},e)));_S._InternalPanelDoNotUseOrYouWillBeFired=E5;const Uf=_S,O5=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(Uf,{className:X(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),i==null||i(d);}})},ci=O5,P5=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=f.useState(Yn(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=l=>{const c=i.toHsb();c.a=(l||0)/100;const u=Yn(c);n||a(u),r==null||r(u);};return f.createElement(ci,{value:a5(i),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},_5=P5,R5=e=>{const{getPrefixCls:t,direction:n}=f.useContext(pt),{prefixCls:r,className:o=""}=e,i=t("input-group",r),a=t("input"),[s,l]=bv(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(Ur),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(Ur.Provider,{value:d},e.children)))},M5=R5;function Ni(e){return !!(e.addonBefore||e.addonAfter)}function gd(e){return !!(e.prefix||e.suffix||e.allowClear)}function Ya(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 T5(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 Gf(e){return typeof e>"u"||e===null?"":String(e)}var RS=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,S=t.hidden,$=t.classes,w=t.classNames,C=t.dataAttrs,x=t.styles,_=f.useRef(null),T=function(U){var z;(z=_.current)!==null&&z!==void 0&&z.contains(U.target)&&(m==null||m());},R=function(){var U;if(!g)return null;var z=!h&&!v&&b,W="".concat(i,"-clear-icon"),K=et(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"✖";return f.createElement("span",{onClick:y,onMouseDown:function(Y){return Y.preventDefault()},className:X(W,(U={},V(U,"".concat(W,"-hidden"),!z),V(U,"".concat(W,"-has-suffix"),!!s),U)),role:"button",tabIndex:-1},K)},I=f.cloneElement(o,{value:b,hidden:S,className:X((n=o.props)===null||n===void 0?void 0:n.className,!gd(t)&&!Ni(t)&&u)||null,style:F(F({},(r=o.props)===null||r===void 0?void 0:r.style),!gd(t)&&!Ni(t)?d:{})});if(gd(t)){var O,P="".concat(i,"-affix-wrapper"),E=X(P,(O={},V(O,"".concat(P,"-disabled"),h),V(O,"".concat(P,"-focused"),p),V(O,"".concat(P,"-readonly"),v),V(O,"".concat(P,"-input-with-clear-btn"),s&&g&&b),O),!Ni(t)&&u,$==null?void 0:$.affixWrapper),M=(s||g)&&f.createElement("span",{className:X("".concat(i,"-suffix"),w==null?void 0:w.suffix),style:x==null?void 0:x.suffix},R(),s);I=f.createElement("span",we({className:E,style:Ni(t)?void 0:d,hidden:!Ni(t)&&S,onClick:T},C==null?void 0:C.affixWrapper,{ref:_}),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}),M);}if(Ni(t)){var N="".concat(i,"-group"),A="".concat(N,"-addon"),D=X("".concat(i,"-wrapper"),N,$==null?void 0:$.wrapper),L=X("".concat(i,"-group-wrapper"),u,$==null?void 0:$.group);return f.createElement("span",{className:L,style:d,hidden:S},f.createElement("span",{className:D},l&&f.createElement("span",{className:A},l),f.cloneElement(I,{hidden:null}),c&&f.createElement("span",{className:A},c)))}return I},I5=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],N5=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,S=e.classNames,$=e.styles,w=qe(e,I5),C=Qt(e.defaultValue,{value:e.value}),x=G(C,2),_=x[0],T=x[1],R=f.useState(!1),I=G(R,2),O=I[0],P=I[1],E=f.useRef(null),M=function(K){E.current&&T5(E.current,K);};f.useImperativeHandle(t,function(){return {focus:M,blur:function(){var K;(K=E.current)===null||K===void 0||K.blur();},setSelectionRange:function(K,q,Y){var Z;(Z=E.current)===null||Z===void 0||Z.setSelectionRange(K,q,Y);},select:function(){var K;(K=E.current)===null||K===void 0||K.select();},input:E.current}}),f.useEffect(function(){P(function(W){return W&&u?!1:W});},[u]);var N=function(K){e.value===void 0&&T(K.target.value),E.current&&Ya(E.current,K,r);},A=function(K){a&&K.key==="Enter"&&a(K),s==null||s(K);},D=function(K){P(!0),o==null||o(K);},L=function(K){P(!1),i==null||i(K);},B=function(K){T(""),M(),E.current&&Ya(E.current,K,r);},U=function(){var K=wr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return f.createElement("input",we({autoComplete:n},K,{onChange:N,onFocus:D,onBlur:L,onKeyDown:A,className:X(c,V({},"".concat(c,"-disabled"),u),S==null?void 0:S.input),style:$==null?void 0:$.input,ref:E,size:d,type:b}))},z=function(){var K=Number(v)>0;if(p||m){var q=Gf(_),Y=me(q).length,Z=et(m)==="object"?m.formatter({value:q,count:Y,maxLength:v}):"".concat(Y).concat(K?" / ".concat(v):"");return f.createElement(f.Fragment,null,!!m&&f.createElement("span",{className:X("".concat(c,"-show-count-suffix"),V({},"".concat(c,"-show-count-has-suffix"),!!p),S==null?void 0:S.count),style:F({},$==null?void 0:$.count)},Z),p)}return null};return f.createElement(RS,we({},w,{prefixCls:c,className:h,inputElement:U(),handleReset:B,value:Gf(_),focused:O,triggerFocus:M,suffix:z(),disabled:u,classes:y,classNames:S,styles:$}))});function MS(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 A5(e){return !!(e.prefix||e.suffix||e.allowClear)}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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function k5(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);break}}}const L5=f.forwardRef((e,t)=>{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=D5(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","rootClassName","onChange","classNames"]),{getPrefixCls:y,direction:S,input:$}=f.useContext(pt),w=y("input",n),C=f.useRef(null),[x,_]=bv(w),{compactSize:T,compactItemClassnames:R}=ks(w,S),I=Er(Y=>{var Z;return (Z=T??i)!==null&&Z!==void 0?Z:Y}),O=f.useContext(Ho),P=a??O,{status:E,hasFeedback:M,feedbackIcon:N}=f.useContext(Ur),A=ou(E,o),D=A5(e)||!!M,L=f.useRef(D);f.useEffect(()=>{D&&L.current,L.current=D;},[D]);const B=MS(C,!0),U=Y=>{B(),s==null||s(Y);},z=Y=>{B(),l==null||l(Y);},W=Y=>{B(),m==null||m(Y);},K=(M||c)&&f.createElement(f.Fragment,null,c,M&&N);let q;return typeof u=="object"&&(u!=null&&u.clearIcon)?q=u:u&&(q={clearIcon:f.createElement(Uh,null)}),x(f.createElement(N5,Object.assign({ref:Pn(t,C),prefixCls:w,autoComplete:$==null?void 0:$.autoComplete},b,{disabled:P,onBlur:U,onFocus:z,suffix:K,allowClear:q,className:X(v,p,R),onChange:W,addonAfter:d&&f.createElement(vs,null,f.createElement(ic,{override:!0,status:!0},d)),addonBefore:h&&f.createElement(vs,null,f.createElement(ic,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign({},g),{input:X({[`${w}-sm`]:I==="small",[`${w}-lg`]:I==="large",[`${w}-rtl`]:S==="rtl",[`${w}-borderless`]:!r},!D&&fo(w,A),g==null?void 0:g.input,_)}),classes:{affixWrapper:X({[`${w}-affix-wrapper-sm`]:I==="small",[`${w}-affix-wrapper-lg`]:I==="large",[`${w}-affix-wrapper-rtl`]:S==="rtl",[`${w}-affix-wrapper-borderless`]:!r},fo(`${w}-affix-wrapper`,A,M),_),wrapper:X({[`${w}-group-rtl`]:S==="rtl"},_),group:X({[`${w}-group-wrapper-sm`]:I==="small",[`${w}-group-wrapper-lg`]:I==="large",[`${w}-group-wrapper-rtl`]:S==="rtl",[`${w}-group-wrapper-disabled`]:P},fo(`${w}-group-wrapper`,A,M),_)}})))}),$v=L5;var F5={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 z5=F5;var TS=function(t,n){return f__namespace.createElement(Qn,F(F({},t),{},{ref:n,icon:z5}))};TS.displayName="EyeInvisibleOutlined";const j5=f__namespace.forwardRef(TS);var H5={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 B5=H5;var IS=function(t,n){return f__namespace.createElement(Qn,F(F({},t),{},{ref:n,icon:B5}))};IS.displayName="EyeOutlined";const W5=f__namespace.forwardRef(IS);var V5=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const U5=e=>e?f__namespace.createElement(W5,null):f__namespace.createElement(j5,null),G5={click:"onClick",hover:"onMouseOver"},K5=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=MS(a),l=()=>{const{disabled:w}=e;w||(o&&s(),i(C=>{var x;const _=!C;return typeof n=="object"&&((x=n.onVisibleChange)===null||x===void 0||x.call(n,_)),_}));},c=w=>{const{action:C="click",iconRender:x=U5}=e,_=G5[C]||"",T=x(o),R={[_]:l,className:`${w}-icon`,key:"passwordIcon",onMouseDown:I=>{I.preventDefault();},onMouseUp:I=>{I.preventDefault();}};return f__namespace.cloneElement(f__namespace.isValidElement(T)?T:f__namespace.createElement("span",null,T),R)},{className:u,prefixCls:d,inputPrefixCls:h,size:v}=e,p=V5(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=f__namespace.useContext(pt),g=m("input",h),b=m("input-password",d),y=n&&c(b),S=X(b,u,{[`${b}-${v}`]:!!v}),$=Object.assign(Object.assign({},wr(p,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:S,prefixCls:g,suffix:y});return v&&($.size=v),f__namespace.createElement($v,Object.assign({ref:Pn(t,a)},$))}),X5=K5;var q5=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Y5=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:h,onCompositionStart:v,onCompositionEnd:p}=e,m=q5(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:b}=f__namespace.useContext(pt),y=f__namespace.useRef(!1),S=g("input-search",n),$=g("input",r),{compactSize:w}=ks(S,b),C=Er(B=>{var U;return (U=w??i)!==null&&U!==void 0?U:B}),x=f__namespace.useRef(null),_=B=>{B&&B.target&&B.type==="click"&&d&&d(B.target.value,B),h&&h(B);},T=B=>{var U;document.activeElement===((U=x.current)===null||U===void 0?void 0:U.input)&&B.preventDefault();},R=B=>{var U,z;d&&d((z=(U=x.current)===null||U===void 0?void 0:U.input)===null||z===void 0?void 0:z.value,B);},I=B=>{y.current||c||R(B);},O=typeof s=="boolean"?f__namespace.createElement(lC,null):null,P=`${S}-button`;let E;const M=s||{},N=M.type&&M.type.__ANT_BUTTON===!0;N||M.type==="button"?E=xr(M,Object.assign({onMouseDown:T,onClick:B=>{var U,z;(z=(U=M==null?void 0:M.props)===null||U===void 0?void 0:U.onClick)===null||z===void 0||z.call(U,B),R(B);},key:"enterButton"},N?{className:P,size:C}:{})):E=f__namespace.createElement(An,{className:P,type:s?"primary":void 0,size:C,disabled:u,key:"enterButton",onMouseDown:T,onClick:R,loading:c,icon:O},s),l&&(E=[E,xr(l,{key:"addonAfter"})]);const A=X(S,{[`${S}-rtl`]:b==="rtl",[`${S}-${C}`]:!!C,[`${S}-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($v,Object.assign({ref:Pn(x,t),onPressEnter:I},m,{size:C,onCompositionStart:D,onCompositionEnd:L,prefixCls:$,addonAfter:E,suffix:a,onChange:_,className:A,disabled:u}))}),Z5=Y5;var Q5=`
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;
`,J5=["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"],bd={},rr;function e4(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&&bd[n])return bd[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=J5.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(bd[n]=l),l}function t4(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;rr||(rr=document.createElement("textarea"),rr.setAttribute("tab-index","-1"),rr.setAttribute("aria-hidden","true"),document.body.appendChild(rr)),e.getAttribute("wrap")?rr.setAttribute("wrap",e.getAttribute("wrap")):rr.removeAttribute("wrap");var o=e4(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;rr.setAttribute("style","".concat(l,";").concat(Q5)),rr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,h=rr.scrollHeight;if(s==="border-box"?h+=a:s==="content-box"&&(h-=i),n!==null||r!==null){rr.value=" ";var v=rr.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 n4=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],yd=0,Cd=1,Sd=2,r4=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,n4),v=Qt(o,{value:i,postState:function(K){return K??""}}),p=G(v,2),m=p[0],g=p[1],b=function(K){g(K.target.value),d==null||d(K);},y=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var S=f__namespace.useMemo(function(){return a&&et(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),$=G(S,2),w=$[0],C=$[1],x=!!a,_=function(){try{if(document.activeElement===y.current){var K=y.current,q=K.selectionStart,Y=K.selectionEnd,Z=K.scrollTop;y.current.setSelectionRange(q,Y),y.current.scrollTop=Z;}}catch{}},T=f__namespace.useState(Sd),R=G(T,2),I=R[0],O=R[1],P=f__namespace.useState(),E=G(P,2),M=E[0],N=E[1],A=function(){O(yd);};Ht(function(){x&&A();},[i,w,C,x]),Ht(function(){if(I===yd)O(Cd);else if(I===Cd){var W=t4(y.current,!1,w,C);O(Sd),N(W);}else _();},[I]);var D=f__namespace.useRef(),L=function(){St.cancel(D.current);},B=function(K){I===Sd&&(s==null||s(K),a&&(L(),D.current=St(function(){A();})));};f__namespace.useEffect(function(){return L},[]);var U=x?M:null,z=F(F({},c),U);return (I===yd||I===Cd)&&(z.overflowY="hidden",z.overflowX="hidden"),f__namespace.createElement(vo,{onResize:B,disabled:!(a||s)},f__namespace.createElement("textarea",we({},h,{ref:y,style:z,className:X(r,l,V({},"".concat(r,"-disabled"),u)),disabled:u,value:m,onChange:b})))}),o4=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles"];function NS(e,t){return me(e||"").slice(0,t).join("")}function Dg(e,t,n,r){var o=n;return e?o=NS(n,r):me(t||"").length<n.length&&me(n||"").length>r&&(o=t),o}var i4=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,S=e.disabled,$=e.hidden,w=e.classNames,C=e.styles,x=qe(e,o4),_=Qt(r,{value:o,defaultValue:r}),T=G(_,2),R=T[0],I=T[1],O=f.useRef(null),P=f.useState(!1),E=G(P,2),M=E[0],N=E[1],A=f.useState(!1),D=G(A,2),L=D[0],B=D[1],U=f.useRef(),z=f.useRef(0),W=function(){O.current.textArea.focus();};f.useImperativeHandle(t,function(){return {resizableTextArea:O.current,focus:W,blur:function(){O.current.textArea.blur();}}}),f.useEffect(function(){N(function(ve){return !S&&ve});},[S]);var K=Number(c)>0,q=function(re){B(!0),U.current=R,z.current=re.currentTarget.selectionStart,u==null||u(re);},Y=function(re){B(!1);var he=re.currentTarget.value;if(K){var ie,xe=z.current>=c+1||z.current===((ie=U.current)===null||ie===void 0?void 0:ie.length);he=Dg(xe,U.current,he,c);}he!==R&&(I(he),Ya(re.currentTarget,re,s,he)),d==null||d(re);},Z=function(re){var he=re.target.value;if(!L&&K){var ie=re.target.selectionStart>=c+1||re.target.selectionStart===he.length||!re.target.selectionStart;he=Dg(ie,R,he,c);}I(he),Ya(re.currentTarget,re,s,he);},J=function(re){var he=x.onPressEnter,ie=x.onKeyDown;re.key==="Enter"&&he&&he(re),ie==null||ie(re);},ne=function(re){N(!0),i==null||i(re);},ae=function(re){N(!1),a==null||a(re);},de=function(re){I(""),W(),Ya(O.current.textArea,re,s);},pe=Gf(R);!L&&K&&o==null&&(pe=NS(pe,c));var te=h,se;if(g){var ue=me(pe).length;et(g)==="object"?se=g.formatter({value:pe,count:ue,maxLength:c}):se="".concat(ue).concat(K?" / ".concat(c):""),te=f.createElement(f.Fragment,null,te,f.createElement("span",{className:X("".concat(p,"-data-count"),w==null?void 0:w.count),style:C==null?void 0:C.count},se));}var ce=f.createElement(RS,{value:pe,allowClear:l,handleReset:de,suffix:te,prefixCls:p,classes:{affixWrapper:X(m==null?void 0:m.affixWrapper,(n={},V(n,"".concat(p,"-show-count"),g),V(n,"".concat(p,"-textarea-allow-clear"),l),n))},disabled:S,focused:M,className:b,style:y,dataAttrs:{affixWrapper:{"data-count":typeof se=="string"?se:void 0}},hidden:$,inputElement:f.createElement(r4,we({},x,{onKeyDown:J,onChange:Z,onFocus:ne,onBlur:ae,onCompositionStart:q,onCompositionEnd:Y,className:w==null?void 0:w.textarea,style:F(F({},C==null?void 0:C.textarea),{},{resize:y==null?void 0:y.resize}),disabled:S,prefixCls:p,ref:O}))});return ce}),a4=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const s4=f.forwardRef((e,t)=>{var{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c}=e,u=a4(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]);const{getPrefixCls:d,direction:h}=f__namespace.useContext(pt),v=Er(o),p=f__namespace.useContext(Ho),m=i??p,{status:g,hasFeedback:b,feedbackIcon:y}=f__namespace.useContext(Ur),S=ou(g,a),$=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>{var T;return {resizableTextArea:(T=$.current)===null||T===void 0?void 0:T.resizableTextArea,focus:R=>{var I,O;k5((O=(I=$.current)===null||I===void 0?void 0:I.resizableTextArea)===null||O===void 0?void 0:O.textArea,R);},blur:()=>{var R;return (R=$.current)===null||R===void 0?void 0:R.blur()}}});const w=d("input",n);let C;typeof s=="object"&&(s!=null&&s.clearIcon)?C=s:s&&(C={clearIcon:f__namespace.createElement(Uh,null)});const[x,_]=bv(w);return x(f__namespace.createElement(i4,Object.assign({},u,{disabled:m,allowClear:C,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`,S),_)},classNames:Object.assign(Object.assign({},c),{textarea:X({[`${w}-borderless`]:!r,[`${w}-sm`]:v==="small",[`${w}-lg`]:v==="large"},fo(w,S),_,c==null?void 0:c.textarea)}),prefixCls:w,suffix:b&&f__namespace.createElement("span",{className:`${w}-textarea-suffix`},y),showCount:l,ref:$})))}),l4=s4,Ws=$v;Ws.Group=M5;Ws.Search=Z5;Ws.TextArea=l4;Ws.Password=X5;const c4=Ws,u4=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,kg=e=>u4.test(`#${e}`),d4=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();kg(l)&&n&&a(Tl(l));},[n]);const s=l=>{const c=l.target.value;a(Tl(c)),kg(Tl(c,!0))&&(r==null||r(Yn(c)));};return f.createElement(c4,{className:o,value:i==null?void 0:i.toUpperCase(),prefix:"#",onChange:s,size:"small"})},f4=d4,h4=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=f.useState(Yn(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=Yn(u);n||a(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(ci,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:l=>si(l||0).toString(),onChange:l=>s(Number(l),"h")}),f.createElement(ci,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${si(l||0)}%`,onChange:l=>s(Number(l),"s")}),f.createElement(ci,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${si(l||0)}%`,onChange:l=>s(Number(l),"b")}))},v4=h4,p4=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=f.useState(Yn(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const u=i.toRgb();u[c]=l||0;const d=Yn(u);n||a(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(ci,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),f.createElement(ci,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),f.createElement(ci,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},m4=p4,g4=[Do.hex,Do.hsb,Do.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),b4=e=>{const{prefixCls:t,format:n,value:r,onFormatChange:o,onChange:i}=e,[a,s]=Qt("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 Do.hsb:return f.createElement(v4,Object.assign({},d));case Do.rgb:return f.createElement(m4,Object.assign({},d));case Do.hex:default:return f.createElement(f4,Object.assign({},d))}},[a,t,r,i]);return f.createElement("div",{className:`${l}-container`},f.createElement(zD,{value:a,bordered:!1,getPopupContainer:d=>d,popupMatchSelectWidth:68,placement:"bottomRight",onChange:c,className:`${t}-format-select`,size:"small",options:g4}),f.createElement("div",{className:l},u),f.createElement(_5,{prefixCls:t,value:r,onChange:i}))},y4=b4,{Panel:C4}=mS,wd=e=>e.map(t=>(t.colors=t.colors.map(Yn),t)),S4=e=>{const{r:t,g:n,b:r,a:o}=e.toRgb();return o<=.5?!0:t*.299+n*.587+r*.114>192},w4=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=Fh("ColorPicker"),[a]=Qt(wd(n),{value:wd(n),postState:wd}),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(mS,{defaultActiveKey:l,ghost:!0},a.map(u=>{var d;return f.createElement(C4,{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(Sv,{key:`preset-${h.toHexString()}`,color:Yn(h).toRgbString(),prefixCls:t,className:X(`${s}-color`,{[`${s}-color-checked`]:h.toHexString()===(r==null?void 0:r.toHexString()),[`${s}-color-bright`]:S4(h)}),onClick:()=>c(h)})):f.createElement("span",{className:`${s}-empty`},i.presetEmpty)))})))},x4=w4;var $4=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const E4=e=>{const{prefixCls:t,allowClear:n,presets:r,onChange:o,onClear:i,color:a}=e,s=$4(e,["prefixCls","allowClear","presets","onChange","onClear","color"]),l=`${t}-inner-panel`,c=u=>f.createElement("div",{className:l},n&&f.createElement(xS,Object.assign({prefixCls:t,value:a,onChange:d=>{o==null||o(d),i==null||i(!0);}},s)),u,f.createElement(y4,Object.assign({value:a,onChange:o,prefixCls:t},s)),Array.isArray(r)&&f.createElement(f.Fragment,null,f.createElement(o5,{className:`${l}-divider`}),f.createElement(x4,{value:a,presets:r,prefixCls:t,onChange:o})));return f.createElement(J3,{prefixCls:t,value:a==null?void 0:a.toHsb(),onChange:o,panelRender:c})},O4=E4;var P4=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _4=f.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,clearColor:i,disabled:a,className:s}=e,l=P4(e,["color","prefixCls","open","clearColor","disabled","className"]),c=`${r}-trigger`,u=f.useMemo(()=>i?f.createElement(xS,{prefixCls:r}):f.createElement(Sv,{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)}),R4=_4;function Lg(e){return e!==void 0}const M4=(e,t)=>{const{defaultValue:n,value:r}=t,[o,i]=f.useState(()=>{let a;return Lg(r)?a=r:Lg(n)?a=n:a=e,Yn(a||"")});return f.useEffect(()=>{r&&i(Yn(r));},[r]),[o,i]},T4=M4,Fg="#EEE",AS=e=>({backgroundImage:`conic-gradient(${Fg} 0 25%, transparent 0 50%, ${Fg} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),I4=(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},AS("50%")),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${i}px solid ${a}`,borderRadius:"inherit"}})}},DS=I4,N4=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}}}}}},A4=N4,D4=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":AS(`${d}px`),marginBottom:i},[`${t}-slider-container`]:{display:"flex",gap:i,[`${t}-slider-group`]:{flex:1}}},DS(e,h))},k4=D4,L4=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}}}},F4=L4,z4=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),zg=(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}}}},j4=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`}}},k4(e)),A4(e)),F4(e)),zg(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({},z4(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:a,background:s,cursor:"not-allowed","&:hover":{borderColor:v}}},zg(e,h)),DS(e,h))}}]},H4=mn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=Lt(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 [j4(o)]}),Ev=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:S}=e,{getPrefixCls:$,direction:w}=f.useContext(pt),{token:C}=cc.useToken(),[x,_]=T4(C.colorPrimary,{value:t,defaultValue:n}),[T,R]=Qt(!1,{value:l,postState:z=>!c&&z,onChange:y}),[I,O]=f.useState(!1),P=$("color-picker",i5),[E,M]=H4(P),N=X(p,{[`${P}-rtl`]:w}),A=X(N,v,M),D=z=>{const W=Yn(z);I&&W.toHsb().a>0&&O(!1),t||_(W),b==null||b(W,W.toHexString());},L=z=>{O(z);},B={open:T,trigger:s,placement:u,arrow:d,rootClassName:p,getPopupContainer:S},U={prefixCls:P,color:x,allowClear:o,clearColor:I,disabled:c,presets:i,format:r,onFormatChange:g};return E(f.createElement(CC,Object.assign({style:m==null?void 0:m.popup,onOpenChange:R,content:f.createElement(O4,Object.assign({},U,{onChange:D,onClear:L})),overlayClassName:P},B),a||f.createElement(R4,{open:T,className:A,style:h,color:x,prefixCls:P,clearColor:I,disabled:c})))},B4=Fy(Ev,"color-picker",e=>e);Ev._InternalPanelDoNotUseOrYouWillBeFired=B4;const W4=Ev,V4=e=>{const{componentCls:t,iconCls:n,zIndexPopup:r,colorText:o,colorWarning:i,marginXS:a,fontSize:s,fontWeightStrong:l,lineHeight:c}=e;return {[t]:{zIndex:r,[`${t}-inner-content`]:{color:o},[`${t}-message`]:{position:"relative",marginBottom:a,color:o,fontSize:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:s,flex:"none",lineHeight:1,paddingTop:(Math.round(s*c)-s)/2},"&-title":{flex:"auto",marginInlineStart:a},"&-title-only":{fontWeight:l}},[`${t}-description`]:{position:"relative",marginInlineStart:s+a,marginBottom:a,color:o,fontSize:s},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:a}}}}},kS=mn("Popconfirm",e=>V4(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}});var U4=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const LS=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=f__namespace.createElement(yy,null),showCancel:u=!0,close:d,onConfirm:h,onCancel:v,onPopupClick:p}=e,{getPrefixCls:m}=f__namespace.useContext(pt),[g]=Fh("Popconfirm",sa.Popconfirm);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:X(`${t}-message-title`,{[`${t}-message-title-only`]:!!i})},la(o))),i&&f__namespace.createElement("div",{className:`${t}-description`},la(i)),f__namespace.createElement("div",{className:`${t}-buttons`},u&&f__namespace.createElement(An,Object.assign({onClick:v,size:"small"},r),a??(g==null?void 0:g.cancelText)),f__namespace.createElement(BI,{buttonProps:Object.assign(Object.assign({size:"small"},My(l)),n),actionFn:h,close:d,prefixCls:m("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(g==null?void 0:g.okText))))};function G4(e){const{prefixCls:t,placement:n,className:r,style:o}=e,i=U4(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=f__namespace.useContext(pt),s=a("popconfirm",t),[l]=kS(s);return l(f__namespace.createElement(bC,{placement:n,className:X(s,r),style:o,content:f__namespace.createElement(LS,Object.assign({prefixCls:s},i))}))}var K4=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const FS=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(pt),[r,o]=Qt(!1,{value:e.open,defaultValue:e.defaultOpen}),i=(C,x)=>{var _;o(C,!0),(_=e.onOpenChange)===null||_===void 0||_.call(e,C,x);},a=C=>{i(!1,C);},s=C=>{var x;return (x=e.onConfirm)===null||x===void 0?void 0:x.call(globalThis,C)},l=C=>{var x;i(!1,C),(x=e.onCancel)===null||x===void 0||x.call(globalThis,C);},c=C=>{C.keyCode===ee.ESC&&r&&i(!1,C);},u=C=>{const{disabled:x=!1}=e;x||i(C);},{prefixCls:d,placement:h="top",trigger:v="click",okType:p="primary",icon:m=f__namespace.createElement(yy,null),children:g,overlayClassName:b}=e,y=K4(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName"]),S=n("popconfirm",d),$=X(S,b),[w]=kS(S);return w(f__namespace.createElement(CC,Object.assign({},wr(y,["title"]),{trigger:v,placement:h,onOpenChange:u,open:r,ref:t,overlayClassName:$,content:f__namespace.createElement(LS,Object.assign({okType:p,icon:m},e,{prefixCls:S,close:a,onConfirm:s,onCancel:l})),"data-popover-inject":!0}),xr(g,{onKeyDown:C=>{var x,_;f__namespace.isValidElement(g)&&((_=g==null?void 0:(x=g.props).onKeyDown)===null||_===void 0||_.call(x,C)),c(C);}})))});FS._InternalPanelDoNotUseOrYouWillBeFired=G4;const X4=FS;var mi=f__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function Kf(e,t,n){return (e-t)/(n-t)}function Ov(e,t,n,r){var o=Kf(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 zi(e,t){return Array.isArray(e)?e[t]:e}var q4=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],Y4=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,q4),v=f__namespace.useContext(mi),p=v.min,m=v.max,g=v.direction,b=v.disabled,y=v.keyboard,S=v.range,$=v.tabIndex,w=v.ariaLabelForHandle,C=v.ariaLabelledByForHandle,x=v.ariaValueTextFormatterForHandle,_="".concat(o,"-handle"),T=function(E){b||s(E,a);},R=function(E){if(!b&&y){var M=null;switch(E.which||E.keyCode){case ee.LEFT:M=g==="ltr"||g==="btt"?-1:1;break;case ee.RIGHT:M=g==="ltr"||g==="btt"?1:-1;break;case ee.UP:M=g!=="ttb"?1:-1;break;case ee.DOWN:M=g!=="ttb"?-1:1;break;case ee.HOME:M="min";break;case ee.END:M="max";break;case ee.PAGE_UP:M=2;break;case ee.PAGE_DOWN:M=-2;break}M!==null&&(E.preventDefault(),d(M,a));}},I=Ov(g,i,p,m),O=f__namespace.createElement("div",we({ref:t,className:X(_,(n={},V(n,"".concat(_,"-").concat(a+1),S),V(n,"".concat(_,"-dragging"),u),n)),style:F(F({},I),l),onMouseDown:T,onTouchStart:T,onKeyDown:R,tabIndex:b?null:zi($,a),role:"slider","aria-valuemin":p,"aria-valuemax":m,"aria-valuenow":i,"aria-disabled":b,"aria-label":zi(w,a),"aria-labelledby":zi(C,a),"aria-valuetext":(r=zi(x,a))===null||r===void 0?void 0:r(i)},h));return c&&(O=c(O,{index:a,prefixCls:o,value:i,dragging:u})),O}),Z4=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],Q4=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,Z4),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(Y4,we({ref:function(p){p?u.current[h]=p:delete u.current[h];},dragging:l===h,prefixCls:n,style:zi(r,h),key:h,value:d,valueIndex:h,onStartMove:o,onOffsetChange:i,render:s},c))}))});function jg(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function J4(e,t,n,r,o,i,a,s,l){var c=f__namespace.useState(null),u=G(c,2),d=u[0],h=u[1],v=f__namespace.useState(-1),p=G(v,2),m=p[0],g=p[1],b=f__namespace.useState(n),y=G(b,2),S=y[0],$=y[1],w=f__namespace.useState(n),C=G(w,2),x=C[0],_=C[1],T=f__namespace.useRef(null),R=f__namespace.useRef(null);f__namespace.useEffect(function(){m===-1&&$(n);},[n,m]),f__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",T.current),document.removeEventListener("mouseup",R.current),document.removeEventListener("touchmove",T.current),document.removeEventListener("touchend",R.current);}},[]);var I=function(A,D){S.some(function(L,B){return L!==A[B]})&&(D!==void 0&&h(D),$(A),a(A));},O=function(A,D){if(A===-1){var L=x[0],B=x[x.length-1],U=r-L,z=o-B,W=D*(o-r);W=Math.max(W,U),W=Math.min(W,z);var K=i(L+W);W=K-L;var q=x.map(function(ne){return ne+W});I(q);}else {var Y=(o-r)*D,Z=me(S);Z[A]=x[A];var J=l(Z,Y,A,"dist");I(J.values,J.value);}},P=f__namespace.useRef(O);P.current=O;var E=function(A,D){A.stopPropagation();var L=n[D];g(D),h(L),_(n);var B=jg(A),U=B.pageX,z=B.pageY,W=function(Y){Y.preventDefault();var Z=jg(Y),J=Z.pageX,ne=Z.pageY,ae=J-U,de=ne-z,pe=e.current.getBoundingClientRect(),te=pe.width,se=pe.height,ue;switch(t){case"btt":ue=-de/se;break;case"ttb":ue=de/se;break;case"rtl":ue=-ae/te;break;default:ue=ae/te;}P.current(D,ue);},K=function q(Y){Y.preventDefault(),document.removeEventListener("mouseup",q),document.removeEventListener("mousemove",W),document.removeEventListener("touchend",q),document.removeEventListener("touchmove",W),T.current=null,R.current=null,g(-1),s();};document.addEventListener("mouseup",K),document.addEventListener("mousemove",W),document.addEventListener("touchend",K),document.addEventListener("touchmove",W),T.current=W,R.current=K;},M=f__namespace.useMemo(function(){var N=me(n).sort(function(D,L){return D-L}),A=me(S).sort(function(D,L){return D-L});return N.every(function(D,L){return D===A[L]})?S:n},[n,S]);return [m,d,M,E]}function ez(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,s=f__namespace.useContext(mi),l=s.direction,c=s.min,u=s.max,d=s.disabled,h=s.range,v="".concat(t,"-track"),p=Kf(r,c,u),m=Kf(o,c,u),g=function(S){!d&&a&&a(S,-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:F(F({},b),n),onMouseDown:g,onTouchStart:g})}function tz(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=f__namespace.useContext(mi),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;p<r.length-1;p+=1)v.push({start:r[p],end:r[p+1]});return v},[r,l,o,c]);return s?u.map(function(d,h){var v=d.start,p=d.end;return f__namespace.createElement(ez,{index:h,prefixCls:t,style:zi(n,h),start:v,end:p,key:h,onStartMove:i})}):null}function nz(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=f__namespace.useContext(mi),s=a.min,l=a.max,c=a.direction,u=a.includedStart,d=a.includedEnd,h=a.included,v="".concat(t,"-text"),p=Ov(c,o,s,l);return f__namespace.createElement("span",{className:X(v,V({},"".concat(v,"-active"),h&&u<=o&&o<=d)),style:F(F({},p),n),onMouseDown:function(g){g.stopPropagation();},onClick:function(){i(o);}},r)}function rz(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?f__namespace.createElement("div",{className:o},n.map(function(i){var a=i.value,s=i.style,l=i.label;return f__namespace.createElement(nz,{key:a,prefixCls:o,style:s,value:a,onClick:r},l)})):null}function oz(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=f__namespace.useContext(mi),a=i.min,s=i.max,l=i.direction,c=i.included,u=i.includedStart,d=i.includedEnd,h="".concat(t,"-dot"),v=c&&u<=n&&n<=d,p=F(F({},Ov(l,n,a,s)),typeof r=="function"?r(n):r);return v&&(p=F(F({},p),typeof o=="function"?o(n):o)),f__namespace.createElement("span",{className:X(h,V({},"".concat(h,"-active"),v)),style:p})}function iz(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=f__namespace.useContext(mi),s=a.min,l=a.max,c=a.step,u=f__namespace.useMemo(function(){var d=new Set;if(n.forEach(function(v){d.add(v.value);}),r&&c!==null)for(var h=s;h<=l;)d.add(h),h+=c;return Array.from(d)},[s,l,c,r,n]);return f__namespace.createElement("div",{className:"".concat(t,"-step")},u.map(function(d){return f__namespace.createElement(oz,{prefixCls:t,key:d,value:d,style:o,activeStyle:i})}))}function az(e,t,n,r,o,i){var a=f__namespace.useCallback(function(v){var p=isFinite(v)?v:e;return p=Math.min(t,v),p=Math.max(e,p),p},[e,t]),s=f__namespace.useCallback(function(v){if(n!==null){var p=e+Math.round((a(v)-e)/n)*n,m=function(S){return (String(S).split(".")[1]||"").length},g=Math.max(m(n),m(t),m(e)),b=Number(p.toFixed(g));return e<=b&&b<=t?b:null}return null},[n,e,t,a]),l=f__namespace.useCallback(function(v){var p=a(v),m=r.map(function(y){return y.value});n!==null&&m.push(s(v)),m.push(e,t);var g=m[0],b=t-e;return m.forEach(function(y){var S=Math.abs(p-y);S<=b&&(g=y,b=S);}),g},[e,t,r,n,a,s]),c=function v(p,m,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var y,S=p[g],$=S+m,w=[];r.forEach(function(R){w.push(R.value);}),w.push(e,t),w.push(s(S));var C=m>0?1:-1;b==="unit"?w.push(s(S+C*n)):w.push(s($)),w=w.filter(function(R){return R!==null}).filter(function(R){return m<0?R<=S:R>=S}),b==="unit"&&(w=w.filter(function(R){return R!==S}));var x=b==="unit"?S:$;y=w[0];var _=Math.abs(y-x);if(w.forEach(function(R){var I=Math.abs(R-x);I<_&&(y=R,_=I);}),y===void 0)return m<0?e:t;if(b==="dist")return y;if(Math.abs(m)>1){var T=me(p);return T[g]=y,v(T,m-C,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],S=c(p,m,g,b);return {value:S,changed:S!==y}},d=function(p){return i===null&&p===0||typeof i=="number"&&p<i},h=function(p,m,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=p.map(l),S=y[g],$=c(y,m,g,b);if(y[g]=$,o===!1){var w=i||0;g>0&&y[g-1]!==S&&(y[g]=Math.max(y[g],y[g-1]+w)),g<y.length-1&&y[g+1]!==S&&(y[g]=Math.min(y[g],y[g+1]-w));}else if(typeof i=="number"||i===null){for(var C=g+1;C<y.length;C+=1)for(var x=!0;d(y[C]-y[C-1])&&x;){var _=u(y,1,C);y[C]=_.value,x=_.changed;}for(var T=g;T>0;T-=1)for(var R=!0;d(y[T]-y[T-1])&&R;){var I=u(y,-1,T-1);y[T-1]=I.value,R=I.changed;}for(var O=y.length-1;O>0;O-=1)for(var P=!0;d(y[O]-y[O-1])&&P;){var E=u(y,-1,O-1);y[O-1]=E.value,P=E.changed;}for(var M=0;M<y.length-1;M+=1)for(var N=!0;d(y[M+1]-y[M])&&N;){var A=u(y,1,M+1);y[M+1]=A.value,N=A.changed;}}return {value:y[g],values:y}};return [l,h]}var sz=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-slider":r,i=e.className,a=e.style,s=e.disabled,l=s===void 0?!1:s,c=e.keyboard,u=c===void 0?!0:c,d=e.autoFocus,h=e.onFocus,v=e.onBlur,p=e.min,m=p===void 0?0:p,g=e.max,b=g===void 0?100:g,y=e.step,S=y===void 0?1:y,$=e.value,w=e.defaultValue,C=e.range,x=e.count,_=e.onChange,T=e.onBeforeChange,R=e.onAfterChange,I=e.allowCross,O=I===void 0?!0:I,P=e.pushable,E=P===void 0?!1:P,M=e.draggableTrack,N=e.reverse,A=e.vertical,D=e.included,L=D===void 0?!0:D,B=e.startPoint,U=e.trackStyle,z=e.handleStyle,W=e.railStyle,K=e.dotStyle,q=e.activeDotStyle,Y=e.marks,Z=e.dots,J=e.handleRender,ne=e.tabIndex,ae=ne===void 0?0:ne,de=e.ariaLabelForHandle,pe=e.ariaLabelledByForHandle,te=e.ariaValueTextFormatterForHandle,se=f__namespace.useRef(),ue=f__namespace.useRef(),ce=f__namespace.useMemo(function(){return A?N?"ttb":"btt":N?"rtl":"ltr"},[N,A]),ve=f__namespace.useMemo(function(){return isFinite(m)?m:0},[m]),re=f__namespace.useMemo(function(){return isFinite(b)?b:100},[b]),he=f__namespace.useMemo(function(){return S!==null&&S<=0?1:S},[S]),ie=f__namespace.useMemo(function(){return E===!0?he:E>=0?E:!1},[E,he]),xe=f__namespace.useMemo(function(){var Ye=Object.keys(Y||{});return Ye.map(function(Ze){var Me=Y[Ze],xt={value:Number(Ze)};return Me&&et(Me)==="object"&&!f__namespace.isValidElement(Me)&&("label"in Me||"style"in Me)?(xt.style=Me.style,xt.label=Me.label):xt.label=Me,xt}).filter(function(Ze){var Me=Ze.label;return Me||typeof Me=="number"}).sort(function(Ze,Me){return Ze.value-Me.value})},[Y]),Ne=az(ve,re,he,xe,O,ie),Ge=G(Ne,2),st=Ge[0],lt=Ge[1],De=Qt(w,{value:$}),ze=G(De,2),_e=ze[0],ke=ze[1],Pe=f__namespace.useMemo(function(){var Ye=_e==null?[]:Array.isArray(_e)?_e:[_e],Ze=G(Ye,1),Me=Ze[0],xt=Me===void 0?ve:Me,vt=_e===null?[]:[xt];if(C){if(vt=me(Ye),x||_e===void 0){var Bt=x>=0?x+1:2;for(vt=vt.slice(0,Bt);vt.length<Bt;){var Ke;vt.push((Ke=vt[vt.length-1])!==null&&Ke!==void 0?Ke:ve);}}vt.sort(function(We,dt){return We-dt});}return vt.forEach(function(We,dt){vt[dt]=st(We);}),vt},[_e,C,ve,x,st]),Ue=f__namespace.useRef(Pe);Ue.current=Pe;var tt=function(Ze){return C?Ze:Ze[0]},Ce=function(Ze){var Me=me(Ze).sort(function(xt,vt){return xt-vt});_&&!Ts(Me,Ue.current,!0)&&_(tt(Me)),ke(Me);},Se=function(Ze){if(!l){var Me=0,xt=re-ve;Pe.forEach(function(Bt,Ke){var We=Math.abs(Ze-Bt);We<=xt&&(xt=We,Me=Ke);});var vt=me(Pe);vt[Me]=Ze,C&&!Pe.length&&x===void 0&&vt.push(Ze),T==null||T(tt(vt)),Ce(vt),R==null||R(tt(vt));}},Le=function(Ze){Ze.preventDefault();var Me=ue.current.getBoundingClientRect(),xt=Me.width,vt=Me.height,Bt=Me.left,Ke=Me.top,We=Me.bottom,dt=Me.right,Et=Ze.clientX,qt=Ze.clientY,Wt;switch(ce){case"btt":Wt=(We-qt)/vt;break;case"ttb":Wt=(qt-Ke)/vt;break;case"rtl":Wt=(dt-Et)/xt;break;default:Wt=(Et-Bt)/xt;}var wn=ve+Wt*(re-ve);Se(st(wn));},nt=f__namespace.useState(null),Be=G(nt,2),wt=Be[0],ye=Be[1],Oe=function(Ze,Me){if(!l){var xt=lt(Pe,Ze,Me);T==null||T(tt(Pe)),Ce(xt.values),R==null||R(tt(xt.values)),ye(xt.value);}};f__namespace.useEffect(function(){if(wt!==null){var Ye=Pe.indexOf(wt);Ye>=0&&se.current.focus(Ye);}ye(null);},[wt]);var Ae=f__namespace.useMemo(function(){return M&&he===null?!1:M},[M,he]),Re=function(){R==null||R(tt(Ue.current));},Qe=J4(ue,ce,Pe,ve,re,st,Ce,Re,lt),Tt=G(Qe,4),Ft=Tt[0],Dt=Tt[1],le=Tt[2],fe=Tt[3],oe=function(Ze,Me){fe(Ze,Me),T==null||T(tt(Ue.current));},Ee=Ft!==-1;f__namespace.useEffect(function(){if(!Ee){var Ye=Pe.lastIndexOf(Dt);se.current.focus(Ye);}},[Ee]);var Ie=f__namespace.useMemo(function(){return me(le).sort(function(Ye,Ze){return Ye-Ze})},[le]),Je=f__namespace.useMemo(function(){return C?[Ie[0],Ie[Ie.length-1]]:[ve,Ie[0]]},[Ie,C,ve]),Ut=G(Je,2),bt=Ut[0],nn=Ut[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){se.current.focus(0);},blur:function(){var Ze=document,Me=Ze.activeElement;ue.current.contains(Me)&&(Me==null||Me.blur());}}}),f__namespace.useEffect(function(){d&&se.current.focus(0);},[]);var yt=f__namespace.useMemo(function(){return {min:ve,max:re,direction:ce,disabled:l,keyboard:u,step:he,included:L,includedStart:bt,includedEnd:nn,range:C,tabIndex:ae,ariaLabelForHandle:de,ariaLabelledByForHandle:pe,ariaValueTextFormatterForHandle:te}},[ve,re,ce,l,u,he,L,bt,nn,C,ae,de,pe,te]);return f__namespace.createElement(mi.Provider,{value:yt},f__namespace.createElement("div",{ref:ue,className:X(o,i,(n={},V(n,"".concat(o,"-disabled"),l),V(n,"".concat(o,"-vertical"),A),V(n,"".concat(o,"-horizontal"),!A),V(n,"".concat(o,"-with-marks"),xe.length),n)),style:a,onMouseDown:Le},f__namespace.createElement("div",{className:"".concat(o,"-rail"),style:W}),f__namespace.createElement(tz,{prefixCls:o,style:U,values:Ie,startPoint:B,onStartMove:Ae?oe:null}),f__namespace.createElement(iz,{prefixCls:o,marks:xe,dots:Z,style:K,activeStyle:q}),f__namespace.createElement(Q4,{ref:se,prefixCls:o,style:z,values:le,draggingIndex:Ft,onStartMove:oe,onOffsetChange:Oe,onFocus:h,onBlur:v,handleRender:J}),f__namespace.createElement(rz,{prefixCls:o,marks:xe,onClick:Se})))});const lz=f__namespace.forwardRef((e,t)=>{const{open:n}=e,r=f.useRef(null),o=f.useRef(null);function i(){St.cancel(o.current),o.current=null;}function a(){o.current=St(()=>{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(iu,Object.assign({ref:Pn(r,t)},e))}),cz=lz,uz=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"}}})}},zS=(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}}},dz=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},zS(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},fz=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},zS(e,!1)),{height:"100%"})}},hz=mn("Slider",e=>{const t=Lt(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [uz(t),dz(t),fz(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 vz=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const pz=e=>typeof e=="number"?e.toString():"",mz=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,tooltipPrefixCls:a,tipFormatter:s,tooltipVisible:l,getTooltipPopupContainer:c,tooltipPlacement:u}=e,d=vz(e,["prefixCls","range","className","rootClassName","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:h,direction:v,getPopupContainer:p}=f__namespace.useContext(pt),[m,g]=f__namespace.useState({}),b=(R,I)=>{g(O=>Object.assign(Object.assign({},O),{[R]:I}));},y=(R,I)=>R||(I?v==="rtl"?"left":"right":"top"),S=h("slider",n),[$,w]=hz(S),C=X(o,i,{[`${S}-rtl`]:v==="rtl"},w);v==="rtl"&&!d.vertical&&(d.reverse=!d.reverse);const[x,_]=f__namespace.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),T=(R,I)=>{var O;const{index:P,dragging:E}=I,{tooltip:M={},vertical:N}=e,A=Object.assign({},M),{open:D,placement:L,getPopupContainer:B,prefixCls:U,formatter:z}=A;let W;z||z===null?W=z:s||s===null?W=s:W=pz;const K=W?m[P]||E:!1,q=(O=D??l)!==null&&O!==void 0?O:D===void 0&&K,Y=Object.assign(Object.assign({},R.props),{onMouseEnter:()=>b(P,!0),onMouseLeave:()=>b(P,!1)}),Z=h("tooltip",U??a);return f__namespace.createElement(cz,{prefixCls:Z,title:W?W(I.value):"",open:q,placement:y(L??u,N),key:P,overlayClassName:`${S}-tooltip`,getPopupContainer:B||c||p},f__namespace.cloneElement(R,Y))};return $(f__namespace.createElement(sz,Object.assign({},d,{step:d.step,range:x,draggableTrack:_,className:C,ref:t,prefixCls:S,handleRender:T})))}),gz=mz;function bz(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Cl=(e,t,n)=>{const r=bz(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`]}}},yz=e=>Y0(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"}}}}),Cz=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}}},jS=mn("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=Lt(e,{tagFontSize:a,tagLineHeight:s,tagDefaultBg:l,tagDefaultColor:c,tagIconSize:o-2*r,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [Cz(u),yz(u),Cl(u,"success","Success"),Cl(u,"processing","Info"),Cl(u,"error","Error"),Cl(u,"warning","Warning")]});var Sz=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wz=e=>{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=Sz(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=f__namespace.useContext(pt),l=v=>{o==null||o(!r),i==null||i(v);},c=s("tag",t),[u,d]=jS(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})))},xz=wz;var $z=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ez=(e,t)=>{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=$z(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:p,direction:m}=f__namespace.useContext(pt),[g,b]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in v&&b(v.visible);},[v.visible]);const y=vC(l)||ik(l),S=Object.assign({backgroundColor:l&&!y?l:void 0},i),$=p("tag",n),[w,C]=jS($),x=X($,{[`${$}-${l}`]:y,[`${$}-has-color`]:l&&!y,[`${$}-hidden`]:!g,[`${$}-rtl`]:m==="rtl",[`${$}-borderless`]:!h},r,o,C),_=E=>{E.stopPropagation(),c==null||c(E),!E.defaultPrevented&&b(!1);},T=f__namespace.useMemo(()=>d?u?f__namespace.createElement("span",{className:`${$}-close-icon`,onClick:_},u):f__namespace.createElement(Gh,{className:`${$}-close-icon`,onClick:_}):null,[d,u,$,_]),R=typeof v.onClick=="function"||a&&a.type==="a",I=s||null,O=I?f__namespace.createElement(f__namespace.Fragment,null,I,f__namespace.createElement("span",null,a)):a,P=f__namespace.createElement("span",Object.assign({},v,{ref:t,className:x,style:S}),O,T);return w(R?f__namespace.createElement(xy,null,P):P)},HS=f__namespace.forwardRef(Ez);HS.CheckableTag=xz;const Ma=HS;var vu={},BS={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;})(BS);var Pv=BS.exports,pu={};Object.defineProperty(pu,"__esModule",{value:!0});pu.default=void 0;var Oz={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:"页码"};pu.default=Oz;var mu={},Vs={},gu={};Object.defineProperty(gu,"__esModule",{value:!0});gu.default=void 0;var Pz={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:"下一世纪"},_z=Pz;gu.default=_z;var Us={};Object.defineProperty(Us,"__esModule",{value:!0});Us.default=void 0;const Rz={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var Mz=Rz;Us.default=Mz;var WS=Pv.default;Object.defineProperty(Vs,"__esModule",{value:!0});Vs.default=void 0;var Tz=WS(gu),Iz=WS(Us);const VS={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Tz.default),timePickerLocale:Object.assign({},Iz.default)};VS.lang.ok="确定";var Nz=VS;Vs.default=Nz;var Az=Pv.default;Object.defineProperty(mu,"__esModule",{value:!0});mu.default=void 0;var Dz=Az(Vs),kz=Dz.default;mu.default=kz;var bu=Pv.default;Object.defineProperty(vu,"__esModule",{value:!0});vu.default=void 0;var Lz=bu(pu),Fz=bu(mu),zz=bu(Vs),jz=bu(Us);const Hn="${label}不是一个有效的${type}",Hz={locale:"zh-cn",Pagination:Lz.default,DatePicker:zz.default,TimePicker:jz.default,Calendar:Fz.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:Hn,method:Hn,array:Hn,object:Hn,number:Hn,date:Hn,boolean:Hn,integer:Hn,float:Hn,regexp:Hn,email:Hn,url:Hn,hex:Hn},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 Bz=Hz;vu.default=Bz;var Wz=vu;const Vz=Gr(Wz);var _v={},Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});Ln.DEFAULT_ICON_CONFIGS=void 0;Ln.IconConverter=KS;Ln.IconProvider=void 0;Ln.IconWrapper=Qz;var Nl=Uz(f);function US(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return (US=function(r){return r?n:t})(e)}function Uz(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return {default:e};var n=US(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 Gz=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function Hg(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 Bg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hg(Object(n),!0).forEach(function(r){Kz(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Kz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xz(e,t){if(e==null)return {};var n=qz(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function qz(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var GS={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"};Ln.DEFAULT_ICON_CONFIGS=GS;function Yz(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function KS(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 XS=(0, Nl.createContext)(GS),Zz=XS.Provider;Ln.IconProvider=Zz;function Qz(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=Xz(r,Gz),v=(0, Nl.useContext)(XS),p=(0, Nl.useMemo)(Yz,[]),m=KS(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),Nl.default.createElement("span",Bg(Bg({},h),{},{className:g.join(" ")}),n(m))}}Object.defineProperty(_v,"__esModule",{value:!0});var qS=_v.default=void 0,xd=ej(f),Jz=Ln;function ej(e){return e&&e.__esModule?e:{default:e}}var tj=(0, Jz.IconWrapper)("close",!1,function(e){return xd.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},xd.default.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),xd.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});qS=_v.default=tj;var Rv={};Object.defineProperty(Rv,"__esModule",{value:!0});var YS=Rv.default=void 0,$d=rj(f),nj=Ln;function rj(e){return e&&e.__esModule?e:{default:e}}var oj=(0, nj.IconWrapper)("config",!1,function(e){return $d.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},$d.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}),$d.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}))});YS=Rv.default=oj;var Mv={};Object.defineProperty(Mv,"__esModule",{value:!0});var ZS=Mv.default=void 0,Ta=aj(f),ij=Ln;function aj(e){return e&&e.__esModule?e:{default:e}}var sj=(0, ij.IconWrapper)("distraught-face",!1,function(e){return Ta.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Ta.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}),Ta.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}),Ta.default.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Ta.default.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});ZS=Mv.default=sj;var Tv={};Object.defineProperty(Tv,"__esModule",{value:!0});var QS=Tv.default=void 0,Ia=cj(f),lj=Ln;function cj(e){return e&&e.__esModule?e:{default:e}}var uj=(0, lj.IconWrapper)("info",!0,function(e){return Ia.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Ia.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}),Ia.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]}),Ia.default.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Ia.default.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});QS=Tv.default=uj;var Iv={};Object.defineProperty(Iv,"__esModule",{value:!0});var JS=Iv.default=void 0,Ed=fj(f),dj=Ln;function fj(e){return e&&e.__esModule?e:{default:e}}var hj=(0, dj.IconWrapper)("loading",!0,function(e){return Ed.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Ed.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}),Ed.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}))});JS=Iv.default=hj;var Nv={};Object.defineProperty(Nv,"__esModule",{value:!0});var e1=Nv.default=void 0,Rr=pj(f),vj=Ln;function pj(e){return e&&e.__esModule?e:{default:e}}var mj=(0, vj.IconWrapper)("loading-three",!1,function(e){return Rr.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Rr.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}),Rr.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});e1=Nv.default=mj;var Av={};Object.defineProperty(Av,"__esModule",{value:!0});var t1=Av.default=void 0,Od=bj(f),gj=Ln;function bj(e){return e&&e.__esModule?e:{default:e}}var yj=(0, gj.IconWrapper)("return",!0,function(e){return Od.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Od.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Od.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}))});t1=Av.default=yj;const Cj={Close:qS,Config:YS,DistraughtFace:ZS,Return:t1,Loading:JS,LoadingThree:e1,Info:QS};function go({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24);const i=Wc();r||(r=i?"#fff":"#333");const a=Cj[e];return j(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}function ir({configKey:e,label:t,className:n,extraAction:r,tooltip:o}){const a=!!Cr()[e],s=f.useCallback(c=>{const u=c.target.checked;ra({[e]:u}),r==null||r(u);},[]);let l=t||e;return o&&(l=j(iu,{title:o,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),j(M3,{className:n,checked:a,onChange:s,children:l})}var Sj={name:"1qkltea",styles:"margin-left:5px"};const wj=function(){const e=Sj;return be(sn,{children:[j(ir,{configKey:"initialShowMore",label:"自动查看更多",css:e}),j(ir,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function xj({tooltip:e,iconStyle:t,iconSize:n}){return j(sn,{children:e&&j(a1,{title:e,children:j(go,{style:{cursor:"pointer",marginLeft:"4px",...t},name:"Info",size:n})})})}function ar(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ja(t)}const $j=[{id:"green",name:"绿意盎然",isDark:!1,isCustom:!1,colorPrimary:"rgb(77, 175, 124)",colorTheme:"rgb(77, 175, 124)"},{id:"blue",name:"蓝田生玉",isDark:!1,isCustom:!1,colorPrimary:"rgb(52, 152, 219)",colorTheme:"rgb(52, 152, 219)"},{id:"blue_plus",name:"蛋雅深蓝",isDark:!1,isCustom:!1,colorPrimary:"rgb(77, 131, 175)",colorTheme:"rgb(77, 131, 175)"},{id:"orange",name:"橙黄橘绿",isDark:!1,isCustom:!1,colorPrimary:"rgb(245, 171, 53)",colorTheme:"rgb(245, 171, 53)"},{id:"red",name:"热情似火",isDark:!1,isCustom:!1,colorPrimary:"rgb(214, 69, 65)",colorTheme:"rgb(214, 69, 65)"},{id:"pink",name:"粉装玉琢",isDark:!1,isCustom:!1,colorPrimary:"rgb(241, 130, 141)",colorTheme:"rgb(241, 130, 141)"},{id:"purple",name:"重斤球紫",isDark:!1,isCustom:!1,colorPrimary:"rgb(155, 89, 182)",colorTheme:"rgb(155, 89, 182)"},{id:"grey",name:"灰常美丽",isDark:!1,isCustom:!1,colorPrimary:"rgb(108, 122, 137)",colorTheme:"rgb(108, 122, 137)"},{id:"ming",name:"青出于黑",isDark:!1,isCustom:!1,colorPrimary:"rgb(51, 110, 123)",colorTheme:"rgb(51, 110, 123)"},{id:"blue2",name:"清热板蓝",isDark:!1,isCustom:!1,colorPrimary:"rgb(79, 98, 208)",colorTheme:"rgb(79, 98, 208)"},{id:"black",name:"黑灯瞎火",isDark:!0,isCustom:!1,colorPrimary:"rgb(150, 150, 150)",colorTheme:"rgb(59,59,59)"},{id:"mid_autumn",name:"月里嫦娥",isDark:!1,isCustom:!1,colorPrimary:"rgb(74, 55, 82)",colorTheme:"rgb(74, 55, 82)"},{id:"naruto",name:"木叶之村",isDark:!1,isCustom:!1,colorPrimary:"rgb(87, 144, 167)",colorTheme:"rgb(87, 144, 167)"},{id:"china_ink",name:"近墨者黑",isDark:!1,isCustom:!1,colorPrimary:"rgba(47, 47, 47, 1)",colorTheme:"rgba(47, 47, 47, 1)"},{id:"happy_new_year",name:"新年快乐",isDark:!1,isCustom:!1,colorPrimary:"rgb(192, 57, 43)",colorTheme:"rgb(192, 57, 43)"}],ca={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},Dv={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function Ej(e,t){return t.split(`
`).map(n=>n.trim()).filter(Boolean).map(n=>{const[r,o]=n.split(" ").filter(Boolean);return {id:e+":"+o,name:o,colorPrimary:r}})}const n1="UP长期洗涤",Oj=Ej(n1,`
#0545b2 理想之蓝
#f4cd00 柠檬黄
#ef2729 石榴红
#f89c00 鹿箭
#233728 黛绿
#f2b9b7 和熙粉
#f3cc91 芝士黄
#6b4c68 葡萄紫
#ff7227 落日橙
#004d62 碧海天
#23909b 洗碧空
#aeb400 芥丝绿
#425a17 箬叶青
#002FA7 克莱因蓝
#003153 普鲁士蓝
#01847F 马尔斯绿
#FBD26A 申布伦黄
#470024 勃艮第红
#492D22 凡戴克棕
`),Pd={name:"1wbll7q",styles:"text-decoration:underline"},r1=[{name:"App",themes:[ca,{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500FF"},Dv]},{name:"LX Themes",themes:$j,tooltip:be(sn,{children:["提取自"," ",j("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",css:Pd,children:"lx-music-desktop"}),j("br",{}),"Apache License 2.0"]})},{name:n1,themes:Oj,tooltip:be(sn,{children:["提取自"," ",j("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",css:Pd,children:"BV1g3411u7Lg"})," ","&"," ",j("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",css:Pd,children:"BV1xu411q7sU"})]})}],o1=r1.map(e=>e.themes).flat();function Pj(){const e=o1.find(t=>t.id===(mt.theme||ca.id))||ca;return e.id===Dv.id&&mt.colorPickerThemeSelectedColor&&(e.colorPrimary=mt.colorPickerThemeSelectedColor),e}function ma(){let{theme:e,colorPickerThemeSelectedColor:t}=Cr();return e||(e=ca.id),f.useMemo(()=>{const n=o1.find(r=>r.id===e)||ca;return n.id===Dv.id&&t&&(n.colorPrimary=t),n},[e,t])}var _j={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},Rj={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},Mj={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function Tj(){const e=ma().id,{colorPickerThemeSelectedColor:t}=Cr(),[n,r]=f.useState(t||ca.colorPrimary),o=f.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return j("div",{children:r1.map(({name:i,themes:a,tooltip:s})=>be(f.Fragment,{children:[be("div",{css:Mj,children:[i,j(xj,{tooltip:s,iconSize:22})]}),j("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:a.map(l=>{const c=e===l.id,u=l.isCustom,d=j("div",{className:"preview",css:ar("width:100%;height:100%;background-color:",u?o:l.colorPrimary,";border-radius:5px;","")});let h=j("div",{className:"preview-wrapper",css:[Rj,c&&ar("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(h=j(W4,{value:n,onChange:v=>r(v),onOpenChange:v=>{v||ra({colorPickerThemeSelectedColor:o});},children:h})),be("div",{css:_j,onClick:v=>{ra({theme:l.id});},children:[h,l.name]},l.id)})})]},i))})}function i1({children:e}){const t=Wc(),{colorPrimary:n}=ma();return j(Wh,{locale:Vz,theme:{algorithm:t?cc.darkAlgorithm:cc.defaultAlgorithm,token:{colorPrimary:n,zIndexPopupBase:11e3}},children:e})}function a1(e){return j(iu,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}var kv={exports:{}};const Ij=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),Wg=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},Vg=({clearTimeout:e,setTimeout:t,willResolve:n})=>(r,{value:o,signal:i}={})=>{if(i&&i.aborted)return Promise.reject(Wg());let a,s,l;const c=e||clearTimeout,u=()=>{c(a),l(Wg());},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},s1=e=>{const t=Vg({...e,willResolve:!0});return t.reject=Vg({...e,willResolve:!1}),t.range=(n,r,o)=>t(Ij(n,r),o),t},Lv=s1();Lv.createWithTimers=s1;kv.exports=Lv;kv.exports.default=Lv;var Nj=kv.exports;const yu=Gr(Nj),Aj=10*1e3,Dj=200;async function l1(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const a=performance.now()+Aj;for(;!r.length&&performance.now()<a;)await yu(Dj),o();if(!r.length){console.warn(`[${Lo}]: tryAction timeout, selector = %s`,e);return}for(const s of r)await Promise.resolve(t(s));}async function Al(e,t,n){return typeof n=="number"&&await yu(n),l1(e,r=>r.remove(),t)}function Cu(){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 Su,Ug=Ji;Su=Ug.createRoot,Ug.hydrateRoot;function Gg(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Kg(e,t,n){var r=[],o=bh(e,r,n);return r.length<2?n:o+t(r)}var kj=function(t){var n=Cb(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;u<l;u++)c[u]=arguments[u];var d=ja(c,n.registered,void 0);return Ob(n,d,!1),n.key+"-"+d.name},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=ja(c,n.registered),h="animation-"+d.name;return Gg(n,{name:d.name,styles:"@keyframes "+h+"{"+d.styles+"}"}),h},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=ja(c,n.registered);Gg(n,d);},a=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return Kg(n.registered,r,Lj(c))};return {css:r,cx:a,injectGlobal:i,keyframes:o,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0;});},flush:function(){n.registered={},n.inserted={},n.sheet.flush();},sheet:n.sheet,cache:n,getRegisteredStyles:bh.bind(null,n.registered),merge:Kg.bind(null,n.registered,r)}},Lj=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else {i="";for(var a in o)o[a]&&a&&(i&&(i+=" "),i+=a);}break}default:i=o;}i&&(n&&(n+=" "),n+=i);}}return n},Fj=kj({key:"css"}),Xg=Fj.css,c1=function(e){return function(t,n){var r=f.useRef(!1);e(function(){return function(){r.current=!1;}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n);}},br=function(){return br=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);}return t},br.apply(this,arguments)};function u1(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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function zj(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i);})}return new(n||(n=Promise))(function(i,a){function s(u){try{c(r.next(u));}catch(d){a(d);}}function l(u){try{c(r.throw(u));}catch(d){a(d);}}function c(u){u.done?i(u.value):o(u.value).then(s,l);}c((r=r.apply(e,t||[])).next());})}function jj(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n);}catch(u){c=[6,u],o=0;}finally{r=i=0;}if(c[0]&5)throw c[1];return {value:c[0]?c[1]:void 0,done:!0}}}function Xf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=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 Yt(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<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ga=function(e){return typeof e=="function"},Hj=function(e){return typeof e=="string"},d1=function(e){return typeof e=="number"};function Nt(e){var t=f.useRef(e);t.current=f.useMemo(function(){return e},[e]);var n=f.useRef();return n.current||(n.current=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.current.apply(this,r)}),n.current}const vc=c1(f.useEffect);var f1=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?!0:r,i=t.defaultParams,a=i===void 0?[]:i,s=t.refreshDeps,l=s===void 0?[]:s,c=t.refreshDepsAction,u=f.useRef(!1);return u.current=!1,vc(function(){!n&&o&&(u.current=!0,e.run.apply(e,On([],Yt(a),!1)));},[o]),vc(function(){u.current||n||(u.current=!0,c?c():e.refresh());},On([],Yt(l),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};f1.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const Wj=f1;function qf(e,t){if(e===t)return !0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return !1;return !0}function h1(e,t){var n=f.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!qf(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function ys(e){var t=f.useRef(e);return t.current=e,t}var Vj=function(e){var t=ys(e);f.useEffect(function(){return function(){t.current();}},[]);};const Gs=Vj;var Dl=new Map,Uj=function(e,t,n){var r=Dl.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){Dl.delete(e);},t)),Dl.set(e,br(br({},n),{timer:o}));},Gj=function(e){return Dl.get(e)},kl=new Map,Kj=function(e){return kl.get(e)},Xj=function(e,t){kl.set(e,t),t.then(function(n){return kl.delete(e),n}).catch(function(){kl.delete(e);});},Qo={},qj=function(e,t){Qo[e]&&Qo[e].forEach(function(n){return n(t)});},_d=function(e,t){return Qo[e]||(Qo[e]=[]),Qo[e].push(t),function(){var r=Qo[e].indexOf(t);Qo[e].splice(r,1);}},Yj=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):Uj(v,o,p),qj(v,p.data);},h=function(v,p){return p===void 0&&(p=[]),l?l(p):Gj(v)};return h1(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=_d(n,function(p){e.setState({data:p});});}},[]),Gs(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=Kj(n);return m&&m!==u.current?{servicePromise:m}:(m=v.apply(void 0,On([],Yt(p),!1)),u.current=m,Xj(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=_d(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=_d(n,function(m){e.setState({data:m});}));}}:{}};const Zj=Yj;var Qj=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=qb(function(c){c();},n,s),e.runAsync=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new Promise(function(d,h){var v;(v=a.current)===null||v===void 0||v.call(a,function(){l.apply(void 0,On([],Yt(c),!1)).then(d).catch(h);});})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=l;}}},[n,s]),n?{onCancel:function(){var l;(l=a.current)===null||l===void 0||l.cancel();}}:{}};const Jj=Qj;var e6=function(e,t){var n=t.loadingDelay,r=t.ready,o=f.useRef();if(!n)return {};var i=function(){o.current&&clearTimeout(o.current);};return {onBefore:function(){return i(),r!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0});},n)),{loading:!1}},onFinally:function(){i();},onCancel:function(){i();}}};const t6=e6;var n6=!!(typeof window<"u"&&window.document&&window.document.createElement);const Ks=n6;function Fv(){return Ks?document.visibilityState!=="hidden":!0}var Za=[];function r6(e){return Za.push(e),function(){var n=Za.indexOf(e);Za.splice(n,1);}}if(Ks){var o6=function(){if(Fv())for(var e=0;e<Za.length;e++){var t=Za[e];t();}};window.addEventListener("visibilitychange",o6,!1);}var i6=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,o=r===void 0?!0:r,i=t.pollingErrorRetryCount,a=i===void 0?-1:i,s=f.useRef(),l=f.useRef(),c=f.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l);};return vc(function(){n||u();},[n]),n?{onBefore:function(){u();},onError:function(){c.current+=1;},onSuccess:function(){c.current=0;},onFinally:function(){a===-1||a!==-1&&c.current<=a?s.current=setTimeout(function(){!o&&!Fv()?l.current=r6(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){u();}}:{}};const a6=i6;function s6(e,t){var n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n||(n=!0,e.apply(void 0,On([],Yt(r),!1)),setTimeout(function(){n=!1;},t));}}function l6(){return Ks&&typeof navigator.onLine<"u"?navigator.onLine:!0}var Qa=[];function c6(e){return Qa.push(e),function(){var n=Qa.indexOf(e);n>-1&&Qa.splice(n,1);}}if(Ks){var qg=function(){if(!(!Fv()||!l6()))for(var e=0;e<Qa.length;e++){var t=Qa[e];t();}};window.addEventListener("visibilitychange",qg,!1),window.addEventListener("focus",qg,!1);}var u6=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,i=f.useRef(),a=function(){var s;(s=i.current)===null||s===void 0||s.call(i);};return f.useEffect(function(){if(n){var s=s6(e.refresh.bind(e),o);i.current=c6(function(){s();});}return function(){a();}},[n,o]),Gs(function(){a();}),{}};const d6=u6;var f6=function(e,t){var n=t.retryInterval,r=t.retryCount,o=f.useRef(),i=f.useRef(0),a=f.useRef(!1);return r?{onBefore:function(){a.current||(i.current=0),a.current=!1,o.current&&clearTimeout(o.current);},onSuccess:function(){i.current=0;},onError:function(){if(i.current+=1,r===-1||i.current<=r){var s=n??Math.min(1e3*Math.pow(2,i.current),3e4);o.current=setTimeout(function(){a.current=!0,e.refresh();},s);}else i.current=0;},onCancel:function(){i.current=0,o.current&&clearTimeout(o.current);}}:{}};const h6=f6;var v6=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,i=f.useRef(),a={};return r!==void 0&&(a.leading=r),o!==void 0&&(a.trailing=o),f.useEffect(function(){if(n){var s=e.runAsync.bind(e);return i.current=i_(function(l){l();},n,a),e.runAsync=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new Promise(function(u,d){var h;(h=i.current)===null||h===void 0||h.call(i,function(){s.apply(void 0,On([],Yt(l),!1)).then(u).catch(d);});})},function(){var l;e.runAsync=s,(l=i.current)===null||l===void 0||l.cancel();}}},[n,r,o]),n?{onCancel:function(){var s;(s=i.current)===null||s===void 0||s.cancel();}}:{}};const p6=v6;var m6=function(e){f.useEffect(function(){e==null||e();},[]);};const zv=m6;var g6=function(){var e=Yt(f.useState({}),2),t=e[1];return f.useCallback(function(){return t({})},[])};const b6=g6;var y6=function(){function e(t,n,r,o){o===void 0&&(o={}),this.serviceRef=t,this.options=n,this.subscribe=r,this.initState=o,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=br(br(br({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=br(br({},this.state),t),this.subscribe();},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.pluginImpls.map(function(i){var a;return (a=i[t])===null||a===void 0?void 0:a.call.apply(a,On([i],Yt(n),!1))}).filter(Boolean);return Object.assign.apply(Object,On([{}],Yt(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,i,a,s,l,c,u,d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];return zj(this,void 0,void 0,function(){var v,p,m,g,b,y,S,$,w,C,x;return jj(this,function(_){switch(_.label){case 0:if(this.count+=1,v=this.count,p=this.runPluginHandler("onBefore",d),m=p.stopNow,g=m===void 0?!1:m,b=p.returnNow,y=b===void 0?!1:b,S=u1(p,["stopNow","returnNow"]),g)return [2,new Promise(function(){})];if(this.setState(br({loading:!0,params:d},S)),y)return [2,Promise.resolve(S.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),_.label=1;case 1:return _.trys.push([1,3,,4]),$=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,$||($=(x=this.serviceRef).current.apply(x,On([],Yt(d),!1))),[4,$];case 2:return w=_.sent(),v!==this.count?[2,new Promise(function(){})]:(this.setState({data:w,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,w,d),this.runPluginHandler("onSuccess",w,d),(a=(i=this.options).onFinally)===null||a===void 0||a.call(i,d,w,void 0),v===this.count&&this.runPluginHandler("onFinally",d,w,void 0),[2,w]);case 3:if(C=_.sent(),v!==this.count)return [2,new Promise(function(){})];throw this.setState({error:C,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,C,d),this.runPluginHandler("onError",C,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,C),v===this.count&&this.runPluginHandler("onFinally",d,void 0,C),C;case 4:return [2]}})})},e.prototype.run=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.runAsync.apply(this,On([],Yt(n),!1)).catch(function(o){t.options.onError||console.error(o);});},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel");},e.prototype.refresh=function(){this.run.apply(this,On([],Yt(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,On([],Yt(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=ga(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const C6=y6;function S6(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,i=u1(t,["manual"]);var a=br({manual:o},i),s=ys(e),l=b6(),c=h1(function(){var u=n.map(function(d){var h;return (h=d==null?void 0:d.onInit)===null||h===void 0?void 0:h.call(d,a)}).filter(Boolean);return new C6(s,a,l,Object.assign.apply(Object,On([{}],Yt(u),!1)))},[]);return c.options=a,c.pluginImpls=n.map(function(u){return u(c,a)}),zv(function(){if(!o){var u=c.state.params||t.defaultParams||[];c.run.apply(c,On([],Yt(u),!1));}}),Gs(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:Nt(c.cancel.bind(c)),refresh:Nt(c.refresh.bind(c)),refreshAsync:Nt(c.refreshAsync.bind(c)),run:Nt(c.run.bind(c)),runAsync:Nt(c.runAsync.bind(c)),mutate:Nt(c.mutate.bind(c))}}function v1(e,t,n){return S6(e,t,On(On([],Yt(n||[]),!1),[Jj,t6,a6,d6,p6,Wj,Zj,h6],!1))}function p1(e,t){e===void 0&&(e=!1);var n=Yt(f.useState(e),2),r=n[0],o=n[1],i=f.useMemo(function(){var a=t===void 0?!e:t,s=function(){return o(function(d){return d===e?a:e})},l=function(d){return o(d)},c=function(){return o(e)},u=function(){return o(a)};return {toggle:s,set:l,setLeft:c,setRight:u}},[]);return [r,i]}function w6(e){e===void 0&&(e=!1);var t=Yt(p1(!!e),2),n=t[0],r=t[1],o=r.toggle,i=r.set,a=f.useMemo(function(){var s=function(){return i(!0)},l=function(){return i(!1)};return {toggle:o,set:function(c){return i(!!c)},setTrue:s,setFalse:l}},[]);return [n,a]}function xu(e,t){if(Ks){if(!e)return t;var n;return ga(e)?n=e():"current"in e?n=e.current:n=e,n}}var x6=function(e){var t=function(n,r,o){var i=f.useRef(!1),a=f.useRef([]),s=f.useRef([]),l=f.useRef();e(function(){var c,u=Array.isArray(o)?o:[o],d=u.map(function(h){return xu(h)});if(!i.current){i.current=!0,a.current=d,s.current=r,l.current=n();return}(d.length!==a.current.length||!qf(d,a.current)||!qf(r,s.current))&&((c=l.current)===null||c===void 0||c.call(l),a.current=d,s.current=r,l.current=n());}),Gs(function(){var c;(c=l.current)===null||c===void 0||c.call(l),i.current=!1;});};return t};const $6=x6;var E6=$6(f.useEffect);const m1=E6;function ui(e,t,n){n===void 0&&(n={});var r=ys(t);m1(function(){var o=xu(n.target,window);if(o!=null&&o.addEventListener){var i=function(a){return r.current(a)};return o.addEventListener(e,i,{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,i,{capture:n.capture});}}},[e,n.capture,n.once,n.passive],n.target);}function Ll(e){var t=Yt(f.useState(e),2),n=t[0],r=t[1],o=f.useRef(n);o.current=n;var i=f.useCallback(function(){return o.current},[]);return [n,r,i]}const Rd=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,i=n.onChange,a=Yt(w6(!1),2),s=a[0],l=a[1],c=l.setTrue,u=l.setFalse;return ui("mouseenter",function(){r==null||r(),c(),i==null||i(!0);},{target:e}),ui("mouseleave",function(){o==null||o(),u(),i==null||i(!1);},{target:e}),s};var O6=function(e,t){return t===void 0&&(t=[]),QP(e,t)},P6=function(e,t,n){var r=f.useRef(),o=f.useRef(0);O6(t,r.current)||(r.current=t,o.current+=1),m1(e,[o.current],n);};const _6=P6;var R6=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const M6=R6;var g1={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,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,leftwindowkey:91,rightwindowkey:92,meta:M6?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide: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,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},Yf={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?g1.meta.includes(e.keyCode):e.metaKey}};function T6(e){var t=Object.keys(Yf).reduce(function(n,r){return Yf[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function Yg(e,t,n){var r,o;if(!e.key)return !1;if(d1(t))return e.keyCode===t;var i=t.split("."),a=0;try{for(var s=Xf(i),l=s.next();!l.done;l=s.next()){var c=l.value,u=Yf[c],d=g1[c.toLowerCase()];(u&&u(e)||d&&d===e.keyCode)&&a++;}}catch(h){r={error:h};}finally{try{l&&!l.done&&(o=s.return)&&o.call(s);}finally{if(r)throw r.error}}return n?a===i.length&&T6(e)===i.length:a===i.length}function I6(e,t){return ga(e)?e:Hj(e)||d1(e)?function(n){return Yg(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return Yg(n,r,t)})}:function(){return !!e}}var N6=["keydown"];function ln(e,t,n){var r=n||{},o=r.events,i=o===void 0?N6:o,a=r.target,s=r.exactMatch,l=s===void 0?!1:s,c=r.useCapture,u=c===void 0?!1:c,d=ys(t),h=ys(e);_6(function(){var v,p,m,g=xu(a,window);if(g){var b=function(w){var C,x=I6(h.current,l);if(x(w))return (C=d.current)===null||C===void 0?void 0:C.call(d,w)};try{for(var y=Xf(i),S=y.next();!S.done;S=y.next()){var $=S.value;(m=g==null?void 0:g.addEventListener)===null||m===void 0||m.call(g,$,b,u);}}catch(w){v={error:w};}finally{try{S&&!S.done&&(p=y.return)&&p.call(y);}finally{if(v)throw v.error}}return function(){var w,C,x;try{for(var _=Xf(i),T=_.next();!T.done;T=_.next()){var R=T.value;(x=g==null?void 0:g.removeEventListener)===null||x===void 0||x.call(g,R,b,u);}}catch(I){w={error:I};}finally{try{T&&!T.done&&(C=_.return)&&C.call(_);}finally{if(w)throw w.error}}}}},[i],a);}function b1(e){var t=f.useRef(0),n=Yt(f.useState(e),2),r=n[0],o=n[1],i=f.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(a);});},[]);return Gs(function(){cancelAnimationFrame(t.current);}),[r,i]}var A6={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN};const D6=function(e){var t=Yt(b1(A6),2),n=t[0],r=t[1];return ui("mousemove",function(o){var i=o.screenX,a=o.screenY,s=o.clientX,l=o.clientY,c=o.pageX,u=o.pageY,d={screenX:i,screenY:a,clientX:s,clientY:l,pageX:c,pageY:u,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},h=xu(e);if(h){var v=h.getBoundingClientRect(),p=v.left,m=v.top,g=v.width,b=v.height;d.elementPosX=p+window.pageXOffset,d.elementPosY=m+window.pageYOffset,d.elementX=c-d.elementPosX,d.elementY=u-d.elementPosY,d.elementW=g,d.elementH=b;}r(d);},{target:function(){return document}}),n};var k6=function(){var e=f.useRef(!1);return f.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const L6=k6,F6=c1(f.useLayoutEffect),z6="_modal-mask_1isor_1",j6="_modal_1isor_1",H6="_modal-header_1isor_23",B6="_modal-body_1isor_30",W6="_modal-title_1isor_35",V6="_btn-close_1isor_42",yr={modalMask:z6,modal:j6,modalHeader:H6,modalBody:B6,modalTitle:W6,btnClose:V6};let Fa=0;const U6=()=>{Fa++,document.body.style.overflow="hidden";},G6=()=>{Fa--,Fa<0&&(Fa=0),Fa===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?U6():G6();},[e]);const u=f.useRef(null),d=Wc(),{bg:h,c:v}=f.useMemo(()=>{const y=window.getComputedStyle(document.body)["background-color"],S=window.getComputedStyle(document.body).color;return {bg:y,c:S}},[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=Nt(y=>{var $;const S=y.target;($=u.current)!=null&&$.contains(S)||S.closest('.ant-tooltip-inner[role="tooltip"]')||S.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return ln("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?Ji.createPortal(j("div",{className:X(yr.modalMask,o),style:r,onClick:b,children:j("div",{className:X(yr.modal,a),style:{...p,width:s,...i},ref:u,children:n})}),g):null}const Hv=e=>j(go,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),K6="_toast-container_185m9_1",X6="_single-line_185m9_17";function kn(e,t=2e3){const n=document.createElement("div");n.className=K6,n.innerText=e;const{colorPrimary:r}=Pj();n.style.backgroundColor=r,!e.includes(`
`)&&!e.includes("<br")&&n.classList.add(X6),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const q6="请求失败, 请重试 !!!",Y6="操作失败, 请重试 !!!";function y1(){return kn(q6)}function C1(){return kn(Y6)}function Z6(e){const t=_s({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 S1="27eb53fc9058f8c3";async function Q6(){var c,u;const t=(await uh.get("https://passport.bilibili.com/login/app/third",{params:{appkey:S1,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 J6(){const e=await Q6();if(!e.access_key)return kn(e.errmsg||"");const t=e.access_key;return mt.accessKey=t,kn("获取成功"),t}function eH(){mt.accessKey="",kn("已删除 access_key");}const w1="https://api.bilibili.com",x1="https://app.bilibili.com",$u=uh.create({baseURL:w1});$u.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 Eu=uh.create({adapter:_w});Eu.interceptors.request.use(function(e){return e.params={appkey:S1,access_key:mt.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});Eu.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 tH(){var t;const e=(t=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/))==null?void 0:t[1];if(!e)throw kn("找不到 csrf token, 请检查是否登录(不可用)"),new Error("找不到 csrf token, 请检查是否登录(不可用)");return e}const Na=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,$1=new Set,Zf=typeof process=="object"&&process?process:{},E1=(e,t,n,r)=>{typeof Zf.emitWarning=="function"?Zf.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`);};let pc=globalThis.AbortController,Zg=globalThis.AbortSignal;var ab;if(typeof pc>"u"){Zg=class{constructor(){Ot(this,"onabort");Ot(this,"_onabort",[]);Ot(this,"reason");Ot(this,"aborted",!1);}addEventListener(r,o){this._onabort.push(o);}},pc=class{constructor(){Ot(this,"signal",new Zg);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=((ab=Zf.env)==null?void 0:ab.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const t=()=>{e&&(e=!1,E1("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 nH=e=>!$1.has(e),$o=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),O1=e=>$o(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Fl:null:null;class Fl extends Array{constructor(t){super(t),this.fill(0);}}var Xi;const ji=class{constructor(t,n){Ot(this,"heap");Ot(this,"length");if(!k(ji,Xi))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0;}static create(t){const n=O1(t);if(!n)return [];Xe(ji,Xi,!0);const r=new ji(t,n);return Xe(ji,Xi,!1),r}push(t){this.heap[this.length++]=t;}pop(){return this.heap[--this.length]}};let zl=ji;Xi=new WeakMap,ft(zl,Xi,!1);var dr,Vn,Ir,fr,qi,on,hr,an,Gt,at,Rn,Un,En,fn,vr,gn,ro,oo,pr,Nr,Ro,Nn,Ss,Jf,ri,io,ws,Gn,yc,P1,oi,Yi,xs,Ar,Eo,Dr,Oo,$s,eh,Zi,jl,Qi,Hl,Vt,Xt,Es,th,ii,za;const Jv=class{constructor(t){ft(this,Ss);ft(this,yc);ft(this,Ar);ft(this,Dr);ft(this,$s);ft(this,Zi);ft(this,Qi);ft(this,Vt);ft(this,Es);ft(this,ii);ft(this,dr,void 0);ft(this,Vn,void 0);ft(this,Ir,void 0);ft(this,fr,void 0);ft(this,qi,void 0);Ot(this,"ttl");Ot(this,"ttlResolution");Ot(this,"ttlAutopurge");Ot(this,"updateAgeOnGet");Ot(this,"updateAgeOnHas");Ot(this,"allowStale");Ot(this,"noDisposeOnSet");Ot(this,"noUpdateTTL");Ot(this,"maxEntrySize");Ot(this,"sizeCalculation");Ot(this,"noDeleteOnFetchRejection");Ot(this,"noDeleteOnStaleGet");Ot(this,"allowStaleOnFetchAbort");Ot(this,"allowStaleOnFetchRejection");Ot(this,"ignoreFetchAbort");ft(this,on,void 0);ft(this,hr,void 0);ft(this,an,void 0);ft(this,Gt,void 0);ft(this,at,void 0);ft(this,Rn,void 0);ft(this,Un,void 0);ft(this,En,void 0);ft(this,fn,void 0);ft(this,vr,void 0);ft(this,gn,void 0);ft(this,ro,void 0);ft(this,oo,void 0);ft(this,pr,void 0);ft(this,Nr,void 0);ft(this,Ro,void 0);ft(this,Nn,void 0);ft(this,ri,()=>{});ft(this,io,()=>{});ft(this,ws,()=>{});ft(this,Gn,()=>!1);ft(this,oi,t=>{});ft(this,Yi,(t,n,r)=>{});ft(this,xs,(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:S,allowStaleOnFetchAbort:$,ignoreFetchAbort:w}=t;if(n!==0&&!$o(n))throw new TypeError("max option must be a nonnegative integer");const C=n?O1(n):Array;if(!C)throw new Error("invalid max value: "+n);if(Xe(this,dr,n),Xe(this,Vn,v),this.maxEntrySize=p||k(this,Vn),this.sizeCalculation=m,this.sizeCalculation){if(!k(this,Vn)&&!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(Xe(this,qi,g),Xe(this,Ro,!!g),Xe(this,an,new Map),Xe(this,Gt,new Array(n).fill(void 0)),Xe(this,at,new Array(n).fill(void 0)),Xe(this,Rn,new C(n)),Xe(this,Un,new C(n)),Xe(this,En,0),Xe(this,fn,0),Xe(this,vr,zl.create(n)),Xe(this,on,0),Xe(this,hr,0),typeof c=="function"&&Xe(this,Ir,c),typeof u=="function"?(Xe(this,fr,u),Xe(this,gn,[])):(Xe(this,fr,void 0),Xe(this,gn,void 0)),Xe(this,Nr,!!k(this,Ir)),Xe(this,Nn,!!k(this,fr)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!$,this.ignoreFetchAbort=!!w,this.maxEntrySize!==0){if(k(this,Vn)!==0&&!$o(k(this,Vn)))throw new TypeError("maxSize must be a positive integer if specified");if(!$o(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Fe(this,yc,P1).call(this);}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!y,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=$o(o)||o===0?o:1,this.ttlAutopurge=!!i,this.ttl=r||0,this.ttl){if(!$o(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Fe(this,Ss,Jf).call(this);}if(k(this,dr)===0&&this.ttl===0&&k(this,Vn)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!k(this,dr)&&!k(this,Vn)){const x="LRU_CACHE_UNBOUNDED";nH(x)&&($1.add(x),E1("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",x,Jv));}}static unsafeExposeInternals(t){return {starts:k(t,oo),ttls:k(t,pr),sizes:k(t,ro),keyMap:k(t,an),keyList:k(t,Gt),valList:k(t,at),next:k(t,Rn),prev:k(t,Un),get head(){return k(t,En)},get tail(){return k(t,fn)},free:k(t,vr),isBackgroundFetch:n=>{var r;return Fe(r=t,Vt,Xt).call(r,n)},backgroundFetch:(n,r,o,i)=>{var a;return Fe(a=t,Qi,Hl).call(a,n,r,o,i)},moveToTail:n=>{var r;return Fe(r=t,ii,za).call(r,n)},indexes:n=>{var r;return Fe(r=t,Ar,Eo).call(r,n)},rindexes:n=>{var r;return Fe(r=t,Dr,Oo).call(r,n)},isStale:n=>{var r;return k(r=t,Gn).call(r,n)}}}get max(){return k(this,dr)}get maxSize(){return k(this,Vn)}get calculatedSize(){return k(this,hr)}get size(){return k(this,on)}get fetchMethod(){return k(this,qi)}get dispose(){return k(this,Ir)}get disposeAfter(){return k(this,fr)}getRemainingTTL(t){return k(this,an).has(t)?1/0:0}*entries(){for(const t of Fe(this,Ar,Eo).call(this))k(this,at)[t]!==void 0&&k(this,Gt)[t]!==void 0&&!Fe(this,Vt,Xt).call(this,k(this,at)[t])&&(yield [k(this,Gt)[t],k(this,at)[t]]);}*rentries(){for(const t of Fe(this,Dr,Oo).call(this))k(this,at)[t]!==void 0&&k(this,Gt)[t]!==void 0&&!Fe(this,Vt,Xt).call(this,k(this,at)[t])&&(yield [k(this,Gt)[t],k(this,at)[t]]);}*keys(){for(const t of Fe(this,Ar,Eo).call(this)){const n=k(this,Gt)[t];n!==void 0&&!Fe(this,Vt,Xt).call(this,k(this,at)[t])&&(yield n);}}*rkeys(){for(const t of Fe(this,Dr,Oo).call(this)){const n=k(this,Gt)[t];n!==void 0&&!Fe(this,Vt,Xt).call(this,k(this,at)[t])&&(yield n);}}*values(){for(const t of Fe(this,Ar,Eo).call(this))k(this,at)[t]!==void 0&&!Fe(this,Vt,Xt).call(this,k(this,at)[t])&&(yield k(this,at)[t]);}*rvalues(){for(const t of Fe(this,Dr,Oo).call(this))k(this,at)[t]!==void 0&&!Fe(this,Vt,Xt).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,Ar,Eo).call(this)){const o=k(this,at)[r],i=Fe(this,Vt,Xt).call(this,o)?o.__staleWhileFetching:o;if(i!==void 0&&t(i,k(this,Gt)[r],this))return this.get(k(this,Gt)[r],n)}}forEach(t,n=this){for(const r of Fe(this,Ar,Eo).call(this)){const o=k(this,at)[r],i=Fe(this,Vt,Xt).call(this,o)?o.__staleWhileFetching:o;i!==void 0&&t.call(n,i,k(this,Gt)[r],this);}}rforEach(t,n=this){for(const r of Fe(this,Dr,Oo).call(this)){const o=k(this,at)[r],i=Fe(this,Vt,Xt).call(this,o)?o.__staleWhileFetching:o;i!==void 0&&t.call(n,i,k(this,Gt)[r],this);}}purgeStale(){let t=!1;for(const n of Fe(this,Dr,Oo).call(this,{allowStale:!0}))k(this,Gn).call(this,n)&&(this.delete(k(this,Gt)[n]),t=!0);return t}dump(){const t=[];for(const n of Fe(this,Ar,Eo).call(this,{allowStale:!0})){const r=k(this,Gt)[n],o=k(this,at)[n],i=Fe(this,Vt,Xt).call(this,o)?o.__staleWhileFetching:o;if(i===void 0||r===void 0)continue;const a={value:i};if(k(this,pr)&&k(this,oo)){a.ttl=k(this,pr)[n];const s=Na.now()-k(this,oo)[n];a.start=Math.floor(Date.now()-s);}k(this,ro)&&(a.size=k(this,ro)[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=Na.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,xs).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,fn):k(this,vr).length!==0?k(this,vr).pop():k(this,on)===k(this,dr)?Fe(this,Zi,jl).call(this,!1):k(this,on),k(this,Gt)[d]=t,k(this,at)[d]=n,k(this,an).set(t,d),k(this,Rn)[k(this,fn)]=d,k(this,Un)[d]=k(this,fn),Xe(this,fn,d),Js(this,on)._++,k(this,Yi).call(this,d,u,l),l&&(l.set="add"),c=!1;else {Fe(this,ii,za).call(this,d);const m=k(this,at)[d];if(n!==m){if(k(this,Ro)&&Fe(this,Vt,Xt).call(this,m)?m.__abortController.abort(new Error("replaced")):a||(k(this,Nr)&&((h=k(this,Ir))==null||h.call(this,m,t,"set")),k(this,Nn)&&((v=k(this,gn))==null||v.push([m,t,"set"]))),k(this,oi).call(this,d),k(this,Yi).call(this,d,u,l),k(this,at)[d]=n,l){l.set="replace";const g=m&&Fe(this,Vt,Xt).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,Ss,Jf).call(this),k(this,pr)&&(c||k(this,ws).call(this,d,o,i),l&&k(this,io).call(this,l,d)),!a&&k(this,Nn)&&k(this,gn)){const m=k(this,gn);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,Zi,jl).call(this,!0),Fe(this,Vt,Xt).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(k(this,Nn)&&k(this,gn)){const n=k(this,gn);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,Vt,Xt).call(this,a)&&a.__staleWhileFetching===void 0)return !1;if(k(this,Gn).call(this,i))o&&(o.has="stale",k(this,io).call(this,o,i));else return r&&k(this,ri).call(this,i),o&&(o.has="hit",k(this,io).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,Gn).call(this,o))){const i=k(this,at)[o];return Fe(this,Vt,Xt).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,Ro))return b&&(b.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:i,status:b});const S={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,Qi,Hl).call(this,t,$,S,m);return w.__returned=w}else {const w=k(this,at)[$];if(Fe(this,Vt,Xt).call(this,w)){const R=r&&w.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",R&&(b.returnedStale=!0)),R?w.__staleWhileFetching:w.__returned=w}const C=k(this,Gn).call(this,$);if(!g&&!C)return b&&(b.fetch="hit"),Fe(this,ii,za).call(this,$),o&&k(this,ri).call(this,$),b&&k(this,io).call(this,b,$),w;const x=Fe(this,Qi,Hl).call(this,t,$,S,m),T=x.__staleWhileFetching!==void 0&&r;return b&&(b.fetch=C?"stale":"refresh",T&&C&&(b.returnedStale=!0)),T?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,Vt,Xt).call(this,l);return a&&k(this,io).call(this,a,s),k(this,Gn).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,za).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,Vt,Xt).call(this,l)?l.__abortController.abort(new Error("deleted")):(k(this,Nr)||k(this,Nn))&&(k(this,Nr)&&((r=k(this,Ir))==null||r.call(this,l,t,"delete")),k(this,Nn)&&((o=k(this,gn))==null||o.push([l,t,"delete"]))),k(this,an).delete(t),k(this,Gt)[s]=void 0,k(this,at)[s]=void 0,s===k(this,fn)?Xe(this,fn,k(this,Un)[s]):s===k(this,En)?Xe(this,En,k(this,Rn)[s]):(k(this,Rn)[k(this,Un)[s]]=k(this,Rn)[s],k(this,Un)[k(this,Rn)[s]]=k(this,Un)[s]),Js(this,on)._--,k(this,vr).push(s);}}if(k(this,Nn)&&((i=k(this,gn))!=null&&i.length)){const s=k(this,gn);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,Dr,Oo).call(this,{allowStale:!0})){const i=k(this,at)[o];if(Fe(this,Vt,Xt).call(this,i))i.__abortController.abort(new Error("deleted"));else {const a=k(this,Gt)[o];k(this,Nr)&&((t=k(this,Ir))==null||t.call(this,i,a,"delete")),k(this,Nn)&&((n=k(this,gn))==null||n.push([i,a,"delete"]));}}if(k(this,an).clear(),k(this,at).fill(void 0),k(this,Gt).fill(void 0),k(this,pr)&&k(this,oo)&&(k(this,pr).fill(0),k(this,oo).fill(0)),k(this,ro)&&k(this,ro).fill(0),Xe(this,En,0),Xe(this,fn,0),k(this,vr).length=0,Xe(this,hr,0),Xe(this,on,0),k(this,Nn)&&k(this,gn)){const o=k(this,gn);let i;for(;i=o==null?void 0:o.shift();)(r=k(this,fr))==null||r.call(this,...i);}}};let Qf=Jv;dr=new WeakMap,Vn=new WeakMap,Ir=new WeakMap,fr=new WeakMap,qi=new WeakMap,on=new WeakMap,hr=new WeakMap,an=new WeakMap,Gt=new WeakMap,at=new WeakMap,Rn=new WeakMap,Un=new WeakMap,En=new WeakMap,fn=new WeakMap,vr=new WeakMap,gn=new WeakMap,ro=new WeakMap,oo=new WeakMap,pr=new WeakMap,Nr=new WeakMap,Ro=new WeakMap,Nn=new WeakMap,Ss=new WeakSet,Jf=function(){const t=new Fl(k(this,dr)),n=new Fl(k(this,dr));Xe(this,pr,t),Xe(this,oo,n),Xe(this,ws,(i,a,s=Na.now())=>{if(n[i]=a!==0?s:0,t[i]=a,a!==0&&this.ttlAutopurge){const l=setTimeout(()=>{k(this,Gn).call(this,i)&&this.delete(k(this,Gt)[i]);},a+1);l.unref&&l.unref();}}),Xe(this,ri,i=>{n[i]=t[i]!==0?Na.now():0;}),Xe(this,io,(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=Na.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},Xe(this,Gn,i=>t[i]!==0&&n[i]!==0&&(r||o())-n[i]>t[i]);},ri=new WeakMap,io=new WeakMap,ws=new WeakMap,Gn=new WeakMap,yc=new WeakSet,P1=function(){const t=new Fl(k(this,dr));Xe(this,hr,0),Xe(this,ro,t),Xe(this,oi,n=>{Xe(this,hr,k(this,hr)-t[n]),t[n]=0;}),Xe(this,xs,(n,r,o,i)=>{if(Fe(this,Vt,Xt).call(this,r))return 0;if(!$o(o))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(o=i(r,n),!$o(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}),Xe(this,Yi,(n,r,o)=>{if(t[n]=r,k(this,Vn)){const i=k(this,Vn)-t[n];for(;k(this,hr)>i;)Fe(this,Zi,jl).call(this,!0);}Xe(this,hr,k(this,hr)+t[n]),o&&(o.entrySize=r,o.totalCalculatedSize=k(this,hr));});},oi=new WeakMap,Yi=new WeakMap,xs=new WeakMap,Ar=new WeakSet,Eo=function*({allowStale:t=this.allowStale}={}){if(k(this,on))for(let n=k(this,fn);!(!Fe(this,$s,eh).call(this,n)||((t||!k(this,Gn).call(this,n))&&(yield n),n===k(this,En)));)n=k(this,Un)[n];},Dr=new WeakSet,Oo=function*({allowStale:t=this.allowStale}={}){if(k(this,on))for(let n=k(this,En);!(!Fe(this,$s,eh).call(this,n)||((t||!k(this,Gn).call(this,n))&&(yield n),n===k(this,fn)));)n=k(this,Rn)[n];},$s=new WeakSet,eh=function(t){return t!==void 0&&k(this,an).get(k(this,Gt)[t])===t},Zi=new WeakSet,jl=function(t){var i,a;const n=k(this,En),r=k(this,Gt)[n],o=k(this,at)[n];return k(this,Ro)&&Fe(this,Vt,Xt).call(this,o)?o.__abortController.abort(new Error("evicted")):(k(this,Nr)||k(this,Nn))&&(k(this,Nr)&&((i=k(this,Ir))==null||i.call(this,o,r,"evict")),k(this,Nn)&&((a=k(this,gn))==null||a.push([o,r,"evict"]))),k(this,oi).call(this,n),t&&(k(this,Gt)[n]=void 0,k(this,at)[n]=void 0,k(this,vr).push(n)),k(this,on)===1?(Xe(this,En,Xe(this,fn,0)),k(this,vr).length=0):Xe(this,En,k(this,Rn)[n]),k(this,an).delete(r),Js(this,on)._--,n},Qi=new WeakSet,Hl=function(t,n,r,o){const i=n===void 0?void 0:k(this,at)[n];if(Fe(this,Vt,Xt).call(this,i))return i;const a=new pc,{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 S=v;return k(this,at)[n]===v&&(m===void 0?S.__staleWhileFetching?k(this,at)[n]=S.__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,S=y||r.noDeleteOnFetchRejection,$=v;if(k(this,at)[n]===v&&(!S||$.__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,qi))==null?void 0:y.call(this,t,i,l);b&&b instanceof Promise&&b.then(S=>m(S),g),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(m(),r.allowStaleOnFetchAbort&&(m=S=>c(S,!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},Vt=new WeakSet,Xt=function(t){if(!k(this,Ro))return !1;const n=t;return !!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof pc},Es=new WeakSet,th=function(t,n){k(this,Un)[n]=t,k(this,Rn)[t]=n;},ii=new WeakSet,za=function(t){t!==k(this,fn)&&(t===k(this,En)?Xe(this,En,k(this,Rn)[t]):Fe(this,Es,th).call(this,k(this,Un)[t],k(this,Rn)[t]),Fe(this,Es,th).call(this,k(this,fn),t),Xe(this,fn,t));};async function rH(e){return (await $u.get("/pvideo",{params:{aid:e}})).data.data}async function oH(e){return []}const Md=new Qf({max:200});async function iH(e){if(Md.has(e))return Md.get(e);const[t,n]=await Promise.all([rH(e),oH()]);return Md.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function _1(e){return async function(n){const r=new FormData;r.append("aid",n),r.append("csrf",tH());const i=(await $u.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||kn((i==null?void 0:i.message)||"出错了"),a}}const aH=_1("add"),sH=_1("del"),R1=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const i=(await Eu.get(x1+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"}},lH=R1("dislike"),cH=R1("cancel"),uH="_modal_1rloz_1",dH="_title-desc_1rloz_4",fH="_reason-list_1rloz_8",hH="_reason_1rloz_8",vH="_active_1rloz_29",pH="_reason-no_1rloz_33",mH="_tips-container_1rloz_47",gH="_tips_1rloz_47",or={modal:uH,titleDesc:dH,reasonList:fH,reason:hH,active:vH,reasonNo:pH,tipsContainer:mH,tips:gH},Ou=Z6();function bH(){return ha(Ou)}function yH(e){const t=bH();if(e)return t.get(e)}function CH({show:e,onHide:t,item:n}){const[r,o]=f.useState(!1),i=Nt(async p=>{if(!n)return;let m=!1,g;try{o(!0),m=await lH(n,p.id);}catch(b){g=b;}finally{o(!1);}if(g)return console.error(g.stack||g),y1();m?kn("已标记不想看"):C1(),m&&(Ou.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(`.${or.reason}`)[m]||null;g==null||g.click();});const[c,u]=f.useState(a.length-1);F6(()=>{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(`.${or.reason}.${or.active}`))==null||m.click()));});const h=f.useMemo(()=>{var p;return ((p=a[c])==null?void 0:p.name)||""},[a,c]),{colorPrimary:v}=ma();return be(jv,{show:e,onHide:t,clsModal:or.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[be("div",{className:yr.modalHeader,children:[be("div",{className:yr.modalTitle,children:["我不想看",j("span",{className:or.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),j("div",{className:"space",style:{flex:1}}),j(Hv,{onClick:t})]}),be("div",{className:yr.modalBody,children:[j("div",{className:or.reasonList,children:a.map((p,m)=>be("button",{className:X(or.reason,{[or.active]:m===c}),style:{...m===c&&{borderColor:v}},"data-id":p.id,onClick:()=>{u(m),i(p);},disabled:r,children:[j("span",{className:or.reasonNo,style:{backgroundColor:v},children:m+1}),p.name]},p.id))}),be("div",{className:or.tipsContainer,children:[be("div",{className:or.tips,children:[j(go,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹框, 数字键选择, Esc 关闭"]}),h&&be("div",{className:or.tips,children:[j(go,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",h,"」, 回车键提交"]})]})]})]})}const Bl={show:!1,onHide:T1,item:null},M1=_s({value:Bl.show}),SH=function(){return ha(M1).value};function T1(){setTimeout(()=>{I1({show:!1,item:null});});}function I1(e){Object.assign(Bl,e),M1.value=Bl.show,wH().render(j(CH,{...Bl,onHide:T1}));}let Td;function wH(){if(!Td){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),Td=Su(e);}return Td}function xH(e){e!=null&&e.param&&Ou.has(e.param)||I1({show:!0,item:e});}const ns=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 Po=ns;Ot(Po,"TABEL","fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF"),Ot(Po,"TR",{}),Ot(Po,"S",[11,10,3,8,4,6]),Ot(Po,"XOR",177451812),Ot(Po,"ADD",8728348608),(()=>{const t=ns.TABEL.length;for(let n=0;n<t;n++)ns.TR[ns.TABEL[n]]=n;})();function $H(e){return e||(e=0),Bc.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function Id(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function Qg(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 EH="_bili-video-card_mlccj_1",OH="_image-wrapper_mlccj_4",PH="_preview-card-wrapper_mlccj_8",_H="_preview-card-inner_mlccj_21",RH="_watch-later_mlccj_25",MH="_badge_mlccj_28",TH="_recommend-reason_mlccj_37",IH="_bangumi-desc_mlccj_52",NH="_btn-dislike_mlccj_55",AH="_btn-dislike-icon_mlccj_70",DH="_btn-dislike-tip_mlccj_77",kH="_disliked-wrapper_mlccj_92",LH="_dislike-content-cover_mlccj_106",FH="_dislike-content-cover-inner_mlccj_112",zH="_dislike-icon_mlccj_123",jH="_dislike-reason_mlccj_126",HH="_dislike-desc_mlccj_130",BH="_dislike-content-action_mlccj_134",WH="_skeleton-active_mlccj_151",VH="_ant-skeleton-loading_mlccj_1",cn={biliVideoCard:EH,imageWrapper:OH,previewCardWrapper:PH,previewCardInner:_H,watchLater:RH,badge:MH,recommendReason:TH,bangumiDesc:IH,btnDislike:NH,btnDislikeIcon:AH,btnDislikeTip:DH,dislikedWrapper:kH,dislikeContentCover:LH,dislikeContentCoverInner:FH,dislikeIcon:zH,dislikeReason:jH,dislikeDesc:HH,dislikeContentAction:BH,skeletonActive:WH,antSkeletonLoading:VH};function UH(...e){for(const t of e)if(!isNaN(t))return t;return 0}function GH({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const i=f.useRef(null),a=D6(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=UH(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 j("div",{ref:i,className:X(cn.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&j(KH,{...u})})}function KH({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var w;const i=Math.floor((e||0)*o);let a=f.useMemo(()=>{const C=(t==null?void 0:t.index)||[];let x=qH(C,i);return x!==-1?x:i>C[C.length-1]?(x=Math.floor(C.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,S=(m-1)*r,$=(g-1)*n;return j("div",{className:cn.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${p})`,backgroundPosition:`-${$}px -${S}px`,backgroundSize:`${b}px ${y}px`},children:j(XH,{progress:o})})}function XH({progress:e}){const{colorPrimary:t}=ma();return j("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:j("div",{className:"bar",style:{backgroundColor:t,height:"100%",width:`${e*100}%`}})})}function qH(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<t?(n=s+1,o=s):r=s-1;}if(o===-1)return -1;const i=e[o],a=e[o+1]??0;return i<t&&t<a?o:-1}const nh={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},Cs={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},YH={bangumiFollow:1.3},ZH=e=>{const t=Cs[e]||Cs[1];return nh[t]},QH=e=>{const t=Cs[e];if(t)return YH[t]};function Jg(e){return {iconSvgName:ZH(e),iconSvgScale:QH(e)}}function N1(e){var _,T,R;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:O,cover_left_text_1:P,cover_left_icon_2:E,cover_left_text_2:M}=e;if(O&&Cs[O]===I)return Qg(P);if(E&&Cs[E]===I)return Qg(M)},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:(_=e.player_args)==null?void 0:_.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,S=t?void 0:e.badge,$=t?void 0:((T=e.desc_button)==null?void 0:T.text)||e.desc||"",w=t?void 0:e.badge_style,C=t?(R=e.rcmd_reason)==null?void 0:R.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:C,recommendReasonStyleConfig:x,appBadge:S,appBadgeDesc:$,appBadgeStyleConfig:w}}const JH=Bc().format("YYYY"),e8=e=>{if(!e)return "";const t=Bc.unix(e);return t.format("YYYY")===JH?t.format("M-D"):t.format("YY-M-D")},t8=e=>(e||"").replace(/^http:\/\//,"https://"),mc=f.memo(f.forwardRef(function({style:t,className:n,item:r,loading:o,active:i,...a},s){o=o??!r;const l=be("div",{className:X("bili-video-card__skeleton",{hide:!o,[cn.skeletonActive]:o}),children:[j("div",{className:"bili-video-card__skeleton--cover"}),j("div",{className:"bili-video-card__skeleton--info",children:be("div",{className:"bili-video-card__skeleton--right",children:[j("p",{className:"bili-video-card__skeleton--text"}),j("p",{className:"bili-video-card__skeleton--text short"}),j("p",{className:"bili-video-card__skeleton--light"})]})})]}),c=yH((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]),be("div",{style:t,className:X("bili-video-card",cn.biliVideoCard,n),...a,children:[l,!o&&r&&(c?j(n8,{ref:u,item:r,dislikedReason:c}):j(r8,{ref:d,item:r,active:i}))]})})),n8=f.memo(f.forwardRef(function({dislikedReason:t,item:n},r){const o=Nt(async()=>{if(!(t!=null&&t.id))return;let i=!1,a;try{i=await cH(n,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),y1();i?kn("已撤销"):C1(),i&&Ou.delete(n.param);});return f.useImperativeHandle(r,()=>({onCancelDislike:o}),[]),be("div",{className:X(cn.dislikedWrapper),children:[j("div",{className:cn.dislikeContentCover,children:be("div",{className:cn.dislikeContentCoverInner,children:[j(go,{name:"DistraughtFace",size:32,className:cn.dislikeIcon}),j("div",{className:cn.dislikeReason,children:t==null?void 0:t.name}),j("div",{className:cn.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),j("div",{className:cn.dislikeContentAction,children:be("button",{onClick:o,children:[j(go,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})})),r8=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:S,recommendReason:$,recommendReasonStyleConfig:w,favorite:C,appBadge:x,appBadgeDesc:_,appBadgeStyleConfig:T}=f.useMemo(()=>N1(t),[t]),R=t.goto==="av",I=t.goto==="bangumi",O=t.goto==="picture";["av","bangumi","picture"].includes(l)||console.warn(`[${Lo}]: none (av,bangumi,picture) goto type %s`,l,t);const P=f.useMemo(()=>e8(m),[m]),E=f.useMemo(()=>t8(p),[p]),[M,N]=f.useState(null),A=f.useRef(!1),D=Nt(async()=>{if(!M&&!A.current)try{A.current=!0,N(await iH(a));}finally{A.current=!1;}}),L=f.useRef(null),[B,U]=f.useState(void 0);ui("mouseenter",ze=>{var Ue;const _e=(Ue=L.current)==null?void 0:Ue.getBoundingClientRect();if(!_e)return;const{x:ke}=_e,Pe=ze.pageX-window.pageXOffset-ke;U(Pe);},{target:L});const z=Rd(L),{autoPreviewWhenHover:W}=Cr(),{onStartPreviewAnimation:K,onHotkeyPreviewAnimation:q,previewAnimationProgress:Y}=o8({id:a,title:v,autoPreviewWhenHover:W,active:n,tryFetchVideoData:D,videoPreviewWrapperRef:L});vc(()=>{n&&(unsafeWindow[`${Ax}_activeItem`]=t,mt.autoPreviewWhenKeyboardSelect&&K());},[n]);const Z=f.useRef(null),J=Rd(Z),[ne,ae]=f.useState(!1),{accessKey:de}=Cr(),pe=!!de;f.useEffect(()=>{z&&D();},[z]),f.useImperativeHandle(r,()=>({onToggleWatchLater:ue,onTriggerDislike:re,onStartPreviewAnimation:K,onHotkeyPreviewAnimation:q}),[]);const[te,se]=f.useState(!1),ue=Nt(async ze=>{if(ze==null||ze.preventDefault(),te)return;se(!0);const _e=ne?sH:aH;let ke=!1;try{ke=await _e(a);}finally{se(!1);}ke&&ae(Pe=>!Pe);}),ce=f.useRef(null),ve=Rd(ce),re=Nt(ze=>{ze==null||ze.stopPropagation(),ze==null||ze.preventDefault(),i&&xH(t);}),he=f.useMemo(()=>o?R&&s?`/video/${s}/`:t.uri:(()=>{var ze;if(t.uri.startsWith("http://")||t.uri.startsWith("https://"))return t.uri;if(R)return `/video/${Po.av2bv(Number(t.param))}/`;if(I)return console.warn(`[${Lo}]: bangumi uri should not starts with 'bilibili://': %s`,t.uri),t.uri;if(O){const _e=(ze=/^bilibili:\/\/article\/(\d+)$/.exec(t.uri))==null?void 0:ze[1];return _e?`/read/cv${_e}`:t.uri}return t.uri})(),[t]),ie=f.useMemo(()=>$H(g),[g]),xe=f.useMemo(()=>Id(c),[c]),Ne=f.useMemo(()=>Id(u),[u]),Ge=f.useMemo(()=>Id(C),[C]),st=o?Ne:Ge,lt=Nt(ze=>{if(!mt.openInIINAWhenRightClick)return;const _e=new URL(he,location.href).href,ke=`iina://open?url=${encodeURIComponent(_e)}`;window.open(ke,"_self"),ze.preventDefault();}),De=({text:ze,iconSvgName:_e,iconSvgScale:ke})=>be("span",{className:"bili-video-card__stats--item",children:[j("svg",{className:"bili-video-card__stats--icon",style:{transform:ke?`scale(${ke})`:void 0},children:j("use",{href:_e})}),j("span",{className:"bili-video-card__stats--text",children:ze})]});return be("div",{className:"bili-video-card__wrap __scale-wrap",onContextMenu:lt,children:[j("a",{href:he,target:"_blank",children:be("div",{className:"bili-video-card__image __scale-player-wrap",ref:L,children:[be("div",{className:X("bili-video-card__image--wrap",cn.imageWrapper),children:[be("picture",{className:"v-img bili-video-card__cover",children:[j("source",{srcSet:`${E}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),j("source",{srcSet:`${E}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),j("img",{src:`${E}@672w_378h_1c_!web-home-common-cover`,alt:v,loading:"eager"})]}),(z||typeof Y=="number")&&j(GH,{videoDuration:g,pvideo:M==null?void 0:M.pvideoData,mouseEnterRelativeX:B,previewAnimationProgress:Y}),be("div",{className:`bili-watch-later ${cn.watchLater}`,style:{display:z||n?"flex":"none"},ref:Z,onClick:ue,children:[j("svg",{className:"bili-watch-later__icon",children:j("use",{href:ne?"#widget-watch-save":"#widget-watch-later"})}),j("span",{className:"bili-watch-later__tip",style:{display:J?"block":"none"},children:ne?"移除":"稍后再看"})]}),i&&pe&&be("div",{ref:ce,className:cn.btnDislike,onClick:re,style:{display:z?"flex":"none"},children:[j("svg",{className:cn.btnDislikeIcon,children:j("use",{href:"#widget-close"})}),j("span",{className:cn.btnDislikeTip,style:{display:ve?"block":"none"},children:"我不想看"})]})]}),j("div",{className:"bili-video-card__mask",children:be("div",{className:"bili-video-card__stats",children:[j("div",{className:"bili-video-card__stats--left",children:o?be(sn,{children:[De({text:xe,iconSvgName:nh.play}),De({text:l==="av"?Ne:st,iconSvgName:nh.like})]}):be(sn,{children:[t.cover_left_text_1&&De({...Jg(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&&De({...Jg(t.cover_left_icon_2),text:l==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]})}),j("span",{className:"bili-video-card__stats__duration",children:R&&ie})]})})]})}),j("div",{className:"bili-video-card__info __scale-disable",children:be("div",{className:"bili-video-card__info--right",children:[j("a",{href:he,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:j("h3",{className:"bili-video-card__info--tit",title:v,children:v})}),j("p",{className:"bili-video-card__info--bottom",children:R?be("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${S}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[$?j("span",{className:cn.recommendReason,children:$}):j("svg",{className:"bili-video-card__info--owner__up",children:j("use",{href:"#widget-up"})}),j("span",{className:"bili-video-card__info--author",children:b}),P&&be("span",{className:"bili-video-card__info--date",children:["· ",P]})]}):x||_?be("a",{className:"bili-video-card__info--owner",href:he,target:"_blank",children:[j("span",{className:cn.badge,children:x||""}),j("span",{className:cn.bangumiDesc,children:_||""})]}):null})]})})]})}));function o8({id:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:i}){const[s,l]=b1(void 0),[c,u]=f.useState(!1),d=f.useRef(!1),h=f.useRef(!1);ui("mouseenter",_=>{d.current=!0,n&&!p.current&&x(!0);},{target:i}),ui("mouseleave",_=>{d.current=!1;},{target:i}),ui("mousemove",_=>{u(!0),n||g();},{target:i});const v=L6(),p=f.useRef(void 0),m=Nt(()=>{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=Nt((_=!1)=>{p.current&&cancelAnimationFrame(p.current),p.current=void 0,l(void 0),y(!1);}),[b,y,S]=Ll(!1),$=f.useRef(),w=Nt(()=>{var _;if(!p.current){x();return}y(T=>!T),b&&((_=$.current)==null||_.call($,s||0));}),C=Nt(()=>s||0),x=Nt((_=!1)=>{h.current=_,u(!1),y(!1),o(),g(!0),l(E=>typeof E>"u"?0:E);const T=8e3,R=()=>typeof mt.autoPreviewUpdateInterval=="number"?mt.autoPreviewUpdateInterval:400;let I=performance.now(),O=0;$.current=()=>{I=performance.now()-C()*T;};function P(E){if(m()){g();return}const M=()=>{const N=performance.now()-I,A=Math.min(N%T/T,1);l(A);};S()||(R()?(!O||performance.now()-O>=R())&&(O=performance.now(),M()):M()),p.current=requestAnimationFrame(P);}p.current=requestAnimationFrame(P);});return {onHotkeyPreviewAnimation:w,onStartPreviewAnimation:x,previewAnimationProgress:s}}const Bv="_video-grid_tu03i_9",i8="_limit-two-lines_tu03i_19",A1="_internal-testing_tu03i_51",a8="_narrow-mode_tu03i_79";function s8({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=Nt(()=>!(!e||Cu())),d=Nt(()=>{var x;if(typeof l!="number"||!o.current)return !1;const w=i(),C=(x=o.current.querySelector(`.${Ki.card}.${Ki.cardActive}`))==null?void 0:x.getBoundingClientRect();return !(!w||!C||C.top-w.top<-(w.height+C.height)||C.top-w.top>w.height*2+C.height)}),h=w=>C=>{if(!u())return;C==null||C.preventDefault();let x=typeof w=="number"?w:w();const _=d()?l+x:m();if(_<n){S(n);return}if(_>r){S(r);return}c(_),S(_);};ln("leftarrow",h(-1),{exactMatch:!0}),ln("rightarrow",h(1),{exactMatch:!0});const v=()=>Wv(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 C=b();for(let x=0;x<C.length;x++)if(C[x].getBoundingClientRect().top>=w.top)return x;return 0}const g=`.${Ki.card}`;function b(){var w;return [...((w=o.current)==null?void 0:w.querySelectorAll(g))||[]]}function y(w){return b()[w]}function S(w){var T;const C=y(w);(T=C==null?void 0:C.scrollIntoViewIfNeeded)==null||T.call(C,!1);const x=i(),_=C.getBoundingClientRect();if(!(!x||!_)){if(_.top<=x.top){const R=-(x.top-_.top+10);a==null||a({offset:R});return}if(x.bottom-_.bottom<10){const R=10-(x.bottom-_.bottom);a==null||a({offset:R});return}}}function $(w){const C=y(w);if(!C)return;const x=C.querySelector(".bili-video-card__wrap > a");x==null||x.click();}return {activeIndex:l,clearActiveIndex:p}}const eb=new Map;function Wv(e,t=!0){if(t&&mt.useNarrowMode)return 2;let n=eb.get(window.innerWidth);if(n)return n;if(e||(e=document.querySelector(`.${Bv}`)),!e)return 0;const r=window.getComputedStyle(e);return r.display!=="grid"?0:(n=r.gridTemplateColumns.split(" ").length,eb.set(window.innerWidth,n),n)}function D1(){return mt.filterMinDurationEnabled||mt.filterMinPlayCountEnabled}function k1(e){return D1()?e.filter(t=>{const{play:n,duration:r,recommendReason:o}=N1(t);return !mt.enableFilterForFollowed&&(o==="已关注"||(o==null?void 0:o.includes("关注")))?!0:!(typeof n=="number"&&mt.filterMinPlayCountEnabled&&mt.filterMinPlayCount&&n<mt.filterMinPlayCount||r&&mt.filterMinDurationEnabled&&mt.filterMinDuration&&r<mt.filterMinDuration)}):e}var Pu={exports:{}},Vv={exports:{}},L1={exports:{}},tn=L1.exports={},Mr,Tr;function rh(){throw new Error("setTimeout has not been defined")}function oh(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Mr=setTimeout:Mr=rh;}catch{Mr=rh;}try{typeof clearTimeout=="function"?Tr=clearTimeout:Tr=oh;}catch{Tr=oh;}})();function F1(e){if(Mr===setTimeout)return setTimeout(e,0);if((Mr===rh||!Mr)&&setTimeout)return Mr=setTimeout,setTimeout(e,0);try{return Mr(e,0)}catch{try{return Mr.call(null,e,0)}catch{return Mr.call(this,e,0)}}}function l8(e){if(Tr===clearTimeout)return clearTimeout(e);if((Tr===oh||!Tr)&&clearTimeout)return Tr=clearTimeout,clearTimeout(e);try{return Tr(e)}catch{try{return Tr.call(null,e)}catch{return Tr.call(this,e)}}}var so=[],Gi=!1,ni,Wl=-1;function c8(){!Gi||!ni||(Gi=!1,ni.length?so=ni.concat(so):Wl=-1,so.length&&z1());}function z1(){if(!Gi){var e=F1(c8);Gi=!0;for(var t=so.length;t;){for(ni=so,so=[];++Wl<t;)ni&&ni[Wl].run();Wl=-1,t=so.length;}ni=null,Gi=!1,l8(e);}}tn.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];so.push(new j1(e,t)),so.length===1&&!Gi&&F1(z1);};function j1(e,t){this.fun=e,this.array=t;}j1.prototype.run=function(){this.fun.apply(null,this.array);};tn.title="browser";tn.browser=!0;tn.env={};tn.argv=[];tn.version="";tn.versions={};function Co(){}tn.on=Co;tn.addListener=Co;tn.once=Co;tn.off=Co;tn.removeListener=Co;tn.removeAllListeners=Co;tn.emit=Co;tn.prependListener=Co;tn.prependOnceListener=Co;tn.listeners=function(e){return []};tn.binding=function(e){throw new Error("process.binding is not supported")};tn.cwd=function(){return "/"};tn.chdir=function(e){throw new Error("process.chdir is not supported")};tn.umask=function(){return 0};var u8=L1.exports;const Nd=Gr(u8);var ih;typeof Object.create=="function"?ih=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:ih=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const H1=ih;var d8=/%[sdj%]/g;function ua(e){if(!qs(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Br(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,i=String(e).replace(d8,function(s){if(s==="%%")return "%";if(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<o;a=r[++n])Xs(a)||!gi(a)?i+=" "+a:i+=" "+Br(a);return i}function Uv(e,t){if(zr(global.process))return function(){return Uv(e,t).apply(this,arguments)};if(Nd.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(Nd.throwDeprecation)throw new Error(t);Nd.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var Sl={},Ad;function B1(e){if(zr(Ad)&&(Ad={}.NODE_DEBUG||""),e=e.toUpperCase(),!Sl[e])if(new RegExp("\\b"+e+"\\b","i").test(Ad)){var t=0;Sl[e]=function(){var n=ua.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else Sl[e]=function(){};return Sl[e]}function Br(e,t){var n={seen:[],stylize:h8};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_u(t)?n.showHidden=t:t&&qv(n,t),zr(n.showHidden)&&(n.showHidden=!1),zr(n.depth)&&(n.depth=2),zr(n.colors)&&(n.colors=!1),zr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f8),gc(n,e,n.depth)}Br.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]};Br.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f8(e,t){var n=Br.styles[t];return n?"\x1B["+Br.colors[n][0]+"m"+e+"\x1B["+Br.colors[n][1]+"m":e}function h8(e,t){return e}function v8(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function gc(e,t,n){if(e.customInspect&&t&&ts(t.inspect)&&t.inspect!==Br&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return qs(r)||(r=gc(e,r,n)),r}var o=p8(e,t);if(o)return o;var i=Object.keys(t),a=v8(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),es(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Dd(t);if(i.length===0){if(ts(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Ja(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(bc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(es(t))return Dd(t)}var l="",c=!1,u=["{","}"];if(Gv(t)&&(c=!0,u=["[","]"]),ts(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(Ja(t)&&(l=" "+RegExp.prototype.toString.call(t)),bc(t)&&(l=" "+Date.prototype.toUTCString.call(t)),es(t)&&(l=" "+Dd(t)),i.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return Ja(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return c?h=m8(e,t,n,a,i):h=i.map(function(v){return ah(e,t,n,a,v,c)}),e.seen.pop(),g8(h,l,u)}function p8(e,t){if(zr(t))return e.stylize("undefined","undefined");if(qs(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(Kv(t))return e.stylize(""+t,"number");if(_u(t))return e.stylize(""+t,"boolean");if(Xs(t))return e.stylize("null","null")}function Dd(e){return "["+Error.prototype.toString.call(e)+"]"}function m8(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)X1(t,String(a))?i.push(ah(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(l){l.match(/^\d+$/)||i.push(ah(e,t,n,r,l,!0));}),i}function ah(e,t,n,r,o,i){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},l.get?l.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),X1(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(Xs(n)?s=gc(e,l.value,null):s=gc(e,l.value,n-1),s.indexOf(`
`)>-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")),zr(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 g8(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 Gv(e){return Array.isArray(e)}function _u(e){return typeof e=="boolean"}function Xs(e){return e===null}function W1(e){return e==null}function Kv(e){return typeof e=="number"}function qs(e){return typeof e=="string"}function V1(e){return typeof e=="symbol"}function zr(e){return e===void 0}function Ja(e){return gi(e)&&Xv(e)==="[object RegExp]"}function gi(e){return typeof e=="object"&&e!==null}function bc(e){return gi(e)&&Xv(e)==="[object Date]"}function es(e){return gi(e)&&(Xv(e)==="[object Error]"||e instanceof Error)}function ts(e){return typeof e=="function"}function U1(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function G1(e){return Buffer.isBuffer(e)}function Xv(e){return Object.prototype.toString.call(e)}function kd(e){return e<10?"0"+e.toString(10):e.toString(10)}var b8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function y8(){var e=new Date,t=[kd(e.getHours()),kd(e.getMinutes()),kd(e.getSeconds())].join(":");return [e.getDate(),b8[e.getMonth()],t].join(" ")}function K1(){console.log("%s - %s",y8(),ua.apply(null,arguments));}function qv(e,t){if(!t||!gi(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function X1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const C8={inherits:H1,_extend:qv,log:K1,isBuffer:G1,isPrimitive:U1,isFunction:ts,isError:es,isDate:bc,isObject:gi,isRegExp:Ja,isUndefined:zr,isSymbol:V1,isString:qs,isNumber:Kv,isNullOrUndefined:W1,isNull:Xs,isBoolean:_u,isArray:Gv,inspect:Br,deprecate:Uv,format:ua,debuglog:B1},S8=Object.freeze(Object.defineProperty({__proto__:null,_extend:qv,debuglog:B1,default:C8,deprecate:Uv,format:ua,inherits:H1,inspect:Br,isArray:Gv,isBoolean:_u,isBuffer:G1,isDate:bc,isError:es,isFunction:ts,isNull:Xs,isNullOrUndefined:W1,isNumber:Kv,isObject:gi,isPrimitive:U1,isRegExp:Ja,isString:qs,isSymbol:V1,isUndefined:zr,log:K1},Symbol.toStringTag,{value:"Module"})),w8=Rw(S8);var x8=w8.format;function $8(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function E8(e,t){return function(){var n=this,r=[].slice.call(arguments);$8();var o=new AbortController;return r.push(o.signal),new Promise(function(i,a){var s=setTimeout(function(){var l=new q1(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 q1=class Y1 extends Error{constructor(t){super(),this.timeout=t,this.message=x8("timeout of %sms exceed",t),Error.captureStackTrace(this,Y1);}};Vv.exports=E8;Vv.exports.TimeoutError=q1;var O8=Vv.exports;const Z1=O8,P8=Z1.TimeoutError;Pu.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,i=n.timeout;i&&(t=Z1(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<o;u++){let d,h;try{d=await t.apply(s,l);}catch(v){h=v;}if(!h)return d;if(h instanceof TypeError)throw h;if(h instanceof _8)throw h.originalError;c[u]=h,a&&a(h,u);}throw new Q1({times:o,timeout:i,fn:r,errors:c})}};class Q1 extends Error{constructor(t){super(),this.times=t.times,this.timeout=t.timeout,this.fn=t.fn,this.errors=t.errors,this.name="RetryError",this.message=`tried function ${this.fn.name||"<anonymous>"} ${this.times} times`,this.timeout&&(this.message+=` with timeout = ${this.timeout}ms`),Error.captureStackTrace(this,this.constructor);}}class _8 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 R8=Pu.exports.RetryError=Q1;Pu.exports.TimeoutError=P8;var M8=Pu.exports;const T8=Gr(M8);class Yv extends Error{constructor(n){super();Ot(this,"json");Error.captureStackTrace(this,Yv),this.json=n,this.message=n.message||JSON.stringify(n);}}const I8=10;async function N8(){var r;const t=(await Eu.get(x1+"/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 Yv(t);return kn(`${Lo}: 未知错误, 请联系开发者
code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const A8=T8(N8,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",Lo,t,e);}});async function tb(){try{return await A8()}catch(e){if(e instanceof R8){console.error(e.errors);const t=[ua("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>ua(" %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(`
`);kn(t,5e3);}throw e}}async function J1(e){let t=[];const n=async()=>{t=(await Promise.all(new Array(e).fill(0).map(()=>tb()))).flat();},r=async()=>{for(let o=1;o<=e;o++)t=t.concat(await tb());};return await(mt.useParallelRequest?n:r)(),t=Hc(t,o=>o.param),t.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}const ew=14;async function nb(e){const t=e.page++;return (await $u.get("/x/web-interface/index/top/rcmd",{baseURL:w1,withCredentials:!0,params:{fresh_type:3,version:1,ps:ew,fresh_idx:t,fresh_idx_1h:t,homepage_ver:1}})).data.data.item}async function tw(e,t){let n=[];const r=async()=>{n=(await Promise.all(new Array(e).fill(0).map(()=>nb(t)))).flat();},o=async()=>{for(let i=1;i<=e;i++)n=n.concat(await nb(t));};return await(mt.useParallelRequest?r:o)(),n=Hc(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"}))}Tb.extend("service");const Vl=e=>e.api==="pc"?e.id:e.param;function D8(e,t){const n=e.map(Vl);return t=Hc(t,Vl),e.concat(t.filter(r=>!n.includes(Vl(r))))}async function nw(e,t,n=5){let r=[],o=async i=>{const a=mt.usePcDesktopApi?ew:I8,s=D1()?n:1.2,l=Math.ceil(i*s/a);let c=mt.usePcDesktopApi?await tw(l,t):await J1(l);c=k1(c),r=r.concat(c),r=Hc(r,Vl);};for(await o(e);r.length<e;)await o(e-r.length);return r}async function k8(e){return nw(Wv(void 0,!1)*2,e,3)}async function L8(e){return nw(Wv()*3,e,5)}async function F8(e,t){let n=mt.usePcDesktopApi?await tw(e,t):await J1(e);return n=k1(n),n}var rw={exports:{}},z8="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",j8=z8,H8=j8;function ow(){}function iw(){}iw.resetWarningCache=ow;var B8=function(){function e(r,o,i,a,s,l){if(l!==H8){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:iw,resetWarningCache:ow};return n.PropTypes=n,n};rw.exports=B8();var W8=rw.exports;const Bn=Gr(W8);class sh extends f.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this);}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener();}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1;}this.attachScrollListener();}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener();}isPassiveSupported(){let t=!1;const n={get passive(){t=!0;}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n);}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t;}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture);}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture);}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener();}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault();}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let o;if(this.props.useWindow){const i=document.documentElement||document.body.parentNode||document.body,a=n.pageYOffset!==void 0?n.pageYOffset:i.scrollTop;this.props.isReverse?o=a:o=this.calculateOffset(t,a);}else this.props.isReverse?o=r.scrollTop:o=t.scrollHeight-r.scrollTop-r.clientHeight;o<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=r.scrollHeight,this.beforeScrollTop=r.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0));}calculateOffset(t,n){return t?this.calculateTopPosition(t)+(t.offsetHeight-n-window.innerHeight):0}calculateTopPosition(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}render(){const t=this.filterProps(this.props),{children:n,element:r,hasMore:o,initialLoad:i,isReverse:a,loader:s,loadMore:l,pageStart:c,ref:u,threshold:d,useCapture:h,useWindow:v,getScrollParent:p,...m}=t;m.ref=b=>{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)}}Ot(sh,"propTypes",{children:Bn.node.isRequired,element:Bn.node,hasMore:Bn.bool,initialLoad:Bn.bool,isReverse:Bn.bool,loader:Bn.node,loadMore:Bn.func.isRequired,pageStart:Bn.number,ref:Bn.func,getScrollParent:Bn.func,threshold:Bn.number,useCapture:Bn.bool,useWindow:Bn.bool}),Ot(sh,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const wl=Tb.extend("components:RecGrid"),Ki={card:Xg`
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:Xg`
border-color: #fb7299;
border-radius: 6px;
overflow: hidden;
`};var V8={name:"1uugokx",styles:"text-align:center;line-height:60px;font-size:120%"};const aw=f.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o},i)=>{const a=f.useRef({page:1}),[s,l,c]=Ll(0),[u,d,h]=Ll([]),[v,p]=f.useState(!1),[m,g,b]=Ll(()=>Date.now()),y=Nt(async()=>{const M=performance.now();if(wl("call refresh()"),v)return;await(n==null?void 0:n()),p(!0),g(Date.now()),O(),d([]),a.current.page=1;try{d(await L8(a.current));}catch(A){throw p(!1),A}l(1),O(),p(!1);const N=performance.now()-M;wl("refresh cost %s ms",N.toFixed(0)),w();});zv(y),f.useImperativeHandle(i,()=>({refresh:y}),[]);const S=f.useRef(!1),$=Nt(async()=>{if(v||S.current)return;S.current=!0;const M=b();let N=u;try{for(;!(N.length>u.length);){const A=await F8(2,a.current);N=D8(N,A);}}catch(A){throw S.current=!1,A}if(M!==b()){wl("fetchMore: skip update for mismatch refreshedAt, %s != %s",M,b()),S.current=!1;return}wl("fetchMore: seq(%s) len %s -> %s",c()+1,u.length,N.length),d(N),l(A=>A+1),w(),S.current=!1;}),w=Nt(()=>{setTimeout(()=>{const M=e?window:o==null?void 0:o.current;M==null||M.dispatchEvent(new CustomEvent("scroll"));});}),{useNarrowMode:C}=Cr(),x=f.useRef(null),_=Nt(()=>{var M;if(e){const N=s0+50;return new DOMRect(0,N,window.innerWidth,window.innerHeight-N)}else return (M=o==null?void 0:o.current)==null?void 0:M.getBoundingClientRect()}),T=SH(),R=f.useMemo(()=>new Array(u.length).fill(void 0),[u.length]),{activeIndex:I,clearActiveIndex:O}=s8({enabled:t&&!T,refresh:y,maxIndex:u.length-1,containerRef:x,getScrollerRect:_,videoCardRefs:R,changeScrollY:e?function({offset:M,absolute:N}){const A=document.documentElement;if(typeof M=="number"){A.scrollTop+=M;return}if(typeof N=="number"){A.scrollTop=N;return}}:void 0}),P=us(),{colorPrimary:E}=ma();return j(sh,{pageStart:0,hasMore:!0,loadMore:$,initialLoad:!1,useWindow:e,threshold:window.innerHeight,style:{minHeight:"100%"},loader:j("div",{css:V8,children:"加载中..."},-1),children:j("div",{ref:x,className:X(Bv,{[A1]:P},{[a8]:C},r),children:v?new Array(24).fill(void 0).map((M,N)=>j(mc,{loading:!0,className:Ki.card},N)):u.map((M,N)=>{const A=N===I;return j(mc,{ref:D=>R[N]=D,className:X(Ki.card,{[Ki.cardActive]:A}),css:[A&&ar("border-color:",E,";",""),"",""],item:M,active:A},M.uniqId)})})})}),rb=j(An,{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 sw({style:e,className:t}){const{runAsync:n,loading:r}=v1(J6,{manual:!0}),{accessKey:o}=Cr();return j(mv,{size:"small",style:e,className:t,children:o?be(sn,{children:[j(An,{onClick:n,disabled:r,children:j("span",{children:"重新获取 access_key"})}),j(An,{onClick:eH,children:j("span",{children:"删除 access_key"})}),rb]}):be(sn,{children:[j(An,{onClick:n,disabled:r,size:"middle",children:j("span",{children:"获取 access_key"})}),rb]})})}const U8="_config-icon_18r5p_1",G8="_settings-group_18r5p_6",K8="_settings-group-title_18r5p_9",X8="_settings-group-sub-title_18r5p_14",q8="_settings-group-content_18r5p_20",Y8="_row_18r5p_26",Z8="_check_18r5p_34",Q8="_setting-tabs_18r5p_39",J8="_tab-pane_18r5p_42",ot={configIcon:U8,settingsGroup:G8,settingsGroupTitle:K8,settingsGroupSubTitle:X8,settingsGroupContent:q8,row:Y8,check:Z8,settingTabs:Q8,tabPane:J8};async function lw(){kn("即将刷新网页"),await yu(500),location.reload();}function eB(){return D_(),lw()}function Ld(e,t,n){return ln(e,r=>{if(Cu())return;mt[t]=!mt[t];const o=!mt[t];kn(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function tB({show:e,onHide:t}){const{usePcDesktopApi:n,autoPreviewUpdateInterval:r,filterMinPlayCount:o,filterMinPlayCountEnabled:i,filterMinDuration:a,filterMinDurationEnabled:s}=Cr();return Ld(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Ld(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Ld(["shift.c"],"useNarrowMode","居中模式"),be(jv,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[be("div",{className:yr.modalHeader,children:[be("div",{className:yr.modalTitle,children:[j(go,{name:"Config",className:ot.configIcon}),"设置项"]}),j("div",{className:"space",style:{flex:1}}),j(Hv,{onClick:t})]}),j("main",{className:yr.modalBody,children:j(dS,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:ot.settingTabs,items:[{label:"常规设置",key:"normal",children:be("div",{className:ot.tabPane,children:[be("div",{className:ot.settingsGroup,children:[j("div",{className:ot.settingsGroupTitle,children:"接口切换"}),be("div",{className:X(ot.settingsGroupContent),children:[be(md.Group,{buttonStyle:"solid",value:n?"desktop":"app",onChange:l=>{const c=l.target.value;mt.usePcDesktopApi=c==="desktop";},children:[j(md.Button,{value:"desktop",children:"使用桌面端接口"}),j(md.Button,{value:"app",children:"使用 App 端接口"})]}),!n&&j("div",{className:ot.row,style:{marginTop:5},children:j(sw,{})})]})]}),be("div",{className:ot.settingsGroup,children:[j("div",{className:ot.settingsGroupTitle,children:"开关"}),be("div",{className:X(ot.settingsGroupContent,ot.row),children:[j(ir,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:be(sn,{children:["首页只保留推荐",j("br",{}),"P.S 需要刷新网页~"]}),className:ot.check,extraAction:lw}),j(ir,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹框",className:ot.check,extraAction:l=>{l&&kn("已开启自动查看更多: 下次打开首页时将直接展示推荐弹框");}}),j(ir,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:be(sn,{children:["居中两列",j("br",{}),"切换设置快捷键: ",j(Ma,{color:"green",children:"shift+c"})]}),className:ot.check}),j(ir,{configKey:"useParallelRequest",label:"批量请求时使用并行",tooltip:be(sn,{children:["并行快但可能有重复",j("br",{}),"推荐视频大量重复时关闭这个试试~"]}),className:ot.check})]})]}),be("div",{className:ot.settingsGroup,children:[j("div",{className:ot.settingsGroupTitle,children:"预览"}),be("div",{className:X(ot.settingsGroupContent,ot.row),children:[j(ir,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:ot.check,tooltip:be(sn,{children:["手动预览快捷键: ",j(Ma,{color:"green",children:"."})," or ",j(Ma,{color:"green",children:"p"}),j("br",{}),"切换设置快捷键: ",j(Ma,{color:"green",children:"shift+p"})]})}),j(ir,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:ot.check,tooltip:be(sn,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",j("br",{}),"切换设置快捷键: ",j(Ma,{color:"green",children:"shift+m"})]})}),be("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["预览更新间隔",j(gz,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>mt.autoPreviewUpdateInterval=l,value:r}),be("span",{style:{width:"65px"},children:["(",r,"ms)"]})]})]})]}),be("div",{className:ot.settingsGroup,children:[j("div",{className:ot.settingsGroupTitle,children:"帮助"}),j("div",{className:X(ot.settingsGroupContent),children:j("div",{className:ot.row,children:be(mv,{size:"small",children:[j(An,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),j(An,{href:"https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),j(An,{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:j("div",{className:ot.tabPane,children:be("div",{className:ot.settingsGroup,children:[be("div",{className:ot.settingsGroupTitle,children:["视频过滤",j(a1,{title:j(sn,{children:"启用视频过滤会大幅降低加载速度, 谨慎开启!"}),children:j(go,{style:{marginLeft:4,cursor:"pointer"},name:"Info"})})]}),be("div",{className:X(ot.settingsGroupContent),children:[j("div",{className:ot.settingsGroupSubTitle,children:"过滤范围"}),j(ir,{configKey:"enableFilterForFollowed",label:"对推荐理由为「已关注」的视频启用过滤",tooltip:j(sn,{children:"默认不过滤「已关注」"})}),j("div",{className:ot.settingsGroupSubTitle,children:"过滤器"}),be("div",{className:ot.row,children:[j(ir,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:j(sn,{children:"不显示播放量很少的视频"})}),j(Uf,{size:"small",min:1,step:1e3,value:o,onChange:l=>l&&ra({filterMinPlayCount:l}),disabled:!i})]}),be("div",{className:ot.row,style:{marginTop:8},children:[j(ir,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:j(sn,{children:"不显示短视频"})}),j(Uf,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:l=>l&&ra({filterMinDuration:l}),disabled:!s})]})]})]})})},{label:"外观设置",key:"UI",children:j("div",{className:ot.tabPane,children:be("div",{className:ot.settingsGroup,children:[j("div",{className:ot.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),j("div",{className:X(ot.settingsGroupContent),children:j(Tj,{})})]})})},{label:"高级设置",key:"advance",children:j("div",{className:ot.tabPane,children:be("div",{className:ot.settingsGroup,children:[j("div",{className:ot.settingsGroupTitle,children:"高级"}),be("div",{className:X(ot.settingsGroupContent),children:[j("div",{className:ot.row,children:j(X4,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:eB,children:j(An,{danger:!0,type:"primary",children:"恢复默认设置"})})}),j("div",{className:ot.row,style:{marginTop:10},children:j(ir,{configKey:"openInIINAWhenRightClick",label:"右键在 IINA 中打开",className:ot.check})})]})]})})}]})})]})}var Zv={};Object.defineProperty(Zv,"__esModule",{value:!0});var cw=Zv.useSticky=void 0;const Fd=f;function nB(){const e=(0, Fd.useRef)(null),[t,n]=(0, Fd.useState)(!1);return (0, Fd.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]}cw=Zv.useSticky=nB;const rB="_expand-btn_wdzp9_1",oB="_expanded_wdzp9_12",ob={expandBtn:rB,expanded:oB},iB=f.forwardRef(function({children:t},n){const[r,o]=p1(!1);f.useImperativeHandle(n,()=>o,[o]);const i=j("button",{className:X("primary-btn",ob.expandBtn),onClick:o.toggle,children:j("svg",{className:X({[ob.expanded]:r}),children:j("use",{href:"#widget-arrow"})})});return be(sn,{children:[i,r&&t]})}),aB="_modal-mask_7bwzz_1",sB="_narrow-mode_7bwzz_1",lB="_modal_7bwzz_1",cB="_modal-header_7bwzz_18",uB="_modal-body_7bwzz_19",dB="_btn-refresh_7bwzz_22",Aa={modalMask:aB,narrowMode:sB,modal:lB,modalHeader:cB,modalBody:uB,btnRefresh:dB};var fB={name:"1q4vxyr",styles:"margin-left:8px"};const hB=f.memo(function({show:t,onHide:n}){const r=f.useRef(null),o=f.useRef(null),{useNarrowMode:i}=Cr(),a=f.useMemo(()=>({[Aa.narrowMode]:i}),[i]),s=Nt(()=>{var h;return (h=o.current)==null?void 0:h.refresh()}),l=Nt(()=>{r.current&&(r.current.scrollTop=0);}),c=Wc(),{colorPrimary:u}=ma(),d=f.useMemo(()=>c?{border:`1px solid ${u}`}:void 0,[c,u]);return be(jv,{show:t,onHide:n,clsModalMask:X(a),clsModal:X(Aa.modal,a),styleModal:{...d},children:[be("div",{className:X(yr.modalHeader,Aa.modalHeader),children:[j("div",{className:yr.modalTitle,children:"推荐"}),j("div",{className:"space",style:{flex:1}}),j(iB,{children:j(wj,{})}),j(dw,{css:fB,onClick:s,className:Aa.btnRefresh,refreshHotkeyEnabled:t}),j(Hv,{onClick:n})]}),j("div",{className:X(yr.modalBody,Aa.modalBody),ref:r,children:j(aw,{ref:o,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:r})})]})}),Qv=ar`
display: flex;
align-items: center;
justify-content: center;
`,ib={btn:ar`
padding: 0;
width: 32px;
height: 32px;
border-radius: 50%;
${Qv}
`,icon:ar`
svg {
width: 14px;
height: 14px;
}
`},ko=_s({modalFeedVisible:mt.initialShowMore,modalConfigVisible:!1}),vB=function(){return ha(ko)},pB=()=>{ko.modalFeedVisible=!0;},mB=()=>{ko.modalFeedVisible=!1;},gB=()=>{ko.modalConfigVisible=!0;},bB=()=>{ko.modalConfigVisible=!1;};function uw({onRefresh:e}){const{accessKey:t,pureRecommend:n,usePcDesktopApi:r}=Cr(),{modalFeedVisible:o,modalConfigVisible:i}=ha(ko);ln(["shift.comma"],l=>{Cu()||(ko.modalConfigVisible=!ko.modalConfigVisible);},{exactMatch:!0});const[a,s]=cw();return be(sn,{children:[be("div",{ref:a,className:"area-header",css:[ar`
margin-bottom: 0;
height: 50px;
`,n&&ar`
position: sticky;
top: ${s0}px;
z-index: 1000;
`,n&&s&&ar`
background-color: var(--bg1_float);
box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
`,"",""],children:[be("div",{className:"left",children:[j("a",{id:"影视",className:"the-world area-anchor","data-id":"25"}),j("svg",{className:"icon",children:j("use",{href:"#channel-cinephile"})}),j("a",{className:"title",href:"#",children:j("span",{children:"推荐"})})]}),j("div",{className:"right",children:be(mv,{size:"small",children:[!r&&!t&&j(sw,{style:{marginLeft:5}}),j(An,{onClick:gB,css:ib.btn,children:j(go,{name:"Config",css:ib.icon})}),j(dw,{onClick:e,refreshHotkeyEnabled:!(i||o)}),!n&&be(An,{css:Qv,onClick:pB,children:[j("span",{children:"查看更多"}),j("svg",{css:ar`
width: 12px;
height: 12px;
margin-left: 2px;
`,children:j("use",{href:"#widget-arrow"})})]})]})})]}),j(hB,{show:o,onHide:mB}),j(tB,{show:i,onHide:bB})]})}const dw=f.forwardRef(function({onClick:e,className:t="",style:n,refreshHotkeyEnabled:r},o){r??(r=!0);const[i,a]=f.useState(0),s=Nt(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&&(Cu()||(c=l.current)==null||c.click());},{exactMatch:!0}),be(An,{className:t,style:n,css:ar`
${Qv}
&.ant-btn:not(:disabled):focus-visible {
outline: none;
}
`,ref:l,onClick:s,children:[j("svg",{style:{transform:`rotate(${i}deg)`,width:"11px",height:"11px",marginRight:5,transition:i===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{a(0);},children:j("use",{href:"#widget-roll"})}),j("span",{children:"换一换"})]})}),yB={grid:ar`
/* card=299 col-gap=20 */
width: ${299*2+20}px;
margin: 0 auto;
`};function CB(){const{useNarrowMode:e}=Cr(),{modalFeedVisible:t,modalConfigVisible:n}=vB(),r=f.useRef(null),o=Nt(()=>{var a;return (a=r.current)==null?void 0:a.refresh()}),i=Nt(()=>{document.documentElement.scrollTop=0;});return be("section",{"data-area":"推荐",children:[j(uw,{onRefresh:o}),j(aw,{ref:r,css:[e&&yB.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:i})]})}function SB(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=us(),n=f.useMemo(()=>({page:1}),[]),{data:r,loading:o,error:i,refresh:a}=v1(()=>k8(n));return i&&console.error(i.stack||i),be("section",{"data-area":"推荐",children:[j(uw,{onRefresh:a}),j("div",{className:X(Bv,i8,{[A1]:t}),style:{marginBottom:t?30:0},children:o||i?e.map(s=>j(mc,{},s)):r.map(s=>j(mc,{item:s},s.uniqId))})]})}Bc.extend(F_);(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 wB()})();async function wB(){return Al(".adblock-tips"),l1("html.gray",e=>e.classList.remove("gray")),mt.pureRecommend?$B():xB()}async function xB(){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(us()&&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 yu(200);}if(!n){console.error(`[${Lo}]: init fail`);return}const r=document.createElement("section");n(r),Su(r).render(j(i1,{children:j(SB,{})}));}async function $B(){var o,i;us()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),Al(".bili-feed4 .header-channel")):((i=document.querySelector(".bili-layout"))==null||i.remove(),Al(".bili-footer"),Al(".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(us()?"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),Su(n).render(j(i1,{children:j(CB,{})}));}});EB();
})(React, ReactDOM, axios, axiosGmxhrAdapter);