// ==UserScript==
// @name bilibili-app-recommend
// @namespace https://magicdawn.fun
// @version 0.20.1
// @author magicdawn
// @description 为 B 站首页添加像 App 一样的推荐
// @license MIT
// @icon https://www.bilibili.com/favicon.ico
// @homepageURL https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend
// @supportURL https://github.com/magicdawn/bilibili-app-recommend/issues
// @match https://www.bilibili.com/
// @match https://www.bilibili.com/?*
// @match https://www.bilibili.com/index.html
// @match https://www.bilibili.com/index.html?*
// @match https://www.bilibili.com/video/*
// @match https://www.bilibili.com/list/watchlater?*
// @require https://registry.npmmirror.com/axios/0.27.2/files/dist/axios.min.js
// @require https://registry.npmmirror.com/axios-userscript-adapter/0.2.0/files/dist/axiosGmxhrAdapter.min.js
// @require https://registry.npmmirror.com/react/18.2.0/files/umd/react.production.min.js
// @require https://registry.npmmirror.com/react-dom/18.2.0/files/umd/react-dom.production.min.js
// @require https://registry.npmmirror.com/ua-parser-js/1.0.37/files/dist/ua-parser.min.js
// @require https://registry.npmmirror.com/framer-motion/10.18.0/files/dist/framer-motion.js
// @connect app.bilibili.com
// @connect passport.bilibili.com
// @grant GM.getValue
// @grant GM.openInTab
// @grant GM.setClipboard
// @grant GM.setValue
// @grant GM.xmlHttpRequest
// @grant GM_addStyle
// @grant unsafeWindow
// ==/UserScript==
(e=>{if(typeof GM_addStyle=="function"){GM_addStyle(e);return}const t=document.createElement("style");t.textContent=e,document.head.append(t)})(' @charset "UTF-8";.primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px;line-height:24px}.ant-btn:disabled{cursor:wait}.ant-radio-button-wrapper-disabled{cursor:wait}body .ant-tooltip a{color:#1677ff;transition:color .3s}body .ant-tooltip a:visited{color:#1677ff}body .ant-tooltip a:hover{color:#69b1ff}body .ant-tooltip a:active{color:#0958d9}body button:where(.ant-switch):focus,body button:where(.ant-switch):active{background-color:#00000040;outline:unset}.ant-message-custom-content [role=img]{position:relative;top:-2px}.i-icon{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.i-icon-spin svg{animation:i-icon-spin 1s infinite linear}.i-icon-rtl{transform:scaleX(-1)}@keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}._modal-mask_1wljt_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:10002;display:flex;align-items:center;justify-content:center}._modal_1wljt_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_1wljt_25{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1wljt_33{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1wljt_39{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1wljt_47{margin-left:10px}._btn-close_1wljt_47 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1wljt_47{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._reason-list_1tlz9_1{display:flex;align-items:center;justify-content:center}._modal_1tlz9_7{width:500px}._title-desc_1tlz9_11{margin-left:5px;font-size:40%}._reason-list_1tlz9_1{flex-wrap:wrap;justify-content:space-between}._reason_1tlz9_1{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_1tlz9_1{border:1px solid #333}._reason_1tlz9_1._active_1tlz9_36{border-color:#f69;border-radius:4px}._reason-no_1tlz9_41{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_1tlz9_56{margin-top:20px}._tips_1tlz9_56{display:flex;align-items:center}._bili-video-card_1g7z5_1{position:relative}._bili-video-card_1g7z5_1 .bili-video-card__stats--item{margin-right:8px}._preview-card-wrapper_1g7z5_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_1g7z5_8 ._preview-card-inner_1g7z5_21{width:100%;height:100%}._btn-dislike_1g7z5_26{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;transform:translateZ(0);z-index:5}._btn-dislike_1g7z5_26 ._btn-dislike-icon_1g7z5_41{pointer-events:none;-webkit-user-select:none;user-select:none;color:#fff;width:12px;height:12px}._btn-dislike_1g7z5_26 ._btn-dislike-tip_1g7z5_48{position:absolute;bottom:-6px;left:-5px;pointer-events:none;-webkit-user-select:none;user-select:none;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._watch-later_1g7z5_64{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:6px;cursor:pointer;background-color:#212121cc;transform:translateZ(0);z-index:5}._watch-later_1g7z5_64 ._watch-later-icon_1g7z5_79{pointer-events:none;-webkit-user-select:none;user-select:none;color:#fff;width:22px;height:22px}._watch-later_1g7z5_64 ._watch-later-tip_1g7z5_86{position:absolute;bottom:-6px;right:-5px;pointer-events:none;-webkit-user-select:none;user-select:none;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._badge_1g7z5_102{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_1g7z5_112{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_1g7z5_128{color:default}._disliked-wrapper_1g7z5_132{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:var(--video-card-border-radius);border:1px solid #eee}body.dark ._disliked-wrapper_1g7z5_132{border:1px solid #333}._disliked-wrapper_1g7z5_132 ._dislike-content-cover_1g7z5_146{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_1g7z5_132 ._dislike-content-cover_1g7z5_146 ._dislike-content-cover-inner_1g7z5_152{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_1g7z5_132 ._dislike-content-cover_1g7z5_146 ._dislike-content-cover-inner_1g7z5_152 ._dislike-icon_1g7z5_163{margin-bottom:5px}._disliked-wrapper_1g7z5_132 ._dislike-content-cover_1g7z5_146 ._dislike-content-cover-inner_1g7z5_152 ._dislike-reason_1g7z5_166{font-size:20px;text-align:center}._disliked-wrapper_1g7z5_132 ._dislike-content-cover_1g7z5_146 ._dislike-content-cover-inner_1g7z5_152 ._dislike-desc_1g7z5_170{font-size:16px;text-align:center}._disliked-wrapper_1g7z5_132 ._dislike-content-action_1g7z5_174{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_1g7z5_132 ._dislike-content-action_1g7z5_174{border-top:1px solid #333}._disliked-wrapper_1g7z5_132 ._dislike-content-action_1g7z5_174 button{font-size:16px;color:inherit;display:flex;align-items:center}body .bili-video-card__skeleton--cover,body .bili-video-card__skeleton--text,body .bili-video-card__skeleton--light,body .bili-video-card__skeleton--avatar{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%)}body.dark .bili-video-card__skeleton--avatar{background-color:#444}._skeleton-active_1g7z5_202 .bili-video-card__skeleton--cover,._skeleton-active_1g7z5_202 .bili-video-card__skeleton--text,._skeleton-active_1g7z5_202 .bili-video-card__skeleton--light,._skeleton-active_1g7z5_202 .bili-video-card__skeleton--avatar{background-size:400% 100%;animation-name:_ant-skeleton-loading_1g7z5_1;animation-duration:2.165s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_1g7z5_1{0%{background-position:100% 50%}61.8%,to{background-position:0 50%}}._video-grid_wfxpc_7{--video-card-border-radius: 6px;display:grid;position:relative;width:100%;grid-gap:20px 12px;grid-template-columns:repeat(var(--col),minmax(0,1fr))}@media (max-width: 1099.9px){._video-grid-new-homepage_wfxpc_17{--col: 4}._video-grid-new-homepage_wfxpc_17._limit-two-lines_wfxpc_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid-new-homepage_wfxpc_17{--col: 5}._video-grid-new-homepage_wfxpc_17._limit-two-lines_wfxpc_20>*:nth-of-type(n+11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid-new-homepage_wfxpc_17{--col: 6}._video-grid-new-homepage_wfxpc_17._limit-two-lines_wfxpc_20>*:nth-of-type(n+13){display:none!important}}@media (min-width: 2200px){._video-grid-new-homepage_wfxpc_17{--col: 7}._video-grid-new-homepage_wfxpc_17._limit-two-lines_wfxpc_20>*:nth-of-type(n+15){display:none!important}}._video-grid-internal-testing_wfxpc_52{grid-gap:20px 20px}._video-grid-internal-testing_wfxpc_52 .ant-divider-horizontal.ant-divider-with-text{margin-bottom:-15px;margin-top:-15px}._video-grid-internal-testing_wfxpc_52 .ant-divider-horizontal.ant-divider-with-text:first-of-type{margin-top:0}@media (max-width: 1399px){._video-grid-internal-testing_wfxpc_52{--col: 4}._video-grid-internal-testing_wfxpc_52._limit-one-line_wfxpc_67>*:nth-of-type(n+5){display:none!important}._video-grid-internal-testing_wfxpc_52._limit-two-lines_wfxpc_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1400px){._video-grid-internal-testing_wfxpc_52{--col: 5}._video-grid-internal-testing_wfxpc_52._limit-one-line_wfxpc_67>*:nth-of-type(n+6){display:none!important}._video-grid-internal-testing_wfxpc_52._limit-two-lines_wfxpc_20>*:nth-of-type(n+11){display:none!important}}._video-grid-container_wfxpc_88{container-name:video-grid-container;container-type:inline-size}._video-grid-fancy_wfxpc_93{--video-card-border-radius: 15px;--col: 2;column-gap:20px;row-gap:0;--row-gap: clamp(20px, 1.6vw, 40px)}._video-grid-fancy_wfxpc_93 .bili-video-card{margin-bottom:var(--row-gap)}._video-grid-fancy_wfxpc_93 .ant-divider-horizontal.ant-divider-with-text{margin-bottom:5px;margin-top:calc(10px - var(--row-gap))}._video-grid-fancy_wfxpc_93 .ant-divider-horizontal.ant-divider-with-text:first-of-type{margin-top:0}@container video-grid-container (width >= 520px){._video-grid_wfxpc_7._video-grid-fancy_wfxpc_93{--col: 2}}@container video-grid-container (width >= 790px){._video-grid_wfxpc_7._video-grid-fancy_wfxpc_93{--col: 3}}@container video-grid-container (width >= 1060px){._video-grid_wfxpc_7._video-grid-fancy_wfxpc_93{--col: 4}}@container video-grid-container (width >= 1330px){._video-grid_wfxpc_7._video-grid-fancy_wfxpc_93{--col: 5}}._narrow-mode_wfxpc_134{--col: 2 !important}._config-icon_1th8l_1{line-height:1;margin-right:5px;font-size:0}._settings-group_1th8l_7{margin-bottom:10px}._settings-group_1th8l_7 ._settings-group-title_1th8l_10{font-size:2em;display:flex;align-items:center}._settings-group_1th8l_7 ._settings-group-sub-title_1th8l_15{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_1th8l_7 ._settings-group-content_1th8l_21{color:default}._settings-group_1th8l_7 ._settings-group-content_1th8l_21 button:first-child{margin-left:0}._row_1th8l_28{display:flex;align-items:center;flex-wrap:wrap}._row_1th8l_28 .primary-btn:first-child{margin-left:0}._check_1th8l_37{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_1th8l_43.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_1th8l_47{min-height:min(360px,90vh - 121px);max-height:calc(90vh - 121px);overflow-y:scroll}._expand-btn_12c5j_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_12c5j_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_12c5j_1 svg._expanded_12c5j_12{transform:rotate(0)}body.dark ._expand-btn_12c5j_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_12c5j_1:hover{background-color:#555!important}._modal-mask_14tde_1._narrow-mode_14tde_1{background-color:#000000e6}._modal_14tde_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}._modal_14tde_1._narrow-mode_14tde_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_14tde_1._narrow-mode_14tde_1{border:none}._modal_14tde_1._full-screen-mode_14tde_19{width:100vw;height:100vh}._modal-header_14tde_24,._modal-body_14tde_25{padding-right:15px}body.dark ._btn-refresh_14tde_29{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px} ');
(async function (Dv, mP, f, gS, SP, $P, framerMotion) {
'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 gS__namespace = /*#__PURE__*/_interopNamespaceDefault(gS);
var dP=Object.defineProperty;var fP=(e,t,n)=>t in e?dP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ct=(e,t,n)=>(fP(e,typeof t!="symbol"?t+"":t,n),n),Hf=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var pt=(e,t,n)=>(Hf(e,t,"read from private field"),n?n.call(e):t.get(e)),ar=(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);},Zn=(e,t,n,r)=>(Hf(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Wf=(e,t,n,r)=>({set _(o){Zn(e,t,o,n);},get _(){return pt(e,t,r)}}),dn=(e,t,n)=>(Hf(e,t,"access private method"),n);var ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function EP(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype;}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}});}),n}function OP(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 Fv=OP;function IP(){this.__data__=[],this.size=0;}var PP=IP;function MP(e,t){return e===t||e!==e&&t!==t}var Bv=MP,RP=Bv;function _P(e,t){for(var n=e.length;n--;)if(RP(e[n][0],t))return n;return -1}var ld=_P,NP=ld,TP=Array.prototype,LP=TP.splice;function kP(e){var t=this.__data__,n=NP(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():LP.call(t,n,1),--this.size,!0}var AP=kP,jP=ld;function DP(e){var t=this.__data__,n=jP(t,e);return n<0?void 0:t[n][1]}var zP=DP,FP=ld;function BP(e){return FP(this.__data__,e)>-1}var HP=BP,WP=ld;function VP(e,t){var n=this.__data__,r=WP(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var GP=VP,KP=PP,UP=AP,qP=zP,XP=HP,YP=GP;function zi(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]);}}zi.prototype.clear=KP;zi.prototype.delete=UP;zi.prototype.get=qP;zi.prototype.has=XP;zi.prototype.set=YP;var sd=zi,ZP=sd;function QP(){this.__data__=new ZP,this.size=0;}var JP=QP;function eM(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var tM=eM;function nM(e){return this.__data__.get(e)}var rM=nM;function oM(e){return this.__data__.has(e)}var aM=oM,iM=typeof ui=="object"&&ui&&ui.Object===Object&&ui,vS=iM,lM=vS,sM=typeof self=="object"&&self&&self.Object===Object&&self,cM=lM||sM||Function("return this")(),no=cM,uM=no,dM=uM.Symbol,Fi=dM,Cb=Fi,hS=Object.prototype,fM=hS.hasOwnProperty,mM=hS.toString,dl=Cb?Cb.toStringTag:void 0;function gM(e){var t=fM.call(e,dl),n=e[dl];try{e[dl]=void 0;var r=!0;}catch{}var o=mM.call(e);return r&&(t?e[dl]=n:delete e[dl]),o}var vM=gM,hM=Object.prototype,pM=hM.toString;function bM(e){return pM.call(e)}var yM=bM,Sb=Fi,CM=vM,SM=yM,$M="[object Null]",wM="[object Undefined]",$b=Sb?Sb.toStringTag:void 0;function xM(e){return e==null?e===void 0?wM:$M:$b&&$b in Object(e)?CM(e):SM(e)}var Bi=xM;function EM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Co=EM,OM=Bi,IM=Co,PM="[object AsyncFunction]",MM="[object Function]",RM="[object GeneratorFunction]",_M="[object Proxy]";function NM(e){if(!IM(e))return !1;var t=OM(e);return t==MM||t==RM||t==PM||t==_M}var pS=NM,TM=no,LM=TM["__core-js_shared__"],kM=LM,Vf=kM,wb=function(){var e=/[^.]+$/.exec(Vf&&Vf.keys&&Vf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function AM(e){return !!wb&&wb in e}var jM=AM,DM=Function.prototype,zM=DM.toString;function FM(e){if(e!=null){try{return zM.call(e)}catch{}try{return e+""}catch{}}return ""}var bS=FM,BM=pS,HM=jM,WM=Co,VM=bS,KM=/[\\^$.*+?()[\]{}|]/g,UM=/^\[object .+?Constructor\]$/,qM=Function.prototype,XM=Object.prototype,YM=qM.toString,ZM=XM.hasOwnProperty,QM=RegExp("^"+YM.call(ZM).replace(KM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function JM(e){if(!WM(e)||HM(e))return !1;var t=BM(e)?QM:UM;return t.test(VM(e))}var eR=JM;function tR(e,t){return e==null?void 0:e[t]}var nR=tR,rR=eR,oR=nR;function aR(e,t){var n=oR(e,t);return rR(n)?n:void 0}var Aa=aR,iR=Aa,lR=no,sR=iR(lR,"Map"),Hv=sR,cR=Aa,uR=cR(Object,"create"),cd=uR,xb=cd;function dR(){this.__data__=xb?xb(null):{},this.size=0;}var fR=dR;function mR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gR=mR,vR=cd,hR="__lodash_hash_undefined__",pR=Object.prototype,bR=pR.hasOwnProperty;function yR(e){var t=this.__data__;if(vR){var n=t[e];return n===hR?void 0:n}return bR.call(t,e)?t[e]:void 0}var CR=yR,SR=cd,$R=Object.prototype,wR=$R.hasOwnProperty;function xR(e){var t=this.__data__;return SR?t[e]!==void 0:wR.call(t,e)}var ER=xR,OR=cd,IR="__lodash_hash_undefined__";function PR(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=OR&&t===void 0?IR:t,this}var MR=PR,RR=fR,_R=gR,NR=CR,TR=ER,LR=MR;function Hi(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]);}}Hi.prototype.clear=RR;Hi.prototype.delete=_R;Hi.prototype.get=NR;Hi.prototype.has=TR;Hi.prototype.set=LR;var kR=Hi,Eb=kR,AR=sd,jR=Hv;function DR(){this.size=0,this.__data__={hash:new Eb,map:new(jR||AR),string:new Eb};}var zR=DR;function FR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var BR=FR,HR=BR;function WR(e,t){var n=e.__data__;return HR(t)?n[typeof t=="string"?"string":"hash"]:n.map}var ud=WR,VR=ud;function GR(e){var t=VR(this,e).delete(e);return this.size-=t?1:0,t}var KR=GR,UR=ud;function qR(e){return UR(this,e).get(e)}var XR=qR,YR=ud;function ZR(e){return YR(this,e).has(e)}var QR=ZR,JR=ud;function e_(e,t){var n=JR(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var t_=e_,n_=zR,r_=KR,o_=XR,a_=QR,i_=t_;function Wi(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]);}}Wi.prototype.clear=n_;Wi.prototype.delete=r_;Wi.prototype.get=o_;Wi.prototype.has=a_;Wi.prototype.set=i_;var Wv=Wi,l_=sd,s_=Hv,c_=Wv,u_=200;function d_(e,t){var n=this.__data__;if(n instanceof l_){var r=n.__data__;if(!s_||r.length<u_-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new c_(r);}return n.set(e,t),this.size=n.size,this}var f_=d_,m_=sd,g_=JP,v_=tM,h_=rM,p_=aM,b_=f_;function Vi(e){var t=this.__data__=new m_(e);this.size=t.size;}Vi.prototype.clear=g_;Vi.prototype.delete=v_;Vi.prototype.get=h_;Vi.prototype.has=p_;Vi.prototype.set=b_;var Vv=Vi;function y_(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var C_=y_,S_=Aa,$_=function(){try{var e=S_(Object,"defineProperty");return e({},"",{}),e}catch{}}(),yS=$_,Ob=yS;function w_(e,t,n){t=="__proto__"&&Ob?Ob(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}var CS=w_,x_=CS,E_=Bv,O_=Object.prototype,I_=O_.hasOwnProperty;function P_(e,t,n){var r=e[t];(!(I_.call(e,t)&&E_(r,n))||n===void 0&&!(t in e))&&x_(e,t,n);}var Gv=P_,M_=Gv,R_=CS;function __(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var l=t[a],s=r?r(n[l],e[l],l,n,e):void 0;s===void 0&&(s=e[l]),o?R_(n,l,s):M_(n,l,s);}return n}var Es=__;function N_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var T_=N_;function L_(e){return e!=null&&typeof e=="object"}var ra=L_,k_=Bi,A_=ra,j_="[object Arguments]";function D_(e){return A_(e)&&k_(e)==j_}var z_=D_,Ib=z_,F_=ra,SS=Object.prototype,B_=SS.hasOwnProperty,H_=SS.propertyIsEnumerable,W_=Ib(function(){return arguments}())?Ib:function(e){return F_(e)&&B_.call(e,"callee")&&!H_.call(e,"callee")},Kv=W_,V_=Array.isArray,ro=V_,su={exports:{}};function G_(){return !1}var K_=G_;su.exports;(function(e,t){var n=no,r=K_,o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,l=i?n.Buffer:void 0,s=l?l.isBuffer:void 0,c=s||r;e.exports=c;})(su,su.exports);var Uv=su.exports,U_=9007199254740991,q_=/^(?:0|[1-9]\d*)$/;function X_(e,t){var n=typeof e;return t=t??U_,!!t&&(n=="number"||n!="symbol"&&q_.test(e))&&e>-1&&e%1==0&&e<t}var qv=X_,Y_=9007199254740991;function Z_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Y_}var Xv=Z_,Q_=Bi,J_=Xv,eN=ra,tN="[object Arguments]",nN="[object Array]",rN="[object Boolean]",oN="[object Date]",aN="[object Error]",iN="[object Function]",lN="[object Map]",sN="[object Number]",cN="[object Object]",uN="[object RegExp]",dN="[object Set]",fN="[object String]",mN="[object WeakMap]",gN="[object ArrayBuffer]",vN="[object DataView]",hN="[object Float32Array]",pN="[object Float64Array]",bN="[object Int8Array]",yN="[object Int16Array]",CN="[object Int32Array]",SN="[object Uint8Array]",$N="[object Uint8ClampedArray]",wN="[object Uint16Array]",xN="[object Uint32Array]",an={};an[hN]=an[pN]=an[bN]=an[yN]=an[CN]=an[SN]=an[$N]=an[wN]=an[xN]=!0;an[tN]=an[nN]=an[gN]=an[rN]=an[vN]=an[oN]=an[aN]=an[iN]=an[lN]=an[sN]=an[cN]=an[uN]=an[dN]=an[fN]=an[mN]=!1;function EN(e){return eN(e)&&J_(e.length)&&!!an[Q_(e)]}var ON=EN;function IN(e){return function(t){return e(t)}}var Yv=IN,cu={exports:{}};cu.exports;(function(e,t){var n=vS,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,l=function(){try{var s=o&&o.require&&o.require("util").types;return s||i&&i.binding&&i.binding("util")}catch{}}();e.exports=l;})(cu,cu.exports);var Zv=cu.exports,PN=ON,MN=Yv,Pb=Zv,Mb=Pb&&Pb.isTypedArray,RN=Mb?MN(Mb):PN,$S=RN,_N=T_,NN=Kv,TN=ro,LN=Uv,kN=qv,AN=$S,jN=Object.prototype,DN=jN.hasOwnProperty;function zN(e,t){var n=TN(e),r=!n&&NN(e),o=!n&&!r&&LN(e),a=!n&&!r&&!o&&AN(e),i=n||r||o||a,l=i?_N(e.length,String):[],s=l.length;for(var c in e)(t||DN.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||kN(c,s)))&&l.push(c);return l}var wS=zN,FN=Object.prototype;function BN(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||FN;return e===n}var Qv=BN;function HN(e,t){return function(n){return e(t(n))}}var xS=HN,WN=xS,VN=WN(Object.keys,Object),GN=VN,KN=Qv,UN=GN,qN=Object.prototype,XN=qN.hasOwnProperty;function YN(e){if(!KN(e))return UN(e);var t=[];for(var n in Object(e))XN.call(e,n)&&n!="constructor"&&t.push(n);return t}var ZN=YN,QN=pS,JN=Xv;function eT(e){return e!=null&&JN(e.length)&&!QN(e)}var ES=eT,tT=wS,nT=ZN,rT=ES;function oT(e){return rT(e)?tT(e):nT(e)}var Os=oT,aT=Es,iT=Os;function lT(e,t){return e&&aT(t,iT(t),e)}var sT=lT;function cT(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var uT=cT,dT=Co,fT=Qv,mT=uT,gT=Object.prototype,vT=gT.hasOwnProperty;function hT(e){if(!dT(e))return mT(e);var t=fT(e),n=[];for(var r in e)r=="constructor"&&(t||!vT.call(e,r))||n.push(r);return n}var pT=hT,bT=wS,yT=pT,CT=ES;function ST(e){return CT(e)?bT(e,!0):yT(e)}var Jv=ST,$T=Es,wT=Jv;function xT(e,t){return e&&$T(t,wT(t),e)}var ET=xT,uu={exports:{}};uu.exports;(function(e,t){var n=no,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,l=i?i.allocUnsafe:void 0;function s(c,u){if(u)return c.slice();var d=c.length,m=l?l(d):new c.constructor(d);return c.copy(m),m}e.exports=s;})(uu,uu.exports);var OT=uu.exports;function IT(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var OS=IT;function PT(e,t){for(var n=-1,r=e==null?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i);}return a}var MT=PT;function RT(){return []}var IS=RT,_T=MT,NT=IS,TT=Object.prototype,LT=TT.propertyIsEnumerable,Rb=Object.getOwnPropertySymbols,kT=Rb?function(e){return e==null?[]:(e=Object(e),_T(Rb(e),function(t){return LT.call(e,t)}))}:NT,eh=kT,AT=Es,jT=eh;function DT(e,t){return AT(e,jT(e),t)}var zT=DT;function FT(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var th=FT,BT=xS,HT=BT(Object.getPrototypeOf,Object),nh=HT,WT=th,VT=nh,GT=eh,KT=IS,UT=Object.getOwnPropertySymbols,qT=UT?function(e){for(var t=[];e;)WT(t,GT(e)),e=VT(e);return t}:KT,PS=qT,XT=Es,YT=PS;function ZT(e,t){return XT(e,YT(e),t)}var QT=ZT,JT=th,e3=ro;function t3(e,t,n){var r=t(e);return e3(e)?r:JT(r,n(e))}var MS=t3,n3=MS,r3=eh,o3=Os;function a3(e){return n3(e,o3,r3)}var RS=a3,i3=MS,l3=PS,s3=Jv;function c3(e){return i3(e,s3,l3)}var _S=c3,u3=Aa,d3=no,f3=u3(d3,"DataView"),m3=f3,g3=Aa,v3=no,h3=g3(v3,"Promise"),p3=h3,b3=Aa,y3=no,C3=b3(y3,"Set"),NS=C3,S3=Aa,$3=no,w3=S3($3,"WeakMap"),x3=w3,Jm=m3,eg=Hv,tg=p3,ng=NS,rg=x3,TS=Bi,Gi=bS,_b="[object Map]",E3="[object Object]",Nb="[object Promise]",Tb="[object Set]",Lb="[object WeakMap]",kb="[object DataView]",O3=Gi(Jm),I3=Gi(eg),P3=Gi(tg),M3=Gi(ng),R3=Gi(rg),ca=TS;(Jm&&ca(new Jm(new ArrayBuffer(1)))!=kb||eg&&ca(new eg)!=_b||tg&&ca(tg.resolve())!=Nb||ng&&ca(new ng)!=Tb||rg&&ca(new rg)!=Lb)&&(ca=function(e){var t=TS(e),n=t==E3?e.constructor:void 0,r=n?Gi(n):"";if(r)switch(r){case O3:return kb;case I3:return _b;case P3:return Nb;case M3:return Tb;case R3:return Lb}return t});var dd=ca,_3=Object.prototype,N3=_3.hasOwnProperty;function T3(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&N3.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var L3=T3,k3=no,A3=k3.Uint8Array,LS=A3,Ab=LS;function j3(e){var t=new e.constructor(e.byteLength);return new Ab(t).set(new Ab(e)),t}var rh=j3,D3=rh;function z3(e,t){var n=t?D3(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var F3=z3,B3=/\w*$/;function H3(e){var t=new e.constructor(e.source,B3.exec(e));return t.lastIndex=e.lastIndex,t}var W3=H3,jb=Fi,Db=jb?jb.prototype:void 0,zb=Db?Db.valueOf:void 0;function V3(e){return zb?Object(zb.call(e)):{}}var G3=V3,K3=rh;function U3(e,t){var n=t?K3(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var q3=U3,X3=rh,Y3=F3,Z3=W3,Q3=G3,J3=q3,e4="[object Boolean]",t4="[object Date]",n4="[object Map]",r4="[object Number]",o4="[object RegExp]",a4="[object Set]",i4="[object String]",l4="[object Symbol]",s4="[object ArrayBuffer]",c4="[object DataView]",u4="[object Float32Array]",d4="[object Float64Array]",f4="[object Int8Array]",m4="[object Int16Array]",g4="[object Int32Array]",v4="[object Uint8Array]",h4="[object Uint8ClampedArray]",p4="[object Uint16Array]",b4="[object Uint32Array]";function y4(e,t,n){var r=e.constructor;switch(t){case s4:return X3(e);case e4:case t4:return new r(+e);case c4:return Y3(e,n);case u4:case d4:case f4:case m4:case g4:case v4:case h4:case p4:case b4:return J3(e,n);case n4:return new r;case r4:case i4:return new r(e);case o4:return Z3(e);case a4:return new r;case l4:return Q3(e)}}var C4=y4,S4=Co,Fb=Object.create,$4=function(){function e(){}return function(t){if(!S4(t))return {};if(Fb)return Fb(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),w4=$4,x4=w4,E4=nh,O4=Qv;function I4(e){return typeof e.constructor=="function"&&!O4(e)?x4(E4(e)):{}}var P4=I4,M4=dd,R4=ra,_4="[object Map]";function N4(e){return R4(e)&&M4(e)==_4}var T4=N4,L4=T4,k4=Yv,Bb=Zv,Hb=Bb&&Bb.isMap,A4=Hb?k4(Hb):L4,j4=A4,D4=dd,z4=ra,F4="[object Set]";function B4(e){return z4(e)&&D4(e)==F4}var H4=B4,W4=H4,V4=Yv,Wb=Zv,Vb=Wb&&Wb.isSet,G4=Vb?V4(Vb):W4,K4=G4,U4=Vv,q4=C_,X4=Gv,Y4=sT,Z4=ET,Q4=OT,J4=OS,eL=zT,tL=QT,nL=RS,rL=_S,oL=dd,aL=L3,iL=C4,lL=P4,sL=ro,cL=Uv,uL=j4,dL=Co,fL=K4,mL=Os,gL=Jv,vL=1,hL=2,pL=4,kS="[object Arguments]",bL="[object Array]",yL="[object Boolean]",CL="[object Date]",SL="[object Error]",AS="[object Function]",$L="[object GeneratorFunction]",wL="[object Map]",xL="[object Number]",jS="[object Object]",EL="[object RegExp]",OL="[object Set]",IL="[object String]",PL="[object Symbol]",ML="[object WeakMap]",RL="[object ArrayBuffer]",_L="[object DataView]",NL="[object Float32Array]",TL="[object Float64Array]",LL="[object Int8Array]",kL="[object Int16Array]",AL="[object Int32Array]",jL="[object Uint8Array]",DL="[object Uint8ClampedArray]",zL="[object Uint16Array]",FL="[object Uint32Array]",Jt={};Jt[kS]=Jt[bL]=Jt[RL]=Jt[_L]=Jt[yL]=Jt[CL]=Jt[NL]=Jt[TL]=Jt[LL]=Jt[kL]=Jt[AL]=Jt[wL]=Jt[xL]=Jt[jS]=Jt[EL]=Jt[OL]=Jt[IL]=Jt[PL]=Jt[jL]=Jt[DL]=Jt[zL]=Jt[FL]=!0;Jt[SL]=Jt[AS]=Jt[ML]=!1;function Bc(e,t,n,r,o,a){var i,l=t&vL,s=t&hL,c=t&pL;if(n&&(i=o?n(e,r,o,a):n(e)),i!==void 0)return i;if(!dL(e))return e;var u=sL(e);if(u){if(i=aL(e),!l)return J4(e,i)}else {var d=oL(e),m=d==AS||d==$L;if(cL(e))return Q4(e,l);if(d==jS||d==kS||m&&!o){if(i=s||m?{}:lL(e),!l)return s?tL(e,Z4(i,e)):eL(e,Y4(i,e))}else {if(!Jt[d])return o?e:{};i=iL(e,d,l);}}a||(a=new U4);var g=a.get(e);if(g)return g;a.set(e,i),fL(e)?e.forEach(function(p){i.add(Bc(p,t,n,p,e,a));}):uL(e)&&e.forEach(function(p,b){i.set(b,Bc(p,t,n,b,e,a));});var v=c?s?rL:nL:s?gL:mL,h=u?void 0:v(e);return q4(h||e,function(p,b){h&&(b=p,p=e[b]),X4(i,b,Bc(p,t,n,b,e,a));}),i}var BL=Bc,HL=Bi,WL=ra,VL="[object Symbol]";function GL(e){return typeof e=="symbol"||WL(e)&&HL(e)==VL}var fd=GL,KL=ro,UL=fd,qL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,XL=/^\w*$/;function YL(e,t){if(KL(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||UL(e)?!0:XL.test(e)||!qL.test(e)||t!=null&&e in Object(t)}var oh=YL,DS=Wv,ZL="Expected a function";function ah(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ZL);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(ah.Cache||DS),n}ah.Cache=DS;var QL=ah,JL=QL,ek=500;function tk(e){var t=JL(e,function(r){return n.size===ek&&n.clear(),r}),n=t.cache;return t}var nk=tk,rk=nk,ok=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ak=/\\(\\)?/g,ik=rk(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ok,function(n,r,o,a){t.push(o?a.replace(ak,"$1"):r||n);}),t}),lk=ik,Gb=Fi,sk=Fv,ck=ro,uk=fd,dk=1/0,Kb=Gb?Gb.prototype:void 0,Ub=Kb?Kb.toString:void 0;function zS(e){if(typeof e=="string")return e;if(ck(e))return sk(e,zS)+"";if(uk(e))return Ub?Ub.call(e):"";var t=e+"";return t=="0"&&1/e==-dk?"-0":t}var fk=zS,mk=fk;function gk(e){return e==null?"":mk(e)}var vk=gk,hk=ro,pk=oh,bk=lk,yk=vk;function Ck(e,t){return hk(e)?e:pk(e,t)?[e]:bk(yk(e))}var Ki=Ck;function Sk(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var $k=Sk,wk=fd,xk=1/0;function Ek(e){if(typeof e=="string"||wk(e))return e;var t=e+"";return t=="0"&&1/e==-xk?"-0":t}var Ui=Ek,Ok=Ki,Ik=Ui;function Pk(e,t){t=Ok(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ik(t[n++])];return n&&n==r?e:void 0}var md=Pk;function Mk(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}var Rk=Mk,_k=md,Nk=Rk;function Tk(e,t){return t.length<2?e:_k(e,Nk(t,0,-1))}var Lk=Tk,kk=Ki,Ak=$k,jk=Lk,Dk=Ui;function zk(e,t){return t=kk(t,e),e=jk(e,t),e==null||delete e[Dk(Ak(t))]}var Fk=zk,Bk=Bi,Hk=nh,Wk=ra,Vk="[object Object]",Gk=Function.prototype,Kk=Object.prototype,FS=Gk.toString,Uk=Kk.hasOwnProperty,qk=FS.call(Object);function Xk(e){if(!Wk(e)||Bk(e)!=Vk)return !1;var t=Hk(e);if(t===null)return !0;var n=Uk.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&FS.call(n)==qk}var Yk=Xk,Zk=Yk;function Qk(e){return Zk(e)?void 0:e}var Jk=Qk,qb=Fi,eA=Kv,tA=ro,Xb=qb?qb.isConcatSpreadable:void 0;function nA(e){return tA(e)||eA(e)||!!(Xb&&e&&e[Xb])}var rA=nA,oA=th,aA=rA;function BS(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=aA),o||(o=[]);++a<i;){var l=e[a];t>0&&n(l)?t>1?BS(l,t-1,n,r,o):oA(o,l):r||(o[o.length]=l);}return o}var iA=BS,lA=iA;function sA(e){var t=e==null?0:e.length;return t?lA(e,1):[]}var cA=sA;function uA(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)}var dA=uA,fA=dA,Yb=Math.max;function mA(e,t,n){return t=Yb(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=Yb(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(i),fA(e,this,l)}}var gA=mA;function vA(e){return function(){return e}}var hA=vA;function pA(e){return e}var HS=pA,bA=hA,Zb=yS,yA=HS,CA=Zb?function(e,t){return Zb(e,"toString",{configurable:!0,enumerable:!1,value:bA(t),writable:!0})}:yA,SA=CA,$A=800,wA=16,xA=Date.now;function EA(e){var t=0,n=0;return function(){var r=xA(),o=wA-(r-n);if(n=r,o>0){if(++t>=$A)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var OA=EA,IA=SA,PA=OA,MA=PA(IA),RA=MA,_A=cA,NA=gA,TA=RA;function LA(e){return TA(NA(e,void 0,_A),e+"")}var WS=LA,kA=Fv,AA=BL,jA=Fk,DA=Ki,zA=Es,FA=Jk,BA=WS,HA=_S,WA=1,VA=2,GA=4,KA=BA(function(e,t){var n={};if(e==null)return n;var r=!1;t=kA(t,function(a){return a=DA(a,e),r||(r=a.length>1),a}),zA(e,HA(e),n),r&&(n=AA(n,WA|VA|GA,FA));for(var o=t.length;o--;)jA(n,t[o]);return n}),UA=KA;const qA=Bn(UA);var XA=no,YA=function(){return XA.Date.now()},ZA=YA,QA=/\s/;function JA(e){for(var t=e.length;t--&&QA.test(e.charAt(t)););return t}var e5=JA,t5=e5,n5=/^\s+/;function r5(e){return e&&e.slice(0,t5(e)+1).replace(n5,"")}var o5=r5,a5=o5,Qb=Co,i5=fd,Jb=NaN,l5=/^[-+]0x[0-9a-f]+$/i,s5=/^0b[01]+$/i,c5=/^0o[0-7]+$/i,u5=parseInt;function d5(e){if(typeof e=="number")return e;if(i5(e))return Jb;if(Qb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qb(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=a5(e);var n=s5.test(e);return n||c5.test(e)?u5(e.slice(2),n?2:8):l5.test(e)?Jb:+e}var VS=d5,f5=Co,Gf=ZA,e0=VS,m5="Expected a function",g5=Math.max,v5=Math.min;function h5(e,t,n){var r,o,a,i,l,s,c=0,u=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(m5);t=e0(t)||0,f5(n)&&(u=!!n.leading,d="maxWait"in n,a=d?g5(e0(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m);function g($){var S=r,O=o;return r=o=void 0,c=$,i=e.apply(O,S),i}function v($){return c=$,l=setTimeout(b,t),u?g($):i}function h($){var S=$-s,O=$-c,E=t-S;return d?v5(E,a-O):E}function p($){var S=$-s,O=$-c;return s===void 0||S>=t||S<0||d&&O>=a}function b(){var $=Gf();if(p($))return y($);l=setTimeout(b,h($));}function y($){return l=void 0,m&&r?g($):(r=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),c=0,r=s=o=l=void 0;}function w(){return l===void 0?i:y(Gf())}function x(){var $=Gf(),S=p($);if(r=arguments,o=this,s=$,S){if(l===void 0)return v(s);if(d)return clearTimeout(l),l=setTimeout(b,t),g(s)}return l===void 0&&(l=setTimeout(b,t)),i}return x.cancel=C,x.flush=w,x}var GS=h5;const p5=Bn(GS);var b5=GS,y5=Co,C5="Expected a function";function S5(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(C5);return y5(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),b5(e,t,{leading:r,maxWait:t,trailing:o})}var $5=S5;const KS=Bn($5);var w5=Gv,x5=Ki,E5=qv,t0=Co,O5=Ui;function I5(e,t,n,r){if(!t0(e))return e;t=x5(t,e);for(var o=-1,a=t.length,i=a-1,l=e;l!=null&&++o<a;){var s=O5(t[o]),c=n;if(s==="__proto__"||s==="constructor"||s==="prototype")return e;if(o!=i){var u=l[s];c=r?r(u,s,l):void 0,c===void 0&&(c=t0(u)?u:E5(t[o+1])?[]:{});}w5(l,s,c),l=l[s];}return e}var P5=I5,M5=md,R5=P5,_5=Ki;function N5(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],l=M5(e,i);n(l,i)&&R5(a,_5(i,e),l);}return a}var T5=N5;function L5(e,t){return e!=null&&t in Object(e)}var k5=L5,A5=Ki,j5=Kv,D5=ro,z5=qv,F5=Xv,B5=Ui;function H5(e,t,n){t=A5(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var i=B5(t[r]);if(!(a=e!=null&&n(e,i)))break;e=e[i];}return a||++r!=o?a:(o=e==null?0:e.length,!!o&&F5(o)&&z5(i,o)&&(D5(e)||j5(e)))}var W5=H5,V5=k5,G5=W5;function K5(e,t){return e!=null&&G5(e,t,V5)}var US=K5,U5=T5,q5=US;function X5(e,t){return U5(e,t,function(n,r){return q5(e,r)})}var Y5=X5,Z5=Y5,Q5=WS,J5=Q5(function(e,t){return e==null?{}:Z5(e,t)}),ej=J5;const ih=Bn(ej);var og={exports:{}},Kf,n0;function tj(){if(n0)return Kf;n0=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,a=r*365.25;Kf=function(u,d){d=d||{};var m=typeof u;if(m==="string"&&u.length>0)return i(u);if(m==="number"&&isFinite(u))return d.long?s(u):l(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function i(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 m=parseFloat(d[1]),g=(d[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return m*a;case"weeks":case"week":case"w":return m*o;case"days":case"day":case"d":return m*r;case"hours":case"hour":case"hrs":case"hr":case"h":return m*n;case"minutes":case"minute":case"mins":case"min":case"m":return m*t;case"seconds":case"second":case"secs":case"sec":case"s":return m*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function l(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 s(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,m,g){var v=d>=m*1.5;return Math.round(u/m)+" "+g+(v?"s":"")}return Kf}function nj(e){n.debug=n,n.default=n,n.coerce=s,n.disable=a,n.enable=o,n.enabled=i,n.humanize=tj(),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 m=0;m<u.length;m++)d=(d<<5)-d+u.charCodeAt(m),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,m=null,g,v;function h(...p){if(!h.enabled)return;const b=h,y=Number(new Date),C=y-(d||y);b.diff=C,b.prev=d,b.curr=y,d=y,p[0]=n.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let w=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,($,S)=>{if($==="%%")return "%";w++;const O=n.formatters[S];if(typeof O=="function"){const E=p[w];$=O.call(b,E),p.splice(w,1),w--;}return $}),n.formatArgs.call(b,p),(b.log||n.log).apply(b,p);}return h.namespace=u,h.useColors=n.useColors(),h.color=n.selectColor(u),h.extend=r,h.destroy=n.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(g!==n.namespaces&&(g=n.namespaces,v=n.enabled(u)),v),set:p=>{m=p;}}),typeof n.init=="function"&&n.init(h),h}function r(u,d){const m=n(this.namespace+(typeof d>"u"?":":d)+u);return m.log=this.log,m}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const m=(typeof u=="string"?u:"").split(/[\s,]+/),g=m.length;for(d=0;d<g;d++)m[d]&&(u=m[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")));}function a(){const u=[...n.names.map(l),...n.skips.map(l).map(d=>"-"+d)].join(",");return n.enable(""),u}function i(u){if(u[u.length-1]==="*")return !0;let d,m;for(d=0,m=n.skips.length;d<m;d++)if(n.skips[d].test(u))return !1;for(d=0,m=n.names.length;d<m;d++)if(n.names[d].test(u))return !0;return !1}function l(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function s(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 rj=nj;(function(e,t){var n={};t.formatArgs=o,t.save=a,t.load=i,t.useColors=r,t.storage=l(),t.destroy=(()=>{let c=!1;return ()=>{c||(c=!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 r(){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 o(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;c.splice(1,0,u,"color: inherit");let d=0,m=0;c[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(d++,g==="%c"&&(m=d));}),c.splice(m,0,u);}t.log=console.debug||console.log||(()=>{});function a(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug");}catch{}}function i(){let c;try{c=t.storage.getItem("debug");}catch{}return !c&&typeof process<"u"&&"env"in process&&(c=n.DEBUG),c}function l(){try{return localStorage}catch{}}e.exports=rj(t);const{formatters:s}=e.exports;s.j=function(c){try{return JSON.stringify(c)}catch(u){return "[UnexpectedJSONParseError]: "+u.message}};})(og,og.exports);var oj=og.exports;const aj=Bn(oj),mn="bilibili-app-recommend",qS="bilibili_app_recommend",To=aj(mn),XS="https://api.bilibili.com",YS="https://app.bilibili.com",Si={appkey:"4409e2ce8ffd12b8",appsec:"59b43e04ad6965f34319062b478f83dd"},Zo=`${mn}-root`,gd="请求失败, 请重试 !!!",lh="操作失败, 请重试 !!!",ij=location.hostname,du=location.pathname||"",ZS=ij.endsWith("bilibili.com"),vd=ZS&&(du==="/"||du==="/index.html"),lj=ZS&&(du.startsWith("/video/")||du.startsWith("/list/watchlater"));let QS=!1;function sj(e){QS=e;}var Sa=(e=>(e.android="android",e.ipad="ipad",e))(Sa||{}),Nn=(e=>(e.app="app",e.pc="pc",e.dynamic="dynamic",e.watchlater="watchlater",e.fav="fav",e.popularGeneral="popular-general",e.popularWeekly="popular-weekly",e.separator="separator",e))(Nn||{}),JS={exports:{}},e$={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],o=0,a=0;o<n.length;o++,a+=8)r[a>>>5]|=n[o]<<24-a%32;return r},wordsToBytes:function(n){for(var r=[],o=0;o<n.length*32;o+=8)r.push(n[o>>>5]>>>24-o%32&255);return r},bytesToHex:function(n){for(var r=[],o=0;o<n.length;o++)r.push((n[o]>>>4).toString(16)),r.push((n[o]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],o=0;o<n.length;o+=2)r.push(parseInt(n.substr(o,2),16));return r},bytesToBase64:function(n){for(var r=[],o=0;o<n.length;o+=3)for(var a=n[o]<<16|n[o+1]<<8|n[o+2],i=0;i<4;i++)o*8+i*6<=n.length*8?r.push(e.charAt(a>>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],o=0,a=0;o<n.length;a=++o%4)a!=0&&r.push((e.indexOf(n.charAt(o-1))&Math.pow(2,-2*a+8)-1)<<a*2|e.indexOf(n.charAt(o))>>>6-a*2);return r}};e$.exports=t;})();var cj=e$.exports,ag={utf8:{stringToBytes:function(e){return ag.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(ag.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},r0=ag;/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var uj=function(e){return e!=null&&(t$(e)||dj(e)||!!e._isBuffer)};function t$(e){return !!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function dj(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&t$(e.slice(0,0))}(function(){var e=cj,t=r0.utf8,n=uj,r=r0.bin,o=function(a,i){a.constructor==String?i&&i.encoding==="binary"?a=r.stringToBytes(a):a=t.stringToBytes(a):n(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());for(var l=e.bytesToWords(a),s=a.length*8,c=1732584193,u=-271733879,d=-1732584194,m=271733878,g=0;g<l.length;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360;l[s>>>5]|=128<<s%32,l[(s+64>>>9<<4)+14]=s;for(var v=o._ff,h=o._gg,p=o._hh,b=o._ii,g=0;g<l.length;g+=16){var y=c,C=u,w=d,x=m;c=v(c,u,d,m,l[g+0],7,-680876936),m=v(m,c,u,d,l[g+1],12,-389564586),d=v(d,m,c,u,l[g+2],17,606105819),u=v(u,d,m,c,l[g+3],22,-1044525330),c=v(c,u,d,m,l[g+4],7,-176418897),m=v(m,c,u,d,l[g+5],12,1200080426),d=v(d,m,c,u,l[g+6],17,-1473231341),u=v(u,d,m,c,l[g+7],22,-45705983),c=v(c,u,d,m,l[g+8],7,1770035416),m=v(m,c,u,d,l[g+9],12,-1958414417),d=v(d,m,c,u,l[g+10],17,-42063),u=v(u,d,m,c,l[g+11],22,-1990404162),c=v(c,u,d,m,l[g+12],7,1804603682),m=v(m,c,u,d,l[g+13],12,-40341101),d=v(d,m,c,u,l[g+14],17,-1502002290),u=v(u,d,m,c,l[g+15],22,1236535329),c=h(c,u,d,m,l[g+1],5,-165796510),m=h(m,c,u,d,l[g+6],9,-1069501632),d=h(d,m,c,u,l[g+11],14,643717713),u=h(u,d,m,c,l[g+0],20,-373897302),c=h(c,u,d,m,l[g+5],5,-701558691),m=h(m,c,u,d,l[g+10],9,38016083),d=h(d,m,c,u,l[g+15],14,-660478335),u=h(u,d,m,c,l[g+4],20,-405537848),c=h(c,u,d,m,l[g+9],5,568446438),m=h(m,c,u,d,l[g+14],9,-1019803690),d=h(d,m,c,u,l[g+3],14,-187363961),u=h(u,d,m,c,l[g+8],20,1163531501),c=h(c,u,d,m,l[g+13],5,-1444681467),m=h(m,c,u,d,l[g+2],9,-51403784),d=h(d,m,c,u,l[g+7],14,1735328473),u=h(u,d,m,c,l[g+12],20,-1926607734),c=p(c,u,d,m,l[g+5],4,-378558),m=p(m,c,u,d,l[g+8],11,-2022574463),d=p(d,m,c,u,l[g+11],16,1839030562),u=p(u,d,m,c,l[g+14],23,-35309556),c=p(c,u,d,m,l[g+1],4,-1530992060),m=p(m,c,u,d,l[g+4],11,1272893353),d=p(d,m,c,u,l[g+7],16,-155497632),u=p(u,d,m,c,l[g+10],23,-1094730640),c=p(c,u,d,m,l[g+13],4,681279174),m=p(m,c,u,d,l[g+0],11,-358537222),d=p(d,m,c,u,l[g+3],16,-722521979),u=p(u,d,m,c,l[g+6],23,76029189),c=p(c,u,d,m,l[g+9],4,-640364487),m=p(m,c,u,d,l[g+12],11,-421815835),d=p(d,m,c,u,l[g+15],16,530742520),u=p(u,d,m,c,l[g+2],23,-995338651),c=b(c,u,d,m,l[g+0],6,-198630844),m=b(m,c,u,d,l[g+7],10,1126891415),d=b(d,m,c,u,l[g+14],15,-1416354905),u=b(u,d,m,c,l[g+5],21,-57434055),c=b(c,u,d,m,l[g+12],6,1700485571),m=b(m,c,u,d,l[g+3],10,-1894986606),d=b(d,m,c,u,l[g+10],15,-1051523),u=b(u,d,m,c,l[g+1],21,-2054922799),c=b(c,u,d,m,l[g+8],6,1873313359),m=b(m,c,u,d,l[g+15],10,-30611744),d=b(d,m,c,u,l[g+6],15,-1560198380),u=b(u,d,m,c,l[g+13],21,1309151649),c=b(c,u,d,m,l[g+4],6,-145523070),m=b(m,c,u,d,l[g+11],10,-1120210379),d=b(d,m,c,u,l[g+2],15,718787259),u=b(u,d,m,c,l[g+9],21,-343485551),c=c+y>>>0,u=u+C>>>0,d=d+w>>>0,m=m+x>>>0;}return e.endian([c,u,d,m])};o._ff=function(a,i,l,s,c,u,d){var m=a+(i&l|~i&s)+(c>>>0)+d;return (m<<u|m>>>32-u)+i},o._gg=function(a,i,l,s,c,u,d){var m=a+(i&s|l&~s)+(c>>>0)+d;return (m<<u|m>>>32-u)+i},o._hh=function(a,i,l,s,c,u,d){var m=a+(i^l^s)+(c>>>0)+d;return (m<<u|m>>>32-u)+i},o._ii=function(a,i,l,s,c,u,d){var m=a+(l^(i|~s))+(c>>>0)+d;return (m<<u|m>>>32-u)+i},o._blocksize=16,o._digestsize=16,JS.exports=function(a,i){if(a==null)throw new Error("Illegal argument "+a);var l=e.wordsToBytes(o(a,i));return i&&i.asBytes?l:i&&i.asString?r.bytesToString(l):e.bytesToHex(l)};})();var fj=JS.exports;const n$=Bn(fj);function r$(e,t,n){e.appkey=t;const r=new URLSearchParams(e);return r.sort(),n$(r.toString()+n)}var o$={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(ui,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",l="minute",s="hour",c="day",u="week",d="month",m="quarter",g="year",v="date",h="Invalid Date",p=/^(\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(k){var A=["th","st","nd","rd"],T=k%100;return "["+k+(A[(T-20)%10]||A[T]||A[0])+"]"}},C=function(k,A,T){var R=String(k);return !R||R.length>=A?k:""+Array(A+1-R.length).join(T)+k},w={s:C,z:function(k){var A=-k.utcOffset(),T=Math.abs(A),R=Math.floor(T/60),_=T%60;return (A<=0?"+":"-")+C(R,2,"0")+":"+C(_,2,"0")},m:function k(A,T){if(A.date()<T.date())return -k(T,A);var R=12*(T.year()-A.year())+(T.month()-A.month()),_=A.clone().add(R,d),D=T-_<0,z=A.clone().add(R+(D?-1:1),d);return +(-(R+(T-_)/(D?_-z:z-_))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return {M:d,y:g,w:u,d:c,D:v,h:s,m:l,s:i,ms:a,Q:m}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},x="en",$={};$[x]=y;var S="$isDayjsObject",O=function(k){return k instanceof N||!(!k||!k[S])},E=function k(A,T,R){var _;if(!A)return x;if(typeof A=="string"){var D=A.toLowerCase();$[D]&&(_=D),T&&($[D]=T,_=D);var z=A.split("-");if(!_&&z.length>1)return k(z[0])}else {var F=A.name;$[F]=A,_=F;}return !R&&_&&(x=_),_||!R&&x},I=function(k,A){if(O(k))return k.clone();var T=typeof A=="object"?A:{};return T.date=k,T.args=arguments,new N(T)},P=w;P.l=E,P.i=O,P.w=function(k,A){return I(k,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var N=function(){function k(T){this.$L=E(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[S]=!0;}var A=k.prototype;return A.parse=function(T){this.$d=function(R){var _=R.date,D=R.utc;if(_===null)return new Date(NaN);if(P.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var z=_.match(p);if(z){var F=z[2]-1||0,W=(z[7]||"0").substring(0,3);return D?new Date(Date.UTC(z[1],F,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)):new Date(z[1],F,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)}}return new Date(_)}(T),this.init();},A.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds();},A.$utils=function(){return P},A.isValid=function(){return this.$d.toString()!==h},A.isSame=function(T,R){var _=I(T);return this.startOf(R)<=_&&_<=this.endOf(R)},A.isAfter=function(T,R){return I(T)<this.startOf(R)},A.isBefore=function(T,R){return this.endOf(R)<I(T)},A.$g=function(T,R,_){return P.u(T)?this[R]:this.set(_,T)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(T,R){var _=this,D=!!P.u(R)||R,z=P.p(T),F=function(ce,Z){var ee=P.w(_.$u?Date.UTC(_.$y,Z,ce):new Date(_.$y,Z,ce),_);return D?ee:ee.endOf(c)},W=function(ce,Z){return P.w(_.toDate()[ce].apply(_.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(Z)),_)},V=this.$W,X=this.$M,q=this.$D,Q="set"+(this.$u?"UTC":"");switch(z){case g:return D?F(1,0):F(31,11);case d:return D?F(1,X):F(0,X+1);case u:var ue=this.$locale().weekStart||0,Y=(V<ue?V+7:V)-ue;return F(D?q-Y:q+(6-Y),X);case c:case v:return W(Q+"Hours",0);case s:return W(Q+"Minutes",1);case l:return W(Q+"Seconds",2);case i:return W(Q+"Milliseconds",3);default:return this.clone()}},A.endOf=function(T){return this.startOf(T,!1)},A.$set=function(T,R){var _,D=P.p(T),z="set"+(this.$u?"UTC":""),F=(_={},_[c]=z+"Date",_[v]=z+"Date",_[d]=z+"Month",_[g]=z+"FullYear",_[s]=z+"Hours",_[l]=z+"Minutes",_[i]=z+"Seconds",_[a]=z+"Milliseconds",_)[D],W=D===c?this.$D+(R-this.$W):R;if(D===d||D===g){var V=this.clone().set(v,1);V.$d[F](W),V.init(),this.$d=V.set(v,Math.min(this.$D,V.daysInMonth())).$d;}else F&&this.$d[F](W);return this.init(),this},A.set=function(T,R){return this.clone().$set(T,R)},A.get=function(T){return this[P.p(T)]()},A.add=function(T,R){var _,D=this;T=Number(T);var z=P.p(R),F=function(X){var q=I(D);return P.w(q.date(q.date()+Math.round(X*T)),D)};if(z===d)return this.set(d,this.$M+T);if(z===g)return this.set(g,this.$y+T);if(z===c)return F(1);if(z===u)return F(7);var W=(_={},_[l]=r,_[s]=o,_[i]=n,_)[z]||1,V=this.$d.getTime()+T*W;return P.w(V,this)},A.subtract=function(T,R){return this.add(-1*T,R)},A.format=function(T){var R=this,_=this.$locale();if(!this.isValid())return _.invalidDate||h;var D=T||"YYYY-MM-DDTHH:mm:ssZ",z=P.z(this),F=this.$H,W=this.$m,V=this.$M,X=_.weekdays,q=_.months,Q=_.meridiem,ue=function(Z,ee,ne,le){return Z&&(Z[ee]||Z(R,D))||ne[ee].slice(0,le)},Y=function(Z){return P.s(F%12||12,Z,"0")},ce=Q||function(Z,ee,ne){var le=Z<12?"AM":"PM";return ne?le.toLowerCase():le};return D.replace(b,function(Z,ee){return ee||function(ne){switch(ne){case"YY":return String(R.$y).slice(-2);case"YYYY":return P.s(R.$y,4,"0");case"M":return V+1;case"MM":return P.s(V+1,2,"0");case"MMM":return ue(_.monthsShort,V,q,3);case"MMMM":return ue(q,V);case"D":return R.$D;case"DD":return P.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return ue(_.weekdaysMin,R.$W,X,2);case"ddd":return ue(_.weekdaysShort,R.$W,X,3);case"dddd":return X[R.$W];case"H":return String(F);case"HH":return P.s(F,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return ce(F,W,!0);case"A":return ce(F,W,!1);case"m":return String(W);case"mm":return P.s(W,2,"0");case"s":return String(R.$s);case"ss":return P.s(R.$s,2,"0");case"SSS":return P.s(R.$ms,3,"0");case"Z":return z}return null}(Z)||z.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(T,R,_){var D,z=this,F=P.p(R),W=I(T),V=(W.utcOffset()-this.utcOffset())*r,X=this-W,q=function(){return P.m(z,W)};switch(F){case g:D=q()/12;break;case d:D=q();break;case m:D=q()/3;break;case u:D=(X-V)/6048e5;break;case c:D=(X-V)/864e5;break;case s:D=X/o;break;case l:D=X/r;break;case i:D=X/n;break;default:D=X;}return _?D:P.a(D)},A.daysInMonth=function(){return this.endOf(d).$D},A.$locale=function(){return $[this.$L]},A.locale=function(T,R){if(!T)return this.$L;var _=this.clone(),D=E(T,R,!0);return D&&(_.$L=D),_},A.clone=function(){return P.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},k}(),L=N.prototype;return I.prototype=L,[["$ms",a],["$s",i],["$m",l],["$H",s],["$W",c],["$M",d],["$y",g],["$D",v]].forEach(function(k){L[k[1]]=function(A){return this.$g(A,k[0],k[1])};}),I.extend=function(k,A){return k.$i||(k(A,N,I),k.$i=!0),I},I.locale=E,I.isDayjs=O,I.unix=function(k){return I(1e3*k)},I.en=$[x],I.Ls=$,I.p={},I});})(o$);var mj=o$.exports;const oa=Bn(mj);var $i=1e3,wi=$i*60,xi=wi*60,Ma=xi*24,gj=Ma*7,vj=Ma*365.25,hj=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return pj(e);if(n==="number"&&isFinite(e))return t.long?yj(e):bj(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function pj(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*vj;case"weeks":case"week":case"w":return n*gj;case"days":case"day":case"d":return n*Ma;case"hours":case"hour":case"hrs":case"hr":case"h":return n*xi;case"minutes":case"minute":case"mins":case"min":case"m":return n*wi;case"seconds":case"second":case"secs":case"sec":case"s":return n*$i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function bj(e){var t=Math.abs(e);return t>=Ma?Math.round(e/Ma)+"d":t>=xi?Math.round(e/xi)+"h":t>=wi?Math.round(e/wi)+"m":t>=$i?Math.round(e/$i)+"s":e+"ms"}function yj(e){var t=Math.abs(e);return t>=Ma?hc(e,t,Ma,"day"):t>=xi?hc(e,t,xi,"hour"):t>=wi?hc(e,t,wi,"minute"):t>=$i?hc(e,t,$i,"second"):e+" ms"}function hc(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const qi=Bn(hj),Cj=[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,39,12,38,41,13,37,48,7,16,24,55,40,61,26,17,0,1,60,51,30,4,22,25,54,21,56,59,6,63,57,62,11,36,20,34,44,52];function Sj(e){let t="";return Cj.forEach(n=>{t+=e[n];}),t.slice(0,32)}async function $j(e){const{img_key:t,sub_key:n}=await wj(),r=Sj(t+n),o=Math.round(Date.now()/1e3),a={...e,wts:o},i=/[!'()*]/g,l=Object.keys(a).sort().map(c=>`${encodeURIComponent(c)}=${encodeURIComponent(a[c].toString().replace(i,""))}`).join("&"),s=n$(l+r);return {wts:o,w_rid:s}}let Uf,qf,Xf;async function wj(){const e=()=>oa().format("YYYYMMDD");if(Uf&&qf&&Xf&&Xf===e()&&Date.now()-qf<=qi("6h"))return Uf;const r=(await Dv.get("/x/web-interface/nav",{baseURL:XS})).data,o=r.data.wbi_img.img_url,a=r.data.wbi_img.sub_url,i={img_key:o.slice(o.lastIndexOf("/")+1,o.lastIndexOf(".")),sub_key:a.slice(a.lastIndexOf("/")+1,a.lastIndexOf("."))};return Uf=i,Xf=e(),qf=Date.now(),i}const yn=Dv.create({baseURL:XS,withCredentials:!0});yn.interceptors.request.use(async function(e){var t;return e.params||(e.params={}),(t=e.url)!=null&&t.includes("/wbi/")&&(e.params={...e.params,...await $j(e.params)}),e});function Hr(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const hd=Dv.create({adapter:mP}),o0=Si.appkey,xj=Si.appsec;hd.interceptors.request.use(function(e){return e.params={appkey:o0,access_key:vt.accessKey||"",...e.params},e.params.sign=r$(e.params,o0,xj),e});hd.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});const Ej=Symbol(),sh=Symbol(),fl="a",Ll="w";let Oj=(e,t)=>new Proxy(e,t);const ig=Object.getPrototypeOf,lg=new WeakMap,a$=e=>e&&(lg.has(e)?lg.get(e):ig(e)===Object.prototype||ig(e)===Array.prototype),fu=e=>typeof e=="object"&&e!==null,Ij=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(ig(e),t)},ch=e=>e[sh]||e,i$=(e,t,n,r)=>{if(!a$(e))return e;let o=r&&r.get(e);if(!o){const s=ch(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(s)?[s,Ij(s)]:[s],r==null||r.set(e,o);}const[a,i]=o;let l=n&&n.get(a);return l&&l[1].f===!!i||(l=((s,c)=>{const u={f:c};let d=!1;const m=(v,h)=>{if(!d){let p=u[fl].get(s);if(p||(p={},u[fl].set(s,p)),v===Ll)p[Ll]=!0;else {let b=p[v];b||(b=new Set,p[v]=b),b.add(h);}}},g={get:(v,h)=>h===sh?s:(m("k",h),i$(Reflect.get(v,h),u[fl],u.c,u.t)),has:(v,h)=>h===Ej?(d=!0,u[fl].delete(s),!0):(m("h",h),Reflect.has(v,h)),getOwnPropertyDescriptor:(v,h)=>(m("o",h),Reflect.getOwnPropertyDescriptor(v,h)),ownKeys:v=>(m(Ll),Reflect.ownKeys(v))};return c&&(g.set=g.deleteProperty=()=>!1),[g,u]})(a,!!i),l[1].p=Oj(i||a,l[0]),n&&n.set(a,l)),l[1][fl]=t,l[1].c=n,l[1].t=r,l[1].p},l$=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!fu(e)||!fu(t))return !0;const o=n.get(ch(e));if(!o)return !0;if(r){const i=r.get(e);if(i&&i.n===t)return i.g;r.set(e,{n:t,g:!1});}let a=null;try{for(const i of o.h||[])if(a=Reflect.has(e,i)!==Reflect.has(t,i),a)return a;if(o[Ll]===!0){if(a=((i,l)=>{const s=Reflect.ownKeys(i),c=Reflect.ownKeys(l);return s.length!==c.length||s.some((u,d)=>u!==c[d])})(e,t),a)return a}else for(const i of o.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i),a)return a;for(const i of o.k||[])if(a=l$(e[i],t[i],n,r),a)return a;return a===null&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a});}},Pj=e=>a$(e)&&e[sh]||null,a0=(e,t=!0)=>{lg.set(e,t);},Mj=(e,t,n)=>{const r=[],o=new WeakSet,a=(i,l)=>{if(o.has(i))return;fu(i)&&o.add(i);const s=fu(i)&&t.get(ch(i));if(s){var c,u;if((c=s.h)==null||c.forEach(m=>{const g=`:has(${String(m)})`;r.push(l?[...l,g]:[g]);}),s[Ll]===!0){const m=":ownKeys";r.push(l?[...l,m]:[m]);}else {var d;(d=s.o)==null||d.forEach(m=>{const g=`:hasOwn(${String(m)})`;r.push(l?[...l,g]:[g]);});}(u=s.k)==null||u.forEach(m=>{n&&!("value"in(Object.getOwnPropertyDescriptor(i,m)||{}))||a(i[m],l?[...l,m]:[m]);});}else l&&r.push(l);};return a(e),r};var mu={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Yf=e=>typeof e=="object"&&e!==null,Do=new WeakMap,pc=new WeakSet,Rj=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>Yf(c)&&!pc.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,a=(c,u,d=r)=>{const m=o.get(c);if((m==null?void 0:m[0])===u)return m[1];const g=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return a0(g,!0),o.set(c,[u,g]),Reflect.ownKeys(c).forEach(v=>{if(Object.getOwnPropertyDescriptor(g,v))return;const h=Reflect.get(c,v),{enumerable:p}=Reflect.getOwnPropertyDescriptor(c,v),b={value:h,enumerable:p,configurable:!0};if(pc.has(h))a0(h,!1);else if(h instanceof Promise)delete b.value,b.get=()=>d(h);else if(Do.has(h)){const[y,C]=Do.get(h);b.value=a(y,C(),d);}Object.defineProperty(g,v,b);}),Object.preventExtensions(g)},i=new WeakMap,l=[1,1],s=c=>{if(!Yf(c))throw new Error("object required");const u=i.get(c);if(u)return u;let d=l[0];const m=new Set,g=(E,I=++l[0])=>{d!==I&&(d=I,m.forEach(P=>P(E,I)));};let v=l[1];const h=(E=++l[1])=>(v!==E&&!m.size&&(v=E,b.forEach(([I])=>{const P=I[1](E);P>d&&(d=P);})),d),p=E=>(I,P)=>{const N=[...I];N[1]=[E,...N[1]],g(N,P);},b=new Map,y=(E,I)=>{if((mu?"production":void 0)!=="production"&&b.has(E))throw new Error("prop listener already exists");if(m.size){const P=I[3](p(E));b.set(E,[I,P]);}else b.set(E,[I]);},C=E=>{var I;const P=b.get(E);P&&(b.delete(E),(I=P[1])==null||I.call(P));},w=E=>(m.add(E),m.size===1&&b.forEach(([P,N],L)=>{if((mu?"production":void 0)!=="production"&&N)throw new Error("remove already exists");const k=P[3](p(L));b.set(L,[P,k]);}),()=>{m.delete(E),m.size===0&&b.forEach(([P,N],L)=>{N&&(N(),b.set(L,[P]));});}),x=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),S=t(x,{deleteProperty(E,I){const P=Reflect.get(E,I);C(I);const N=Reflect.deleteProperty(E,I);return N&&g(["delete",[I],P]),N},set(E,I,P,N){const L=Reflect.has(E,I),k=Reflect.get(E,I,N);if(L&&(e(k,P)||i.has(P)&&e(k,i.get(P))))return !0;C(I),Yf(P)&&(P=Pj(P)||P);let A=P;if(P instanceof Promise)P.then(T=>{P.status="fulfilled",P.value=T,g(["resolve",[I],T]);}).catch(T=>{P.status="rejected",P.reason=T,g(["reject",[I],T]);});else {!Do.has(P)&&n(P)&&(A=s(P));const T=!pc.has(A)&&Do.get(A);T&&y(I,T);}return Reflect.set(E,I,A,N),g(["set",[I],P,k]),!0}});i.set(c,S);const O=[x,h,a,w];return Do.set(S,O),Reflect.ownKeys(c).forEach(E=>{const I=Object.getOwnPropertyDescriptor(c,E);"value"in I&&(S[E]=c[E],delete I.value,delete I.writable),Object.defineProperty(x,E,I);}),S})=>[s,Do,pc,e,t,n,r,o,a,i,l],[_j]=Rj();function mr(e={}){return _j(e)}function pd(e,t,n){const r=Do.get(e);(mu?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let o;const a=[],i=r[3];let l=!1;const c=i(u=>{if(a.push(u),n){t(a.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,l&&t(a.splice(0));}));});return l=!0,()=>{l=!1,c();}}function Ql(e,t){const n=Do.get(e);(mu?"production":void 0)!=="production"&&!n&&console.warn("Please use proxy object");const[r,o,a]=n;return a(r,o(),t)}var s$={exports:{}},c$={};/**
* @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 Ei=f;function Nj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tj=typeof Object.is=="function"?Object.is:Nj,Lj=Ei.useState,kj=Ei.useEffect,Aj=Ei.useLayoutEffect,jj=Ei.useDebugValue;function Dj(e,t){var n=t(),r=Lj({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return Aj(function(){o.value=n,o.getSnapshot=t,Zf(o)&&a({inst:o});},[e,n,t]),kj(function(){return Zf(o)&&a({inst:o}),e(function(){Zf(o)&&a({inst:o});})},[e]),jj(n),n}function Zf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !Tj(e,n)}catch{return !0}}function zj(e,t){return t()}var Fj=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?zj:Dj;c$.useSyncExternalStore=Ei.useSyncExternalStore!==void 0?Ei.useSyncExternalStore:Fj;s$.exports=c$;var Bj=s$.exports;const Hj=Bn(Bj);var Wj={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{use:i0}=f,{useSyncExternalStore:Vj}=Hj,Gj=(e,t)=>{const n=f.useRef();f.useEffect(()=>{n.current=Mj(e,t,!0);}),f.useDebugValue(n.current);},Kj=new WeakMap;function vr(e,t){const n=t==null?void 0:t.sync,r=f.useRef(),o=f.useRef();let a=!0;const i=Vj(f.useCallback(c=>{const u=pd(e,c,n);return c(),u},[e,n]),()=>{const c=Ql(e,i0);try{if(!a&&r.current&&o.current&&!l$(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>Ql(e,i0));a=!1;const l=new WeakMap;f.useEffect(()=>{r.current=i,o.current=l;}),(Wj?"production":void 0)!=="production"&&Gj(i,l);const s=f.useMemo(()=>new WeakMap,[]);return i$(i,l,s,Kj)}var u$={exports:{}},bd={};/**
* @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 Uj=f,qj=Symbol.for("react.element"),Xj=Symbol.for("react.fragment"),Yj=Object.prototype.hasOwnProperty,Zj=Uj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Qj={key:!0,ref:!0,__self:!0,__source:!0};function d$(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Yj.call(t,r)&&!Qj.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:qj,type:e,key:a,ref:i,props:o,_owner:Zj.current}}bd.Fragment=Xj;bd.jsx=d$;bd.jsxs=d$;u$.exports=bd;var Jl=u$.exports;function Jj(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 eD(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 tD=function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),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(eD(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Jj(o);try{a.insertRule(r,a.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}(),Qn="-ms-",gu="-moz-",Bt="-webkit-",f$="comm",uh="rule",dh="decl",nD="@import",m$="@keyframes",rD="@layer",oD=Math.abs,yd=String.fromCharCode,aD=Object.assign;function iD(e,t){return Gn(e,0)^45?(((t<<2^Gn(e,0))<<2^Gn(e,1))<<2^Gn(e,2))<<2^Gn(e,3):0}function g$(e){return e.trim()}function lD(e,t){return (e=t.exec(e))?e[0]:e}function Ht(e,t,n){return e.replace(t,n)}function sg(e,t){return e.indexOf(t)}function Gn(e,t){return e.charCodeAt(t)|0}function es(e,t,n){return e.slice(t,n)}function lo(e){return e.length}function fh(e){return e.length}function bc(e,t){return t.push(e),e}function sD(e,t){return e.map(t).join("")}var Cd=1,Oi=1,v$=0,gr=0,On=0,Xi="";function Sd(e,t,n,r,o,a,i){return {value:e,root:t,parent:n,type:r,props:o,children:a,line:Cd,column:Oi,length:i,return:""}}function ml(e,t){return aD(Sd("",null,null,"",null,null,0),e,{length:-e.length},t)}function cD(){return On}function uD(){return On=gr>0?Gn(Xi,--gr):0,Oi--,On===10&&(Oi=1,Cd--),On}function Er(){return On=gr<v$?Gn(Xi,gr++):0,Oi++,On===10&&(Oi=1,Cd++),On}function vo(){return Gn(Xi,gr)}function Hc(){return gr}function Is(e,t){return es(Xi,e,t)}function ts(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 h$(e){return Cd=Oi=1,v$=lo(Xi=e),gr=0,[]}function p$(e){return Xi="",e}function Wc(e){return g$(Is(gr-1,cg(e===91?e+2:e===40?e+1:e)))}function dD(e){for(;(On=vo())&&On<33;)Er();return ts(e)>2||ts(On)>3?"":" "}function fD(e,t){for(;--t&&Er()&&!(On<48||On>102||On>57&&On<65||On>70&&On<97););return Is(e,Hc()+(t<6&&vo()==32&&Er()==32))}function cg(e){for(;Er();)switch(On){case e:return gr;case 34:case 39:e!==34&&e!==39&&cg(On);break;case 40:e===41&&cg(e);break;case 92:Er();break}return gr}function mD(e,t){for(;Er()&&e+On!==57;)if(e+On===84&&vo()===47)break;return "/*"+Is(t,gr-1)+"*"+yd(e===47?e:Er())}function gD(e){for(;!ts(vo());)Er();return Is(e,gr)}function b$(e){return p$(Vc("",null,null,null,[""],e=h$(e),0,[0],e))}function Vc(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,m=0,g=0,v=0,h=1,p=1,b=1,y=0,C="",w=o,x=a,$=r,S=C;p;)switch(v=y,y=Er()){case 40:if(v!=108&&Gn(S,d-1)==58){sg(S+=Ht(Wc(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:S+=Wc(y);break;case 9:case 10:case 13:case 32:S+=dD(v);break;case 92:S+=fD(Hc()-1,7);continue;case 47:switch(vo()){case 42:case 47:bc(vD(mD(Er(),Hc()),t,n),s);break;default:S+="/";}break;case 123*h:l[c++]=lo(S)*b;case 125*h:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(S=Ht(S,/\f/g,"")),g>0&&lo(S)-d&&bc(g>32?s0(S+";",r,n,d-1):s0(Ht(S," ","")+";",r,n,d-2),s);break;case 59:S+=";";default:if(bc($=l0(S,t,n,c,u,o,l,C,w=[],x=[],d),a),y===123)if(u===0)Vc(S,t,$,$,w,a,d,l,x);else switch(m===99&&Gn(S,3)===110?100:m){case 100:case 108:case 109:case 115:Vc(e,$,$,r&&bc(l0(e,$,$,0,0,o,l,C,o,w=[],d),x),o,x,d,l,r?w:x);break;default:Vc(S,$,$,$,[""],x,0,l,x);}}c=u=g=0,h=b=1,C=S="",d=i;break;case 58:d=1+lo(S),g=v;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&uD()==125)continue}switch(S+=yd(y),y*h){case 38:b=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(lo(S)-1)*b,b=1;break;case 64:vo()===45&&(S+=Wc(Er())),m=vo(),u=d=lo(C=S+=gD(Hc())),y++;break;case 45:v===45&&lo(S)==2&&(h=0);}}return a}function l0(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,m=o===0?a:[""],g=fh(m),v=0,h=0,p=0;v<r;++v)for(var b=0,y=es(e,d+1,d=oD(h=i[v])),C=e;b<g;++b)(C=g$(h>0?m[b]+" "+y:Ht(y,/&\f/g,m[b])))&&(s[p++]=C);return Sd(e,t,n,o===0?uh:l,s,c,u)}function vD(e,t,n){return Sd(e,t,n,f$,yd(cD()),es(e,2,-2),0)}function s0(e,t,n,r){return Sd(e,t,n,dh,es(e,0,r),es(e,r+1,-1),r)}function $a(e,t){for(var n="",r=fh(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function y$(e,t,n,r){switch(e.type){case rD:if(e.children.length)break;case nD:case dh:return e.return=e.return||e.value;case f$:return "";case m$:return e.return=e.value+"{"+$a(e.children,r)+"}";case uh:e.value=e.props.join(",");}return lo(n=$a(e.children,r))?e.return=e.value+"{"+n+"}":""}function hD(e){var t=fh(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}function pD(e){return function(t){t.root||(t=t.return)&&e(t);}}function C$(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var bD=function(t,n,r){for(var o=0,a=0;o=a,a=vo(),o===38&&a===12&&(n[r]=1),!ts(a);)Er();return Is(t,gr)},yD=function(t,n){var r=-1,o=44;do switch(ts(o)){case 0:o===38&&vo()===12&&(n[r]=1),t[r]+=bD(gr-1,n,r);break;case 2:t[r]+=Wc(o);break;case 4:if(o===44){t[++r]=vo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=yd(o);}while(o=Er());return t},CD=function(t,n){return p$(yD(h$(t),n))},c0=new WeakMap,SD=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&&!c0.get(r))&&!o){c0.set(t,!0);for(var a=[],i=CD(n,a),l=r.props,s=0,c=0;s<i.length;s++)for(var u=0;u<l.length;u++,c++)t.props[c]=a[s]?i[s].replace(/&\f/g,l[u]):l[u]+" "+i[s];}}},$D=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function S$(e,t){switch(iD(e,t)){case 5103:return Bt+"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 Bt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Bt+e+gu+e+Qn+e+e;case 6828:case 4268:return Bt+e+Qn+e+e;case 6165:return Bt+e+Qn+"flex-"+e+e;case 5187:return Bt+e+Ht(e,/(\w+).+(:[^]+)/,Bt+"box-$1$2"+Qn+"flex-$1$2")+e;case 5443:return Bt+e+Qn+"flex-item-"+Ht(e,/flex-|-self/,"")+e;case 4675:return Bt+e+Qn+"flex-line-pack"+Ht(e,/align-content|flex-|-self/,"")+e;case 5548:return Bt+e+Qn+Ht(e,"shrink","negative")+e;case 5292:return Bt+e+Qn+Ht(e,"basis","preferred-size")+e;case 6060:return Bt+"box-"+Ht(e,"-grow","")+Bt+e+Qn+Ht(e,"grow","positive")+e;case 4554:return Bt+Ht(e,/([^-])(transform)/g,"$1"+Bt+"$2")+e;case 6187:return Ht(Ht(Ht(e,/(zoom-|grab)/,Bt+"$1"),/(image-set)/,Bt+"$1"),e,"")+e;case 5495:case 3959:return Ht(e,/(image-set\([^]*)/,Bt+"$1$`$1");case 4968:return Ht(Ht(e,/(.+:)(flex-)?(.*)/,Bt+"box-pack:$3"+Qn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Bt+e+e;case 4095:case 3583:case 4068:case 2532:return Ht(e,/(.+)-inline(.+)/,Bt+"$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(lo(e)-1-t>6)switch(Gn(e,t+1)){case 109:if(Gn(e,t+4)!==45)break;case 102:return Ht(e,/(.+:)(.+)-([^]+)/,"$1"+Bt+"$2-$3$1"+gu+(Gn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~sg(e,"stretch")?S$(Ht(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Gn(e,t+1)!==115)break;case 6444:switch(Gn(e,lo(e)-3-(~sg(e,"!important")&&10))){case 107:return Ht(e,":",":"+Bt)+e;case 101:return Ht(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Bt+(Gn(e,14)===45?"inline-":"")+"box$3$1"+Bt+"$2$3$1"+Qn+"$2box$3")+e}break;case 5936:switch(Gn(e,t+11)){case 114:return Bt+e+Qn+Ht(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Bt+e+Qn+Ht(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Bt+e+Qn+Ht(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Bt+e+Qn+e+e}return e}var wD=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case dh:t.return=S$(t.value,t.length);break;case m$:return $a([ml(t,{value:Ht(t.value,"@","@"+Bt)})],o);case uh:if(t.length)return sD(t.props,function(a){switch(lD(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $a([ml(t,{props:[Ht(a,/:(read-\w+)/,":"+gu+"$1")]})],o);case"::placeholder":return $a([ml(t,{props:[Ht(a,/:(plac\w+)/,":"+Bt+"input-$1")]}),ml(t,{props:[Ht(a,/:(plac\w+)/,":"+gu+"$1")]}),ml(t,{props:[Ht(a,/:(plac\w+)/,Qn+"input-$1")]})],o)}return ""})}},xD=[wD],$$=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(h){var p=h.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""));});}var o=t.stylisPlugins||xD,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var p=h.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)a[p[b]]=!0;l.push(h);});var s,c=[SD,$D];{var u,d=[y$,pD(function(h){u.insert(h);})],m=hD(c.concat(o,d)),g=function(p){return $a(b$(p),m)};s=function(p,b,y,C){u=y,g(p?p+"{"+b.styles+"}":b.styles),C&&(v.inserted[b.name]=!0);};}var v={key:n,sheet:new tD({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:s};return v.sheet.hydrate(l),v},w$={exports:{}},qt={};/** @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,mh=Hn?Symbol.for("react.element"):60103,gh=Hn?Symbol.for("react.portal"):60106,$d=Hn?Symbol.for("react.fragment"):60107,wd=Hn?Symbol.for("react.strict_mode"):60108,xd=Hn?Symbol.for("react.profiler"):60114,Ed=Hn?Symbol.for("react.provider"):60109,Od=Hn?Symbol.for("react.context"):60110,vh=Hn?Symbol.for("react.async_mode"):60111,Id=Hn?Symbol.for("react.concurrent_mode"):60111,Pd=Hn?Symbol.for("react.forward_ref"):60112,Md=Hn?Symbol.for("react.suspense"):60113,ED=Hn?Symbol.for("react.suspense_list"):60120,Rd=Hn?Symbol.for("react.memo"):60115,_d=Hn?Symbol.for("react.lazy"):60116,OD=Hn?Symbol.for("react.block"):60121,ID=Hn?Symbol.for("react.fundamental"):60117,PD=Hn?Symbol.for("react.responder"):60118,MD=Hn?Symbol.for("react.scope"):60119;function Mr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case mh:switch(e=e.type,e){case vh:case Id:case $d:case xd:case wd:case Md:return e;default:switch(e=e&&e.$$typeof,e){case Od:case Pd:case _d:case Rd:case Ed:return e;default:return t}}case gh:return t}}}function x$(e){return Mr(e)===Id}qt.AsyncMode=vh;qt.ConcurrentMode=Id;qt.ContextConsumer=Od;qt.ContextProvider=Ed;qt.Element=mh;qt.ForwardRef=Pd;qt.Fragment=$d;qt.Lazy=_d;qt.Memo=Rd;qt.Portal=gh;qt.Profiler=xd;qt.StrictMode=wd;qt.Suspense=Md;qt.isAsyncMode=function(e){return x$(e)||Mr(e)===vh};qt.isConcurrentMode=x$;qt.isContextConsumer=function(e){return Mr(e)===Od};qt.isContextProvider=function(e){return Mr(e)===Ed};qt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===mh};qt.isForwardRef=function(e){return Mr(e)===Pd};qt.isFragment=function(e){return Mr(e)===$d};qt.isLazy=function(e){return Mr(e)===_d};qt.isMemo=function(e){return Mr(e)===Rd};qt.isPortal=function(e){return Mr(e)===gh};qt.isProfiler=function(e){return Mr(e)===xd};qt.isStrictMode=function(e){return Mr(e)===wd};qt.isSuspense=function(e){return Mr(e)===Md};qt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$d||e===Id||e===xd||e===wd||e===Md||e===ED||typeof e=="object"&&e!==null&&(e.$$typeof===_d||e.$$typeof===Rd||e.$$typeof===Ed||e.$$typeof===Od||e.$$typeof===Pd||e.$$typeof===ID||e.$$typeof===PD||e.$$typeof===MD||e.$$typeof===OD)};qt.typeOf=Mr;w$.exports=qt;var RD=w$.exports,E$=RD,_D={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ND={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},O$={};O$[E$.ForwardRef]=_D;O$[E$.Memo]=ND;var TD=!0;function hh(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var I$=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||TD===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},ph=function(t,n,r){I$(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function P$(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 M$={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},LD=/[A-Z]|^ms/g,kD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,R$=function(t){return t.charCodeAt(1)===45},u0=function(t){return t!=null&&typeof t!="boolean"},Qf=C$(function(e){return R$(e)?e:e.replace(LD,"-$&").toLowerCase()}),d0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(kD,function(r,o,a){return so={name:o,styles:a,next:so},o})}return M$[t]!==1&&!R$(t)&&typeof n=="number"&&n!==0?n+"px":n};function ns(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 so={name:n.name,styles:n.styles,next:so},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)so={name:r.name,styles:r.styles,next:so},r=r.next;var o=n.styles+";";return o}return AD(e,t,n)}case"function":{if(e!==void 0){var a=so,i=n(e);return so=a,ns(e,t,i)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function AD(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ns(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":u0(i)&&(r+=Qf(a)+":"+d0(a,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)u0(i[l])&&(r+=Qf(a)+":"+d0(a,i[l])+";");else {var s=ns(e,t,i);switch(a){case"animation":case"animationName":{r+=Qf(a)+":"+s+";";break}default:r+=a+"{"+s+"}";}}}return r}var f0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,so,bh=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,a="";so=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,a+=ns(r,n,i)):a+=i[0];for(var l=1;l<t.length;l++)a+=ns(r,n,t[l]),o&&(a+=i[l]);f0.lastIndex=0;for(var s="",c;(c=f0.exec(a))!==null;)s+="-"+c[1];var u=P$(a)+s;return {name:u,styles:a,next:so}},jD=function(t){return t()},_$=f__namespace.useInsertionEffect?f__namespace.useInsertionEffect:!1,DD=_$||jD,m0=_$||f__namespace.useLayoutEffect,Nd={}.hasOwnProperty,N$=f__namespace.createContext(typeof HTMLElement<"u"?$$({key:"css"}):null);N$.Provider;var T$=function(t){return f.forwardRef(function(n,r){var o=f.useContext(N$);return t(n,o,r)})},L$=f__namespace.createContext({}),ug="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",k$=function(t,n){var r={};for(var o in n)Nd.call(n,o)&&(r[o]=n[o]);return r[ug]=t,r},zD=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return I$(n,r,o),DD(function(){return ph(n,r,o)}),null},FD=T$(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[ug],a=[r],i="";typeof e.className=="string"?i=hh(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var l=bh(a,void 0,f__namespace.useContext(L$));i+=t.key+"-"+l.name;var s={};for(var c in e)Nd.call(e,c)&&c!=="css"&&c!==ug&&(s[c]=e[c]);return s.ref=n,s.className=i,f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(zD,{cache:t,serialized:l,isStringTag:typeof o=="string"}),f__namespace.createElement(o,s))}),A$=FD,Pt=Jl.Fragment;function j(e,t,n){return Nd.call(t,"css")?Jl.jsx(A$,k$(e,t),n):Jl.jsx(e,t,n)}function be(e,t,n){return Nd.call(t,"css")?Jl.jsxs(A$,k$(e,t),n):Jl.jsxs(e,t,n)}const BD=[{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)"}],j$=`--${mn}-color-primary`,Fr=`var(${j$})`,vu={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},D$={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function HD(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 z$="UP长期洗涤",WD=HD(z$,`
#0545b2 理想之蓝
#f4cd00 柠檬黄
#ef2729 石榴红
#f89c00 鹿箭
#233728 黛绿
#f2b9b7 和熙粉
#f3cc91 芝士黄
#6b4c68 葡萄紫
#ff7227 落日橙
#004d62 碧海天
#23909b 洗碧空
#aeb400 芥丝绿
#425a17 箬叶青
#002FA7 克莱因蓝
#003153 普鲁士蓝
#01847F 马尔斯绿
#FBD26A 申布伦黄
#470024 勃艮第红
#492D22 凡戴克棕
`),F$=[{name:"预设",themes:[vu,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},D$]},{name:"移动端",themes:[{id:"app-custom-高能红",name:"高能红",colorPrimary:"#fd453e"},{id:"app-custom-咸蛋黄",name:"咸蛋黄",colorPrimary:"#ffc034"},{id:"app-custom-早苗绿",name:"早苗绿",colorPrimary:"#85c255"},{id:"app-custom-宝石蓝",name:"宝石蓝",colorPrimary:"#0095ef"},{id:"app-custom-罗兰紫",name:"罗兰紫",colorPrimary:"#a029ac"}]},{name:"LX Themes",themes:BD,tooltip:be(Pt,{children:["提取自"," ",j("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),j("br",{}),"Apache License 2.0"]})},{name:z$,themes:WD,tooltip:be(Pt,{children:["提取自"," ",j("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",j("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})}],VD=F$.map(e=>e.themes).flat();function yh(){let{theme:e,colorPickerThemeSelectedColor:t}=sn();return e||(e=vu.id),f.useMemo(()=>{const n=VD.find(r=>r.id===e)||vu;return n.id===D$.id&&t&&(n.colorPrimary=t),n},[e,t])}var GD=/[A-Z]|^ms/g,KD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,B$=function(t){return t.charCodeAt(1)===45},g0=function(t){return t!=null&&typeof t!="boolean"},Jf=C$(function(e){return B$(e)?e:e.replace(GD,"-$&").toLowerCase()}),v0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(KD,function(r,o,a){return co={name:o,styles:a,next:co},o})}return M$[t]!==1&&!B$(t)&&typeof n=="number"&&n!==0?n+"px":n};function rs(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 co={name:n.name,styles:n.styles,next:co},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)co={name:r.name,styles:r.styles,next:co},r=r.next;var o=n.styles+";";return o}return UD(e,t,n)}case"function":{if(e!==void 0){var a=co,i=n(e);return co=a,rs(e,t,i)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function UD(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=rs(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":g0(i)&&(r+=Jf(a)+":"+v0(a,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)g0(i[l])&&(r+=Jf(a)+":"+v0(a,i[l])+";");else {var s=rs(e,t,i);switch(a){case"animation":case"animationName":{r+=Jf(a)+":"+s+";";break}default:r+=a+"{"+s+"}";}}}return r}var h0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,co,em=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,a="";co=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,a+=rs(r,n,i)):a+=i[0];for(var l=1;l<t.length;l++)a+=rs(r,n,t[l]),o&&(a+=i[l]);h0.lastIndex=0;for(var s="",c;(c=h0.exec(a))!==null;)s+="-"+c[1];var u=P$(a)+s;return {name:u,styles:a,next:co}};function p0(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function b0(e,t,n){var r=[],o=hh(e,r,n);return r.length<2?n:o+t(r)}var qD=function(t){var n=$$(t);n.sheet.speedy=function(l){this.isSpeedy=l;},n.compat=!0;var r=function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var d=em(c,n.registered,void 0);return ph(n,d,!1),n.key+"-"+d.name},o=function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var d=em(c,n.registered),m="animation-"+d.name;return p0(n,{name:d.name,styles:"@keyframes "+m+"{"+d.styles+"}"}),m},a=function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var d=em(c,n.registered);p0(n,d);},i=function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return b0(n.registered,r,XD(c))};return {css:r,cx:i,injectGlobal:a,keyframes:o,hydrate:function(s){s.forEach(function(c){n.inserted[c]=!0;});},flush:function(){n.registered={},n.inserted={},n.sheet.flush();},sheet:n.sheet,cache:n,getRegisteredStyles:hh.bind(null,n.registered),merge:b0.bind(null,n.registered,r)}},XD=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))a=e(o);else {a="";for(var i in o)o[i]&&i&&(a&&(a+=" "),a+=i);}break}default:a=o;}a&&(n&&(n+=" "),n+=a);}}return n},YD=qD({key:"css"}),hu=YD.css;const ZD=hu("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;color:#fff;background-color:#ffb243;background-color:",Fr,";border-radius:6px;white-space:pre-wrap;",""),QD=hu({name:"1azakc",styles:"text-align:center"});function Pn(e,t=2e3){const n=document.createElement("div");n.classList.add(ZD,Zo),n.innerText=e,!e.includes(`
`)&&!e.includes("<br")&&n.classList.add(QD),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}function H$(){return Pn(gd)}function Ch(){const e={};return document.cookie.split(";").map(t=>t.trim()).filter(Boolean).forEach(t=>{const[n,r]=t.split("=").map(o=>o.trim()).filter(Boolean);n&&(e[n]=r);}),e}function Ps(){const e=Ch().bili_jct;if(!e)throw Pn("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}function Td(){return Ch().DedeUserID}function Ms(){return !!Ch().DedeUserID}const dg=mr({cookie:document.cookie,logined:Ms()});function JD(){return Object.assign(dg,{cookie:document.cookie,logined:Ms()}),dg.logined}function Sh(){return vr(dg).logined}async function W$(){var n;return ((n=(await yn.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function fg(e){var a,i;const t=new URLSearchParams({title:"",banner_url:"",content:"",summary:"",words:"0",category:"15",tid:"0",reprint:"0",tags:"",image_urls:"",origin_image_urls:"",dynamic_intro:"",media_id:"0",spoiler:"0",original:"0",top_video_bvid:"",aid:"",csrf:Ps(),...e}),n=(await yn.post("/x/article/creative/draft/addupdate",t)).data,r=(i=(a=n==null?void 0:n.data)==null?void 0:a.aid)==null?void 0:i.toString(),o=Hr(n);return o||Pn(n.message||"addupdate error"),{success:o,aid:r}}async function ez(e){var n;const t=(await yn.get("/x/article/creative/draft/view",{params:{aid:e}})).data;return ((n=t==null?void 0:t.data)==null?void 0:n.content)||""}async function tz(){const t=(await W$()).find(i=>i.title===mn);if(!t){await fg({title:mn});return}const n=await ez(t.id),a=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(a)try{return JSON.parse(a)}catch{return}}let yc="";async function nz(e){if(!yc){const o=(await W$()).find(a=>a.title===mn);if(o)yc=o.id.toString();else {const{success:a,aid:i}=await fg({title:mn});if(!a)return !1;yc=i;}}const t=JSON.stringify(e),{success:n}=await fg({aid:yc,title:mn,content:`<p>${t}</p>`,words:t.length.toString()});return n}const rz=To.extend("settings"),$h={accessKey:"",accessKeyExpireAt:0,useNarrowMode:!1,pureRecommend:!1,appApiDecice:Sa.ipad,showModalFeedOnLoad:!1,showModalFeedEntry:!0,modalFeedFullScreen:!1,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",shuffleForWatchLater:!0,addSeparatorForWatchLater:!0,shuffleForFav:!0,excludeFavFolderIds:[],addSeparatorForFav:!0,anonymousForPopularGeneral:!1,shuffleForPopularWeekly:!1,filterEnabled:!0,filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowedVideo:!1,filterOutGotoTypePicture:!1,enableFilterForFollowedPicture:!1,styleFancy:!1,styleUseStandardVideoSourceTab:!1,styleUseStickyTabbarInPureRecommend:!0,backupSettingsToArticleDraft:!1,openVideoInPopupWhenClick:!1,openVideoAutoFullscreen:!1,hidingTabKeys:[],customTabKeysOrder:[]},vt=mr({...$h}),V$=Object.keys($h);function sn(){return vr(vt)}const oz=mn,G$=`${oz}.settings`;async function az(){const e=await GM.getValue(G$);e&&typeof e=="object"&&Object.assign(vt,ih(e,V$)),pd(vt,()=>{lz();});}const iz=KS(nz,qi("5s"));async function lz(){const e=Ql(vt);await GM.setValue(G$,e),await sz(e);}async function sz(e){if(!e.backupSettingsToArticleDraft||QS)return;const t=qA(e,["accessKey","accessKeyExpireAt"]);try{await iz(t),rz("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function Un(e){Object.assign(vt,e);}function cz(){return Un($h)}await( az());vd&&vt.accessKey&&vt.accessKeyExpireAt&&Date.now()>=vt.accessKeyExpireAt&&Pn("access_key 已过期, 请重新获取 !!!");var K$={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(ui,function(){var n,r,o=1e3,a=6e4,i=36e5,l=864e5,s=/\[([^\]]+)]|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=2628e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,m={years:c,months:u,days:l,hours:i,minutes:a,seconds:o,milliseconds:1,weeks:6048e5},g=function($){return $ instanceof w},v=function($,S,O){return new w($,O,S.$l)},h=function($){return r.p($)+"s"},p=function($){return $<0},b=function($){return p($)?Math.ceil($):Math.floor($)},y=function($){return Math.abs($)},C=function($,S){return $?p($)?{negative:!0,format:""+y($)+S}:{negative:!1,format:""+$+S}:{negative:!1,format:""}},w=function(){function $(O,E,I){var P=this;if(this.$d={},this.$l=I,O===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return v(O*m[h(E)],this);if(typeof O=="number")return this.$ms=O,this.parseFromMilliseconds(),this;if(typeof O=="object")return Object.keys(O).forEach(function(k){P.$d[h(k)]=O[k];}),this.calMilliseconds(),this;if(typeof O=="string"){var N=O.match(d);if(N){var L=N.slice(2).map(function(k){return k!=null?Number(k):0});return this.$d.years=L[0],this.$d.months=L[1],this.$d.weeks=L[2],this.$d.days=L[3],this.$d.hours=L[4],this.$d.minutes=L[5],this.$d.seconds=L[6],this.calMilliseconds(),this}}return this}var S=$.prototype;return S.calMilliseconds=function(){var O=this;this.$ms=Object.keys(this.$d).reduce(function(E,I){return E+(O.$d[I]||0)*m[I]},0);},S.parseFromMilliseconds=function(){var O=this.$ms;this.$d.years=b(O/c),O%=c,this.$d.months=b(O/u),O%=u,this.$d.days=b(O/l),O%=l,this.$d.hours=b(O/i),O%=i,this.$d.minutes=b(O/a),O%=a,this.$d.seconds=b(O/o),O%=o,this.$d.milliseconds=O;},S.toISOString=function(){var O=C(this.$d.years,"Y"),E=C(this.$d.months,"M"),I=+this.$d.days||0;this.$d.weeks&&(I+=7*this.$d.weeks);var P=C(I,"D"),N=C(this.$d.hours,"H"),L=C(this.$d.minutes,"M"),k=this.$d.seconds||0;this.$d.milliseconds&&(k+=this.$d.milliseconds/1e3,k=Math.round(1e3*k)/1e3);var A=C(k,"S"),T=O.negative||E.negative||P.negative||N.negative||L.negative||A.negative,R=N.format||L.format||A.format?"T":"",_=(T?"-":"")+"P"+O.format+E.format+P.format+R+N.format+L.format+A.format;return _==="P"||_==="-P"?"P0D":_},S.toJSON=function(){return this.toISOString()},S.format=function(O){var E=O||"YYYY-MM-DDTHH:mm:ss",I={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 E.replace(s,function(P,N){return N||String(I[P])})},S.as=function(O){return this.$ms/m[h(O)]},S.get=function(O){var E=this.$ms,I=h(O);return I==="milliseconds"?E%=1e3:E=I==="weeks"?b(E/m[I]):this.$d[I],E||0},S.add=function(O,E,I){var P;return P=E?O*m[h(E)]:g(O)?O.$ms:v(O,this).$ms,v(this.$ms+P*(I?-1:1),this)},S.subtract=function(O,E){return this.add(O,E,!0)},S.locale=function(O){var E=this.clone();return E.$l=O,E},S.clone=function(){return v(this.$ms,this)},S.humanize=function(O){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!O)},S.valueOf=function(){return this.asMilliseconds()},S.milliseconds=function(){return this.get("milliseconds")},S.asMilliseconds=function(){return this.as("milliseconds")},S.seconds=function(){return this.get("seconds")},S.asSeconds=function(){return this.as("seconds")},S.minutes=function(){return this.get("minutes")},S.asMinutes=function(){return this.as("minutes")},S.hours=function(){return this.get("hours")},S.asHours=function(){return this.as("hours")},S.days=function(){return this.get("days")},S.asDays=function(){return this.as("days")},S.weeks=function(){return this.get("weeks")},S.asWeeks=function(){return this.as("weeks")},S.months=function(){return this.get("months")},S.asMonths=function(){return this.as("months")},S.years=function(){return this.get("years")},S.asYears=function(){return this.as("years")},$}(),x=function($,S,O){return $.add(S.years()*O,"y").add(S.months()*O,"M").add(S.days()*O,"d").add(S.hours()*O,"h").add(S.minutes()*O,"m").add(S.seconds()*O,"s").add(S.milliseconds()*O,"ms")};return function($,S,O){n=O,r=O().$utils(),O.duration=function(P,N){var L=O.locale();return v(P,{$l:L},N)},O.isDuration=g;var E=S.prototype.add,I=S.prototype.subtract;S.prototype.add=function(P,N){return g(P)?x(this,P,1):E.bind(this)(P,N)},S.prototype.subtract=function(P,N){return g(P)?x(this,P,-1):I.bind(this)(P,N)};}});})(K$);var uz=K$.exports;const dz=Bn(uz);function xe(){return xe=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},xe.apply(this,arguments)}var fz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};const mz=fz;function U$(e){if(Array.isArray(e))return e}function gz(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1;}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,o=u;}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}function mg(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 wh(e,t){if(e){if(typeof e=="string")return mg(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 mg(e,t)}}function q$(){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 J(e,t){return U$(e)||gz(e,t)||wh(e,t)||q$()}function ht(e){"@babel/helpers - typeof";return ht=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},ht(e)}function vz(e,t){if(ht(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ht(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function X$(e){var t=vz(e,"string");return ht(t)=="symbol"?t:String(t)}function H(e,t,n){return t=X$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hz(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function dt(e,t){if(e==null)return {};var n=hz(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}var Y$={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 a="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(a=o(a,r(l)));}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return "";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var l in a)t.call(a,l)&&a[l]&&(i=o(i,l));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n;})();})(Y$);var pz=Y$.exports;const G=Bn(pz);function qn(e,t){bz(e)&&(e="100%");var n=yz(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 Cc(e){return Math.min(1,Math.max(0,e))}function bz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function yz(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Z$(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Sc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ha(e){return e.length===1?"0"+e:String(e)}function Cz(e,t,n){return {r:qn(e,255)*255,g:qn(t,255)*255,b:qn(n,255)*255}}function y0(e,t,n){e=qn(e,255),t=qn(t,255),n=qn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,l=(r+o)/2;if(r===o)i=0,a=0;else {var s=r-o;switch(i=l>.5?s/(2-r-o):s/(r+o),r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6;}return {h:a,s:i,l}}function tm(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 Sz(e,t,n){var r,o,a;if(e=qn(e,360),t=qn(t,100),n=qn(n,100),t===0)o=n,a=n,r=n;else {var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=tm(l,i,e+1/3),o=tm(l,i,e),a=tm(l,i,e-1/3);}return {r:r*255,g:o*255,b:a*255}}function gg(e,t,n){e=qn(e,255),t=qn(t,255),n=qn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,l=r-o,s=r===0?0:l/r;if(r===o)a=0;else {switch(r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6;}return {h:a,s,v:i}}function $z(e,t,n){e=qn(e,360)*6,t=qn(t,100),n=qn(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6,c=[n,i,a,a,l,n][s],u=[l,n,n,i,a,a][s],d=[a,a,l,n,n,i][s];return {r:c*255,g:u*255,b:d*255}}function vg(e,t,n,r){var o=[ha(Math.round(e).toString(16)),ha(Math.round(t).toString(16)),ha(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 wz(e,t,n,r,o){var a=[ha(Math.round(e).toString(16)),ha(Math.round(t).toString(16)),ha(Math.round(n).toString(16)),ha(xz(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function xz(e){return Math.round(parseFloat(e)*255).toString(16)}function C0(e){return $r(e)/255}function $r(e){return parseInt(e,16)}function Ez(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var hg={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 si(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;return typeof e=="string"&&(e=Pz(e)),typeof e=="object"&&(wo(e.r)&&wo(e.g)&&wo(e.b)?(t=Cz(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wo(e.h)&&wo(e.s)&&wo(e.v)?(r=Sc(e.s),o=Sc(e.v),t=$z(e.h,r,o),i=!0,l="hsv"):wo(e.h)&&wo(e.s)&&wo(e.l)&&(r=Sc(e.s),a=Sc(e.l),t=Sz(e.h,r,a),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Z$(n),{ok:i,format:e.format||l,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 Oz="[-\\+]?\\d+%?",Iz="[-\\+]?\\d*\\.\\d+%?",Go="(?:".concat(Iz,")|(?:").concat(Oz,")"),nm="[\\s|\\(]+(".concat(Go,")[,|\\s]+(").concat(Go,")[,|\\s]+(").concat(Go,")\\s*\\)?"),rm="[\\s|\\(]+(".concat(Go,")[,|\\s]+(").concat(Go,")[,|\\s]+(").concat(Go,")[,|\\s]+(").concat(Go,")\\s*\\)?"),Kr={CSS_UNIT:new RegExp(Go),rgb:new RegExp("rgb"+nm),rgba:new RegExp("rgba"+rm),hsl:new RegExp("hsl"+nm),hsla:new RegExp("hsla"+rm),hsv:new RegExp("hsv"+nm),hsva:new RegExp("hsva"+rm),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 Pz(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(hg[e])e=hg[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=Kr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Kr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Kr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Kr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Kr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Kr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Kr.hex8.exec(e),n?{r:$r(n[1]),g:$r(n[2]),b:$r(n[3]),a:C0(n[4]),format:t?"name":"hex8"}:(n=Kr.hex6.exec(e),n?{r:$r(n[1]),g:$r(n[2]),b:$r(n[3]),format:t?"name":"hex"}:(n=Kr.hex4.exec(e),n?{r:$r(n[1]+n[1]),g:$r(n[2]+n[2]),b:$r(n[3]+n[3]),a:C0(n[4]+n[4]),format:t?"name":"hex8"}:(n=Kr.hex3.exec(e),n?{r:$r(n[1]+n[1]),g:$r(n[2]+n[2]),b:$r(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function wo(e){return !!Kr.CSS_UNIT.exec(String(e))}var nn=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=Ez(t)),this.originalInput=t;var o=si(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,a=t.r/255,i=t.g/255,l=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.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=Z$(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=gg(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=gg(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=y0(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=y0(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),vg(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),wz(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(qn(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(qn(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="#"+vg(this.r,this.g,this.b,!1),n=0,r=Object.entries(hg);n<r.length;n++){var o=r[n],a=o[0],i=o[1];if(t===i)return a}return !1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?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=Cc(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=Cc(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=Cc(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=Cc(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(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},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,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},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],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),$c=2,S0=.16,Mz=.05,Rz=.05,_z=.15,Q$=5,J$=4,Nz=[{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 $0(e){var t=e.r,n=e.g,r=e.b,o=gg(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function wc(e){var t=e.r,n=e.g,r=e.b;return "#".concat(vg(t,n,r,!1))}function Tz(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 w0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-$c*t:Math.round(e.h)+$c*t:r=n?Math.round(e.h)+$c*t:Math.round(e.h)-$c*t,r<0?r+=360:r>=360&&(r-=360),r}function x0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-S0*t:t===J$?r=e.s+S0:r=e.s+Mz*t,r>1&&(r=1),n&&t===Q$&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function E0(e,t,n){var r;return n?r=e.v+Rz*t:r=e.v-_z*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=si(e),o=Q$;o>0;o-=1){var a=$0(r),i=wc(si({h:w0(a,o,!0),s:x0(a,o,!0),v:E0(a,o,!0)}));n.push(i);}n.push(wc(r));for(var l=1;l<=J$;l+=1){var s=$0(r),c=wc(si({h:w0(s,l),s:x0(s,l),v:E0(s,l)}));n.push(c);}return t.theme==="dark"?Nz.map(function(u){var d=u.index,m=u.opacity,g=wc(Tz(si(t.backgroundColor||"#141414"),si(n[d]),m*100));return g}):n}var om={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"},Gc={},am={};Object.keys(om).forEach(function(e){Gc[e]=Po(om[e]),Gc[e].primary=Gc[e][5],am[e]=Po(om[e],{theme:"dark",backgroundColor:"#141414"}),am[e].primary=am[e][5];});var Lz=Gc.blue,kz=f.createContext({});const xh=kz;function O0(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 U(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O0(Object(n),!0).forEach(function(r){H(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function nr(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}function pg(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 I0="data-rc-order",P0="data-rc-priority",Az="rc-util-key",bg=new Map;function ew(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Az}function Ld(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function jz(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function tw(e){return Array.from((bg.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function nw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!nr())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=jz(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute(I0,i),l&&a&&s.setAttribute(P0,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=Ld(t),u=c.firstChild;if(r){if(l){var d=tw(c).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(I0)))return !1;var g=Number(m.getAttribute(P0)||0);return a>=g});if(d.length)return c.insertBefore(s,d[d.length-1].nextSibling),s}c.insertBefore(s,u);}else c.appendChild(s);return s}function rw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ld(t);return tw(n).find(function(r){return r.getAttribute(ew(t))===e})}function os(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=rw(e,t);if(n){var r=Ld(t);r.removeChild(n);}}function Dz(e,t){var n=bg.get(e);if(!n||!pg(document,n)){var r=nw("",t),o=r.parentNode;bg.set(e,o),e.removeChild(r);}}function Qo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ld(n);Dz(r,n);var o=rw(t,n);if(o){var a,i;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var l;o.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var s=nw(e,n);return s.setAttribute(ew(n),t),s}function ow(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function zz(e){return ow(e)instanceof ShadowRoot}function pu(e){return zz(e)?ow(e):null}var yg={},Fz=function(t){};function Bz(e,t){}function Hz(e,t){}function Wz(){yg={};}function aw(e,t,n){!t&&!yg[n]&&(e(!1,n),yg[n]=!0);}function Tn(e,t){aw(Bz,e,t);}function Vz(e,t){aw(Hz,e,t);}Tn.preMessage=Fz;Tn.resetWarned=Wz;Tn.noteOnce=Vz;function Gz(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Kz(e,t){Tn(e,"[@ant-design/icons] ".concat(t));}function M0(e){return ht(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ht(e.icon)==="object"||typeof e.icon=="function")}function R0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[Gz(n)]=r;}return t},{})}function Cg(e,t,n){return n?f.createElement(e.tag,U(U({key:t},R0(e.attrs)),n),(e.children||[]).map(function(r,o){return Cg(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):f.createElement(e.tag,U({key:t},R0(e.attrs)),(e.children||[]).map(function(r,o){return Cg(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function iw(e){return Po(e)[0]}function lw(e){return e?Array.isArray(e)?e:[e]:[]}var Uz=`
.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);
}
}
`,qz=function(t){var n=f.useContext(xh),r=n.csp,o=n.prefixCls,a=Uz;o&&(a=a.replace(/anticon/g,o)),f.useEffect(function(){var i=t.current,l=pu(i);Qo(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l});},[]);},Xz=["icon","className","onClick","style","primaryColor","secondaryColor"],kl={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Yz(e){var t=e.primaryColor,n=e.secondaryColor;kl.primaryColor=t,kl.secondaryColor=n||iw(t),kl.calculated=!!n;}function Zz(){return U({},kl)}var kd=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,l=t.secondaryColor,s=dt(t,Xz),c=f__namespace.useRef(),u=kl;if(i&&(u={primaryColor:i,secondaryColor:l||iw(i)}),qz(c),Kz(M0(n),"icon should be icon definiton, but got ".concat(n)),!M0(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=U(U({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Cg(d.icon,"svg-".concat(d.name),U(U({className:r,onClick:o,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};kd.displayName="IconReact";kd.getTwoToneColors=Zz;kd.setTwoToneColors=Yz;const Eh=kd;function sw(e){var t=lw(e),n=J(t,2),r=n[0],o=n[1];return Eh.setTwoToneColors({primaryColor:r,secondaryColor:o})}function Qz(){var e=Eh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Jz=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];sw(Lz.primary);var Ad=f__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,a=e.spin,i=e.rotate,l=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=dt(e,Jz),d=f__namespace.useContext(xh),m=d.prefixCls,g=m===void 0?"anticon":m,v=d.rootClassName,h=G(v,g,(n={},H(n,"".concat(g,"-").concat(o.name),!!o.name),H(n,"".concat(g,"-spin"),!!a||o.name==="loading"),n),r),p=l;p===void 0&&s&&(p=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=lw(c),C=J(y,2),w=C[0],x=C[1];return f__namespace.createElement("span",xe({role:"img","aria-label":o.name},u,{ref:t,tabIndex:p,onClick:s,className:h}),f__namespace.createElement(Eh,{icon:o,primaryColor:w,secondaryColor:x,style:b}))});Ad.displayName="AntdIcon";Ad.getTwoToneColor=Qz;Ad.setTwoToneColor=sw;const En=Ad;var e6=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:mz}))};const t6=f__namespace.forwardRef(e6);function bu(e){return e instanceof HTMLElement||e instanceof SVGElement}function Al(e){return bu(e)?e:e instanceof f.Component?gS.findDOMNode(e):null}var cw={exports:{}},Xt={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Oh=Symbol.for("react.element"),Ih=Symbol.for("react.portal"),jd=Symbol.for("react.fragment"),Dd=Symbol.for("react.strict_mode"),zd=Symbol.for("react.profiler"),Fd=Symbol.for("react.provider"),Bd=Symbol.for("react.context"),n6=Symbol.for("react.server_context"),Hd=Symbol.for("react.forward_ref"),Wd=Symbol.for("react.suspense"),Vd=Symbol.for("react.suspense_list"),Gd=Symbol.for("react.memo"),Kd=Symbol.for("react.lazy"),r6=Symbol.for("react.offscreen"),uw;uw=Symbol.for("react.module.reference");function Wr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Oh:switch(e=e.type,e){case jd:case zd:case Dd:case Wd:case Vd:return e;default:switch(e=e&&e.$$typeof,e){case n6:case Bd:case Hd:case Kd:case Gd:case Fd:return e;default:return t}}case Ih:return t}}}Xt.ContextConsumer=Bd;Xt.ContextProvider=Fd;Xt.Element=Oh;Xt.ForwardRef=Hd;Xt.Fragment=jd;Xt.Lazy=Kd;Xt.Memo=Gd;Xt.Portal=Ih;Xt.Profiler=zd;Xt.StrictMode=Dd;Xt.Suspense=Wd;Xt.SuspenseList=Vd;Xt.isAsyncMode=function(){return !1};Xt.isConcurrentMode=function(){return !1};Xt.isContextConsumer=function(e){return Wr(e)===Bd};Xt.isContextProvider=function(e){return Wr(e)===Fd};Xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Oh};Xt.isForwardRef=function(e){return Wr(e)===Hd};Xt.isFragment=function(e){return Wr(e)===jd};Xt.isLazy=function(e){return Wr(e)===Kd};Xt.isMemo=function(e){return Wr(e)===Gd};Xt.isPortal=function(e){return Wr(e)===Ih};Xt.isProfiler=function(e){return Wr(e)===zd};Xt.isStrictMode=function(e){return Wr(e)===Dd};Xt.isSuspense=function(e){return Wr(e)===Wd};Xt.isSuspenseList=function(e){return Wr(e)===Vd};Xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===jd||e===zd||e===Dd||e===Wd||e===Vd||e===r6||typeof e=="object"&&e!==null&&(e.$$typeof===Kd||e.$$typeof===Gd||e.$$typeof===Fd||e.$$typeof===Bd||e.$$typeof===Hd||e.$$typeof===uw||e.getModuleId!==void 0)};Xt.typeOf=Wr;cw.exports=Xt;var Ph=cw.exports;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):ht(e)==="object"&&e&&"current"in e&&(e.current=t);}function sr(){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(a){Mh(a,o);});}}function aa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Rs(function(){return sr.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})}function ia(e){var t,n,r=Ph.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 o6(e){return !f.isValidElement(e)||Ph.isFragment(e)?!1:ia(e)}var a6=["children"],dw=f__namespace.createContext({});function i6(e){var t=e.children,n=dt(e,a6);return f__namespace.createElement(dw.Provider,{value:n},t)}function cr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _0(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,X$(r.key),r);}}function ur(e,t,n){return t&&_0(e.prototype,t),n&&_0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sg(e,t){return Sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Sg(e,t)}function Yi(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&&Sg(e,t);}function yu(e){return yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yu(e)}function l6(){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 Dt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s6(e,t){if(t&&(ht(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dt(e)}function Zi(e){var t=l6();return function(){var r=yu(e),o;if(t){var a=yu(this).constructor;o=Reflect.construct(r,arguments,a);}else o=r.apply(this,arguments);return s6(this,o)}}var c6=function(e){Yi(n,e);var t=Zi(n);function n(){return cr(this,n),t.apply(this,arguments)}return ur(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component);function wa(e){var t=f__namespace.useRef(!1),n=f__namespace.useState(e),r=J(n,2),o=r[0],a=r[1];f__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function i(l,s){s&&t.current||a(l);}return [o,i]}var ua="none",xc="appear",Ec="enter",Oc="leave",N0="none",Xr="prepare",di="start",fi="active",Rh="end",fw="prepared";function T0(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 u6(e,t){var n={animationend:T0("Animation","AnimationEnd"),transitionend:T0("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var d6=u6(nr(),typeof window<"u"?window:{}),mw={};if(nr()){var f6=document.createElement("div");mw=f6.style;}var Ic={};function gw(e){if(Ic[e])return Ic[e];var t=d6[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in mw)return Ic[e]=t[a],Ic[e]}return ""}var vw=gw("animationend"),hw=gw("transitionend"),pw=!!(vw&&hw),L0=vw||"animationend",k0=hw||"transitionend";function A0(e,t){if(!e)return null;if(ht(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const m6=function(e){var t=f.useRef(),n=f.useRef(e);n.current=e;var r=f__namespace.useCallback(function(i){n.current(i);},[]);function o(i){i&&(i.removeEventListener(k0,r),i.removeEventListener(L0,r));}function a(i){t.current&&t.current!==i&&o(t.current),i&&i!==t.current&&(i.addEventListener(k0,r),i.addEventListener(L0,r),t.current=i);}return f__namespace.useEffect(function(){return function(){o(t.current);}},[]),[a,o]};var bw=nr()?f.useLayoutEffect:f.useEffect,yw=function(t){return +setTimeout(t,16)},Cw=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(yw=function(t){return window.requestAnimationFrame(t)},Cw=function(t){return window.cancelAnimationFrame(t)});var j0=0,_h=new Map;function Sw(e){_h.delete(e);}var Et=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;j0+=1;var r=j0;function o(a){if(a===0)Sw(r),t();else {var i=yw(function(){o(a-1);});_h.set(r,i);}}return o(n),r};Et.cancel=function(e){var t=_h.get(e);return Sw(e),Cw(t)};const g6=function(){var e=f__namespace.useRef(null);function t(){Et.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Et(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1);});e.current=a;}return f__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var v6=[Xr,di,fi,Rh],h6=[Xr,fw],$w=!1,p6=!0;function ww(e){return e===fi||e===Rh}const b6=function(e,t,n){var r=wa(N0),o=J(r,2),a=o[0],i=o[1],l=g6(),s=J(l,2),c=s[0],u=s[1];function d(){i(Xr,!0);}var m=t?h6:v6;return bw(function(){if(a!==N0&&a!==Rh){var g=m.indexOf(a),v=m[g+1],h=n(a);h===$w?i(v,!0):v&&c(function(p){function b(){p.isCanceled()||i(v,!0);}h===!0?b():Promise.resolve(h).then(b);});}},[e,a]),f__namespace.useEffect(function(){return function(){u();}},[]),[d,a]};function y6(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,l=i===void 0?!0:i,s=r.motionLeave,c=s===void 0?!0:s,u=r.motionDeadline,d=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,v=r.onLeavePrepare,h=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,C=r.onEnterActive,w=r.onLeaveActive,x=r.onAppearEnd,$=r.onEnterEnd,S=r.onLeaveEnd,O=r.onVisibleChanged,E=wa(),I=J(E,2),P=I[0],N=I[1],L=wa(ua),k=J(L,2),A=k[0],T=k[1],R=wa(null),_=J(R,2),D=_[0],z=_[1],F=f.useRef(!1),W=f.useRef(null);function V(){return n()}var X=f.useRef(!1);function q(){T(ua,!0),z(null,!0);}function Q(ae){var ie=V();if(!(ae&&!ae.deadline&&ae.target!==ie)){var fe=X.current,Ee;A===xc&&fe?Ee=x==null?void 0:x(ie,ae):A===Ec&&fe?Ee=$==null?void 0:$(ie,ae):A===Oc&&fe&&(Ee=S==null?void 0:S(ie,ae)),A!==ua&&fe&&Ee!==!1&&q();}}var ue=m6(Q),Y=J(ue,1),ce=Y[0],Z=function(ie){var fe,Ee,$e;switch(ie){case xc:return fe={},H(fe,Xr,m),H(fe,di,h),H(fe,fi,y),fe;case Ec:return Ee={},H(Ee,Xr,g),H(Ee,di,p),H(Ee,fi,C),Ee;case Oc:return $e={},H($e,Xr,v),H($e,di,b),H($e,fi,w),$e;default:return {}}},ee=f__namespace.useMemo(function(){return Z(A)},[A]),ne=b6(A,!e,function(ae){if(ae===Xr){var ie=ee[Xr];return ie?ie(V()):$w}if(K in ee){var fe;z(((fe=ee[K])===null||fe===void 0?void 0:fe.call(ee,V(),null))||null);}return K===fi&&(ce(V()),u>0&&(clearTimeout(W.current),W.current=setTimeout(function(){Q({deadline:!0});},u))),K===fw&&q(),p6}),le=J(ne,2),se=le[0],K=le[1],te=ww(K);X.current=te,bw(function(){N(t);var ae=F.current;F.current=!0;var ie;!ae&&t&&l&&(ie=xc),ae&&t&&a&&(ie=Ec),(ae&&!t&&c||!ae&&d&&!t&&c)&&(ie=Oc);var fe=Z(ie);ie&&(e||fe[Xr])?(T(ie),se()):T(ua);},[t]),f.useEffect(function(){(A===xc&&!l||A===Ec&&!a||A===Oc&&!c)&&T(ua);},[l,a,c]),f.useEffect(function(){return function(){F.current=!1,clearTimeout(W.current);}},[]);var re=f__namespace.useRef(!1);f.useEffect(function(){P&&(re.current=!0),P!==void 0&&A===ua&&((re.current||P)&&(O==null||O(P)),re.current=!0);},[P,A]);var ve=D;return ee[Xr]&&K===di&&(ve=U({transition:"none"},ve)),[A,K,ve,P??t]}function C6(e){var t=e;ht(e)==="object"&&(t=e.transitionSupport);function n(o,a){return !!(o.motionName&&t&&a!==!1)}var r=f__namespace.forwardRef(function(o,a){var i=o.visible,l=i===void 0?!0:i,s=o.removeOnLeave,c=s===void 0?!0:s,u=o.forceRender,d=o.children,m=o.motionName,g=o.leavedClassName,v=o.eventProps,h=f__namespace.useContext(dw),p=h.motion,b=n(o,p),y=f.useRef(),C=f.useRef();function w(){try{return y.current instanceof HTMLElement?y.current:Al(C.current)}catch{return null}}var x=y6(b,l,w,o),$=J(x,4),S=$[0],O=$[1],E=$[2],I=$[3],P=f__namespace.useRef(I);I&&(P.current=!0);var N=f__namespace.useCallback(function(z){y.current=z,Mh(a,z);},[a]),L,k=U(U({},v),{},{visible:l});if(!d)L=null;else if(S===ua)I?L=d(U({},k),N):!c&&P.current&&g?L=d(U(U({},k),{},{className:g}),N):u||!c&&!g?L=d(U(U({},k),{},{style:{display:"none"}}),N):L=null;else {var A,T;O===Xr?T="prepare":ww(O)?T="active":O===di&&(T="start");var R=A0(m,"".concat(S,"-").concat(T));L=d(U(U({},k),{},{className:G(A0(m,S),(A={},H(A,R,R&&T),H(A,m,typeof m=="string"),A)),style:E}),N);}if(f__namespace.isValidElement(L)&&ia(L)){var _=L,D=_.ref;D||(L=f__namespace.cloneElement(L,{ref:N}));}return f__namespace.createElement(c6,{ref:C},L)});return r.displayName="CSSMotion",r}const Rr=C6(pw);var $g="add",wg="keep",xg="remove",im="removed";function S6(e){var t;return e&&ht(e)==="object"&&"key"in e?t=e:t={key:e},U(U({},t),{},{key:String(t.key)})}function Eg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(S6)}function $6(){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,a=Eg(e),i=Eg(t);a.forEach(function(c){for(var u=!1,d=r;d<o;d+=1){var m=i[d];if(m.key===c.key){r<d&&(n=n.concat(i.slice(r,d).map(function(g){return U(U({},g),{},{status:$g})})),r=d),n.push(U(U({},m),{},{status:wg})),r+=1,u=!0;break}}u||n.push(U(U({},c),{},{status:xg}));}),r<o&&(n=n.concat(i.slice(r).map(function(c){return U(U({},c),{},{status:$g})})));var l={};n.forEach(function(c){var u=c.key;l[u]=(l[u]||0)+1;});var s=Object.keys(l).filter(function(c){return l[c]>1});return s.forEach(function(c){n=n.filter(function(u){var d=u.key,m=u.status;return d!==c||m!==xg}),n.forEach(function(u){u.key===c&&(u.status=wg);});}),n}var w6=["component","children","onVisibleChanged","onAllRemoved"],x6=["status"],E6=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function O6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rr,n=function(r){Yi(a,r);var o=Zi(a);function a(){var i;cr(this,a);for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return i=o.call.apply(o,[this].concat(s)),H(Dt(i),"state",{keyEntities:[]}),H(Dt(i),"removeKey",function(u){var d=i.state.keyEntities,m=d.map(function(g){return g.key!==u?g:U(U({},g),{},{status:im})});return i.setState({keyEntities:m}),m.filter(function(g){var v=g.status;return v!==im}).length}),i}return ur(a,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,c=this.props,u=c.component,d=c.children,m=c.onVisibleChanged,g=c.onAllRemoved,v=dt(c,w6),h=u||f__namespace.Fragment,p={};return E6.forEach(function(b){p[b]=v[b],delete v[b];}),delete v.keys,f__namespace.createElement(h,v,s.map(function(b,y){var C=b.status,w=dt(b,x6),x=C===$g||C===wg;return f__namespace.createElement(t,xe({},p,{key:w.key,visible:x,eventProps:w,onVisibleChanged:function(S){if(m==null||m(S,{key:w.key}),!S){var O=l.removeKey(w.key);O===0&&g&&g();}}}),function($,S){return d(U(U({},$),{},{index:y}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var c=l.keys,u=s.keyEntities,d=Eg(c),m=$6(u,d);return {keyEntities:m.filter(function(g){var v=u.find(function(h){var p=h.key;return g.key===p});return !(v&&v.status===im&&g.status===xg)})}}}]),a}(f__namespace.Component);return H(n,"defaultProps",{component:"div"}),n}const I6=O6(pw);function Og(e){return e!=null&&e===e.window}function xw(e,t){var n,r;if(typeof window>"u")return 0;const o=t?"scrollTop":"scrollLeft";let a=0;return Og(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:(e instanceof HTMLElement||e)&&(a=e[o]),e&&!Og(e)&&typeof a!="number"&&(a=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[o]),a}function P6(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function M6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,a=n(),i=xw(a,!0),l=Date.now(),s=()=>{const u=Date.now()-l,d=P6(u>o?o:u,i,e,o);Og(a)?a.scrollTo(window.pageXOffset,d):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=d:a.scrollTop=d,u<o?Et(s):typeof r=="function"&&r();};Et(s);}function Ig(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 R6(e){if(Array.isArray(e))return Ig(e)}function _6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N6(e,t){if(e){if(typeof e=="string")return Ig(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 Ig(e,t)}}function T6(){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 Fn(e){return R6(e)||_6(e)||N6(e)||T6()}function L6(e){let t;const n=o=>()=>{t=null,e.apply(void 0,Fn(o));},r=function(){if(t==null){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];t=Et(n(a));}};return r.cancel=()=>{Et.cancel(t),t=null;},r}function k6(e){if(Array.isArray(e))return mg(e)}function Ew(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function A6(){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 Ge(e){return k6(e)||Ew(e)||wh(e)||A6()}function Cu(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 _s(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(a);if(Tn(!s,"Warning: There may be circular references"),s)return !1;if(a===i)return !0;if(n&&l>1)return !1;r.add(a);var c=l+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return !1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return !1;return !0}if(a&&i&&ht(a)==="object"&&ht(i)==="object"){var d=Object.keys(a);return d.length!==Object.keys(i).length?!1:d.every(function(m){return o(a[m],i[m],c)})}return !1}return o(e,t)}var D0="%",j6=function(){function e(t){cr(this,e),H(this,"instanceId",void 0),H(this,"cache",new Map),this.instanceId=t;}return ur(e,[{key:"get",value:function(n){return this.cache.get(n.join(D0))||null}},{key:"update",value:function(n,r){var o=n.join(D0),a=this.cache.get(o),i=r(a);i===null?this.cache.delete(o):this.cache.set(o,i);}}]),e}(),Ii="data-token-hash",Qr="data-css-hash",Ko="__cssinjs_instance__";function D6(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Qr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ko]=o[Ko]||e,o[Ko]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(Qr,"]"))).forEach(function(o){var a=o.getAttribute(Qr);if(r[a]){if(o[Ko]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o);}}else r[a]=!0;});}return new j6(e)}var Ud=f__namespace.createContext({hashPriority:"low",cache:D6(),defaultCache:!0});function z6(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 Nh=function(){function e(){cr(this,e),H(this,"cache",void 0),H(this,"keys",void 0),H(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return ur(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(l){if(!i)i=void 0;else {var s;i=(s=i)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l);}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===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 a=this.keys.reduce(function(c,u){var d=J(c,2),m=d[1];return o.internalGet(u)[1]<m?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=J(a,1),l=i[0];this.delete(l);}this.keys.push(n);}var s=this.cache;n.forEach(function(c,u){if(u===n.length-1)s.set(c,{value:[r,o.cacheCallTimes++]});else {var d=s.get(c);d?d.map||(d.map=new Map):s.set(c,{map:new Map}),s=s.get(c).map;}});}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return (!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return !z6(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();H(Nh,"MAX_CACHE_SIZE",20);H(Nh,"MAX_CACHE_OFFSET",5);var z0=0,Ow=function(){function e(t){cr(this,e),H(this,"derivatives",void 0),H(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=z0,t.length===0&&(t.length>0,void 0),z0+=1;}return ur(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),lm=new Nh;function as(e){var t=Array.isArray(e)?e:[e];return lm.has(t)||lm.set(t,new Ow(t)),lm.get(t)}var F6=new WeakMap,sm={};function B6(e,t){for(var n=F6,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o);}return n.has(sm)||n.set(sm,e()),n.get(sm)}var F0=new WeakMap;function jl(e){var t=F0.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Ow?t+=r.id:r&&ht(r)==="object"?t+=jl(r):t+=r;}),F0.set(e,t)),t}function B0(e,t){return Cu("".concat(t,"_").concat(jl(e)))}var Dl="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Iw="_bAmBoO_";function H6(e,t,n){if(nr()){var r,o;Qo(e,Dl);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t==null||t(a),document.body.appendChild(a);var i=n?n(a):(r=getComputedStyle(a).content)===null||r===void 0?void 0:r.includes(Iw);return (o=a.parentNode)===null||o===void 0||o.removeChild(a),os(Dl),i}return !1}var cm=void 0;function W6(){return cm===void 0&&(cm=H6("@layer ".concat(Dl," { .").concat(Dl,' { content: "').concat(Iw,'"!important; } }'),function(e){e.className=Dl;})),cm}var Pg=nr();function B(e){return typeof e=="number"?"".concat(e,"px"):e}function Su(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var i=U(U({},o),{},(r={},H(r,Ii,t),H(r,Qr,n),r)),l=Object.keys(i).map(function(s){var c=i[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return "<style ".concat(l,">").concat(e,"</style>")}var Pw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return "--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},V6=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var a=J(o,2),i=a[0],l=a[1];return "".concat(i,":").concat(l,";")}).join(""),"}"):""},Mw=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var l,s,c=J(i,2),u=c[0],d=c[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[u])a[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[u])){var m,g=Pw(u,r==null?void 0:r.prefix);o[g]=typeof d=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[u])?"".concat(d,"px"):String(d),a[u]="var(".concat(g,")");}}),[a,V6(o,n,{scope:r==null?void 0:r.scope})]},H0=nr()?f__namespace.useLayoutEffect:f__namespace.useEffect,en=function(t,n){var r=f__namespace.useRef(!0);H0(function(){return t(r.current)},n),H0(function(){return r.current=!1,function(){r.current=!0;}},[]);},vi=function(t,n){en(function(r){if(!r)return t()},n);},G6=U({},f__namespace),W0=G6.useInsertionEffect,K6=function(t,n,r){f__namespace.useMemo(t,r),en(function(){return n(!0)},r);},U6=W0?function(e,t,n){return W0(function(){return e(),t()},n)}:K6,q6=U({},f__namespace),X6=q6.useInsertionEffect,Y6=function(t){var n=[],r=!1;function o(a){r||n.push(a);}return f__namespace.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()});}},t),o},Z6=function(){return function(t){t();}},Q6=typeof X6<"u"?Y6:Z6;function Th(e,t,n,r,o){var a=f__namespace.useContext(Ud),i=a.cache,l=[e].concat(Ge(t)),s=l.join("_"),c=Q6([s]),u=function(v){i.update(l,function(h){var p=h||[void 0,void 0],b=J(p,2),y=b[0],C=y===void 0?0:y,w=b[1],x=w,$=x||n(),S=[C,$];return v?v(S):S});};f__namespace.useMemo(function(){u();},[s]);var d=i.get(l),m=d[1];return U6(function(){o==null||o(m);},function(g){return u(function(v){var h=J(v,2),p=h[0],b=h[1];return g&&p===0&&(o==null||o(m)),[p+1,b]}),function(){i.update(l,function(v){var h=v||[],p=J(h,2),b=p[0],y=b===void 0?0:b,C=p[1],w=y-1;return w===0?(c(function(){(g||!i.get(l))&&(r==null||r(C,!1));}),null):[y-1,C]});}},[s]),m}var J6={},eF="css",fa=new Map;function tF(e){fa.set(e,(fa.get(e)||0)+1);}function nF(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ii,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ko]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}var rF=0;function oF(e,t){fa.set(e,(fa.get(e)||0)-1);var n=Array.from(fa.keys()),r=n.filter(function(o){var a=fa.get(o)||0;return a<=0});n.length-r.length>rF&&r.forEach(function(o){nF(o,t),fa.delete(o);});}var Rw=function(t,n,r,o){var a=r.getDerivativeToken(t),i=U(U({},a),n);return o&&(i=o(i)),i},_w="token";function aF(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(Ud),o=r.cache.instanceId,a=r.container,i=n.salt,l=i===void 0?"":i,s=n.override,c=s===void 0?J6:s,u=n.formatToken,d=n.getComputedToken,m=n.cssVar,g=B6(function(){return Object.assign.apply(Object,[{}].concat(Ge(t)))},t),v=jl(g),h=jl(c),p=m?jl(m):"",b=Th(_w,[l,e.id,v,h,p],function(){var y,C=d?d(g,c,e):Rw(g,c,e,u),w=U({},C),x="";if(m){var $=Mw(C,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),S=J($,2);C=S[0],x=S[1];}var O=B0(C,l);C._tokenKey=O,w._tokenKey=B0(w,l);var E=(y=m==null?void 0:m.key)!==null&&y!==void 0?y:O;C._themeKey=E,tF(E);var I="".concat(eF,"-").concat(Cu(O));return C._hashId=I,[C,I,w,x,(m==null?void 0:m.key)||""]},function(y){oF(y[0]._themeKey,o);},function(y){var C=J(y,4),w=C[0],x=C[3];if(m&&x){var $=Qo(x,Cu("css-variables-".concat(w._themeKey)),{mark:Qr,prepend:"queue",attachTo:a,priority:-999});$[Ko]=o,$.setAttribute(Ii,w._themeKey);}});return b}var iF=function(t,n,r){var o=J(t,5),a=o[2],i=o[3],l=o[4],s=r||{},c=s.plain;if(!i)return null;var u=a._tokenKey,d=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},g=Su(i,l,u,m,c);return [d,u,g]},lF={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},V0="data-ant-cssinjs-cache-path",Nw="_FILE_STYLE__",xa,Tw=!0;function sF(){if(!xa&&(xa={},nr())){var e=document.createElement("div");e.className=V0,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=J(a,2),l=i[0],s=i[1];xa[l]=s;});var n=document.querySelector("style[".concat(V0,"]"));if(n){var r;Tw=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n);}document.body.removeChild(e);}}function cF(e){return sF(),!!xa[e]}function uF(e){var t=xa[e],n=null;if(t&&nr())if(Tw)n=Nw;else {var r=document.querySelector("style[".concat(Qr,'="').concat(xa[e],'"]'));r?n=r.innerHTML:delete xa[e];}return [n,t]}var dF="_skip_check_",Lw="_multi_value_";function Mg(e){var t=$a(b$(e),y$);return t.replace(/\{%%%\:[^;];}/g,";")}function fF(e){return ht(e)==="object"&&e&&(dF in e||Lw in e)}function mF(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var l,s=i.trim().split(/\s+/),c=s[0]||"",u=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Ge(s.slice(1))).join(" ")});return a.join(",")}var gF=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,a=r.injectHash,i=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var m="",g={};function v(C){var w=C.getName(l);if(!g[w]){var x=e(C.style,n,{root:!1,parentSelectors:i}),$=J(x,1),S=$[0];g[w]="@keyframes ".concat(C.getName(l)).concat(S);}}function h(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(x){Array.isArray(x)?h(x,w):x&&w.push(x);}),w}var p=h(Array.isArray(t)?t:[t]);if(p.forEach(function(C){var w=typeof C=="string"&&!o?{}:C;if(typeof w=="string")m+="".concat(w,`
`);else if(w._keyframe)v(w);else {var x=d.reduce(function($,S){var O;return (S==null||(O=S.visit)===null||O===void 0?void 0:O.call(S,$))||$},w);Object.keys(x).forEach(function($){var S=x[$];if(ht(S)==="object"&&S&&($!=="animationName"||!S._keyframe)&&!fF(S)){var O=!1,E=$.trim(),I=!1;(o||a)&&l?E.startsWith("@")?O=!0:E=mF($,l,c):o&&!l&&(E==="&"||E==="")&&(E="",I=!0);var P=e(S,n,{root:I,injectHash:O,parentSelectors:[].concat(Ge(i),[E])}),N=J(P,2),L=N[0],k=N[1];g=U(U({},g),k),m+="".concat(E).concat(L);}else {let R=function(_,D){var z=_.replace(/[A-Z]/g,function(W){return "-".concat(W.toLowerCase())}),F=D;!lF[_]&&typeof F=="number"&&F!==0&&(F="".concat(F,"px")),_==="animationName"&&D!==null&&D!==void 0&&D._keyframe&&(v(D),F=D.getName(l)),m+="".concat(z,":").concat(F,";");};var A,T=(A=S==null?void 0:S.value)!==null&&A!==void 0?A:S;ht(S)==="object"&&S!==null&&S!==void 0&&S[Lw]&&Array.isArray(T)?T.forEach(function(_){R($,_);}):R($,T);}});}}),!o)m="{".concat(m,"}");else if(s&&W6()){var b=s.split(","),y=b[b.length-1].trim();m="@layer ".concat(y," {").concat(m,"}"),b.length>1&&(m="@layer ".concat(s,"{%%%:%}").concat(m));}return [m,g]};function kw(e,t){return Cu("".concat(e.join("%")).concat(t))}function vF(){return null}var Aw="style";function Rg(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,u=f__namespace.useContext(Ud),d=u.autoClear;u.mock;var m=u.defaultCache,g=u.hashPriority,v=u.container,h=u.ssrInline,p=u.transformers,b=u.linters,y=u.cache,C=n._tokenKey,w=[C].concat(Ge(r)),x=Pg,$=Th(Aw,w,function(){var P=w.join("|");if(cF(P)){var N=uF(P),L=J(N,2),k=L[0],A=L[1];if(k)return [k,C,A,{},l,c]}var T=t(),R=gF(T,{hashId:o,hashPriority:g,layer:a,path:r.join("-"),transformers:p,linters:b}),_=J(R,2),D=_[0],z=_[1],F=Mg(D),W=kw(w,F);return [F,C,W,z,l,c]},function(P,N){var L=J(P,3),k=L[2];(N||d)&&Pg&&os(k,{mark:Qr});},function(P){var N=J(P,4),L=N[0];N[1];var k=N[2],A=N[3];if(x&&L!==Nw){var T={mark:Qr,prepend:"queue",attachTo:v,priority:c},R=typeof i=="function"?i():i;R&&(T.csp={nonce:R});var _=Qo(L,k,T);_[Ko]=y.instanceId,_.setAttribute(Ii,C),Object.keys(A).forEach(function(D){Qo(Mg(A[D]),"_effect-".concat(D),T);});}}),S=J($,3),O=S[0],E=S[1],I=S[2];return function(P){var N;if(!h||x||!m)N=f__namespace.createElement(vF,null);else {var L;N=f__namespace.createElement("style",xe({},(L={},H(L,Ii,E),H(L,Qr,I),L),{dangerouslySetInnerHTML:{__html:O}}));}return f__namespace.createElement(f__namespace.Fragment,null,N,P)}}var hF=function(t,n,r){var o=J(t,6),a=o[0],i=o[1],l=o[2],s=o[3],c=o[4],u=o[5],d=r||{},m=d.plain;if(c)return null;var g=a,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return g=Su(a,i,l,v,m),s&&Object.keys(s).forEach(function(h){if(!n[h]){n[h]=!0;var p=Mg(s[h]);g+=Su(p,i,"_effect-".concat(h),v,m);}}),[u,l,g]},jw="cssVar",pF=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,l=t.token,s=t.scope,c=s===void 0?"":s,u=f.useContext(Ud),d=u.cache.instanceId,m=u.container,g=l._tokenKey,v=[].concat(Ge(t.path),[r,c,g]),h=Th(jw,v,function(){var p=n(),b=Mw(p,r,{prefix:o,unitless:a,ignore:i,scope:c}),y=J(b,2),C=y[0],w=y[1],x=kw(v,w);return [C,w,x,r]},function(p){var b=J(p,3),y=b[2];Pg&&os(y,{mark:Qr});},function(p){var b=J(p,3),y=b[1],C=b[2];if(y){var w=Qo(y,C,{mark:Qr,prepend:"queue",attachTo:m,priority:-999});w[Ko]=d,w.setAttribute(Ii,r);}});return h},bF=function(t,n,r){var o=J(t,4),a=o[1],i=o[2],l=o[3],s=r||{},c=s.plain;if(!a)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},m=Su(a,l,i,d,c);return [u,i,m]},gl;gl={},H(gl,Aw,hF),H(gl,_w,iF),H(gl,jw,bF);var St=function(){function e(t,n){cr(this,e),H(this,"name",void 0),H(this,"style",void 0),H(this,"_keyframe",!0),this.name=t,this.style=n;}return ur(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 Ga(e){return e.notSplit=!0,e}Ga(["borderTop","borderBottom"]),Ga(["borderTop"]),Ga(["borderBottom"]),Ga(["borderLeft","borderRight"]),Ga(["borderLeft"]),Ga(["borderRight"]);function Dw(e){return U$(e)||Ew(e)||wh(e)||q$()}function fo(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function zw(e,t,n,r){if(!t.length)return n;var o=Dw(t),a=o[0],i=o.slice(1),l;return !e&&typeof a=="number"?l=[]:Array.isArray(e)?l=Ge(e):l=U({},e),r&&n===void 0&&i.length===1?delete l[a][i[0]]:l[a]=zw(l[a],i,n,r),l}function Yr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!fo(e,t.slice(0,-1))?e:zw(e,t,n,r)}function yF(e){return ht(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function G0(e){return Array.isArray(e)?[]:{}}var CF=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function mi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=G0(t[0]);return t.forEach(function(o){function a(i,l){var s=new Set(l),c=fo(o,i),u=Array.isArray(c);if(u||yF(c)){if(!s.has(c)){s.add(c);var d=fo(r,i);u?r=Yr(r,i,[]):(!d||ht(d)!=="object")&&(r=Yr(r,i,G0(c))),CF(c).forEach(function(m){a([].concat(Ge(i),[m]),s);});}}else r=Yr(r,i,c);}a([]);}),r}function SF(){}const $F=f__namespace.createContext({}),Ns=()=>{const e=()=>{};return e.deprecated=SF,e},wF=f.createContext(void 0);var Fw={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"},xF={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 EF={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Bw=EF,OF={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"]},xF),timePickerLocale:Object.assign({},Bw)},K0=OF,yr="${label} is not a valid ${type}",IF={locale:"en",Pagination:Fw,DatePicker:K0,TimePicker:Bw,Calendar:K0,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:yr,method:yr,array:yr,object:yr,number:yr,date:yr,boolean:yr,integer:yr,float:yr,regexp:yr,email:yr,url:yr,hex:yr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}},bo=IF;let Kc=Object.assign({},bo.Modal),Uc=[];const U0=()=>Uc.reduce((e,t)=>Object.assign(Object.assign({},e),t),bo.Modal);function PF(e){if(e){const t=Object.assign({},e);return Uc.push(t),Kc=U0(),()=>{Uc=Uc.filter(n=>n!==t),Kc=U0();}}Kc=Object.assign({},bo.Modal);}function MF(){return Kc}const RF=f.createContext(void 0),Lh=RF,_F=(e,t)=>{const n=f__namespace.useContext(Lh),r=f__namespace.useMemo(()=>{var a;const i=t||bo[e],l=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),o=f__namespace.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?bo.locale:a},[n]);return [r,o]},Lo=_F,NF="internalMark",TF=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f__namespace.useEffect(()=>PF(t&&t.Modal),[t]);const o=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(Lh.Provider,{value:o},n)},LF=TF,kF=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Hw=kF;function AF(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 kh={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"},jF=Object.assign(Object.assign({},kh),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Pi=jF;function Ww(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),m=n(o),g=n(a),v=n(i),h=n(l),p=r(c,u),b=e.colorLink||e.colorInfo,y=n(b);return Object.assign(Object.assign({},p),{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:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new nn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const DF=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,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},zF=DF;function FF(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},zF(r))}const xo=(e,t)=>new nn(e).setAlpha(t).toRgbString(),vl=(e,t)=>new nn(e).darken(t).toHexString(),BF=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]}},HF=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:xo(r,.88),colorTextSecondary:xo(r,.65),colorTextTertiary:xo(r,.45),colorTextQuaternary:xo(r,.25),colorFill:xo(r,.15),colorFillSecondary:xo(r,.06),colorFillTertiary:xo(r,.04),colorFillQuaternary:xo(r,.02),colorBgLayout:vl(n,4),colorBgContainer:vl(n,0),colorBgElevated:vl(n,0),colorBgSpotlight:xo(r,.85),colorBgBlur:"transparent",colorBorder:vl(n,15),colorBorderSecondary:vl(n,6)}};function qc(e){return (e+8)/e}function WF(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:qc(n)}))}const VF=e=>{const t=WF(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],a=n[0],i=n[2],l=r[1],s=r[0],c=r[2];return {fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},Vw=VF;function Ts(e){const t=Object.keys(kh).map(n=>{const r=Po(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],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),Ww(e,{generateColorPalettes:BF,generateNeutralColorPalettes:HF})),Vw(e.fontSize)),AF(e)),Hw(e)),FF(e))}const Gw=as(Ts),$u={token:Pi,override:{override:Pi},hashed:!0},Kw=f.createContext($u),Ah="anticon",GF=(e,t)=>t||(e?`ant-${e}`:"ant"),nt=f__namespace.createContext({getPrefixCls:GF,iconPrefixCls:Ah}),KF=`-ant-${Date.now()}-${Math.random()}`;function UF(e,t){const n={},r=(i,l)=>{let s=i.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(i,l)=>{const s=new nn(i),c=Po(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=c[1],n[`${l}-color-hover`]=c[4],n[`${l}-color-active`]=c[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=c[0],n[`${l}-color-deprecated-border`]=c[2];};if(t.primaryColor){o(t.primaryColor,"primary");const i=new nn(t.primaryColor),l=Po(i.toRgbString());l.forEach((c,u)=>{n[`primary-${u+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(i,c=>c.setAlpha(c.getAlpha()*.12));const s=new nn(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,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(i=>`--${e}-${i}: ${n[i]};`).join(`
`)}
}
`.trim()}function qF(e,t){const n=UF(e,t);nr()&&Qo(n,`${KF}-dynamic-theme`);}const _g=f__namespace.createContext(!1),Uw=e=>{let{children:t,disabled:n}=e;const r=f__namespace.useContext(_g);return f__namespace.createElement(_g.Provider,{value:n??r},t)},oo=_g,Ng=f__namespace.createContext(void 0),XF=e=>{let{children:t,size:n}=e;const r=f__namespace.useContext(Ng);return f__namespace.createElement(Ng.Provider,{value:n||r},t)},qd=Ng;function YF(){const e=f.useContext(oo),t=f.useContext(qd);return {componentDisabled:e,componentSize:t}}const is=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],ZF="5.13.2";function um(e){return e>=0&&e<=255}function Pc(e,t){const{r:n,g:r,b:o,a}=new nn(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new nn(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),d=Math.round((r-l*(1-c))/c),m=Math.round((o-s*(1-c))/c);if(um(u)&&um(d)&&um(m))return new nn({r:u,g:d,b:m,a:Math.round(c*100)/100}).toRgbString()}return new nn({r:n,g:r,b:o,a:1}).toRgbString()}var QF=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 jh(e){const{override:t}=e,n=QF(e,["override"]),r=Object.assign({},t);Object.keys(Pi).forEach(m=>{delete r[m];});const o=Object.assign(Object.assign({},n),r),a=480,i=576,l=768,s=992,c=1200,u=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m;}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Pc(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:Pc(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Pc(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:Pc(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:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,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 nn("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new nn("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new nn("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)}var q0=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 qw={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},Xw={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},JF={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Yw=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=q0(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=jh(i),a&&Object.entries(a).forEach(l=>{let[s,c]=l;const{theme:u}=c,d=q0(c,["theme"]);let m=d;u&&(m=Yw(Object.assign(Object.assign({},i),d),{override:d},u)),i[s]=m;}),i};function In(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=f.useContext(Kw),a=`${ZF}-${t||""}`,i=n||Gw,[l,s,c]=aF(i,[Pi,e],{salt:a,override:r,getComputedToken:Yw,formatToken:jh,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:qw,ignore:Xw,preserve:JF}});return [i,c,t?s:"",l,o]}function Kn(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function dm(e){return e!==void 0}function Gt(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,l=wa(function(){return dm(o)?o:dm(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=J(l,2),c=s[0],u=s[1],d=o!==void 0?o:c,m=i?i(d):d,g=Kn(a),v=wa([d]),h=J(v,2),p=h[0],b=h[1];vi(function(){var C=p[0];c!==C&&g(c,C);},[p]),vi(function(){dm(o)||u(o);},[o]);var y=Kn(function(C,w){u(C,w),b([d],w);});return [m,y]}const Ra={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Lt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return {boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},ja=()=>({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"}}),wu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),e8=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),t8=(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"}}}}},_a=e=>({outline:`${B(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Jo=e=>({"&:focus-visible":Object.assign({},_a(e))});function Xd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mi(e){"@babel/helpers - typeof";return Mi=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},Mi(e)}function n8(e,t){if(Mi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function r8(e){var t=n8(e,"string");return Mi(t)==="symbol"?t:String(t)}function X0(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,r8(r.key),r);}}function Yd(e,t,n){return t&&X0(e.prototype,t),n&&X0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zw(e,t){if(t&&(Mi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o8(e)}function Qw(){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 Ri(e){return Ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ri(e)}function Tg(e,t){return Tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Tg(e,t)}function Jw(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&&Tg(e,t);}let a8=Yd(function e(){Xd(this,e);});const ex=a8;function i8(e,t,n){return t=Ri(t),Zw(e,Qw()?Reflect.construct(t,n||[],Ri(e).constructor):t.apply(e,n))}let l8=function(e){Jw(t,e);function t(n){var r;return Xd(this,t),r=i8(this,t),r.result=0,n instanceof t?r.result=n.result:typeof n=="number"&&(r.result=n),r}return Yd(t,[{key:"add",value:function(r){return r instanceof t?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof t?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof t?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof t?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),t}(ex);function s8(e,t,n){return t=Ri(t),Zw(e,Qw()?Reflect.construct(t,n||[],Ri(e).constructor):t.apply(e,n))}const tx="CALC_UNIT";function fm(e){return typeof e=="number"?`${e}${tx}`:e}let c8=function(e){Jw(t,e);function t(n){var r;return Xd(this,t),r=s8(this,t),r.result="",n instanceof t?r.result=`(${n.result})`:typeof n=="number"?r.result=fm(n):typeof n=="string"&&(r.result=n),r}return Yd(t,[{key:"add",value:function(r){return r instanceof t?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${fm(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof t?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${fm(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:o=!0}=r||{},a=new RegExp(`${tx}`,"g");return this.result=this.result.replace(a,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),t}(ex);const u8=e=>{const t=e==="css"?c8:l8;return n=>new t(n)},d8=u8;function f8(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return `max(${n.map(o=>B(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return `min(${n.map(o=>B(o)).join(",")})`}}}const nx=typeof CSSINJS_STATISTIC<"u";let Lg=!0;function Ot(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!nx)return Object.assign.apply(Object,[{}].concat(t));Lg=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]});});}),Lg=!0,r}const Y0={};function m8(){}const g8=e=>{let t,n=e,r=m8;return nx&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return Lg&&t.add(a),o[a]}}),r=(o,a)=>{var i;Y0[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=Y0[o])===null||i===void 0?void 0:i.component),a)};}),{token:n,keys:t,flush:r}},v8=(e,t)=>{const[n,r]=In();return Rg({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},ja()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},rx=v8,ox=(e,t,n)=>{var r;return typeof n=="function"?n(Ot(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},ax=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:i}=r;i.forEach(l=>{let[s,c]=l;var u;(o!=null&&o[s]||o!=null&&o[c])&&((u=o[c])!==null&&u!==void 0||(o[c]=o==null?void 0:o[s]));});}const a=Object.assign(Object.assign({},n),o);return Object.keys(a).forEach(i=>{a[i]===t[i]&&delete a[i];}),a},h8=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function Dh(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return l=>{const[s,c,u,d,m]=In(),{getPrefixCls:g,iconPrefixCls:v,csp:h}=f.useContext(nt),p=g(),b=m?"css":"js",y=d8(b),{max:C,min:w}=f8(b),x={theme:s,token:d,hashId:u,nonce:()=>h==null?void 0:h.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Rg(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",p]}),()=>[{"&":e8(d)}]),rx(v,h),[Rg(Object.assign(Object.assign({},x),{path:[i,l,v]}),()=>{if(r.injectStyle===!1)return [];const{token:S,flush:O}=g8(d),E=ox(a,c,n),I=`.${l}`,P=ax(a,c,E,{deprecatedTokens:r.deprecatedTokens});m&&Object.keys(E).forEach(k=>{E[k]=`var(${Pw(k,h8(a,m.prefix))})`;});const N=Ot(S,{componentCls:I,prefixCls:l,iconCls:`.${v}`,antCls:`.${p}`,calc:y,max:C,min:w},m?E:P),L=t(N,{hashId:u,prefixCls:l,rootPrefixCls:p,iconPrefixCls:v});return O(a,P),[r.resetStyle===!1?null:t8(N,l),L]}),u]}}const Ls=(e,t,n,r)=>{const o=Dh(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:l}=i;return o(l),null}},p8=(e,t,n)=>{function r(c){return `${e}${c.slice(0,1).toUpperCase()}${c.slice(1)}`}const{unitless:o={},injectStyle:a=!0}=n??{},i={[r("zIndexPopup")]:!0};Object.keys(o).forEach(c=>{i[r(c)]=o[c];});const l=c=>{let{rootCls:u,cssVar:d}=c;const[,m]=In();return pF({path:[e],prefix:d.prefix,key:d==null?void 0:d.key,unitless:Object.assign(Object.assign({},qw),i),ignore:Xw,token:m,scope:u},()=>{const g=ox(e,m,t),v=ax(e,m,g,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(g).forEach(h=>{v[r(h)]=v[h],delete v[h];}),v}),null};return c=>{const[,,,,u]=In();return [d=>a&&u?f.createElement(f.Fragment,null,f.createElement(l,{rootCls:c,cssVar:u,component:e}),d):d,u==null?void 0:u.key]}},Kt=(e,t,n,r)=>{const o=Dh(e,t,n,r),a=p8(Array.isArray(e)?e[0]:e,n,r);return function(i){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i;const[,s]=o(i),[c,u]=a(l);return [c,s,u]}};function Zd(e,t){return is.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{})}const b8=Object.assign({},f__namespace),{useId:Z0}=b8,y8=()=>"",C8=typeof Z0>"u"?y8:Z0,S8=C8;function $8(e,t){Ns();const n=e||{},r=n.inherit===!1||!t?$u:t,o=S8();return Rs(()=>{var a,i;if(!e)return t;const l=Object.assign({},r.components);Object.keys(e.components||{}).forEach(u=>{l[u]=Object.assign(Object.assign({},l[u]),e.components[u]);});const s=`css-var-${o.replace(/:/g,"")}`,c=((a=n.cssVar)!==null&&a!==void 0?a:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof r.cssVar=="object"?r.cssVar:{}),typeof n.cssVar=="object"?n.cssVar:{}),{key:typeof n.cssVar=="object"&&((i=n.cssVar)===null||i===void 0?void 0:i.key)||s});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:l,cssVar:c})},[n,r],(a,i)=>a.some((l,s)=>{const c=i[s];return !_s(l,c,!0)}))}function w8(e){const{children:t}=e,[,n]=In(),{motion:r}=n,o=f__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?f__namespace.createElement(i6,{motion:r},t):t}const x8=()=>null;var E8=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 O8=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],I8="ant";let xu,ix,lx,sx;function Xc(){return xu||I8}function P8(){return ix||Ah}function M8(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const R8=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(xu=t),n!==void 0&&(ix=n),"holderRender"in e&&(sx=o),r&&(M8(r)?qF(Xc(),r):lx=r);},_8=()=>({getPrefixCls:(e,t)=>t||(e?`${Xc()}-${e}`:Xc()),getIconPrefixCls:P8,getRootPrefixCls:()=>xu||Xc(),getTheme:()=>lx,holderRender:sx}),N8=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:l,componentSize:s,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:v,legacyLocale:h,parentContext:p,iconPrefixCls:b,theme:y,componentDisabled:C,segmented:w,statistic:x,spin:$,calendar:S,carousel:O,cascader:E,collapse:I,typography:P,checkbox:N,descriptions:L,divider:k,drawer:A,skeleton:T,steps:R,image:_,layout:D,list:z,mentions:F,modal:W,progress:V,result:X,slider:q,breadcrumb:Q,menu:ue,pagination:Y,input:ce,empty:Z,badge:ee,radio:ne,rate:le,switch:se,transfer:K,avatar:te,message:re,tag:ve,table:ae,card:ie,tabs:fe,timeline:Ee,timePicker:$e,upload:We,notification:Ke,tree:Te,colorPicker:Ue,datePicker:_e,rangePicker:Oe,flex:De,wave:Ie,dropdown:yt,warning:Qe}=e,gt=f__namespace.useCallback((he,Ne)=>{const{prefixCls:Re}=e;if(Ne)return Ne;const He=Re||p.getPrefixCls("");return he?`${He}-${he}`:He},[p.getPrefixCls,e.prefixCls]),Ze=b||p.iconPrefixCls||Ah,et=n||p.csp;rx(Ze,et);const ot=$8(y,p.theme),wt={csp:et,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:l||h,direction:c,space:u,virtual:d,popupMatchSelectWidth:g??m,popupOverflow:v,getPrefixCls:gt,iconPrefixCls:Ze,theme:ot,segmented:w,statistic:x,spin:$,calendar:S,carousel:O,cascader:E,collapse:I,typography:P,checkbox:N,descriptions:L,divider:k,drawer:A,skeleton:T,steps:R,image:_,input:ce,layout:D,list:z,mentions:F,modal:W,progress:V,result:X,slider:q,breadcrumb:Q,menu:ue,pagination:Y,empty:Z,badge:ee,radio:ne,rate:le,switch:se,transfer:K,avatar:te,message:re,tag:ve,table:ae,card:ie,tabs:fe,timeline:Ee,timePicker:$e,upload:We,notification:Ke,tree:Te,colorPicker:Ue,datePicker:_e,rangePicker:Oe,flex:De,wave:Ie,dropdown:yt,warning:Qe},st=Object.assign({},p);Object.keys(wt).forEach(he=>{wt[he]!==void 0&&(st[he]=wt[he]);}),O8.forEach(he=>{const Ne=e[he];Ne&&(st[he]=Ne);});const mt=Rs(()=>st,st,(he,Ne)=>{const Re=Object.keys(he),He=Object.keys(Ne);return Re.length!==He.length||Re.some(me=>he[me]!==Ne[me])}),ut=f__namespace.useMemo(()=>({prefixCls:Ze,csp:et}),[Ze,et]);let we=f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(x8,{dropdownMatchSelectWidth:m}),t);const Pe=f__namespace.useMemo(()=>{var he,Ne,Re,He;return mi(((he=bo.Form)===null||he===void 0?void 0:he.defaultValidateMessages)||{},((Re=(Ne=mt.locale)===null||Ne===void 0?void 0:Ne.Form)===null||Re===void 0?void 0:Re.defaultValidateMessages)||{},((He=mt.form)===null||He===void 0?void 0:He.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[mt,i==null?void 0:i.validateMessages]);Object.keys(Pe).length>0&&(we=f__namespace.createElement(wF.Provider,{value:Pe},we)),l&&(we=f__namespace.createElement(LF,{locale:l,_ANT_MARK__:NF},we)),(Ze||et)&&(we=f__namespace.createElement(xh.Provider,{value:ut},we)),s&&(we=f__namespace.createElement(XF,{size:s},we)),we=f__namespace.createElement(w8,null,we);const Le=f__namespace.useMemo(()=>{const he=ot||{},{algorithm:Ne,token:Re,components:He,cssVar:me}=he,pe=E8(he,["algorithm","token","components","cssVar"]),Ce=Ne&&(!Array.isArray(Ne)||Ne.length>0)?as(Ne):Gw,ye={};Object.entries(He||{}).forEach(Me=>{let[ze,at]=Me;const rt=Object.assign({},at);"algorithm"in rt&&(rt.algorithm===!0?rt.theme=Ce:(Array.isArray(rt.algorithm)||typeof rt.algorithm=="function")&&(rt.theme=as(rt.algorithm)),delete rt.algorithm),ye[ze]=rt;});const ge=Object.assign(Object.assign({},Pi),Re);return Object.assign(Object.assign({},pe),{theme:Ce,token:ge,components:ye,override:Object.assign({override:ge},ye),cssVar:me})},[ot]);return y&&(we=f__namespace.createElement(Kw.Provider,{value:Le},we)),mt.warning&&(we=f__namespace.createElement($F.Provider,{value:mt.warning},we)),C!==void 0&&(we=f__namespace.createElement(Uw,{disabled:C},we)),f__namespace.createElement(nt.Provider,{value:mt},we)},So=e=>{const t=f__namespace.useContext(nt),n=f__namespace.useContext(Lh);return f__namespace.createElement(N8,Object.assign({parentContext:t,legacyLocale:n},e))};So.ConfigContext=nt;So.SizeContext=qd;So.config=R8;So.useConfig=YF;Object.defineProperty(So,"SizeContext",{get:()=>qd});const cx=f.createContext(void 0),{Provider:T8}=cx,ux=cx;function Yn(e,t){var n=U({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}const L8=is.map(e=>`${e}-inverse`),k8=["success","processing","error","default","warning"];function Qd(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Fn(L8),Fn(is)).includes(e):is.includes(e)}function A8(e){return k8.includes(e)}const{isValidElement:Mo}=f__namespace;function dx(e){return e&&Mo(e)&&e.type===f__namespace.Fragment}function j8(e,t,n){return Mo(e)?f__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function ir(e,t){return j8(e,e,t)}const D8=new St("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),z8=new St("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),F8=new St("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),B8=new St("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),H8=new St("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),W8=new St("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),V8=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,motionDurationSlow:a,textFontSize:i,textFontSizeSM:l,statusSize:s,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:m,marginXS:g,calc:v}=e,h=`${r}-scroll-number`,p=Zd(e,(b,y)=>{let{darkColor:C}=y;return {[`&${t} ${t}-color-${b}`]:{background:C,[`&:not(${t}-count)`]:{color:C}}}});return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:i,lineHeight:B(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:v(d).div(2).equal(),boxShadow:`0 0 0 ${B(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:m,height:m,fontSize:l,lineHeight:B(m),borderRadius:v(m).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${B(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${B(o)} ${e.badgeShadowColor}`},[`${t}-dot${h}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:W8,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:D8,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:g,color:e.colorText,fontSize:e.fontSize}}}),p),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:z8,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:F8,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:B8,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:H8,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${h}`]:{overflow:"hidden",[`${h}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},fx=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,a=t,i=n,l=e.colorBgContainer,s=e.colorError,c=e.colorErrorHover;return Ot(e,{badgeFontHeight:a,badgeShadowSize:i,badgeTextColor:l,badgeColor:s,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},mx=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return {indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},G8=Kt("Badge",e=>{const t=fx(e);return V8(t)},mx),K8=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:a}=e,i=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=Zd(e,(c,u)=>{let{darkColor:d}=u;return {[`&${i}-color-${c}`]:{background:d,color:d}}});return {[`${l}`]:{position:"relative"},[`${i}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{position:"absolute",top:r,padding:`0 ${B(e.paddingXS)}`,color:e.colorPrimary,lineHeight:B(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.colorTextLightSolid},[`${i}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${B(a(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${i}-placement-end`]:{insetInlineEnd:a(o).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:a(o).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},U8=Kt(["Badge","Ribbon"],e=>{const t=fx(e);return K8(t)},mx),q8=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:l="end",rootClassName:s}=e,{getPrefixCls:c,direction:u}=f__namespace.useContext(nt),d=c("ribbon",n),m=`${d}-wrapper`,[g,v,h]=U8(d,m),p=Qd(o,!1),b=G(d,`${d}-placement-${l}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${o}`]:p},t),y={},C={};return o&&!p&&(y.background=o,C.color=o),g(f__namespace.createElement("div",{className:G(m,s,v,h)},a,f__namespace.createElement("div",{className:G(b,v),style:Object.assign(Object.assign({},y),r)},f__namespace.createElement("span",{className:`${d}-text`},i),f__namespace.createElement("div",{className:`${d}-corner`,style:C}))))},X8=q8;function Q0(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),f__namespace.createElement("span",{style:a,className:G(`${t}-only-unit`,{current:r})},n)}function Y8(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function Z8(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,l]=f__namespace.useState(o),[s,c]=f__namespace.useState(a),u=()=>{l(o),c(a);};f__namespace.useEffect(()=>{const g=setTimeout(()=>{u();},1e3);return ()=>{clearTimeout(g);}},[o]);let d,m;if(i===o||Number.isNaN(o)||Number.isNaN(i))d=[f__namespace.createElement(Q0,Object.assign({},e,{key:o,current:!0}))],m={transition:"none"};else {d=[];const g=o+10,v=[];for(let b=o;b<=g;b+=1)v.push(b);const h=v.findIndex(b=>b%10===i);d=v.map((b,y)=>{const C=b%10;return f__namespace.createElement(Q0,Object.assign({},e,{key:b,value:C,offset:y-h,current:y===h}))});const p=s<a?1:-1;m={transform:`translateY(${-Y8(i,o,p)}00%)`};}return f__namespace.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:u},d)}var Q8=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 J8=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:l,show:s,component:c="sup",children:u}=e,d=Q8(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=f__namespace.useContext(nt),g=m("scroll-number",n),v=Object.assign(Object.assign({},d),{"data-show":s,style:i,className:G(g,o,a),title:l});let h=r;if(r&&Number(r)%1===0){const p=String(r).split("");h=f__namespace.createElement("bdi",null,p.map((b,y)=>f__namespace.createElement(Z8,{prefixCls:g,count:Number(r),value:b,key:p.length-y})));}return i&&i.borderColor&&(v.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),u?ir(u,p=>({className:G(`${g}-custom-component`,p==null?void 0:p.className,a)})):f__namespace.createElement(c,Object.assign({},v,{ref:t}),h)}),eB=J8;var tB=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 nB=(e,t)=>{var n,r,o,a,i;const{prefixCls:l,scrollNumberPrefixCls:s,children:c,status:u,text:d,color:m,count:g=null,overflowCount:v=99,dot:h=!1,size:p="default",title:b,offset:y,style:C,className:w,rootClassName:x,classNames:$,styles:S,showZero:O=!1}=e,E=tB(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:I,direction:P,badge:N}=f__namespace.useContext(nt),L=I("badge",l),[k,A,T]=G8(L),R=g>v?`${v}+`:g,_=R==="0"||R===0,D=g===null||_&&!O,z=(u!=null||m!=null)&&D,F=h&&!_,W=F?"":R,V=f.useMemo(()=>(W==null||W===""||_&&!O)&&!F,[W,_,O,F]),X=f.useRef(g);V||(X.current=g);const q=X.current,Q=f.useRef(W);V||(Q.current=W);const ue=Q.current,Y=f.useRef(F);V||(Y.current=F);const ce=f.useMemo(()=>{if(!y)return Object.assign(Object.assign({},N==null?void 0:N.style),C);const re={marginTop:y[1]};return P==="rtl"?re.left=parseInt(y[0],10):re.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},re),N==null?void 0:N.style),C)},[P,y,C,N==null?void 0:N.style]),Z=b??(typeof q=="string"||typeof q=="number"?q:void 0),ee=V||!d?null:f__namespace.createElement("span",{className:`${L}-status-text`},d),ne=!q||typeof q!="object"?void 0:ir(q,re=>({style:Object.assign(Object.assign({},ce),re.style)})),le=Qd(m,!1),se=G($==null?void 0:$.indicator,(n=N==null?void 0:N.classNames)===null||n===void 0?void 0:n.indicator,{[`${L}-status-dot`]:z,[`${L}-status-${u}`]:!!u,[`${L}-color-${m}`]:le}),K={};m&&!le&&(K.color=m,K.background=m);const te=G(L,{[`${L}-status`]:z,[`${L}-not-a-wrapper`]:!c,[`${L}-rtl`]:P==="rtl"},w,x,N==null?void 0:N.className,(r=N==null?void 0:N.classNames)===null||r===void 0?void 0:r.root,$==null?void 0:$.root,A,T);if(!c&&z){const re=ce.color;return k(f__namespace.createElement("span",Object.assign({},E,{className:te,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=N==null?void 0:N.styles)===null||o===void 0?void 0:o.root),ce)}),f__namespace.createElement("span",{className:se,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(a=N==null?void 0:N.styles)===null||a===void 0?void 0:a.indicator),K)}),d&&f__namespace.createElement("span",{style:{color:re},className:`${L}-status-text`},d)))}return k(f__namespace.createElement("span",Object.assign({ref:t},E,{className:te,style:Object.assign(Object.assign({},(i=N==null?void 0:N.styles)===null||i===void 0?void 0:i.root),S==null?void 0:S.root)}),c,f__namespace.createElement(Rr,{visible:!V,motionName:`${L}-zoom`,motionAppear:!1,motionDeadline:1e3},re=>{let{className:ve,ref:ae}=re;var ie,fe;const Ee=I("scroll-number",s),$e=Y.current,We=G($==null?void 0:$.indicator,(ie=N==null?void 0:N.classNames)===null||ie===void 0?void 0:ie.indicator,{[`${L}-dot`]:$e,[`${L}-count`]:!$e,[`${L}-count-sm`]:p==="small",[`${L}-multiple-words`]:!$e&&ue&&ue.toString().length>1,[`${L}-status-${u}`]:!!u,[`${L}-color-${m}`]:le});let Ke=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(fe=N==null?void 0:N.styles)===null||fe===void 0?void 0:fe.indicator),ce);return m&&!le&&(Ke=Ke||{},Ke.background=m),f__namespace.createElement(eB,{prefixCls:Ee,show:!V,motionClassName:ve,className:We,count:ue,title:Z,style:Ke,key:"scrollNumber",ref:ae},ne)}),ee))},gx=f__namespace.forwardRef(nB);gx.Ribbon=X8;const vx=gx;function zh(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return f__namespace.createElement("div",{className:G("".concat(n,"-content"),a),style:i},f__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var hx=f__namespace.createContext(null),J0=[];function rB(e,t){var n=f__namespace.useState(function(){if(!nr())return null;var v=document.createElement("div");return v}),r=J(n,1),o=r[0],a=f__namespace.useRef(!1),i=f__namespace.useContext(hx),l=f__namespace.useState(J0),s=J(l,2),c=s[0],u=s[1],d=i||(a.current?void 0:function(v){u(function(h){var p=[v].concat(Ge(h));return p});});function m(){o.parentElement||document.body.appendChild(o),a.current=!0;}function g(){var v;(v=o.parentElement)===null||v===void 0||v.removeChild(o),a.current=!1;}return en(function(){return e?i?i(m):m():g(),g},[e]),en(function(){c.length&&(c.forEach(function(v){return v()}),u(J0));},[c]),[o,d]}var mm;function oB(e){if(typeof document>"u")return 0;if(e||mm===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 a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),mm=o-a;}return mm}function aB(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var iB="rc-util-locker-".concat(Date.now()),ey=0;function lB(e){var t=!!e,n=f__namespace.useState(function(){return ey+=1,"".concat(iB,"_").concat(ey)}),r=J(n,1),o=r[0];en(function(){if(t){var a=oB(),i=aB();Qo(`
html body {
overflow-y: hidden;
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
}`),o);}else os(o);return function(){os(o);}},[t,o]);}var ty=!1;function sB(e){return typeof e=="boolean"&&(ty=e),ty}var ny=function(t){return t===!1?!1:!nr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Fh=f__namespace.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,l=e.children,s=f__namespace.useState(n),c=J(s,2),u=c[0],d=c[1],m=u||n;f__namespace.useEffect(function(){(i||n)&&d(n);},[n,i]);var g=f__namespace.useState(function(){return ny(o)}),v=J(g,2),h=v[0],p=v[1];f__namespace.useEffect(function(){var P=ny(o);p(P??null);});var b=rB(m&&!h),y=J(b,2),C=y[0],w=y[1],x=h??C;lB(r&&n&&nr()&&(x===C||x===document.body));var $=null;if(l&&ia(l)&&t){var S=l;$=S.ref;}var O=aa($,t);if(!m||!nr()||h===void 0)return null;var E=x===!1||sB(),I=l;return t&&(I=f__namespace.cloneElement(l,{ref:O})),f__namespace.createElement(hx.Provider,{value:w},E?I:gS.createPortal(I,x))});function Ir(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(Ir(r)):Ph.isFragment(r)&&r.props?n=n.concat(Ir(r.props.children,t)):n.push(r));}),n}var kg=f__namespace.createContext(null);function cB(e){var t=e.children,n=e.onBatchResize,r=f__namespace.useRef(0),o=f__namespace.useRef([]),a=f__namespace.useContext(kg),i=f__namespace.useCallback(function(l,s,c){r.current+=1;var u=r.current;o.current.push({size:l,element:s,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[]);}),a==null||a(l,s,c);},[n,a]);return f__namespace.createElement(kg.Provider,{value:i},t)}var Uo=new Map;function uB(e){e.forEach(function(t){var n,r=t.target;(n=Uo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var px=new SP(uB);function dB(e,t){Uo.has(e)||(Uo.set(e,new Set),px.observe(e)),Uo.get(e).add(t);}function fB(e,t){Uo.has(e)&&(Uo.get(e).delete(t),Uo.get(e).size||(px.unobserve(e),Uo.delete(e)));}var mB=function(e){Yi(n,e);var t=Zi(n);function n(){return cr(this,n),t.apply(this,arguments)}return ur(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component);function gB(e,t){var n=e.children,r=e.disabled,o=f__namespace.useRef(null),a=f__namespace.useRef(null),i=f__namespace.useContext(kg),l=typeof n=="function",s=l?n(o):n,c=f__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&f__namespace.isValidElement(s)&&ia(s),d=u?s.ref:null,m=aa(d,o),g=function(){var b;return Al(o.current)||(o.current&&ht(o.current)==="object"?Al((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||Al(a.current)};f__namespace.useImperativeHandle(t,function(){return g()});var v=f__namespace.useRef(e);v.current=e;var h=f__namespace.useCallback(function(p){var b=v.current,y=b.onResize,C=b.data,w=p.getBoundingClientRect(),x=w.width,$=w.height,S=p.offsetWidth,O=p.offsetHeight,E=Math.floor(x),I=Math.floor($);if(c.current.width!==E||c.current.height!==I||c.current.offsetWidth!==S||c.current.offsetHeight!==O){var P={width:E,height:I,offsetWidth:S,offsetHeight:O};c.current=P;var N=S===Math.round(x)?x:S,L=O===Math.round($)?$:O,k=U(U({},P),{},{offsetWidth:N,offsetHeight:L});i==null||i(k,p,C),y&&Promise.resolve().then(function(){y(k,p);});}},[]);return f__namespace.useEffect(function(){var p=g();return p&&!r&&dB(p,h),function(){return fB(p,h)}},[o.current,r]),f__namespace.createElement(mB,{ref:a},u?f__namespace.cloneElement(s,{ref:m}):s)}var vB=f__namespace.forwardRef(gB),hB="rc-observer-key";function pB(e,t){var n=e.children,r=typeof n=="function"?[n]:Ir(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(hB,"-").concat(a);return f__namespace.createElement(vB,xe({},e,{key:i,ref:a===0?t:void 0}),o)})}var zr=f__namespace.forwardRef(pB);zr.Collection=cB;function bB(){var e=U({},f__namespace);return e.useId}var ry=0,oy=bB();const bx=oy?function(t){var n=oy();return t||n}:function(t){var n=f__namespace.useState("ssr-id"),r=J(n,2),o=r[0],a=r[1];return f__namespace.useEffect(function(){var i=ry;ry+=1,a("rc_unique_".concat(i));},[]),t||o},Jd=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))};function yB(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,s=o.x,c=s===void 0?0:s,u=o.y,d=u===void 0?0:u,m=f__namespace.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var v=n.points[0],h=n.points[1],p=v[0],b=v[1],y=h[0],C=h[1];p===y||!["t","b"].includes(p)?g.top=d:p==="t"?g.top=0:g.bottom=0,b===C||!["l","r"].includes(b)?g.left=c:b==="l"?g.left=0:g.right=0;}return f__namespace.createElement("div",{ref:m,className:G("".concat(t,"-arrow"),i),style:g},l)}function CB(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?f__namespace.createElement(Rr,xe({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return f__namespace.createElement("div",{style:{zIndex:r},className:G("".concat(t,"-mask"),l)})}):null}var SB=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),$B=f__namespace.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,m=e.mask,g=e.arrow,v=e.arrowPos,h=e.align,p=e.motion,b=e.maskMotion,y=e.forceRender,C=e.getPopupContainer,w=e.autoDestroy,x=e.portal,$=e.zIndex,S=e.onMouseEnter,O=e.onMouseLeave,E=e.onPointerEnter,I=e.ready,P=e.offsetX,N=e.offsetY,L=e.offsetR,k=e.offsetB,A=e.onAlign,T=e.onPrepare,R=e.stretch,_=e.targetWidth,D=e.targetHeight,z=typeof n=="function"?n():n,F=s||c,W=(C==null?void 0:C.length)>0,V=f__namespace.useState(!C||!W),X=J(V,2),q=X[0],Q=X[1];if(en(function(){!q&&W&&i&&Q(!0);},[q,W,i]),!q)return null;var ue="auto",Y={left:"-1000vw",top:"-1000vh",right:ue,bottom:ue};if(I||!s){var ce,Z=h.points,ee=h.dynamicInset||((ce=h._experimental)===null||ce===void 0?void 0:ce.dynamicInset),ne=ee&&Z[0][1]==="r",le=ee&&Z[0][0]==="b";ne?(Y.right=L,Y.left=ue):(Y.left=P,Y.right=ue),le?(Y.bottom=k,Y.top=ue):(Y.top=N,Y.bottom=ue);}var se={};return R&&(R.includes("height")&&D?se.height=D:R.includes("minHeight")&&D&&(se.minHeight=D),R.includes("width")&&_?se.width=_:R.includes("minWidth")&&_&&(se.minWidth=_)),s||(se.pointerEvents="none"),f__namespace.createElement(x,{open:y||F,getContainer:C&&function(){return C(i)},autoDestroy:w},f__namespace.createElement(CB,{prefixCls:o,open:s,zIndex:$,mask:m,motion:b}),f__namespace.createElement(zr,{onResize:A,disabled:!s},function(K){return f__namespace.createElement(Rr,xe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:T,onEnterPrepare:T,visible:s,onVisibleChanged:function(re){var ve;p==null||(ve=p.onVisibleChanged)===null||ve===void 0||ve.call(p,re),l(re);}}),function(te,re){var ve=te.className,ae=te.style,ie=G(o,ve,r);return f__namespace.createElement("div",{ref:sr(K,t,re),className:ie,style:U(U(U(U({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},Y),se),ae),{},{boxSizing:"border-box",zIndex:$},a),onMouseEnter:S,onMouseLeave:O,onPointerEnter:E,onClick:d},g&&f__namespace.createElement(yB,{prefixCls:o,arrow:g,arrowPos:v,align:h}),f__namespace.createElement(SB,{cache:!s&&!u},z))})}))}),wB=f__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=ia(n),a=f__namespace.useCallback(function(l){Mh(t,r?r(l):l);},[r]),i=aa(a,n.ref);return o?f__namespace.cloneElement(n,{ref:i}):n}),ay=f__namespace.createContext(null);function iy(e){return e?Array.isArray(e)?e:[e]:[]}function xB(e,t,n,r){return f__namespace.useMemo(function(){var o=iy(n??t),a=iy(r??t),i=new Set(o),l=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}const Bh=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(),a=o.width,i=o.height;if(a||i)return !0}}return !1};function EB(){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 OB(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var l,s=a[i];if(EB((l=e[s])===null||l===void 0?void 0:l.points,o,r))return "".concat(t,"-placement-").concat(s)}return ""}function ly(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function ks(e){return e.ownerDocument.defaultView}function Ag(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=ks(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,l=o.overflow;[a,i,l].some(function(s){return r.includes(s)})&&t.push(n),n=n.parentElement;}return t}function ls(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function hl(e){return ls(parseFloat(e),0)}function sy(e,t){var n=U({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=ks(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,v=r.offsetWidth,h=r.clientWidth,p=hl(l),b=hl(s),y=hl(c),C=hl(u),w=ls(Math.round(d.width/v*1e3)/1e3),x=ls(Math.round(d.height/m*1e3)/1e3),$=(v-h-y-C)*w,S=(m-g-p-b)*x,O=p*x,E=b*x,I=y*w,P=C*w,N=0,L=0;if(a==="clip"){var k=hl(i);N=k*w,L=k*x;}var A=d.x+I-N,T=d.y+O-L,R=A+d.width+2*N-I-P-$,_=T+d.height+2*L-O-E-S;n.left=Math.max(n.left,A),n.top=Math.max(n.top,T),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,_);}}),n}function cy(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 uy(e,t){var n=t||[],r=J(n,2),o=r[0],a=r[1];return [cy(e.width,o),cy(e.height,a)]}function dy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function Ka(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=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:a}}function jo(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 IB(e,t,n,r,o,a,i){var l=f__namespace.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=J(l,2),c=s[0],u=s[1],d=f__namespace.useRef(0),m=f__namespace.useMemo(function(){return t?Ag(t):[]},[t]),g=f__namespace.useRef({}),v=function(){g.current={};};e||v();var h=Kn(function(){if(t&&n&&e){let Vn=function($o,la){var Wa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ie,Va=z.x+$o,cl=z.y+la,ul=Va+ce,mc=cl+Y,jf=Math.max(Va,Wa.left),Df=Math.max(cl,Wa.top),zf=Math.min(ul,Wa.right),Ff=Math.min(mc,Wa.bottom);return Math.max(0,(zf-jf)*(Ff-Df))},fc=function(){Rt=z.y+he,qe=Rt+Y,ke=z.x+Le,Xe=ke+ce;};var y,C,w=t,x=w.ownerDocument,$=ks(w),S=$.getComputedStyle(w),O=S.width,E=S.height,I=S.position,P=w.style.left,N=w.style.top,L=w.style.right,k=w.style.bottom,A=w.style.overflow,T=U(U({},o[r]),a),R=x.createElement("div");(y=w.parentElement)===null||y===void 0||y.appendChild(R),R.style.left="".concat(w.offsetLeft,"px"),R.style.top="".concat(w.offsetTop,"px"),R.style.position=I,R.style.height="".concat(w.offsetHeight,"px"),R.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var _;if(Array.isArray(n))_={x:n[0],y:n[1],width:0,height:0};else {var D=n.getBoundingClientRect();_={x:D.x,y:D.y,width:D.width,height:D.height};}var z=w.getBoundingClientRect(),F=x.documentElement,W=F.clientWidth,V=F.clientHeight,X=F.scrollWidth,q=F.scrollHeight,Q=F.scrollTop,ue=F.scrollLeft,Y=z.height,ce=z.width,Z=_.height,ee=_.width,ne={left:0,top:0,right:W,bottom:V},le={left:-ue,top:-Q,right:X-ue,bottom:q-Q},se=T.htmlRegion,K="visible",te="visibleFirst";se!=="scroll"&&se!==te&&(se=K);var re=se===te,ve=sy(le,m),ae=sy(ne,m),ie=se===K?ae:ve,fe=re?ae:ie;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Ee=w.getBoundingClientRect();w.style.left=P,w.style.top=N,w.style.right=L,w.style.bottom=k,w.style.overflow=A,(C=w.parentElement)===null||C===void 0||C.removeChild(R);var $e=ls(Math.round(ce/parseFloat(O)*1e3)/1e3),We=ls(Math.round(Y/parseFloat(E)*1e3)/1e3);if($e===0||We===0||bu(n)&&!Bh(n))return;var Ke=T.offset,Te=T.targetOffset,Ue=uy(z,Ke),_e=J(Ue,2),Oe=_e[0],De=_e[1],Ie=uy(_,Te),yt=J(Ie,2),Qe=yt[0],gt=yt[1];_.x-=Qe,_.y-=gt;var Ze=T.points||[],et=J(Ze,2),ot=et[0],wt=et[1],st=dy(wt),mt=dy(ot),ut=Ka(_,st),we=Ka(z,mt),Pe=U({},T),Le=ut.x-we.x+Oe,he=ut.y-we.y+De,Ne=Vn(Le,he),Re=Vn(Le,he,ae),He=Ka(_,["t","l"]),me=Ka(z,["t","l"]),pe=Ka(_,["b","r"]),Ce=Ka(z,["b","r"]),ye=T.overflow||{},ge=ye.adjustX,Me=ye.adjustY,ze=ye.shiftX,at=ye.shiftY,rt=function(la){return typeof la=="boolean"?la:la>=0},Rt,qe,ke,Xe;fc();var Se=rt(Me),Ae=mt[0]===st[0];if(Se&&mt[0]==="t"&&(qe>fe.bottom||g.current.bt)){var Ve=he;Ae?Ve-=Y-Z:Ve=He.y-Ce.y-De;var ct=Vn(Le,Ve),At=Vn(Le,Ve,ae);ct>Ne||ct===Ne&&(!re||At>=Re)?(g.current.bt=!0,he=Ve,De=-De,Pe.points=[jo(mt,0),jo(st,0)]):g.current.bt=!1;}if(Se&&mt[0]==="b"&&(Rt<fe.top||g.current.tb)){var It=he;Ae?It+=Y-Z:It=pe.y-me.y-De;var Ft=Vn(Le,It),Yt=Vn(Le,It,ae);Ft>Ne||Ft===Ne&&(!re||Yt>=Re)?(g.current.tb=!0,he=It,De=-De,Pe.points=[jo(mt,0),jo(st,0)]):g.current.tb=!1;}var Cn=rt(ge),ln=mt[1]===st[1];if(Cn&&mt[1]==="l"&&(Xe>fe.right||g.current.rl)){var rn=Le;ln?rn-=ce-ee:rn=He.x-Ce.x-Oe;var _r=Vn(rn,he),ao=Vn(rn,he,ae);_r>Ne||_r===Ne&&(!re||ao>=Re)?(g.current.rl=!0,Le=rn,Oe=-Oe,Pe.points=[jo(mt,1),jo(st,1)]):g.current.rl=!1;}if(Cn&&mt[1]==="r"&&(ke<fe.left||g.current.lr)){var tt=Le;ln?tt+=ce-ee:tt=pe.x-me.x-Oe;var xt=Vn(tt,he),jt=Vn(tt,he,ae);xt>Ne||xt===Ne&&(!re||jt>=Re)?(g.current.lr=!0,Le=tt,Oe=-Oe,Pe.points=[jo(mt,1),jo(st,1)]):g.current.lr=!1;}fc();var cn=ze===!0?0:ze;typeof cn=="number"&&(ke<ae.left&&(Le-=ke-ae.left-Oe,_.x+ee<ae.left+cn&&(Le+=_.x-ae.left+ee-cn)),Xe>ae.right&&(Le-=Xe-ae.right-Oe,_.x>ae.right-cn&&(Le+=_.x-ae.right+cn)));var Wn=at===!0?0:at;typeof Wn=="number"&&(Rt<ae.top&&(he-=Rt-ae.top-De,_.y+Z<ae.top+Wn&&(he+=_.y-ae.top+Z-Wn)),qe>ae.bottom&&(he-=qe-ae.bottom-De,_.y>ae.bottom-Wn&&(he+=_.y-ae.bottom+Wn)));var Vr=z.x+Le,io=Vr+ce,br=z.y+he,Ao=br+Y,Gr=_.x,kt=Gr+ee,Mt=_.y,Je=Mt+Z,lt=Math.max(Vr,Gr),Nt=Math.min(io,kt),un=(lt+Nt)/2,Zt=un-Vr,Sn=Math.max(br,Mt),jn=Math.min(Ao,Je),rr=(Sn+jn)/2,Dn=rr-br;i==null||i(t,Pe);var or=Ee.right-z.x-(Le+z.width),dr=Ee.bottom-z.y-(he+z.height);u({ready:!0,offsetX:Le/$e,offsetY:he/We,offsetR:or/$e,offsetB:dr/We,arrowX:Zt/$e,arrowY:Dn/We,scaleX:$e,scaleY:We,align:Pe});}}),p=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&h();});},b=function(){u(function(C){return U(U({},C),{},{ready:!1})});};return en(b,[r]),en(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function PB(e,t,n,r,o){en(function(){if(e&&t&&n){let d=function(){r(),o();};var a=t,i=n,l=Ag(a),s=Ag(i),c=ks(i),u=new Set([c].concat(Ge(l),Ge(s)));return u.forEach(function(m){m.addEventListener("scroll",d,{passive:!0});}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(m){m.removeEventListener("scroll",d),c.removeEventListener("resize",d);});}}},[e,t,n]);}function MB(e,t,n,r,o,a,i,l){var s=f__namespace.useRef(e),c=f__namespace.useRef(!1);s.current!==e&&(c.current=!0,s.current=e),f__namespace.useEffect(function(){var u=Et(function(){c.current=!1;});return function(){Et.cancel(u);}},[e]),f__namespace.useEffect(function(){if(t&&r&&(!o||a)){var u=function(){var $=!1,S=function(I){var P=I.target;$=i(P);},O=function(I){var P=I.target;!c.current&&s.current&&!$&&!i(P)&&l(!1);};return [S,O]},d=u(),m=J(d,2),g=m[0],v=m[1],h=u(),p=J(h,2),b=p[0],y=p[1],C=ks(r);C.addEventListener("mousedown",g,!0),C.addEventListener("click",v,!0),C.addEventListener("contextmenu",v,!0);var w=pu(n);return w&&(w.addEventListener("mousedown",b,!0),w.addEventListener("click",y,!0),w.addEventListener("contextmenu",y,!0)),function(){C.removeEventListener("mousedown",g,!0),C.removeEventListener("click",v,!0),C.removeEventListener("contextmenu",v,!0),w&&(w.removeEventListener("mousedown",b,!0),w.removeEventListener("click",y,!0),w.removeEventListener("contextmenu",y,!0));}}},[t,n,r,o,a]);}var RB=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function _B(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fh,t=f__namespace.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,l=n.action,s=l===void 0?"hover":l,c=n.showAction,u=n.hideAction,d=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,h=n.mouseEnterDelay,p=n.mouseLeaveDelay,b=p===void 0?.1:p,y=n.focusDelay,C=n.blurDelay,w=n.mask,x=n.maskClosable,$=x===void 0?!0:x,S=n.getPopupContainer,O=n.forceRender,E=n.autoDestroy,I=n.destroyPopupOnHide,P=n.popup,N=n.popupClassName,L=n.popupStyle,k=n.popupPlacement,A=n.builtinPlacements,T=A===void 0?{}:A,R=n.popupAlign,_=n.zIndex,D=n.stretch,z=n.getPopupClassNameFromAlign,F=n.fresh,W=n.alignPoint,V=n.onPopupClick,X=n.onPopupAlign,q=n.arrow,Q=n.popupMotion,ue=n.maskMotion,Y=n.popupTransitionName,ce=n.popupAnimation,Z=n.maskTransitionName,ee=n.maskAnimation,ne=n.className,le=n.getTriggerDOMNode,se=dt(n,RB),K=E||I||!1,te=f__namespace.useState(!1),re=J(te,2),ve=re[0],ae=re[1];en(function(){ae(Jd());},[]);var ie=f__namespace.useRef({}),fe=f__namespace.useContext(ay),Ee=f__namespace.useMemo(function(){return {registerSubPopup:function($t,gn){ie.current[$t]=gn,fe==null||fe.registerSubPopup($t,gn);}}},[fe]),$e=bx(),We=f__namespace.useState(null),Ke=J(We,2),Te=Ke[0],Ue=Ke[1],_e=Kn(function(it){bu(it)&&Te!==it&&Ue(it),fe==null||fe.registerSubPopup($e,it);}),Oe=f__namespace.useState(null),De=J(Oe,2),Ie=De[0],yt=De[1],Qe=f__namespace.useRef(null),gt=Kn(function(it){bu(it)&&Ie!==it&&(yt(it),Qe.current=it);}),Ze=f__namespace.Children.only(i),et=(Ze==null?void 0:Ze.props)||{},ot={},wt=Kn(function(it){var $t,gn,Rn=Ie;return (Rn==null?void 0:Rn.contains(it))||(($t=pu(Rn))===null||$t===void 0?void 0:$t.host)===it||it===Rn||(Te==null?void 0:Te.contains(it))||((gn=pu(Te))===null||gn===void 0?void 0:gn.host)===it||it===Te||Object.values(ie.current).some(function(vn){return (vn==null?void 0:vn.contains(it))||it===vn})}),st=ly(a,Q,ce,Y),mt=ly(a,ue,ee,Z),ut=f__namespace.useState(m||!1),we=J(ut,2),Pe=we[0],Le=we[1],he=d??Pe,Ne=Kn(function(it){d===void 0&&Le(it);});en(function(){Le(d||!1);},[d]);var Re=f__namespace.useRef(he);Re.current=he;var He=f__namespace.useRef([]);He.current=[];var me=Kn(function(it){var $t;Ne(it),(($t=He.current[He.current.length-1])!==null&&$t!==void 0?$t:he)!==it&&(He.current.push(it),g==null||g(it));}),pe=f__namespace.useRef(),Ce=function(){clearTimeout(pe.current);},ye=function($t){var gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ce(),gn===0?me($t):pe.current=setTimeout(function(){me($t);},gn*1e3);};f__namespace.useEffect(function(){return Ce},[]);var ge=f__namespace.useState(!1),Me=J(ge,2),ze=Me[0],at=Me[1];en(function(it){(!it||he)&&at(!0);},[he]);var rt=f__namespace.useState(null),Rt=J(rt,2),qe=Rt[0],ke=Rt[1],Xe=f__namespace.useState([0,0]),Se=J(Xe,2),Ae=Se[0],Ve=Se[1],ct=function($t){Ve([$t.clientX,$t.clientY]);},At=IB(he,Te,W?Ae:Ie,k,T,R,X),It=J(At,11),Ft=It[0],Yt=It[1],Cn=It[2],ln=It[3],rn=It[4],_r=It[5],ao=It[6],tt=It[7],xt=It[8],jt=It[9],cn=It[10],Wn=xB(ve,s,c,u),Vr=J(Wn,2),io=Vr[0],br=Vr[1],Ao=io.has("click"),Gr=br.has("click")||br.has("contextMenu"),kt=Kn(function(){ze||cn();}),Mt=function(){Re.current&&W&&Gr&&ye(!1);};PB(he,Ie,Te,kt,Mt),en(function(){kt();},[Ae,k]),en(function(){he&&!(T!=null&&T[k])&&kt();},[JSON.stringify(R)]);var Je=f__namespace.useMemo(function(){var it=OB(T,a,jt,W);return G(it,z==null?void 0:z(jt))},[jt,z,T,a,W]);f__namespace.useImperativeHandle(r,function(){return {nativeElement:Qe.current,forceAlign:kt}});var lt=f__namespace.useState(0),Nt=J(lt,2),un=Nt[0],Zt=Nt[1],Sn=f__namespace.useState(0),jn=J(Sn,2),rr=jn[0],Dn=jn[1],or=function(){if(D&&Ie){var $t=Ie.getBoundingClientRect();Zt($t.width),Dn($t.height);}},dr=function(){or(),kt();},Vn=function($t){at(!1),cn(),v==null||v($t);},fc=function(){return new Promise(function($t){or(),ke(function(){return $t});})};en(function(){qe&&(cn(),qe(),ke(null));},[qe]);function $o(it,$t,gn,Rn){ot[it]=function(vn){var gc;Rn==null||Rn(vn),ye($t,gn);for(var Bf=arguments.length,yb=new Array(Bf>1?Bf-1:0),vc=1;vc<Bf;vc++)yb[vc-1]=arguments[vc];(gc=et[it])===null||gc===void 0||gc.call.apply(gc,[et,vn].concat(yb));};}(Ao||Gr)&&(ot.onClick=function(it){var $t;Re.current&&Gr?ye(!1):!Re.current&&Ao&&(ct(it),ye(!0));for(var gn=arguments.length,Rn=new Array(gn>1?gn-1:0),vn=1;vn<gn;vn++)Rn[vn-1]=arguments[vn];($t=et.onClick)===null||$t===void 0||$t.call.apply($t,[et,it].concat(Rn));}),MB(he,Gr,Ie,Te,w,$,wt,ye);var la=io.has("hover"),Wa=br.has("hover"),Va,cl;la&&($o("onMouseEnter",!0,h,function(it){ct(it);}),$o("onPointerEnter",!0,h,function(it){ct(it);}),Va=function(){(he||ze)&&ye(!0,h);},W&&(ot.onMouseMove=function(it){var $t;($t=et.onMouseMove)===null||$t===void 0||$t.call(et,it);})),Wa&&($o("onMouseLeave",!1,b),$o("onPointerLeave",!1,b),cl=function(){ye(!1,b);}),io.has("focus")&&$o("onFocus",!0,y),br.has("focus")&&$o("onBlur",!1,C),io.has("contextMenu")&&(ot.onContextMenu=function(it){var $t;Re.current&&br.has("contextMenu")?ye(!1):(ct(it),ye(!0)),it.preventDefault();for(var gn=arguments.length,Rn=new Array(gn>1?gn-1:0),vn=1;vn<gn;vn++)Rn[vn-1]=arguments[vn];($t=et.onContextMenu)===null||$t===void 0||$t.call.apply($t,[et,it].concat(Rn));}),ne&&(ot.className=G(et.className,ne));var ul=U(U({},et),ot),mc={},jf=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];jf.forEach(function(it){se[it]&&(mc[it]=function(){for(var $t,gn=arguments.length,Rn=new Array(gn),vn=0;vn<gn;vn++)Rn[vn]=arguments[vn];($t=ul[it])===null||$t===void 0||$t.call.apply($t,[ul].concat(Rn)),se[it].apply(se,Rn);});});var Df=f__namespace.cloneElement(Ze,U(U({},ul),mc)),zf={x:_r,y:ao},Ff=q?U({},q!==!0?q:{}):null;return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(zr,{disabled:!he,ref:gt,onResize:dr},f__namespace.createElement(wB,{getTriggerDOMNode:le},Df)),f__namespace.createElement(ay.Provider,{value:Ee},f__namespace.createElement($B,{portal:e,ref:_e,prefixCls:a,popup:P,className:G(N,Je),style:L,target:Ie,onMouseEnter:Va,onMouseLeave:cl,onPointerEnter:Va,zIndex:_,open:he,keepDom:ze,fresh:F,onClick:V,mask:w,motion:st,maskMotion:mt,onVisibleChanged:Vn,onPrepare:fc,forceRender:O,autoDestroy:K,getPopupContainer:S,align:jt,arrow:Ff,arrowPos:zf,ready:Ft,offsetX:Yt,offsetY:Cn,offsetR:ln,offsetB:rn,onAlign:kt,stretch:D,targetWidth:un/tt,targetHeight:rr/xt})))});return t}const ef=_B(Fh);var Ua={shiftX:64,adjustY:1},qa={adjustX:1,shiftY:!0},Nr=[0,0],NB={left:{points:["cr","cl"],overflow:qa,offset:[-4,0],targetOffset:Nr},right:{points:["cl","cr"],overflow:qa,offset:[4,0],targetOffset:Nr},top:{points:["bc","tc"],overflow:Ua,offset:[0,-4],targetOffset:Nr},bottom:{points:["tc","bc"],overflow:Ua,offset:[0,4],targetOffset:Nr},topLeft:{points:["bl","tl"],overflow:Ua,offset:[0,-4],targetOffset:Nr},leftTop:{points:["tr","tl"],overflow:qa,offset:[-4,0],targetOffset:Nr},topRight:{points:["br","tr"],overflow:Ua,offset:[0,-4],targetOffset:Nr},rightTop:{points:["tl","tr"],overflow:qa,offset:[4,0],targetOffset:Nr},bottomRight:{points:["tr","br"],overflow:Ua,offset:[0,4],targetOffset:Nr},rightBottom:{points:["bl","br"],overflow:qa,offset:[4,0],targetOffset:Nr},bottomLeft:{points:["tl","bl"],overflow:Ua,offset:[0,4],targetOffset:Nr},leftBottom:{points:["br","bl"],overflow:qa,offset:[-4,0],targetOffset:Nr}},TB=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],LB=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,l=i===void 0?0:i,s=t.mouseLeaveDelay,c=s===void 0?.1:s,u=t.overlayStyle,d=t.prefixCls,m=d===void 0?"rc-tooltip":d,g=t.children,v=t.onVisibleChange,h=t.afterVisibleChange,p=t.transitionName,b=t.animation,y=t.motion,C=t.placement,w=C===void 0?"right":C,x=t.align,$=x===void 0?{}:x,S=t.destroyTooltipOnHide,O=S===void 0?!1:S,E=t.defaultVisible,I=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,L=t.id,k=t.showArrow,A=k===void 0?!0:k,T=dt(t,TB),R=f.useRef(null);f.useImperativeHandle(n,function(){return R.current});var _=U({},T);"visible"in t&&(_.popupVisible=t.visible);var D=function(){return f__namespace.createElement(zh,{key:"content",prefixCls:m,id:L,overlayInnerStyle:P},N)};return f__namespace.createElement(ef,xe({popupClassName:r,prefixCls:m,popup:D,action:a,builtinPlacements:NB,popupPlacement:w,ref:R,popupAlign:$,getPopupContainer:I,onPopupVisibleChange:v,afterPopupVisibleChange:h,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:E,autoDestroy:O,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:l,arrow:A},_),g)};const kB=f.forwardRef(LB),AB=f.createContext(void 0),tf=AB,da=100,jB=10,nf=da*jB,yx={Modal:da,Drawer:da,Popover:da,Popconfirm:da,Tooltip:da,Tour:da},DB={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function zB(e){return e in yx}function As(e,t){const[,n]=In(),r=f.useContext(tf),o=zB(e);if(t!==void 0)return [t,t];let a=r??0;return o?(a+=(r?0:n.zIndexPopupBase)+yx[e],a=Math.min(a,n.zIndexPopupBase+nf)):a+=DB[e],[r===void 0?t:a,a]}const gm=()=>({height:0,opacity:0}),fy=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},FB=e=>({height:e?e.offsetHeight:0}),vm=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Cx=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:gm,onEnterStart:gm,onAppearActive:fy,onEnterActive:fy,onLeaveStart:FB,onLeaveActive:gm,onAppearEnd:vm,onEnterEnd:vm,onLeaveEnd:vm,motionDeadline:500}},ea=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Hh(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,l=r*1/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*o-c,m=u,g=2*o-l,v=s,h=2*o-a,p=i,b=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),C=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,w=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${l} ${s} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${m} L ${g} ${v} A ${r} ${r} 0 0 0 ${h} ${p} Z')`;return {arrowShadowWidth:b,arrowPath:w,arrowPolygon:C}}const BB=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:l,calc:s}=e;return {pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${B(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Sx=8;function rf(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return {arrowOffsetHorizontal:r,arrowOffsetVertical:n?Sx:r}}function Mc(e,t){return e?t:{}}function Wh(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return {[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},BB(e,t,o)),{"&:before":{background:t}})]},Mc(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}})),Mc(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}})),Mc(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Mc(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function HB(e,t,n,r){if(r===!1)return {adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const my={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"]}},WB={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"]}},VB=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function $x(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,l=t/2,s={};return Object.keys(my).forEach(c=>{const u=r&&WB[c]||my[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=d,VB.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=l+o;break}const m=rf({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-m.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":d.offset[0]=m.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":d.offset[1]=-m.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":d.offset[1]=m.arrowOffsetHorizontal+l;break}d.overflow=HB(c,m,t,n),i&&(d.htmlRegion="visibleFirst");}),s}const GB=e=>{const t=f.useContext(qd);return f.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},hr=GB,KB=e=>{const{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},UB=KB,qB=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"}}}},XB=e=>{const{componentCls:t}=e;return {[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},wx=Kt("Space",e=>{const t=Ot(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [qB(t),XB(t),UB(t)]},()=>({}),{resetStyle:!1});var xx=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 of=f__namespace.createContext(null),Qi=(e,t)=>{const n=f__namespace.useContext(of),r=f__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,l=o==="vertical"?"-vertical-":"-";return G(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return {compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Na=e=>{let{children:t}=e;return f__namespace.createElement(of.Provider,{value:null},t)},YB=e=>{var{children:t}=e,n=xx(e,["children"]);return f__namespace.createElement(of.Provider,{value:n},t)},ZB=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(nt),{size:r,direction:o,block:a,prefixCls:i,className:l,rootClassName:s,children:c}=e,u=xx(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=hr(C=>r??C),m=t("space-compact",i),[g,v]=wx(m),h=G(m,v,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},l,s),p=f__namespace.useContext(of),b=Ir(c),y=f__namespace.useMemo(()=>b.map((C,w)=>{const x=C&&C.key||`${m}-item-${w}`;return f__namespace.createElement(YB,{key:x,compactSize:d,compactDirection:o,isFirstItem:w===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:w===b.length-1&&(!p||(p==null?void 0:p.isLastItem))},C)}),[r,b,p]);return b.length===0?null:g(f__namespace.createElement("div",Object.assign({className:h},u),y))},QB=ZB,JB=e=>({animationDuration:e,animationFillMode:"both"}),eH=e=>({animationDuration:e,animationFillMode:"both"}),js=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[`
${a}${e}-enter,
${a}${e}-appear
`]:Object.assign(Object.assign({},JB(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},eH(r)),{animationPlayState:"paused"}),[`
${a}${e}-enter${e}-enter-active,
${a}${e}-appear${e}-appear-active
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},tH=new St("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),nH=new St("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Ex=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return [js(r,tH,nH,e.motionDurationMid,t),{[`
${o}${r}-enter,
${o}${r}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},rH=new St("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oH=new St("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),aH=new St("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),iH=new St("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),lH=new St("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),sH=new St("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),cH=new St("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uH=new St("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),dH={"move-up":{inKeyframes:cH,outKeyframes:uH},"move-down":{inKeyframes:rH,outKeyframes:oH},"move-left":{inKeyframes:aH,outKeyframes:iH},"move-right":{inKeyframes:lH,outKeyframes:sH}},Eu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=dH[t];return [js(r,o,a,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Vh=new St("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Gh=new St("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Kh=new St("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Uh=new St("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),fH=new St("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),mH=new St("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),gH=new St("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),vH=new St("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),hH={"slide-up":{inKeyframes:Vh,outKeyframes:Gh},"slide-down":{inKeyframes:Kh,outKeyframes:Uh},"slide-left":{inKeyframes:fH,outKeyframes:mH},"slide-right":{inKeyframes:gH,outKeyframes:vH}},ta=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=hH[t];return [js(r,o,a,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}}]},pH=new St("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bH=new St("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),gy=new St("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vy=new St("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),yH=new St("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),CH=new St("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),SH=new St("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),$H=new St("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),wH=new St("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),xH=new St("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),EH=new St("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),OH=new St("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),IH={zoom:{inKeyframes:pH,outKeyframes:bH},"zoom-big":{inKeyframes:gy,outKeyframes:vy},"zoom-big-fast":{inKeyframes:gy,outKeyframes:vy},"zoom-left":{inKeyframes:SH,outKeyframes:$H},"zoom-right":{inKeyframes:wH,outKeyframes:xH},"zoom-up":{inKeyframes:yH,outKeyframes:CH},"zoom-down":{inKeyframes:EH,outKeyframes:OH}},Ds=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=IH[t];return [js(r,o,a,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}}]},PH=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`}}}),Ox=PH,MH=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{position:"absolute",zIndex:i,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:l,minHeight:l,padding:`${B(e.calc(c).div(2).equal())} ${B(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,Sx)}},[`${t}-content`]:{position:"relative"}}),Zd(e,(d,m)=>{let{darkColor:g}=m;return {[`&${t}-${d}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},Wh(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},RH=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},rf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Hh(Ot(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ix=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Kt("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=r,l=Ot(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return [MH(l),Ds(r,"zoom-big-fast")]},RH,{resetStyle:!1,injectStyle:t})(e)};function Px(e,t){const n=Qd(t),r=G({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const _H=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:l}=f__namespace.useContext(nt),s=l("tooltip",t),[c,u,d]=Ix(s),m=Px(s,a),g=m.arrowStyle,v=Object.assign(Object.assign({},i),m.overlayStyle),h=G(u,d,s,`${s}-pure`,`${s}-placement-${r}`,n,m.className);return c(f__namespace.createElement("div",{className:h,style:g},f__namespace.createElement("div",{className:`${s}-arrow`}),f__namespace.createElement(zh,Object.assign({},e,{className:u,prefixCls:s,overlayInnerStyle:v}),o)))},NH=_H;var TH=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 Mx=f__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:l,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:v=!0,title:h,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:C=!0}=e,w=!!v,[,x]=In(),{getPopupContainer:$,getPrefixCls:S,direction:O}=f__namespace.useContext(nt),E=Ns(),I=f__namespace.useRef(null),P=()=>{var $e;($e=I.current)===null||$e===void 0||$e.forceAlign();};f__namespace.useImperativeHandle(t,()=>({forceAlign:P,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),P();}}));const[N,L]=Gt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),k=!h&&!p&&h!==0,A=$e=>{var We,Ke;L(k?!1:$e),k||((We=e.onOpenChange)===null||We===void 0||We.call(e,$e),(Ke=e.onVisibleChange)===null||Ke===void 0||Ke.call(e,$e));},T=f__namespace.useMemo(()=>{var $e,We;let Ke=y;return typeof v=="object"&&(Ke=(We=($e=v.pointAtCenter)!==null&&$e!==void 0?$e:v.arrowPointAtCenter)!==null&&We!==void 0?We:y),b||$x({arrowPointAtCenter:Ke,autoAdjustOverflow:C,arrowWidth:w?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})},[y,v,b,x]),R=f__namespace.useMemo(()=>h===0?h:p||h||"",[p,h]),_=f__namespace.createElement(Na,null,typeof R=="function"?R():R),{getPopupContainer:D,placement:z="top",mouseEnterDelay:F=.1,mouseLeaveDelay:W=.1,overlayStyle:V,rootClassName:X}=e,q=TH(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Q=S("tooltip",o),ue=S(),Y=e["data-popover-inject"];let ce=N;!("open"in e)&&!("visible"in e)&&k&&(ce=!1);const Z=Mo(u)&&!dx(u)?u:f__namespace.createElement("span",null,u),ee=Z.props,ne=!ee.className||typeof ee.className=="string"?G(ee.className,a||`${Q}-open`):ee.className,[le,se,K]=Ix(Q,!Y),te=Px(Q,s),re=te.arrowStyle,ve=Object.assign(Object.assign({},c),te.overlayStyle),ae=G(l,{[`${Q}-rtl`]:O==="rtl"},te.className,X,se,K),[ie,fe]=As("Tooltip",q.zIndex),Ee=f__namespace.createElement(kB,Object.assign({},q,{zIndex:ie,showArrow:w,placement:z,mouseEnterDelay:F,mouseLeaveDelay:W,prefixCls:Q,overlayClassName:ae,overlayStyle:Object.assign(Object.assign({},re),V),getTooltipContainer:D||i||$,ref:I,builtinPlacements:T,overlay:_,visible:ce,onVisibleChange:A,afterVisibleChange:d??m,overlayInnerStyle:ve,arrowContent:f__namespace.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:ea(ue,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),ce?ir(Z,{className:ne}):Z);return le(f__namespace.createElement(tf.Provider,{value:fe},Ee))});Mx._InternalPanelDoNotUseOrYouWillBeFired=NH;const Ji=Mx;var LH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const kH=LH;var AH=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:kH}))};const Rx=f__namespace.forwardRef(AH),jH=e=>{const{icon:t,description:n,prefixCls:r,className:o}=e,a=f.createElement("div",{className:`${r}-icon`},f.createElement(Rx,null));return f.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:G(o,`${r}-content`)},t||n?f.createElement(f.Fragment,null,t&&f.createElement("div",{className:`${r}-icon`},t),n&&f.createElement("div",{className:`${r}-description`},n)):a)},DH=f.memo(jH),zH=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),hy=zH,FH=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:o}=e,a=`${t}-group`,i=new St("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${B(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new St("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${B(n)}, 0)`,transformOrigin:"0 0",opacity:0}});return [{[`${a}-wrap`]:Object.assign({},js(`${a}-wrap`,i,l,r,!0))},{[`${a}-wrap`]:{[`
&${a}-wrap-enter,
&${a}-wrap-appear
`]:{opacity:0,animationTimingFunction:o},[`&${a}-wrap-leave`]:{animationTimingFunction:o}}}]},BH=e=>{const{antCls:t,componentCls:n,floatButtonSize:r,margin:o,borderRadiusLG:a,borderRadiusSM:i,badgeOffset:l,floatButtonBodyPadding:s,calc:c}=e,u=`${n}-group`;return {[u]:Object.assign(Object.assign({},Lt(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:r,height:"auto",boxShadow:"none",minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:a,[`${u}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:o},[`&${u}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${u}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:r,height:r,borderRadius:"50%"}}},[`${u}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:a,borderStartEndRadius:a},"&:last-child":{borderEndStartRadius:a,borderEndEndRadius:a},"&:not(:last-child)":{borderBottom:`${B(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:c(c(s).add(l)).mul(-1).equal(),insetInlineEnd:c(c(s).add(l)).mul(-1).equal()}}},[`${u}-wrap`]:{display:"block",borderRadius:a,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:s,"&:first-child":{borderStartStartRadius:a,borderStartEndRadius:a},"&:last-child":{borderEndStartRadius:a,borderEndEndRadius:a},"&:not(:last-child)":{borderBottom:`${B(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${u}-circle-shadow`]:{boxShadow:"none"},[`${u}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:s,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:i}}}}},HH=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:o,floatButtonSize:a,borderRadiusLG:i,badgeOffset:l,dotOffsetInSquare:s,dotOffsetInCircle:c,calc:u}=e;return {[n]:Object.assign(Object.assign({},Lt(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",width:a,height:a,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:u(l).mul(-1).equal(),insetInlineEnd:u(l).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:a,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${B(u(r).div(2).equal())} ${B(r)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:o,fontSize:o,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:a,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:a,borderRadius:i,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{height:"auto",borderRadius:i}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:B(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:B(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},WH=e=>({dotOffsetInCircle:hy(e.controlHeightLG/2),dotOffsetInSquare:hy(e.borderRadiusLG)}),_x=Kt("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:o,marginLG:a,fontSize:i,fontSizeIcon:l,controlItemBgHover:s,paddingXXS:c,calc:u}=e,d=Ot(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:s,floatButtonFontSize:i,floatButtonIconSize:u(l).mul(1.5).equal(),floatButtonSize:r,floatButtonInsetBlockEnd:o,floatButtonInsetInlineEnd:a,floatButtonBodySize:u(r).sub(u(c).mul(2)).equal(),floatButtonBodyPadding:c,badgeOffset:u(c).mul(1.5).equal()});return [BH(d),HH(d),Ex(e),FH(d)]},WH),VH=e=>{const[,,,,t]=In();return t?`${e}-css-var`:""},Mn=VH;var GH=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 af="float-btn",KH=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,type:a="default",shape:i="circle",icon:l,description:s,tooltip:c,badge:u={}}=e,d=GH(e,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:m,direction:g}=f.useContext(nt),v=f.useContext(ux),h=m(af,n),p=Mn(h),[b,y,C]=_x(h,p),w=v||i,x=G(y,C,p,h,r,o,`${h}-${a}`,`${h}-${w}`,{[`${h}-rtl`]:g==="rtl"}),$=f.useMemo(()=>Yn(u,["title","children","status","text"]),[u]),S=f.useMemo(()=>({prefixCls:h,description:s,icon:l,type:a}),[h,s,l,a]);let O=f.createElement("div",{className:`${h}-body`},f.createElement(DH,Object.assign({},S)));return "badge"in e&&(O=f.createElement(vx,Object.assign({},$),O)),"tooltip"in e&&(O=f.createElement(Ji,{title:c,placement:g==="rtl"?"right":"left"},O)),b(e.href?f.createElement("a",Object.assign({ref:t},d,{className:x}),O):f.createElement("button",Object.assign({ref:t},d,{className:x,type:"button"}),O))}),Da=KH;var UH=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 qH=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,type:o="default",shape:a="circle",visibilityHeight:i=400,icon:l=f.createElement(t6,null),target:s,onClick:c,duration:u=450}=e,d=UH(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[m,g]=f.useState(i===0),v=f.useRef(null);f.useImperativeHandle(t,()=>({nativeElement:v.current}));const h=()=>v.current&&v.current.ownerDocument?v.current.ownerDocument:window,p=L6(O=>{const E=xw(O.target,!0);g(E>=i);});f.useEffect(()=>{const E=(s||h)();return p({target:E}),E==null||E.addEventListener("scroll",p),()=>{p.cancel(),E==null||E.removeEventListener("scroll",p);}},[s]);const b=O=>{M6(0,{getContainer:s||h,duration:u}),c==null||c(O);},{getPrefixCls:y}=f.useContext(nt),C=y(af,n),w=y(),$=f.useContext(ux)||a,S=Object.assign({prefixCls:C,icon:l,type:o,shape:$},d);return f.createElement(Rr,{visible:m,motionName:`${w}-fade`},O=>{let{className:E}=O;return f.createElement(Da,Object.assign({ref:v},S,{onClick:b,className:G(r,E)}))})}),Nx=qH;var XH={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const YH=XH;var ZH=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:YH}))};const ko=f__namespace.forwardRef(ZH);var QH=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 JH=e=>{const{prefixCls:t,className:n,style:r,shape:o="circle",type:a="default",icon:i=f.createElement(Rx,null),closeIcon:l=f.createElement(ko,null),description:s,trigger:c,children:u,onOpenChange:d,open:m}=e,g=QH(e,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open"]),{direction:v,getPrefixCls:h}=f.useContext(nt),p=h(af,t),b=Mn(p),[y,C,w]=_x(p,b),x=`${p}-group`,$=G(x,C,w,b,n,{[`${x}-rtl`]:v==="rtl",[`${x}-${o}`]:o,[`${x}-${o}-shadow`]:!c}),S=G(C,`${x}-wrap`),[O,E]=Gt(!1,{value:m}),I=f.useRef(null),P=f.useRef(null),N=f.useMemo(()=>c==="hover"?{onMouseEnter(){E(!0),d==null||d(!0);},onMouseLeave(){E(!1),d==null||d(!1);}}:{},[c]),L=()=>{E(A=>(d==null||d(!A),!A));},k=f.useCallback(A=>{var T,R;if(!((T=I.current)===null||T===void 0)&&T.contains(A.target)){!((R=P.current)===null||R===void 0)&&R.contains(A.target)&&L();return}E(!1),d==null||d(!1);},[c]);return f.useEffect(()=>{if(c==="click")return document.addEventListener("click",k),()=>{document.removeEventListener("click",k);}},[c]),y(f.createElement(T8,{value:o},f.createElement("div",Object.assign({ref:I,className:$,style:r},N),c&&["click","hover"].includes(c)?f.createElement(f.Fragment,null,f.createElement(Rr,{visible:O,motionName:`${x}-wrap`},A=>{let{className:T}=A;return f.createElement("div",{className:G(T,S)},u)}),f.createElement(Da,Object.assign({ref:P,type:a,shape:o,icon:O?l:i,description:s,"aria-label":e["aria-label"]},g))):u)))},Tx=f.memo(JH);var Lx=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=e=>{var{backTop:t}=e,n=Lx(e,["backTop"]);return t?f__namespace.createElement(Nx,Object.assign({},n,{visibilityHeight:0})):f__namespace.createElement(Da,Object.assign({},n))},e9=e=>{var{className:t,items:n}=e,r=Lx(e,["className","items"]);const{prefixCls:o}=r,{getPrefixCls:a}=f__namespace.useContext(nt),l=`${a(af,o)}-pure`;return n?f__namespace.createElement(Tx,Object.assign({className:G(t,l)},r),n.map((s,c)=>f__namespace.createElement(py,Object.assign({key:c},s)))):f__namespace.createElement(py,Object.assign({className:G(t,l)},r))},t9=e9;Da.BackTop=Nx;Da.Group=Tx;Da._InternalPanelDoNotUseOrYouWillBeFired=t9;const n9=e=>{const t=e!=null&&e.algorithm?as(e.algorithm):as(Ts),n=Object.assign(Object.assign({},Pi),e==null?void 0:e.token);return Rw(n,{override:e==null?void 0:e.token},t,jh)},r9=n9;function o9(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 a9=(e,t)=>{const n=t??Ts(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),o9(t??e)),Vw(r)),{controlHeight:o}),Hw(Object.assign(Object.assign({},n),{controlHeight:o})))},i9=a9,Eo=(e,t)=>new nn(e).setAlpha(t).toRgbString(),Xa=(e,t)=>new nn(e).lighten(t).toHexString(),l9=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]}},s9=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:Eo(r,.85),colorTextSecondary:Eo(r,.65),colorTextTertiary:Eo(r,.45),colorTextQuaternary:Eo(r,.25),colorFill:Eo(r,.18),colorFillSecondary:Eo(r,.12),colorFillTertiary:Eo(r,.08),colorFillQuaternary:Eo(r,.04),colorBgElevated:Xa(n,12),colorBgContainer:Xa(n,8),colorBgLayout:Xa(n,0),colorBgSpotlight:Xa(n,26),colorBgBlur:Eo(r,.04),colorBorder:Xa(n,26),colorBorderSecondary:Xa(n,19)}},c9=(e,t)=>{const n=Object.keys(kh).map(o=>{const a=Po(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((i,l,s)=>(i[`${o}-${s+1}`]=a[s],i[`${o}${s+1}`]=a[s],i),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??Ts(e);return Object.assign(Object.assign(Object.assign({},r),n),Ww(e,{generateColorPalettes:l9,generateNeutralColorPalettes:s9}))},u9=c9;function d9(){const[e,t,n]=In();return {theme:e,token:t,hashId:n}}const by={defaultConfig:$u,defaultSeed:$u.token,useToken:d9,defaultAlgorithm:Ts,darkAlgorithm:u9,compactAlgorithm:i9,getDesignToken:r9};var f9=VS,yy=1/0,m9=17976931348623157e292;function g9(e){if(!e)return e===0?e:0;if(e=f9(e),e===yy||e===-yy){var t=e<0?-1:1;return t*m9}return e===e?e:0}var v9=g9,h9=v9;function p9(e){var t=h9(e),n=t%1;return t===t?n?t-n:t:0}var b9=p9,y9=b9,C9="Expected a function";function S9(e,t){var n;if(typeof t!="function")throw new TypeError(C9);return e=y9(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var $9=S9,w9=$9;function x9(e){return w9(2,e)}var E9=x9;const kx=Bn(E9),Ta=kx(()=>!!document.querySelectorAll(".bili-feed4").length),Ax=()=>document.body.classList.contains("dark")||document.body.classList.contains("bilibili-helper-dark-mode"),jx=mr({value:Ax()});function zs(){return vr(jx).value}const qh=new MutationObserver(function(){jx.value=Ax();});qh.observe(document.body,{attributes:!0,attributeFilter:["class"]});qh.observe(document.documentElement,{attributes:!0,attributeFilter:["data-darkreader-scheme"]});window.addEventListener("unload",()=>{qh.disconnect();});const Dx=$P();var dS;const O9=((dS=Dx.os.name)==null?void 0:dS.toLowerCase())==="mac os";var fS;const Xh=((fS=Dx.browser.name)==null?void 0:fS.toLowerCase())==="safari";var de={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>=de.F1&&n<=de.F12)return !1;switch(n){case de.ALT:case de.CAPS_LOCK:case de.CONTEXT_MENU:case de.CTRL:case de.DOWN:case de.END:case de.ESC:case de.HOME:case de.INSERT:case de.LEFT:case de.MAC_FF_META:case de.META:case de.NUMLOCK:case de.NUM_CENTER:case de.PAGE_DOWN:case de.PAGE_UP:case de.PAUSE:case de.PRINT_SCREEN:case de.RIGHT:case de.SHIFT:case de.UP:case de.WIN_KEY:case de.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=de.ZERO&&t<=de.NINE||t>=de.NUM_ZERO&&t<=de.NUM_MULTIPLY||t>=de.A&&t<=de.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case de.SPACE:case de.QUESTION_MARK:case de.NUM_PLUS:case de.NUM_MINUS:case de.NUM_PERIOD:case de.NUM_DIVISION:case de.SEMICOLON:case de.DASH:case de.EQUALS:case de.COMMA:case de.PERIOD:case de.SLASH:case de.APOSTROPHE:case de.SINGLE_QUOTE:case de.OPEN_SQUARE_BRACKET:case de.BACKSLASH:case de.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},zx=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,l=e.eventKey,s=e.content,c=e.closable,u=e.closeIcon,d=u===void 0?"x":u,m=e.props,g=e.onClick,v=e.onNoticeClose,h=e.times,p=e.hovering,b=f__namespace.useState(!1),y=J(b,2),C=y[0],w=y[1],x=p||C,$=function(){v(l);},S=function(I){(I.key==="Enter"||I.code==="Enter"||I.keyCode===de.ENTER)&&$();};f__namespace.useEffect(function(){if(!x&&i>0){var E=setTimeout(function(){$();},i*1e3);return function(){clearTimeout(E);}}},[i,x,h]);var O="".concat(n,"-notice");return f__namespace.createElement("div",xe({},m,{ref:t,className:G(O,o,H({},"".concat(O,"-closable"),c)),style:r,onMouseEnter:function(I){var P;w(!0),m==null||(P=m.onMouseEnter)===null||P===void 0||P.call(m,I);},onMouseLeave:function(I){var P;w(!1),m==null||(P=m.onMouseLeave)===null||P===void 0||P.call(m,I);},onClick:g}),f__namespace.createElement("div",{className:"".concat(O,"-content")},s),c&&f__namespace.createElement("a",{tabIndex:0,className:"".concat(O,"-close"),onKeyDown:S,onClick:function(I){I.preventDefault(),I.stopPropagation(),$();}},d))}),Fx=f.createContext({}),Bx=function(t){var n=t.children,r=t.classNames;return f.createElement(Fx.Provider,{value:{classNames:r}},n)},Cy=8,Sy=3,$y=16,I9=function(t){var n={offset:Cy,threshold:Sy,gap:$y};if(t&&ht(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:Cy,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:Sy,n.gap=(a=t.gap)!==null&&a!==void 0?a:$y;}return [!!t,n]},P9=["className","style","classNames","styles"],M9=function(t){var n,r=t.configList,o=t.placement,a=t.prefixCls,i=t.className,l=t.style,s=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,m=f.useContext(Fx),g=m.classNames,v=f.useRef({}),h=f.useState(null),p=J(h,2),b=p[0],y=p[1],C=f.useState([]),w=J(C,2),x=w[0],$=w[1],S=r.map(function(R){return {config:R,key:String(R.key)}}),O=I9(d),E=J(O,2),I=E[0],P=E[1],N=P.offset,L=P.threshold,k=P.gap,A=I&&(x.length>0||S.length<=L),T=typeof s=="function"?s(o):s;return f.useEffect(function(){I&&x.length>1&&$(function(R){return R.filter(function(_){return S.some(function(D){var z=D.key;return _===z})})});},[x,S,I]),f.useEffect(function(){var R;if(I&&v.current[(R=S[S.length-1])===null||R===void 0?void 0:R.key]){var _;y(v.current[(_=S[S.length-1])===null||_===void 0?void 0:_.key]);}},[S,I]),f.createElement(I6,xe({key:o,className:G(a,"".concat(a,"-").concat(o),g==null?void 0:g.list,i,(n={},H(n,"".concat(a,"-stack"),!!I),H(n,"".concat(a,"-stack-expanded"),A),n)),style:l,keys:S,motionAppear:!0},T,{onAllRemoved:function(){c(o);}}),function(R,_){var D=R.config,z=R.className,F=R.style,W=R.index,V=D,X=V.key,q=V.times,Q=String(X),ue=D,Y=ue.className,ce=ue.style,Z=ue.classNames,ee=ue.styles,ne=dt(ue,P9),le=S.findIndex(function(Ke){return Ke.key===Q}),se={};if(I){var K=S.length-1-(le>-1?le:W-1),te=o==="top"||o==="bottom"?"-50%":"0";if(K>0){var re,ve,ae;se.height=A?(re=v.current[Q])===null||re===void 0?void 0:re.offsetHeight:b==null?void 0:b.offsetHeight;for(var ie=0,fe=0;fe<K;fe++){var Ee;ie+=((Ee=v.current[S[S.length-1-fe].key])===null||Ee===void 0?void 0:Ee.offsetHeight)+k;}var $e=(A?ie:K*N)*(o.startsWith("top")?1:-1),We=!A&&b!==null&&b!==void 0&&b.offsetWidth&&(ve=v.current[Q])!==null&&ve!==void 0&&ve.offsetWidth?((b==null?void 0:b.offsetWidth)-N*2*(K<3?K:3))/((ae=v.current[Q])===null||ae===void 0?void 0:ae.offsetWidth):1;se.transform="translate3d(".concat(te,", ").concat($e,"px, 0) scaleX(").concat(We,")");}else se.transform="translate3d(".concat(te,", 0, 0)");}return f.createElement("div",{ref:_,className:G("".concat(a,"-notice-wrapper"),z,Z==null?void 0:Z.wrapper),style:U(U(U({},F),se),ee==null?void 0:ee.wrapper),onMouseEnter:function(){return $(function(Te){return Te.includes(Q)?Te:[].concat(Ge(Te),[Q])})},onMouseLeave:function(){return $(function(Te){return Te.filter(function(Ue){return Ue!==Q})})}},f.createElement(zx,xe({},ne,{ref:function(Te){le>-1?v.current[Q]=Te:delete v.current[Q];},prefixCls:a,classNames:Z,styles:ee,className:G(Y,g==null?void 0:g.notice),style:ce,times:q,key:X,eventKey:X,onNoticeClose:u,hovering:I&&x.length>0})))})},R9=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,m=f__namespace.useState([]),g=J(m,2),v=g[0],h=g[1],p=function(E){var I,P=v.find(function(N){return N.key===E});P==null||(I=P.onClose)===null||I===void 0||I.call(P),h(function(N){return N.filter(function(L){return L.key!==E})});};f__namespace.useImperativeHandle(t,function(){return {open:function(E){h(function(I){var P=Ge(I),N=P.findIndex(function(A){return A.key===E.key}),L=U({},E);if(N>=0){var k;L.times=(((k=I[N])===null||k===void 0?void 0:k.times)||0)+1,P[N]=L;}else L.times=0,P.push(L);return i>0&&P.length>i&&(P=P.slice(-i)),P});},close:function(E){p(E);},destroy:function(){h([]);}}});var b=f__namespace.useState({}),y=J(b,2),C=y[0],w=y[1];f__namespace.useEffect(function(){var O={};v.forEach(function(E){var I=E.placement,P=I===void 0?"topRight":I;P&&(O[P]=O[P]||[],O[P].push(E));}),Object.keys(C).forEach(function(E){O[E]=O[E]||[];}),w(O);},[v]);var x=function(E){w(function(I){var P=U({},I),N=P[E]||[];return N.length||delete P[E],P});},$=f__namespace.useRef(!1);if(f__namespace.useEffect(function(){Object.keys(C).length>0?$.current=!0:$.current&&(c==null||c(),$.current=!1);},[C]),!o)return null;var S=Object.keys(C);return gS.createPortal(f__namespace.createElement(f__namespace.Fragment,null,S.map(function(O){var E=C[O],I=f__namespace.createElement(M9,{key:O,configList:E,placement:O,prefixCls:r,className:l==null?void 0:l(O),style:s==null?void 0:s(O),motion:a,onNoticeClose:p,onAllNoticeRemoved:x,stack:u});return d?d(I,{prefixCls:r,key:O}):I})),o)}),_9=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],N9=function(){return document.body},wy=0;function T9(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(a){var i=o[a];i!==void 0&&(e[a]=i);});}),e}function Hx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?N9:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,l=e.style,s=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=dt(e,_9),m=f__namespace.useState(),g=J(m,2),v=g[0],h=g[1],p=f__namespace.useRef(),b=f__namespace.createElement(R9,{container:v,ref:p,prefixCls:o,motion:r,maxCount:a,className:i,style:l,onAllRemoved:s,stack:c,renderNotifications:u}),y=f__namespace.useState([]),C=J(y,2),w=C[0],x=C[1],$=f__namespace.useMemo(function(){return {open:function(O){var E=T9(d,O);(E.key===null||E.key===void 0)&&(E.key="rc-notification-".concat(wy),wy+=1),x(function(I){return [].concat(Ge(I),[{type:"open",config:E}])});},close:function(O){x(function(E){return [].concat(Ge(E),[{type:"close",key:O}])});},destroy:function(){x(function(O){return [].concat(Ge(O),[{type:"destroy"}])});}}},[]);return f__namespace.useEffect(function(){h(n());}),f__namespace.useEffect(function(){p.current&&w.length&&(w.forEach(function(S){switch(S.type){case"open":p.current.open(S.config);break;case"close":p.current.close(S.key);break;case"destroy":p.current.destroy();break}}),x(function(S){return S.filter(function(O){return !w.includes(O)})}));},[w]),[$,b]}var L9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const k9=L9;var A9=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:k9}))};const Yh=f__namespace.forwardRef(A9);var j9={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const D9=j9;var z9=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:D9}))};const el=f__namespace.forwardRef(z9);var F9={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 B9=F9;var H9=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:B9}))};const Fs=f__namespace.forwardRef(H9);var W9={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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const V9=W9;var G9=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:V9}))};const Zh=f__namespace.forwardRef(G9);var K9={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 U9=K9;var q9=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:U9}))};const lf=f__namespace.forwardRef(q9),X9=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:m,paddingXS:g,borderRadiusLG:v,zIndexPopup:h,contentPadding:p,contentBg:b}=e,y=`${t}-notice`,C=new St("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),w=new St("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:g,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:m,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:p,background:b,borderRadius:v,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
${t}-loading > ${n}`]:{color:s}};return [{[t]:Object.assign(Object.assign({},Lt(e)),{color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
${t}-move-up-appear,
${t}-move-up-enter
`]:{animationName:C,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`
${t}-move-up-appear${t}-move-up-appear-active,
${t}-move-up-enter${t}-move-up-enter-active
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},Y9=e=>({zIndexPopup:e.zIndexPopupBase+nf+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Wx=Kt("Message",e=>{const t=Ot(e,{height:150});return [X9(t)]},Y9);var Z9=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 Q9={info:f__namespace.createElement(Zh,null),success:f__namespace.createElement(Yh,null),error:f__namespace.createElement(el,null),warning:f__namespace.createElement(Fs,null),loading:f__namespace.createElement(lf,null)},Vx=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return f__namespace.createElement("div",{className:G(`${t}-custom-content`,`${t}-${n}`)},r||Q9[n],f__namespace.createElement("span",null,o))},J9=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=Z9(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=f__namespace.useContext(nt),s=t||l("message"),c=Mn(s),[u,d,m]=Wx(s,c);return u(f__namespace.createElement(zx,Object.assign({},i,{prefixCls:s,className:G(n,d,`${s}-notice-pure-panel`,m,c),eventKey:"pure",duration:null,content:f__namespace.createElement(Vx,{prefixCls:s,type:r,icon:o},a)})))},e7=J9;function t7(e,t){return {motionName:t??`${e}-move-up`}}function Qh(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0);});}),r=()=>{t==null||t();};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var n7=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 r7=8,o7=3,a7=e=>{let{children:t,prefixCls:n}=e;const r=Mn(n),[o,a,i]=Wx(n,r);return o(f__namespace.createElement(Bx,{classNames:{list:G(a,i,r)}},t))},i7=(e,t)=>{let{prefixCls:n,key:r}=t;return f__namespace.createElement(a7,{prefixCls:n,key:r},e)},l7=f__namespace.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=o7,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:m,direction:g}=f__namespace.useContext(nt),v=r||u("message"),h=()=>({left:"50%",transform:"translateX(-50%)",top:n??r7}),p=()=>G({[`${v}-rtl`]:l??g==="rtl"}),b=()=>t7(v,s),y=f__namespace.createElement("span",{className:`${v}-close-x`},f__namespace.createElement(ko,{className:`${v}-close-icon`})),[C,w]=Hx({prefixCls:v,style:h,className:p,motion:b,closable:!1,closeIcon:y,duration:i,getContainer:()=>(o==null?void 0:o())||(d==null?void 0:d())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:i7});return f__namespace.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:v,message:m})),w});let xy=0;function Gx(e){const t=f__namespace.useRef(null);return Ns(),[f__namespace.useMemo(()=>{const r=s=>{var c;(c=t.current)===null||c===void 0||c.close(s);},o=s=>{if(!t.current){const $=()=>{};return $.then=()=>{},$}const{open:c,prefixCls:u,message:d}=t.current,m=`${u}-notice`,{content:g,icon:v,type:h,key:p,className:b,style:y,onClose:C}=s,w=n7(s,["content","icon","type","key","className","style","onClose"]);let x=p;return x==null&&(xy+=1,x=`antd-message-${xy}`),Qh($=>(c(Object.assign(Object.assign({},w),{key:x,content:f__namespace.createElement(Vx,{prefixCls:u,type:h,icon:v},g),placement:"top",className:G(h&&`${m}-${h}`,b,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),y),onClose:()=>{C==null||C(),$();}})),()=>{r(x);}))},i={open:o,destroy:s=>{var c;s!==void 0?r(s):(c=t.current)===null||c===void 0||c.destroy();}};return ["info","success","warning","error","loading"].forEach(s=>{const c=(u,d,m)=>{let g;u&&typeof u=="object"&&"content"in u?g=u:g={content:u};let v,h;typeof d=="function"?h=d:(v=d,h=m);const p=Object.assign(Object.assign({onClose:h,duration:v},g),{type:s});return o(p)};i[s]=c;}),i},[]),f__namespace.createElement(l7,Object.assign({key:"message-holder"},e,{ref:t}))]}function Kx(e){return Gx(e)}function s7(){const[e,t]=f__namespace.useState([]),n=f__namespace.useCallback(r=>(t(o=>[].concat(Fn(o),[r])),()=>{t(o=>o.filter(a=>a!==r));}),[]);return [e,n]}function lr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */lr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(T,R,_){T[R]=_.value;},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(T,R,_){return Object.defineProperty(T,R,{value:_,enumerable:!0,configurable:!0,writable:!0}),T[R]}try{c({},"");}catch{c=function(_,D,z){return _[D]=z};}function u(T,R,_,D){var z=R&&R.prototype instanceof b?R:b,F=Object.create(z.prototype),W=new k(D||[]);return o(F,"_invoke",{value:I(T,_,W)}),F}function d(T,R,_){try{return {type:"normal",arg:T.call(R,_)}}catch(D){return {type:"throw",arg:D}}}t.wrap=u;var m="suspendedStart",g="suspendedYield",v="executing",h="completed",p={};function b(){}function y(){}function C(){}var w={};c(w,i,function(){return this});var x=Object.getPrototypeOf,$=x&&x(x(A([])));$&&$!==n&&r.call($,i)&&(w=$);var S=C.prototype=b.prototype=Object.create(w);function O(T){["next","throw","return"].forEach(function(R){c(T,R,function(_){return this._invoke(R,_)});});}function E(T,R){function _(z,F,W,V){var X=d(T[z],T,F);if(X.type!=="throw"){var q=X.arg,Q=q.value;return Q&&ht(Q)=="object"&&r.call(Q,"__await")?R.resolve(Q.__await).then(function(ue){_("next",ue,W,V);},function(ue){_("throw",ue,W,V);}):R.resolve(Q).then(function(ue){q.value=ue,W(q);},function(ue){return _("throw",ue,W,V)})}V(X.arg);}var D;o(this,"_invoke",{value:function(F,W){function V(){return new R(function(X,q){_(F,W,X,q);})}return D=D?D.then(V,V):V()}});}function I(T,R,_){var D=m;return function(z,F){if(D===v)throw new Error("Generator is already running");if(D===h){if(z==="throw")throw F;return {value:e,done:!0}}for(_.method=z,_.arg=F;;){var W=_.delegate;if(W){var V=P(W,_);if(V){if(V===p)continue;return V}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(D===m)throw D=h,_.arg;_.dispatchException(_.arg);}else _.method==="return"&&_.abrupt("return",_.arg);D=v;var X=d(T,R,_);if(X.type==="normal"){if(D=_.done?h:g,X.arg===p)continue;return {value:X.arg,done:_.done}}X.type==="throw"&&(D=h,_.method="throw",_.arg=X.arg);}}}function P(T,R){var _=R.method,D=T.iterator[_];if(D===e)return R.delegate=null,_==="throw"&&T.iterator.return&&(R.method="return",R.arg=e,P(T,R),R.method==="throw")||_!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+_+"' method")),p;var z=d(D,T.iterator,R.arg);if(z.type==="throw")return R.method="throw",R.arg=z.arg,R.delegate=null,p;var F=z.arg;return F?F.done?(R[T.resultName]=F.value,R.next=T.nextLoc,R.method!=="return"&&(R.method="next",R.arg=e),R.delegate=null,p):F:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,p)}function N(T){var R={tryLoc:T[0]};1 in T&&(R.catchLoc=T[1]),2 in T&&(R.finallyLoc=T[2],R.afterLoc=T[3]),this.tryEntries.push(R);}function L(T){var R=T.completion||{};R.type="normal",delete R.arg,T.completion=R;}function k(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(N,this),this.reset(!0);}function A(T){if(T||T===""){var R=T[i];if(R)return R.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var _=-1,D=function z(){for(;++_<T.length;)if(r.call(T,_))return z.value=T[_],z.done=!1,z;return z.value=e,z.done=!0,z};return D.next=D}}throw new TypeError(ht(T)+" is not iterable")}return y.prototype=C,o(S,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:y,configurable:!0}),y.displayName=c(C,s,"GeneratorFunction"),t.isGeneratorFunction=function(T){var R=typeof T=="function"&&T.constructor;return !!R&&(R===y||(R.displayName||R.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,C):(T.__proto__=C,c(T,s,"GeneratorFunction")),T.prototype=Object.create(S),T},t.awrap=function(T){return {__await:T}},O(E.prototype),c(E.prototype,l,function(){return this}),t.AsyncIterator=E,t.async=function(T,R,_,D,z){z===void 0&&(z=Promise);var F=new E(u(T,R,_,D),z);return t.isGeneratorFunction(R)?F:F.next().then(function(W){return W.done?W.value:F.next()})},O(S),c(S,s,"Generator"),c(S,i,function(){return this}),c(S,"toString",function(){return "[object Generator]"}),t.keys=function(T){var R=Object(T),_=[];for(var D in R)_.push(D);return _.reverse(),function z(){for(;_.length;){var F=_.pop();if(F in R)return z.value=F,z.done=!1,z}return z.done=!0,z}},t.values=A,k.prototype={constructor:k,reset:function(R){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!R)for(var _ in this)_.charAt(0)==="t"&&r.call(this,_)&&!isNaN(+_.slice(1))&&(this[_]=e);},stop:function(){this.done=!0;var R=this.tryEntries[0].completion;if(R.type==="throw")throw R.arg;return this.rval},dispatchException:function(R){if(this.done)throw R;var _=this;function D(q,Q){return W.type="throw",W.arg=R,_.next=q,Q&&(_.method="next",_.arg=e),!!Q}for(var z=this.tryEntries.length-1;z>=0;--z){var F=this.tryEntries[z],W=F.completion;if(F.tryLoc==="root")return D("end");if(F.tryLoc<=this.prev){var V=r.call(F,"catchLoc"),X=r.call(F,"finallyLoc");if(V&&X){if(this.prev<F.catchLoc)return D(F.catchLoc,!0);if(this.prev<F.finallyLoc)return D(F.finallyLoc)}else if(V){if(this.prev<F.catchLoc)return D(F.catchLoc,!0)}else {if(!X)throw new Error("try statement without catch or finally");if(this.prev<F.finallyLoc)return D(F.finallyLoc)}}}},abrupt:function(R,_){for(var D=this.tryEntries.length-1;D>=0;--D){var z=this.tryEntries[D];if(z.tryLoc<=this.prev&&r.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var F=z;break}}F&&(R==="break"||R==="continue")&&F.tryLoc<=_&&_<=F.finallyLoc&&(F=null);var W=F?F.completion:{};return W.type=R,W.arg=_,F?(this.method="next",this.next=F.finallyLoc,p):this.complete(W)},complete:function(R,_){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&_&&(this.next=_),p},finish:function(R){for(var _=this.tryEntries.length-1;_>=0;--_){var D=this.tryEntries[_];if(D.finallyLoc===R)return this.complete(D.completion,D.afterLoc),L(D),p}},catch:function(R){for(var _=this.tryEntries.length-1;_>=0;--_){var D=this.tryEntries[_];if(D.tryLoc===R){var z=D.completion;if(z.type==="throw"){var F=z.arg;L(D);}return F}}throw new Error("illegal catch attempt")},delegateYield:function(R,_,D){return this.delegate={iterator:A(R),resultName:_,nextLoc:D},this.method==="next"&&(this.arg=e),p}},t}function Ey(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value;}catch(c){n(c);return}l.done?t(s):Promise.resolve(s).then(r,o);}function za(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(s){Ey(a,r,o,i,l,"next",s);}function l(s){Ey(a,r,o,i,l,"throw",s);}i(void 0);})}}var Bs=U({},gS__namespace),c7=Bs.version,u7=Bs.render,d7=Bs.unmountComponentAtNode,sf;try{var f7=Number((c7||"").split(".")[0]);f7>=18&&(sf=Bs.createRoot);}catch{}function Oy(e){var t=Bs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ht(t)==="object"&&(t.usingClientEntryPoint=e);}var Ou="__rc_react_root__";function m7(e,t){Oy(!0);var n=t[Ou]||sf(t);Oy(!1),n.render(e),t[Ou]=n;}function g7(e,t){u7(e,t);}function Ux(e,t){if(sf){m7(e,t);return}g7(e,t);}function v7(e){return jg.apply(this,arguments)}function jg(){return jg=za(lr().mark(function e(t){return lr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Ou])===null||o===void 0||o.unmount(),delete t[Ou];}));case 1:case"end":return r.stop()}},e)})),jg.apply(this,arguments)}function h7(e){d7(e);}function p7(e){return Dg.apply(this,arguments)}function Dg(){return Dg=za(lr().mark(function e(t){return lr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(sf===void 0){r.next=2;break}return r.abrupt("return",v7(t));case 2:h7(t);case 3:case"end":return r.stop()}},e)})),Dg.apply(this,arguments)}const b7=e=>{const{componentCls:t,colorPrimary:n}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},y7=Dh("Wave",e=>[b7(e)]);function C7(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 hm(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&C7(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function S7(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return hm(t)?t:hm(n)?n:hm(r)?r:null}const cf="ant-wave-target";function pm(e){return Number.isNaN(e)?0:e}const $7=e=>{const{className:t,target:n,component:r}=e,o=f__namespace.useRef(null),[a,i]=f__namespace.useState(null),[l,s]=f__namespace.useState([]),[c,u]=f__namespace.useState(0),[d,m]=f__namespace.useState(0),[g,v]=f__namespace.useState(0),[h,p]=f__namespace.useState(0),[b,y]=f__namespace.useState(!1),C={left:c,top:d,width:g,height:h,borderRadius:l.map($=>`${$}px`).join(" ")};a&&(C["--wave-color"]=a);function w(){const $=getComputedStyle(n);i(S7(n));const S=$.position==="static",{borderLeftWidth:O,borderTopWidth:E}=$;u(S?n.offsetLeft:pm(-parseFloat(O))),m(S?n.offsetTop:pm(-parseFloat(E))),v(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:P,borderBottomLeftRadius:N,borderBottomRightRadius:L}=$;s([I,P,L,N].map(k=>pm(parseFloat(k))));}if(f__namespace.useEffect(()=>{if(n){const $=Et(()=>{w(),y(!0);});let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(w),S.observe(n)),()=>{Et.cancel($),S==null||S.disconnect();}}},[]),!b)return null;const x=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(cf));return f__namespace.createElement(Rr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,S)=>{var O;if(S.deadline||S.propertyName==="opacity"){const E=(O=o.current)===null||O===void 0?void 0:O.parentElement;p7(E).then(()=>{E==null||E.remove();});}return !1}},$=>{let{className:S}=$;return f__namespace.createElement("div",{ref:o,className:G(t,{"wave-quick":x},S),style:C})})},w7=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),Ux(f__namespace.createElement($7,Object.assign({},t,{target:e})),o);},x7=w7;function E7(e,t,n){const{wave:r}=f__namespace.useContext(nt),[,o,a]=In(),i=Kn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${cf}`)||u,{showEffect:m}=r||{};(m||x7)(d,{className:t,token:o,component:n,event:c,hashId:a});}),l=f__namespace.useRef();return c=>{Et.cancel(l.current),l.current=Et(()=>{i(c);});}}const O7=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=f.useContext(nt),a=f.useRef(null),i=o("wave"),[,l]=y7(i),s=E7(a,G(i,l),r);if(f.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const d=m=>{!Bh(m.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||s(m);};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0);}},[n]),!f.isValidElement(t))return t??null;const c=ia(t)?sr(t.ref,a):a;return ir(t,{ref:c})},Hs=O7;var I7=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 qx=f__namespace.createContext(void 0),P7=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(nt),{prefixCls:r,size:o,className:a}=e,i=I7(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=In();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=G(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},a,s);return f__namespace.createElement(qx.Provider,{value:o},f__namespace.createElement("div",Object.assign({},i,{className:u})))},M7=P7,Iy=/^[\u4e00-\u9fa5]{2}$/,zg=Iy.test.bind(Iy);function Jh(e){return e==="danger"?{danger:!0}:{type:e}}function Py(e){return typeof e=="string"}function bm(e){return e==="text"||e==="link"}function R7(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Py(e.type)&&zg(e.props.children)?ir(e,{children:e.props.children.split("").join(n)}):Py(e)?zg(e)?f.createElement("span",null,e.split("").join(n)):f.createElement("span",null,e):dx(e)?f.createElement("span",null,e):e}function _7(e,t){let n=!1;const r=[];return f.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const l=r.length-1,s=r[l];r[l]=`${s}${o}`;}else r.push(o);n=i;}),f.Children.map(r,o=>R7(o,t))}const N7=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=G(`${a}-icon`,n);return f.createElement("span",{ref:t,className:i,style:r},o)}),Xx=N7,My=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=G(`${n}-loading-icon`,r);return f.createElement(Xx,{prefixCls:n,className:i,style:o,ref:t},f.createElement(lf,{className:a}))}),ym=()=>({width:0,opacity:0,transform:"scale(0)"}),Cm=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),T7=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?f.createElement(My,{prefixCls:t,className:o,style:a}):f.createElement(Rr,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:ym,onAppearActive:Cm,onEnterStart:ym,onEnterActive:Cm,onLeaveStart:Cm,onLeaveActive:ym},(l,s)=>{let{className:c,style:u}=l;return f.createElement(My,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),u),ref:s,iconClassName:c})})},L7=T7,Ry=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),k7=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ry(`${t}-primary`,o),Ry(`${t}-danger`,a)]}},A7=k7,Yx=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Ot(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Zx=e=>{var t,n,r,o,a,i;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:qc(l),d=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:qc(s),m=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:qc(c);return {fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*m)/2-e.lineWidth,0)}},j7=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${B(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Jo(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},Ro=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),D7=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),z7=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),F7=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ss=(e,t,n,r,o,a,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Ro(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),ep=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},F7(e))}),Qx=e=>Object.assign({},ep(e)),Iu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Jx=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qx(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Ro(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ss(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Ro(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ss(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),ep(e))}),B7=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qx(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Ro(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),ss(e.componentCls,e.ghostBg,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({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Ro(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),ss(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ep(e))}),H7=e=>Object.assign(Object.assign({},Jx(e)),{borderStyle:"dashed"}),W7=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Ro(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Iu(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ro(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Iu(e))}),V7=e=>Object.assign(Object.assign(Object.assign({},Ro(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Iu(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Iu(e)),Ro(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),G7=e=>{const{componentCls:t}=e;return {[`${t}-default`]:Jx(e),[`${t}-primary`]:B7(e),[`${t}-dashed`]:H7(e),[`${t}-link`]:W7(e),[`${t}-text`]:V7(e),[`${t}-ghost`]:ss(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},tp=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,borderRadius:i,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,lineHeight:a,height:r,padding:`${B(c)} ${B(l)}`,borderRadius:i,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[s]:{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}`]:D7(e)},{[`${n}${n}-round${t}`]:z7(e)}]},K7=e=>tp(Ot(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight})),U7=e=>{const t=Ot(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return tp(t,`${e.componentCls}-sm`)},q7=e=>{const t=Ot(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return tp(t,`${e.componentCls}-lg`)},X7=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},Y7=Kt("Button",e=>{const t=Yx(e);return [j7(t),U7(t),K7(t),q7(t),X7(t),G7(t),A7(t)]},Zx,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Z7(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${i}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function Q7(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 uf(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({},Z7(e,r,t)),Q7(n,r,t))}}function J7(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function eW(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 tW(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},J7(e,t)),eW(e.componentCls,t))}}const nW=e=>{const{componentCls:t,calc:n}=e;return {[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${B(e.lineWidth)} * 2)`,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:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${B(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},rW=Ls(["Button","compact"],e=>{const t=Yx(e);return [uf(t),tW(t),nW(t)]},Zx);var oW=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 aW(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return {loading:!!e,delay:0}}const iW=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,type:i="default",danger:l,shape:s="default",size:c,styles:u,disabled:d,className:m,rootClassName:g,children:v,icon:h,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:C,style:w={}}=e,x=oW(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:$,autoInsertSpaceInButton:S,direction:O,button:E}=f.useContext(nt),I=$("btn",a),[P,N,L]=Y7(I),k=f.useContext(oo),A=d??k,T=f.useContext(qx),R=f.useMemo(()=>aW(o),[o]),[_,D]=f.useState(R.loading),[z,F]=f.useState(!1),V=sr(t,f.createRef()),X=f.Children.count(v)===1&&!h&&!bm(i);f.useEffect(()=>{let fe=null;R.delay>0?fe=setTimeout(()=>{fe=null,D(!0);},R.delay):D(R.loading);function Ee(){fe&&(clearTimeout(fe),fe=null);}return Ee},[R]),f.useEffect(()=>{if(!V||!V.current||S===!1)return;const fe=V.current.textContent;X&&zg(fe)?z||F(!0):z&&F(!1);},[V]);const q=fe=>{const{onClick:Ee}=e;if(_||A){fe.preventDefault();return}Ee==null||Ee(fe);},Q=S!==!1,{compactSize:ue,compactItemClassnames:Y}=Qi(I,O),ce={large:"lg",small:"sm",middle:void 0},Z=hr(fe=>{var Ee,$e;return ($e=(Ee=c??ue)!==null&&Ee!==void 0?Ee:T)!==null&&$e!==void 0?$e:fe}),ee=Z&&ce[Z]||"",ne=_?"loading":h,le=Yn(x,["navigate"]),se=G(I,N,L,{[`${I}-${s}`]:s!=="default"&&s,[`${I}-${i}`]:i,[`${I}-${ee}`]:ee,[`${I}-icon-only`]:!v&&v!==0&&!!ne,[`${I}-background-ghost`]:p&&!bm(i),[`${I}-loading`]:_,[`${I}-two-chinese-chars`]:z&&Q&&!_,[`${I}-block`]:b,[`${I}-dangerous`]:!!l,[`${I}-rtl`]:O==="rtl"},Y,m,g,E==null?void 0:E.className),K=Object.assign(Object.assign({},E==null?void 0:E.style),w),te=G(C==null?void 0:C.icon,(n=E==null?void 0:E.classNames)===null||n===void 0?void 0:n.icon),re=Object.assign(Object.assign({},(u==null?void 0:u.icon)||{}),((r=E==null?void 0:E.styles)===null||r===void 0?void 0:r.icon)||{}),ve=h&&!_?f.createElement(Xx,{prefixCls:I,className:te,style:re},h):f.createElement(L7,{existIcon:!!h,prefixCls:I,loading:!!_}),ae=v||v===0?_7(v,X&&Q):null;if(le.href!==void 0)return P(f.createElement("a",Object.assign({},le,{className:G(se,{[`${I}-disabled`]:A}),href:A?void 0:le.href,style:K,onClick:q,ref:V,tabIndex:A?-1:0}),ve,ae));let ie=f.createElement("button",Object.assign({},x,{type:y,className:se,style:K,onClick:q,disabled:A,ref:V}),ve,ae,!!Y&&f.createElement(rW,{key:"compact",prefixCls:I}));return bm(i)||(ie=f.createElement(Hs,{component:"Button",disabled:!!_},ie)),P(ie)},np=f.forwardRef(iW);np.Group=M7;np.__ANT_BUTTON=!0;const tn=np;function _y(e){return !!(e&&e.then)}const lW=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:u}=e,d=f__namespace.useRef(!1),m=f__namespace.useRef(null),[g,v]=wa(!1),h=function(){a==null||a.apply(void 0,arguments);};f__namespace.useEffect(()=>{let y=null;return i&&(y=setTimeout(()=>{var C;(C=m.current)===null||C===void 0||C.focus();})),()=>{y&&clearTimeout(y);}},[]);const p=y=>{_y(y)&&(v(!0),y.then(function(){v(!1,!0),h.apply(void 0,arguments),d.current=!1;},C=>{if(v(!1,!0),d.current=!1,!(s!=null&&s()))return Promise.reject(C)}));},b=y=>{if(d.current)return;if(d.current=!0,!u){h();return}let C;if(l){if(C=u(y),c&&!_y(C)){d.current=!1,h(y);return}}else if(u.length)C=u(a),d.current=!1;else if(C=u(),!C){h();return}p(C);};return f__namespace.createElement(tn,Object.assign({},Jh(t),{onClick:b,loading:g,prefixCls:r},o,{ref:m}),n)},rp=lW,Ws=f.createContext({}),{Provider:eE}=Ws,sW=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:l,onConfirm:s}=f.useContext(Ws);return o?f.createElement(rp,{isSilent:r,actionFn:l,close:function(){i==null||i.apply(void 0,arguments),s==null||s(!1);},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},Ny=sW,cW=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:l,onOk:s}=f.useContext(Ws);return f.createElement(rp,{isSilent:n,type:i||"primary",actionFn:s,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0);},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},a)},Ty=cW;var tE=f__namespace.createContext({}),uW=`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`,dW=`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`,fW="".concat(uW," ").concat(dW).split(/[\s\n]+/),mW="aria-",gW="data-";function Ly(e,t){return e.indexOf(t)===0}function La(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=U({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Ly(o,mW))||n.data&&Ly(o,gW)||n.attr&&fW.includes(o))&&(r[o]=e[o]);}),r}function ky(e,t,n){var r=t;return !r&&n&&(r="".concat(e,"-").concat(n)),r}function Ay(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 vW(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Ay(o),n.top+=Ay(o,!0),n}const hW=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return !n});var jy={width:0,height:0,overflow:"hidden",outline:"none"},pW=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,l=e.footer,s=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,m=e.bodyStyle,g=e.bodyProps,v=e.modalRender,h=e.onMouseDown,p=e.onMouseUp,b=e.holderRef,y=e.visible,C=e.forceRender,w=e.width,x=e.height,$=e.classNames,S=e.styles,O=f.useContext(tE),E=O.panel,I=aa(b,E),P=f.useRef(),N=f.useRef();f.useImperativeHandle(t,function(){return {focus:function(){var D;(D=P.current)===null||D===void 0||D.focus();},changeActive:function(D){var z=document,F=z.activeElement;D&&F===N.current?P.current.focus():!D&&F===P.current&&N.current.focus();}}});var L={};w!==void 0&&(L.width=w),x!==void 0&&(L.height=x);var k;l&&(k=f.createElement("div",{className:G("".concat(n,"-footer"),$==null?void 0:$.footer),style:U({},S==null?void 0:S.footer)},l));var A;a&&(A=f.createElement("div",{className:G("".concat(n,"-header"),$==null?void 0:$.header),style:U({},S==null?void 0:S.header)},f.createElement("div",{className:"".concat(n,"-title"),id:i},a)));var T;s&&(T=f.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:"".concat(n,"-close")},c||f.createElement("span",{className:"".concat(n,"-close-x")})));var R=f.createElement("div",{className:G("".concat(n,"-content"),$==null?void 0:$.content),style:S==null?void 0:S.content},T,A,f.createElement("div",xe({className:G("".concat(n,"-body"),$==null?void 0:$.body),style:U(U({},m),S==null?void 0:S.body)},g),d),k);return f.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:I,style:U(U({},o),L),className:G(n,r),onMouseDown:h,onMouseUp:p},f.createElement("div",{tabIndex:0,ref:P,style:jy,"aria-hidden":"true"}),f.createElement(hW,{shouldUpdate:y||C},v?v(R):R),f.createElement("div",{tabIndex:0,ref:N,style:jy,"aria-hidden":"true"}))}),nE=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,l=e.forceRender,s=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,m=e.mousePosition,g=f.useRef(),v=f__namespace.useState(),h=J(v,2),p=h[0],b=h[1],y={};p&&(y.transformOrigin=p);function C(){var w=vW(g.current);b(m?"".concat(m.x-w.left,"px ").concat(m.y-w.top,"px"):"");}return f__namespace.createElement(Rr,{visible:i,onVisibleChanged:d,onAppearPrepare:C,onEnterPrepare:C,forceRender:l,motionName:c,removeOnLeave:s,ref:g},function(w,x){var $=w.className,S=w.style;return f__namespace.createElement(pW,xe({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:x,style:U(U(U({},S),o),y),className:G(a,$)}))})});nE.displayName="Content";function bW(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,a=e.motionName,i=e.className;return f__namespace.createElement(Rr,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},function(l,s){var c=l.className,u=l.style;return f__namespace.createElement("div",xe({ref:s,style:U(U({},u),n),className:G("".concat(t,"-mask"),c,i)},o))})}function yW(e){var t=e.prefixCls,n=t===void 0?"rc-dialog":t,r=e.zIndex,o=e.visible,a=o===void 0?!1:o,i=e.keyboard,l=i===void 0?!0:i,s=e.focusTriggerAfterClose,c=s===void 0?!0:s,u=e.wrapStyle,d=e.wrapClassName,m=e.wrapProps,g=e.onClose,v=e.afterOpenChange,h=e.afterClose,p=e.transitionName,b=e.animation,y=e.closable,C=y===void 0?!0:y,w=e.mask,x=w===void 0?!0:w,$=e.maskTransitionName,S=e.maskAnimation,O=e.maskClosable,E=O===void 0?!0:O,I=e.maskStyle,P=e.maskProps,N=e.rootClassName,L=e.classNames,k=e.styles,A=f.useRef(),T=f.useRef(),R=f.useRef(),_=f__namespace.useState(a),D=J(_,2),z=D[0],F=D[1],W=bx();function V(){pg(T.current,document.activeElement)||(A.current=document.activeElement);}function X(){if(!pg(T.current,document.activeElement)){var le;(le=R.current)===null||le===void 0||le.focus();}}function q(le){if(le)X();else {if(F(!1),x&&A.current&&c){try{A.current.focus({preventScroll:!0});}catch{}A.current=null;}z&&(h==null||h());}v==null||v(le);}function Q(le){g==null||g(le);}var ue=f.useRef(!1),Y=f.useRef(),ce=function(){clearTimeout(Y.current),ue.current=!0;},Z=function(){Y.current=setTimeout(function(){ue.current=!1;});},ee=null;E&&(ee=function(se){ue.current?ue.current=!1:T.current===se.target&&Q(se);});function ne(le){if(l&&le.keyCode===de.ESC){le.stopPropagation(),Q(le);return}a&&le.keyCode===de.TAB&&R.current.changeActive(!le.shiftKey);}return f.useEffect(function(){a&&(F(!0),V());},[a]),f.useEffect(function(){return function(){clearTimeout(Y.current);}},[]),f__namespace.createElement("div",xe({className:G("".concat(n,"-root"),N)},La(e,{data:!0})),f__namespace.createElement(bW,{prefixCls:n,visible:x&&a,motionName:ky(n,$,S),style:U(U({zIndex:r},I),k==null?void 0:k.mask),maskProps:P,className:L==null?void 0:L.mask}),f__namespace.createElement("div",xe({tabIndex:-1,onKeyDown:ne,className:G("".concat(n,"-wrap"),d,L==null?void 0:L.wrapper),ref:T,onClick:ee,style:U(U(U({zIndex:r},u),k==null?void 0:k.wrapper),{},{display:z?null:"none"})},m),f__namespace.createElement(nE,xe({},e,{onMouseDown:ce,onMouseUp:Z,ref:R,closable:C,ariaId:W,prefixCls:n,visible:a&&z,onClose:Q,onVisibleChanged:q,motionName:ky(n,p,b)}))))}var rE=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,a=t.destroyOnClose,i=a===void 0?!1:a,l=t.afterClose,s=t.panelRef,c=f__namespace.useState(n),u=J(c,2),d=u[0],m=u[1],g=f__namespace.useMemo(function(){return {panel:s}},[s]);return f__namespace.useEffect(function(){n&&m(!0);},[n]),!o&&i&&!d?null:f__namespace.createElement(tE.Provider,{value:g},f__namespace.createElement(Fh,{open:n||o||d,autoDestroy:!1,getContainer:r,autoLock:n||d},f__namespace.createElement(yW,xe({},t,{destroyOnClose:i,afterClose:function(){l==null||l(),m(!1);}}))))};rE.displayName="Dialog";function CW(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function oE(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f.createElement(ko,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!CW(e,t,o))return [!1,null];const i=typeof t=="boolean"||t===void 0||t===null?r:t;return [!0,n?n(i):i]}const SW=()=>nr()&&window.document.documentElement;var pa="RC_FORM_INTERNAL_HOOKS",Qt=function(){Tn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},_i=f__namespace.createContext({getFieldValue:Qt,getFieldsValue:Qt,getFieldError:Qt,getFieldWarning:Qt,getFieldsError:Qt,isFieldsTouched:Qt,isFieldTouched:Qt,isFieldValidating:Qt,isFieldsValidating:Qt,resetFields:Qt,setFields:Qt,setFieldValue:Qt,setFieldsValue:Qt,validateFields:Qt,submit:Qt,getInternalHooks:function(){return Qt(),{dispatch:Qt,initEntityValue:Qt,registerField:Qt,useSubscribe:Qt,setInitialValues:Qt,destroyForm:Qt,setCallbacks:Qt,registerWatch:Qt,getFields:Qt,setValidateMessages:Qt,setPreserve:Qt,getInitialValue:Qt}}}),Pu=f__namespace.createContext(null);function Fg(e){return e==null?[]:Array.isArray(e)?e:[e]}function $W(e){return e&&!!e._init}function ba(){return ba=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},ba.apply(this,arguments)}function wW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cs(e,t);}function Bg(e){return Bg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bg(e)}function cs(e,t){return cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},cs(e,t)}function xW(){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 Yc(e,t,n){return xW()?Yc=Reflect.construct.bind():Yc=function(o,a,i){var l=[null];l.push.apply(l,a);var s=Function.bind.apply(o,l),c=new s;return i&&cs(c,i.prototype),c},Yc.apply(null,arguments)}function EW(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Hg(e){var t=typeof Map=="function"?new Map:void 0;return Hg=function(r){if(r===null||!EW(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 Yc(r,arguments,Bg(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),cs(o,r)},Hg(e)}var OW=/%[sdj%]/g,IW=function(){};function Wg(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 xr(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,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(OW,function(l){if(l==="%%")return "%";if(o>=a)return l;switch(l){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 l}});return i}return e}function PW(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function kn(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||PW(t)&&typeof e=="string"&&!e)}function MW(e,t,n){var r=[],o=0,a=e.length;function i(l){r.push.apply(r,l||[]),o++,o===a&&n(r);}e.forEach(function(l){t(l,i);});}function Dy(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var l=r;r=r+1,l<o?t(e[l],a):n([]);}a([]);}function RW(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[]);}),t}var zy=function(e){wW(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}(Hg(Error));function _W(e,t,n,r,o){if(t.first){var a=new Promise(function(m,g){var v=function(b){return r(b),b.length?g(new zy(b,Wg(b))):m(o)},h=RW(e);Dy(h,n,v);});return a.catch(function(m){return m}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],d=new Promise(function(m,g){var v=function(p){if(u.push.apply(u,p),c++,c===s)return r(u),u.length?g(new zy(u,Wg(u))):m(o)};l.length||(r(u),m(o)),l.forEach(function(h){var p=e[h];i.indexOf(h)!==-1?Dy(p,n,v):MW(p,n,v);});});return d.catch(function(m){return m}),d}function NW(e){return !!(e&&e.message!==void 0)}function TW(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]];}return n}function Fy(e,t){return function(n){var r;return e.fullFields?r=TW(t,e.fullFields):r=t[n.field||e.fullField],NW(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 By(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]=ba({},e[n],r):e[n]=r;}}return e}var aE=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||kn(n,i||t.type))&&o.push(xr(a.messages.required,t.fullField));},LW=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(xr(a.messages.whitespace,t.fullField));},Rc,kW=function(){if(Rc)return Rc;var e="[a-fA-F\\d:]",t=function(w){return w&&w.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(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),s=function(w){return w&&w.exact?a:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+o+t(w)+")","g")};s.v4=function(C){return C&&C.exact?i:new RegExp(""+t(C)+n+t(C),"g")},s.v6=function(C){return C&&C.exact?l:new RegExp(""+t(C)+o+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=s.v4().source,m=s.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+m+"|"+g+v+h+")"+p+b;return Rc=new RegExp("(?:^"+y+"$)","i"),Rc},Hy={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},Rl={integer:function(t){return Rl.number(t)&&parseInt(t,10)===t},float:function(t){return Rl.number(t)&&!Rl.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"&&!Rl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Hy.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(kW())},hex:function(t){return typeof t=="string"&&!!t.match(Hy.hex)}},AW=function(t,n,r,o,a){if(t.required&&n===void 0){aE(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?Rl[l](n)||o.push(xr(a.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(xr(a.messages.types[l],t.fullField,t.type));},jW=function(t,n,r,o,a){var i=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,m=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(m?d="number":g?d="string":v&&(d="array"),!d)return !1;v&&(u=n.length),g&&(u=n.replace(c,"_").length),i?u!==t.len&&o.push(xr(a.messages[d].len,t.fullField,t.len)):l&&!s&&u<t.min?o.push(xr(a.messages[d].min,t.fullField,t.min)):s&&!l&&u>t.max?o.push(xr(a.messages[d].max,t.fullField,t.max)):l&&s&&(u<t.min||u>t.max)&&o.push(xr(a.messages[d].range,t.fullField,t.min,t.max));},Ya="enum",DW=function(t,n,r,o,a){t[Ya]=Array.isArray(t[Ya])?t[Ya]:[],t[Ya].indexOf(n)===-1&&o.push(xr(a.messages[Ya],t.fullField,t[Ya].join(", ")));},zW=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(xr(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(xr(a.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},_t={required:aE,whitespace:LW,type:AW,range:jW,enum:DW,pattern:zW},FW=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kn(n,"string")&&!t.required)return r();_t.required(t,n,o,i,a,"string"),kn(n,"string")||(_t.type(t,n,o,i,a),_t.range(t,n,o,i,a),_t.pattern(t,n,o,i,a),t.whitespace===!0&&_t.whitespace(t,n,o,i,a));}r(i);},BW=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kn(n)&&!t.required)return r();_t.required(t,n,o,i,a),n!==void 0&&_t.type(t,n,o,i,a);}r(i);},HW=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),kn(n)&&!t.required)return r();_t.required(t,n,o,i,a),n!==void 0&&(_t.type(t,n,o,i,a),_t.range(t,n,o,i,a));}r(i);},WW=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kn(n)&&!t.required)return r();_t.required(t,n,o,i,a),n!==void 0&&_t.type(t,n,o,i,a);}r(i);},VW=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kn(n)&&!t.required)return r();_t.required(t,n,o,i,a),kn(n)||_t.type(t,n,o,i,a);}r(i);},GW=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kn(n)&&!t.required)return r();_t.required(t,n,o,i,a),n!==void 0&&(_t.type(t,n,o,i,a),_t.range(t,n,o,i,a));}r(i);},KW=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kn(n)&&!t.required)return r();_t.required(t,n,o,i,a),n!==void 0&&(_t.type(t,n,o,i,a),_t.range(t,n,o,i,a));}r(i);},UW=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();_t.required(t,n,o,i,a,"array"),n!=null&&(_t.type(t,n,o,i,a),_t.range(t,n,o,i,a));}r(i);},qW=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kn(n)&&!t.required)return r();_t.required(t,n,o,i,a),n!==void 0&&_t.type(t,n,o,i,a);}r(i);},XW="enum",YW=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kn(n)&&!t.required)return r();_t.required(t,n,o,i,a),n!==void 0&&_t[XW](t,n,o,i,a);}r(i);},ZW=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kn(n,"string")&&!t.required)return r();_t.required(t,n,o,i,a),kn(n,"string")||_t.pattern(t,n,o,i,a);}r(i);},QW=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kn(n,"date")&&!t.required)return r();if(_t.required(t,n,o,i,a),!kn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),_t.type(t,s,o,i,a),s&&_t.range(t,s.getTime(),o,i,a);}}r(i);},JW=function(t,n,r,o,a){var i=[],l=Array.isArray(n)?"array":typeof n;_t.required(t,n,o,i,a,l),r(i);},Sm=function(t,n,r,o,a){var i=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(kn(n,i)&&!t.required)return r();_t.required(t,n,o,l,a,i),kn(n,i)||_t.type(t,n,o,l,a);}r(l);},eV=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(kn(n)&&!t.required)return r();_t.required(t,n,o,i,a);}r(i);},zl={string:FW,method:BW,number:HW,boolean:WW,regexp:VW,integer:GW,float:KW,array:UW,object:qW,enum:YW,pattern:ZW,date:QW,url:Sm,hex:Sm,email:Sm,required:JW,any:eV};function Vg(){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 Gg=Vg(),Vs=function(){function e(n){this.rules=null,this._messages=Gg,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(a){var i=r[a];o.rules[a]=Array.isArray(i)?i:[i];});},t.messages=function(r){return r&&(this._messages=By(Vg(),r)),this._messages},t.validate=function(r,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var l=r,s=o,c=a;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function u(h){var p=[],b={};function y(w){if(Array.isArray(w)){var x;p=(x=p).concat.apply(x,w);}else p.push(w);}for(var C=0;C<h.length;C++)y(h[C]);p.length?(b=Wg(p),c(p,b)):c(null,l);}if(s.messages){var d=this.messages();d===Gg&&(d=Vg()),By(d,s.messages),s.messages=d;}else s.messages=this.messages();var m={},g=s.keys||Object.keys(this.rules);g.forEach(function(h){var p=i.rules[h],b=l[h];p.forEach(function(y){var C=y;typeof C.transform=="function"&&(l===r&&(l=ba({},l)),b=l[h]=C.transform(b)),typeof C=="function"?C={validator:C}:C=ba({},C),C.validator=i.getValidationMethod(C),C.validator&&(C.field=h,C.fullField=C.fullField||h,C.type=i.getType(C),m[h]=m[h]||[],m[h].push({rule:C,value:b,source:l,field:h}));});});var v={};return _W(m,s,function(h,p){var b=h.rule,y=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");y=y&&(b.required||!b.required&&h.value),b.field=h.field;function C($,S){return ba({},S,{fullField:b.fullField+"."+$,fullFields:b.fullFields?[].concat(b.fullFields,[$]):[$]})}function w($){$===void 0&&($=[]);var S=Array.isArray($)?$:[$];!s.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&b.message!==void 0&&(S=[].concat(b.message));var O=S.map(Fy(b,l));if(s.first&&O.length)return v[b.field]=1,p(O);if(!y)p(O);else {if(b.required&&!h.value)return b.message!==void 0?O=[].concat(b.message).map(Fy(b,l)):s.error&&(O=[s.error(b,xr(s.messages.required,b.field))]),p(O);var E={};b.defaultField&&Object.keys(h.value).map(function(N){E[N]=b.defaultField;}),E=ba({},E,h.rule.fields);var I={};Object.keys(E).forEach(function(N){var L=E[N],k=Array.isArray(L)?L:[L];I[N]=k.map(C.bind(null,N));});var P=new e(I);P.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),P.validate(h.value,h.rule.options||s,function(N){var L=[];O&&O.length&&L.push.apply(L,O),N&&N.length&&L.push.apply(L,N),p(L.length?L:null);});}}var x;if(b.asyncValidator)x=b.asyncValidator(b,h.value,w,h.source,s);else if(b.validator){try{x=b.validator(b,h.value,w,h.source,s);}catch($){console.error==null||console.error($),s.suppressValidatorError||setTimeout(function(){throw $},0),w($.message);}x===!0?w():x===!1?w(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):x instanceof Array?w(x):x instanceof Error&&w(x.message);}x&&x.then&&x.then(function(){return w()},function($){return w($)});},function(h){u(h);},l)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!zl.hasOwnProperty(r.type))throw new Error(xr("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),a=o.indexOf("message");return a!==-1&&o.splice(a,1),o.length===1&&o[0]==="required"?zl.required:zl[this.getType(r)]||void 0},e}();Vs.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");zl[t]=n;};Vs.warning=IW;Vs.messages=Gg;Vs.validators=zl;var Cr="'${name}' is not a valid ${type}",iE={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:Cr,method:Cr,array:Cr,object:Cr,number:Cr,date:Cr,boolean:Cr,integer:Cr,float:Cr,regexp:Cr,email:Cr,url:Cr,hex:Cr},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}"}},Wy=Vs;function tV(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Vy="CODE_LOGIC_ERROR";function Kg(e,t,n,r,o){return Ug.apply(this,arguments)}function Ug(){return Ug=za(lr().mark(function e(t,n,r,o,a){var i,l,s,c,u,d,m,g,v;return lr().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return i=U({},r),delete i.ruleIndex,Wy.warning=function(){},i.validator&&(l=i.validator,i.validator=function(){try{return l.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Vy)}}),s=null,i&&i.type==="array"&&i.defaultField&&(s=i.defaultField,delete i.defaultField),c=new Wy(H({},t,[i])),u=mi(iE,o.validateMessages),c.messages(u),d=[],p.prev=10,p.next=13,Promise.resolve(c.validate(H({},t,n),U({},o)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(d=p.t0.errors.map(function(b,y){var C=b.message,w=C===Vy?u.default:C;return f__namespace.isValidElement(w)?f__namespace.cloneElement(w,{key:"error_".concat(y)}):w}));case 18:if(!(!d.length&&s)){p.next=23;break}return p.next=21,Promise.all(n.map(function(b,y){return Kg("".concat(t,".").concat(y),b,s,o,a)}));case 21:return m=p.sent,p.abrupt("return",m.reduce(function(b,y){return [].concat(Ge(b),Ge(y))},[]));case 23:return g=U(U({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),v=d.map(function(b){return typeof b=="string"?tV(b,g):b}),p.abrupt("return",v);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),Ug.apply(this,arguments)}function nV(e,t,n,r,o,a){var i=e.join("."),l=n.map(function(u,d){var m=u.validator,g=U(U({},u),{},{ruleIndex:d});return m&&(g.validator=function(v,h,p){var b=!1,y=function(){for(var x=arguments.length,$=new Array(x),S=0;S<x;S++)$[S]=arguments[S];Promise.resolve().then(function(){Tn(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,$);});},C=m(v,h,y);b=C&&typeof C.then=="function"&&typeof C.catch=="function",Tn(b,"`callback` is deprecated. Please return a promise instead."),b&&C.then(function(){p();}).catch(function(w){p(w||" ");});}),g}).sort(function(u,d){var m=u.warningOnly,g=u.ruleIndex,v=d.warningOnly,h=d.ruleIndex;return !!m==!!v?g-h:m?1:-1}),s;if(o===!0)s=new Promise(function(){var u=za(lr().mark(function d(m,g){var v,h,p;return lr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:v=0;case 1:if(!(v<l.length)){y.next=12;break}return h=l[v],y.next=5,Kg(i,t,h,r,a);case 5:if(p=y.sent,!p.length){y.next=9;break}return g([{errors:p,rule:h}]),y.abrupt("return");case 9:v+=1,y.next=1;break;case 12:m([]);case 13:case"end":return y.stop()}},d)}));return function(d,m){return u.apply(this,arguments)}}());else {var c=l.map(function(u){return Kg(i,t,u,r,a).then(function(d){return {errors:d,rule:u}})});s=(o?oV(c):rV(c)).then(function(u){return Promise.reject(u)});}return s.catch(function(u){return u}),s}function rV(e){return qg.apply(this,arguments)}function qg(){return qg=za(lr().mark(function e(t){return lr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,Ge(o));return i}));case 1:case"end":return r.stop()}},e)})),qg.apply(this,arguments)}function oV(e){return Xg.apply(this,arguments)}function Xg(){return Xg=za(lr().mark(function e(t){var n;return lr().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(l){l.errors.length&&a([l]),n+=1,n===t.length&&a([]);});});}));case 2:case"end":return o.stop()}},e)})),Xg.apply(this,arguments)}function $n(e){return Fg(e)}function Gy(e,t){var n={};return t.forEach(function(r){var o=fo(e,r);n=Yr(n,r,o);}),n}function hi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return lE(t,r,n)})}function lE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return !e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function aV(e,t){if(e===t)return !0;if(!e&&t||e&&!t||!e||!t||ht(e)!=="object"||ht(t)!=="object")return !1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ge(o).every(function(a){var i=e[a],l=t[a];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function iV(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ht(t.target)==="object"&&e in t.target?t.target[e]:t}function Ky(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Ge(e.slice(0,n)),[o],Ge(e.slice(n,t)),Ge(e.slice(t+1,r))):a<0?[].concat(Ge(e.slice(0,t)),Ge(e.slice(t+1,n+1)),[o],Ge(e.slice(n+1,r))):e}var lV=["name"],Tr=[];function Uy(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var op=function(e){Yi(n,e);var t=Zi(n);function n(r){var o;if(cr(this,n),o=t.call(this,r),H(Dt(o),"state",{resetCount:0}),H(Dt(o),"cancelRegisterFunc",null),H(Dt(o),"mounted",!1),H(Dt(o),"touched",!1),H(Dt(o),"dirty",!1),H(Dt(o),"validatePromise",void 0),H(Dt(o),"prevValidating",void 0),H(Dt(o),"errors",Tr),H(Dt(o),"warnings",Tr),H(Dt(o),"cancelRegister",function(){var s=o.props,c=s.preserve,u=s.isListField,d=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,$n(d)),o.cancelRegisterFunc=null;}),H(Dt(o),"getNamePath",function(){var s=o.props,c=s.name,u=s.fieldContext,d=u.prefixName,m=d===void 0?[]:d;return c!==void 0?[].concat(Ge(m),Ge(c)):[]}),H(Dt(o),"getRules",function(){var s=o.props,c=s.rules,u=c===void 0?[]:c,d=s.fieldContext;return u.map(function(m){return typeof m=="function"?m(d):m})}),H(Dt(o),"refresh",function(){o.mounted&&o.setState(function(s){var c=s.resetCount;return {resetCount:c+1}});}),H(Dt(o),"metaCache",null),H(Dt(o),"triggerMetaEvent",function(s){var c=o.props.onMetaChange;if(c){var u=U(U({},o.getMeta()),{},{destroy:s});_s(o.metaCache,u)||c(u),o.metaCache=u;}else o.metaCache=null;}),H(Dt(o),"onStoreChange",function(s,c,u){var d=o.props,m=d.shouldUpdate,g=d.dependencies,v=g===void 0?[]:g,h=d.onReset,p=u.store,b=o.getNamePath(),y=o.getValue(s),C=o.getValue(p),w=c&&hi(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&y!==C&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Tr,o.warnings=Tr,o.triggerMetaEvent()),u.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Tr,o.warnings=Tr,o.triggerMetaEvent(),h==null||h(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{var x=u.data;if(w){"touched"in x&&(o.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(o.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(o.errors=x.errors||Tr),"warnings"in x&&(o.warnings=x.warnings||Tr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&hi(c,b,!0)){o.reRender();return}if(m&&!b.length&&Uy(m,s,p,y,C,u)){o.reRender();return}break}case"dependenciesUpdate":{var $=v.map($n);if($.some(function(S){return hi(u.relatedFields,S)})){o.reRender();return}break}default:if(w||(!v.length||b.length||m)&&Uy(m,s,p,y,C,u)){o.reRender();return}break}m===!0&&o.reRender();}),H(Dt(o),"validateRules",function(s){var c=o.getNamePath(),u=o.getValue(),d=s||{},m=d.triggerName,g=d.validateOnly,v=g===void 0?!1:g,h=Promise.resolve().then(za(lr().mark(function p(){var b,y,C,w,x,$,S;return lr().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(o.mounted){E.next=2;break}return E.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,C=y===void 0?!1:y,w=b.messageVariables,x=b.validateDebounce,$=o.getRules(),m&&($=$.filter(function(I){return I}).filter(function(I){var P=I.validateTrigger;if(!P)return !0;var N=Fg(P);return N.includes(m)})),!(x&&m)){E.next=10;break}return E.next=8,new Promise(function(I){setTimeout(I,x);});case 8:if(o.validatePromise===h){E.next=10;break}return E.abrupt("return",[]);case 10:return S=nV(c,u,$,s,C,w),S.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tr;if(o.validatePromise===h){var P;o.validatePromise=null;var N=[],L=[];(P=I.forEach)===null||P===void 0||P.call(I,function(k){var A=k.rule.warningOnly,T=k.errors,R=T===void 0?Tr:T;A?L.push.apply(L,Ge(R)):N.push.apply(N,Ge(R));}),o.errors=N,o.warnings=L,o.triggerMetaEvent(),o.reRender();}}),E.abrupt("return",S);case 13:case"end":return E.stop()}},p)})));return v||(o.validatePromise=h,o.dirty=!0,o.errors=Tr,o.warnings=Tr,o.triggerMetaEvent(),o.reRender()),h}),H(Dt(o),"isFieldValidating",function(){return !!o.validatePromise}),H(Dt(o),"isFieldTouched",function(){return o.touched}),H(Dt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return !0;var s=o.props.fieldContext,c=s.getInternalHooks(pa),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),H(Dt(o),"getErrors",function(){return o.errors}),H(Dt(o),"getWarnings",function(){return o.warnings}),H(Dt(o),"isListField",function(){return o.props.isListField}),H(Dt(o),"isList",function(){return o.props.isList}),H(Dt(o),"isPreserve",function(){return o.props.preserve}),H(Dt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s}),H(Dt(o),"getOnlyChild",function(s){if(typeof s=="function"){var c=o.getMeta();return U(U({},o.getOnlyChild(s(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=Ir(s);return u.length!==1||!f__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),H(Dt(o),"getValue",function(s){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return fo(s||c(!0),u)}),H(Dt(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.trigger,d=c.validateTrigger,m=c.getValueFromEvent,g=c.normalize,v=c.valuePropName,h=c.getValueProps,p=c.fieldContext,b=d!==void 0?d:p.validateTrigger,y=o.getNamePath(),C=p.getInternalHooks,w=p.getFieldsValue,x=C(pa),$=x.dispatch,S=o.getValue(),O=h||function(N){return H({},v,N)},E=s[u],I=U(U({},s),O(S));I[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var N,L=arguments.length,k=new Array(L),A=0;A<L;A++)k[A]=arguments[A];m?N=m.apply(void 0,k):N=iV.apply(void 0,[v].concat(k)),g&&(N=g(N,S,w(!0))),$({type:"updateValue",namePath:y,value:N}),E&&E.apply(void 0,k);};var P=Fg(b||[]);return P.forEach(function(N){var L=I[N];I[N]=function(){L&&L.apply(void 0,arguments);var k=o.props.rules;k&&k.length&&$({type:"validateField",namePath:y,triggerName:N});};}),I}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(pa),l=i.initEntityValue;l(Dt(o));}return o}return ur(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var l=i.getInternalHooks,s=l(pa),c=s.registerField;this.cancelRegisterFunc=c(this);}a===!0&&this.reRender();}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1;}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate();}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),l=i.child,s=i.isFunction,c;return s?c=l:f__namespace.isValidElement(l)?c=f__namespace.cloneElement(l,this.getControlled(l.props)):(Tn(!l,"`children` of Field is not validate ReactElement."),c=l),f__namespace.createElement(f__namespace.Fragment,{key:o},c)}}]),n}(f__namespace.Component);H(op,"contextType",_i);H(op,"defaultProps",{trigger:"onChange",valuePropName:"value"});function sE(e){var t=e.name,n=dt(e,lV),r=f__namespace.useContext(_i),o=f__namespace.useContext(Pu),a=t!==void 0?$n(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),f__namespace.createElement(op,xe({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function sV(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,l=f__namespace.useContext(_i),s=f__namespace.useContext(Pu),c=f__namespace.useRef({keys:[],id:0}),u=c.current,d=f__namespace.useMemo(function(){var h=$n(l.prefixName)||[];return [].concat(Ge(h),Ge($n(t)))},[l.prefixName,t]),m=f__namespace.useMemo(function(){return U(U({},l),{},{prefixName:d})},[l,d]),g=f__namespace.useMemo(function(){return {getKey:function(p){var b=d.length,y=p[b];return [u.keys[y],p.slice(b+1)]}}},[d]);if(typeof r!="function")return Tn(!1,"Form.List only accepts function as children."),null;var v=function(p,b,y){var C=y.source;return C==="internal"?!1:p!==b};return f__namespace.createElement(Pu.Provider,{value:g},f__namespace.createElement(_i.Provider,{value:m},f__namespace.createElement(sE,{name:[],shouldUpdate:v,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!s},function(h,p){var b=h.value,y=b===void 0?[]:b,C=h.onChange,w=l.getFieldValue,x=function(){var E=w(d||[]);return E||[]},$={add:function(E,I){var P=x();I>=0&&I<=P.length?(u.keys=[].concat(Ge(u.keys.slice(0,I)),[u.id],Ge(u.keys.slice(I))),C([].concat(Ge(P.slice(0,I)),[E],Ge(P.slice(I))))):(u.keys=[].concat(Ge(u.keys),[u.id]),C([].concat(Ge(P),[E]))),u.id+=1;},remove:function(E){var I=x(),P=new Set(Array.isArray(E)?E:[E]);P.size<=0||(u.keys=u.keys.filter(function(N,L){return !P.has(L)}),C(I.filter(function(N,L){return !P.has(L)})));},move:function(E,I){if(E!==I){var P=x();E<0||E>=P.length||I<0||I>=P.length||(u.keys=Ky(u.keys,E,I),C(Ky(P,E,I)));}}},S=y||[];return Array.isArray(S)||(S=[]),r(S.map(function(O,E){var I=u.keys[E];return I===void 0&&(u.keys[E]=u.id,I=u.keys[E],u.id+=1),{name:E,key:I,isListField:!0}}),$,p)})))}function cV(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,l){i.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&a(r),o(r));});});}):Promise.resolve([])}var cE="__@field_split__";function $m(e){return e.map(function(t){return "".concat(ht(t),":").concat(t)}).join(cE)}var Za=function(){function e(){cr(this,e),H(this,"kvs",new Map);}return ur(e,[{key:"set",value:function(n,r){this.kvs.set($m(n),r);}},{key:"get",value:function(n){return this.kvs.get($m(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n);}},{key:"delete",value:function(n){this.kvs.delete($m(n));}},{key:"map",value:function(n){return Ge(this.kvs.entries()).map(function(r){var o=J(r,2),a=o[0],i=o[1],l=a.split(cE);return n({key:l.map(function(s){var c=s.match(/^([^:]*):(.*)$/),u=J(c,3),d=u[1],m=u[2];return d==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),uV=["name"],dV=ur(function e(t){var n=this;cr(this,e),H(this,"formHooked",!1),H(this,"forceRootUpdate",void 0),H(this,"subscribable",!0),H(this,"store",{}),H(this,"fieldEntities",[]),H(this,"initialValues",{}),H(this,"callbacks",{}),H(this,"validateMessages",null),H(this,"preserve",null),H(this,"lastValidatePromise",null),H(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}}),H(this,"getInternalHooks",function(r){return r===pa?(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}):(Tn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),H(this,"useSubscribe",function(r){n.subscribable=r;}),H(this,"prevWithoutPreserves",null),H(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=mi(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(l){var s=l.key;i=Yr(i,s,fo(r,s));}),n.prevWithoutPreserves=null,n.updateStore(i);}}),H(this,"destroyForm",function(){var r=new Za;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0);}),n.prevWithoutPreserves=r;}),H(this,"getInitialValue",function(r){var o=fo(n.initialValues,r);return r.length?mi(o):o}),H(this,"setCallbacks",function(r){n.callbacks=r;}),H(this,"setValidateMessages",function(r){n.validateMessages=r;}),H(this,"setPreserve",function(r){n.preserve=r;}),H(this,"watchList",[]),H(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r});}}),H(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r);});}}),H(this,"timeoutId",null),H(this,"warningUnhooked",function(){}),H(this,"updateStore",function(r){n.store=r;}),H(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}),H(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Za;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a);}),o}),H(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=$n(a);return o.get(i)||{INVALIDATE_NAME_PATH:$n(a)}})}),H(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,l;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&ht(r)==="object"&&(l=r.strict,i=r.filter),a===!0&&!i)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return s.forEach(function(u){var d,m,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(l){var v,h;if((v=(h=u).isList)!==null&&v!==void 0&&v.call(h))return}else if(!a&&(d=(m=u).isListField)!==null&&d!==void 0&&d.call(m))return;if(!i)c.push(g);else {var p="getMeta"in u?u.getMeta():null;i(p)&&c.push(g);}}),Gy(n.store,c.map($n))}),H(this,"getFieldValue",function(r){n.warningUnhooked();var o=$n(r);return fo(n.store,o)}),H(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:$n(r[i]),errors:[],warnings:[]}})}),H(this,"getFieldError",function(r){n.warningUnhooked();var o=$n(r),a=n.getFieldsError([o])[0];return a.errors}),H(this,"getFieldWarning",function(r){n.warningUnhooked();var o=$n(r),a=n.getFieldsError([o])[0];return a.warnings}),H(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],l=o[1],s,c=!1;o.length===0?s=null:o.length===1?Array.isArray(i)?(s=i.map($n),c=!1):(s=null,c=i):(s=i.map($n),c=l);var u=n.getFieldEntities(!0),d=function(p){return p.isFieldTouched()};if(!s)return c?u.every(d):u.some(d);var m=new Za;s.forEach(function(h){m.set(h,[]);}),u.forEach(function(h){var p=h.getNamePath();s.forEach(function(b){b.every(function(y,C){return p[C]===y})&&m.update(b,function(y){return [].concat(Ge(y),[h])});});});var g=function(p){return p.some(d)},v=m.map(function(h){var p=h.value;return p});return c?v.every(g):v.some(g)}),H(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),H(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map($n);return o.some(function(i){var l=i.getNamePath();return hi(a,l)&&i.isFieldValidating()})}),H(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),H(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Za,a=n.getFieldEntities(!0);a.forEach(function(s){var c=s.props.initialValue,u=s.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:s,value:c}),o.set(u,d);}});var i=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var m=u.getNamePath(),g=n.getInitialValue(m);if(g!==void 0)Tn(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else {var v=o.get(m);if(v&&v.size>1)Tn(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var h=n.getFieldValue(m),p=u.isListField();!p&&(!r.skipExist||h===void 0)&&n.updateStore(Yr(n.store,m,Ge(v)[0].value));}}}});},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var c=o.get(s);if(c){var u;(u=l).push.apply(u,Ge(Ge(c).map(function(d){return d.entity})));}})):l=a,i(l);}),H(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(mi(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map($n);a.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(Yr(n.store,i,l));}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a);}),H(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var l=i.name,s=dt(i,uV),c=$n(l);a.push(c),"value"in s&&n.updateStore(Yr(n.store,c,s.value)),n.notifyObservers(o,[c],{type:"setField",data:i});}),n.notifyWatch(a);}),H(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),l=a.getMeta(),s=U(U({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),H(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=fo(n.store,a);i===void 0&&n.updateStore(Yr(n.store,a,o));}}),H(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),H(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"});}return function(i,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(l)&&(!i||s.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(d){return !lE(d.getNamePath(),o)})){var u=n.store;n.updateStore(Yr(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o);}}n.notifyWatch([o]);}}),H(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),H(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=U(U({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,i);});}else n.forceRootUpdate();}),H(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Ge(a))}),a}),H(this,"updateValue",function(r,o){var a=$n(r),i=n.store;n.updateStore(Yr(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var l=n.triggerDependenciesUpdate(i,a),s=n.callbacks.onValuesChange;if(s){var c=Gy(n.store,[a]);s(c,n.getFieldsValue());}n.triggerOnFieldsChange([a].concat(Ge(l)));}),H(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=mi(n.store,r);n.updateStore(a);}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch();}),H(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}]);}),H(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new Za;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(u){var d=$n(u);i.update(d,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(s),m});});});var l=function s(c){var u=i.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var m=d.getNamePath();d.isFieldDirty()&&m.length&&(a.push(m),s(m));}});};return l(r),a}),H(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var l=new Za;o.forEach(function(c){var u=c.name,d=c.errors;l.set(u,d);}),i.forEach(function(c){c.errors=l.get(c.name)||c.errors;});}var s=i.filter(function(c){var u=c.name;return hi(r,u)});s.length&&a(s,i);}}),H(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var l=!!a,s=l?a.map($n):[],c=[],u=String(Date.now()),d=new Set,m=i||{},g=m.recursive,v=m.dirty;n.getFieldEntities(!0).forEach(function(y){if(l||s.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(v&&!y.isFieldDirty())){var C=y.getNamePath();if(d.add(C.join(u)),!l||hi(s,C,g)){var w=y.validateRules(U({validateMessages:U(U({},iE),n.validateMessages)},i));c.push(w.then(function(){return {name:C,errors:[],warnings:[]}}).catch(function(x){var $,S=[],O=[];return ($=x.forEach)===null||$===void 0||$.call(x,function(E){var I=E.rule.warningOnly,P=E.errors;I?O.push.apply(O,Ge(P)):S.push.apply(S,Ge(P));}),S.length?Promise.reject({name:C,errors:S,warnings:O}):{name:C,errors:S,warnings:O}}));}}});var h=cV(c);n.lastValidatePromise=h,h.catch(function(y){return y}).then(function(y){var C=y.map(function(w){var x=w.name;return x});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,y);});var p=h.then(function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(y){var C=y.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:C,outOfDate:n.lastValidatePromise!==h})});p.catch(function(y){return y});var b=s.filter(function(y){return d.has(y.join(u))});return n.triggerOnFieldsChange(b),p}),H(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r);}catch(a){console.error(a);}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r);});}),this.forceRootUpdate=t;});function uE(e){var t=f__namespace.useRef(),n=f__namespace.useState({}),r=J(n,2),o=r[1];if(!t.current)if(e)t.current=e;else {var a=function(){o({});},i=new dV(a);t.current=i.getForm();}return [t.current]}var Yg=f__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),fV=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=f__namespace.useContext(Yg),l=f__namespace.useRef({});return f__namespace.createElement(Yg.Provider,{value:U(U({},i),{},{validateMessages:U(U({},i.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:l.current}),i.triggerFormChange(c,u);},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:l.current}),i.triggerFormFinish(c,u);},registerForm:function(c,u){c&&(l.current=U(U({},l.current),{},H({},c,u))),i.registerForm(c,u);},unregisterForm:function(c){var u=U({},l.current);delete u[c],l.current=u,i.unregisterForm(c);}})},a)},mV=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],gV=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,l=t.preserve,s=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,m=t.validateTrigger,g=m===void 0?"onChange":m,v=t.onValuesChange,h=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,y=dt(t,mV),C=f__namespace.useContext(Yg),w=uE(i),x=J(w,1),$=x[0],S=$.getInternalHooks(pa),O=S.useSubscribe,E=S.setInitialValues,I=S.setCallbacks,P=S.setValidateMessages,N=S.setPreserve,L=S.destroyForm;f__namespace.useImperativeHandle(n,function(){return $}),f__namespace.useEffect(function(){return C.registerForm(r,$),function(){C.unregisterForm(r);}},[C,$,r]),P(U(U({},C.validateMessages),d)),I({onValuesChange:v,onFieldsChange:function(W){if(C.triggerFormChange(r,W),h){for(var V=arguments.length,X=new Array(V>1?V-1:0),q=1;q<V;q++)X[q-1]=arguments[q];h.apply(void 0,[W].concat(X));}},onFinish:function(W){C.triggerFormFinish(r,W),p&&p(W);},onFinishFailed:b}),N(l);var k=f__namespace.useRef(null);E(o,!k.current),k.current||(k.current=!0),f__namespace.useEffect(function(){return L},[]);var A,T=typeof s=="function";if(T){var R=$.getFieldsValue(!0);A=s(R,$);}else A=s;O(!T);var _=f__namespace.useRef();f__namespace.useEffect(function(){aV(_.current||[],a||[])||$.setFields(a||[]),_.current=a;},[a,$]);var D=f__namespace.useMemo(function(){return U(U({},$),{},{validateTrigger:g})},[$,g]),z=f__namespace.createElement(Pu.Provider,{value:null},f__namespace.createElement(_i.Provider,{value:D},A));return u===!1?z:f__namespace.createElement(u,xe({},y,{onSubmit:function(W){W.preventDefault(),W.stopPropagation(),$.submit();},onReset:function(W){var V;W.preventDefault(),$.resetFields(),(V=y.onReset)===null||V===void 0||V.call(y,W);}}),z)};function qy(e){try{return JSON.stringify(e)}catch{return Math.random()}}function vV(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=o===void 0?{}:o,i=$W(a)?{form:a}:a,l=i.form,s=f.useState(),c=J(s,2),u=c[0],d=c[1],m=f.useMemo(function(){return qy(u)},[u]),g=f.useRef(m);g.current=m;var v=f.useContext(_i),h=l||v,p=h&&h._init,b=$n(r),y=f.useRef(b);return y.current=b,f.useEffect(function(){if(p){var C=h.getFieldsValue,w=h.getInternalHooks,x=w(pa),$=x.registerWatch,S=function(P,N){var L=i.preserve?N:P;return typeof r=="function"?r(L):fo(L,y.current)},O=$(function(I,P){var N=S(I,P),L=qy(N);g.current!==L&&(g.current=L,d(N));}),E=S(C(),C(!0));return u!==E&&d(E),O}},[p]),u}var hV=f__namespace.forwardRef(gV),Gs=hV;Gs.FormProvider=fV;Gs.Field=sE;Gs.List=sV;Gs.useForm=uE;Gs.useWatch=vV;const Br=f__namespace.createContext({}),Ni=e=>{let{children:t,status:n,override:r}=e;const o=f.useContext(Br),a=f.useMemo(()=>{const i=Object.assign({},o);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,o]);return f__namespace.createElement(Br.Provider,{value:a},t)},pV=f.createContext(void 0);function Xy(){}const bV=f__namespace.createContext({add:Xy,remove:Xy});function yV(e){const t=f__namespace.useContext(bV),n=f__namespace.useRef();return Kn(o=>{if(o){const a=e?o.querySelector(e):o;t.add(a),n.current=a;}else t.remove(n.current);})}const CV=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=f.useContext(Ws);return f.createElement(tn,Object.assign({onClick:n},e),t)},Yy=CV,SV=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=f.useContext(Ws);return f.createElement(tn,Object.assign({},Jh(n),{loading:e,onClick:o},t),r)},Zy=SV;function $V(e,t){return f.createElement("span",{className:`${e}-close-x`},t||f.createElement(ko,{className:`${e}-close-icon`}))}const wV=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[u]=Lo("Modal",MF()),d=t||(u==null?void 0:u.okText),m=r||(u==null?void 0:u.cancelText),g={confirmLoading:o,okButtonProps:l,cancelButtonProps:s,okTextLocale:d,cancelTextLocale:m,okType:n,onOk:a,onCancel:i},v=f.useMemo(()=>g,Fn(Object.values(g)));let h;return typeof c=="function"||typeof c>"u"?(h=f.createElement(f.Fragment,null,f.createElement(Yy,null),f.createElement(Zy,null)),typeof c=="function"&&(h=c(h,{OkBtn:Zy,CancelBtn:Yy})),h=f.createElement(eE,{value:v},h)):h=c,f.createElement(Uw,{disabled:!1},h)};function Qy(e){return {position:e,inset:0}}const xV=e=>{const{componentCls:t,antCls:n}=e;return [{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Qy("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Qy("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:Ex(e)}]},EV=e=>{const{componentCls:t}=e;return [{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${B(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Lt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${B(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${B(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},Jo(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${B(e.borderRadiusLG)} ${B(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
${t}-body,
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},OV=e=>{const{componentCls:t}=e;return {[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},dE=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Ot(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},fE=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:`${B(e.paddingMD)} ${B(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${B(e.padding)} ${B(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${B(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${B(e.paddingXS)} ${B(e.padding)}`:0,footerBorderTop:e.wireframe?`${B(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${B(e.borderRadiusLG)} ${B(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${B(e.padding*2)} ${B(e.padding*2)} ${B(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),IV=Kt("Modal",e=>{const t=dE(e);return [EV(t),OV(t),xV(t),Ds(t,"zoom")]},fE,{unitless:{titleLineHeight:!0}});var PV=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};let Zg;const MV=e=>{Zg={x:e.pageX,y:e.pageY},setTimeout(()=>{Zg=null;},100);};SW()&&document.documentElement.addEventListener("click",MV,!0);const RV=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:a}=f__namespace.useContext(nt),i=W=>{const{onCancel:V}=e;V==null||V(W);},l=W=>{const{onOk:V}=e;V==null||V(W);},{prefixCls:s,className:c,rootClassName:u,open:d,wrapClassName:m,centered:g,getContainer:v,closeIcon:h,closable:p,focusTriggerAfterClose:b=!0,style:y,visible:C,width:w=520,footer:x,classNames:$,styles:S}=e,O=PV(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),E=r("modal",s),I=r(),P=Mn(E),[N,L,k]=IV(E,P),A=G(m,{[`${E}-centered`]:!!g,[`${E}-wrap-rtl`]:o==="rtl"}),T=x!==null&&f__namespace.createElement(wV,Object.assign({},e,{onOk:l,onCancel:i})),[R,_]=oE(p,h,W=>$V(E,W),f__namespace.createElement(ko,{className:`${E}-close-icon`}),!0),D=yV(`.${E}-content`),[z,F]=As("Modal",O.zIndex);return N(f__namespace.createElement(Na,null,f__namespace.createElement(Ni,{status:!0,override:!0},f__namespace.createElement(tf.Provider,{value:F},f__namespace.createElement(rE,Object.assign({width:w},O,{zIndex:z,getContainer:v===void 0?n:v,prefixCls:E,rootClassName:G(L,u,k,P),footer:T,visible:d??C,mousePosition:(t=O.mousePosition)!==null&&t!==void 0?t:Zg,onClose:i,closable:R,closeIcon:_,focusTriggerAfterClose:b,transitionName:ea(I,"zoom",e.transitionName),maskTransitionName:ea(I,"fade",e.maskTransitionName),className:G(L,c,a==null?void 0:a.className),style:Object.assign(Object.assign({},a==null?void 0:a.style),y),classNames:Object.assign(Object.assign({wrapper:A},a==null?void 0:a.classNames),$),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),S),panelRef:D}))))))},_V=RV,NV=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u=`${t}-confirm`;return {[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},wu()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${B(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},TV=Ls(["Modal","confirm"],e=>{const t=dE(e);return [NV(t)]},fE,{order:-1e3});var LV=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 kV(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:l,footer:s,locale:c}=e,u=LV(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&n!==null)switch(i){case"info":d=f__namespace.createElement(Zh,null);break;case"success":d=f__namespace.createElement(Yh,null);break;case"error":d=f__namespace.createElement(el,null);break;default:d=f__namespace.createElement(Fs,null);}const m=l??i==="confirm",g=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[v]=Lo("Modal"),h=c||v,p=r||(m?h==null?void 0:h.okText:h==null?void 0:h.justOkText),b=o||(h==null?void 0:h.cancelText),y=Object.assign({autoFocusButton:g,cancelTextLocale:b,okTextLocale:p,mergedOkCancel:m},u),C=f__namespace.useMemo(()=>y,Fn(Object.values(y))),w=f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(Ny,null),f__namespace.createElement(Ty,null)),x=e.title!==void 0&&e.title!==null,$=`${a}-body`;return f__namespace.createElement("div",{className:`${a}-body-wrapper`},f__namespace.createElement("div",{className:G($,{[`${$}-has-title`]:x})},d,f__namespace.createElement("div",{className:`${a}-paragraph`},x&&f__namespace.createElement("span",{className:`${a}-title`},e.title),f__namespace.createElement("div",{className:`${a}-content`},e.content))),s===void 0||typeof s=="function"?f__namespace.createElement(eE,{value:C},f__namespace.createElement("div",{className:`${a}-btns`},typeof s=="function"?s(w,{OkBtn:Ty,CancelBtn:Ny}):w)):s,f__namespace.createElement(TV,{prefixCls:t}))}const AV=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:a,centered:i,getContainer:l,maskStyle:s,direction:c,prefixCls:u,wrapClassName:d,rootPrefixCls:m,bodyStyle:g,closable:v=!1,closeIcon:h,modalRender:p,focusTriggerAfterClose:b,onConfirm:y,styles:C}=e,w=`${u}-confirm`,x=e.width||416,$=e.style||{},S=e.mask===void 0?!0:e.mask,O=e.maskClosable===void 0?!1:e.maskClosable,E=G(w,`${w}-${e.type}`,{[`${w}-rtl`]:c==="rtl"},e.className),[,I]=In(),P=f__namespace.useMemo(()=>n!==void 0?n:I.zIndexPopupBase+nf,[n,I]);return f__namespace.createElement(_V,{prefixCls:u,className:E,wrapClassName:G({[`${w}-centered`]:!!e.centered},d),onCancel:()=>{t==null||t({triggerCancel:!0}),y==null||y(!1);},open:o,title:"",footer:null,transitionName:ea(m||"","zoom",e.transitionName),maskTransitionName:ea(m||"","fade",e.maskTransitionName),mask:S,maskClosable:O,style:$,styles:Object.assign({body:g,mask:s},C),width:x,zIndex:P,afterClose:r,keyboard:a,centered:i,getContainer:l,closable:v,closeIcon:h,modalRender:p,focusTriggerAfterClose:b},f__namespace.createElement(kV,Object.assign({},e,{confirmPrefixCls:w})))},jV=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return f__namespace.createElement(So,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},f__namespace.createElement(AV,Object.assign({},e)))},DV=jV;function BV(e){return Object.assign(Object.assign({},e),{type:"warning"})}function HV(e){return Object.assign(Object.assign({},e),{type:"info"})}function WV(e){return Object.assign(Object.assign({},e),{type:"success"})}function VV(e){return Object.assign(Object.assign({},e),{type:"error"})}function GV(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var KV=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 UV=(e,t)=>{var n,{afterClose:r,config:o}=e,a=KV(e,["afterClose","config"]);const[i,l]=f__namespace.useState(!0),[s,c]=f__namespace.useState(o),{direction:u,getPrefixCls:d}=f__namespace.useContext(nt),m=d("modal"),g=d(),v=()=>{var y;r(),(y=s.afterClose)===null||y===void 0||y.call(s);},h=function(){l(!1);for(var y=arguments.length,C=new Array(y),w=0;w<y;w++)C[w]=arguments[w];const x=C.some($=>$&&$.triggerCancel);s.onCancel&&x&&s.onCancel.apply(s,[()=>{}].concat(Fn(C.slice(1))));};f__namespace.useImperativeHandle(t,()=>({destroy:h,update:y=>{c(C=>Object.assign(Object.assign({},C),y));}}));const p=(n=s.okCancel)!==null&&n!==void 0?n:s.type==="confirm",[b]=Lo("Modal",bo.Modal);return f__namespace.createElement(DV,Object.assign({prefixCls:m,rootPrefixCls:g},s,{close:h,open:i,afterClose:v,okText:s.okText||(p?b==null?void 0:b.okText:b==null?void 0:b.justOkText),direction:s.direction||u,cancelText:s.cancelText||(b==null?void 0:b.cancelText)},a))},qV=f__namespace.forwardRef(UV);let Jy=0;const XV=f__namespace.memo(f__namespace.forwardRef((e,t)=>{const[n,r]=s7();return f__namespace.useImperativeHandle(t,()=>({patchElement:r}),[]),f__namespace.createElement(f__namespace.Fragment,null,n)}));function YV(){const e=f__namespace.useRef(null),[t,n]=f__namespace.useState([]);f__namespace.useEffect(()=>{t.length&&(Fn(t).forEach(i=>{i();}),n([]));},[t]);const r=f__namespace.useCallback(a=>function(l){var s;Jy+=1;const c=f__namespace.createRef();let u;const d=new Promise(p=>{u=p;});let m=!1,g;const v=f__namespace.createElement(qV,{key:`modal-${Jy}`,config:a(l),ref:c,afterClose:()=>{g==null||g();},isSilent:()=>m,onConfirm:p=>{u(p);}});return g=(s=e.current)===null||s===void 0?void 0:s.patchElement(v),{destroy:()=>{function p(){var b;(b=c.current)===null||b===void 0||b.destroy();}c.current?p():n(b=>[].concat(Fn(b),[p]));},update:p=>{function b(){var y;(y=c.current)===null||y===void 0||y.update(p);}c.current?b():n(y=>[].concat(Fn(y),[b]));},then:p=>(m=!0,d.then(p))}},[]);return [f__namespace.useMemo(()=>({info:r(HV),success:r(WV),error:r(VV),warning:r(BV),confirm:r(GV)}),[]),f__namespace.createElement(XV,{key:"modal-holder",ref:e})]}const ZV=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,a=new St("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new St("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new St("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new St("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return {[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},QV=ZV,JV=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],eG={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},tG=(e,t)=>{const{componentCls:n}=e;return {[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[eG[t]]:{value:0,_skip_check_:!0}}}}},nG=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},rG=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},oG=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},nG(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},rG(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},JV.map(n=>tG(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},aG=oG,iG=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:m,notificationPadding:g,notificationMarginEdge:v,fontSize:h,lineHeight:p,width:b,notificationIconSize:y,colorText:C}=e,w=`${n}-notice`;return {position:"relative",marginBottom:a,marginInlineStart:"auto",background:m,borderRadius:i,boxShadow:r,[w]:{padding:g,width:b,maxWidth:`calc(100vw - ${B(e.calc(v).mul(2).equal())})`,overflow:"hidden",lineHeight:p,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:h,cursor:"pointer"},[`${w}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:h,color:C},[`${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(y).equal(),fontSize:o},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.calc(e.marginSM).add(y).equal(),fontSize:h},[`${w}-icon`]:{position:"absolute",fontSize:y,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${w}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.closeBtnHoverBg}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},lG=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:a}=e,i=`${t}-notice`,l=new St("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return [{[t]:Object.assign(Object.assign({},Lt(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:Object.assign({},iG(e))}}]},sG=e=>({zIndexPopup:e.zIndexPopupBase+nf+50,width:384,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent}),cG=e=>{const t=e.paddingMD,n=e.paddingLG;return Ot(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${B(e.paddingMD)} ${B(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},uG=Kt("Notification",e=>{const t=cG(e);return [lG(t),QV(t),aG(t)]},sG);function mE(e,t){return t===null||t===!1?null:t||f__namespace.createElement("span",{className:`${e}-close-x`},f__namespace.createElement(ko,{className:`${e}-close-icon`}))}const dG={success:Yh,info:Zh,error:el,warning:Fs},fG=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:a,btn:i,role:l="alert"}=e;let s=null;return n?s=f__namespace.createElement("span",{className:`${t}-icon`},n):r&&(s=f__namespace.createElement(dG[r]||null,{className:G(`${t}-icon`,`${t}-icon-${r}`)})),f__namespace.createElement("div",{className:G({[`${t}-with-icon`]:s}),role:l},s,f__namespace.createElement("div",{className:`${t}-message`},o),f__namespace.createElement("div",{className:`${t}-description`},a),i&&f__namespace.createElement("div",{className:`${t}-btn`},i))};function mG(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function gG(e){return {motionName:`${e}-fade`}}var vG=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 eC=24,hG=4.5,pG="topRight",bG=e=>{let{children:t,prefixCls:n}=e;const r=Mn(n),[o,a,i]=uG(n,r);return o(f.createElement(Bx,{classNames:{list:G(a,i,r)}},t))},yG=(e,t)=>{let{prefixCls:n,key:r}=t;return f.createElement(bG,{prefixCls:n,key:r},e)},CG=f.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:i,rtl:l,onAllRemoved:s,stack:c}=e,{getPrefixCls:u,getPopupContainer:d,notification:m,direction:g}=f.useContext(nt),[,v]=In(),h=o||u("notification"),p=x=>mG(x,n??eC,r??eC),b=()=>G({[`${h}-rtl`]:l??g==="rtl"}),y=()=>gG(h),[C,w]=Hx({prefixCls:h,style:p,className:b,motion:y,closable:!0,closeIcon:mE(h),duration:hG,getContainer:()=>(a==null?void 0:a())||(d==null?void 0:d())||document.body,maxCount:i,onAllRemoved:s,renderNotifications:yG,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:v.margin}});return f.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:h,notification:m})),w});function SG(e){const t=f.useRef(null);return Ns(),[f.useMemo(()=>{const r=l=>{var s;if(!t.current)return;const{open:c,prefixCls:u,notification:d}=t.current,m=`${u}-notice`,{message:g,description:v,icon:h,type:p,btn:b,className:y,style:C,role:w="alert",closeIcon:x}=l,$=vG(l,["message","description","icon","type","btn","className","style","role","closeIcon"]),S=mE(m,x);return c(Object.assign(Object.assign({placement:(s=e==null?void 0:e.placement)!==null&&s!==void 0?s:pG},$),{content:f.createElement(fG,{prefixCls:m,icon:h,type:p,message:g,description:v,btn:b,role:w}),className:G(p&&`${m}-${p}`,y,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),C),closeIcon:S,closable:!!S}))},a={open:r,destroy:l=>{var s,c;l!==void 0?(s=t.current)===null||s===void 0||s.close(l):(c=t.current)===null||c===void 0||c.destroy();}};return ["success","info","warning","error"].forEach(l=>{a[l]=s=>r(Object.assign(Object.assign({},s),{type:l}));}),a},[]),f.createElement(CG,Object.assign({key:"notification-holder"},e,{ref:t}))]}function $G(e){return SG(e)}const Qg=f.createContext({}),wG=f.createContext({message:{},notification:{},modal:{}}),gE=wG,xG=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:a}=e;return {[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:a}}},EG=()=>({}),OG=Kt("App",xG,EG),IG=()=>f.useContext(gE),vE=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:a,notification:i,style:l,component:s="div"}=e,{getPrefixCls:c}=f.useContext(nt),u=c("app",t),[d,m,g]=OG(u),v=G(m,u,r,o,g),h=f.useContext(Qg),p=f.useMemo(()=>({message:Object.assign(Object.assign({},h.message),a),notification:Object.assign(Object.assign({},h.notification),i)}),[a,i,h.message,h.notification]),[b,y]=Kx(p.message),[C,w]=$G(p.notification),[x,$]=YV(),S=f.useMemo(()=>({message:b,notification:C,modal:x}),[b,C,x]),O=s===!1?f.Fragment:s,E={className:v,style:l};return d(f.createElement(gE.Provider,{value:S},f.createElement(Qg.Provider,{value:p},f.createElement(O,Object.assign({},s===!1?void 0:E),$,y,w,n))))};vE.useApp=IG;const hE=vE;let jr=null,ya=e=>e(),us=[],ds={};function tC(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=ds,a=(e==null?void 0:e())||document.body;return {getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const PG=f.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=f.useContext(nt),a=ds.prefixCls||o("message"),i=f.useContext(Qg),[l,s]=Gx(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return f.useImperativeHandle(t,()=>{const c=Object.assign({},l);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),l[u].apply(l,arguments)};}),{instance:c,sync:r}}),s}),MG=f.forwardRef((e,t)=>{const[n,r]=f.useState(tC),o=()=>{r(tC);};f.useEffect(o,[]);const a=_8(),i=a.getRootPrefixCls(),l=a.getIconPrefixCls(),s=a.getTheme(),c=f.createElement(PG,{ref:t,sync:o,messageConfig:n});return f.createElement(So,{prefixCls:i,iconPrefixCls:l,theme:s},a.holderRender?a.holderRender(c):c)});function df(){if(!jr){const e=document.createDocumentFragment(),t={fragment:e};jr=t,ya(()=>{Ux(f.createElement(MG,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,df());});}}),e);});return}jr.instance&&(us.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{ya(()=>{const r=jr.instance.open(Object.assign(Object.assign({},ds),e.config));r==null||r.then(e.resolve),e.setCloseFn(r);});break}case"destroy":ya(()=>{jr==null||jr.instance.destroy(e.key);});break;default:ya(()=>{var r;const o=(r=jr.instance)[t].apply(r,Fn(e.args));o==null||o.then(e.resolve),e.setCloseFn(o);});}}),us=[]);}function RG(e){ds=Object.assign(Object.assign({},ds),e),ya(()=>{var t;(t=jr==null?void 0:jr.sync)===null||t===void 0||t.call(jr);});}function _G(e){const t=Qh(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a;}};return us.push(o),()=>{r?ya(()=>{r();}):o.skipped=!0;}});return df(),t}function NG(e,t){const n=Qh(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i;}};return us.push(a),()=>{o?ya(()=>{o();}):a.skipped=!0;}});return df(),n}function TG(e){us.push({type:"destroy",key:e}),df();}const LG=["success","info","warning","error","loading"],kG={open:_G,destroy:TG,config:RG,useMessage:Kx,_InternalPanelDoNotUseOrYouWillBeFired:e7},pE=kG;LG.forEach(e=>{pE[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return NG(e,n)};});const bE=pE,AG=()=>document.querySelector(".bili-header__bar");function jG(){const e=AG();return !!(e&&window.getComputedStyle(e).display==="none")}function Jg(){if(!jG())return 64;if(!document.body.classList.contains("fixed-navbar"))return 0;const t=document.documentElement.style.getPropertyValue("--navbar-height");if(!t)return 50;const n=Number(t.replace("px",""));return isNaN(n)?50:n}const Mu=mr({value:Jg()});function yE(){return vr(Mu).value}function ap(){return Mu.value}setTimeout(()=>{Mu.value=Jg();const e=new MutationObserver(()=>{Mu.value=Jg();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);let pn=bE;const CE={maxCount:5,top:ap()+5};bE.config(CE);function DG(){const e=yE();return j(hE,{component:!1,message:{...CE,top:e+5},children:j(zG,{})})}function zG(){const e=hE.useApp();return pn=e.message,e.notification,null}var nC=T$(function(e,t){var n=e.styles,r=bh([n],void 0,f__namespace.useContext(L$)),o=f__namespace.useRef();return m0(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,s=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),s!==null&&(l=!0,s.setAttribute("data-emotion",a),i.hydrate([s])),o.current=[i,l],function(){i.flush();}},[t]),m0(function(){var a=o.current,i=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&ph(t,r.next,!0),i.tags.length){var s=i.tags[i.tags.length-1].nextElementSibling;i.before=s,i.flush();}t.insert("",r,i,!1);},[t,r.name]),null});function fr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bh(t)}var ff={},SE={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;})(SE);var ip=SE.exports,pl={},rC;function FG(){if(rC)return pl;rC=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.default=void 0;var e={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:"页码"};return pl.default=e,pl}var bl={},yl={},Cl={},oC;function BG(){if(oC)return Cl;oC=1,Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.default=void 0;var e={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:"下一世纪"};return Cl.default=e,Cl}var Sl={},aC;function $E(){if(aC)return Sl;aC=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.default=void 0;const e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return Sl.default=e,Sl}var iC;function wE(){if(iC)return yl;iC=1;var e=ip;Object.defineProperty(yl,"__esModule",{value:!0}),yl.default=void 0;var t=e(BG()),n=e($E());const r={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},t.default),timePickerLocale:Object.assign({},n.default)};return r.lang.ok="确定",yl.default=r,yl}var lC;function HG(){if(lC)return bl;lC=1;var e=ip;Object.defineProperty(bl,"__esModule",{value:!0}),bl.default=void 0;var t=e(wE());return bl.default=t.default,bl}var mf=ip;Object.defineProperty(ff,"__esModule",{value:!0});ff.default=void 0;var WG=mf(FG()),VG=mf(HG()),GG=mf(wE()),KG=mf($E());const Sr="${label}不是一个有效的${type}",UG={locale:"zh-cn",Pagination:WG.default,DatePicker:GG.default,TimePicker:KG.default,Calendar:VG.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:Sr,method:Sr,array:Sr,object:Sr,number:Sr,date:Sr,boolean:Sr,integer:Sr,float:Sr,regexp:Sr,email:Sr,url:Sr,hex:Sr},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:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无"}};ff.default=UG;var qG=ff;const XG=Bn(qG),xE="HarmonyOS_Regular,PingFang SC,Helvetica Neue,Microsoft YaHei,sans-serif";function lp({children:e,injectGlobalStyle:t=!1,renderAppComponent:n=!1}){const r=zs(),{colorPrimary:o}=yh();return be(So,{locale:XG,theme:{cssVar:!0,algorithm:r?by.darkAlgorithm:by.defaultAlgorithm,token:{colorPrimary:o,colorBgSpotlight:o,zIndexPopupBase:11e3,fontFamily:xE},components:{}},children:[n&&j(DG,{}),t&&j(JG,{}),e]})}var YG={name:"ykj9m0",styles:"body{background-color:var(--bg1);}"},ZG={name:"bts51",styles:"body,.large-header,#i_cecream,.bili-header .bili-header__channel{background-color:var(--bg2);}"},QG={name:"8xrafg",styles:"#i_cecream .bili-feed4-layout{display:none;}"};function JG(){const{colorPrimary:e}=yh(),{styleFancy:t,pureRecommend:n}=sn();return be(Pt,{children:[j(nC,{styles:fr`
:root {
${j$}: ${e};
}
.${Zo} {
font-family: ${xE};
--back-top-right: 24px;
.bili-video-card a:not(.disable-hover):hover{
color: ${Fr} !important;
}
}
@media (max-width: 1440px) {
.${Zo} {
--back-top-right: 16px;
}
}
`}),n&&j(nC,{styles:[QG,t?ZG:YG,"",""]})]})}function sp(e){return j(Ji,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}const sC=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},eK=new WeakMap;function tK({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(sC());let a,i,l;const s=e??clearTimeout,c=()=>{s(a),l(sC());},u=()=>{o&&o.removeEventListener("abort",c);},d=new Promise((m,g)=>{i=()=>{u(),m(r);},l=g,a=(t??setTimeout)(i,n);});return o&&o.addEventListener("abort",c,{once:!0}),eK.set(d,()=>{s(a),a=null,i();}),d}}const Xn=tK(),nK=To.extend("utility:dom"),rK=10*1e3,oK=200;async function cp(e,t,n){const r=n==null?void 0:n.selectorPredicate,o=(n==null?void 0:n.timeout)??rK,a=(n==null?void 0:n.delayInterval)??oK,i=(n==null?void 0:n.warnOnTimeout)??!0;let l=[];const s=()=>{l=Array.from(document.querySelectorAll(e)),r&&(l=l.filter(r));};s();const u=performance.now()+o;for(;!l.length&&performance.now()<u;)await Xn(a),s();if(!l.length){i&&console.warn(`[${mn}]: tryAction timeout, selector = \`%s\``,e);return}nK("tryAction: selector=`%s` count=%s",e,l.length);for(const d of l)await Promise.resolve(t(d));}async function ma(e,t,n){return typeof n=="number"&&await Xn(n),cp(e,r=>r.remove(),{selectorPredicate:t})}function gf(){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"))}function aK(){return new Promise(e=>{queueMicrotask(e);})}function EE(e){return new Promise(t=>{typeof requestIdleCallback=="function"?requestIdleCallback(()=>t(),e):setTimeout(t);})}var Ks,cC=gS;Ks=cC.createRoot,cC.hydrateRoot;const iK=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:l}=e;return {[t]:Object.assign(Object.assign({},Lt(e)),{borderBlockStart:`${B(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${B(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${B(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${B(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${B(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${B(o)} 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}}})}},lK=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),sK=Kt("Divider",e=>{const t=Ot(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [iK(t)]},lK,{unitless:{orientationMargin:!0}});var cK=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 uK=e=>{const{getPrefixCls:t,direction:n,divider:r}=f__namespace.useContext(nt),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:l,className:s,rootClassName:c,children:u,dashed:d,plain:m,style:g}=e,v=cK(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),h=t("divider",o),[p,b,y]=sK(h),C=i.length>0?`-${i}`:i,w=!!u,x=i==="left"&&l!=null,$=i==="right"&&l!=null,S=G(h,r==null?void 0:r.className,b,y,`${h}-${a}`,{[`${h}-with-text`]:w,[`${h}-with-text${C}`]:w,[`${h}-dashed`]:!!d,[`${h}-plain`]:!!m,[`${h}-rtl`]:n==="rtl",[`${h}-no-default-orientation-margin-left`]:x,[`${h}-no-default-orientation-margin-right`]:$},s,c),O=f__namespace.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),E=Object.assign(Object.assign({},x&&{marginLeft:O}),$&&{marginRight:O});return p(f__namespace.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},r==null?void 0:r.style),g)},v,{role:"separator"}),u&&a!=="vertical"&&f__namespace.createElement("span",{className:`${h}-inner-text`,style:E},u)))},OE=uK;var dK=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function uC(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 dC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uC(Object(n),!0).forEach(function(r){fK(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function fK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mK(e,t){if(e==null)return {};var n=gK(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function gK(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var vK={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"};function hK(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function pK(e,t,n){var r=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],a=t.theme||n.theme;switch(a){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 IE=f.createContext(vK);IE.Provider;function Ut(e,t,n){return function(r){var o=r.size,a=r.strokeWidth,i=r.strokeLinecap,l=r.strokeLinejoin,s=r.theme,c=r.fill,u=r.className,d=r.spin,m=mK(r,dK),g=f.useContext(IE),v=f.useMemo(hK,[]),h=pK(v,{size:o,strokeWidth:a,strokeLinecap:i,strokeLinejoin:l,theme:s,fill:c},g),p=[g.prefix+"-icon"];return p.push(g.prefix+"-icon-"+e),t&&g.rtl&&p.push(g.prefix+"-icon-rtl"),d&&p.push(g.prefix+"-icon-spin"),u&&p.push(u),f.createElement("span",dC(dC({},m),{},{className:p.join(" ")}),n(h))}}const bK=Ut("check-small",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M10 24L20 34L40 14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),yK=Ut("drag",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 10C19 12.2091 17.2091 14 15 14C12.7909 14 11 12.2091 11 10C11 7.79086 12.7909 6 15 6C17.2091 6 19 7.79086 19 10ZM15 28C17.2091 28 19 26.2091 19 24C19 21.7909 17.2091 20 15 20C12.7909 20 11 21.7909 11 24C11 26.2091 12.7909 28 15 28ZM15 42C17.2091 42 19 40.2091 19 38C19 35.7909 17.2091 34 15 34C12.7909 34 11 35.7909 11 38C11 40.2091 12.7909 42 15 42Z",fill:e.colors[0]}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37 10C37 12.2091 35.2091 14 33 14C30.7909 14 29 12.2091 29 10C29 7.79086 30.7909 6 33 6C35.2091 6 37 7.79086 37 10ZM33 28C35.2091 28 37 26.2091 37 24C37 21.7909 35.2091 20 33 20C30.7909 20 29 21.7909 29 24C29 26.2091 30.7909 28 33 28ZM33 42C35.2091 42 37 40.2091 37 38C37 35.7909 35.2091 34 33 34C30.7909 34 29 35.7909 29 38C29 40.2091 30.7909 42 33 42Z",fill:e.colors[0]}))}),CK=Ut("trend-two",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M4 44H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M4 26L12 28V38H4V26Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M20 24L28 20V38H20V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M36 16L44 12V38H36V16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M4 18L12 20L44 4H34",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),SK=Ut("fire",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M24 44C32.2347 44 38.9998 37.4742 38.9998 29.0981C38.9998 27.0418 38.8953 24.8375 37.7555 21.4116C36.6157 17.9858 36.3861 17.5436 35.1809 15.4279C34.666 19.7454 31.911 21.5448 31.2111 22.0826C31.2111 21.5231 29.5445 15.3359 27.0176 11.6339C24.537 8 21.1634 5.61592 19.1853 4C19.1853 7.06977 18.3219 11.6339 17.0854 13.9594C15.8489 16.2849 15.6167 16.3696 14.0722 18.1002C12.5278 19.8308 11.8189 20.3653 10.5274 22.4651C9.23596 24.565 9 27.3618 9 29.4181C9 37.7942 15.7653 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),$K=Ut("split",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 10V7C19 5.89543 19.8954 5 21 5H41C42.1046 5 43 5.89543 43 7V29C43 30.1046 42.1046 31 41 31H37",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("rect",{x:"5",y:"18",width:"24",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),wK=Ut("people-search",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M39.9997 41.0002L36.8281 37.8286",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M38 35C38 36.1046 37.5523 37.1046 36.8284 37.8284C36.1046 38.5523 35.1046 39 34 39C31.7909 39 30 37.2091 30 35C30 32.7909 31.7909 31 34 31C36.2091 31 38 32.7909 38 35Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),xK=Ut("people-minus",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 35H42H30Z",fill:e.colors[1]}),f.createElement("path",{d:"M30 35H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),EK=Ut("people-delete",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M33 31L41 39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M33 39L41 31",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),OK=Ut("delete",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M9 10V44H39V10H9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M20 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M28 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M4 10H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),IK=Ut("add-two",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M33 7.26261C30.3212 5.81915 27.2563 5 24 5C13.5066 5 5 13.5066 5 24C5 34.4934 13.5066 43 24 43C26.858 43 29.5685 42.369 32 41.2387",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M31 30L43 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15 22L22 29L41 11",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M37 24V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),PK=Ut("play-two",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M18.5 24V16.2058L25.25 20.1029L32 24L25.25 27.8971L18.5 31.7942V24Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),MK=Ut("unlike",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C25.1936 41.9295 26.5616 41.3098 28.0099 40.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M34.959 27L41.8375 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M41.8375 27L34.959 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),RK=Ut("dislike-two",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C31 40 44 30 44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 20L20 28L28 20Z",fill:e.colors[1]}),f.createElement("path",{d:"M28 20L20 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 20.0001L28 28L20 20.0001Z",fill:e.colors[1]}),f.createElement("path",{d:"M20 20.0001L28 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),_K=Ut("copy",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M13 12.4316V7.8125C13 6.2592 14.2592 5 15.8125 5H40.1875C41.7408 5 43 6.2592 43 7.8125V32.1875C43 33.7408 41.7408 35 40.1875 35H35.5163",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.1875 13H7.8125C6.2592 13 5 14.2592 5 15.8125V40.1875C5 41.7408 6.2592 43 7.8125 43H32.1875C33.7408 43 35 41.7408 35 40.1875V15.8125C35 14.2592 33.7408 13 32.1875 13Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),NK=Ut("efferent-four",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M20 5L10 5C8.89543 5 8 5.89543 8 7L8 41C8 42.1046 8.89543 43 10 43L38 43C39.1046 43 40 42.1046 40 41L40 24.75",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M28 5H40V17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21.0001 23.9998L39 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),TK=Ut("star",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M23.9986 5L17.8856 17.4776L4 19.4911L14.0589 29.3251L11.6544 43L23.9986 36.4192L36.3454 43L33.9586 29.3251L44 19.4911L30.1913 17.4776L23.9986 5Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),LK=Ut("file-cabinet",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M42 4H6V14H42V4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M42 19H6V29H42V19Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M42 34H6V44H42V34Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21 9H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M21 24H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M21 39H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),kK=Ut("tumblr",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M15 22V17H20V14L26 12V17H31V22H26V29C26 29 26 30.5 28 31C30 31.5 33 30 33 30L31 36H26C22.5 36 20 32.5 20 30V22H15Z",fill:e.colors[2]}))}),AK=Ut("concern",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M10.8579 9.85803C7.23858 13.4773 5 18.4773 5 24.0002C5 29.523 7.23858 34.523 10.8579 38.1423",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M39.1421 38.1423C42.7614 34.523 45 29.523 45 24.0002C45 18.4773 42.7614 13.4773 39.1421 9.85803",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M34.8994 33.8997C37.4329 31.3662 38.9999 27.8662 38.9999 24.0002C38.9999 20.1342 37.4329 16.6342 34.8994 14.1007",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M15.1005 14.1007C12.567 16.6342 11 20.1342 11 24.0002C11 27.8662 12.567 31.3662 15.1005 33.8997",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M28.1818 20C30.2905 20 32 21.6118 32 23.6C32 26.1882 29.4545 28.4 28.1818 29.6C27.3333 30.4 26.2727 31.2 25 32C23.7273 31.2 22.6667 30.4 21.8182 29.6C20.5455 28.4 18 26.1882 18 23.6C18 21.6118 19.7095 20 21.8182 20C23.1463 20 24.316 20.6393 25 21.6093C25.684 20.6393 26.8537 20 28.1818 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),jK=Ut("iphone",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"11",y:"4",width:"26",height:"40",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M22 10L26 10",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M20 38H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),DK=Ut("computer",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"19",y:"32",width:"10",height:"9",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("rect",{x:"5",y:"8",width:"38",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M22 27H26",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M14 41L34 41",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),zK=Ut("tips",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M40 20C40 26.8077 35.7484 32.6224 29.7555 34.9336H24H18.2445C12.2516 32.6224 8 26.8077 8 20C8 11.1634 15.1634 4 24 4C32.8366 4 40 11.1634 40 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M29.7557 34.9336L29.0766 43.0831C29.0334 43.6014 28.6001 44 28.08 44H19.9203C19.4002 44 18.9669 43.6014 18.9238 43.0831L18.2446 34.9336",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M18 17V23L24 20L30 23V17",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),FK=Ut("return",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.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}))}),BK=Ut("loading-three",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),HK=Ut("loading",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.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}))}),WK=Ut("info",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.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]}),f.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),VK=Ut("help",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.createElement("path",{d:"M24 28.6248V24.6248C27.3137 24.6248 30 21.9385 30 18.6248C30 15.3111 27.3137 12.6248 24 12.6248C20.6863 12.6248 18 15.3111 18 18.6248",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 37.6248C25.3807 37.6248 26.5 36.5055 26.5 35.1248C26.5 33.7441 25.3807 32.6248 24 32.6248C22.6193 32.6248 21.5 33.7441 21.5 35.1248C21.5 36.5055 22.6193 37.6248 24 37.6248Z",fill:e.colors[2]}))}),GK=Ut("distraught-face",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.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}),f.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),KK=Ut("config",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.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}))}),UK=Ut("close",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),qK={Close:UK,Config:KK,DistraughtFace:GK,Help:VK,Info:WK,Loading:HK,LoadingThree:BK,Return:FK,Tips:zK,Computer:DK,Iphone:jK,Concern:AK,Tumblr:kK,FileCabinet:LK,Star:TK,EfferentFour:NK,Copy:_K,DislikeTwo:RK,Unlike:MK,PlayTwo:PK,AddTwo:IK,Delete:OK,PeopleDelete:EK,PeopleMinus:xK,PeopleSearch:wK,Split:$K,Fire:SK,TrendTwo:CK,Drag:yK,CheckSmall:bK};function Tt({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const a=qK[e];return j(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}var PE=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);}},Zr=function(){return Zr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a]);}return t},Zr.apply(this,arguments)};function ME(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 XK(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a);})}return new(n||(n=Promise))(function(a,i){function l(u){try{c(r.next(u));}catch(d){i(d);}}function s(u){try{c(r.throw(u));}catch(d){i(d);}}function c(u){u.done?a(u.value):o(u.value).then(l,s);}c((r=r.apply(e,t||[])).next());})}function YK(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(c){return function(u){return s([c,u])}}function s(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(a=c[0]&2?o.return:c[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;switch(o=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=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(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n);}catch(u){c=[6,u],o=0;}finally{r=a=0;}if(c[0]&5)throw c[1];return {value:c[0]?c[1]:void 0,done:!0}}}function ev(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 bn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)a.push(o.value);}catch(l){i={error:l};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(i)throw i.error}}return a}function er(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var tl=function(e){return typeof e=="function"},ZK=function(e){return typeof e=="string"},RE=function(e){return typeof e=="number"};function ft(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 Ru=PE(f.useEffect);var _E=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?!0:r,a=t.defaultParams,i=a===void 0?[]:a,l=t.refreshDeps,s=l===void 0?[]:l,c=t.refreshDepsAction,u=f.useRef(!1);return u.current=!1,Ru(function(){!n&&o&&(u.current=!0,e.run.apply(e,er([],bn(i),!1)));},[o]),Ru(function(){u.current||n||(u.current=!0,c?c():e.refresh());},er([],bn(s),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};_E.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const JK=_E;function tv(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 NE(e,t){var n=f.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!tv(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function Ti(e){var t=f.useRef(e);return t.current=e,t}var eU=function(e){var t=Ti(e);f.useEffect(function(){return function(){t.current();}},[]);};const Us=eU;var Zc=new Map,tU=function(e,t,n){var r=Zc.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){Zc.delete(e);},t)),Zc.set(e,Zr(Zr({},n),{timer:o}));},nU=function(e){return Zc.get(e)},Qc=new Map,rU=function(e){return Qc.get(e)},oU=function(e,t){Qc.set(e,t),t.then(function(n){return Qc.delete(e),n}).catch(function(){Qc.delete(e);});},ga={},aU=function(e,t){ga[e]&&ga[e].forEach(function(n){return n(t)});},wm=function(e,t){return ga[e]||(ga[e]=[]),ga[e].push(t),function(){var r=ga[e].indexOf(t);ga[e].splice(r,1);}},iU=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,a=t.staleTime,i=a===void 0?0:a,l=t.setCache,s=t.getCache,c=f.useRef(),u=f.useRef(),d=function(g,v){l?l(v):tU(g,o,v),aU(g,v.data);},m=function(g,v){return v===void 0&&(v=[]),s?s(v):nU(g)};return NE(function(){if(n){var g=m(n);g&&Object.hasOwnProperty.call(g,"data")&&(e.state.data=g.data,e.state.params=g.params,(i===-1||new Date().getTime()-g.time<=i)&&(e.state.loading=!1)),c.current=wm(n,function(v){e.setState({data:v});});}},[]),Us(function(){var g;(g=c.current)===null||g===void 0||g.call(c);}),n?{onBefore:function(g){var v=m(n,g);return !v||!Object.hasOwnProperty.call(v,"data")?{}:i===-1||new Date().getTime()-v.time<=i?{loading:!1,data:v==null?void 0:v.data,error:void 0,returnNow:!0}:{data:v==null?void 0:v.data,error:void 0}},onRequest:function(g,v){var h=rU(n);return h&&h!==u.current?{servicePromise:h}:(h=g.apply(void 0,er([],bn(v),!1)),u.current=h,oU(n,h),{servicePromise:h})},onSuccess:function(g,v){var h;n&&((h=c.current)===null||h===void 0||h.call(c),d(n,{data:g,params:v,time:new Date().getTime()}),c.current=wm(n,function(p){e.setState({data:p});}));},onMutate:function(g){var v;n&&((v=c.current)===null||v===void 0||v.call(c),d(n,{data:g,params:e.state.params,time:new Date().getTime()}),c.current=wm(n,function(h){e.setState({data:h});}));}}:{}};const lU=iU;var sU=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,a=t.debounceMaxWait,i=f.useRef(),l=f.useMemo(function(){var s={};return r!==void 0&&(s.leading=r),o!==void 0&&(s.trailing=o),a!==void 0&&(s.maxWait=a),s},[r,o,a]);return f.useEffect(function(){if(n){var s=e.runAsync.bind(e);return i.current=p5(function(c){c();},n,l),e.runAsync=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new Promise(function(d,m){var g;(g=i.current)===null||g===void 0||g.call(i,function(){s.apply(void 0,er([],bn(c),!1)).then(d).catch(m);});})},function(){var c;(c=i.current)===null||c===void 0||c.cancel(),e.runAsync=s;}}},[n,l]),n?{onCancel:function(){var s;(s=i.current)===null||s===void 0||s.cancel();}}:{}};const cU=sU;var uU=function(e,t){var n=t.loadingDelay,r=t.ready,o=f.useRef();if(!n)return {};var a=function(){o.current&&clearTimeout(o.current);};return {onBefore:function(){return a(),r!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0});},n)),{loading:!1}},onFinally:function(){a();},onCancel:function(){a();}}};const dU=uU;var fU=!!(typeof window<"u"&&window.document&&window.document.createElement);const qs=fU;function up(){return qs?document.visibilityState!=="hidden":!0}var Fl=[];function mU(e){return Fl.push(e),function(){var n=Fl.indexOf(e);Fl.splice(n,1);}}if(qs){var gU=function(){if(up())for(var e=0;e<Fl.length;e++){var t=Fl[e];t();}};window.addEventListener("visibilitychange",gU,!1);}var vU=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,o=r===void 0?!0:r,a=t.pollingErrorRetryCount,i=a===void 0?-1:a,l=f.useRef(),s=f.useRef(),c=f.useRef(0),u=function(){var d;l.current&&clearTimeout(l.current),(d=s.current)===null||d===void 0||d.call(s);};return Ru(function(){n||u();},[n]),n?{onBefore:function(){u();},onError:function(){c.current+=1;},onSuccess:function(){c.current=0;},onFinally:function(){i===-1||i!==-1&&c.current<=i?l.current=setTimeout(function(){!o&&!up()?s.current=mU(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){u();}}:{}};const hU=vU;function pU(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,er([],bn(r),!1)),setTimeout(function(){n=!1;},t));}}function bU(){return qs&&typeof navigator.onLine<"u"?navigator.onLine:!0}var Bl=[];function yU(e){return Bl.push(e),function(){var n=Bl.indexOf(e);n>-1&&Bl.splice(n,1);}}if(qs){var fC=function(){if(!(!up()||!bU()))for(var e=0;e<Bl.length;e++){var t=Bl[e];t();}};window.addEventListener("visibilitychange",fC,!1),window.addEventListener("focus",fC,!1);}var CU=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,a=f.useRef(),i=function(){var l;(l=a.current)===null||l===void 0||l.call(a);};return f.useEffect(function(){if(n){var l=pU(e.refresh.bind(e),o);a.current=yU(function(){l();});}return function(){i();}},[n,o]),Us(function(){i();}),{}};const SU=CU;var $U=function(e,t){var n=t.retryInterval,r=t.retryCount,o=f.useRef(),a=f.useRef(0),i=f.useRef(!1);return r?{onBefore:function(){i.current||(a.current=0),i.current=!1,o.current&&clearTimeout(o.current);},onSuccess:function(){a.current=0;},onError:function(){if(a.current+=1,r===-1||a.current<=r){var l=n??Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){i.current=!0,e.refresh();},l);}else a.current=0;},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current);}}:{}};const wU=$U;var xU=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,a=f.useRef(),i={};return r!==void 0&&(i.leading=r),o!==void 0&&(i.trailing=o),f.useEffect(function(){if(n){var l=e.runAsync.bind(e);return a.current=KS(function(s){s();},n,i),e.runAsync=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new Promise(function(u,d){var m;(m=a.current)===null||m===void 0||m.call(a,function(){l.apply(void 0,er([],bn(s),!1)).then(u).catch(d);});})},function(){var s;e.runAsync=l,(s=a.current)===null||s===void 0||s.cancel();}}},[n,r,o]),n?{onCancel:function(){var l;(l=a.current)===null||l===void 0||l.cancel();}}:{}};const EU=xU;var OU=function(e){f.useEffect(function(){e==null||e();},[]);};const Xs=OU;var IU=function(){var e=bn(f.useState({}),2),t=e[1];return f.useCallback(function(){return t({})},[])};const PU=IU;var MU=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=Zr(Zr(Zr({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Zr(Zr({},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(a){var i;return (i=a[t])===null||i===void 0?void 0:i.call.apply(i,er([a],bn(n),!1))}).filter(Boolean);return Object.assign.apply(Object,er([{}],bn(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,a,i,l,s,c,u,d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return XK(this,void 0,void 0,function(){var g,v,h,p,b,y,C,w,x,$,S;return YK(this,function(O){switch(O.label){case 0:if(this.count+=1,g=this.count,v=this.runPluginHandler("onBefore",d),h=v.stopNow,p=h===void 0?!1:h,b=v.returnNow,y=b===void 0?!1:b,C=ME(v,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState(Zr({loading:!0,params:d},C)),y)return [2,Promise.resolve(C.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),O.label=1;case 1:return O.trys.push([1,3,,4]),w=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,w||(w=(S=this.serviceRef).current.apply(S,er([],bn(d),!1))),[4,w];case 2:return x=O.sent(),g!==this.count?[2,new Promise(function(){})]:(this.setState({data:x,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,x,d),this.runPluginHandler("onSuccess",x,d),(i=(a=this.options).onFinally)===null||i===void 0||i.call(a,d,x,void 0),g===this.count&&this.runPluginHandler("onFinally",d,x,void 0),[2,x]);case 3:if($=O.sent(),g!==this.count)return [2,new Promise(function(){})];throw this.setState({error:$,loading:!1}),(s=(l=this.options).onError)===null||s===void 0||s.call(l,$,d),this.runPluginHandler("onError",$,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,$),g===this.count&&this.runPluginHandler("onFinally",d,void 0,$),$;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,er([],bn(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,er([],bn(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,er([],bn(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=tl(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const RU=MU;function _U(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,a=ME(t,["manual"]);var i=Zr({manual:o},a),l=Ti(e),s=PU(),c=NE(function(){var u=n.map(function(d){var m;return (m=d==null?void 0:d.onInit)===null||m===void 0?void 0:m.call(d,i)}).filter(Boolean);return new RU(l,i,s,Object.assign.apply(Object,er([{}],bn(u),!1)))},[]);return c.options=i,c.pluginImpls=n.map(function(u){return u(c,i)}),Xs(function(){if(!o){var u=c.state.params||t.defaultParams||[];c.run.apply(c,er([],bn(u),!1));}}),Us(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:ft(c.cancel.bind(c)),refresh:ft(c.refresh.bind(c)),refreshAsync:ft(c.refreshAsync.bind(c)),run:ft(c.run.bind(c)),runAsync:ft(c.runAsync.bind(c)),mutate:ft(c.mutate.bind(c))}}function NU(e,t,n){return _U(e,t,er(er([],bn(n||[]),!1),[cU,dU,hU,SU,EU,JK,lU,wU],!1))}function TE(e,t){e===void 0&&(e=!1);var n=bn(f.useState(e),2),r=n[0],o=n[1],a=f.useMemo(function(){var i=t===void 0?!e:t,l=function(){return o(function(d){return d===e?i:e})},s=function(d){return o(d)},c=function(){return o(e)},u=function(){return o(i)};return {toggle:l,set:s,setLeft:c,setRight:u}},[]);return [r,a]}function TU(e){e===void 0&&(e=!1);var t=bn(TE(!!e),2),n=t[0],r=t[1],o=r.toggle,a=r.set,i=f.useMemo(function(){var l=function(){return a(!0)},s=function(){return a(!1)};return {toggle:o,set:function(c){return a(!!c)},setTrue:l,setFalse:s}},[]);return [n,i]}function hf(e,t){if(qs){if(!e)return t;var n;return tl(e)?n=e():"current"in e?n=e.current:n=e,n}}var LU=function(e){var t=function(n,r,o){var a=f.useRef(!1),i=f.useRef([]),l=f.useRef([]),s=f.useRef();e(function(){var c,u=Array.isArray(o)?o:[o],d=u.map(function(m){return hf(m)});if(!a.current){a.current=!0,i.current=d,l.current=r,s.current=n();return}(d.length!==i.current.length||!tv(d,i.current)||!tv(r,l.current))&&((c=s.current)===null||c===void 0||c.call(s),i.current=d,l.current=r,s.current=n());}),Us(function(){var c;(c=s.current)===null||c===void 0||c.call(s),a.current=!1;});};return t};const kU=LU;var AU=kU(f.useEffect);const LE=AU;var jU="__lodash_hash_undefined__";function DU(e){return this.__data__.set(e,jU),this}var zU=DU;function FU(e){return this.__data__.has(e)}var BU=FU,HU=Wv,WU=zU,VU=BU;function _u(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new HU;++t<n;)this.add(e[t]);}_u.prototype.add=_u.prototype.push=WU;_u.prototype.has=VU;var kE=_u;function GU(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return !0;return !1}var KU=GU;function UU(e,t){return e.has(t)}var AE=UU,qU=kE,XU=KU,YU=AE,ZU=1,QU=2;function JU(e,t,n,r,o,a){var i=n&ZU,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return !1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,m=!0,g=n&QU?new qU:void 0;for(a.set(e,t),a.set(t,e);++d<l;){var v=e[d],h=t[d];if(r)var p=i?r(h,v,d,t,e,a):r(v,h,d,e,t,a);if(p!==void 0){if(p)continue;m=!1;break}if(g){if(!XU(t,function(b,y){if(!YU(g,y)&&(v===b||o(v,b,n,r,a)))return g.push(y)})){m=!1;break}}else if(!(v===h||o(v,h,n,r,a))){m=!1;break}}return a.delete(e),a.delete(t),m}var jE=JU;function eq(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}var tq=eq;function nq(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var dp=nq,mC=Fi,gC=LS,rq=Bv,oq=jE,aq=tq,iq=dp,lq=1,sq=2,cq="[object Boolean]",uq="[object Date]",dq="[object Error]",fq="[object Map]",mq="[object Number]",gq="[object RegExp]",vq="[object Set]",hq="[object String]",pq="[object Symbol]",bq="[object ArrayBuffer]",yq="[object DataView]",vC=mC?mC.prototype:void 0,xm=vC?vC.valueOf:void 0;function Cq(e,t,n,r,o,a,i){switch(n){case yq:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case bq:return !(e.byteLength!=t.byteLength||!a(new gC(e),new gC(t)));case cq:case uq:case mq:return rq(+e,+t);case dq:return e.name==t.name&&e.message==t.message;case gq:case hq:return e==t+"";case fq:var l=aq;case vq:var s=r&lq;if(l||(l=iq),e.size!=t.size&&!s)return !1;var c=i.get(e);if(c)return c==t;r|=sq,i.set(e,t);var u=oq(l(e),l(t),r,o,a,i);return i.delete(e),u;case pq:if(xm)return xm.call(e)==xm.call(t)}return !1}var Sq=Cq,hC=RS,$q=1,wq=Object.prototype,xq=wq.hasOwnProperty;function Eq(e,t,n,r,o,a){var i=n&$q,l=hC(e),s=l.length,c=hC(t),u=c.length;if(s!=u&&!i)return !1;for(var d=s;d--;){var m=l[d];if(!(i?m in t:xq.call(t,m)))return !1}var g=a.get(e),v=a.get(t);if(g&&v)return g==t&&v==e;var h=!0;a.set(e,t),a.set(t,e);for(var p=i;++d<s;){m=l[d];var b=e[m],y=t[m];if(r)var C=i?r(y,b,m,t,e,a):r(b,y,m,e,t,a);if(!(C===void 0?b===y||o(b,y,n,r,a):C)){h=!1;break}p||(p=m=="constructor");}if(h&&!p){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(h=!1);}return a.delete(e),a.delete(t),h}var Oq=Eq,Em=Vv,Iq=jE,Pq=Sq,Mq=Oq,pC=dd,bC=ro,yC=Uv,Rq=$S,_q=1,CC="[object Arguments]",SC="[object Array]",_c="[object Object]",Nq=Object.prototype,$C=Nq.hasOwnProperty;function Tq(e,t,n,r,o,a){var i=bC(e),l=bC(t),s=i?SC:pC(e),c=l?SC:pC(t);s=s==CC?_c:s,c=c==CC?_c:c;var u=s==_c,d=c==_c,m=s==c;if(m&&yC(e)){if(!yC(t))return !1;i=!0,u=!1;}if(m&&!u)return a||(a=new Em),i||Rq(e)?Iq(e,t,n,r,o,a):Pq(e,t,s,n,r,o,a);if(!(n&_q)){var g=u&&$C.call(e,"__wrapped__"),v=d&&$C.call(t,"__wrapped__");if(g||v){var h=g?e.value():e,p=v?t.value():t;return a||(a=new Em),o(h,p,n,r,a)}}return m?(a||(a=new Em),Mq(e,t,n,r,o,a)):!1}var Lq=Tq,kq=Lq,wC=ra;function DE(e,t,n,r,o){return e===t?!0:e==null||t==null||!wC(e)&&!wC(t)?e!==e&&t!==t:kq(e,t,n,r,DE,o)}var fp=DE,Aq=fp;function jq(e,t){return Aq(e,t)}var Dq=jq;const zq=Bn(Dq);var Fq=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),zq(e,t)};function qo(e,t,n){n===void 0&&(n={});var r=Ti(t);LE(function(){var o=hf(n.target,window);if(o!=null&&o.addEventListener){var a=function(i){return r.current(i)};return o.addEventListener(e,a,{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,a,{capture:n.capture});}}},[e,n.capture,n.once,n.passive],n.target);}function zE(e){var t=bn(f.useState(e),2),n=t[0],r=t[1],o=f.useRef(n);o.current=n;var a=f.useCallback(function(){return o.current},[]);return [n,r,a]}const Om=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,a=n.onChange,i=bn(TU(!1),2),l=i[0],s=i[1],c=s.setTrue,u=s.setFalse;return qo("mouseenter",function(){r==null||r(),c(),a==null||a(!0);},{target:e}),qo("mouseleave",function(){o==null||o(),u(),a==null||a(!1);},{target:e}),l};var Bq=function(e,t,n){var r=f.useRef(),o=f.useRef(0);Fq(t,r.current)||(r.current=t,o.current+=1),LE(e,[o.current],n);};const Hq=Bq;var Wq=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const Vq=Wq;var FE={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:Vq?[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},nv={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"?FE.meta.includes(e.keyCode):e.metaKey}};function Gq(e){var t=Object.keys(nv).reduce(function(n,r){return nv[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function xC(e,t,n){var r,o;if(!e.key)return !1;if(RE(t))return e.keyCode===t;var a=t.split("."),i=0;try{for(var l=ev(a),s=l.next();!s.done;s=l.next()){var c=s.value,u=nv[c],d=FE[c.toLowerCase()];(u&&u(e)||d&&d===e.keyCode)&&i++;}}catch(m){r={error:m};}finally{try{s&&!s.done&&(o=l.return)&&o.call(l);}finally{if(r)throw r.error}}return n?i===a.length&&Gq(e)===a.length:i===a.length}function Kq(e,t){return tl(e)?e:ZK(e)||RE(e)?function(n){return xC(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return xC(n,r,t)})}:function(){return !!e}}var Uq=["keydown"];function wn(e,t,n){var r=n||{},o=r.events,a=o===void 0?Uq:o,i=r.target,l=r.exactMatch,s=l===void 0?!1:l,c=r.useCapture,u=c===void 0?!1:c,d=Ti(t),m=Ti(e);Hq(function(){var g,v,h,p=hf(i,window);if(p){var b=function(x){var $,S=Kq(m.current,s);if(S(x))return ($=d.current)===null||$===void 0?void 0:$.call(d,x)};try{for(var y=ev(a),C=y.next();!C.done;C=y.next()){var w=C.value;(h=p==null?void 0:p.addEventListener)===null||h===void 0||h.call(p,w,b,u);}}catch(x){g={error:x};}finally{try{C&&!C.done&&(v=y.return)&&v.call(y);}finally{if(g)throw g.error}}return function(){var x,$,S;try{for(var O=ev(a),E=O.next();!E.done;E=O.next()){var I=E.value;(S=p==null?void 0:p.removeEventListener)===null||S===void 0||S.call(p,I,b,u);}}catch(P){x={error:P};}finally{try{E&&!E.done&&($=O.return)&&$.call(O);}finally{if(x)throw x.error}}}}},[a],i);}function BE(e){var t=f.useRef(0),n=bn(f.useState(e),2),r=n[0],o=n[1],a=f.useCallback(function(i){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(i);});},[]);return Us(function(){cancelAnimationFrame(t.current);}),[r,a]}var qq={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 Xq=function(e){var t=bn(BE(qq),2),n=t[0],r=t[1];return qo("mousemove",function(o){var a=o.screenX,i=o.screenY,l=o.clientX,s=o.clientY,c=o.pageX,u=o.pageY,d={screenX:a,screenY:i,clientX:l,clientY:s,pageX:c,pageY:u,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},m=hf(e);if(m){var g=m.getBoundingClientRect(),v=g.left,h=g.top,p=g.width,b=g.height;d.elementPosX=v+window.pageXOffset,d.elementPosY=h+window.pageYOffset,d.elementX=c-d.elementPosX,d.elementY=u-d.elementPosY,d.elementW=p,d.elementH=b;}r(d);},{target:function(){return document}}),n};var Yq=function(e,t){return !Object.is(e,t)};function Zq(e,t){t===void 0&&(t=Yq);var n=f.useRef(),r=f.useRef();return t(r.current,e)&&(n.current=r.current,r.current=e),n.current}var Qq=function(){var e=f.useRef(!1);return f.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const Jq=Qq,eX=PE(f.useLayoutEffect),tX="_modal-mask_1wljt_1",nX="_modal_1wljt_1",rX="_modal-header_1wljt_25",oX="_modal-body_1wljt_33",aX="_modal-title_1wljt_39",iX="_btn-close_1wljt_47",Or={modalMask:tX,modal:nX,modalHeader:rX,modalBody:oX,modalTitle:aX,btnClose:iX};let _l=0;const lX=()=>{_l++,document.body.style.overflow="hidden";},sX=()=>{_l--,_l<0&&(_l=0),_l===0&&(document.body.style.overflow="");};function pf({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,cssModalMask:a,styleModal:i,clsModal:l,cssModal:s,width:c,hideWhenMaskOnClick:u=!1,hideWhenEsc:d=!1}){f.useLayoutEffect(()=>{e?lX():sX();},[e]);const m=f.useRef(null),g=zs(),{bg:v,c:h}=f.useMemo(()=>{const w=window.getComputedStyle(document.body).backgroundColor,x=window.getComputedStyle(document.body).color;return {bg:w,c:x}},[g]),p=f.useMemo(()=>g?{"--bg":v,"--c":h,backgroundColor:v,color:h}:{},[v,h,g]),b=f.useId(),y=f.useMemo(()=>{const w=document.createElement("div");return w.classList.add(Zo),w.setAttribute("data-id","base-modal-"+b),document.body.appendChild(w),w},[]),C=ft(w=>{var $;const x=w.target;($=m.current)!=null&&$.contains(x)||x.closest('.ant-tooltip-inner[role="tooltip"]')||x.closest('.ant-popover-inner[role="tooltip"]')||u&&t();});return wn("esc",w=>{e&&d&&(w.preventDefault(),w.stopImmediatePropagation(),setTimeout(t));}),e?gS.createPortal(j("div",{style:r,className:G(Or.modalMask,o),css:a,onClick:C,children:j("div",{style:{...p,width:c,...i},className:G(Or.modal,l),css:s,ref:m,children:n})}),y):null}const bf=e=>j(Tt,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});function mp(e){return {all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n]);},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]));},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n);}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n);});}}}let cX=class extends Error{constructor(t){super(t),this.name="TimeoutError";}},uX=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t;}};const EC=e=>globalThis.DOMException===void 0?new uX(e):new DOMException(e),OC=e=>{const t=e.reason===void 0?EC("This operation was aborted."):e.reason;return t instanceof Error?t:EC(t)};function dX(e,t){const{milliseconds:n,fallback:r,message:o,customTimers:a={setTimeout,clearTimeout}}=t;let i;const s=new Promise((c,u)=>{if(typeof n!="number"||Math.sign(n)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:m}=t;m.aborted&&u(OC(m)),m.addEventListener("abort",()=>{u(OC(m));});}if(n===Number.POSITIVE_INFINITY){e.then(c,u);return}const d=new cX;i=a.setTimeout.call(void 0,()=>{if(r){try{c(r());}catch(m){u(m);}return}typeof e.cancel=="function"&&e.cancel(),o===!1?c():o instanceof Error?u(o):(d.message=o??`Promise timed out after ${n} milliseconds`,u(d));},n),(async()=>{try{c(await e);}catch(m){u(m);}})();}).finally(()=>{s.clear();});return s.clear=()=>{a.clearTimeout.call(void 0,i),i=void 0;},s}const fX=e=>{const t=e.on||e.addListener||e.addEventListener,n=e.off||e.removeListener||e.removeEventListener;if(!t||!n)throw new TypeError("Emitter is not compatible");return {addListener:t.bind(e),removeListener:n.bind(e)}};function mX(e,t,n){let r;const o=new Promise((a,i)=>{var g;if(n={rejectionEvents:["error"],multiArgs:!1,resolveImmediately:!1,...n},!(n.count>=0&&(n.count===Number.POSITIVE_INFINITY||Number.isInteger(n.count))))throw new TypeError("The `count` option should be at least 0 or more");(g=n.signal)==null||g.throwIfAborted();const l=[t].flat(),s=[],{addListener:c,removeListener:u}=fX(e),d=(...v)=>{const h=n.multiArgs?v:v[0];n.filter&&!n.filter(h)||(s.push(h),n.count===s.length&&(r(),a(s)));},m=v=>{r(),i(v);};r=()=>{for(const v of l)u(v,d);for(const v of n.rejectionEvents)u(v,m);};for(const v of l)c(v,d);for(const v of n.rejectionEvents)c(v,m);n.signal&&n.signal.addEventListener("abort",()=>{m(n.signal.reason);},{once:!0}),n.resolveImmediately&&a(s);});if(o.cancel=r,typeof n.timeout=="number"){const a=dX(o,{milliseconds:n.timeout});return a.cancel=r,a}return o}function gX(e,t,n){typeof n=="function"&&(n={filter:n}),n={...n,count:1,resolveImmediately:!1};const r=mX(e,t,n),o=r.then(a=>a[0]);return o.cancel=r.cancel,o}var vX=Object.defineProperty,Nu=Object.getOwnPropertySymbols,HE=Object.prototype.hasOwnProperty,WE=Object.prototype.propertyIsEnumerable,IC=(e,t,n)=>t in e?vX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hX=(e,t)=>{for(var n in t||(t={}))HE.call(t,n)&&IC(e,n,t[n]);if(Nu)for(var n of Nu(t))WE.call(t,n)&&IC(e,n,t[n]);return e},pX=(e,t)=>{var n={};for(var r in e)HE.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Nu)for(var r of Nu(e))t.indexOf(r)<0&&WE.call(e,r)&&(n[r]=e[r]);return n};/**
* @license QR Code generator library (TypeScript)
* Copyright (c) Project Nayuki.
* SPDX-License-Identifier: MIT
*/var ka;(e=>{const t=class{constructor(s,c,u,d){if(this.version=s,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],s<t.MIN_VERSION||s>t.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=s*4+17;let m=[];for(let v=0;v<this.size;v++)m.push(!1);for(let v=0;v<this.size;v++)this.modules.push(m.slice()),this.isFunction.push(m.slice());this.drawFunctionPatterns();const g=this.addEccAndInterleave(u);if(this.drawCodewords(g),d==-1){let v=1e9;for(let h=0;h<8;h++){this.applyMask(h),this.drawFormatBits(h);const p=this.getPenaltyScore();p<v&&(d=h,v=p),this.applyMask(h);}}a(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[];}static encodeText(s,c){const u=e.QrSegment.makeSegments(s);return t.encodeSegments(u,c)}static encodeBinary(s,c){const u=e.QrSegment.makeBytes(s);return t.encodeSegments([u],c)}static encodeSegments(s,c,u=1,d=40,m=-1,g=!0){if(!(t.MIN_VERSION<=u&&u<=d&&d<=t.MAX_VERSION)||m<-1||m>7)throw new RangeError("Invalid value");let v,h;for(v=u;;v++){const C=t.getNumDataCodewords(v,c)*8,w=l.getTotalBits(s,v);if(w<=C){h=w;break}if(v>=d)throw new RangeError("Data too long")}for(const C of [t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])g&&h<=t.getNumDataCodewords(v,C)*8&&(c=C);let p=[];for(const C of s){r(C.mode.modeBits,4,p),r(C.numChars,C.mode.numCharCountBits(v),p);for(const w of C.getData())p.push(w);}a(p.length==h);const b=t.getNumDataCodewords(v,c)*8;a(p.length<=b),r(0,Math.min(4,b-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let C=236;p.length<b;C^=253)r(C,8,p);let y=[];for(;y.length*8<p.length;)y.push(0);return p.forEach((C,w)=>y[w>>>3]|=C<<7-(w&7)),new t(v,c,y,m)}getModule(s,c){return 0<=s&&s<this.size&&0<=c&&c<this.size&&this.modules[c][s]}getModules(){return this.modules}drawFunctionPatterns(){for(let u=0;u<this.size;u++)this.setFunctionModule(6,u,u%2==0),this.setFunctionModule(u,6,u%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const s=this.getAlignmentPatternPositions(),c=s.length;for(let u=0;u<c;u++)for(let d=0;d<c;d++)u==0&&d==0||u==0&&d==c-1||u==c-1&&d==0||this.drawAlignmentPattern(s[u],s[d]);this.drawFormatBits(0),this.drawVersion();}drawFormatBits(s){const c=this.errorCorrectionLevel.formatBits<<3|s;let u=c;for(let m=0;m<10;m++)u=u<<1^(u>>>9)*1335;const d=(c<<10|u)^21522;a(d>>>15==0);for(let m=0;m<=5;m++)this.setFunctionModule(8,m,o(d,m));this.setFunctionModule(8,7,o(d,6)),this.setFunctionModule(8,8,o(d,7)),this.setFunctionModule(7,8,o(d,8));for(let m=9;m<15;m++)this.setFunctionModule(14-m,8,o(d,m));for(let m=0;m<8;m++)this.setFunctionModule(this.size-1-m,8,o(d,m));for(let m=8;m<15;m++)this.setFunctionModule(8,this.size-15+m,o(d,m));this.setFunctionModule(8,this.size-8,!0);}drawVersion(){if(this.version<7)return;let s=this.version;for(let u=0;u<12;u++)s=s<<1^(s>>>11)*7973;const c=this.version<<12|s;a(c>>>18==0);for(let u=0;u<18;u++){const d=o(c,u),m=this.size-11+u%3,g=Math.floor(u/3);this.setFunctionModule(m,g,d),this.setFunctionModule(g,m,d);}}drawFinderPattern(s,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const m=Math.max(Math.abs(d),Math.abs(u)),g=s+d,v=c+u;0<=g&&g<this.size&&0<=v&&v<this.size&&this.setFunctionModule(g,v,m!=2&&m!=4);}}drawAlignmentPattern(s,c){for(let u=-2;u<=2;u++)for(let d=-2;d<=2;d++)this.setFunctionModule(s+d,c+u,Math.max(Math.abs(d),Math.abs(u))!=1);}setFunctionModule(s,c,u){this.modules[c][s]=u,this.isFunction[c][s]=!0;}addEccAndInterleave(s){const c=this.version,u=this.errorCorrectionLevel;if(s.length!=t.getNumDataCodewords(c,u))throw new RangeError("Invalid argument");const d=t.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][c],m=t.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c],g=Math.floor(t.getNumRawDataModules(c)/8),v=d-g%d,h=Math.floor(g/d);let p=[];const b=t.reedSolomonComputeDivisor(m);for(let C=0,w=0;C<d;C++){let x=s.slice(w,w+h-m+(C<v?0:1));w+=x.length;const $=t.reedSolomonComputeRemainder(x,b);C<v&&x.push(0),p.push(x.concat($));}let y=[];for(let C=0;C<p[0].length;C++)p.forEach((w,x)=>{(C!=h-m||x>=v)&&y.push(w[C]);});return a(y.length==g),y}drawCodewords(s){if(s.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let d=0;d<this.size;d++)for(let m=0;m<2;m++){const g=u-m,h=(u+1&2)==0?this.size-1-d:d;!this.isFunction[h][g]&&c<s.length*8&&(this.modules[h][g]=o(s[c>>>3],7-(c&7)),c++);}}a(c==s.length*8);}applyMask(s){if(s<0||s>7)throw new RangeError("Mask value out of range");for(let c=0;c<this.size;c++)for(let u=0;u<this.size;u++){let d;switch(s){case 0:d=(u+c)%2==0;break;case 1:d=c%2==0;break;case 2:d=u%3==0;break;case 3:d=(u+c)%3==0;break;case 4:d=(Math.floor(u/3)+Math.floor(c/2))%2==0;break;case 5:d=u*c%2+u*c%3==0;break;case 6:d=(u*c%2+u*c%3)%2==0;break;case 7:d=((u+c)%2+u*c%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[c][u]&&d&&(this.modules[c][u]=!this.modules[c][u]);}}getPenaltyScore(){let s=0;for(let m=0;m<this.size;m++){let g=!1,v=0,h=[0,0,0,0,0,0,0];for(let p=0;p<this.size;p++)this.modules[m][p]==g?(v++,v==5?s+=t.PENALTY_N1:v>5&&s++):(this.finderPenaltyAddHistory(v,h),g||(s+=this.finderPenaltyCountPatterns(h)*t.PENALTY_N3),g=this.modules[m][p],v=1);s+=this.finderPenaltyTerminateAndCount(g,v,h)*t.PENALTY_N3;}for(let m=0;m<this.size;m++){let g=!1,v=0,h=[0,0,0,0,0,0,0];for(let p=0;p<this.size;p++)this.modules[p][m]==g?(v++,v==5?s+=t.PENALTY_N1:v>5&&s++):(this.finderPenaltyAddHistory(v,h),g||(s+=this.finderPenaltyCountPatterns(h)*t.PENALTY_N3),g=this.modules[p][m],v=1);s+=this.finderPenaltyTerminateAndCount(g,v,h)*t.PENALTY_N3;}for(let m=0;m<this.size-1;m++)for(let g=0;g<this.size-1;g++){const v=this.modules[m][g];v==this.modules[m][g+1]&&v==this.modules[m+1][g]&&v==this.modules[m+1][g+1]&&(s+=t.PENALTY_N2);}let c=0;for(const m of this.modules)c=m.reduce((g,v)=>g+(v?1:0),c);const u=this.size*this.size,d=Math.ceil(Math.abs(c*20-u*10)/u)-1;return a(0<=d&&d<=9),s+=d*t.PENALTY_N4,a(0<=s&&s<=2568888),s}getAlignmentPatternPositions(){if(this.version==1)return [];{const s=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(s*2-2))*2;let u=[6];for(let d=this.size-7;u.length<s;d-=c)u.splice(1,0,d);return u}}static getNumRawDataModules(s){if(s<t.MIN_VERSION||s>t.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*s+128)*s+64;if(s>=2){const u=Math.floor(s/7)+2;c-=(25*u-10)*u-55,s>=7&&(c-=36);}return a(208<=c&&c<=29648),c}static getNumDataCodewords(s,c){return Math.floor(t.getNumRawDataModules(s)/8)-t.ECC_CODEWORDS_PER_BLOCK[c.ordinal][s]*t.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][s]}static reedSolomonComputeDivisor(s){if(s<1||s>255)throw new RangeError("Degree out of range");let c=[];for(let d=0;d<s-1;d++)c.push(0);c.push(1);let u=1;for(let d=0;d<s;d++){for(let m=0;m<c.length;m++)c[m]=t.reedSolomonMultiply(c[m],u),m+1<c.length&&(c[m]^=c[m+1]);u=t.reedSolomonMultiply(u,2);}return c}static reedSolomonComputeRemainder(s,c){let u=c.map(d=>0);for(const d of s){const m=d^u.shift();u.push(0),c.forEach((g,v)=>u[v]^=t.reedSolomonMultiply(g,m));}return u}static reedSolomonMultiply(s,c){if(s>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let d=7;d>=0;d--)u=u<<1^(u>>>7)*285,u^=(c>>>d&1)*s;return a(u>>>8==0),u}finderPenaltyCountPatterns(s){const c=s[1];a(c<=this.size*3);const u=c>0&&s[2]==c&&s[3]==c*3&&s[4]==c&&s[5]==c;return (u&&s[0]>=c*4&&s[6]>=c?1:0)+(u&&s[6]>=c*4&&s[0]>=c?1:0)}finderPenaltyTerminateAndCount(s,c,u){return s&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(s,c){c[0]==0&&(s+=this.size),c.pop(),c.unshift(s);}};let n=t;n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;function r(s,c,u){if(c<0||c>31||s>>>c)throw new RangeError("Value out of range");for(let d=c-1;d>=0;d--)u.push(s>>>d&1);}function o(s,c){return (s>>>c&1)!=0}function a(s){if(!s)throw new Error("Assertion error")}const i=class{constructor(s,c,u){if(this.mode=s,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice();}static makeBytes(s){let c=[];for(const u of s)r(u,8,c);return new i(i.Mode.BYTE,s.length,c)}static makeNumeric(s){if(!i.isNumeric(s))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u<s.length;){const d=Math.min(s.length-u,3);r(parseInt(s.substr(u,d),10),d*3+1,c),u+=d;}return new i(i.Mode.NUMERIC,s.length,c)}static makeAlphanumeric(s){if(!i.isAlphanumeric(s))throw new RangeError("String contains unencodable characters in alphanumeric mode");let c=[],u;for(u=0;u+2<=s.length;u+=2){let d=i.ALPHANUMERIC_CHARSET.indexOf(s.charAt(u))*45;d+=i.ALPHANUMERIC_CHARSET.indexOf(s.charAt(u+1)),r(d,11,c);}return u<s.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(s.charAt(u)),6,c),new i(i.Mode.ALPHANUMERIC,s.length,c)}static makeSegments(s){return s==""?[]:i.isNumeric(s)?[i.makeNumeric(s)]:i.isAlphanumeric(s)?[i.makeAlphanumeric(s)]:[i.makeBytes(i.toUtf8ByteArray(s))]}static makeEci(s){let c=[];if(s<0)throw new RangeError("ECI assignment value out of range");if(s<128)r(s,8,c);else if(s<16384)r(2,2,c),r(s,14,c);else if(s<1e6)r(6,3,c),r(s,21,c);else throw new RangeError("ECI assignment value out of range");return new i(i.Mode.ECI,0,c)}static isNumeric(s){return i.NUMERIC_REGEX.test(s)}static isAlphanumeric(s){return i.ALPHANUMERIC_REGEX.test(s)}getData(){return this.bitData.slice()}static getTotalBits(s,c){let u=0;for(const d of s){const m=d.mode.numCharCountBits(c);if(d.numChars>=1<<m)return 1/0;u+=4+m+d.bitData.length;}return u}static toUtf8ByteArray(s){s=encodeURI(s);let c=[];for(let u=0;u<s.length;u++)s.charAt(u)!="%"?c.push(s.charCodeAt(u)):(c.push(parseInt(s.substr(u+1,2),16)),u+=2);return c}};let l=i;l.NUMERIC_REGEX=/^[0-9]*$/,l.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,l.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=l;})(ka||(ka={}));(e=>{(t=>{const n=class{constructor(o,a){this.ordinal=o,this.formatBits=a;}};let r=n;r.LOW=new n(0,1),r.MEDIUM=new n(1,0),r.QUARTILE=new n(2,3),r.HIGH=new n(3,2),t.Ecc=r;})(e.QrCode||(e.QrCode={}));})(ka||(ka={}));(e=>{(t=>{const n=class{constructor(o,a){this.modeBits=o,this.numBitsCharCount=a;}numCharCountBits(o){return this.numBitsCharCount[Math.floor((o+7)/17)]}};let r=n;r.NUMERIC=new n(1,[10,12,14]),r.ALPHANUMERIC=new n(2,[9,11,13]),r.BYTE=new n(4,[8,16,16]),r.KANJI=new n(8,[8,10,12]),r.ECI=new n(7,[0,0,0]),t.Mode=r;})(e.QrSegment||(e.QrSegment={}));})(ka||(ka={}));var Nl=ka;/**
* @license qrcode.react
* Copyright (c) Paul O'Shannessy
* SPDX-License-Identifier: ISC
*/var bX={L:Nl.QrCode.Ecc.LOW,M:Nl.QrCode.Ecc.MEDIUM,Q:Nl.QrCode.Ecc.QUARTILE,H:Nl.QrCode.Ecc.HIGH},yX=128,CX="L",SX="#FFFFFF",$X="#000000",wX=!1,VE=4,xX=.1;function EX(e,t=0){const n=[];return e.forEach(function(r,o){let a=null;r.forEach(function(i,l){if(!i&&a!==null){n.push(`M${a+t} ${o+t}h${l-a}v1H${a+t}z`),a=null;return}if(l===r.length-1){if(!i)return;a===null?n.push(`M${l+t},${o+t} h1v1H${l+t}z`):n.push(`M${a+t},${o+t} h${l+1-a}v1H${a+t}z`);return}i&&a===null&&(a=l);});}),n.join("")}function OX(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((o,a)=>a<t.x||a>=t.x+t.w?o:!1))}function IX(e,t,n,r){if(r==null)return null;const o=n?VE:0,a=e.length+o*2,i=Math.floor(t*xX),l=a/t,s=(r.width||i)*l,c=(r.height||i)*l,u=r.x==null?e.length/2-s/2:r.x*l,d=r.y==null?e.length/2-c/2:r.y*l;let m=null;if(r.excavate){let g=Math.floor(u),v=Math.floor(d),h=Math.ceil(s+u-g),p=Math.ceil(c+d-v);m={x:g,y:v,w:h,h:p};}return {x:u,y:d,h:c,w:s,excavation:m}}(function(){try{new Path2D().addPath(new Path2D);}catch{return !1}return !0})();function PX(e){const t=e,{value:n,size:r=yX,level:o=CX,bgColor:a=SX,fgColor:i=$X,includeMargin:l=wX,imageSettings:s}=t,c=pX(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let u=Nl.QrCode.encodeText(n,bX[o]).getModules();const d=l?VE:0,m=u.length+d*2,g=IX(u,r,l,s);let v=null;s!=null&&g!=null&&(g.excavation!=null&&(u=OX(u,g.excavation)),v=f.createElement("image",{xlinkHref:s.src,height:g.h,width:g.w,x:g.x+d,y:g.y+d,preserveAspectRatio:"none"}));const h=EX(u,d);return f.createElement("svg",hX({height:r,width:r,viewBox:`0 0 ${m} ${m}`},c),f.createElement("path",{fill:a,d:`M0,0 h${m}v${m}H0z`,shapeRendering:"crispEdges"}),f.createElement("path",{fill:i,d:h,shapeRendering:"crispEdges"}),v)}const GE=e=>{const t=r$(e,Si.appkey,Si.appsec);return new URLSearchParams({...e,sign:t})};async function MX(){const t=(await yn.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/auth_code",GE({appkey:Si.appkey,local_id:"0",ts:"0"}))).data;if(!Hr(t)){Pn((t==null?void 0:t.message)||"获取 auth_code 失败");return}return t.data}async function RX(e){const n=(await yn.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/poll",GE({appkey:Si.appkey,auth_code:e,local_id:"0",ts:"0"}))).data,r={0:"成功","-3":"API校验密匙错误","-400":"请求错误","-404":"啥都木有",86038:"二维码已失效",86039:"二维码尚未确认",86090:"二维码已扫码未确认"};if(!Hr(n)){const i=n.code.toString(),l=n.message||r[i]||"未知错误";return i==="86038"?{success:!1,message:l,action:"refresh"}:i==="86039"||i==="86090"?{success:!1,message:l,action:"wait"}:{success:!1,message:l,action:void 0}}const o=n.data.access_token,a=Date.now()+n.data.expires_in*1e3;return {success:!0,message:"获取成功",accessKey:o,accessKeyExpireAt:a}}const gp={show:!1,qrcode:"",auth_code:"",message:""},vp=mr({...gp}),Qa=vp;function Hl(e){FX(),Object.assign(vp,e);}function _X(e){Hl({...gp,...e,show:!0});}function KE(){UE.emit("hide"),Hl({...gp});}const UE=mp();function NX(){return gX(UE,"hide")}var TX={name:"1dbae5v",styles:"font-size:13px;margin-bottom:20px"},LX={name:"1ryaosi",styles:"font-size:14px;display:flex;align-items:center;justify-content:center;min-height:25px;margin-bottom:5px"},kX={name:"1f2tjv5",styles:"margin-top:20px;margin-bottom:40px"},AX={name:"82zbxv",styles:"text-align:center;padding-top:15px"},jX={name:"16s5rj8",styles:"width:280px"},DX={name:"9vstlm",styles:"backdrop-filter:blur(10px)"};function zX(){const{qrcode:e,show:t,message:n}=vr(vp),r=KE,o=zs();return be(pf,{show:t,onHide:r,hideWhenMaskOnClick:!1,hideWhenEsc:!1,cssModalMask:DX,cssModal:jX,children:[be("div",{className:Or.modalHeader,children:[j("div",{className:Or.modalTitle}),j("div",{className:"space",style:{flex:1}}),j(bf,{onClick:r})]}),j("div",{className:Or.modalBody,children:be("div",{className:"wrapper",css:AX,children:[be("div",{className:"qr-wrapper",css:kX,children:[j("div",{css:LX,children:n||""}),e?j(PX,{value:e,size:200,includeMargin:o}):j("div",{className:"qrcode-placeholder"})]}),be("div",{className:"footnote",css:TX,children:["打开「哔哩哔哩」或「bilibili」APP ",j("br",{}),"扫码获取 access_key"]})]})})]})}const FX=kx(function(){const t=document.createElement("div");t.classList.add("modal-tv-qrcode-auth",Zo),document.body.appendChild(t),Ks(t).render(j(lp,{children:j(zX,{})}));});async function PC(){const e=await MX();if(e)return _X({qrcode:e.url,auth_code:e.auth_code}),!0}async function BX(){if(!await PC())return;let t,n=Qa.auth_code;function r(){if(!Qa.show||!Qa.auth_code||n!==Qa.auth_code)return !0}for(;;){if(r())return;const o=Xn(1500),a=NX();if(await Promise.race([o,a]),a.cancel(),r()||r())return;t=await RX(Qa.auth_code);const{success:i,accessKey:l,accessKeyExpireAt:s,message:c,action:u}=t;if(r())return;if(Hl({message:c}),i)return await Xn(1e3),KE(),{accessKey:l,accessKeyExpireAt:s};if(u==="refresh"){if(r()||(await Xn(2e3),r()))return;await PC(),n=Qa.auth_code,Hl({message:"已刷新二维码"});continue}if(u!=="wait"){if(r())return;Hl({message:c}),Pn(c);return}}}async function HX(){const{accessKey:e,accessKeyExpireAt:t}=await BX()||{};!e||!t||(vt.accessKey=e,vt.accessKeyExpireAt=t,Pn("获取成功"));}function WX(){vt.accessKey="",vt.accessKeyExpireAt=0,Pn("已删除 access_key");}const MC=e=>(e||"").replace(/^http:\/\//,"https://");function VX(e){if(!e)return 0;const t=[1,60,360];return e.split(":").map(o=>Number(o)).reverse().reduce((o,a,i)=>o+a*t[i],0)}function Fa(e){return e||(e=0),oa.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function xn(e){if(!e)return "";if(e<=9999)return e.toString();if(e/=1e4,e<=9999){let t=e.toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}if(e/=1e4,e<=9999){let t=e.toFixed(1);return t=t.replace(/\.0$/,""),`${t}亿`}}function Ea(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;if(/^\d+(\.\d+?)?亿$/.test(e))return Number(e.slice(0,-1))*1e8}}const GX=oa().format("YYYY");function mo(e,t=!1){if(!e)return "";const n=oa.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===GX?n.format("M-D"+r):n.format("YY-M-D"+r)}const KX={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function UX(e){if(!(typeof e>"u")&&!(e>=0))return KX[e]}function hp(e){const t=mr({data:Array.from(new Set(e)),has(n){return this.data.indexOf(n)!==-1},add(n){let r=!1;return typeof n=="object"&&n!==null&&(r=this.data.indexOf(mr(n))!==-1),this.data.indexOf(n)===-1&&!r&&this.data.push(n),this},delete(n){const r=this.data.indexOf(n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},forEach(n){this.data.forEach(r=>{n(r,r,this);});},get[Symbol.toStringTag](){return "Set"},toJSON(){return new Set(this.data)},[Symbol.iterator](){return this.data[Symbol.iterator]()},values(){return this.data.values()},keys(){return this.data.values()},entries(){return new Set(this.data).entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}function qX(e){const t=mr({data:Array.from(e||[]),has(n){return this.data.some(r=>r[0]===n)},set(n,r){const o=this.data.find(a=>a[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}var Ar,on,hn,Wo,ys,Vo,Cs,rv,wr,Ur,nd,qE,Ss,ov,$s,av,ws,iv,rd,XE,xs,lv;class XX extends Map{constructor(n={}){super();ar(this,Cs);ar(this,wr);ar(this,nd);ar(this,Ss);ar(this,$s);ar(this,ws);ar(this,rd);ar(this,xs);ar(this,Ar,0);ar(this,on,new Map);ar(this,hn,new Map);ar(this,Wo,void 0);ar(this,ys,void 0);ar(this,Vo,void 0);if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof n.maxAge=="number"&&n.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");Zn(this,Wo,n.maxSize),Zn(this,ys,n.maxAge||Number.POSITIVE_INFINITY),Zn(this,Vo,n.onEviction);}get __oldCache(){return pt(this,hn)}get(n){if(pt(this,on).has(n)){const r=pt(this,on).get(n);return dn(this,Ss,ov).call(this,n,r)}if(pt(this,hn).has(n)){const r=pt(this,hn).get(n);if(dn(this,wr,Ur).call(this,n,r)===!1)return dn(this,rd,XE).call(this,n,r),r.value}}set(n,r,{maxAge:o=pt(this,ys)}={}){const a=typeof o=="number"&&o!==Number.POSITIVE_INFINITY?Date.now()+o:void 0;return pt(this,on).has(n)?pt(this,on).set(n,{value:r,expiry:a}):dn(this,ws,iv).call(this,n,{value:r,expiry:a}),this}has(n){return pt(this,on).has(n)?!dn(this,wr,Ur).call(this,n,pt(this,on).get(n)):pt(this,hn).has(n)?!dn(this,wr,Ur).call(this,n,pt(this,hn).get(n)):!1}peek(n){if(pt(this,on).has(n))return dn(this,$s,av).call(this,n,pt(this,on));if(pt(this,hn).has(n))return dn(this,$s,av).call(this,n,pt(this,hn))}delete(n){const r=pt(this,on).delete(n);return r&&Wf(this,Ar)._--,pt(this,hn).delete(n)||r}clear(){pt(this,on).clear(),pt(this,hn).clear(),Zn(this,Ar,0);}resize(n){if(!(n&&n>0))throw new TypeError("`maxSize` must be a number greater than 0");const r=[...dn(this,xs,lv).call(this)],o=r.length-n;o<0?(Zn(this,on,new Map(r)),Zn(this,hn,new Map),Zn(this,Ar,r.length)):(o>0&&dn(this,Cs,rv).call(this,r.slice(0,o)),Zn(this,hn,new Map(r.slice(o))),Zn(this,on,new Map),Zn(this,Ar,0)),Zn(this,Wo,n);}*keys(){for(const[n]of this)yield n;}*values(){for(const[,n]of this)yield n;}*[Symbol.iterator](){for(const n of pt(this,on)){const[r,o]=n;dn(this,wr,Ur).call(this,r,o)===!1&&(yield [r,o.value]);}for(const n of pt(this,hn)){const[r,o]=n;pt(this,on).has(r)||dn(this,wr,Ur).call(this,r,o)===!1&&(yield [r,o.value]);}}*entriesDescending(){let n=[...pt(this,on)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;dn(this,wr,Ur).call(this,a,i)===!1&&(yield [a,i.value]);}n=[...pt(this,hn)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;pt(this,on).has(a)||dn(this,wr,Ur).call(this,a,i)===!1&&(yield [a,i.value]);}}*entriesAscending(){for(const[n,r]of dn(this,xs,lv).call(this))yield [n,r.value];}get size(){if(!pt(this,Ar))return pt(this,hn).size;let n=0;for(const r of pt(this,hn).keys())pt(this,on).has(r)||n++;return Math.min(pt(this,Ar)+n,pt(this,Wo))}get maxSize(){return pt(this,Wo)}entries(){return this.entriesAscending()}forEach(n,r=this){for(const[o,a]of this.entriesAscending())n.call(r,a,o,this);}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}Ar=new WeakMap,on=new WeakMap,hn=new WeakMap,Wo=new WeakMap,ys=new WeakMap,Vo=new WeakMap,Cs=new WeakSet,rv=function(n){if(typeof pt(this,Vo)=="function")for(const[r,o]of n)pt(this,Vo).call(this,r,o.value);},wr=new WeakSet,Ur=function(n,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof pt(this,Vo)=="function"&&pt(this,Vo).call(this,n,r.value),this.delete(n)):!1},nd=new WeakSet,qE=function(n,r){if(dn(this,wr,Ur).call(this,n,r)===!1)return r.value},Ss=new WeakSet,ov=function(n,r){return r.expiry?dn(this,nd,qE).call(this,n,r):r.value},$s=new WeakSet,av=function(n,r){const o=r.get(n);return dn(this,Ss,ov).call(this,n,o)},ws=new WeakSet,iv=function(n,r){pt(this,on).set(n,r),Wf(this,Ar)._++,pt(this,Ar)>=pt(this,Wo)&&(Zn(this,Ar,0),dn(this,Cs,rv).call(this,pt(this,hn)),Zn(this,hn,pt(this,on)),Zn(this,on,new Map));},rd=new WeakSet,XE=function(n,r){pt(this,hn).delete(n),dn(this,ws,iv).call(this,n,r);},xs=new WeakSet,lv=function*(){for(const n of pt(this,hn)){const[r,o]=n;pt(this,on).has(r)||dn(this,wr,Ur).call(this,r,o)===!1&&(yield n);}for(const n of pt(this,on)){const[r,o]=n;dn(this,wr,Ur).call(this,r,o)===!1&&(yield n);}};async function YX(e){return (await yn.get("/x/player/videoshot",{params:{bvid:e,index:"1"}})).data.data}const Im=new XX({maxSize:1e4});async function ZX(e){if(Im.has(e))return Im.get(e);const t=await YX(e),n=[];return Im.set(e,{videoshotData:t,dmData:n}),{videoshotData:t,dmData:n}}function YE(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:Ps()}),a=(await yn.post("/x/v2/history/toview/"+e,r)).data,i=Hr(a);return i||Pn((a==null?void 0:a.message)||"出错了"),i}}const $l=YE("add"),RC=YE("del"),ZE=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const a=(await hd.get(YS+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return Hr(a)}},QX=ZE("dislike"),JX=ZE("cancel"),eY="_reason-list_1tlz9_1",tY="_modal_1tlz9_7",nY="_title-desc_1tlz9_11",rY="_reason_1tlz9_1",oY="_active_1tlz9_36",aY="_reason-no_1tlz9_41",iY="_tips-container_1tlz9_56",lY="_tips_1tlz9_56",Lr={reasonList:eY,modal:tY,titleDesc:nY,reason:rY,active:oY,reasonNo:aY,tipsContainer:iY,tips:lY},yf=qX();function sY(){return vr(yf)}function cY(e){const t=sY();if(e)return t.get(e)}function uY(e){yf.delete(e);}function dY({show:e,onHide:t,item:n}){const[r,o]=f.useState(!1),a=ft(async g=>{if(!n)return;let v=!1,h;try{o(!0),v=await QX(n,g.id);}catch(p){h=p;}finally{o(!1);}if(h)return console.error(h.stack||h),H$();v?pn.success("已标记不想看"):pn.error(lh),v&&(yf.set(n.param,{...g}),t());}),i=f.useMemo(()=>{var g;return ((g=n==null?void 0:n.three_point)==null?void 0:g.dislike_reasons)||[]},[n]),l=()=>!!e&&!!n,s=["1","2","3","4","5","6"];wn(s,g=>{if(!l()||!s.includes(g.key))return;const v=Number(g.key)-1;u(v);const h=document.querySelectorAll(`.${Lr.reason}`)[v]||null;h==null||h.click();});const[c,u]=f.useState(i.length-1);eX(()=>{u(i.length-1);},[i]);const d=g=>()=>{if(!l())return;const v=c+g;v<0||v>i.length-1||u(v);};wn("leftarrow",d(-1),{exactMatch:!0}),wn("rightarrow",d(1),{exactMatch:!0}),wn("uparrow",d(-2),{exactMatch:!0}),wn("downarrow",d(2),{exactMatch:!0}),wn("enter",g=>{var v;l()&&(c<0||c>i.length-1||(g.preventDefault(),g.stopImmediatePropagation(),(v=document.querySelector(`.${Lr.reason}.${Lr.active}`))==null||v.click()));},{exactMatch:!0});const m=f.useMemo(()=>{var g;return ((g=i[c])==null?void 0:g.name)||""},[i,c]);return be(pf,{show:e,onHide:t,clsModal:Lr.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[be("div",{className:Or.modalHeader,children:[be("div",{className:Or.modalTitle,children:["我不想看",j("span",{className:Lr.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),j("div",{className:"space",style:{flex:1}}),j(bf,{onClick:t})]}),be("div",{className:Or.modalBody,children:[j("div",{className:Lr.reasonList,children:i.map((g,v)=>be("button",{className:G(Lr.reason,{[Lr.active]:v===c}),style:{...v===c&&{borderColor:Fr}},"data-id":g.id,onClick:()=>{u(v),a(g);},disabled:r,children:[j("span",{className:Lr.reasonNo,style:{backgroundColor:Fr},children:v+1}),g.name]},g.id))}),be("div",{className:Lr.tipsContainer,children:[be("div",{className:Lr.tips,children:[j(Tt,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),m&&be("div",{className:Lr.tips,children:[j(Tt,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",m,"」, 回车键提交"]})]})]})]})}const Jc={show:!1,onHide:JE,item:null},QE=mr({value:Jc.show}),fY=function(){return vr(QE).value};function JE(){setTimeout(()=>{e2({show:!1,item:null});});}function e2(e){Object.assign(Jc,e),QE.value=Jc.show,mY().render(j(dY,{...Jc,onHide:JE}));}let _C;function mY(){return _C||(_C=(()=>{const e=document.createElement("div");return e.classList.add("show-dislike-container",Zo),document.body.appendChild(e),Ks(e)})()),_C}function gY(e){e!=null&&e.param&&yf.has(e.param)||e2({show:!0,item:e});}const t2=f__namespace.createContext(null),vY=t2.Provider,n2=f__namespace.createContext(null),hY=n2.Provider;var pY=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],r2=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,a=e.className,i=e.style,l=e.checked,s=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,m=d===void 0?"checkbox":d,g=e.title,v=e.onChange,h=dt(e,pY),p=f.useRef(null),b=Gt(u,{value:l}),y=J(b,2),C=y[0],w=y[1];f.useImperativeHandle(t,function(){return {focus:function(){var O;(O=p.current)===null||O===void 0||O.focus();},blur:function(){var O;(O=p.current)===null||O===void 0||O.blur();},input:p.current}});var x=G(o,a,(n={},H(n,"".concat(o,"-checked"),C),H(n,"".concat(o,"-disabled"),s),n)),$=function(O){s||("checked"in e||w(O.target.checked),v==null||v({target:U(U({},e),{},{type:m,checked:O.target.checked}),stopPropagation:function(){O.stopPropagation();},preventDefault:function(){O.preventDefault();},nativeEvent:O.nativeEvent}));};return f__namespace.createElement("span",{className:x,title:g,style:i},f__namespace.createElement("input",xe({},h,{className:"".concat(o,"-input"),ref:p,onChange:$,disabled:s,checked:!!C,type:m})),f__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const bY=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},Lt(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"}})}},yY=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:m,paddingXS:g,dotColorDisabled:v,lineType:h,radioColor:p,radioBgColor:b,calc:y}=e,C=`${t}-inner`,w=4,x=y(o).sub(y(w).mul(2)),$=y(1).mul(o).equal();return {[`${t}-wrapper`]:Object.assign(Object.assign({},Lt(e)),{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:`${B(u)} ${h} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Lt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
&:hover ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:Object.assign({},_a(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:$,height:$,marginBlockStart:y(1).mul(o).div(-2).equal(),marginInlineStart:y(1).mul(o).div(-2).equal(),backgroundColor:p,borderBlockStart:0,borderInlineStart:0,borderRadius:$,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:$,height:$,backgroundColor:s,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:r,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:v}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${y(x).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},CY=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:m,controlHeightLG:g,controlHeightSM:v,paddingXS:h,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:C,buttonSolidCheckedColor:w,colorTextDisabled:x,colorBgContainerDisabled:$,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:O,colorPrimary:E,colorPrimaryHover:I,colorPrimaryActive:P,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:L,buttonSolidCheckedActiveBg:k,calc:A}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:B(A(n).sub(A(o).mul(2)).equal()),background:d,border:`${B(o)} ${a} ${i}`,borderBlockStartWidth:A(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].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:A(o).mul(-1).equal(),insetInlineStart:A(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${B(o)} ${a} ${i}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${r}-group-large &`]:{height:g,fontSize:m,lineHeight:B(A(g).sub(A(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:v,paddingInline:A(h).sub(o).equal(),paddingBlock:0,lineHeight:B(A(v).sub(A(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},_a(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:E,background:C,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:I,borderColor:I,"&::before":{backgroundColor:I}},"&:active":{color:P,borderColor:P,"&::before":{backgroundColor:P}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:N,borderColor:N,"&:hover":{color:w,background:L,borderColor:L},"&:active":{color:w,background:k,borderColor:k}},"&-disabled":{color:x,backgroundColor:$,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:$,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:S,borderColor:i,boxShadow:"none"}}}},SY=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:m,colorPrimaryActive:g,colorWhite:v}=e,h=4,p=a,b=t?p-h*2:p-(h+o)*2;return {radioSize:p,dotSize:b,dotColorDisabled:s,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:g,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:v,radioBgColor:t?l:d}},o2=Kt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${B(n)} ${t}`,a=Ot(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return [bY(a),yY(a),CY(a)]},SY,{unitless:{radioSize:!0,dotSize:!0}});var $Y=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 wY=(e,t)=>{var n,r;const o=f__namespace.useContext(t2),a=f__namespace.useContext(n2),{getPrefixCls:i,direction:l,radio:s}=f__namespace.useContext(nt),c=f__namespace.useRef(null),u=sr(t,c),{isFormItemInput:d}=f__namespace.useContext(Br),m=k=>{var A,T;(A=e.onChange)===null||A===void 0||A.call(e,k),(T=o==null?void 0:o.onChange)===null||T===void 0||T.call(o,k);},{prefixCls:g,className:v,rootClassName:h,children:p,style:b,title:y}=e,C=$Y(e,["prefixCls","className","rootClassName","children","style","title"]),w=i("radio",g),x=((o==null?void 0:o.optionType)||a)==="button",$=x?`${w}-button`:w,S=Mn(w),[O,E,I]=o2(w,S),P=Object.assign({},C),N=f__namespace.useContext(oo);o&&(P.name=o.name,P.onChange=m,P.checked=e.value===o.value,P.disabled=(n=P.disabled)!==null&&n!==void 0?n:o.disabled),P.disabled=(r=P.disabled)!==null&&r!==void 0?r:N;const L=G(`${$}-wrapper`,{[`${$}-wrapper-checked`]:P.checked,[`${$}-wrapper-disabled`]:P.disabled,[`${$}-wrapper-rtl`]:l==="rtl",[`${$}-wrapper-in-form-item`]:d},s==null?void 0:s.className,v,h,E,I,S);return O(f__namespace.createElement(Hs,{component:"Radio",disabled:P.disabled},f__namespace.createElement("label",{className:L,style:Object.assign(Object.assign({},s==null?void 0:s.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y},f__namespace.createElement(r2,Object.assign({},P,{className:G(P.className,!x&&cf),type:"radio",prefixCls:$,ref:u})),p!==void 0?f__namespace.createElement("span",null,p):null)))},xY=f__namespace.forwardRef(wY),Tu=xY,EY=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(nt),[o,a]=Gt(e.defaultValue,{value:e.value}),i=k=>{const A=o,T=k.target.value;"value"in e||a(T);const{onChange:R}=e;R&&T!==A&&R(k);},{prefixCls:l,className:s,rootClassName:c,options:u,buttonStyle:d="outline",disabled:m,children:g,size:v,style:h,id:p,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:w}=e,x=n("radio",l),$=`${x}-group`,S=Mn(x),[O,E,I]=o2(x,S);let P=g;u&&u.length>0&&(P=u.map(k=>typeof k=="string"||typeof k=="number"?f__namespace.createElement(Tu,{key:k.toString(),prefixCls:x,disabled:m,value:k,checked:o===k},k):f__namespace.createElement(Tu,{key:`radio-group-value-options-${k.value}`,prefixCls:x,disabled:k.disabled||m,value:k.value,checked:o===k.value,title:k.title,style:k.style,id:k.id,required:k.required},k.label)));const N=hr(v),L=G($,`${$}-${d}`,{[`${$}-${N}`]:N,[`${$}-rtl`]:r==="rtl"},s,c,E,I,S);return O(f__namespace.createElement("div",Object.assign({},La(e,{aria:!0,data:!0}),{className:L,style:h,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:w,id:p,ref:t}),f__namespace.createElement(vY,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},P)))}),OY=f__namespace.memo(EY);var IY=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=(e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(nt),{prefixCls:r}=e,o=IY(e,["prefixCls"]),a=n("radio",r);return f__namespace.createElement(hY,{value:"button"},f__namespace.createElement(Tu,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},MY=f__namespace.forwardRef(PY),Cf=Tu;Cf.Button=MY;Cf.Group=OY;Cf.__ANT_RADIO=!0;const sv=Cf;function RY(e,t){const n=Object.keys(e),r=ih(JSON.parse(localStorage.getItem(t)||"{}"),n),o=mr({...e,...r});return pd(o,()=>{const a=Ql(o);localStorage.setItem(t,JSON.stringify(a));}),o}const _Y=f.createContext(null),a2=_Y,NY=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Lt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Lt(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({},Lt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},_a(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${B(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
${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}`}}},[`
${n}-checked:not(${n}-disabled),
${t}-checked:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${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 TY(e,t){const n=Ot(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [NY(n)]}const i2=Kt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [TY(n,e)]});var LY=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 kY=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:l=!1,style:s,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:m}=e,g=LY(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:h,checkbox:p}=f__namespace.useContext(nt),b=f__namespace.useContext(a2),{isFormItemInput:y}=f__namespace.useContext(Br),C=f__namespace.useContext(oo),w=(n=(b==null?void 0:b.disabled)||m)!==null&&n!==void 0?n:C,x=f__namespace.useRef(g.value);f__namespace.useEffect(()=>{b==null||b.registerValue(g.value);},[]),f__namespace.useEffect(()=>{if(!d)return g.value!==x.current&&(b==null||b.cancelValue(x.current),b==null||b.registerValue(g.value),x.current=g.value),()=>b==null?void 0:b.cancelValue(g.value)},[g.value]);const $=v("checkbox",r),S=Mn($),[O,E,I]=i2($,S),P=Object.assign({},g);b&&!d&&(P.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),b.toggleOption&&b.toggleOption({label:i,value:g.value});},P.name=b.name,P.checked=b.value.includes(g.value));const N=G(`${$}-wrapper`,{[`${$}-rtl`]:h==="rtl",[`${$}-wrapper-checked`]:P.checked,[`${$}-wrapper-disabled`]:w,[`${$}-wrapper-in-form-item`]:y},p==null?void 0:p.className,o,a,I,S,E),L=G({[`${$}-indeterminate`]:l},cf,E),k=l?"mixed":void 0;return O(f__namespace.createElement(Hs,{component:"Checkbox",disabled:w},f__namespace.createElement("label",{className:N,style:Object.assign(Object.assign({},p==null?void 0:p.style),s),onMouseEnter:c,onMouseLeave:u},f__namespace.createElement(r2,Object.assign({"aria-checked":k},P,{prefixCls:$,className:L,disabled:w,ref:t})),i!==void 0&&f__namespace.createElement("span",null,i))))},AY=f__namespace.forwardRef(kY),l2=AY;var jY=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 DY=f__namespace.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:l,style:s,onChange:c}=e,u=jY(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:m}=f__namespace.useContext(nt),[g,v]=f__namespace.useState(u.value||n||[]),[h,p]=f__namespace.useState([]);f__namespace.useEffect(()=>{"value"in u&&v(u.value||[]);},[u.value]);const b=f__namespace.useMemo(()=>o.map(A=>typeof A=="string"||typeof A=="number"?{label:A,value:A}:A),[o]),y=A=>{p(T=>T.filter(R=>R!==A));},C=A=>{p(T=>[].concat(Fn(T),[A]));},w=A=>{const T=g.indexOf(A.value),R=Fn(g);T===-1?R.push(A.value):R.splice(T,1),"value"in u||v(R),c==null||c(R.filter(_=>h.includes(_)).sort((_,D)=>{const z=b.findIndex(W=>W.value===_),F=b.findIndex(W=>W.value===D);return z-F}));},x=d("checkbox",a),$=`${x}-group`,S=Mn(x),[O,E,I]=i2(x,S),P=Yn(u,["value","disabled"]),N=o.length?b.map(A=>f__namespace.createElement(l2,{prefixCls:x,key:A.value.toString(),disabled:"disabled"in A?A.disabled:u.disabled,value:A.value,checked:g.includes(A.value),onChange:A.onChange,className:`${$}-item`,style:A.style,title:A.title,id:A.id,required:A.required},A.label)):r,L={toggleOption:w,value:g,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:y},k=G($,{[`${$}-rtl`]:m==="rtl"},i,l,I,S,E);return O(f__namespace.createElement("div",Object.assign({className:k,style:s},P,{ref:t}),f__namespace.createElement(a2.Provider,{value:L},N)))}),zY=DY,pp=l2;pp.Group=zY;pp.__ANT_CHECKBOX=!0;const Ys=pp;function fn({configKey:e,label:t,extraAction:n,tooltip:r,...o}){const i=!!sn()[e],l=f.useCallback(c=>{const u=c.target.checked;Un({[e]:u}),n==null||n(u);},[]);let s=j("span",{style:{userSelect:"none"},children:t||e});return r&&(s=j(Ji,{title:r,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:s})),j(Ys,{...o,checked:i,onChange:l,children:s})}function nl({tooltip:e,iconProps:t,tooltipProps:n}){return j(Pt,{children:e&&j(sp,{...n,title:e,children:j(Tt,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const s2=[{key:"recommend-app",icon:"Iphone",label:"推荐",desc:"使用 Bilibili App 端推荐 API"},{key:"recommend-pc",icon:"Computer",label:"推荐",desc:"使用新版首页顶部推荐 API"},{key:"keep-follow-only",icon:"Concern",label:"已关注",desc:"推荐中只保留「已关注」,会很慢"},{key:"dynamic-feed",icon:"Tumblr",iconProps:{size:16},label:"动态",desc:"视频投稿动态",swr:!0},{key:"watchlater",icon:"FileCabinet",iconProps:{size:15},label:"稍后再看",desc:"你添加的稍后再看; 默认随机乱序, 可在设置中关闭乱序",swr:!0},{key:"fav",icon:"Star",iconProps:{size:15},label:"收藏",desc:"你添加的收藏; 默认随机乱序, 可在设置中关闭乱序"},{key:"popular-general",icon:"Fire",iconProps:{size:16},label:"综合热门",desc:"各个领域中新奇好玩的优质内容都在这里~",swr:!0},{key:"popular-weekly",icon:"TrendTwo",iconProps:{size:15},label:"每周必看",desc:"每周五晚 18:00 更新"}],Lu=s2.reduce((e,t)=>({...e,[t.key]:t}),{}),pi=s2.map(e=>e.key);function FY(){return Pn("你需要登录B站后使用该功能! 如已完成登录, 请刷新网页重试~")}const BY=`${mn}-video-source-tab`,Sf=RY({value:"recommend-app"},BY);function HY(){const{hidingTabKeys:e}=sn();return f.useMemo(()=>pi.filter(t=>!e.includes(t)),[e])}function c2(e){return pi.slice().sort((t,n)=>{let r=e.indexOf(t),o=e.indexOf(n);return r===-1&&(r=pi.indexOf(t)),o===-1&&(o=pi.indexOf(n)),r-o})}function WY(){const{customTabKeysOrder:e}=sn();return f.useMemo(()=>c2(e),[e])}function VY(){const{hidingTabKeys:e,customTabKeysOrder:t}=sn(),n=Sh();return f.useMemo(()=>{let r=c2(t);return r=r.filter(o=>!e.includes(o)||!n&&o==="recommend-app"),r.map(o=>Lu[o])},[e,t,n])}function u2(e,t){return pi.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function Zs(){return u2(vr(Sf).value,Sh())}function GY(){return u2(Sf.value,Ms())}const NC={name:"1inoxbd",styles:"margin-right:4px;margin-top:-1px"},KY={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},UY={name:"s0vnfv",styles:"height:32px"};var qY={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},XY={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function d2({onRefresh:e}){const t=Sh(),n=Zs(),{styleUseStandardVideoSourceTab:r}=sn(),o=VY();return be(Pt,{children:[j(sv.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:n,style:{overflow:"hidden"},onFocus:a=>{a.target.blur();},onChange:a=>{const i=a.target.value;if(i!=="recommend-app"&&i!=="recommend-pc"&&!t&&!JD())return FY();Sf.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:o.map(({key:a,label:i,icon:l,iconProps:s})=>j(sv.Button,{css:[KY,r&&UY,"",""],className:"video-source-tab",tabIndex:-1,value:a,children:be("span",{css:XY,children:[j(Tt,{name:l,...s,size:(s==null?void 0:s.size)||18,css:NC}),i]})},a))}),j(nl,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:j(Pt,{children:o.map(({key:a,label:i,icon:l,iconProps:s,desc:c})=>be("div",{css:qY,children:[j(Tt,{name:l,...s,size:(s==null?void 0:s.size)||18,css:NC}),i,": ",c]},a))})})]})}const f2=["xxl","xl","lg","md","sm","xs"],YY=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),ZY=e=>{const t=e,n=[].concat(f2).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,l=`screen${a}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(o<n.length-1){const s=`screen${a}Max`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[s]<=t[u]))throw new Error(`${s}<=${u} fails : !(${t[s]}<=${t[u]})`)}}),e};function QY(){const[,e]=In(),t=YY(ZY(e));return f.useMemo(()=>{const n=new Map;let r=-1,o={};return {matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister();},unregister(){Object.keys(t).forEach(a=>{const i=t[a],l=this.matchHandlers[i];l==null||l.mql.removeListener(l==null?void 0:l.listener);}),n.clear();},register(){Object.keys(t).forEach(a=>{const i=t[a],l=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[a]:u}));},s=window.matchMedia(i);s.addListener(l),this.matchHandlers[i]={mql:s,listener:l},l(s);});},responsiveMap:t}},[e])}function JY(){const[,e]=f__namespace.useReducer(t=>t+1,0);return e}function m2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=f.useRef({}),n=JY(),r=QY();return en(()=>{const o=r.subscribe(a=>{t.current=a,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const eZ=f__namespace.createContext({}),cv=eZ,tZ=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,containerSize:i,containerSizeLG:l,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:m,borderRadiusLG:g,borderRadiusSM:v,lineWidth:h,lineType:p,calc:b}=e,y=(C,w,x)=>({width:C,height:C,lineHeight:B(b(C).sub(b(h).mul(2)).equal()),borderRadius:"50%",[`&${n}-square`]:{borderRadius:x},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:w,[`> ${r}`]:{margin:0}}});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${B(h)} ${p} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(i,c,m)),{"&-lg":Object.assign({},y(l,u,g)),"&-sm":Object.assign({},y(s,d,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},nZ=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return {[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},rZ=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:a,fontSizeXL:i,fontSizeHeading3:l,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return {containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+i)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}},g2=Kt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Ot(e,{avatarBg:n,avatarColor:t});return [tZ(r),nZ(r)]},rZ);var oZ=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 aZ=(e,t)=>{const[n,r]=f__namespace.useState(1),[o,a]=f__namespace.useState(!1),[i,l]=f__namespace.useState(!0),s=f__namespace.useRef(null),c=f__namespace.useRef(null),u=sr(t,s),{getPrefixCls:d,avatar:m}=f__namespace.useContext(nt),g=f__namespace.useContext(cv),v=()=>{if(!c.current||!s.current)return;const Y=c.current.offsetWidth,ce=s.current.offsetWidth;if(Y!==0&&ce!==0){const{gap:Z=4}=e;Z*2<ce&&r(ce-Z*2<Y?(ce-Z*2)/Y:1);}};f__namespace.useEffect(()=>{a(!0);},[]),f__namespace.useEffect(()=>{l(!0),r(1);},[e.src]),f__namespace.useEffect(v,[e.gap]);const h=()=>{const{onError:Y}=e;(Y==null?void 0:Y())!==!1&&l(!1);},{prefixCls:p,shape:b,size:y,src:C,srcSet:w,icon:x,className:$,rootClassName:S,alt:O,draggable:E,children:I,crossOrigin:P}=e,N=oZ(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),L=hr(Y=>{var ce,Z;return (Z=(ce=y??(g==null?void 0:g.size))!==null&&ce!==void 0?ce:Y)!==null&&Z!==void 0?Z:"default"}),k=Object.keys(typeof L=="object"?L||{}:{}).some(Y=>["xs","sm","md","lg","xl","xxl"].includes(Y)),A=m2(k),T=f__namespace.useMemo(()=>{if(typeof L!="object")return {};const Y=f2.find(Z=>A[Z]),ce=L[Y];return ce?{width:ce,height:ce,lineHeight:`${ce}px`,fontSize:ce&&(x||I)?ce/2:18}:{}},[A,L]),R=d("avatar",p),_=Mn(R),[D,z,F]=g2(R,_),W=G({[`${R}-lg`]:L==="large",[`${R}-sm`]:L==="small"}),V=f__namespace.isValidElement(C),X=b||(g==null?void 0:g.shape)||"circle",q=G(R,W,m==null?void 0:m.className,`${R}-${X}`,{[`${R}-image`]:V||C&&i,[`${R}-icon`]:!!x},F,_,$,S,z),Q=typeof L=="number"?{width:L,height:L,lineHeight:`${L}px`,fontSize:x?L/2:18}:{};let ue;if(typeof C=="string"&&i)ue=f__namespace.createElement("img",{src:C,draggable:E,srcSet:w,onError:h,alt:O,crossOrigin:P});else if(V)ue=C;else if(x)ue=x;else if(o||n!==1){const Y=`scale(${n}) translateX(-50%)`,ce={msTransform:Y,WebkitTransform:Y,transform:Y},Z=typeof L=="number"?{lineHeight:`${L}px`}:{};ue=f__namespace.createElement(zr,{onResize:v},f__namespace.createElement("span",{className:`${R}-string`,ref:c,style:Object.assign(Object.assign({},Z),ce)},I));}else ue=f__namespace.createElement("span",{className:`${R}-string`,style:{opacity:0},ref:c},I);return delete N.onError,delete N.gap,D(f__namespace.createElement("span",Object.assign({},N,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Q),T),m==null?void 0:m.style),N.style),className:q,ref:u}),ue))},iZ=f__namespace.forwardRef(aZ),v2=iZ,Li=e=>e?typeof e=="function"?e():e:null,lZ=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:m,titleBorderBottom:g,innerContentPadding:v,titlePadding:h}=e;return [{[t]:Object.assign(Object.assign({},Lt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:s,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:g,padding:h},[`${t}-inner-content`]:{color:n,padding:v}})},Wh(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},sZ=e=>{const{componentCls:t}=e;return {[t]:is.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},cZ=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:u,paddingSM:d}=e,m=n-r,g=m/2,v=m/2-t,h=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},Hh(e)),rf({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:s,titlePadding:a?`${g}px ${h}px ${v}px`:0,titleBorderBottom:a?`${t}px ${c} ${u}`:"none",innerContentPadding:a?`${d}px ${h}px`:0})},h2=Kt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Ot(e,{popoverBg:t,popoverColor:n});return [lZ(r),sZ(r),Ds(r,"zoom-big")]},cZ,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var uZ=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 dZ=(e,t,n)=>!t&&!n?null:f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${e}-title`},Li(t)),f__namespace.createElement("div",{className:`${e}-inner-content`},Li(n))),fZ=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:l,children:s}=e;return f__namespace.createElement("div",{className:G(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},f__namespace.createElement("div",{className:`${n}-arrow`}),f__namespace.createElement(zh,Object.assign({},e,{className:t,prefixCls:n}),s||dZ(n,i,l)))},mZ=e=>{const{prefixCls:t,className:n}=e,r=uZ(e,["prefixCls","className"]),{getPrefixCls:o}=f__namespace.useContext(nt),a=o("popover",t),[i,l,s]=h2(a);return i(f__namespace.createElement(fZ,Object.assign({},r,{prefixCls:a,hashId:l,className:G(n,s)})))},p2=mZ;var gZ=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 vZ=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`},Li(t)),f__namespace.createElement("div",{className:`${r}-inner-content`},Li(n)))},b2=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:a,placement:i="top",trigger:l="hover",mouseEnterDelay:s=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=gZ(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=f__namespace.useContext(nt),g=m("popover",n),[v,h,p]=h2(g),b=m(),y=G(a,h,p);return v(f__namespace.createElement(Ji,Object.assign({placement:i,trigger:l,mouseEnterDelay:s,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:g,overlayClassName:y,ref:t,overlay:r||o?f__namespace.createElement(vZ,{prefixCls:g,title:r,content:o}):null,transitionName:ea(b,"zoom-big",d.transitionName),"data-popover-inject":!0})))});b2._InternalPanelDoNotUseOrYouWillBeFired=p2;const $f=b2,TC=e=>{const{size:t,shape:n}=f__namespace.useContext(cv),r=f__namespace.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return f__namespace.createElement(cv.Provider,{value:r},e.children)},hZ=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(nt),{prefixCls:r,className:o,rootClassName:a,style:i,maxCount:l,maxStyle:s,size:c,shape:u,maxPopoverPlacement:d="top",maxPopoverTrigger:m="hover",children:g}=e,v=t("avatar",r),h=`${v}-group`,p=Mn(v),[b,y,C]=g2(v,p),w=G(h,{[`${h}-rtl`]:n==="rtl"},C,p,o,a,y),x=Ir(g).map((S,O)=>ir(S,{key:`avatar-key-${O}`})),$=x.length;if(l&&l<$){const S=x.slice(0,l),O=x.slice(l,$);return S.push(f__namespace.createElement($f,{key:"avatar-popover-key",content:O,trigger:m,placement:d,overlayClassName:`${h}-popover`},f__namespace.createElement(v2,{style:s},`+${$-l}`))),b(f__namespace.createElement(TC,{shape:u,size:c},f__namespace.createElement("div",{className:w,style:i},S)))}return b(f__namespace.createElement(TC,{shape:u,size:c},f__namespace.createElement("div",{className:w,style:i},x)))},pZ=hZ,y2=v2;y2.Group=pZ;const ku=y2;var bZ={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 yZ=bZ;var CZ=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:yZ}))};const ki=f__namespace.forwardRef(CZ);var SZ=de.ESC,$Z=de.TAB;function wZ(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=f__namespace.useRef(!1),l=function(){if(t){var d,m;(d=n.current)===null||d===void 0||(m=d.focus)===null||m===void 0||m.call(d),r==null||r(!1);}},s=function(){var d;return (d=a.current)!==null&&d!==void 0&&d.focus?(a.current.focus(),i.current=!0,!0):!1},c=function(d){switch(d.keyCode){case SZ:l();break;case $Z:{var m=!1;i.current||(m=s()),m?d.preventDefault():l();break}}};f__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Et(s,3),function(){window.removeEventListener("keydown",c),i.current=!1;}):function(){i.current=!1;}},[t]);}var xZ=f.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=f.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),i=sr(t,a==null?void 0:a.ref);return f.createElement(f.Fragment,null,r&&f.createElement("div",{className:"".concat(o,"-arrow")}),f.cloneElement(a,{ref:ia(a)?i:void 0}))}),Ja={adjustX:1,adjustY:1},ei=[0,0],EZ={topLeft:{points:["bl","tl"],overflow:Ja,offset:[0,-4],targetOffset:ei},top:{points:["bc","tc"],overflow:Ja,offset:[0,-4],targetOffset:ei},topRight:{points:["br","tr"],overflow:Ja,offset:[0,-4],targetOffset:ei},bottomLeft:{points:["tl","bl"],overflow:Ja,offset:[0,4],targetOffset:ei},bottom:{points:["tc","bc"],overflow:Ja,offset:[0,4],targetOffset:ei},bottomRight:{points:["tr","br"],overflow:Ja,offset:[0,4],targetOffset:ei}},OZ=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function IZ(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,l=e.transitionName,s=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,m=e.placements,g=m===void 0?EZ:m,v=e.getPopupContainer,h=e.showAction,p=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,C=e.visible,w=e.trigger,x=w===void 0?["hover"]:w,$=e.autoFocus,S=e.overlay,O=e.children,E=e.onVisibleChange,I=dt(e,OZ),P=f.useState(),N=J(P,2),L=N[0],k=N[1],A="visible"in e?C:L,T=f.useRef(null),R=f.useRef(null),_=f.useRef(null);f.useImperativeHandle(t,function(){return T.current});var D=function(Y){k(Y),E==null||E(Y);};wZ({visible:A,triggerRef:_,onVisibleChange:D,autoFocus:$,overlayRef:R});var z=function(Y){var ce=e.onOverlayClick;k(!1),ce&&ce(Y);},F=function(){return f.createElement(xZ,{ref:R,overlay:S,prefixCls:i,arrow:o})},W=function(){return typeof S=="function"?F:F()},V=function(){var Y=e.minOverlayWidthMatchTrigger,ce=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?Y:!ce},X=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(i,"-open")},q=f.cloneElement(O,{className:G((n=O.props)===null||n===void 0?void 0:n.className,A&&X()),ref:ia(O)?sr(_,O.ref):void 0}),Q=p;return !Q&&x.indexOf("contextMenu")!==-1&&(Q=["click"]),f.createElement(ef,xe({builtinPlacements:g},I,{prefixCls:i,ref:T,popupClassName:G(b,H({},"".concat(i,"-show-arrow"),o)),popupStyle:y,action:x,showAction:h,hideAction:Q,popupPlacement:d,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:A,stretch:V()?"minWidth":"",popup:W(),onPopupVisibleChange:D,onPopupClick:z,getPopupContainer:v}),q)}const C2=f.forwardRef(IZ);function PZ(e){return t=>f__namespace.createElement(So,{theme:{token:{motion:!1,zIndexPopupBase:0}}},f__namespace.createElement(e,Object.assign({},t)))}const MZ=(e,t,n,r)=>PZ(a=>{const{prefixCls:i,style:l}=a,s=f__namespace.useRef(null),[c,u]=f__namespace.useState(0),[d,m]=f__namespace.useState(0),[g,v]=Gt(!1,{value:a.open}),{getPrefixCls:h}=f__namespace.useContext(nt),p=h(t||"select",i);f__namespace.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const C=new ResizeObserver(x=>{const $=x[0].target;u($.offsetHeight+8),m($.offsetWidth);}),w=setInterval(()=>{var x;const $=n?`.${n(p)}`:`.${p}-dropdown`,S=(x=s.current)===null||x===void 0?void 0:x.querySelector($);S&&(clearInterval(w),C.observe(S));},10);return ()=>{clearInterval(w),C.disconnect();}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:g,visible:g,getPopupContainer:()=>s.current});r&&(b=r(b));const y={paddingBottom:c,position:"relative",minWidth:d};return f__namespace.createElement("div",{ref:s,style:y},f__namespace.createElement(e,Object.assign({},b)))}),bp=MZ;var RZ=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ti=void 0;function _Z(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,u=e.className,d=e.style,m=e.children,g=e.display,v=e.order,h=e.component,p=h===void 0?"div":h,b=dt(e,RZ),y=i&&!g;function C(O){s(c,O);}f__namespace.useEffect(function(){return function(){C(null);}},[]);var w=a&&o!==ti?a(o):m,x;r||(x={opacity:y?0:1,height:y?0:ti,overflowY:y?"hidden":ti,order:i?v:ti,pointerEvents:y?"none":ti,position:y?"absolute":ti});var $={};y&&($["aria-hidden"]=!0);var S=f__namespace.createElement(p,xe({className:G(!r&&n,u),style:U(U({},x),d)},$,b,{ref:t}),w);return i&&(S=f__namespace.createElement(zr,{onResize:function(E){var I=E.offsetWidth;C(I);},disabled:l},S)),S}var Wl=f__namespace.forwardRef(_Z);Wl.displayName="Item";function NZ(e){if(typeof MessageChannel>"u")Et(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function TZ(){var e=f__namespace.useRef(null),t=function(r){e.current||(e.current=[],NZ(function(){gS.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function wl(e,t){var n=f__namespace.useState(t),r=J(n,2),o=r[0],a=r[1],i=Kn(function(l){e(function(){a(l);});});return [o,i]}var Au=f.createContext(null),LZ=["component"],kZ=["className"],AZ=["className"],jZ=function(t,n){var r=f__namespace.useContext(Au);if(!r){var o=t.component,a=o===void 0?"div":o,i=dt(t,LZ);return f__namespace.createElement(a,xe({},i,{ref:n}))}var l=r.className,s=dt(r,kZ),c=t.className,u=dt(t,AZ);return f__namespace.createElement(Au.Provider,{value:null},f__namespace.createElement(Wl,xe({ref:n,className:G(l,c)},s,u)))},S2=f__namespace.forwardRef(jZ);S2.displayName="RawItem";var DZ=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],$2="responsive",w2="invalidate";function zZ(e){return "+ ".concat(e.length," ...")}function FZ(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,m=e.style,g=e.className,v=e.maxCount,h=e.renderRest,p=e.renderRawRest,b=e.suffix,y=e.component,C=y===void 0?"div":y,w=e.itemComponent,x=e.onVisibleChange,$=dt(e,DZ),S=d==="full",O=TZ(),E=wl(O,null),I=J(E,2),P=I[0],N=I[1],L=P||0,k=wl(O,new Map),A=J(k,2),T=A[0],R=A[1],_=wl(O,0),D=J(_,2),z=D[0],F=D[1],W=wl(O,0),V=J(W,2),X=V[0],q=V[1],Q=wl(O,0),ue=J(Q,2),Y=ue[0],ce=ue[1],Z=f.useState(null),ee=J(Z,2),ne=ee[0],le=ee[1],se=f.useState(null),K=J(se,2),te=K[0],re=K[1],ve=f__namespace.useMemo(function(){return te===null&&S?Number.MAX_SAFE_INTEGER:te||0},[te,P]),ae=f.useState(!1),ie=J(ae,2),fe=ie[0],Ee=ie[1],$e="".concat(r,"-item"),We=Math.max(z,X),Ke=v===$2,Te=a.length&&Ke,Ue=v===w2,_e=Te||typeof v=="number"&&a.length>v,Oe=f.useMemo(function(){var Re=a;return Te?P===null&&S?Re=a:Re=a.slice(0,Math.min(a.length,L/u)):typeof v=="number"&&(Re=a.slice(0,v)),Re},[a,u,P,v,Te]),De=f.useMemo(function(){return Te?a.slice(ve+1):a.slice(Oe.length)},[a,Oe,Te,ve]),Ie=f.useCallback(function(Re,He){var me;return typeof s=="function"?s(Re):(me=s&&(Re==null?void 0:Re[s]))!==null&&me!==void 0?me:He},[s]),yt=f.useCallback(i||function(Re){return Re},[i]);function Qe(Re,He,me){te===Re&&(He===void 0||He===ne)||(re(Re),me||(Ee(Re<a.length-1),x==null||x(Re)),He!==void 0&&le(He));}function gt(Re,He){N(He.clientWidth);}function Ze(Re,He){R(function(me){var pe=new Map(me);return He===null?pe.delete(Re):pe.set(Re,He),pe});}function et(Re,He){q(He),F(X);}function ot(Re,He){ce(He);}function wt(Re){return T.get(Ie(Oe[Re],Re))}en(function(){if(L&&typeof We=="number"&&Oe){var Re=Y,He=Oe.length,me=He-1;if(!He){Qe(0,null);return}for(var pe=0;pe<He;pe+=1){var Ce=wt(pe);if(S&&(Ce=Ce||0),Ce===void 0){Qe(pe-1,void 0,!0);break}if(Re+=Ce,me===0&&Re<=L||pe===me-1&&Re+wt(me)<=L){Qe(me,null);break}else if(Re+We>L){Qe(pe-1,Re-Ce-Y+X);break}}b&&wt(0)+Y>L&&le(null);}},[L,T,X,Y,Ie,Oe]);var st=fe&&!!De.length,mt={};ne!==null&&Te&&(mt={position:"absolute",left:ne,top:0});var ut={prefixCls:$e,responsive:Te,component:w,invalidate:Ue},we=l?function(Re,He){var me=Ie(Re,He);return f__namespace.createElement(Au.Provider,{key:me,value:U(U({},ut),{},{order:He,item:Re,itemKey:me,registerSize:Ze,display:He<=ve})},l(Re,He))}:function(Re,He){var me=Ie(Re,He);return f__namespace.createElement(Wl,xe({},ut,{order:He,key:me,item:Re,renderItem:yt,itemKey:me,registerSize:Ze,display:He<=ve}))},Pe,Le={order:st?ve:Number.MAX_SAFE_INTEGER,className:"".concat($e,"-rest"),registerSize:et,display:st};if(p)p&&(Pe=f__namespace.createElement(Au.Provider,{value:U(U({},ut),Le)},p(De)));else {var he=h||zZ;Pe=f__namespace.createElement(Wl,xe({},ut,Le),typeof he=="function"?he(De):he);}var Ne=f__namespace.createElement(C,xe({className:G(!Ue&&r,g),style:m,ref:t},$),Oe.map(we),_e?Pe:null,b&&f__namespace.createElement(Wl,xe({},ut,{responsive:Ke,responsiveDisabled:!Te,order:ve,className:"".concat($e,"-suffix"),registerSize:ot,display:!0,style:mt}),b));return Ke&&(Ne=f__namespace.createElement(zr,{onResize:gt,disabled:!Te},Ne)),Ne}var ho=f__namespace.forwardRef(FZ);ho.displayName="Overflow";ho.Item=S2;ho.RESPONSIVE=$2;ho.INVALIDATE=w2;var x2=f__namespace.createContext(null);function E2(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function O2(e){var t=f__namespace.useContext(x2);return E2(t,e)}var BZ=["children","locked"],Jr=f__namespace.createContext(null);function HZ(e,t){var n=U({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function fs(e){var t=e.children,n=e.locked,r=dt(e,BZ),o=f__namespace.useContext(Jr),a=Rs(function(){return HZ(o,r)},[o,r],function(i,l){return !n&&(i[0]!==l[0]||!_s(i[1],l[1],!0))});return f__namespace.createElement(Jr.Provider,{value:a},t)}var WZ=[],I2=f__namespace.createContext(null);function wf(){return f__namespace.useContext(I2)}var P2=f__namespace.createContext(WZ);function rl(e){var t=f__namespace.useContext(P2);return f__namespace.useMemo(function(){return e!==void 0?[].concat(Ge(t),[e]):t},[t,e])}var M2=f__namespace.createContext(null),yp=f__namespace.createContext({});function LC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Bh(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return !1}function VZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ge(e.querySelectorAll("*")).filter(function(r){return LC(r,t)});return LC(e,t)&&n.unshift(e),n}var uv=de.LEFT,dv=de.RIGHT,fv=de.UP,eu=de.DOWN,tu=de.ENTER,R2=de.ESC,xl=de.HOME,El=de.END,kC=[fv,eu,uv,dv];function GZ(e,t,n,r){var o,a,i,l,s="prev",c="next",u="children",d="parent";if(e==="inline"&&r===tu)return {inlineTrigger:!0};var m=(o={},H(o,fv,s),H(o,eu,c),o),g=(a={},H(a,uv,n?c:s),H(a,dv,n?s:c),H(a,eu,u),H(a,tu,u),a),v=(i={},H(i,fv,s),H(i,eu,c),H(i,tu,u),H(i,R2,d),H(i,uv,n?u:d),H(i,dv,n?d:u),i),h={inline:m,horizontal:g,vertical:v,inlineSub:m,horizontalSub:v,verticalSub:v},p=(l=h["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(p){case s: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 KZ(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function UZ(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function Cp(e,t){var n=VZ(e,!0);return n.filter(function(r){return t.has(r)})}function AC(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Cp(e,t),a=o.length,i=o.findIndex(function(l){return n===l});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var mv=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(i){var l=document.querySelector("[data-menu-id='".concat(E2(n,i),"']"));l&&(r.add(l),a.set(l,i),o.set(i,l));}),{elements:r,key2element:o,element2key:a}};function qZ(e,t,n,r,o,a,i,l,s,c){var u=f__namespace.useRef(),d=f__namespace.useRef();d.current=t;var m=function(){Et.cancel(u.current);};return f__namespace.useEffect(function(){return function(){m();}},[]),function(g){var v=g.which;if([].concat(kC,[tu,R2,xl,El]).includes(v)){var h=a(),p=mv(h,r),b=p,y=b.elements,C=b.key2element,w=b.element2key,x=C.get(t),$=UZ(x,y),S=w.get($),O=GZ(e,i(S,!0).length===1,n,v);if(!O&&v!==xl&&v!==El)return;(kC.includes(v)||[xl,El].includes(v))&&g.preventDefault();var E=function(R){if(R){var _=R,D=R.querySelector("a");D!=null&&D.getAttribute("href")&&(_=D);var z=w.get(R);l(z),m(),u.current=Et(function(){d.current===z&&_.focus();});}};if([xl,El].includes(v)||O.sibling||!$){var I;!$||e==="inline"?I=o.current:I=KZ($);var P,N=Cp(I,y);v===xl?P=N[0]:v===El?P=N[N.length-1]:P=AC(I,y,$,O.offset),E(P);}else if(O.inlineTrigger)s(S);else if(O.offset>0)s(S,!0),m(),u.current=Et(function(){p=mv(h,r);var T=$.getAttribute("aria-controls"),R=document.getElementById(T),_=AC(R,p.elements);E(_);},5);else if(O.offset<0){var L=i(S,!0),k=L[L.length-2],A=C.get(k);s(k,!1),E(A);}}c==null||c(g);}}function XZ(e){Promise.resolve().then(e);}var Sp="__RC_UTIL_PATH_SPLIT__",jC=function(t){return t.join(Sp)},YZ=function(t){return t.split(Sp)},gv="rc-menu-more";function ZZ(){var e=f__namespace.useState({}),t=J(e,2),n=t[1],r=f.useRef(new Map),o=f.useRef(new Map),a=f__namespace.useState([]),i=J(a,2),l=i[0],s=i[1],c=f.useRef(0),u=f.useRef(!1),d=function(){u.current||n({});},m=f.useCallback(function(C,w){var x=jC(w);o.current.set(x,C),r.current.set(C,x),c.current+=1;var $=c.current;XZ(function(){$===c.current&&d();});},[]),g=f.useCallback(function(C,w){var x=jC(w);o.current.delete(x),r.current.delete(C);},[]),v=f.useCallback(function(C){s(C);},[]),h=f.useCallback(function(C,w){var x=r.current.get(C)||"",$=YZ(x);return w&&l.includes($[0])&&$.unshift(gv),$},[l]),p=f.useCallback(function(C,w){return C.some(function(x){var $=h(x,!0);return $.includes(w)})},[h]),b=function(){var w=Ge(r.current.keys());return l.length&&w.push(gv),w},y=f.useCallback(function(C){var w="".concat(r.current.get(C)).concat(Sp),x=new Set;return Ge(o.current.keys()).forEach(function($){$.startsWith(w)&&x.add(o.current.get($));}),x},[]);return f__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:v,isSubPathKey:p,getKeyPath:h,getKeys:b,getSubPathKeys:y}}function Tl(e){var t=f__namespace.useRef(e);t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var QZ=Math.random().toFixed(5).toString().slice(2),DC=0;function JZ(e){var t=Gt(e,{value:e}),n=J(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){DC+=1;var a="".concat(QZ,"-").concat(DC);o("rc-menu-uuid-".concat(a));},[]),r}function _2(e,t,n,r){var o=f__namespace.useContext(Jr),a=o.activeKey,i=o.onActive,l=o.onInactive,s={active:a===e};return t||(s.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),i(e);},s.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),l(e);}),s}function N2(e){var t=f__namespace.useContext(Jr),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function T2(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=f__namespace.createElement(t,U({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var eQ=["item"];function ju(e){var t=e.item,n=dt(e,eQ);return Object.defineProperty(n,"item",{get:function(){return Tn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var tQ=["title","attribute","elementRef"],nQ=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],rQ=["active"],oQ=function(e){Yi(n,e);var t=Zi(n);function n(){return cr(this,n),t.apply(this,arguments)}return ur(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,l=o.elementRef,s=dt(o,tQ),c=Yn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Tn(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f__namespace.createElement(ho.Item,xe({},i,{title:typeof a=="string"?a:void 0},c,{ref:l}))}}]),n}(f__namespace.Component),aQ=f__namespace.forwardRef(function(e,t){var n,r=e.style,o=e.className,a=e.eventKey;e.warnKey;var i=e.disabled,l=e.itemIcon,s=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,m=e.onClick,g=e.onKeyDown,v=e.onFocus,h=dt(e,nQ),p=O2(a),b=f__namespace.useContext(Jr),y=b.prefixCls,C=b.onItemClick,w=b.disabled,x=b.overflowDisabled,$=b.itemIcon,S=b.selectedKeys,O=b.onActive,E=f__namespace.useContext(yp),I=E._internalRenderMenuItem,P="".concat(y,"-item"),N=f__namespace.useRef(),L=f__namespace.useRef(),k=w||i,A=aa(t,L),T=rl(a),R=function(Z){return {key:a,keyPath:Ge(T).reverse(),item:N.current,domEvent:Z}},_=l||$,D=_2(a,k,u,d),z=D.active,F=dt(D,rQ),W=S.includes(a),V=N2(T.length),X=function(Z){if(!k){var ee=R(Z);m==null||m(ju(ee)),C(ee);}},q=function(Z){if(g==null||g(Z),Z.which===de.ENTER){var ee=R(Z);m==null||m(ju(ee)),C(ee);}},Q=function(Z){O(a),v==null||v(Z);},ue={};e.role==="option"&&(ue["aria-selected"]=W);var Y=f__namespace.createElement(oQ,xe({ref:N,elementRef:A,role:c===null?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":x&&p?null:p},h,F,ue,{component:"li","aria-disabled":i,style:U(U({},V),r),className:G(P,(n={},H(n,"".concat(P,"-active"),z),H(n,"".concat(P,"-selected"),W),H(n,"".concat(P,"-disabled"),k),n),o),onClick:X,onKeyDown:q,onFocus:Q}),s,f__namespace.createElement(T2,{props:U(U({},e),{},{isSelected:W}),icon:_}));return I&&(Y=I(Y,e,{selected:W})),Y});function iQ(e,t){var n=e.eventKey,r=wf(),o=rl(n);return f__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:f__namespace.createElement(aQ,xe({},e,{ref:t}))}const Qs=f__namespace.forwardRef(iQ);var lQ=["className","children"],sQ=function(t,n){var r=t.className,o=t.children,a=dt(t,lQ),i=f__namespace.useContext(Jr),l=i.prefixCls,s=i.mode,c=i.rtl;return f__namespace.createElement("ul",xe({className:G(l,c&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(s==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},$p=f__namespace.forwardRef(sQ);$p.displayName="SubMenuList";function wp(e,t){return Ir(e).map(function(n,r){if(f__namespace.isValidElement(n)){var o,a,i=n.key,l=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:i,s=l==null;s&&(l="tmp_key-".concat([].concat(Ge(t),[r]).join("-")));var c={key:l,eventKey:l};return f__namespace.cloneElement(n,c)}return n})}var Jn={adjustX:1,adjustY:1},cQ={topLeft:{points:["bl","tl"],overflow:Jn},topRight:{points:["br","tr"],overflow:Jn},bottomLeft:{points:["tl","bl"],overflow:Jn},bottomRight:{points:["tr","br"],overflow:Jn},leftTop:{points:["tr","tl"],overflow:Jn},leftBottom:{points:["br","bl"],overflow:Jn},rightTop:{points:["tl","tr"],overflow:Jn},rightBottom:{points:["bl","br"],overflow:Jn}},uQ={topLeft:{points:["bl","tl"],overflow:Jn},topRight:{points:["br","tr"],overflow:Jn},bottomLeft:{points:["tl","bl"],overflow:Jn},bottomRight:{points:["tr","br"],overflow:Jn},rightTop:{points:["tr","tl"],overflow:Jn},rightBottom:{points:["br","bl"],overflow:Jn},leftTop:{points:["tl","tr"],overflow:Jn},leftBottom:{points:["bl","br"],overflow:Jn}};function L2(e,t,n){if(t)return t;if(n)return n[e]||n.other}var dQ={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function fQ(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,l=e.popupOffset,s=e.disabled,c=e.mode,u=e.onVisibleChange,d=f__namespace.useContext(Jr),m=d.getPopupContainer,g=d.rtl,v=d.subMenuOpenDelay,h=d.subMenuCloseDelay,p=d.builtinPlacements,b=d.triggerSubMenuAction,y=d.forceSubMenuRender,C=d.rootClassName,w=d.motion,x=d.defaultMotions,$=f__namespace.useState(!1),S=J($,2),O=S[0],E=S[1],I=U(g?U({},uQ):U({},cQ),p),P=dQ[c],N=L2(c,w,x),L=f__namespace.useRef(N);c!=="inline"&&(L.current=N);var k=U(U({},L.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),A=f__namespace.useRef();return f__namespace.useEffect(function(){return A.current=Et(function(){E(n);}),function(){Et.cancel(A.current);}},[n]),f__namespace.createElement(ef,{prefixCls:t,popupClassName:G("".concat(t,"-popup"),H({},"".concat(t,"-rtl"),g),i,C),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:I,popupPlacement:P,popupVisible:O,popup:o,popupStyle:a,popupAlign:l&&{offset:l},action:s?[]:[b],mouseEnterDelay:v,mouseLeaveDelay:h,onPopupVisibleChange:u,forceRender:y,popupMotion:k,fresh:!0},r)}function mQ(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=f__namespace.useContext(Jr),l=i.prefixCls,s=i.forceSubMenuRender,c=i.motion,u=i.defaultMotions,d=i.mode,m=f__namespace.useRef(!1);m.current=d===a;var g=f__namespace.useState(!m.current),v=J(g,2),h=v[0],p=v[1],b=m.current?n:!1;f__namespace.useEffect(function(){m.current&&p(!1);},[d]);var y=U({},L2(a,c,u));r.length>1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function(w){return !m.current&&!w&&p(!0),C==null?void 0:C(w)},h?null:f__namespace.createElement(fs,{mode:a,locked:!m.current},f__namespace.createElement(Rr,xe({visible:b},y,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(w){var x=w.className,$=w.style;return f__namespace.createElement($p,{id:t,className:x,style:$},o)}))}var gQ=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],vQ=["active"],hQ=function(t){var n,r=t.style,o=t.className,a=t.title,i=t.eventKey;t.warnKey;var l=t.disabled,s=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,m=t.popupClassName,g=t.popupOffset,v=t.popupStyle,h=t.onClick,p=t.onMouseEnter,b=t.onMouseLeave,y=t.onTitleClick,C=t.onTitleMouseEnter,w=t.onTitleMouseLeave,x=dt(t,gQ),$=O2(i),S=f__namespace.useContext(Jr),O=S.prefixCls,E=S.mode,I=S.openKeys,P=S.disabled,N=S.overflowDisabled,L=S.activeKey,k=S.selectedKeys,A=S.itemIcon,T=S.expandIcon,R=S.onItemClick,_=S.onOpenChange,D=S.onActive,z=f__namespace.useContext(yp),F=z._internalRenderSubMenuItem,W=f__namespace.useContext(M2),V=W.isSubPathKey,X=rl(),q="".concat(O,"-submenu"),Q=P||l,ue=f__namespace.useRef(),Y=f__namespace.useRef(),ce=u??A,Z=d??T,ee=I.includes(i),ne=!N&&ee,le=V(k,i),se=_2(i,Q,C,w),K=se.active,te=dt(se,vQ),re=f__namespace.useState(!1),ve=J(re,2),ae=ve[0],ie=ve[1],fe=function(et){Q||ie(et);},Ee=function(et){fe(!0),p==null||p({key:i,domEvent:et});},$e=function(et){fe(!1),b==null||b({key:i,domEvent:et});},We=f__namespace.useMemo(function(){return K||(E!=="inline"?ae||V([L],i):!1)},[E,K,L,ae,i,V]),Ke=N2(X.length),Te=function(et){Q||(y==null||y({key:i,domEvent:et}),E==="inline"&&_(i,!ee));},Ue=Tl(function(Ze){h==null||h(ju(Ze)),R(Ze);}),_e=function(et){E!=="inline"&&_(i,et);},Oe=function(){D(i);},De=$&&"".concat($,"-popup"),Ie=f__namespace.createElement("div",xe({role:"menuitem",style:Ke,className:"".concat(q,"-title"),tabIndex:Q?null:-1,ref:ue,title:typeof a=="string"?a:null,"data-menu-id":N&&$?null:$,"aria-expanded":ne,"aria-haspopup":!0,"aria-controls":De,"aria-disabled":Q,onClick:Te,onFocus:Oe},te),a,f__namespace.createElement(T2,{icon:E!=="horizontal"?Z:void 0,props:U(U({},t),{},{isOpen:ne,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(q,"-arrow")}))),yt=f__namespace.useRef(E);if(E!=="inline"&&X.length>1?yt.current="vertical":yt.current=E,!N){var Qe=yt.current;Ie=f__namespace.createElement(fQ,{mode:Qe,prefixCls:q,visible:!s&&ne&&E!=="inline",popupClassName:m,popupOffset:g,popupStyle:v,popup:f__namespace.createElement(fs,{mode:Qe==="horizontal"?"vertical":Qe},f__namespace.createElement($p,{id:De,ref:Y},c)),disabled:Q,onVisibleChange:_e},Ie);}var gt=f__namespace.createElement(ho.Item,xe({role:"none"},x,{component:"li",style:r,className:G(q,"".concat(q,"-").concat(E),o,(n={},H(n,"".concat(q,"-open"),ne),H(n,"".concat(q,"-active"),We),H(n,"".concat(q,"-selected"),le),H(n,"".concat(q,"-disabled"),Q),n)),onMouseEnter:Ee,onMouseLeave:$e}),Ie,!N&&f__namespace.createElement(mQ,{id:De,open:ne,keyPath:X},c));return F&&(gt=F(gt,t,{selected:le,active:We,open:ne,disabled:Q})),f__namespace.createElement(fs,{onItemClick:Ue,mode:E==="horizontal"?"vertical":E,itemIcon:ce,expandIcon:Z},gt)};function xf(e){var t=e.eventKey,n=e.children,r=rl(t),o=wp(n,r),a=wf();f__namespace.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r);}},[r]);var i;return a?i=o:i=f__namespace.createElement(hQ,e,o),f__namespace.createElement(P2.Provider,{value:r},i)}var pQ=["className","title","eventKey","children"],bQ=["children"],yQ=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=dt(t,pQ),i=f__namespace.useContext(Jr),l=i.prefixCls,s="".concat(l,"-item-group");return f__namespace.createElement("li",xe({role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:G(s,n)}),f__namespace.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),f__namespace.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))};function Ef(e){var t=e.children,n=dt(e,bQ),r=rl(n.eventKey),o=wp(t,r),a=wf();return a?o:f__namespace.createElement(yQ,Yn(n,["warnKey"]),o)}function xp(e){var t=e.className,n=e.style,r=f__namespace.useContext(Jr),o=r.prefixCls,a=wf();return a?null:f__namespace.createElement("li",{role:"separator",className:G("".concat(o,"-item-divider"),t),style:n})}var CQ=["label","children","key","type"];function vv(e){return (e||[]).map(function(t,n){if(t&&ht(t)==="object"){var r=t,o=r.label,a=r.children,i=r.key,l=r.type,s=dt(r,CQ),c=i??"tmp-".concat(n);return a||l==="group"?l==="group"?f__namespace.createElement(Ef,xe({key:c},s,{title:o}),vv(a)):f__namespace.createElement(xf,xe({key:c},s,{title:o}),vv(a)):l==="divider"?f__namespace.createElement(xp,xe({key:c},s)):f__namespace.createElement(Qs,xe({key:c},s),o)}return null}).filter(function(t){return t})}function SQ(e,t,n){var r=e;return t&&(r=vv(t)),wp(r,n)}var $Q=["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"],ni=[],wQ=f__namespace.forwardRef(function(e,t){var n,r,o=e,a=o.prefixCls,i=a===void 0?"rc-menu":a,l=o.rootClassName,s=o.style,c=o.className,u=o.tabIndex,d=u===void 0?0:u,m=o.items,g=o.children,v=o.direction,h=o.id,p=o.mode,b=p===void 0?"vertical":p,y=o.inlineCollapsed,C=o.disabled,w=o.disabledOverflow,x=o.subMenuOpenDelay,$=x===void 0?.1:x,S=o.subMenuCloseDelay,O=S===void 0?.1:S,E=o.forceSubMenuRender,I=o.defaultOpenKeys,P=o.openKeys,N=o.activeKey,L=o.defaultActiveFirst,k=o.selectable,A=k===void 0?!0:k,T=o.multiple,R=T===void 0?!1:T,_=o.defaultSelectedKeys,D=o.selectedKeys,z=o.onSelect,F=o.onDeselect,W=o.inlineIndent,V=W===void 0?24:W,X=o.motion,q=o.defaultMotions,Q=o.triggerSubMenuAction,ue=Q===void 0?"hover":Q,Y=o.builtinPlacements,ce=o.itemIcon,Z=o.expandIcon,ee=o.overflowedIndicator,ne=ee===void 0?"...":ee,le=o.overflowedIndicatorPopupClassName,se=o.getPopupContainer,K=o.onClick,te=o.onOpenChange,re=o.onKeyDown;o.openAnimation,o.openTransitionName;var ve=o._internalRenderMenuItem,ae=o._internalRenderSubMenuItem,ie=dt(o,$Q),fe=f__namespace.useMemo(function(){return SQ(g,m,ni)},[g,m]),Ee=f__namespace.useState(!1),$e=J(Ee,2),We=$e[0],Ke=$e[1],Te=f__namespace.useRef(),Ue=JZ(h),_e=v==="rtl",Oe=Gt(I,{value:P,postState:function(Mt){return Mt||ni}}),De=J(Oe,2),Ie=De[0],yt=De[1],Qe=function(Mt){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function lt(){yt(Mt),te==null||te(Mt);}Je?gS.flushSync(lt):lt();},gt=f__namespace.useState(Ie),Ze=J(gt,2),et=Ze[0],ot=Ze[1],wt=f__namespace.useRef(!1),st=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),mt=J(st,2),ut=mt[0],we=mt[1],Pe=ut==="inline",Le=f__namespace.useState(ut),he=J(Le,2),Ne=he[0],Re=he[1],He=f__namespace.useState(we),me=J(He,2),pe=me[0],Ce=me[1];f__namespace.useEffect(function(){Re(ut),Ce(we),wt.current&&(Pe?yt(et):Qe(ni));},[ut,we]);var ye=f__namespace.useState(0),ge=J(ye,2),Me=ge[0],ze=ge[1],at=Me>=fe.length-1||Ne!=="horizontal"||w;f__namespace.useEffect(function(){Pe&&ot(Ie);},[Ie]),f__namespace.useEffect(function(){return wt.current=!0,function(){wt.current=!1;}},[]);var rt=ZZ(),Rt=rt.registerPath,qe=rt.unregisterPath,ke=rt.refreshOverflowKeys,Xe=rt.isSubPathKey,Se=rt.getKeyPath,Ae=rt.getKeys,Ve=rt.getSubPathKeys,ct=f__namespace.useMemo(function(){return {registerPath:Rt,unregisterPath:qe}},[Rt,qe]),At=f__namespace.useMemo(function(){return {isSubPathKey:Xe}},[Xe]);f__namespace.useEffect(function(){ke(at?ni:fe.slice(Me+1).map(function(kt){return kt.key}));},[Me,at]);var It=Gt(N||L&&((n=fe[0])===null||n===void 0?void 0:n.key),{value:N}),Ft=J(It,2),Yt=Ft[0],Cn=Ft[1],ln=Tl(function(kt){Cn(kt);}),rn=Tl(function(){Cn(void 0);});f.useImperativeHandle(t,function(){return {list:Te.current,focus:function(Mt){var Je,lt=Ae(),Nt=mv(lt,Ue),un=Nt.elements,Zt=Nt.key2element,Sn=Nt.element2key,jn=Cp(Te.current,un),rr=Yt??(jn[0]?Sn.get(jn[0]):(Je=fe.find(function(dr){return !dr.props.disabled}))===null||Je===void 0?void 0:Je.key),Dn=Zt.get(rr);if(rr&&Dn){var or;Dn==null||(or=Dn.focus)===null||or===void 0||or.call(Dn,Mt);}}}});var _r=Gt(_||[],{value:D,postState:function(Mt){return Array.isArray(Mt)?Mt:Mt==null?ni:[Mt]}}),ao=J(_r,2),tt=ao[0],xt=ao[1],jt=function(Mt){if(A){var Je=Mt.key,lt=tt.includes(Je),Nt;R?lt?Nt=tt.filter(function(Zt){return Zt!==Je}):Nt=[].concat(Ge(tt),[Je]):Nt=[Je],xt(Nt);var un=U(U({},Mt),{},{selectedKeys:Nt});lt?F==null||F(un):z==null||z(un);}!R&&Ie.length&&Ne!=="inline"&&Qe(ni);},cn=Tl(function(kt){K==null||K(ju(kt)),jt(kt);}),Wn=Tl(function(kt,Mt){var Je=Ie.filter(function(Nt){return Nt!==kt});if(Mt)Je.push(kt);else if(Ne!=="inline"){var lt=Ve(kt);Je=Je.filter(function(Nt){return !lt.has(Nt)});}_s(Ie,Je,!0)||Qe(Je,!0);}),Vr=function(Mt,Je){var lt=Je??!Ie.includes(Mt);Wn(Mt,lt);},io=qZ(Ne,Yt,_e,Ue,Te,Ae,Se,Cn,Vr,re);f__namespace.useEffect(function(){Ke(!0);},[]);var br=f__namespace.useMemo(function(){return {_internalRenderMenuItem:ve,_internalRenderSubMenuItem:ae}},[ve,ae]),Ao=Ne!=="horizontal"||w?fe:fe.map(function(kt,Mt){return f__namespace.createElement(fs,{key:kt.key,overflowDisabled:Mt>Me},kt)}),Gr=f__namespace.createElement(ho,xe({id:h,ref:Te,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Qs,className:G(i,"".concat(i,"-root"),"".concat(i,"-").concat(Ne),c,(r={},H(r,"".concat(i,"-inline-collapsed"),pe),H(r,"".concat(i,"-rtl"),_e),r),l),dir:v,style:s,role:"menu",tabIndex:d,data:Ao,renderRawItem:function(Mt){return Mt},renderRawRest:function(Mt){var Je=Mt.length,lt=Je?fe.slice(-Je):null;return f__namespace.createElement(xf,{eventKey:gv,title:ne,disabled:at,internalPopupClose:Je===0,popupClassName:le},lt)},maxCount:Ne!=="horizontal"||w?ho.INVALIDATE:ho.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Mt){ze(Mt);},onKeyDown:io},ie));return f__namespace.createElement(yp.Provider,{value:br},f__namespace.createElement(x2.Provider,{value:Ue},f__namespace.createElement(fs,{prefixCls:i,rootClassName:l,mode:Ne,openKeys:Ie,rtl:_e,disabled:C,motion:We?X:null,defaultMotions:We?q:null,activeKey:Yt,onActive:ln,onInactive:rn,selectedKeys:tt,inlineIndent:V,subMenuOpenDelay:$,subMenuCloseDelay:O,forceSubMenuRender:E,builtinPlacements:Y,triggerSubMenuAction:ue,getPopupContainer:se,itemIcon:ce,expandIcon:Z,onItemClick:cn,onOpenChange:Wn},f__namespace.createElement(M2.Provider,{value:At},Gr),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement(I2.Provider,{value:ct},fe)))))}),ol=wQ;ol.Item=Qs;ol.SubMenu=xf;ol.ItemGroup=Ef;ol.Divider=xp;var xQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const EQ=xQ;var OQ=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:EQ}))};const Du=f__namespace.forwardRef(OQ),k2=f__namespace.createContext({});var IQ={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 PQ=IQ;var MQ=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:PQ}))};const Ep=f__namespace.forwardRef(MQ);var RQ=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 _Q=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=RQ(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=f__namespace.useContext(nt),i=a("menu",t),l=G({[`${i}-item-divider-dashed`]:!!r},n);return f__namespace.createElement(xp,Object.assign({className:l},o))},A2=_Q,NQ=f.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),zu=NQ,TQ=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:l,firstLevel:s,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=f__namespace.useContext(zu),m=y=>{const C=f__namespace.createElement("span",{className:`${l}-title-content`},r);return (!o||Mo(r)&&r.type==="span")&&r&&y&&s&&typeof r=="string"?f__namespace.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):C},{siderCollapsed:g}=f__namespace.useContext(k2);let v=a;typeof a>"u"?v=s?r:"":a===!1&&(v="");const h={title:v};!g&&!d&&(h.title=null,h.open=!1);const p=Ir(r).length;let b=f__namespace.createElement(Qs,Object.assign({},Yn(e,["title","icon","danger"]),{className:G({[`${l}-item-danger`]:i,[`${l}-item-only-child`]:(o?p+1:p)===1},n),title:typeof a=="string"?a:void 0}),ir(o,{className:G(Mo(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),m(d));return u||(b=f__namespace.createElement(Ji,Object.assign({},h,{placement:c==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),b)),b},j2=TQ,LQ=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=f__namespace.useContext(zu),{prefixCls:l,inlineCollapsed:s,theme:c}=i,u=rl();let d;if(!r)d=s&&!u.length&&o&&typeof o=="string"?f__namespace.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):f__namespace.createElement("span",{className:`${l}-title-content`},o);else {const v=Mo(o)&&o.type==="span";d=f__namespace.createElement(f__namespace.Fragment,null,ir(r,{className:G(Mo(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),v?o:f__namespace.createElement("span",{className:`${l}-title-content`},o));}const m=f__namespace.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[g]=As("Menu");return f__namespace.createElement(zu.Provider,{value:m},f__namespace.createElement(xf,Object.assign({},Yn(e,["icon"]),{title:d,popupClassName:G(l,n,`${l}-${a||c}`),popupStyle:{zIndex:g}})))},D2=LQ;var kQ=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 hv(e){return (e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:i,type:l}=r,s=kQ(r,["label","children","key","type"]),c=i??`tmp-${n}`;return a||l==="group"?l==="group"?f__namespace.createElement(Ef,Object.assign({key:c},s,{title:o}),hv(a)):f__namespace.createElement(D2,Object.assign({key:c},s,{title:o}),hv(a)):l==="divider"?f__namespace.createElement(A2,Object.assign({key:c},s)):f__namespace.createElement(j2,Object.assign({key:c},s),o)}return null}).filter(t=>t)}function AQ(e){return f__namespace.useMemo(()=>e&&hv(e),[e])}var jQ=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 Fu=f__namespace.createContext(null),DQ=f__namespace.forwardRef((e,t)=>{const{children:n}=e,r=jQ(e,["children"]),o=f__namespace.useContext(Fu),a=f__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=o6(n),l=aa(t,i?n.ref:null);return f__namespace.createElement(Fu.Provider,{value:a},f__namespace.createElement(Na,null,i?f__namespace.cloneElement(n,{ref:l}):n))}),zQ=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:l}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${B(a)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
> ${t}-item-active,
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},FQ=zQ,BQ=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return {[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${B(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${B(n)})`}}}}},HQ=BQ,zC=e=>Object.assign({},_a(e)),WQ=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:m,motionEaseInOut:g,motionEaseOut:v,itemPaddingInline:h,motionDurationMid:p,itemHoverColor:b,lineType:y,colorSplit:C,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:$,dangerItemSelectedColor:S,dangerItemActiveBg:O,dangerItemSelectedBg:E,popupBg:I,itemHoverBg:P,itemActiveBg:N,menuSubMenuBg:L,horizontalItemSelectedColor:k,horizontalItemSelectedBg:A,horizontalItemBorderRadius:T,horizontalItemHoverBg:R}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},zC(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:E}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},zC(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:L},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:T,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${B(c)} solid transparent`,transition:`border-color ${m} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:c,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:c,borderBottomColor:k}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${B(d)} ${y} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${B(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${v}`,`opacity ${p} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${g}`,`opacity ${p} ${g}`].join(",")}}}}}},FC=WQ,BC=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:l,itemWidth:s}=e,c=e.calc(a).add(o).add(i).equal();return {[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:B(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:B(n)},[`${t}-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:c}}},VQ=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:l,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:v,collapsedWidth:h,collapsedIconSize:p}=e,b={height:r,lineHeight:B(r),listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},BC(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},BC(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${B(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${l} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${B(e.calc(d).div(2).equal())} - ${B(u)})`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:B(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Ra),{paddingInline:g})}}]},GQ=VQ,HC=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:l,iconMarginInlineEnd:s}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},ja()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},WC=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${B(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${B(i)})`}}}}},KQ=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:v,menuArrowOffset:h,lineType:p,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:C}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},wu()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),wu()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${B(l)} ${B(s)}`,fontSize:C,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:p,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),HC(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${B(e.calc(r).mul(2).equal())} ${B(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${B(b)} 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},HC(e)),WC(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),WC(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${B(h)})`},"&::after":{transform:`rotate(45deg) translateX(${B(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${B(e.calc(v).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${B(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${B(h)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},UQ=e=>{var t,n,r;const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:m,lineWidth:g,lineWidthBold:v,controlItemBgActive:h,colorBgTextHover:p,controlHeightLG:b,lineHeight:y,colorBgElevated:C,marginXXS:w,padding:x,fontSize:$,controlHeightSM:S,fontSizeLG:O,colorTextLightSolid:E,colorErrorHover:I}=e,P=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,N=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,L=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,k=new nn(E).setAlpha(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:h,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:g,activeBarBorderWidth:N,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:L,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:C,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:`${b*1.15}px`,iconSize:$,iconMarginInlineEnd:S-$,collapsedIconSize:O,groupTitleFontSize:$,darkItemDisabledColor:new nn(E).setAlpha(.25).toRgbString(),darkItemColor:k,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:k,darkItemHoverColor:E,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:a,itemWidth:P?`calc(100% + ${N}px)`:`calc(100% - ${L*2}px)`}},qQ=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Kt("Menu",o=>{const{colorBgElevated:a,colorPrimary:i,colorTextLightSolid:l,controlHeightLG:s,fontSize:c,darkItemColor:u,darkDangerItemColor:d,darkItemBg:m,darkSubMenuItemBg:g,darkItemSelectedColor:v,darkItemSelectedBg:h,darkDangerItemSelectedBg:p,darkItemHoverBg:b,darkGroupTitleColor:y,darkItemHoverColor:C,darkItemDisabledColor:w,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:S,popupBg:O,darkPopupBg:E}=o,I=o.calc(c).div(7).mul(5).equal(),P=Ot(o,{menuArrowSize:I,menuHorizontalHeight:o.calc(s).mul(1.15).equal(),menuArrowOffset:o.calc(I).mul(.25).equal(),menuPanelMaskInset:-7,menuSubMenuBg:a,calc:o.calc,popupBg:O}),N=Ot(P,{itemColor:u,itemHoverColor:C,groupTitleColor:y,itemSelectedColor:v,itemBg:m,popupBg:E,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:w,dangerItemColor:d,dangerItemHoverColor:x,dangerItemSelectedColor:$,dangerItemActiveBg:S,dangerItemSelectedBg:p,menuSubMenuBg:g,horizontalItemSelectedColor:l,horizontalItemSelectedBg:i});return [KQ(P),FQ(P),GQ(P),FC(P,"light"),FC(N,"dark"),HQ(P),Ox(P),ta(P,"slide-up"),ta(P,"slide-down"),Ds(P,"zoom-big")]},UQ,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)};var XQ=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 YQ=f.forwardRef((e,t)=>{var n,r;const o=f__namespace.useContext(Fu),a=o||{},{getPrefixCls:i,getPopupContainer:l,direction:s,menu:c}=f__namespace.useContext(nt),u=i(),{prefixCls:d,className:m,style:g,theme:v="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:y,items:C,children:w,rootClassName:x,mode:$,selectable:S,onClick:O,overflowedIndicatorPopupClassName:E}=e,I=XQ(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),P=Yn(I,["collapsedWidth"]),N=AQ(C)||w;(n=a.validator)===null||n===void 0||n.call(a,{mode:$});const L=Kn(function(){var Q;O==null||O.apply(void 0,arguments),(Q=a.onClick)===null||Q===void 0||Q.call(a);}),k=a.mode||$,A=S??a.selectable,T=f__namespace.useMemo(()=>y!==void 0?y:b,[b,y]),R={horizontal:{motionName:`${u}-slide-up`},inline:Cx(u),other:{motionName:`${u}-zoom-big`}},_=i("menu",d||a.prefixCls),D=Mn(_),[z,F,W]=qQ(_,D,!o),V=G(`${_}-${v}`,c==null?void 0:c.className,m);let X;if(typeof h=="function")X=h;else if(h===null||h===!1)X=null;else if(a.expandIcon===null||a.expandIcon===!1)X=null;else {const Q=h??a.expandIcon;X=ir(Q,{className:G(`${_}-submenu-expand-icon`,Mo(Q)?(r=Q.props)===null||r===void 0?void 0:r.className:"")});}const q=f__namespace.useMemo(()=>({prefixCls:_,inlineCollapsed:T||!1,direction:s,firstLevel:!0,theme:v,mode:k,disableMenuItemTitleTooltip:p}),[_,T,s,p,v]);return z(f__namespace.createElement(Fu.Provider,{value:null},f__namespace.createElement(zu.Provider,{value:q},f__namespace.createElement(ol,Object.assign({getPopupContainer:l,overflowedIndicator:f__namespace.createElement(Ep,null),overflowedIndicatorPopupClassName:G(_,`${_}-${v}`,E),mode:k,selectable:A,onClick:L},P,{inlineCollapsed:T,style:Object.assign(Object.assign({},c==null?void 0:c.style),g),className:V,prefixCls:_,direction:s,defaultMotions:R,expandIcon:X,ref:t,rootClassName:G(x,F,a.rootClassName,W,D)}),N))))}),ZQ=YQ,Js=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f__namespace.useContext(k2);return f.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o);}})),f__namespace.createElement(ZQ,Object.assign({ref:n},e,r))});Js.Item=j2;Js.SubMenu=D2;Js.Divider=A2;Js.ItemGroup=Ef;const QQ=Js,JQ=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},eJ=JQ,tJ=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:v,colorBgElevated:h}=e;return [{[t]:Object.assign(Object.assign({},Lt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${l}-down, & > ${i}-btn-icon > ${l}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${l}-down`]:{fontSize:g},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Vh},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Kh},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Gh},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Uh}})},Wh(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Jo(e)),{[`${n}-item-group-title`]:{padding:`${B(c)} ${B(v)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${B(c)} ${B(v)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Jo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${B(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${B(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(v).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[ta(e,"slide-up"),ta(e,"slide-down"),Eu(e,"move-up"),Eu(e,"move-down"),Ds(e,"zoom-big")]]},nJ=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},rf({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Hh(e)),rJ=Kt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=Ot(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return [tJ(a),eJ(a)]},nJ),Op=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:l,getPopupContainer:s,overlayClassName:c,rootClassName:u,overlayStyle:d,open:m,onOpenChange:g,visible:v,onVisibleChange:h,mouseEnterDelay:p=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:y=!0,placement:C="",overlay:w,transitionName:x}=e,{getPopupContainer:$,getPrefixCls:S,direction:O,dropdown:E}=f__namespace.useContext(nt);Ns();const I=f__namespace.useMemo(()=>{const ne=S();return x!==void 0?x:C.includes("top")?`${ne}-slide-down`:`${ne}-slide-up`},[S,C,x]),P=f__namespace.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:O==="rtl"?"bottomRight":"bottomLeft",[C,O]),N=S("dropdown",r),L=Mn(N),[k,A,T]=rJ(N,L),[,R]=In(),_=f__namespace.Children.only(o),D=ir(_,{className:G(`${N}-trigger`,{[`${N}-rtl`]:O==="rtl"},_.props.className),disabled:i}),z=i?[]:a;let F;z&&z.includes("contextMenu")&&(F=!0);const[W,V]=Gt(!1,{value:m??v}),X=Kn(ne=>{g==null||g(ne,{source:"trigger"}),h==null||h(ne),V(ne);}),q=G(c,u,A,T,L,E==null?void 0:E.className,{[`${N}-rtl`]:O==="rtl"}),Q=$x({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:R.marginXXS,arrowWidth:n?R.sizePopupArrow:0,borderRadius:R.borderRadius}),ue=f__namespace.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(g==null||g(!1,{source:"menu"}),V(!1));},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),Y=()=>{let ne;return t!=null&&t.items?ne=f__namespace.createElement(QQ,Object.assign({},t)):typeof w=="function"?ne=w():ne=w,l&&(ne=l(ne)),ne=f__namespace.Children.only(typeof ne=="string"?f__namespace.createElement("span",null,ne):ne),f__namespace.createElement(DQ,{prefixCls:`${N}-menu`,rootClassName:G(T,L),expandIcon:f__namespace.createElement("span",{className:`${N}-menu-submenu-arrow`},f__namespace.createElement(ki,{className:`${N}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ue,validator:le=>{}},ne)},[ce,Z]=As("Dropdown",d==null?void 0:d.zIndex);let ee=f__namespace.createElement(C2,Object.assign({alignPoint:F},Yn(e,["rootClassName"]),{mouseEnterDelay:p,mouseLeaveDelay:b,visible:W,builtinPlacements:Q,arrow:!!n,overlayClassName:q,prefixCls:N,getPopupContainer:s||$,transitionName:I,trigger:z,overlay:Y,placement:P,onVisibleChange:X,overlayStyle:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.style),d),{zIndex:ce})}),D);return ce&&(ee=f__namespace.createElement(tf.Provider,{value:Z},ee)),k(ee)};function oJ(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const aJ=bp(Op,"dropdown",e=>e,oJ),iJ=e=>f__namespace.createElement(aJ,Object.assign({},e),f__namespace.createElement("span",null));Op._InternalPanelDoNotUseOrYouWillBeFired=iJ;const z2=Op;function VC(e){return ["small","middle","large"].includes(e)}function GC(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const F2=f.createContext({latestIndex:0}),lJ=F2.Provider,sJ=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=f__namespace.useContext(F2);return r==null?null:f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("div",{className:t,style:a},r),n<i&&o&&f__namespace.createElement("span",{className:`${t}-split`},o))},cJ=sJ;var uJ=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 dJ=f__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:a,direction:i}=f__namespace.useContext(nt),{size:l=(a==null?void 0:a.size)||"small",align:s,className:c,rootClassName:u,children:d,direction:m="horizontal",prefixCls:g,split:v,style:h,wrap:p=!1,classNames:b,styles:y}=e,C=uJ(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,x]=Array.isArray(l)?l:[l,l],$=VC(x),S=VC(w),O=GC(x),E=GC(w),I=Ir(d,{keepEmpty:!0}),P=s===void 0&&m==="horizontal"?"center":s,N=o("space",g),[L,k,A]=wx(N),T=G(N,a==null?void 0:a.className,k,`${N}-${m}`,{[`${N}-rtl`]:i==="rtl",[`${N}-align-${P}`]:P,[`${N}-gap-row-${x}`]:$,[`${N}-gap-col-${w}`]:S},c,u,A),R=G(`${N}-item`,(n=b==null?void 0:b.item)!==null&&n!==void 0?n:(r=a==null?void 0:a.classNames)===null||r===void 0?void 0:r.item);let _=0;const D=I.map((W,V)=>{var X,q;W!=null&&(_=V);const Q=W&&W.key||`${R}-${V}`;return f__namespace.createElement(cJ,{className:R,key:Q,index:V,split:v,style:(X=y==null?void 0:y.item)!==null&&X!==void 0?X:(q=a==null?void 0:a.styles)===null||q===void 0?void 0:q.item},W)}),z=f__namespace.useMemo(()=>({latestIndex:_}),[_]);if(I.length===0)return null;const F={};return p&&(F.flexWrap="wrap"),!S&&E&&(F.columnGap=w),!$&&O&&(F.rowGap=x),L(f__namespace.createElement("div",Object.assign({ref:t,className:T,style:Object.assign(Object.assign(Object.assign({},F),a==null?void 0:a.style),h)},C),f__namespace.createElement(lJ,{value:z},D)))}),B2=dJ;B2.Compact=QB;const ec=B2;var fJ=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 H2=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=f__namespace.useContext(nt),{prefixCls:o,type:a="default",danger:i,disabled:l,loading:s,onClick:c,htmlType:u,children:d,className:m,menu:g,arrow:v,autoFocus:h,overlay:p,trigger:b,align:y,open:C,onOpenChange:w,placement:x,getPopupContainer:$,href:S,icon:O=f__namespace.createElement(Ep,null),title:E,buttonsRender:I=Y=>Y,mouseEnterDelay:P,mouseLeaveDelay:N,overlayClassName:L,overlayStyle:k,destroyPopupOnHide:A,dropdownRender:T}=e,R=fJ(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),_=n("dropdown",o),D=`${_}-button`,z={menu:g,arrow:v,autoFocus:h,align:y,disabled:l,trigger:l?[]:b,onOpenChange:w,getPopupContainer:$||t,mouseEnterDelay:P,mouseLeaveDelay:N,overlayClassName:L,overlayStyle:k,destroyPopupOnHide:A,dropdownRender:T},{compactSize:F,compactItemClassnames:W}=Qi(_,r),V=G(D,W,m);"overlay"in e&&(z.overlay=p),"open"in e&&(z.open=C),"placement"in e?z.placement=x:z.placement=r==="rtl"?"bottomLeft":"bottomRight";const X=f__namespace.createElement(tn,{type:a,danger:i,disabled:l,loading:s,onClick:c,htmlType:u,href:S,title:E},d),q=f__namespace.createElement(tn,{type:a,danger:i,icon:O}),[Q,ue]=I([X,q]);return f__namespace.createElement(ec.Compact,Object.assign({className:V,size:F,block:!0},R),Q,f__namespace.createElement(z2,Object.assign({},z),ue))};H2.__ANT_BUTTON=!0;const mJ=H2,W2=z2;W2.Button=mJ;const Ip=W2;function ci(e,t,n){const r=ft(n);f.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}const Ai={name:"1wnowod",styles:"display:flex;align-items:center;justify-content:center"},Pp={name:"1h1dezd",styles:"display:inline-block;margin-top:2px"};function KC(e){const t=f.useRef(null);return t.current??(t.current=e()),t}var gJ=Math.floor,vJ=Math.random;function hJ(e,t){return e+gJ(vJ()*(t-e+1))}var pJ=hJ,bJ=pJ;function yJ(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var a=bJ(n,o),i=e[a];e[a]=e[n],e[n]=i;}return e.length=t,e}var V2=yJ,CJ=OS,SJ=V2;function $J(e){return SJ(CJ(e))}var wJ=$J,xJ=Fv;function EJ(e,t){return xJ(t,function(n){return e[n]})}var OJ=EJ,IJ=OJ,PJ=Os;function MJ(e){return e==null?[]:IJ(e,PJ(e))}var RJ=MJ,_J=V2,NJ=RJ;function TJ(e){return _J(NJ(e))}var LJ=TJ,kJ=wJ,AJ=LJ,jJ=ro;function DJ(e){var t=jJ(e)?kJ:AJ;return t(e)}var zJ=DJ;const bi=Bn(zJ);var FJ=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],G2=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,l=e.defaultChecked,s=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,m=e.onClick,g=e.onChange,v=e.onKeyDown,h=dt(e,FJ),p=Gt(!1,{value:i,defaultValue:l}),b=J(p,2),y=b[0],C=b[1];function w(O,E){var I=y;return s||(I=O,C(I),g==null||g(I,E)),I}function x(O){O.which===de.LEFT?w(!1,O):O.which===de.RIGHT&&w(!0,O),v==null||v(O);}function $(O){var E=w(!y,O);m==null||m(E,O);}var S=G(o,a,(n={},H(n,"".concat(o,"-checked"),y),H(n,"".concat(o,"-disabled"),s),n));return f__namespace.createElement("button",xe({},h,{type:"button",role:"switch","aria-checked":y,disabled:s,className:S,ref:t,onKeyDown:x,onClick:$}),c,f__namespace.createElement("span",{className:"".concat(o,"-inner")},f__namespace.createElement("span",{className:"".concat(o,"-inner-checked")},u),f__namespace.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))});G2.displayName="Switch";const BJ=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,u=B(s(l).add(s(r).mul(2)).equal()),d=B(s(i).mul(2).equal());return {[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:B(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${B(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},HJ=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},WJ=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,l=`${t}-handle`;return {[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${B(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},VJ=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:l}=e,s=`${t}-inner`,c=B(l(i).add(l(r).mul(2)).equal()),u=B(l(a).mul(2).equal());return {[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},GJ=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${B(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Jo(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},KJ=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,l=2,s=a-l*2,c=i-l*2;return {trackHeight:a,trackHeightSM:i,trackMinWidth:s*2+l*4,trackMinWidthSM:c*2+l*2,trackPadding:l,handleBg:o,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new nn("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+l+l*2}},UJ=Kt("Switch",e=>{const t=Ot(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [GJ(t),VJ(t),WJ(t),HJ(t),BJ(t)]},KJ);var qJ=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 K2=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:l,style:s,checked:c,value:u,defaultChecked:d,defaultValue:m,onChange:g}=e,v=qJ(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[h,p]=Gt(!1,{value:c??u,defaultValue:d??m}),{getPrefixCls:b,direction:y,switch:C}=f__namespace.useContext(nt),w=f__namespace.useContext(oo),x=(o??w)||a,$=b("switch",n),S=f__namespace.createElement("div",{className:`${$}-handle`},a&&f__namespace.createElement(lf,{className:`${$}-loading-icon`})),[O,E,I]=UJ($),P=hr(r),N=G(C==null?void 0:C.className,{[`${$}-small`]:P==="small",[`${$}-loading`]:a,[`${$}-rtl`]:y==="rtl"},i,l,E,I),L=Object.assign(Object.assign({},C==null?void 0:C.style),s),k=function(){p(arguments.length<=0?void 0:arguments[0]),g==null||g.apply(void 0,arguments);};return O(f__namespace.createElement(Hs,{component:"Switch"},f__namespace.createElement(G2,Object.assign({},v,{checked:h,onChange:k,prefixCls:$,className:N,style:L,disabled:x,ref:t,loadingIcon:S}))))});K2.__ANT_SWITCH=!0;const tc=K2,XJ=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),l=a(t).sub(n).equal();return {[o]:Object.assign(Object.assign({},Lt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,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}}},Mp=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Ot(e,{tagFontSize:o,tagLineHeight:B(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},Rp=e=>({defaultBg:new nn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),U2=Kt("Tag",e=>{const t=Mp(e);return XJ(t)},Rp);var YJ=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 ZJ=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:l}=e,s=YJ(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=f__namespace.useContext(nt),d=b=>{i==null||i(!a),l==null||l(b);},m=c("tag",n),[g,v,h]=U2(m),p=G(m,`${m}-checkable`,{[`${m}-checkable-checked`]:a},u==null?void 0:u.className,o,v,h);return g(f__namespace.createElement("span",Object.assign({},s,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:p,onClick:d})))}),QJ=ZJ,JJ=e=>Zd(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return {[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),eee=Ls(["Tag","preset"],e=>{const t=Mp(e);return JJ(t)},Rp);function tee(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Nc=(e,t,n)=>{const r=tee(n);return {[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},nee=Ls(["Tag","status"],e=>{const t=Mp(e);return [Nc(t,"success","Success"),Nc(t,"processing","Info"),Nc(t,"error","Error"),Nc(t,"warning","Warning")]},Rp);var ree=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 oee=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:l,color:s,onClose:c,closeIcon:u,closable:d,bordered:m=!0}=e,g=ree(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:v,direction:h,tag:p}=f__namespace.useContext(nt),[b,y]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in g&&y(g.visible);},[g.visible]);const C=Qd(s),w=A8(s),x=C||w,$=Object.assign(Object.assign({backgroundColor:s&&!x?s:void 0},p==null?void 0:p.style),a),S=v("tag",n),[O,E,I]=U2(S),P=G(S,p==null?void 0:p.className,{[`${S}-${s}`]:x,[`${S}-has-color`]:s&&!x,[`${S}-hidden`]:!b,[`${S}-rtl`]:h==="rtl",[`${S}-borderless`]:!m},r,o,E,I),N=_=>{_.stopPropagation(),c==null||c(_),!_.defaultPrevented&&y(!1);},[,L]=oE(d,u,_=>_===null?f__namespace.createElement(ko,{className:`${S}-close-icon`,onClick:N}):f__namespace.createElement("span",{className:`${S}-close-icon`,onClick:N},_),null,!1),k=typeof g.onClick=="function"||i&&i.type==="a",A=l||null,T=A?f__namespace.createElement(f__namespace.Fragment,null,A,i&&f__namespace.createElement("span",null,i)):i,R=f__namespace.createElement("span",Object.assign({},g,{ref:t,className:P,style:$}),T,L,C&&f__namespace.createElement(eee,{key:"preset",prefixCls:S}),w&&f__namespace.createElement(nee,{key:"status",prefixCls:S}));return O(k?f__namespace.createElement(Hs,{component:"Tag"},R):R)},q2=f__namespace.forwardRef(oee);q2.CheckableTag=QJ;const Bo=q2;function UC(e){const[t,n]=f.useState(null);return [f.useCallback((a,i,l)=>{const s=t??a,c=Math.min(s||0,a),u=Math.max(s||0,a),d=i.slice(c,u+1).map(v=>e(v)),m=d.some(v=>!l.has(v)),g=[];return d.forEach(v=>{m?(l.has(v)||g.push(v),l.add(v)):(l.delete(v),g.push(v));}),n(m?u:null),g},[t]),a=>{n(a);}]}function na(e,t,n){return G({[`${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 nc=(e,t)=>t||e,Bu=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},aee=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:a}=n;o&&t.set(a,r);}),t},iee=()=>{const[,e]=In(),n=new nn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return 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"}))))},lee=iee,see=()=>{const[,e]=In(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:l}=f.useMemo(()=>({borderColor:new nn(t).onBackground(o).toHexShortString(),shadowColor:new nn(n).onBackground(o).toHexShortString(),contentColor:new nn(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:i,cx:"32",cy:"33",rx:"32",ry:"7"}),f__namespace.createElement("g",{fillRule:"nonzero",stroke:a},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:l}))))},cee=see,uee=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return {[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.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}}}}},dee=Kt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Ot(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return [uee(o)]});var fee=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 X2=f__namespace.createElement(lee,null),Y2=f__namespace.createElement(cee,null),_p=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=X2,description:a,children:i,imageStyle:l,style:s}=e,c=fee(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:m}=f__namespace.useContext(nt),g=u("empty",r),[v,h,p]=dee(g),[b]=Lo("Empty"),y=typeof a<"u"?a:b==null?void 0:b.description,C=typeof y=="string"?y:"empty";let w=null;return typeof o=="string"?w=f__namespace.createElement("img",{alt:C,src:o}):w=o,v(f__namespace.createElement("div",Object.assign({className:G(h,p,g,m==null?void 0:m.className,{[`${g}-normal`]:o===Y2,[`${g}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),s)},c),f__namespace.createElement("div",{className:`${g}-image`,style:l},w),y&&f__namespace.createElement("div",{className:`${g}-description`},y),i&&f__namespace.createElement("div",{className:`${g}-footer`},i)))};_p.PRESENTED_IMAGE_DEFAULT=X2;_p.PRESENTED_IMAGE_SIMPLE=Y2;const Ol=_p,mee=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(nt),r=n("empty");switch(t){case"Table":case"List":return f.createElement(Ol,{image:Ol.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f.createElement(Ol,{image:Ol.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return f.createElement(Ol,null)}},Z2=mee,gee=(e,t,n)=>{const r=f__namespace.useMemo(()=>(e||[]).map(i=>(t&&(i=Object.assign(Object.assign({},i),{key:t(i)})),i)),[e,t]),[o,a]=f__namespace.useMemo(()=>{const i=[],l=new Array((n||[]).length),s=Bu(n||[]);return r.forEach(c=>{s.has(c.key)?l[s.get(c.key)]=c:i.push(c);}),[i,l]},[r,n,t]);return [r,o,a]},vee=gee,hee=[];function ri(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function qC(e){return Array.from(e).join(";")}function pee(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hee;const[r,o]=f__namespace.useMemo(()=>[new Set(e.map(c=>c.key)),new Set(t.map(c=>c.key))],[e,t]),[a,i]=f__namespace.useState(()=>ri(n,r)),[l,s]=f__namespace.useState(()=>ri(n,o));return f__namespace.useEffect(()=>{i(ri(n,r)),s(ri(n,o));},[n]),f__namespace.useEffect(()=>{i(ri(a,r)),s(ri(l,o));},[qC(r),qC(o)]),[a,l,i,s]}var bee={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 yee=bee;var Cee=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:yee}))};const Np=f__namespace.forwardRef(Cee);var See={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const $ee=See;var wee=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:$ee}))};const XC=f__namespace.forwardRef(wee);var xee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const Eee=xee;var Oee=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:Eee}))};const YC=f__namespace.forwardRef(Oee);var Iee={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:"页码"},Pee=["10","20","50","100"],Mee=function(t){var n=t.pageSizeOptions,r=n===void 0?Pee:n,o=t.locale,a=t.changeSize,i=t.pageSize,l=t.goButton,s=t.quickGo,c=t.rootPrefixCls,u=t.selectComponentClass,d=t.selectPrefixCls,m=t.disabled,g=t.buildOptionText,v=f.useState(""),h=J(v,2),p=h[0],b=h[1],y=function(){return !p||Number.isNaN(p)?void 0:Number(p)},C=typeof g=="function"?g:function(k){return "".concat(k," ").concat(o.items_per_page)},w=function(A){a==null||a(Number(A));},x=function(A){b(A.target.value);},$=function(A){l||p===""||(b(""),!(A.relatedTarget&&(A.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||A.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(s==null||s(y())));},S=function(A){p!==""&&(A.keyCode===de.ENTER||A.type==="click")&&(b(""),s==null||s(y()));},O=function(){return r.some(function(A){return A.toString()===i.toString()})?r:r.concat([i.toString()]).sort(function(A,T){var R=Number.isNaN(Number(A))?0:Number(A),_=Number.isNaN(Number(T))?0:Number(T);return R-_})},E="".concat(c,"-options");if(!a&&!s)return null;var I=null,P=null,N=null;if(a&&u){var L=O().map(function(k,A){return f.createElement(u.Option,{key:A,value:k.toString()},C(k))});I=f.createElement(u,{disabled:m,prefixCls:d,showSearch:!1,className:"".concat(E,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||r[0]).toString(),onChange:w,getPopupContainer:function(A){return A.parentNode},"aria-label":o.page_size,defaultOpen:!1},L);}return s&&(l&&(N=typeof l=="boolean"?f.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:m,className:"".concat(E,"-quick-jumper-button")},o.jump_to_confirm):f.createElement("span",{onClick:S,onKeyUp:S},l)),P=f.createElement("div",{className:"".concat(E,"-quick-jumper")},o.jump_to,f.createElement("input",{disabled:m,type:"text",value:p,onChange:x,onKeyUp:S,onBlur:$,"aria-label":o.page}),o.page,N)),f.createElement("li",{className:E},I,P)},Il=function(t){var n,r=t.rootPrefixCls,o=t.page,a=t.active,i=t.className,l=t.showTitle,s=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(r,"-item"),m=G(d,"".concat(d,"-").concat(o),(n={},H(n,"".concat(d,"-active"),a),H(n,"".concat(d,"-disabled"),!o),n),i),g=function(){s(o);},v=function(b){c(b,s,o);},h=u(o,"page",f.createElement("a",{rel:"nofollow"},o));return h?f.createElement("li",{title:l?String(o):null,className:m,onClick:g,onKeyDown:v,tabIndex:0},h):null},Ree=function(t,n,r){return r};function ZC(){}function QC(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function sa(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var _ee=function(t){var n,r=t.prefixCls,o=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,i=a===void 0?"rc-select":a,l=t.className,s=t.selectComponentClass,c=t.current,u=t.defaultCurrent,d=u===void 0?1:u,m=t.total,g=m===void 0?0:m,v=t.pageSize,h=t.defaultPageSize,p=h===void 0?10:h,b=t.onChange,y=b===void 0?ZC:b,C=t.hideOnSinglePage,w=t.showPrevNextJumpers,x=w===void 0?!0:w,$=t.showQuickJumper,S=t.showLessItems,O=t.showTitle,E=O===void 0?!0:O,I=t.onShowSizeChange,P=I===void 0?ZC:I,N=t.locale,L=N===void 0?Iee:N,k=t.style,A=t.totalBoundaryShowSizeChanger,T=A===void 0?50:A,R=t.disabled,_=t.simple,D=t.showTotal,z=t.showSizeChanger,F=t.pageSizeOptions,W=t.itemRender,V=W===void 0?Ree:W,X=t.jumpPrevIcon,q=t.jumpNextIcon,Q=t.prevIcon,ue=t.nextIcon,Y=f.useRef(null),ce=Gt(10,{value:v,defaultValue:p}),Z=J(ce,2),ee=Z[0],ne=Z[1],le=Gt(1,{value:c,defaultValue:d,postState:function(xt){return Math.max(1,Math.min(xt,sa(void 0,ee,g)))}}),se=J(le,2),K=se[0],te=se[1],re=f.useState(K),ve=J(re,2),ae=ve[0],ie=ve[1];f.useEffect(function(){ie(K);},[K]);var fe=Math.max(1,K-(S?3:5)),Ee=Math.min(sa(void 0,ee,g),K+(S?3:5));function $e(tt,xt){var jt=tt||f.createElement("button",{type:"button","aria-label":xt,className:"".concat(o,"-item-link")});return typeof tt=="function"&&(jt=f.createElement(tt,U({},t))),jt}function We(tt){var xt=tt.target.value,jt=sa(void 0,ee,g),cn;return xt===""?cn=xt:Number.isNaN(Number(xt))?cn=ae:xt>=jt?cn=jt:cn=Number(xt),cn}function Ke(tt){return QC(tt)&&tt!==K&&QC(g)&&g>0}var Te=g>ee?$:!1;function Ue(tt){(tt.keyCode===de.UP||tt.keyCode===de.DOWN)&&tt.preventDefault();}function _e(tt){var xt=We(tt);switch(xt!==ae&&ie(xt),tt.keyCode){case de.ENTER:Ie(xt);break;case de.UP:Ie(xt-1);break;case de.DOWN:Ie(xt+1);break}}function Oe(tt){Ie(We(tt));}function De(tt){var xt=sa(tt,ee,g),jt=K>xt&&xt!==0?xt:K;ne(tt),ie(jt),P==null||P(K,tt),te(jt),y==null||y(jt,tt);}function Ie(tt){if(Ke(tt)&&!R){var xt=sa(void 0,ee,g),jt=tt;return tt>xt?jt=xt:tt<1&&(jt=1),jt!==ae&&ie(jt),te(jt),y==null||y(jt,ee),jt}return K}var yt=K>1,Qe=K<sa(void 0,ee,g),gt=z??g>T;function Ze(){yt&&Ie(K-1);}function et(){Qe&&Ie(K+1);}function ot(){Ie(fe);}function wt(){Ie(Ee);}function st(tt,xt){if(tt.key==="Enter"||tt.charCode===de.ENTER||tt.keyCode===de.ENTER){for(var jt=arguments.length,cn=new Array(jt>2?jt-2:0),Wn=2;Wn<jt;Wn++)cn[Wn-2]=arguments[Wn];xt.apply(void 0,cn);}}function mt(tt){st(tt,Ze);}function ut(tt){st(tt,et);}function we(tt){st(tt,ot);}function Pe(tt){st(tt,wt);}function Le(tt){var xt=V(tt,"prev",$e(Q,"prev page"));return f.isValidElement(xt)?f.cloneElement(xt,{disabled:!yt}):xt}function he(tt){var xt=V(tt,"next",$e(ue,"next page"));return f.isValidElement(xt)?f.cloneElement(xt,{disabled:!Qe}):xt}function Ne(tt){(tt.type==="click"||tt.keyCode===de.ENTER)&&Ie(ae);}var Re=null,He=La(t,{aria:!0,data:!0}),me=D&&f.createElement("li",{className:"".concat(o,"-total-text")},D(g,[g===0?0:(K-1)*ee+1,K*ee>g?g:K*ee])),pe=null,Ce=sa(void 0,ee,g);if(C&&g<=ee)return null;var ye=[],ge={rootPrefixCls:o,onClick:Ie,onKeyPress:st,showTitle:E,itemRender:V,page:-1},Me=K-1>0?K-1:0,ze=K+1<Ce?K+1:Ce,at=$&&$.goButton,rt=at,Rt=null;_&&(at&&(typeof at=="boolean"?rt=f.createElement("button",{type:"button",onClick:Ne,onKeyUp:Ne},L.jump_to_confirm):rt=f.createElement("span",{onClick:Ne,onKeyUp:Ne},at),rt=f.createElement("li",{title:E?"".concat(L.jump_to).concat(K,"/").concat(Ce):null,className:"".concat(o,"-simple-pager")},rt)),Rt=f.createElement("li",{title:E?"".concat(K,"/").concat(Ce):null,className:"".concat(o,"-simple-pager")},f.createElement("input",{type:"text",value:ae,disabled:R,onKeyDown:Ue,onKeyUp:_e,onChange:_e,onBlur:Oe,size:3}),f.createElement("span",{className:"".concat(o,"-slash")},"/"),Ce));var qe=S?1:2;if(Ce<=3+qe*2){Ce||ye.push(f.createElement(Il,xe({},ge,{key:"noPager",page:1,className:"".concat(o,"-item-disabled")})));for(var ke=1;ke<=Ce;ke+=1)ye.push(f.createElement(Il,xe({},ge,{key:ke,page:ke,active:K===ke})));}else {var Xe=S?L.prev_3:L.prev_5,Se=S?L.next_3:L.next_5,Ae=V(fe,"jump-prev",$e(X,"prev page")),Ve=V(Ee,"jump-next",$e(q,"next page"));x&&(Re=Ae?f.createElement("li",{title:E?Xe:null,key:"prev",onClick:ot,tabIndex:0,onKeyDown:we,className:G("".concat(o,"-jump-prev"),H({},"".concat(o,"-jump-prev-custom-icon"),!!X))},Ae):null,pe=Ve?f.createElement("li",{title:E?Se:null,key:"next",onClick:wt,tabIndex:0,onKeyDown:Pe,className:G("".concat(o,"-jump-next"),H({},"".concat(o,"-jump-next-custom-icon"),!!q))},Ve):null);var ct=Math.max(1,K-qe),At=Math.min(K+qe,Ce);K-1<=qe&&(At=1+qe*2),Ce-K<=qe&&(ct=Ce-qe*2);for(var It=ct;It<=At;It+=1)ye.push(f.createElement(Il,xe({},ge,{key:It,page:It,active:K===It})));if(K-1>=qe*2&&K!==3&&(ye[0]=f.cloneElement(ye[0],{className:G("".concat(o,"-item-after-jump-prev"),ye[0].props.className)}),ye.unshift(Re)),Ce-K>=qe*2&&K!==Ce-2){var Ft=ye[ye.length-1];ye[ye.length-1]=f.cloneElement(Ft,{className:G("".concat(o,"-item-before-jump-next"),Ft.props.className)}),ye.push(pe);}ct!==1&&ye.unshift(f.createElement(Il,xe({},ge,{key:1,page:1}))),At!==Ce&&ye.push(f.createElement(Il,xe({},ge,{key:Ce,page:Ce})));}var Yt=Le(Me);if(Yt){var Cn=!yt||!Ce;Yt=f.createElement("li",{title:E?L.prev_page:null,onClick:Ze,tabIndex:Cn?null:0,onKeyDown:mt,className:G("".concat(o,"-prev"),H({},"".concat(o,"-disabled"),Cn)),"aria-disabled":Cn},Yt);}var ln=he(ze);if(ln){var rn,_r;_?(rn=!Qe,_r=yt?0:null):(rn=!Qe||!Ce,_r=rn?null:0),ln=f.createElement("li",{title:E?L.next_page:null,onClick:et,tabIndex:_r,onKeyDown:ut,className:G("".concat(o,"-next"),H({},"".concat(o,"-disabled"),rn)),"aria-disabled":rn},ln);}var ao=G(o,l,(n={},H(n,"".concat(o,"-simple"),_),H(n,"".concat(o,"-disabled"),R),n));return f.createElement("ul",xe({className:ao,style:k,ref:Y},He),me,Yt,_?Rt:ye,ln,f.createElement(Mee,{locale:L,rootPrefixCls:o,disabled:R,selectComponentClass:s,selectPrefixCls:i,changeSize:gt?De:null,pageSize:ee,pageSizeOptions:F,quickGo:Te?Ie:null,goButton:rt}))},Of=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,l=t.onClick,s=typeof r=="function"?r(o):r;return f__namespace.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),i==null||i(u);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},s!==void 0?s:f__namespace.createElement("span",{className:G(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},a))},Nee=function(t,n,r,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=f.useMemo(function(){if(ht(o)==="object")return o.clearIcon;if(a)return a},[o,a]),u=f.useMemo(function(){return !!(!i&&o&&(r.length||l)&&!(s==="combobox"&&l===""))},[o,i,r.length,l,s]);return {allowClear:u,clearIcon:f.createElement(Of,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},Q2=f__namespace.createContext(null);function Tee(){return f__namespace.useContext(Q2)}function Lee(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f__namespace.useState(!1),n=J(t,2),r=n[0],o=n[1],a=f__namespace.useRef(null),i=function(){window.clearTimeout(a.current);};f__namespace.useEffect(function(){return i},[]);var l=function(c,u){i(),a.current=window.setTimeout(function(){o(c),u&&u();},e);};return [r,l,i]}function J2(){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 kee(e,t,n,r){var o=f__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},f__namespace.useEffect(function(){function a(i){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=i.target;s.shadowRoot&&i.composed&&(s=i.composedPath()[0]||s),o.current.open&&e().filter(function(c){return c}).every(function(c){return !c.contains(s)&&c!==s})&&o.current.triggerOpen(!1);}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[]);}var Aee=function(t,n){var r,o=t.prefixCls,a=t.id,i=t.inputElement,l=t.disabled,s=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,m=t.activeDescendantId,g=t.value,v=t.maxLength,h=t.onKeyDown,p=t.onMouseDown,b=t.onChange,y=t.onPaste,C=t.onCompositionStart,w=t.onCompositionEnd,x=t.open,$=t.attrs,S=i||f__namespace.createElement("input",null),O=S,E=O.ref,I=O.props,P=I.onKeyDown,N=I.onChange,L=I.onMouseDown,k=I.onCompositionStart,A=I.onCompositionEnd,T=I.style;return "maxLength"in S.props,S=f__namespace.cloneElement(S,U(U(U({type:"search"},I),{},{id:a,ref:sr(n,E),disabled:l,tabIndex:s,autoComplete:u||"off",autoFocus:c,className:G("".concat(o,"-selection-search-input"),(r=S)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":x?m:void 0},$),{},{value:d?g:"",maxLength:v,readOnly:!d,unselectable:d?null:"on",style:U(U({},T),{},{opacity:d?null:0}),onKeyDown:function(_){h(_),P&&P(_);},onMouseDown:function(_){p(_),L&&L(_);},onChange:function(_){b(_),N&&N(_);},onCompositionStart:function(_){C(_),k&&k(_);},onCompositionEnd:function(_){w(_),A&&A(_);},onPaste:y})),S},eO=f__namespace.forwardRef(Aee);function tO(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var jee=typeof window<"u"&&window.document&&window.document.documentElement,Dee=jee;function zee(e){return e!=null}function Fee(e){return !e&&e!==0}function JC(e){return ["string","number"].includes(ht(e))}function nO(e){var t=void 0;return e&&(JC(e.title)?t=e.title.toString():JC(e.label)&&(t=e.label.toString())),t}function Bee(e,t){Dee?f__namespace.useLayoutEffect(e,t):f__namespace.useEffect(e,t);}function Hee(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var e1=function(t){t.preventDefault(),t.stopPropagation();},Wee=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,m=t.showSearch,g=t.autoFocus,v=t.autoComplete,h=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,C=t.maxTagTextLength,w=t.maxTagPlaceholder,x=w===void 0?function(le){return "+ ".concat(le.length," ...")}:w,$=t.tagRender,S=t.onToggleOpen,O=t.onRemove,E=t.onInputChange,I=t.onInputPaste,P=t.onInputKeyDown,N=t.onInputMouseDown,L=t.onInputCompositionStart,k=t.onInputCompositionEnd,A=f__namespace.useRef(null),T=f.useState(0),R=J(T,2),_=R[0],D=R[1],z=f.useState(!1),F=J(z,2),W=F[0],V=F[1],X="".concat(r,"-selection"),q=a||d==="multiple"&&l===!1||d==="tags"?i:"",Q=d==="tags"||d==="multiple"&&l===!1||m&&(a||W);Bee(function(){D(A.current.scrollWidth);},[q]);var ue=function(se,K,te,re,ve){return f__namespace.createElement("span",{title:nO(se),className:G("".concat(X,"-item"),H({},"".concat(X,"-item-disabled"),te))},f__namespace.createElement("span",{className:"".concat(X,"-item-content")},K),re&&f__namespace.createElement(Of,{className:"".concat(X,"-item-remove"),onMouseDown:e1,onClick:ve,customizeIcon:b},"×"))},Y=function(se,K,te,re,ve){var ae=function(fe){e1(fe),S(!a);};return f__namespace.createElement("span",{onMouseDown:ae},$({label:K,value:se,disabled:te,closable:re,onClose:ve}))},ce=function(se){var K=se.disabled,te=se.label,re=se.value,ve=!u&&!K,ae=te;if(typeof C=="number"&&(typeof te=="string"||typeof te=="number")){var ie=String(ae);ie.length>C&&(ae="".concat(ie.slice(0,C),"..."));}var fe=function($e){$e&&$e.stopPropagation(),O(se);};return typeof $=="function"?Y(re,ae,K,ve,fe):ue(se,ae,K,ve,fe)},Z=function(se){var K=typeof x=="function"?x(se):x;return ue({title:K},K,!1)},ee=f__namespace.createElement("div",{className:"".concat(X,"-search"),style:{width:_},onFocus:function(){V(!0);},onBlur:function(){V(!1);}},f__namespace.createElement(eO,{ref:s,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:g,autoComplete:v,editable:Q,activeDescendantId:h,value:q,onKeyDown:P,onMouseDown:N,onChange:E,onPaste:I,onCompositionStart:L,onCompositionEnd:k,tabIndex:p,attrs:La(t,!0)}),f__namespace.createElement("span",{ref:A,className:"".concat(X,"-search-mirror"),"aria-hidden":!0},q," ")),ne=f__namespace.createElement(ho,{prefixCls:"".concat(X,"-overflow"),data:o,renderItem:ce,renderRest:Z,suffix:ee,itemKey:Hee,maxCount:y});return f__namespace.createElement(f__namespace.Fragment,null,ne,!o.length&&!q&&f__namespace.createElement("span",{className:"".concat(X,"-placeholder")},c))},Vee=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,l=t.autoFocus,s=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,m=t.values,g=t.placeholder,v=t.tabIndex,h=t.showSearch,p=t.searchValue,b=t.activeValue,y=t.maxLength,C=t.onInputKeyDown,w=t.onInputMouseDown,x=t.onInputChange,$=t.onInputPaste,S=t.onInputCompositionStart,O=t.onInputCompositionEnd,E=t.title,I=f__namespace.useState(!1),P=J(I,2),N=P[0],L=P[1],k=u==="combobox",A=k||h,T=m[0],R=p||"";k&&b&&!N&&(R=b),f__namespace.useEffect(function(){k&&L(!1);},[k,b]);var _=u!=="combobox"&&!d&&!h?!1:!!R,D=E===void 0?nO(T):E,z=f__namespace.useMemo(function(){return T?null:f__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:_?{visibility:"hidden"}:void 0},g)},[T,_,g,r]);return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("span",{className:"".concat(r,"-selection-search")},f__namespace.createElement(eO,{ref:a,prefixCls:r,id:o,open:d,inputElement:n,disabled:i,autoFocus:l,autoComplete:s,editable:A,activeDescendantId:c,value:R,onKeyDown:C,onMouseDown:w,onChange:function(W){L(!0),x(W);},onPaste:$,onCompositionStart:S,onCompositionEnd:O,tabIndex:v,attrs:La(t,!0),maxLength:k?y:void 0})),!k&&T?f__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:D,style:_?{visibility:"hidden"}:void 0},T.label):null,z)};function Gee(e){return ![de.ESC,de.SHIFT,de.BACKSPACE,de.TAB,de.WIN_KEY,de.ALT,de.META,de.WIN_KEY_RIGHT,de.CTRL,de.SEMICOLON,de.EQUALS,de.CAPS_LOCK,de.CONTEXT_MENU,de.F1,de.F2,de.F3,de.F4,de.F5,de.F6,de.F7,de.F8,de.F9,de.F10,de.F11,de.F12].includes(e)}var Kee=function(t,n){var r=f.useRef(null),o=f.useRef(!1),a=t.prefixCls,i=t.open,l=t.mode,s=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,h=t.domRef;f__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=J2(0),b=J(p,2),y=b[0],C=b[1],w=function(R){var _=R.which;(_===de.UP||_===de.DOWN)&&R.preventDefault(),v&&v(R),_===de.ENTER&&l==="tags"&&!o.current&&!i&&(m==null||m(R.target.value)),Gee(_)&&g(!0);},x=function(){C(!0);},$=f.useRef(null),S=function(R){d(R,!0,o.current)!==!1&&g(!0);},O=function(){o.current=!0;},E=function(R){o.current=!1,l!=="combobox"&&S(R.target.value);},I=function(R){var _=R.target.value;if(c&&$.current&&/[\r\n]/.test($.current)){var D=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_=_.replace(D,$.current);}$.current=null,S(_);},P=function(R){var _=R.clipboardData,D=_==null?void 0:_.getData("text");$.current=D||"";},N=function(R){var _=R.target;if(_!==r.current){var D=document.body.style.msTouchAction!==void 0;D?setTimeout(function(){r.current.focus();}):r.current.focus();}},L=function(R){var _=y();R.target!==r.current&&!_&&l!=="combobox"&&R.preventDefault(),(l!=="combobox"&&(!s||!_)||!i)&&(i&&u!==!1&&d("",!0,!1),g());},k={inputRef:r,onInputKeyDown:w,onInputMouseDown:x,onInputChange:I,onInputPaste:P,onInputCompositionStart:O,onInputCompositionEnd:E},A=l==="multiple"||l==="tags"?f__namespace.createElement(Wee,xe({},t,k)):f__namespace.createElement(Vee,xe({},t,k));return f__namespace.createElement("div",{ref:h,className:"".concat(a,"-selector"),onClick:N,onMouseDown:L},A)},Uee=f__namespace.forwardRef(Kee),qee=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Xee=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"}}},Yee=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,l=t.animation,s=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,m=d===void 0?"ltr":d,g=t.placement,v=t.builtinPlacements,h=t.dropdownMatchSelectWidth,p=t.dropdownRender,b=t.dropdownAlign,y=t.getPopupContainer,C=t.empty,w=t.getTriggerDOMNode,x=t.onPopupVisibleChange,$=t.onPopupMouseEnter,S=dt(t,qee),O="".concat(r,"-dropdown"),E=i;p&&(E=p(i));var I=f__namespace.useMemo(function(){return v||Xee(h)},[v,h]),P=l?"".concat(O,"-").concat(l):s,N=typeof h=="number",L=f__namespace.useMemo(function(){return N?null:h===!1?"minWidth":"width"},[h,N]),k=c;N&&(k=U(U({},k),{},{width:h}));var A=f__namespace.useRef(null);return f__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return A.current}}}),f__namespace.createElement(ef,xe({},S,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:g||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:O,popupTransitionName:P,popup:f__namespace.createElement("div",{ref:A,onMouseEnter:$},E),stretch:L,popupAlign:b,popupVisible:o,getPopupContainer:y,popupClassName:G(u,H({},"".concat(O,"-empty"),C)),popupStyle:k,getTriggerDOMNode:w,onPopupVisibleChange:x}),a)},Zee=f__namespace.forwardRef(Yee);function t1(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 rO(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,l=r||(t?"children":"label");return {label:l,value:o||"value",options:a||"options",groupLabel:i||l}}function Qee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=rO(n,!1),i=a.label,l=a.value,s=a.options,c=a.groupLabel;function u(d,m){Array.isArray(d)&&d.forEach(function(g){if(m||!(s in g)){var v=g[l];o.push({key:t1(g,o.length),groupOption:m,data:g,label:g[i],value:v});}else {var h=g[c];h===void 0&&r&&(h=g.label),o.push({key:t1(g,o.length),group:!0,data:g,label:h}),u(g[s],!0);}});}return u(e,!1),o}function pv(e){var t=U({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return Tn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Jee=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function l(s,c){var u=Dw(c),d=u[0],m=u.slice(1);if(!d)return [s];var g=s.split(d);return o=o||g.length>1,g.reduce(function(v,h){return [].concat(Ge(v),Ge(l(h,m)))},[]).filter(Boolean)},i=a(t,n);return o?typeof r<"u"?i.slice(0,r):i:null},Tp=f__namespace.createContext(null),ete=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],tte=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],bv=function(t){return t==="tags"||t==="multiple"},nte=f__namespace.forwardRef(function(e,t){var n,r,o=e.id,a=e.prefixCls,i=e.className,l=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,m=e.onDisplayValuesChange,g=e.emptyOptions,v=e.notFoundContent,h=v===void 0?"Not Found":v,p=e.onClear,b=e.mode,y=e.disabled,C=e.loading,w=e.getInputElement,x=e.getRawInputElement,$=e.open,S=e.defaultOpen,O=e.onDropdownVisibleChange,E=e.activeValue,I=e.onActiveValueChange,P=e.activeDescendantId,N=e.searchValue,L=e.autoClearSearchValue,k=e.onSearch,A=e.onSearchSplit,T=e.tokenSeparators,R=e.allowClear,_=e.suffixIcon,D=e.clearIcon,z=e.OptionList,F=e.animation,W=e.transitionName,V=e.dropdownStyle,X=e.dropdownClassName,q=e.dropdownMatchSelectWidth,Q=e.dropdownRender,ue=e.dropdownAlign,Y=e.placement,ce=e.builtinPlacements,Z=e.getPopupContainer,ee=e.showAction,ne=ee===void 0?[]:ee,le=e.onFocus,se=e.onBlur,K=e.onKeyUp,te=e.onKeyDown,re=e.onMouseDown,ve=dt(e,ete),ae=bv(b),ie=(l!==void 0?l:ae)||b==="combobox",fe=U({},ve);tte.forEach(function(Je){delete fe[Je];}),u==null||u.forEach(function(Je){delete fe[Je];});var Ee=f__namespace.useState(!1),$e=J(Ee,2),We=$e[0],Ke=$e[1];f__namespace.useEffect(function(){Ke(Jd());},[]);var Te=f__namespace.useRef(null),Ue=f__namespace.useRef(null),_e=f__namespace.useRef(null),Oe=f__namespace.useRef(null),De=f__namespace.useRef(null),Ie=f__namespace.useRef(!1),yt=Lee(),Qe=J(yt,3),gt=Qe[0],Ze=Qe[1],et=Qe[2];f__namespace.useImperativeHandle(t,function(){var Je,lt;return {focus:(Je=Oe.current)===null||Je===void 0?void 0:Je.focus,blur:(lt=Oe.current)===null||lt===void 0?void 0:lt.blur,scrollTo:function(un){var Zt;return (Zt=De.current)===null||Zt===void 0?void 0:Zt.scrollTo(un)}}});var ot=f__namespace.useMemo(function(){var Je;if(b!=="combobox")return N;var lt=(Je=d[0])===null||Je===void 0?void 0:Je.value;return typeof lt=="string"||typeof lt=="number"?String(lt):""},[N,b,d]),wt=b==="combobox"&&typeof w=="function"&&w()||null,st=typeof x=="function"&&x(),mt=aa(Ue,st==null||(n=st.props)===null||n===void 0?void 0:n.ref),ut=f__namespace.useState(!1),we=J(ut,2),Pe=we[0],Le=we[1];en(function(){Le(!0);},[]);var he=Gt(!1,{defaultValue:S,value:$}),Ne=J(he,2),Re=Ne[0],He=Ne[1],me=Pe?Re:!1,pe=!h&&g;(y||pe&&me&&b==="combobox")&&(me=!1);var Ce=pe?!1:me,ye=f__namespace.useCallback(function(Je){var lt=Je!==void 0?Je:!me;y||(He(lt),me!==lt&&(O==null||O(lt)));},[y,me,He,O]),ge=f__namespace.useMemo(function(){return (T||[]).some(function(Je){return [`
`,`\r
`].includes(Je)})},[T]),Me=f__namespace.useContext(Tp)||{},ze=Me.maxCount,at=Me.rawValues,rt=function(lt,Nt,un){if(!((at==null?void 0:at.size)>=ze)){var Zt=!0,Sn=lt;I==null||I(null);var jn=Jee(lt,T,ze&&ze-at.size),rr=un?null:jn;return b!=="combobox"&&rr&&(Sn="",A==null||A(rr),ye(!1),Zt=!1),k&&ot!==Sn&&k(Sn,{source:Nt?"typing":"effect"}),Zt}},Rt=function(lt){!lt||!lt.trim()||k(lt,{source:"submit"});};f__namespace.useEffect(function(){!me&&!ae&&b!=="combobox"&&rt("",!1,!1);},[me]),f__namespace.useEffect(function(){Re&&y&&He(!1),y&&!Ie.current&&Ze(!1);},[y]);var qe=J2(),ke=J(qe,2),Xe=ke[0],Se=ke[1],Ae=function(lt){var Nt=Xe(),un=lt.which;if(un===de.ENTER&&(b!=="combobox"&<.preventDefault(),me||ye(!0)),Se(!!ot),un===de.BACKSPACE&&!Nt&&ae&&!ot&&d.length){for(var Zt=Ge(d),Sn=null,jn=Zt.length-1;jn>=0;jn-=1){var rr=Zt[jn];if(!rr.disabled){Zt.splice(jn,1),Sn=rr;break}}Sn&&m(Zt,{type:"remove",values:[Sn]});}for(var Dn=arguments.length,or=new Array(Dn>1?Dn-1:0),dr=1;dr<Dn;dr++)or[dr-1]=arguments[dr];if(me){var Vn;(Vn=De.current)===null||Vn===void 0||Vn.onKeyDown.apply(Vn,[lt].concat(or));}te==null||te.apply(void 0,[lt].concat(or));},Ve=function(lt){for(var Nt=arguments.length,un=new Array(Nt>1?Nt-1:0),Zt=1;Zt<Nt;Zt++)un[Zt-1]=arguments[Zt];if(me){var Sn;(Sn=De.current)===null||Sn===void 0||Sn.onKeyUp.apply(Sn,[lt].concat(un));}K==null||K.apply(void 0,[lt].concat(un));},ct=function(lt){var Nt=d.filter(function(un){return un!==lt});m(Nt,{type:"remove",values:[lt]});},At=f__namespace.useRef(!1),It=function(){Ze(!0),y||(le&&!At.current&&le.apply(void 0,arguments),ne.includes("focus")&&ye(!0)),At.current=!0;},Ft=function(){Ie.current=!0,Ze(!1,function(){At.current=!1,Ie.current=!1,ye(!1);}),!y&&(ot&&(b==="tags"?k(ot,{source:"submit"}):b==="multiple"&&k("",{source:"blur"})),se&&se.apply(void 0,arguments));},Yt=[];f__namespace.useEffect(function(){return function(){Yt.forEach(function(Je){return clearTimeout(Je)}),Yt.splice(0,Yt.length);}},[]);var Cn=function(lt){var Nt,un=lt.target,Zt=(Nt=_e.current)===null||Nt===void 0?void 0:Nt.getPopupElement();if(Zt&&Zt.contains(un)){var Sn=setTimeout(function(){var or=Yt.indexOf(Sn);if(or!==-1&&Yt.splice(or,1),et(),!We&&!Zt.contains(document.activeElement)){var dr;(dr=Oe.current)===null||dr===void 0||dr.focus();}});Yt.push(Sn);}for(var jn=arguments.length,rr=new Array(jn>1?jn-1:0),Dn=1;Dn<jn;Dn++)rr[Dn-1]=arguments[Dn];re==null||re.apply(void 0,[lt].concat(rr));},ln=f__namespace.useState({}),rn=J(ln,2),_r=rn[1];function ao(){_r({});}var tt;st&&(tt=function(lt){ye(lt);}),kee(function(){var Je;return [Te.current,(Je=_e.current)===null||Je===void 0?void 0:Je.getPopupElement()]},Ce,ye,!!st);var xt=f__namespace.useMemo(function(){return U(U({},e),{},{notFoundContent:h,open:me,triggerOpen:Ce,id:o,showSearch:ie,multiple:ae,toggleOpen:ye})},[e,h,Ce,me,o,ie,ae,ye]),jt=!!_||C,cn;jt&&(cn=f__namespace.createElement(Of,{className:G("".concat(a,"-arrow"),H({},"".concat(a,"-arrow-loading"),C)),customizeIcon:_,customizeIconProps:{loading:C,searchValue:ot,open:me,focused:gt,showSearch:ie}}));var Wn=function(){var lt;p==null||p(),(lt=Oe.current)===null||lt===void 0||lt.focus(),m([],{type:"clear",values:d}),rt("",!1,!1);},Vr=Nee(a,Wn,d,R,D,y,ot,b),io=Vr.allowClear,br=Vr.clearIcon,Ao=f__namespace.createElement(z,{ref:De}),Gr=G(a,i,(r={},H(r,"".concat(a,"-focused"),gt),H(r,"".concat(a,"-multiple"),ae),H(r,"".concat(a,"-single"),!ae),H(r,"".concat(a,"-allow-clear"),R),H(r,"".concat(a,"-show-arrow"),jt),H(r,"".concat(a,"-disabled"),y),H(r,"".concat(a,"-loading"),C),H(r,"".concat(a,"-open"),me),H(r,"".concat(a,"-customize-input"),wt),H(r,"".concat(a,"-show-search"),ie),r)),kt=f__namespace.createElement(Zee,{ref:_e,disabled:y,prefixCls:a,visible:Ce,popupElement:Ao,animation:F,transitionName:W,dropdownStyle:V,dropdownClassName:X,direction:c,dropdownMatchSelectWidth:q,dropdownRender:Q,dropdownAlign:ue,placement:Y,builtinPlacements:ce,getPopupContainer:Z,empty:g,getTriggerDOMNode:function(){return Ue.current},onPopupVisibleChange:tt,onPopupMouseEnter:ao},st?f__namespace.cloneElement(st,{ref:mt}):f__namespace.createElement(Uee,xe({},e,{domRef:Ue,prefixCls:a,inputElement:wt,ref:Oe,id:o,showSearch:ie,autoClearSearchValue:L,mode:b,activeDescendantId:P,tagRender:s,values:d,open:me,onToggleOpen:ye,activeValue:E,searchValue:ot,onSearch:rt,onSearchSubmit:Rt,onRemove:ct,tokenWithEnter:ge}))),Mt;return st?Mt=kt:Mt=f__namespace.createElement("div",xe({className:Gr},fe,{ref:Te,onMouseDown:Cn,onKeyDown:Ae,onKeyUp:Ve,onFocus:It,onBlur:Ft}),gt&&!me&&f__namespace.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(d.map(function(Je){var lt=Je.label,Nt=Je.value;return ["number","string"].includes(ht(lt))?lt:Nt}).join(", "))),kt,cn,io&&br),f__namespace.createElement(Q2.Provider,{value:xt},Mt)}),Lp=function(){return null};Lp.isSelectOptGroup=!0;var kp=function(){return null};kp.isSelectOption=!0;var oO=f__namespace.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,l=e.onInnerResize,s=e.innerProps,c=e.rtl,u=e.extra,d={},m={display:"flex",flexDirection:"column"};if(r!==void 0){var g;d={height:n,position:"relative",overflow:"hidden"},m=U(U({},m),{},(g={transform:"translateY(".concat(r,"px)")},H(g,c?"marginRight":"marginLeft",-o),H(g,"position","absolute"),H(g,"left",0),H(g,"right",0),H(g,"top",0),g));}return f__namespace.createElement("div",{style:d},f__namespace.createElement(zr,{onResize:function(h){var p=h.offsetHeight;p&&l&&l();}},f__namespace.createElement("div",xe({style:m,className:G(H({},"".concat(i,"-holder-inner"),i)),ref:t},s),a,u)))});oO.displayName="Filler";function n1(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var r1=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.rtl,a=e.scrollOffset,i=e.scrollRange,l=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,m=e.containerSize,g=e.style,v=e.thumbStyle,h=f__namespace.useState(!1),p=J(h,2),b=p[0],y=p[1],C=f__namespace.useState(null),w=J(C,2),x=w[0],$=w[1],S=f__namespace.useState(null),O=J(S,2),E=O[0],I=O[1],P=!o,N=f__namespace.useRef(),L=f__namespace.useRef(),k=f__namespace.useState(!1),A=J(k,2),T=A[0],R=A[1],_=f__namespace.useRef(),D=function(){clearTimeout(_.current),R(!0),_.current=setTimeout(function(){R(!1);},3e3);},z=i-m||0,F=m-d||0,W=z>0,V=f__namespace.useMemo(function(){if(a===0||z===0)return 0;var ne=a/z;return ne*F},[a,z,F]),X=function(le){le.stopPropagation(),le.preventDefault();},q=f__namespace.useRef({top:V,dragging:b,pageY:x,startTop:E});q.current={top:V,dragging:b,pageY:x,startTop:E};var Q=function(le){y(!0),$(n1(le,u)),I(q.current.top),l(),le.stopPropagation(),le.preventDefault();};f__namespace.useEffect(function(){var ne=function(te){te.preventDefault();},le=N.current,se=L.current;return le.addEventListener("touchstart",ne),se.addEventListener("touchstart",Q),function(){le.removeEventListener("touchstart",ne),se.removeEventListener("touchstart",Q);}},[]);var ue=f__namespace.useRef();ue.current=z;var Y=f__namespace.useRef();Y.current=F,f__namespace.useEffect(function(){if(b){var ne,le=function(te){var re=q.current,ve=re.dragging,ae=re.pageY,ie=re.startTop;if(Et.cancel(ne),ve){var fe=n1(te,u)-ae,Ee=ie;!P&&u?Ee-=fe:Ee+=fe;var $e=ue.current,We=Y.current,Ke=We?Ee/We:0,Te=Math.ceil(Ke*$e);Te=Math.max(Te,0),Te=Math.min(Te,$e),ne=Et(function(){c(Te,u);});}},se=function(){y(!1),s();};return window.addEventListener("mousemove",le),window.addEventListener("touchmove",le),window.addEventListener("mouseup",se),window.addEventListener("touchend",se),function(){window.removeEventListener("mousemove",le),window.removeEventListener("touchmove",le),window.removeEventListener("mouseup",se),window.removeEventListener("touchend",se),Et.cancel(ne);}}},[b]),f__namespace.useEffect(function(){D();},[a]),f__namespace.useImperativeHandle(t,function(){return {delayHidden:D}});var ce="".concat(r,"-scrollbar"),Z={position:"absolute",visibility:T&&W?null:"hidden"},ee={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(Z.height=8,Z.left=0,Z.right=0,Z.bottom=0,ee.height="100%",ee.width=d,P?ee.left=V:ee.right=V):(Z.width=8,Z.top=0,Z.bottom=0,P?Z.right=0:Z.left=0,ee.width="100%",ee.height=d,ee.top=V),f__namespace.createElement("div",{ref:N,className:G(ce,(n={},H(n,"".concat(ce,"-horizontal"),u),H(n,"".concat(ce,"-vertical"),!u),H(n,"".concat(ce,"-visible"),T),n)),style:U(U({},Z),g),onMouseDown:X,onMouseMove:D},f__namespace.createElement("div",{ref:L,className:G("".concat(ce,"-thumb"),H({},"".concat(ce,"-thumb-moving"),b)),style:U(U({},ee),v),onMouseDown:Q}))});function rte(e){var t=e.children,n=e.setRef,r=f__namespace.useCallback(function(o){n(o);},[]);return f__namespace.cloneElement(t,{ref:r})}function ote(e,t,n,r,o,a,i){var l=i.getKey;return e.slice(t,n+1).map(function(s,c){var u=t+c,d=a(s,u,{style:{width:r}}),m=l(s);return f__namespace.createElement(rte,{key:m,setRef:function(v){return o(s,v)}},d)})}var ate=function(){function e(){cr(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null);}return ur(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function ite(e,t,n){var r=f__namespace.useState(0),o=J(r,2),a=o[0],i=o[1],l=f.useRef(new Map),s=f.useRef(new ate),c=f.useRef();function u(){Et.cancel(c.current);}function d(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var v=function(){l.current.forEach(function(p,b){if(p&&p.offsetParent){var y=Al(p),C=y.offsetHeight;s.current.get(b)!==C&&s.current.set(b,y.offsetHeight);}}),i(function(p){return p+1});};g?v():c.current=Et(v);}function m(g,v){var h=e(g),p=l.current.get(h);v?(l.current.set(h,v),d()):l.current.delete(h),!p!=!v&&(v?t==null||t(g):n==null||n(g));}return f.useEffect(function(){return u},[]),[m,d,s.current,a]}var lte=10;function ste(e,t,n,r,o,a,i,l){var s=f__namespace.useRef(),c=f__namespace.useState(null),u=J(c,2),d=u[0],m=u[1];return en(function(){if(d&&d.times<lte){if(!e.current){m(function(D){return U({},D)});return}a();var g=d.targetAlign,v=d.originAlign,h=d.index,p=d.offset,b=e.current.clientHeight,y=!1,C=g,w=null;if(b){for(var x=g||v,$=0,S=0,O=0,E=Math.min(t.length-1,h),I=0;I<=E;I+=1){var P=o(t[I]);S=$;var N=n.get(P);O=S+(N===void 0?r:N),$=O;}for(var L=x==="top"?p:b-p,k=E;k>=0;k-=1){var A=o(t[k]),T=n.get(A);if(T===void 0){y=!0;break}if(L-=T,L<=0)break}switch(x){case"top":w=S-p;break;case"bottom":w=O-b+p;break;default:{var R=e.current.scrollTop,_=R+b;S<R?C="top":O>_&&(C="bottom");}}w!==null&&i(w),w!==d.lastTop&&(y=!0);}y&&m(function(D){return U(U({},D),{},{times:D.times+1,targetAlign:C,lastTop:w})});}},[d,e.current]),function(g){if(g==null){l();return}if(Et.cancel(s.current),typeof g=="number")i(g);else if(g&&ht(g)==="object"){var v,h=g.align;"index"in g?v=g.index:v=t.findIndex(function(y){return o(y)===g.key});var p=g.offset,b=p===void 0?0:p;m({times:0,index:v,offset:b,originAlign:h});}}}function cte(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var l={__EMPTY_ITEM__:!0};function s(v){return v!==void 0?n(v):l}for(var c=null,u=Math.abs(r-o)!==1,d=0;d<i.length;d+=1){var m=s(a[d]),g=s(i[d]);if(m!==g){c=d,u=u||m!==s(i[d+1]);break}}return c===null?null:{index:c,multiple:u}}function ute(e,t,n){var r=f__namespace.useState(e),o=J(r,2),a=o[0],i=o[1],l=f__namespace.useState(null),s=J(l,2),c=s[0],u=s[1];return f__namespace.useEffect(function(){var d=cte(a||[],e||[],t);(d==null?void 0:d.index)!==void 0&&(n==null||n(d.index),u(e[d.index])),i(e);},[e]),[c]}var o1=(typeof navigator>"u"?"undefined":ht(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const aO=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 a=f.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=i<0&&a.current.top||i>0&&a.current.bottom;return l&&s?(clearTimeout(r.current),n.current=!1):(!s||n.current)&&o(),!n.current&&s}};function dte(e,t,n,r,o){var a=f.useRef(0),i=f.useRef(null),l=f.useRef(null),s=f.useRef(!1),c=aO(t,n);function u(p,b){Et.cancel(i.current),a.current+=b,l.current=b,!c(b)&&(o1||p.preventDefault(),i.current=Et(function(){var y=s.current?10:1;o(a.current*y),a.current=0;}));}function d(p,b){o(b,!0),o1||p.preventDefault();}var m=f.useRef(null),g=f.useRef(null);function v(p){if(e){Et.cancel(g.current),g.current=Et(function(){m.current=null;},2);var b=p.deltaX,y=p.deltaY,C=p.shiftKey,w=b,x=y;(m.current==="sx"||!m.current&&C&&y&&!b)&&(w=y,x=0,m.current="sx");var $=Math.abs(w),S=Math.abs(x);m.current===null&&(m.current=r&&$>S?"x":"y"),m.current==="y"?u(p,x):d(p,w);}}function h(p){e&&(s.current=p.detail===l.current);}return [v,h]}var fte=14/15;function mte(e,t,n){var r=f.useRef(!1),o=f.useRef(0),a=f.useRef(null),i=f.useRef(null),l,s=function(m){if(r.current){var g=Math.ceil(m.touches[0].pageY),v=o.current-g;o.current=g,n(v)&&m.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){v*=fte,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(i.current);},16);}},c=function(){r.current=!1,l();},u=function(m){l(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",s),a.current.addEventListener("touchend",c));};l=function(){a.current&&(a.current.removeEventListener("touchmove",s),a.current.removeEventListener("touchend",c));},en(function(){return e&&t.current.addEventListener("touchstart",u),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),l(),clearInterval(i.current);}},[e]);}var gte=20;function a1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),n=Math.max(n,gte),n=Math.min(n,e/2),Math.floor(n)}function vte(e,t,n,r){var o=f__namespace.useMemo(function(){return [new Map,[]]},[e,n.id,r]),a=J(o,2),i=a[0],l=a[1],s=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,m=i.get(u),g=i.get(d);if(m===void 0||g===void 0)for(var v=e.length,h=l.length;h<v;h+=1){var p,b=e[h],y=t(b);i.set(y,h);var C=(p=n.get(y))!==null&&p!==void 0?p:r;if(l[h]=(l[h-1]||0)+C,y===u&&(m=h),y===d&&(g=h),m!==void 0&&g!==void 0)break}return {top:l[m-1]||0,bottom:l[g]}};return s}var hte=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],pte=[],bte={overflowY:"auto",overflowAnchor:"none"};function yte(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,l=e.fullHeight,s=l===void 0?!0:l,c=e.style,u=e.data,d=e.children,m=e.itemKey,g=e.virtual,v=e.direction,h=e.scrollWidth,p=e.component,b=p===void 0?"div":p,y=e.onScroll,C=e.onVirtualScroll,w=e.onVisibleChange,x=e.innerProps,$=e.extraRender,S=e.styles,O=dt(e,hte),E=!!(g!==!1&&a&&i),I=E&&u&&(i*u.length>a||!!h),P=v==="rtl",N=G(r,H({},"".concat(r,"-rtl"),P),o),L=u||pte,k=f.useRef(),A=f.useRef(),T=f.useState(0),R=J(T,2),_=R[0],D=R[1],z=f.useState(0),F=J(z,2),W=F[0],V=F[1],X=f.useState(!1),q=J(X,2),Q=q[0],ue=q[1],Y=function(){ue(!0);},ce=function(){ue(!1);},Z=f__namespace.useCallback(function(Se){return typeof m=="function"?m(Se):Se==null?void 0:Se[m]},[m]),ee={getKey:Z};function ne(Se){D(function(Ae){var Ve;typeof Se=="function"?Ve=Se(Ae):Ve=Se;var ct=mt(Ve);return k.current.scrollTop=ct,ct});}var le=f.useRef({start:0,end:L.length}),se=f.useRef(),K=ute(L,Z),te=J(K,1),re=te[0];se.current=re;var ve=ite(Z,null,null),ae=J(ve,4),ie=ae[0],fe=ae[1],Ee=ae[2],$e=ae[3],We=f__namespace.useMemo(function(){if(!E)return {scrollHeight:void 0,start:0,end:L.length-1,offset:void 0};if(!I){var Se;return {scrollHeight:((Se=A.current)===null||Se===void 0?void 0:Se.offsetHeight)||0,start:0,end:L.length-1,offset:void 0}}for(var Ae=0,Ve,ct,At,It=L.length,Ft=0;Ft<It;Ft+=1){var Yt=L[Ft],Cn=Z(Yt),ln=Ee.get(Cn),rn=Ae+(ln===void 0?i:ln);rn>=_&&Ve===void 0&&(Ve=Ft,ct=Ae),rn>_+a&&At===void 0&&(At=Ft),Ae=rn;}return Ve===void 0&&(Ve=0,ct=0,At=Math.ceil(a/i)),At===void 0&&(At=L.length-1),At=Math.min(At+1,L.length-1),{scrollHeight:Ae,start:Ve,end:At,offset:ct}},[I,E,_,L,$e,a]),Ke=We.scrollHeight,Te=We.start,Ue=We.end,_e=We.offset;le.current.start=Te,le.current.end=Ue;var Oe=f__namespace.useState({width:0,height:a}),De=J(Oe,2),Ie=De[0],yt=De[1],Qe=function(Ae){yt(Ae);},gt=f.useRef(),Ze=f.useRef(),et=f__namespace.useMemo(function(){return a1(Ie.width,h)},[Ie.width,h]),ot=f__namespace.useMemo(function(){return a1(Ie.height,Ke)},[Ie.height,Ke]),wt=Ke-a,st=f.useRef(wt);st.current=wt;function mt(Se){var Ae=Se;return Number.isNaN(st.current)||(Ae=Math.min(Ae,st.current)),Ae=Math.max(Ae,0),Ae}var ut=_<=0,we=_>=wt,Pe=aO(ut,we),Le=function(){return {x:P?-W:W,y:_}},he=f.useRef(Le()),Ne=Kn(function(){if(C){var Se=Le();(he.current.x!==Se.x||he.current.y!==Se.y)&&(C(Se),he.current=Se);}});function Re(Se,Ae){var Ve=Se;Ae?(gS.flushSync(function(){V(Ve);}),Ne()):ne(Ve);}function He(Se){var Ae=Se.currentTarget.scrollTop;Ae!==_&&ne(Ae),y==null||y(Se),Ne();}var me=function(Ae){var Ve=Ae,ct=h-Ie.width;return Ve=Math.max(Ve,0),Ve=Math.min(Ve,ct),Ve},pe=Kn(function(Se,Ae){Ae?(gS.flushSync(function(){V(function(Ve){var ct=Ve+(P?-Se:Se);return me(ct)});}),Ne()):ne(function(Ve){var ct=Ve+Se;return ct});}),Ce=dte(E,ut,we,!!h,pe),ye=J(Ce,2),ge=ye[0],Me=ye[1];mte(E,k,function(Se,Ae){return Pe(Se,Ae)?!1:(ge({preventDefault:function(){},deltaY:Se}),!0)}),en(function(){function Se(Ve){E&&Ve.preventDefault();}var Ae=k.current;return Ae.addEventListener("wheel",ge),Ae.addEventListener("DOMMouseScroll",Me),Ae.addEventListener("MozMousePixelScroll",Se),function(){Ae.removeEventListener("wheel",ge),Ae.removeEventListener("DOMMouseScroll",Me),Ae.removeEventListener("MozMousePixelScroll",Se);}},[E]),en(function(){h&&V(function(Se){return me(Se)});},[Ie.width,h]);var ze=function(){var Ae,Ve;(Ae=gt.current)===null||Ae===void 0||Ae.delayHidden(),(Ve=Ze.current)===null||Ve===void 0||Ve.delayHidden();},at=ste(k,L,Ee,i,Z,function(){return fe(!0)},ne,ze);f__namespace.useImperativeHandle(t,function(){return {getScrollInfo:Le,scrollTo:function(Ae){function Ve(ct){return ct&&ht(ct)==="object"&&("left"in ct||"top"in ct)}Ve(Ae)?(Ae.left!==void 0&&V(me(Ae.left)),at(Ae.top)):at(Ae);}}}),en(function(){if(w){var Se=L.slice(Te,Ue+1);w(Se,L);}},[Te,Ue,L]);var rt=vte(L,Z,Ee,i),Rt=$==null?void 0:$({start:Te,end:Ue,virtual:I,offsetX:W,offsetY:_e,rtl:P,getSize:rt}),qe=ote(L,Te,Ue,h,ie,d,ee),ke=null;a&&(ke=U(H({},s?"height":"maxHeight",a),bte),E&&(ke.overflowY="hidden",h&&(ke.overflowX="hidden"),Q&&(ke.pointerEvents="none")));var Xe={};return P&&(Xe.dir="rtl"),f__namespace.createElement("div",xe({style:U(U({},c),{},{position:"relative"}),className:N},Xe,O),f__namespace.createElement(zr,{onResize:Qe},f__namespace.createElement(b,{className:"".concat(r,"-holder"),style:ke,ref:k,onScroll:He,onMouseEnter:ze},f__namespace.createElement(oO,{prefixCls:r,height:Ke,offsetX:W,offsetY:_e,scrollWidth:h,onInnerResize:fe,ref:A,innerProps:x,rtl:P,extra:Rt},qe))),I&&Ke>a&&f__namespace.createElement(r1,{ref:gt,prefixCls:r,scrollOffset:_,scrollRange:Ke,rtl:P,onScroll:Re,onStartMove:Y,onStopMove:ce,spinSize:ot,containerSize:Ie.height,style:S==null?void 0:S.verticalScrollBar,thumbStyle:S==null?void 0:S.verticalScrollBarThumb}),I&&h&&f__namespace.createElement(r1,{ref:Ze,prefixCls:r,scrollOffset:W,scrollRange:h,rtl:P,onScroll:Re,onStartMove:Y,onStopMove:ce,spinSize:et,containerSize:Ie.width,horizontal:!0,style:S==null?void 0:S.horizontalScrollBar,thumbStyle:S==null?void 0:S.horizontalScrollBarThumb}))}var iO=f__namespace.forwardRef(yte);iO.displayName="List";function Cte(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ste=["disabled","title","children","style","className"];function i1(e){return typeof e=="string"||typeof e=="number"}var $te=function(t,n){var r=Tee(),o=r.prefixCls,a=r.id,i=r.open,l=r.multiple,s=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,m=r.onPopupScroll,g=f__namespace.useContext(Tp),v=g.maxCount,h=g.flattenOptions,p=g.onActiveValue,b=g.defaultActiveFirstOption,y=g.onSelect,C=g.menuItemSelectedIcon,w=g.rawValues,x=g.fieldNames,$=g.virtual,S=g.direction,O=g.listHeight,E=g.listItemHeight,I=g.optionRender,P="".concat(o,"-item"),N=Rs(function(){return h},[i,h],function(Z,ee){return ee[0]&&Z[1]!==ee[1]}),L=f__namespace.useRef(null),k=f__namespace.useMemo(function(){return l&&typeof v<"u"&&(w==null?void 0:w.size)>=v},[l,v,w==null?void 0:w.size]),A=function(ee){ee.preventDefault();},T=function(ee){var ne;(ne=L.current)===null||ne===void 0||ne.scrollTo(typeof ee=="number"?{index:ee}:ee);},R=function(ee){for(var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,le=N.length,se=0;se<le;se+=1){var K=(ee+se*ne+le)%le,te=N[K]||{},re=te.group,ve=te.data;if(!re&&!(ve!=null&&ve.disabled)&&!k)return K}return -1},_=f__namespace.useState(function(){return R(0)}),D=J(_,2),z=D[0],F=D[1],W=function(ee){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;F(ee);var le={source:ne?"keyboard":"mouse"},se=N[ee];if(!se){p(null,-1,le);return}p(se.value,ee,le);};f.useEffect(function(){W(b!==!1?R(0):-1);},[N.length,c]);var V=f__namespace.useCallback(function(Z){return w.has(Z)&&s!=="combobox"},[s,Ge(w).toString(),w.size]);f.useEffect(function(){var Z=setTimeout(function(){if(!l&&i&&w.size===1){var ne=Array.from(w)[0],le=N.findIndex(function(se){var K=se.data;return K.value===ne});le!==-1&&(W(le),T(le));}});if(i){var ee;(ee=L.current)===null||ee===void 0||ee.scrollTo(void 0);}return function(){return clearTimeout(Z)}},[i,c]);var X=function(ee){ee!==void 0&&y(ee,{selected:!w.has(ee)}),l||u(!1);};if(f__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(ee){var ne=ee.which,le=ee.ctrlKey;switch(ne){case de.N:case de.P:case de.UP:case de.DOWN:{var se=0;if(ne===de.UP?se=-1:ne===de.DOWN?se=1:Cte()&&le&&(ne===de.N?se=1:ne===de.P&&(se=-1)),se!==0){var K=R(z+se,se);T(K),W(K,!0);}break}case de.ENTER:{var te,re=N[z];re&&!(re!=null&&(te=re.data)!==null&&te!==void 0&&te.disabled)&&!k?X(re.value):X(void 0),i&&ee.preventDefault();break}case de.ESC:u(!1),i&&ee.stopPropagation();}},onKeyUp:function(){},scrollTo:function(ee){T(ee);}}}),N.length===0)return f__namespace.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(P,"-empty"),onMouseDown:A},d);var q=Object.keys(x).map(function(Z){return x[Z]}),Q=function(ee){return ee.label};function ue(Z,ee){var ne=Z.group;return {role:ne?"presentation":"option",id:"".concat(a,"_list_").concat(ee)}}var Y=function(ee){var ne=N[ee];if(!ne)return null;var le=ne.data||{},se=le.value,K=ne.group,te=La(le,!0),re=Q(ne);return ne?f__namespace.createElement("div",xe({"aria-label":typeof re=="string"&&!K?re:null},te,{key:ee},ue(ne,ee),{"aria-selected":V(se)}),se):null},ce={role:"listbox",id:"".concat(a,"_list")};return f__namespace.createElement(f__namespace.Fragment,null,$&&f__namespace.createElement("div",xe({},ce,{style:{height:0,width:0,overflow:"hidden"}}),Y(z-1),Y(z),Y(z+1)),f__namespace.createElement(iO,{itemKey:"key",ref:L,data:N,height:O,itemHeight:E,fullHeight:!1,onMouseDown:A,onScroll:m,virtual:$,direction:S,innerProps:$?null:ce},function(Z,ee){var ne,le=Z.group,se=Z.groupOption,K=Z.data,te=Z.label,re=Z.value,ve=K.key;if(le){var ae,ie=(ae=K.title)!==null&&ae!==void 0?ae:i1(te)?te.toString():void 0;return f__namespace.createElement("div",{className:G(P,"".concat(P,"-group")),title:ie},te!==void 0?te:ve)}var fe=K.disabled,Ee=K.title;K.children;var $e=K.style,We=K.className,Ke=dt(K,Ste),Te=Yn(Ke,q),Ue=V(re),_e=fe||!Ue&&k,Oe="".concat(P,"-option"),De=G(P,Oe,We,(ne={},H(ne,"".concat(Oe,"-grouped"),se),H(ne,"".concat(Oe,"-active"),z===ee&&!_e),H(ne,"".concat(Oe,"-disabled"),_e),H(ne,"".concat(Oe,"-selected"),Ue),ne)),Ie=Q(Z),yt=!C||typeof C=="function"||Ue,Qe=typeof Ie=="number"?Ie:Ie||re,gt=i1(Qe)?Qe.toString():void 0;return Ee!==void 0&&(gt=Ee),f__namespace.createElement("div",xe({},La(Te),$?{}:ue(Z,ee),{"aria-selected":Ue,className:De,title:gt,onMouseMove:function(){z===ee||_e||W(ee);},onClick:function(){_e||X(re);},style:$e}),f__namespace.createElement("div",{className:"".concat(Oe,"-content")},typeof I=="function"?I(Z,{index:ee}):Qe),f__namespace.isValidElement(C)||Ue,yt&&f__namespace.createElement(Of,{className:"".concat(P,"-option-state"),customizeIcon:C,customizeIconProps:{value:re,disabled:_e,isSelected:Ue}},Ue?"✓":null))}))},wte=f__namespace.forwardRef($te);const xte=function(e,t){var n=f__namespace.useRef({values:new Map,options:new Map}),r=f__namespace.useMemo(function(){var a=n.current,i=a.values,l=a.options,s=e.map(function(d){if(d.label===void 0){var m;return U(U({},d),{},{label:(m=i.get(d.value))===null||m===void 0?void 0:m.label})}return d}),c=new Map,u=new Map;return s.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||l.get(d.value));}),n.current.values=c,n.current.options=u,s},[e,t]),o=f__namespace.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return [r,o]};function Pm(e,t){return tO(e).join("").toUpperCase().includes(t)}const Ete=function(e,t,n,r,o){return f__namespace.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,l=t.value,s=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(g,v){return o?Pm(v[o],u):v[a]?Pm(v[i!=="children"?i:"label"],u):Pm(v[l],u)},m=c?function(g){return pv(g)}:function(g){return g};return e.forEach(function(g){if(g[a]){var v=d(n,m(g));if(v)s.push(g);else {var h=g[a].filter(function(p){return d(n,m(p))});h.length&&s.push(U(U({},g),{},H({},a,h)));}return}d(n,m(g))&&s.push(g);}),s},[e,r,o,n,t])};var l1=0,Ote=nr();function Ite(){var e;return Ote?(e=l1,l1+=1):e="TEST_OR_SSR",e}function Pte(e){var t=f__namespace.useState(),n=J(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){o("rc_select_".concat(Ite()));},[]),e||r}var Mte=["children","value"],Rte=["children"];function _te(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=dt(r,Mte);return U({key:n,value:a!==void 0?a:n,children:o},i)}function lO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ir(e).map(function(n,r){if(!f__namespace.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,l=o.props,s=l.children,c=dt(l,Rte);return t||!a?_te(n):U(U({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:lO(s)})}).filter(function(n){return n})}var Nte=function(t,n,r,o,a){return f__namespace.useMemo(function(){var i=t,l=!t;l&&(i=lO(n));var s=new Map,c=new Map,u=function(g,v,h){h&&typeof h=="string"&&g.set(v[h],v);},d=function m(g){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<g.length;h+=1){var p=g[h];!p[r.options]||v?(s.set(p[r.value],p),u(c,p,r.label),u(c,p,o),u(c,p,a)):m(p[r.options],!0);}};return d(i),{options:i,valueOptions:s,labelOptions:c}},[t,n,r,o,a])};function s1(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Tte=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange","maxCount"],Lte=["inputValue"];function kte(e){return !e||ht(e)!=="object"}var Ate=f__namespace.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,l=e.fieldNames,s=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,m=d===void 0?!0:d,g=e.onSelect,v=e.onDeselect,h=e.dropdownMatchSelectWidth,p=h===void 0?!0:h,b=e.filterOption,y=e.filterSort,C=e.optionFilterProp,w=e.optionLabelProp,x=e.options,$=e.optionRender,S=e.children,O=e.defaultActiveFirstOption,E=e.menuItemSelectedIcon,I=e.virtual,P=e.direction,N=e.listHeight,L=N===void 0?200:N,k=e.listItemHeight,A=k===void 0?20:k,T=e.value,R=e.defaultValue,_=e.labelInValue,D=e.onChange,z=e.maxCount,F=dt(e,Tte),W=Pte(n),V=bv(r),X=!!(!x&&S),q=f__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),Q=f__namespace.useMemo(function(){return rO(l,X)},[JSON.stringify(l),X]),ue=Gt("",{value:c!==void 0?c:s,postState:function(Ce){return Ce||""}}),Y=J(ue,2),ce=Y[0],Z=Y[1],ee=Nte(x,S,Q,C,w),ne=ee.valueOptions,le=ee.labelOptions,se=ee.options,K=f__namespace.useCallback(function(pe){var Ce=tO(pe);return Ce.map(function(ye){var ge,Me,ze,at,rt;if(kte(ye))ge=ye;else {var Rt;ze=ye.key,Me=ye.label,ge=(Rt=ye.value)!==null&&Rt!==void 0?Rt:ze;}var qe=ne.get(ge);if(qe){var ke;Me===void 0&&(Me=qe==null?void 0:qe[w||Q.label]),ze===void 0&&(ze=(ke=qe==null?void 0:qe.key)!==null&&ke!==void 0?ke:ge),at=qe==null?void 0:qe.disabled,rt=qe==null?void 0:qe.title;}return {label:Me,value:ge,key:ze,disabled:at,title:rt}})},[Q,w,ne]),te=Gt(R,{value:T}),re=J(te,2),ve=re[0],ae=re[1],ie=f__namespace.useMemo(function(){var pe,Ce=V&&ve===null?[]:ve,ye=K(Ce);return r==="combobox"&&Fee((pe=ye[0])===null||pe===void 0?void 0:pe.value)?[]:ye},[ve,K,r,V]),fe=xte(ie,ne),Ee=J(fe,2),$e=Ee[0],We=Ee[1],Ke=f__namespace.useMemo(function(){if(!r&&$e.length===1){var pe=$e[0];if(pe.value===null&&(pe.label===null||pe.label===void 0))return []}return $e.map(function(Ce){var ye;return U(U({},Ce),{},{label:(ye=Ce.label)!==null&&ye!==void 0?ye:Ce.value})})},[r,$e]),Te=f__namespace.useMemo(function(){return new Set($e.map(function(pe){return pe.value}))},[$e]);f__namespace.useEffect(function(){if(r==="combobox"){var pe,Ce=(pe=$e[0])===null||pe===void 0?void 0:pe.value;Z(zee(Ce)?String(Ce):"");}},[$e]);var Ue=s1(function(pe,Ce){var ye,ge=Ce??pe;return ye={},H(ye,Q.value,pe),H(ye,Q.label,ge),ye}),_e=f__namespace.useMemo(function(){if(r!=="tags")return se;var pe=Ge(se),Ce=function(ge){return ne.has(ge)};return Ge($e).sort(function(ye,ge){return ye.value<ge.value?-1:1}).forEach(function(ye){var ge=ye.value;Ce(ge)||pe.push(Ue(ge,ye.label));}),pe},[Ue,se,ne,$e,r]),Oe=Ete(_e,Q,ce,q,C),De=f__namespace.useMemo(function(){return r!=="tags"||!ce||Oe.some(function(pe){return pe[C||"value"]===ce})||Oe.some(function(pe){return pe[Q.value]===ce})?Oe:[Ue(ce)].concat(Ge(Oe))},[Ue,C,r,Oe,ce,Q]),Ie=f__namespace.useMemo(function(){return y?Ge(De).sort(function(pe,Ce){return y(pe,Ce)}):De},[De,y]),yt=f__namespace.useMemo(function(){return Qee(Ie,{fieldNames:Q,childrenAsData:X})},[Ie,Q,X]),Qe=function(Ce){var ye=K(Ce);if(ae(ye),D&&(ye.length!==$e.length||ye.some(function(ze,at){var rt;return ((rt=$e[at])===null||rt===void 0?void 0:rt.value)!==(ze==null?void 0:ze.value)}))){var ge=_?ye:ye.map(function(ze){return ze.value}),Me=ye.map(function(ze){return pv(We(ze.value))});D(V?ge:ge[0],V?Me:Me[0]);}},gt=f__namespace.useState(null),Ze=J(gt,2),et=Ze[0],ot=Ze[1],wt=f__namespace.useState(0),st=J(wt,2),mt=st[0],ut=st[1],we=O!==void 0?O:r!=="combobox",Pe=f__namespace.useCallback(function(pe,Ce){var ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ge=ye.source,Me=ge===void 0?"keyboard":ge;ut(Ce),i&&r==="combobox"&&pe!==null&&Me==="keyboard"&&ot(String(pe));},[i,r]),Le=function(Ce,ye,ge){var Me=function(){var Ve,ct=We(Ce);return [_?{label:ct==null?void 0:ct[Q.label],value:Ce,key:(Ve=ct==null?void 0:ct.key)!==null&&Ve!==void 0?Ve:Ce}:Ce,pv(ct)]};if(ye&&g){var ze=Me(),at=J(ze,2),rt=at[0],Rt=at[1];g(rt,Rt);}else if(!ye&&v&&ge!=="clear"){var qe=Me(),ke=J(qe,2),Xe=ke[0],Se=ke[1];v(Xe,Se);}},he=s1(function(pe,Ce){var ye,ge=V?Ce.selected:!0;ge?ye=V?[].concat(Ge($e),[pe]):[pe]:ye=$e.filter(function(Me){return Me.value!==pe}),Qe(ye),Le(pe,ge),r==="combobox"?ot(""):(!bv||m)&&(Z(""),ot(""));}),Ne=function(Ce,ye){Qe(Ce);var ge=ye.type,Me=ye.values;(ge==="remove"||ge==="clear")&&Me.forEach(function(ze){Le(ze.value,!1,ge);});},Re=function(Ce,ye){if(Z(Ce),ot(null),ye.source==="submit"){var ge=(Ce||"").trim();if(ge){var Me=Array.from(new Set([].concat(Ge(Te),[ge])));Qe(Me),Le(ge,!0),Z("");}return}ye.source!=="blur"&&(r==="combobox"&&Qe(Ce),u==null||u(Ce));},He=function(Ce){var ye=Ce;r!=="tags"&&(ye=Ce.map(function(Me){var ze=le.get(Me);return ze==null?void 0:ze.value}).filter(function(Me){return Me!==void 0}));var ge=Array.from(new Set([].concat(Ge(Te),Ge(ye))));Qe(ge),ge.forEach(function(Me){Le(Me,!0);});},me=f__namespace.useMemo(function(){var pe=I!==!1&&p!==!1;return U(U({},ee),{},{flattenOptions:yt,onActiveValue:Pe,defaultActiveFirstOption:we,onSelect:he,menuItemSelectedIcon:E,rawValues:Te,fieldNames:Q,virtual:pe,direction:P,listHeight:L,listItemHeight:A,childrenAsData:X,maxCount:z,optionRender:$})},[z,ee,yt,Pe,we,he,E,Te,Q,I,p,P,L,A,X,$]);return f__namespace.createElement(Tp.Provider,{value:me},f__namespace.createElement(nte,xe({},F,{id:W,prefixCls:a,ref:t,omitDomProps:Lte,mode:r,displayValues:Ke,onDisplayValuesChange:Ne,direction:P,searchValue:ce,onSearch:Re,autoClearSearchValue:m,onSearchSplit:He,dropdownMatchSelectWidth:p,OptionList:wte,emptyOptions:!yt.length,activeValue:et,activeDescendantId:"".concat(W,"_list_").concat(mt)})))}),Ap=Ate;Ap.Option=kp;Ap.OptGroup=Lp;const jte=["outlined","borderless","filled"],Dte=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=f.useContext(pV);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const o=jte.includes(r);return [r,o]},If=Dte,zte=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return {bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function Fte(e,t){return e||zte(t)}const Bte=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return {position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Hte=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},Lt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
${o}${l}bottomLeft,
${a}${l}bottomLeft
`]:{animationName:Vh},[`
${o}${l}topLeft,
${a}${l}topLeft,
${o}${l}topRight,
${a}${l}topRight
`]:{animationName:Kh},[`${i}${l}bottomLeft`]:{animationName:Gh},[`
${i}${l}topLeft,
${i}${l}topRight
`]:{animationName:Uh},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},Bte(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ra),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}}}),"&-rtl":{direction:"rtl"}})},ta(e,"slide-up"),ta(e,"slide-down"),Eu(e,"move-up"),Eu(e,"move-down")]},Wte=Hte,oi=2,Vte=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()};function Mm(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=Vte(e),l=t?`${n}-${t}`:"";return {[`${n}-multiple${l}`]:{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",height:"100%",paddingInline:e.calc(oi).mul(2).equal(),paddingBlock:e.calc(i).sub(oi).equal(),borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${B(oi)} 0`,lineHeight:B(a),visibility:"hidden",content:'"\\a0"'}},[`
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:oi,marginBottom:oi,lineHeight:B(e.calc(a).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(oi).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ja()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:B(a),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 Gte=e=>{const{componentCls:t}=e,n=Ot(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Ot(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return [Mm(e),Mm(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Mm(r,"lg")]},Kte=Gte;function Rm(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return {[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Lt(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${n}-selection-item,
${n}-selection-placeholder
`]:{padding:0,lineHeight:B(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-placeholder
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${B(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:B(a)}}},[`&${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 ${B(r)}`,"&:after":{display:"none"}}}}}}}function Ute(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return [Rm(e),Rm(Ot(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 ${B(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Rm(Ot(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const qte=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:m,controlHeightSM:g,colorBgContainerDisabled:v,colorTextDisabled:h}=e;return {zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:m,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:g,multipleItemHeightLG:r,multipleSelectorBgDisabled:v,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},sO=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return {[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${B(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${B(o)} ${t.activeShadowColor}`,outline:0}}}},c1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},sO(e,t))}),Xte=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},sO(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),c1(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),c1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${B(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),cO=(e,t)=>{const{componentCls:n,antCls:r}=e;return {[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${B(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},u1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},cO(e,t))}),Yte=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},cO(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),u1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),u1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${B(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Zte=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${B(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),Qte=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Xte(e)),Yte(e)),Zte(e))}),Jte=Qte,ene=e=>{const{componentCls:t}=e;return {position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},tne=e=>{const{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},nne=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return {[n]:Object.assign(Object.assign({},Lt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},ene(e)),tne(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ra),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ra),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ja()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},rne=e=>{const{componentCls:t}=e;return [{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},nne(e),Ute(e),Kte(e),Wte(e),{[`${t}-rtl`]:{direction:"rtl"}},uf(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},one=Kt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Ot(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [rne(r),Jte(r)]},qte,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var ane={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 ine=ane;var lne=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:ine}))};const sne=f__namespace.forwardRef(lne);var cne={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 une=cne;var dne=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:une}))};const jp=f__namespace.forwardRef(dne);function fne(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:l,prefixCls:s,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:m}=e;const g=n??f__namespace.createElement(el,null),v=y=>t===null&&!l&&!d?null:f__namespace.createElement(f__namespace.Fragment,null,c!==!1&&y,l&&u);let h=null;if(t!==void 0)h=v(t);else if(a)h=v(f__namespace.createElement(lf,{spin:!0}));else {const y=`${s}-suffix`;h=C=>{let{open:w,showSearch:x}=C;return v(w&&x?f__namespace.createElement(jp,{className:y}):f__namespace.createElement(Np,{className:y}))};}let p=null;r!==void 0?p=r:i?p=f__namespace.createElement(sne,null):p=null;let b=null;return o!==void 0?b=o:b=f__namespace.createElement(ko,null),{clearIcon:g,suffixIcon:h,itemIcon:p,removeIcon:b}}function mne(e,t){return t!==void 0?t:e!==null}var gne=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 uO="SECRET_COMBOBOX_MODE_DO_NOT_USE",vne=(e,t)=>{var n;const{prefixCls:r,bordered:o,className:a,rootClassName:i,getPopupContainer:l,popupClassName:s,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:m,size:g,disabled:v,notFoundContent:h,status:p,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:C,direction:w,style:x,allowClear:$,variant:S,dropdownStyle:O,transitionName:E,tagRender:I,maxCount:P}=e,N=gne(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:L,getPrefixCls:k,renderEmpty:A,direction:T,virtual:R,popupMatchSelectWidth:_,popupOverflow:D,select:z}=f__namespace.useContext(nt),[,F]=In(),W=m??(F==null?void 0:F.controlHeight),V=k("select",r),X=k(),q=w??T,{compactSize:Q,compactItemClassnames:ue}=Qi(V,q),[Y,ce]=If(S,o),Z=Mn(V),[ee,ne,le]=one(V,Z),se=f__namespace.useMemo(()=>{const{mode:ot}=e;if(ot!=="combobox")return ot===uO?"combobox":ot},[e.mode]),K=se==="multiple"||se==="tags",te=mne(e.suffixIcon,e.showArrow),re=(n=C??y)!==null&&n!==void 0?n:_,{status:ve,hasFeedback:ae,isFormItemInput:ie,feedbackIcon:fe}=f__namespace.useContext(Br),Ee=nc(ve,p);let $e;h!==void 0?$e=h:se==="combobox"?$e=null:$e=(A==null?void 0:A("Select"))||f__namespace.createElement(Z2,{componentName:"Select"});const{suffixIcon:We,itemIcon:Ke,removeIcon:Te,clearIcon:Ue}=fne(Object.assign(Object.assign({},N),{multiple:K,hasFeedback:ae,feedbackIcon:fe,showSuffixIcon:te,prefixCls:V,componentName:"Select"})),_e=$===!0?{clearIcon:Ue}:$,Oe=Yn(N,["suffixIcon","itemIcon"]),De=G(s||c,{[`${V}-dropdown-${q}`]:q==="rtl"},i,le,Z,ne),Ie=hr(ot=>{var wt;return (wt=g??Q)!==null&&wt!==void 0?wt:ot}),yt=f__namespace.useContext(oo),Qe=v??yt,gt=G({[`${V}-lg`]:Ie==="large",[`${V}-sm`]:Ie==="small",[`${V}-rtl`]:q==="rtl",[`${V}-${Y}`]:ce,[`${V}-in-form-item`]:ie},na(V,Ee,ae),ue,z==null?void 0:z.className,a,i,le,Z,ne),Ze=f__namespace.useMemo(()=>d!==void 0?d:q==="rtl"?"bottomRight":"bottomLeft",[d,q]),[et]=As("SelectLike",O==null?void 0:O.zIndex);return ee(f__namespace.createElement(Ap,Object.assign({ref:t,virtual:R,showSearch:z==null?void 0:z.showSearch},Oe,{style:Object.assign(Object.assign({},z==null?void 0:z.style),x),dropdownMatchSelectWidth:re,transitionName:ea(X,"slide-up",E),builtinPlacements:Fte(b,D),listHeight:u,listItemHeight:W,mode:se,prefixCls:V,placement:Ze,direction:q,suffixIcon:We,menuItemSelectedIcon:Ke,removeIcon:Te,allowClear:_e,notFoundContent:$e,className:gt,getPopupContainer:l||L,dropdownClassName:De,disabled:Qe,dropdownStyle:Object.assign(Object.assign({},O),{zIndex:et}),maxCount:K?P:void 0,tagRender:K?I:void 0})))},al=f__namespace.forwardRef(vne),hne=bp(al);al.SECRET_COMBOBOX_MODE_DO_NOT_USE=uO;al.Option=kp;al.OptGroup=Lp;al._InternalPanelDoNotUseOrYouWillBeFired=hne;const rc=al,dO=e=>f__namespace.createElement(rc,Object.assign({},e,{showSearch:!0,size:"small"})),fO=e=>f__namespace.createElement(rc,Object.assign({},e,{showSearch:!0,size:"middle"}));dO.Option=rc.Option;fO.Option=rc.Option;function Dp(e){return Ot(e,{inputAffixPadding:e.paddingXXS})}const zp=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:m,colorPrimaryHover:g,colorPrimary:v,controlOutlineWidth:h,controlOutline:p,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:C}=e;return {paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:m,activeBorderColor:v,hoverBorderColor:g,activeShadow:`0 0 0 ${h}px ${p}`,errorActiveShadow:`0 0 0 ${h}px ${b}`,warningActiveShadow:`0 0 0 ${h}px ${y}`,hoverBg:C,activeBg:C,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},pne=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Pf=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},pne(Ot(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Fp=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),d1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Fp(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),mO=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fp(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Pf(e))}),d1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),d1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),f1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),gO=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},f1(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),f1(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Pf(e))}})}),vO=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),hO=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),m1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},hO(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),pO=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hO(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Pf(e))}),m1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),m1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),g1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),bO=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${B(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${B(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},g1(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),g1(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),yO=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),CO=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return {padding:`${B(t)} ${B(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Bp=e=>({padding:`${B(e.paddingBlockSM)} ${B(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),oc=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${B(e.paddingBlock)} ${B(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},yO(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},CO(e)),"&-sm":Object.assign({},Bp(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),SO=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({},CO(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Bp(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 ${B(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${B(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${B(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${B(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${B(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},wu()),{[`${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,
& > ${t}-number-affix-wrapper,
& > ${n}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
& > ${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.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},bne=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=16,i=o(n).sub(o(r).mul(2)).sub(a).div(2).equal();return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),oc(e)),mO(e)),pO(e)),vO(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},yne=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 ${B(e.inputAffixPadding)}`}}}},Cne=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},oc(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),yne(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}})}},Sne=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Lt(e)),SO(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},gO(e)),bO(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}}})})}},$ne=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.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${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,boxShadow:"none"},[`${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.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
> ${t},
${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},wne=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.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),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",background:"transparent","&: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.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},xne=e=>{const{componentCls:t}=e;return {[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Hp=Kt("Input",e=>{const t=Ot(e,Dp(e));return [bne(t),wne(t),Cne(t),Sne(t),$ne(t),xne(t),uf(t)]},zp),Ene=e=>{const{componentCls:t}=e;return {[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},One=e=>{const{componentCls:t}=e;return {[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:B(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:B(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
&${t}-mini ${t}-prev ${t}-item-link,
&${t}-mini ${t}-next ${t}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:B(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM),input:Object.assign(Object.assign({},Bp(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Ine=e=>{const{componentCls:t}=e;return {[`
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
`]:{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${B(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${B(e.inputOutlineOffset)} 0 ${B(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Pne=e=>{const{componentCls:t}=e;return {[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:e.marginXS},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${B(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${B(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:B(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},oc(e)),Fp(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Pf(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Mne=e=>{const{componentCls:t}=e;return {[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:B(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${B(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${B(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Rne=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:B(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Mne(e)),Pne(e)),Ine(e)),One(e)),Ene(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},_ne=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Jo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},_a(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},_a(e))}}}},$O=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},zp(e)),wO=e=>Ot(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Dp(e)),Nne=Kt("Pagination",e=>{const t=wO(e);return [Rne(t),_ne(t)]},$O),Tne=e=>{const{componentCls:t}=e;return {[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Lne=Ls(["Pagination","bordered"],e=>{const t=wO(e);return [Tne(t)]},$O);var kne=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 Ane=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:a,size:i,locale:l,selectComponentClass:s,responsive:c,showSizeChanger:u}=e,d=kne(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=m2(c),[,g]=In(),{getPrefixCls:v,direction:h,pagination:p={}}=f__namespace.useContext(nt),b=v("pagination",t),[y,C,w]=Nne(b),x=u??p.showSizeChanger,$=f__namespace.useMemo(()=>{const k=f__namespace.createElement("span",{className:`${b}-item-ellipsis`},"•••"),A=f__namespace.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?f__namespace.createElement(ki,null):f__namespace.createElement(Du,null)),T=f__namespace.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?f__namespace.createElement(Du,null):f__namespace.createElement(ki,null)),R=f__namespace.createElement("a",{className:`${b}-item-link`},f__namespace.createElement("div",{className:`${b}-item-container`},h==="rtl"?f__namespace.createElement(YC,{className:`${b}-item-link-icon`}):f__namespace.createElement(XC,{className:`${b}-item-link-icon`}),k)),_=f__namespace.createElement("a",{className:`${b}-item-link`},f__namespace.createElement("div",{className:`${b}-item-container`},h==="rtl"?f__namespace.createElement(XC,{className:`${b}-item-link-icon`}):f__namespace.createElement(YC,{className:`${b}-item-link-icon`}),k));return {prevIcon:A,nextIcon:T,jumpPrevIcon:R,jumpNextIcon:_}},[h,b]),[S]=Lo("Pagination",Fw),O=Object.assign(Object.assign({},S),l),E=hr(i),I=E==="small"||!!(m&&!E&&c),P=v("select",n),N=G({[`${b}-mini`]:I,[`${b}-rtl`]:h==="rtl",[`${b}-bordered`]:g.wireframe},p==null?void 0:p.className,r,o,C,w),L=Object.assign(Object.assign({},p==null?void 0:p.style),a);return y(f__namespace.createElement(f__namespace.Fragment,null,g.wireframe&&f__namespace.createElement(Lne,{prefixCls:b}),f__namespace.createElement(_ee,Object.assign({},$,d,{style:L,prefixCls:b,selectPrefixCls:P,className:N,selectComponentClass:s||(I?dO:fO),locale:O,showSizeChanger:x}))))},jne=Ane;var Dne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const zne=Dne;var Fne=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:zne}))};const Bne=f__namespace.forwardRef(Fne);var Hne=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 Wne={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},Vne=f__namespace.forwardRef((e,t)=>{const n=c=>{const{keyCode:u}=c;u===de.ENTER&&c.preventDefault();},r=c=>{const{keyCode:u}=c,{onClick:d}=e;u===de.ENTER&&d&&d();},{style:o,noStyle:a,disabled:i}=e,l=Hne(e,["style","noStyle","disabled"]);let s={};return a||(s=Object.assign({},Wne)),i&&(s.pointerEvents="none"),s=Object.assign(Object.assign({},s),o),f__namespace.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},l,{onKeyDown:n,onKeyUp:r,style:s}))}),Gne=Vne,Kne=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:a,prefixCls:i,onClick:l,onRemove:s,showRemove:c}=e,u=G(`${i}-content-item`,{[`${i}-content-item-disabled`]:a||r.disabled,[`${i}-content-item-checked`]:o});let d;(typeof t=="string"||typeof t=="number")&&(d=String(t));const[m]=Lo("Transfer",bo.Transfer),g={className:u,title:d},v=f__namespace.createElement("span",{className:`${i}-content-item-text`},n);return c?f__namespace.createElement("li",Object.assign({},g),v,f__namespace.createElement(Gne,{disabled:a||r.disabled,className:`${i}-content-item-remove`,"aria-label":m==null?void 0:m.remove,onClick:()=>{s==null||s(r);}},f__namespace.createElement(Bne,null))):(g.onClick=a||r.disabled?void 0:h=>l(r,h),f__namespace.createElement("li",Object.assign({},g),f__namespace.createElement(Ys,{className:`${i}-checkbox`,checked:o,disabled:a||r.disabled}),v))},Une=f__namespace.memo(Kne),qne=["handleFilter","handleClear","checkedKeys"],Xne=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),Yne=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:a,showRemove:i,pagination:l,onScroll:s,onItemSelect:c,onItemRemove:u}=e,[d,m]=f__namespace.useState(1),g=f__namespace.useMemo(()=>l?Xne(typeof l=="object"?l:{}):null,[l]),[v,h]=Gt(10,{value:g==null?void 0:g.pageSize});f__namespace.useEffect(()=>{if(g){const S=Math.ceil(r.length/v);m(Math.min(d,S));}},[r,g,v]);const p=(S,O)=>{c(S.key,!o.includes(S.key),O);},b=S=>{u==null||u([S.key]);},y=S=>{m(S);},C=(S,O)=>{m(S),h(O);},w=f__namespace.useMemo(()=>g?r.slice((d-1)*v,d*v):r,[d,r,g,v]);f__namespace.useImperativeHandle(t,()=>({items:w}));const x=g?f__namespace.createElement(jne,{size:"small",disabled:a,simple:g.simple,pageSize:v,showLessItems:g.showLessItems,showSizeChanger:g.showSizeChanger,className:`${n}-pagination`,total:r.length,current:d,onChange:y,onShowSizeChange:C}):null,$=G(`${n}-content`,{[`${n}-content-show-remove`]:i});return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("ul",{className:$,onScroll:s},(w||[]).map(S=>{let{renderedEl:O,renderedText:E,item:I}=S;return f__namespace.createElement(Une,{key:I.key,item:I,renderedText:E,renderedEl:O,prefixCls:n,showRemove:i,onClick:p,onRemove:b,checked:o.includes(I.key),disabled:a||I.disabled})})),x)},Zne=f__namespace.forwardRef(Yne),Qne=e=>{const{getPrefixCls:t,direction:n}=f.useContext(nt),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[l,s]=Hp(i),c=G(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},s,o),u=f.useContext(Br),d=f.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return l(f__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},f__namespace.createElement(Br.Provider,{value:d},e.children)))},Jne=Qne;function ere(e){return !!(e.addonBefore||e.addonAfter)}function tre(e){return !!(e.prefix||e.suffix||e.allowClear)}function Hu(e,t,n,r){if(n){var o=t;if(t.type==="click"){var a=e.cloneNode(!0);o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",n(o);return}if(e.type!=="file"&&r!==void 0){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value=r,n(o);return}n(o);}}function xO(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);}}}}var Wp=function(t){var n,r,o=t.inputElement,a=t.children,i=t.prefixCls,l=t.prefix,s=t.suffix,c=t.addonBefore,u=t.addonAfter,d=t.className,m=t.style,g=t.disabled,v=t.readOnly,h=t.focused,p=t.triggerFocus,b=t.allowClear,y=t.value,C=t.handleReset,w=t.hidden,x=t.classes,$=t.classNames,S=t.dataAttrs,O=t.styles,E=t.components,I=a??o,P=(E==null?void 0:E.affixWrapper)||"span",N=(E==null?void 0:E.groupWrapper)||"span",L=(E==null?void 0:E.wrapper)||"span",k=(E==null?void 0:E.groupAddon)||"span",A=f.useRef(null),T=function(se){var K;(K=A.current)!==null&&K!==void 0&&K.contains(se.target)&&(p==null||p());},R=tre(t),_=f.cloneElement(I,{value:y,className:G(I.props.className,!R&&($==null?void 0:$.variant))||null});if(R){var D,z=null;if(b){var F,W=!g&&!v&&y,V="".concat(i,"-clear-icon"),X=ht(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"✖";z=f.createElement("span",{onClick:C,onMouseDown:function(se){return se.preventDefault()},className:G(V,(F={},H(F,"".concat(V,"-hidden"),!W),H(F,"".concat(V,"-has-suffix"),!!s),F)),role:"button",tabIndex:-1},X);}var q="".concat(i,"-affix-wrapper"),Q=G(q,(D={},H(D,"".concat(i,"-disabled"),g),H(D,"".concat(q,"-disabled"),g),H(D,"".concat(q,"-focused"),h),H(D,"".concat(q,"-readonly"),v),H(D,"".concat(q,"-input-with-clear-btn"),s&&b&&y),D),x==null?void 0:x.affixWrapper,$==null?void 0:$.affixWrapper,$==null?void 0:$.variant),ue=(s||b)&&f.createElement("span",{className:G("".concat(i,"-suffix"),$==null?void 0:$.suffix),style:O==null?void 0:O.suffix},z,s);_=f.createElement(P,xe({className:Q,style:O==null?void 0:O.affixWrapper,onClick:T},S==null?void 0:S.affixWrapper,{ref:A}),l&&f.createElement("span",{className:G("".concat(i,"-prefix"),$==null?void 0:$.prefix),style:O==null?void 0:O.prefix},l),_,ue);}if(ere(t)){var Y="".concat(i,"-group"),ce="".concat(Y,"-addon"),Z="".concat(Y,"-wrapper"),ee=G("".concat(i,"-wrapper"),Y,x==null?void 0:x.wrapper,$==null?void 0:$.wrapper),ne=G(Z,H({},"".concat(Z,"-disabled"),g),x==null?void 0:x.group,$==null?void 0:$.groupWrapper);_=f.createElement(N,{className:ne},f.createElement(L,{className:ee},c&&f.createElement(k,{className:ce},c),_,u&&f.createElement(k,{className:ce},u)));}return f.cloneElement(_,{className:G((n=_.props)===null||n===void 0?void 0:n.className,d)||null,style:U(U({},(r=_.props)===null||r===void 0?void 0:r.style),m),hidden:w})},nre=["show"];function EO(e,t){return f__namespace.useMemo(function(){var n={};t&&(n.show=ht(t)==="object"&&t.formatter?t.formatter:!!t),n=U(U({},n),e);var r=n,o=r.show,a=dt(r,nre);return U(U({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var rre=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],ore=f.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,c=s===void 0?"rc-input":s,u=e.disabled,d=e.htmlSize,m=e.className,g=e.maxLength,v=e.suffix,h=e.showCount,p=e.count,b=e.type,y=b===void 0?"text":b,C=e.classes,w=e.classNames,x=e.styles,$=e.onCompositionStart,S=e.onCompositionEnd,O=dt(e,rre),E=f.useState(!1),I=J(E,2),P=I[0],N=I[1],L=f.useRef(!1),k=f.useRef(null),A=function(ie){k.current&&xO(k.current,ie);},T=Gt(e.defaultValue,{value:e.value}),R=J(T,2),_=R[0],D=R[1],z=_==null?"":String(_),F=f.useState(null),W=J(F,2),V=W[0],X=W[1],q=EO(p,h),Q=q.max||g,ue=q.strategy(z),Y=!!Q&&ue>Q;f.useImperativeHandle(t,function(){return {focus:A,blur:function(){var ie;(ie=k.current)===null||ie===void 0||ie.blur();},setSelectionRange:function(ie,fe,Ee){var $e;($e=k.current)===null||$e===void 0||$e.setSelectionRange(ie,fe,Ee);},select:function(){var ie;(ie=k.current)===null||ie===void 0||ie.select();},input:k.current}}),f.useEffect(function(){N(function(ae){return ae&&u?!1:ae});},[u]);var ce=function(ie,fe,Ee){var $e=fe;if(!L.current&&q.exceedFormatter&&q.max&&q.strategy(fe)>q.max){if($e=q.exceedFormatter(fe,{max:q.max}),fe!==$e){var We,Ke;X([((We=k.current)===null||We===void 0?void 0:We.selectionStart)||0,((Ke=k.current)===null||Ke===void 0?void 0:Ke.selectionEnd)||0]);}}else if(Ee.source==="compositionEnd")return;D($e),k.current&&Hu(k.current,ie,r,$e);};f.useEffect(function(){if(V){var ae;(ae=k.current)===null||ae===void 0||ae.setSelectionRange.apply(ae,Ge(V));}},[V]);var Z=function(ie){ce(ie,ie.target.value,{source:"change"});},ee=function(ie){L.current=!1,ce(ie,ie.currentTarget.value,{source:"compositionEnd"}),S==null||S(ie);},ne=function(ie){i&&ie.key==="Enter"&&i(ie),l==null||l(ie);},le=function(ie){N(!0),o==null||o(ie);},se=function(ie){N(!1),a==null||a(ie);},K=function(ie){D(""),A(),k.current&&Hu(k.current,ie,r);},te=Y&&"".concat(c,"-out-of-range"),re=function(){var ie=Yn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return f.createElement("input",xe({autoComplete:n},ie,{onChange:Z,onFocus:le,onBlur:se,onKeyDown:ne,className:G(c,H({},"".concat(c,"-disabled"),u),w==null?void 0:w.input),style:x==null?void 0:x.input,ref:k,size:d,type:y,onCompositionStart:function(Ee){L.current=!0,$==null||$(Ee);},onCompositionEnd:ee}))},ve=function(){var ie=Number(Q)>0;if(v||q.show){var fe=q.showFormatter?q.showFormatter({value:z,count:ue,maxLength:Q}):"".concat(ue).concat(ie?" / ".concat(Q):"");return f.createElement(f.Fragment,null,q.show&&f.createElement("span",{className:G("".concat(c,"-show-count-suffix"),H({},"".concat(c,"-show-count-has-suffix"),!!v),w==null?void 0:w.count),style:U({},x==null?void 0:x.count)},fe),v)}return null};return f.createElement(Wp,xe({},O,{prefixCls:c,className:G(m,te),handleReset:K,value:z,focused:P,triggerFocus:A,suffix:ve(),disabled:u,classes:C,classNames:w,styles:x}),re())});function OO(e,t){const n=f.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,l;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"));}));};return f.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function are(e){return !!(e.prefix||e.suffix||e.allowClear||e.showCount)}const ire=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:f.createElement(el,null)}),t},lre=ire;var sre=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 cre(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 ure=f.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:l,onBlur:s,onFocus:c,suffix:u,allowClear:d,addonAfter:m,addonBefore:g,className:v,style:h,styles:p,rootClassName:b,onChange:y,classNames:C,variant:w}=e,x=sre(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:$,direction:S,input:O}=f.useContext(nt),E=$("input",r),I=f.useRef(null),P=Mn(E),[N,L,k]=Hp(E,P),{compactSize:A,compactItemClassnames:T}=Qi(E,S),R=hr(le=>{var se;return (se=i??A)!==null&&se!==void 0?se:le}),_=f.useContext(oo),D=l??_,{status:z,hasFeedback:F,feedbackIcon:W}=f.useContext(Br),V=nc(z,a),X=are(e)||!!F;f.useRef(X);const q=OO(I,!0),Q=le=>{q(),s==null||s(le);},ue=le=>{q(),c==null||c(le);},Y=le=>{q(),y==null||y(le);},ce=(F||u)&&f.createElement(f.Fragment,null,u,F&&W),Z=lre(d),[ee,ne]=If(w,o);return N(f.createElement(ore,Object.assign({ref:sr(t,I),prefixCls:E,autoComplete:O==null?void 0:O.autoComplete},x,{disabled:D,onBlur:Q,onFocus:ue,style:Object.assign(Object.assign({},O==null?void 0:O.style),h),styles:Object.assign(Object.assign({},O==null?void 0:O.styles),p),suffix:ce,allowClear:Z,className:G(v,b,k,P,T,O==null?void 0:O.className),onChange:Y,addonAfter:m&&f.createElement(Na,null,f.createElement(Ni,{override:!0,status:!0},m)),addonBefore:g&&f.createElement(Na,null,f.createElement(Ni,{override:!0,status:!0},g)),classNames:Object.assign(Object.assign(Object.assign({},C),O==null?void 0:O.classNames),{input:G({[`${E}-sm`]:R==="small",[`${E}-lg`]:R==="large",[`${E}-rtl`]:S==="rtl"},C==null?void 0:C.input,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.input,L),variant:G({[`${E}-${ee}`]:ne},na(E,V)),affixWrapper:G({[`${E}-affix-wrapper-sm`]:R==="small",[`${E}-affix-wrapper-lg`]:R==="large",[`${E}-affix-wrapper-rtl`]:S==="rtl"},L),wrapper:G({[`${E}-group-rtl`]:S==="rtl"},L),groupWrapper:G({[`${E}-group-wrapper-sm`]:R==="small",[`${E}-group-wrapper-lg`]:R==="large",[`${E}-group-wrapper-rtl`]:S==="rtl",[`${E}-group-wrapper-${ee}`]:ne},na(`${E}-group-wrapper`,V,F),L)})})))}),Vp=ure;var dre={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 fre=dre;var mre=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:fre}))};const gre=f__namespace.forwardRef(mre);var vre={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 hre=vre;var pre=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:hre}))};const bre=f__namespace.forwardRef(pre);var yre=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 Cre=e=>e?f__namespace.createElement(bre,null):f__namespace.createElement(gre,null),Sre={click:"onClick",hover:"onMouseOver"},$re=f__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,a]=f.useState(()=>r?n.visible:!1),i=f.useRef(null);f__namespace.useEffect(()=>{r&&a(n.visible);},[r,n]);const l=OO(i),s=()=>{const{disabled:x}=e;x||(o&&l(),a($=>{var S;const O=!$;return typeof n=="object"&&((S=n.onVisibleChange)===null||S===void 0||S.call(n,O)),O}));},c=x=>{const{action:$="click",iconRender:S=Cre}=e,O=Sre[$]||"",E=S(o),I={[O]:s,className:`${x}-icon`,key:"passwordIcon",onMouseDown:P=>{P.preventDefault();},onMouseUp:P=>{P.preventDefault();}};return f__namespace.cloneElement(f__namespace.isValidElement(E)?E:f__namespace.createElement("span",null,E),I)},{className:u,prefixCls:d,inputPrefixCls:m,size:g}=e,v=yre(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=f__namespace.useContext(nt),p=h("input",m),b=h("input-password",d),y=n&&c(b),C=G(b,u,{[`${b}-${g}`]:!!g}),w=Object.assign(Object.assign({},Yn(v,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:C,prefixCls:p,suffix:y});return g&&(w.size=g),f__namespace.createElement(Vp,Object.assign({ref:sr(t,i)},w))}),wre=$re;var xre=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 Ere=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:l=!1,addonAfter:s,loading:c,disabled:u,onSearch:d,onChange:m,onCompositionStart:g,onCompositionEnd:v}=e,h=xre(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=f__namespace.useContext(nt),y=f__namespace.useRef(!1),C=p("input-search",n),w=p("input",r),{compactSize:x}=Qi(C,b),$=hr(z=>{var F;return (F=a??x)!==null&&F!==void 0?F:z}),S=f__namespace.useRef(null),O=z=>{z&&z.target&&z.type==="click"&&d&&d(z.target.value,z,{source:"clear"}),m&&m(z);},E=z=>{var F;document.activeElement===((F=S.current)===null||F===void 0?void 0:F.input)&&z.preventDefault();},I=z=>{var F,W;d&&d((W=(F=S.current)===null||F===void 0?void 0:F.input)===null||W===void 0?void 0:W.value,z,{source:"input"});},P=z=>{y.current||c||I(z);},N=typeof l=="boolean"?f__namespace.createElement(jp,null):null,L=`${C}-button`;let k;const A=l||{},T=A.type&&A.type.__ANT_BUTTON===!0;T||A.type==="button"?k=ir(A,Object.assign({onMouseDown:E,onClick:z=>{var F,W;(W=(F=A==null?void 0:A.props)===null||F===void 0?void 0:F.onClick)===null||W===void 0||W.call(F,z),I(z);},key:"enterButton"},T?{className:L,size:$}:{})):k=f__namespace.createElement(tn,{className:L,type:l?"primary":void 0,size:$,disabled:u,key:"enterButton",onMouseDown:E,onClick:I,loading:c,icon:N},l),s&&(k=[k,ir(s,{key:"addonAfter"})]);const R=G(C,{[`${C}-rtl`]:b==="rtl",[`${C}-${$}`]:!!$,[`${C}-with-button`]:!!l},o),_=z=>{y.current=!0,g==null||g(z);},D=z=>{y.current=!1,v==null||v(z);};return f__namespace.createElement(Vp,Object.assign({ref:sr(S,t),onPressEnter:P},h,{size:$,onCompositionStart:_,onCompositionEnd:D,prefixCls:w,addonAfter:k,suffix:i,onChange:O,className:R,disabled:u}))}),Ore=Ere;var Ire=`
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;
`,Pre=["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"],_m={},kr;function Mre(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&&_m[n])return _m[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=Pre.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(_m[n]=s),s}function Rre(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;kr||(kr=document.createElement("textarea"),kr.setAttribute("tab-index","-1"),kr.setAttribute("aria-hidden","true"),document.body.appendChild(kr)),e.getAttribute("wrap")?kr.setAttribute("wrap",e.getAttribute("wrap")):kr.removeAttribute("wrap");var o=Mre(e,t),a=o.paddingSize,i=o.borderSize,l=o.boxSizing,s=o.sizingStyle;kr.setAttribute("style","".concat(s,";").concat(Ire)),kr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,m=kr.scrollHeight;if(l==="border-box"?m+=i:l==="content-box"&&(m-=a),n!==null||r!==null){kr.value=" ";var g=kr.scrollHeight-a;n!==null&&(c=g*n,l==="border-box"&&(c=c+a+i),m=Math.max(c,m)),r!==null&&(u=g*r,l==="border-box"&&(u=u+a+i),d=m>u?"":"hidden",m=Math.min(u,m));}var v={height:m,overflowY:d,resize:"none"};return c&&(v.minHeight=c),u&&(v.maxHeight=u),v}var _re=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Nm=0,Tm=1,Lm=2,Nre=f__namespace.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,l=n.onResize,s=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var m=dt(n,_re),g=Gt(o,{value:a,postState:function(X){return X??""}}),v=J(g,2),h=v[0],p=v[1],b=function(X){p(X.target.value),d==null||d(X);},y=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var C=f__namespace.useMemo(function(){return i&&ht(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),w=J(C,2),x=w[0],$=w[1],S=!!i,O=function(){try{if(document.activeElement===y.current){var X=y.current,q=X.selectionStart,Q=X.selectionEnd,ue=X.scrollTop;y.current.setSelectionRange(q,Q),y.current.scrollTop=ue;}}catch{}},E=f__namespace.useState(Lm),I=J(E,2),P=I[0],N=I[1],L=f__namespace.useState(),k=J(L,2),A=k[0],T=k[1],R=function(){N(Nm);};en(function(){S&&R();},[a,x,$,S]),en(function(){if(P===Nm)N(Tm);else if(P===Tm){var V=Rre(y.current,!1,x,$);N(Lm),T(V);}else O();},[P]);var _=f__namespace.useRef(),D=function(){Et.cancel(_.current);},z=function(X){P===Lm&&(l==null||l(X),i&&(D(),_.current=Et(function(){R();})));};f__namespace.useEffect(function(){return D},[]);var F=S?A:null,W=U(U({},c),F);return (P===Nm||P===Tm)&&(W.overflowY="hidden",W.overflowX="hidden"),f__namespace.createElement(zr,{onResize:z,disabled:!(i||l)},f__namespace.createElement("textarea",xe({},m,{ref:y,style:W,className:G(r,s,H({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:b})))}),Tre=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Lre=f.forwardRef(function(e,t){var n,r,o=e.defaultValue,a=e.value,i=e.onFocus,l=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,m=e.onCompositionEnd,g=e.suffix,v=e.prefixCls,h=v===void 0?"rc-textarea":v,p=e.showCount,b=e.count,y=e.className,C=e.style,w=e.disabled,x=e.hidden,$=e.classNames,S=e.styles,O=e.onResize,E=dt(e,Tre),I=Gt(o,{value:a,defaultValue:o}),P=J(I,2),N=P[0],L=P[1],k=N==null?"":String(N),A=f.useState(!1),T=J(A,2),R=T[0],_=T[1],D=f.useRef(!1),z=f.useState(null),F=J(z,2),W=F[0],V=F[1],X=f.useRef(null),q=function(){var Oe;return (Oe=X.current)===null||Oe===void 0?void 0:Oe.textArea},Q=function(){q().focus();};f.useImperativeHandle(t,function(){return {resizableTextArea:X.current,focus:Q,blur:function(){q().blur();}}}),f.useEffect(function(){_(function(_e){return !w&&_e});},[w]);var ue=f.useState(null),Y=J(ue,2),ce=Y[0],Z=Y[1];f.useEffect(function(){if(ce){var _e;(_e=q()).setSelectionRange.apply(_e,Ge(ce));}},[ce]);var ee=EO(b,p),ne=(n=ee.max)!==null&&n!==void 0?n:u,le=Number(ne)>0,se=ee.strategy(k),K=!!ne&&se>ne,te=function(Oe,De){var Ie=De;!D.current&&ee.exceedFormatter&&ee.max&&ee.strategy(De)>ee.max&&(Ie=ee.exceedFormatter(De,{max:ee.max}),De!==Ie&&Z([q().selectionStart||0,q().selectionEnd||0])),L(Ie),Hu(Oe.currentTarget,Oe,s,Ie);},re=function(Oe){D.current=!0,d==null||d(Oe);},ve=function(Oe){D.current=!1,te(Oe,Oe.currentTarget.value),m==null||m(Oe);},ae=function(Oe){te(Oe,Oe.target.value);},ie=function(Oe){var De=E.onPressEnter,Ie=E.onKeyDown;Oe.key==="Enter"&&De&&De(Oe),Ie==null||Ie(Oe);},fe=function(Oe){_(!0),i==null||i(Oe);},Ee=function(Oe){_(!1),l==null||l(Oe);},$e=function(Oe){L(""),Q(),Hu(q(),Oe,s);},We=g,Ke;ee.show&&(ee.showFormatter?Ke=ee.showFormatter({value:k,count:se,maxLength:ne}):Ke="".concat(se).concat(le?" / ".concat(ne):""),We=f.createElement(f.Fragment,null,We,f.createElement("span",{className:G("".concat(h,"-data-count"),$==null?void 0:$.count),style:S==null?void 0:S.count},Ke)));var Te=function(Oe){var De;O==null||O(Oe),(De=q())!==null&&De!==void 0&&De.style.height&&V(!0);},Ue=!E.autoSize&&!p&&!c;return f.createElement(Wp,{value:k,allowClear:c,handleReset:$e,suffix:We,prefixCls:h,classNames:U(U({},$),{},{affixWrapper:G($==null?void 0:$.affixWrapper,(r={},H(r,"".concat(h,"-show-count"),p),H(r,"".concat(h,"-textarea-allow-clear"),c),r))}),disabled:w,focused:R,className:G(y,K&&"".concat(h,"-out-of-range")),style:U(U({},C),W&&!Ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ke=="string"?Ke:void 0}},hidden:x},f.createElement(Nre,xe({},E,{maxLength:u,onKeyDown:ie,onChange:ae,onFocus:fe,onBlur:Ee,onCompositionStart:re,onCompositionEnd:ve,className:G($==null?void 0:$.textarea),style:U(U({},S==null?void 0:S.textarea),{},{resize:C==null?void 0:C.resize}),disabled:w,prefixCls:h,onResize:Te,ref:X})))}),kre=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 Are=f.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:l,allowClear:s,classNames:c,rootClassName:u,className:d,variant:m}=e,g=kre(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:v,direction:h}=f__namespace.useContext(nt),p=hr(a),b=f__namespace.useContext(oo),y=i??b,{status:C,hasFeedback:w,feedbackIcon:x}=f__namespace.useContext(Br),$=nc(C,l),S=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>{var T;return {resizableTextArea:(T=S.current)===null||T===void 0?void 0:T.resizableTextArea,focus:R=>{var _,D;cre((D=(_=S.current)===null||_===void 0?void 0:_.resizableTextArea)===null||D===void 0?void 0:D.textArea,R);},blur:()=>{var R;return (R=S.current)===null||R===void 0?void 0:R.blur()}}});const O=v("input",r);let E;typeof s=="object"&&(s!=null&&s.clearIcon)?E=s:s&&(E={clearIcon:f__namespace.createElement(el,null)});const I=Mn(O),[P,N,L]=Hp(O,I),[k,A]=If(m,o);return P(f__namespace.createElement(Lre,Object.assign({},g,{disabled:y,allowClear:E,className:G(L,I,d,u),classNames:Object.assign(Object.assign({},c),{textarea:G({[`${O}-sm`]:p==="small",[`${O}-lg`]:p==="large"},N,c==null?void 0:c.textarea),variant:G({[`${O}-${k}`]:A},na(O,$)),affixWrapper:G(`${O}-textarea-affix-wrapper`,{[`${O}-affix-wrapper-rtl`]:h==="rtl",[`${O}-affix-wrapper-sm`]:p==="small",[`${O}-affix-wrapper-lg`]:p==="large",[`${O}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},N)}),prefixCls:O,suffix:w&&f__namespace.createElement("span",{className:`${O}-textarea-suffix`},x),ref:S})))}),jre=Are,ac=Vp;ac.Group=Jne;ac.Search=Ore;ac.TextArea=jre;ac.Password=wre;const IO=ac,Dre=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:a,handleClear:i}=e,l=f__namespace.useCallback(s=>{a==null||a(s),s.target.value===""&&(i==null||i());},[a]);return f__namespace.createElement(IO,{placeholder:t,className:r,value:n,onChange:l,disabled:o,allowClear:!0,prefix:f__namespace.createElement(jp,null)})},PO=Dre,zre=()=>null;function Fre(e){return !!(e&&!Mo(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Pl(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const Bre=e=>e!==void 0,Hre=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:o,disabled:a,showSearch:i=!1,style:l,searchPlaceholder:s,notFoundContent:c,selectAll:u,selectCurrent:d,selectInvert:m,removeAll:g,removeCurrent:v,showSelectAll:h=!0,showRemove:p,pagination:b,direction:y,itemsUnit:C,itemUnit:w,selectAllLabel:x,selectionsIcon:$,footer:S,renderList:O,onItemSelectAll:E,onItemRemove:I,handleFilter:P,handleClear:N,filterOption:L,render:k=zre}=e,[A,T]=f.useState(""),R=f.useRef({}),_=te=>{T(te.target.value),P(te);},D=()=>{T(""),N();},z=(te,re)=>L?L(A,re,y):te.includes(A),F=te=>{let re=O?O(Object.assign(Object.assign({},te),{onItemSelect:(ae,ie)=>te.onItemSelect(ae,ie)})):null;const ve=!!re;return ve||(re=f.createElement(Zne,Object.assign({ref:R},te))),{customize:ve,bodyContent:re}},W=te=>{const re=k(te),ve=Fre(re);return {item:te,renderedEl:ve?re.label:re,renderedText:ve?re.value:re}},V=f.useMemo(()=>Array.isArray(c)?c[y==="left"?0:1]:c,[c,y]),[X,q]=f.useMemo(()=>{const te=[],re=[];return n.forEach(ve=>{const ae=W(ve);A&&!z(ae.renderedText,ve)||(te.push(ve),re.push(ae));}),[te,re]},[n,A]),Q=f.useMemo(()=>{if(o.length===0)return "none";const te=Bu(o);return X.every(re=>te.has(re.key)||!!re.disabled)?"all":"part"},[o,X]),ue=f.useMemo(()=>{const te=i?f.createElement("div",{className:`${t}-body-search-wrapper`},f.createElement(PO,{prefixCls:`${t}-search`,onChange:_,handleClear:D,placeholder:s,value:A,disabled:a})):null,{customize:re,bodyContent:ve}=F(Object.assign(Object.assign({},Yn(e,qne)),{filteredItems:X,filteredRenderItems:q,selectedKeys:o}));let ae;return re?ae=f.createElement("div",{className:`${t}-body-customize-wrapper`},ve):ae=X.length?ve:f.createElement("div",{className:`${t}-body-not-found`},V),f.createElement("div",{className:G(i?`${t}-body ${t}-body-with-search`:`${t}-body`)},te,ae)},[i,t,s,A,a,o,X,q,V]),Y=f.createElement(Ys,{disabled:n.length===0||a,checked:Q==="all",indeterminate:Q==="part",className:`${t}-checkbox`,onChange:()=>{E==null||E(X.filter(te=>!te.disabled).map(te=>{let{key:re}=te;return re}),Q!=="all");}}),ce=(te,re)=>{if(x)return typeof x=="function"?x({selectedCount:te,totalCount:re}):x;const ve=re>1?C:w;return f.createElement(f.Fragment,null,(te>0?`${te}/`:"")+re," ",ve)},Z=S&&(S.length<2?S(e):S(e,{direction:y})),ee=G(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!Z}),ne=Z?f.createElement("div",{className:`${t}-footer`},Z):null,le=!p&&!b&&Y;let se;p?se=[b?{key:"removeCurrent",label:v,onClick(){var te;const re=Pl((((te=R.current)===null||te===void 0?void 0:te.items)||[]).map(ve=>ve.item));I==null||I(re);}}:null,{key:"removeAll",label:g,onClick(){I==null||I(Pl(X));}}].filter(Boolean):se=[{key:"selectAll",label:u,onClick(){const te=Pl(X);E==null||E(te,te.length!==o.length);}},b?{key:"selectCurrent",label:d,onClick(){var te;const re=((te=R.current)===null||te===void 0?void 0:te.items)||[];E==null||E(Pl(re.map(ve=>ve.item)),!0);}}:null,{key:"selectInvert",label:m,onClick(){var te;const re=Pl(b?(((te=R.current)===null||te===void 0?void 0:te.items)||[]).map(ie=>ie.item):X),ve=new Set(o),ae=[];re.forEach(ie=>{ve.has(ie)||ae.push(ie);}),E==null||E(ae,"replace");}}];const K=f.createElement(Ip,{className:`${t}-header-dropdown`,menu:{items:se},disabled:a},Bre($)?$:f.createElement(Np,null));return f.createElement("div",{className:ee,style:l},f.createElement("div",{className:`${t}-header`},h?f.createElement(f.Fragment,null,le,K):null,f.createElement("span",{className:`${t}-header-selected`},ce(o.length,X.length)),f.createElement("span",{className:`${t}-header-title`},r)),ue,ne)},yv=Hre,Wre=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:a="",leftActive:i,rightActive:l,className:s,style:c,direction:u,oneWay:d}=e;return f__namespace.createElement("div",{className:s,style:c},f__namespace.createElement(tn,{type:"primary",size:"small",disabled:t||!l,onClick:r,icon:u!=="rtl"?f__namespace.createElement(ki,null):f__namespace.createElement(Du,null)},a),!d&&f__namespace.createElement(tn,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:u!=="rtl"?f__namespace.createElement(Du,null):f__namespace.createElement(ki,null)},o))},MO=Wre,Vre=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:a,margin:i}=e,l=`${t}-table`,s=`${t}-input`;return {[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r},[`${l}-wrapper`]:{[`${l}-small`]:{border:0,borderRadius:0,[`${l}-selection-column`]:{width:o,minWidth:o}},[`${l}-pagination${l}-pagination`]:{margin:`${B(i)} 0 ${B(a)}`}},[`${s}[disabled]`]:{backgroundColor:"transparent"}}}},v1=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},Gre=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},v1(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},v1(e,e.colorWarning))}},Kre=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:a,headerHeight:i,transferHeaderVerticalPadding:l,itemPaddingBlock:s,controlItemBgActive:c,colorTextDisabled:u,listHeight:d,listWidth:m,listWidthLG:g,fontSizeIcon:v,marginXS:h,paddingSM:p,lineType:b,antCls:y,iconCls:C,motionDurationSlow:w,controlItemBgHover:x,borderRadiusLG:$,colorBgContainer:S,colorText:O,controlItemBgActiveHover:E}=e;return {display:"flex",flexDirection:"column",width:m,height:d,border:`${B(o)} ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:g,height:"auto"},"&-search":{[`${C}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${B(e.calc(l).sub(o).equal())} ${B(p)} ${B(l)}`,color:O,background:S,borderBottom:`${B(o)} ${b} ${r}`,borderRadius:`${B($)} ${B($)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},Ra),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},ja()),{fontSize:v,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:p}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${B(s)} ${B(p)}`,transition:`all ${w}`,"> *:not(:last-child)":{marginInlineEnd:h},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},Ra),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${w}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",inset:`-${B(s)} -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:x,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:E}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${B(e.paddingXS)} 0`,textAlign:"end",borderTop:`${B(o)} ${b} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${B(o)} ${b} ${r}`},"&-checkbox":{lineHeight:1}}},Ure=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:o,marginXXS:a,fontSizeIcon:i,colorBgContainerDisabled:l}=e;return {[r]:Object.assign(Object.assign({},Lt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:l}},[`${r}-list`]:Kre(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${B(o)}`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:a},[n]:{fontSize:i}}}})}},qre=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},Xre=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o,lineWidth:a}=e,i=Math.round(t*n);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-i)/2,transferHeaderVerticalPadding:Math.ceil((o-a-i)/2)}},Yre=Kt("Transfer",e=>{const t=Ot(e);return [Ure(t),Vre(t),Gre(t),qre(t)]},Xre),Mf=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:o=[],operations:a=[],style:i={},listStyle:l={},locale:s={},titles:c,disabled:u,showSearch:d=!1,operationStyle:m,showSelectAll:g,oneWay:v,pagination:h,status:p,prefixCls:b,className:y,rootClassName:C,selectionsIcon:w,filterOption:x,render:$,footer:S,children:O,rowKey:E,onScroll:I,onChange:P,onSearch:N,onSelectChange:L}=e,{getPrefixCls:k,renderEmpty:A,direction:T,transfer:R}=f.useContext(nt),_=k("transfer",b),[D,z,F]=Yre(_),[W,V,X]=vee(t,E,n),[q,Q,ue,Y]=pee(V,X,r),[ce,Z]=UC(me=>me.key),[ee,ne]=UC(me=>me.key),le=f.useCallback((me,pe)=>{if(me==="left"){const Ce=typeof pe=="function"?pe(q||[]):pe;ue(Ce);}else {const Ce=typeof pe=="function"?pe(Q||[]):pe;Y(Ce);}},[q,Q]),se=(me,pe)=>{(me==="left"?Z:ne)(pe);},K=f.useCallback((me,pe)=>{me==="left"?L==null||L(pe,Q):L==null||L(q,pe);},[q,Q]),te=me=>{var pe;return (pe=c??me.titles)!==null&&pe!==void 0?pe:[]},re=me=>{I==null||I("left",me);},ve=me=>{I==null||I("right",me);},ae=me=>{const pe=me==="right"?q:Q,Ce=aee(W),ye=pe.filter(at=>!Ce.has(at)),ge=Bu(ye),Me=me==="right"?ye.concat(n):n.filter(at=>!ge.has(at)),ze=me==="right"?"left":"right";le(ze,[]),K(ze,[]),P==null||P(Me,me,ye);},ie=()=>{ae("left"),se("left",null);},fe=()=>{ae("right"),se("right",null);},Ee=(me,pe,Ce)=>{le(me,ye=>{let ge=[];if(Ce==="replace")ge=pe;else if(Ce)ge=Array.from(new Set([].concat(Fn(ye),Fn(pe))));else {const Me=Bu(pe);ge=ye.filter(ze=>!Me.has(ze));}return K(me,ge),ge}),se(me,null);},$e=(me,pe)=>{Ee("left",me,pe);},We=(me,pe)=>{Ee("right",me,pe);},Ke=me=>N==null?void 0:N("left",me.target.value),Te=me=>N==null?void 0:N("right",me.target.value),Ue=()=>N==null?void 0:N("left",""),_e=()=>N==null?void 0:N("right",""),Oe=(me,pe,Ce,ye,ge)=>{pe.has(Ce)&&(pe.delete(Ce),se(me,null)),ye&&(pe.add(Ce),se(me,ge));},De=(me,pe,Ce,ye)=>{(me==="left"?ce:ee)(ye,pe,Ce);},Ie=(me,pe,Ce,ye)=>{const ge=me==="left",Me=Fn(ge?q:Q),ze=new Set(Me),at=Fn(ge?V:X).filter(qe=>!qe.disabled),rt=at.findIndex(qe=>qe.key===pe);ye&&Me.length>0?De(me,at,ze,rt):Oe(me,ze,pe,Ce,rt);const Rt=Array.from(ze);K(me,Rt),e.selectedKeys||le(me,Rt);},yt=(me,pe,Ce)=>{Ie("left",me,pe,Ce==null?void 0:Ce.shiftKey);},Qe=(me,pe,Ce)=>{Ie("right",me,pe,Ce==null?void 0:Ce.shiftKey);},gt=me=>{le("right",[]),P==null||P(n.filter(pe=>!me.includes(pe)),"left",Fn(me));},Ze=me=>typeof l=="function"?l({direction:me}):l||{},et=f.useContext(Br),{hasFeedback:ot,status:wt}=et,st=me=>Object.assign(Object.assign(Object.assign({},me),{notFoundContent:(A==null?void 0:A("Transfer"))||f.createElement(Z2,{componentName:"Transfer"})}),s),mt=nc(wt,p),ut=!O&&h,we=Q.length>0,Pe=q.length>0,Le=G(_,{[`${_}-disabled`]:u,[`${_}-customize-list`]:!!O,[`${_}-rtl`]:T==="rtl"},na(_,mt,ot),R==null?void 0:R.className,y,C,z,F),[he]=Lo("Transfer",bo.Transfer),Ne=st(he),[Re,He]=te(Ne);return D(f.createElement("div",{className:Le,style:Object.assign(Object.assign({},R==null?void 0:R.style),i)},f.createElement(yv,Object.assign({prefixCls:`${_}-list`,titleText:Re,dataSource:V,filterOption:x,style:Ze("left"),checkedKeys:q,handleFilter:Ke,handleClear:Ue,onItemSelect:yt,onItemSelectAll:$e,render:$,showSearch:d,renderList:O,footer:S,onScroll:re,disabled:u,direction:T==="rtl"?"right":"left",showSelectAll:g,selectAllLabel:o[0],pagination:ut,selectionsIcon:w},Ne)),f.createElement(MO,{className:`${_}-operation`,rightActive:Pe,rightArrowText:a[0],moveToRight:fe,leftActive:we,leftArrowText:a[1],moveToLeft:ie,style:m,disabled:u,direction:T,oneWay:v}),f.createElement(yv,Object.assign({prefixCls:`${_}-list`,titleText:He,dataSource:X,filterOption:x,style:Ze("right"),checkedKeys:Q,handleFilter:Te,handleClear:_e,onItemSelect:Qe,onItemSelectAll:We,onItemRemove:gt,render:$,showSearch:d,renderList:O,footer:S,onScroll:ve,disabled:u,direction:T==="rtl"?"left":"right",showSelectAll:g,selectAllLabel:o[1],showRemove:v,pagination:ut,selectionsIcon:w},Ne))))};Mf.List=yv;Mf.Search=PO;Mf.Operation=MO;const Zre=Mf;var Gp={exports:{}},Qre=function(t,n,r){return new Promise(function(o,a){var i=0,l=0,s=0,c=new Array(t.length).fill(void 0),u=!1,d=new WeakMap,m=function(h){for(var p=0;p<r.length;p++){var b=r[p];if(!d.get(b))return d.set(b,h),b}};function g(h){var p=t[h],b=m(h);Promise.resolve(n.call(p,p,h,t,b)).then(function(y){d.delete(b),s--,c[h]=y,i++,v();}).catch(function(y){u=!0,a(y);});}function v(){if(!u){if(i>=t.length)return o(c);for(;s<r.length&&l<t.length;)g(l),l++,s++;}}v();})};Gp.exports=function(t,n,r){if(r=r||1/0,typeof r!="number")throw new TypeError(String(r)+" is not a number");return new Promise(function(o,a){var i=0,l=0,s=0,c=new Array(t.length).fill(void 0),u=!1;function d(g){var v=t[g];Promise.resolve(n.call(v,v,g,t)).then(function(h){s--,i++,c[g]=h,m();}).catch(function(h){u=!0,a(h);});}function m(){if(!u){if(i>=t.length)return o(c);for(;s<r&&l<t.length;)d(l),s++,l++;}}m();})};var Jre=Qre;Gp.exports.pmapWorker=Jre;var eoe=Gp.exports;const RO=Bn(eoe);class Kp{constructor(t=20){Ct(this,"returnQueue",[]);Ct(this,"bufferQueue",[]);Ct(this,"ps");this.ps=t;}sliceFromQueue(){if(this.bufferQueue.length){const t=this.bufferQueue.slice(0,this.ps);return this.bufferQueue=this.bufferQueue.slice(this.ps),this.doReturnItems(t)}}doReturnItems(t){return this.returnQueue=this.returnQueue.concat(t||[]),t}restore(){this.bufferQueue=[...this.returnQueue,...this.bufferQueue],this.returnQueue=[];}}function Up(e){return `https://space.bilibili.com/${Td()}/favlist?fid=${e}`}const Zl=class Zl{constructor(){Ct(this,"useShuffle");Ct(this,"addSeparator");Ct(this,"total",0);Ct(this,"allFolderServices",[]);Ct(this,"folderServices",[]);Ct(this,"qs",new Kp(Zl.PAGE_SIZE));Ct(this,"foldersLoaded",!1);this.useShuffle=vt.shuffleForFav,this.addSeparator=vt.addSeparatorForFav;}get folderHasMore(){return this.folderServices.some(t=>t.hasMore)}get hasMore(){return this.qs.bufferQueue.length>0||this.folderHasMore}get usageInfo(){if(this.foldersLoaded)return j(roe,{allFavFolderServices:this.allFolderServices})}async loadMore(){if(this.foldersLoaded||await this.getAllFolders(),!!this.hasMore){if(!this.useShuffle){if(this.qs.bufferQueue.length)return this.qs.sliceFromQueue();const t=this.folderServices.find(r=>r.hasMore);if(!t)return;const n=await t.loadMore();return this.qs.doReturnItems(t.page===1?[this.addSeparator&&{api:Nn.separator,uniqId:`fav-folder-${t.entry.id}`,content:be(Pt,{children:["收藏夹:"," ",j("a",{target:"_blank",href:Up(t.entry.id),children:t.entry.title})]})},...n||[]].filter(Boolean):n)}if(this.qs.bufferQueue.length<Zl.PAGE_SIZE){for(;this.folderHasMore&&this.qs.bufferQueue.length<100;){const t=this.folderServices.filter(o=>o.hasMore),n=bi(t).slice(0,5),r=(await RO(n,async o=>await o.loadMore()||[],2)).flat();this.qs.bufferQueue=[...this.qs.bufferQueue,...r];}this.qs.bufferQueue=bi(this.qs.bufferQueue);}return this.qs.sliceFromQueue()}}async getAllFolders(){const t=await _O();this.foldersLoaded=!0,this.allFolderServices=t.map(n=>new toe(n)),this.folderServices=this.allFolderServices.filter(n=>!vt.excludeFavFolderIds.includes(n.entry.id.toString())),this.total=this.folderServices.reduce((n,r)=>n+r.entry.media_count,0);}};Ct(Zl,"PAGE_SIZE",20);let Cv=Zl;async function _O(){return (await yn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:Td()}})).data.data.list}class toe{constructor(t){Ct(this,"entry");Ct(this,"hasMore");Ct(this,"info");Ct(this,"page",0);this.entry=t,this.hasMore=t.media_count>0;}async loadMore(){if(!this.hasMore)return;const n=(await yn.get("/x/v3/fav/resource/list",{params:{media_id:this.entry.id,pn:this.page+1,ps:20,keyword:"",order:"mtime",type:"0",tid:"0",platform:"web"}})).data;if(!Hr(n)){Pn(n.message||gd);return}this.page++,this.hasMore=n.data.has_more,this.info=n.data.info;let r=n.data.medias;return r=r.filter(o=>o.title!=="已失效视频"),r.map(o=>{var a;return {...o,folder:this.info,api:Nn.fav,uniqId:`fav-${(a=this.info)==null?void 0:a.id}-${o.bvid}`}})}}var noe={name:"1uu99zq",styles:"margin-left:15px;cursor:pointer;font-size:12px"};function roe({allFavFolderServices:e}){const{excludeFavFolderIds:t,shuffleForFav:n}=sn(),r=ic(),[o,a]=f.useState(!1),i=ft((u,d,m)=>{a(!0),Un({excludeFavFolderIds:u});}),l=f.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).length,[e,t]),s=f.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).reduce((u,d)=>u+d.entry.media_count,0),[e,t]),c=ft(u=>{u?a(!1):o&&(r==null||r());});return be(Pt,{children:[j($f,{trigger:"click",placement:"bottom",onOpenChange:c,getPopupContainer:u=>u.parentElement||document.body,content:j(Pt,{children:j(Zre,{dataSource:e,rowKey:u=>u.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:i,render:u=>u.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:be(Bo,{color:"success",css:noe,children:["收藏夹(",l,") 收藏(",s,")"]})}),j(tc,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序",checked:n,onChange:async u=>{Un({shuffleForFav:u}),await Xn(100),r==null||r();}})]})}var ooe=Vv,aoe=fp,ioe=1,loe=2;function soe(e,t,n,r){var o=n.length,a=o,i=!r;if(e==null)return !a;for(e=Object(e);o--;){var l=n[o];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return !1}for(;++o<a;){l=n[o];var s=l[0],c=e[s],u=l[1];if(i&&l[2]){if(c===void 0&&!(s in e))return !1}else {var d=new ooe;if(r)var m=r(c,u,s,e,t,d);if(!(m===void 0?aoe(u,c,ioe|loe,r,d):m))return !1}}return !0}var coe=soe,uoe=Co;function doe(e){return e===e&&!uoe(e)}var NO=doe,foe=NO,moe=Os;function goe(e){for(var t=moe(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,foe(o)];}return t}var voe=goe;function hoe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var TO=hoe,poe=coe,boe=voe,yoe=TO;function Coe(e){var t=boe(e);return t.length==1&&t[0][2]?yoe(t[0][0],t[0][1]):function(n){return n===e||poe(n,e,t)}}var Soe=Coe,$oe=md;function woe(e,t,n){var r=e==null?void 0:$oe(e,t);return r===void 0?n:r}var xoe=woe,Eoe=fp,Ooe=xoe,Ioe=US,Poe=oh,Moe=NO,Roe=TO,_oe=Ui,Noe=1,Toe=2;function Loe(e,t){return Poe(e)&&Moe(t)?Roe(_oe(e),t):function(n){var r=Ooe(n,e);return r===void 0&&r===t?Ioe(n,e):Eoe(t,r,Noe|Toe)}}var koe=Loe;function Aoe(e){return function(t){return t==null?void 0:t[e]}}var joe=Aoe,Doe=md;function zoe(e){return function(t){return Doe(t,e)}}var Foe=zoe,Boe=joe,Hoe=Foe,Woe=oh,Voe=Ui;function Goe(e){return Woe(e)?Boe(Voe(e)):Hoe(e)}var Koe=Goe,Uoe=Soe,qoe=koe,Xoe=HS,Yoe=ro,Zoe=Koe;function Qoe(e){return typeof e=="function"?e:e==null?Xoe:typeof e=="object"?Yoe(e)?qoe(e[0],e[1]):Uoe(e):Zoe(e)}var Joe=Qoe;function eae(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return -1}var tae=eae;function nae(e){return e!==e}var rae=nae;function oae(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}var aae=oae,iae=tae,lae=rae,sae=aae;function cae(e,t,n){return t===t?sae(e,t,n):iae(e,lae,n)}var uae=cae,dae=uae;function fae(e,t){var n=e==null?0:e.length;return !!n&&dae(e,t,0)>-1}var mae=fae;function gae(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return !0;return !1}var vae=gae;function hae(){}var pae=hae,km=NS,bae=pae,yae=dp,Cae=1/0,Sae=km&&1/yae(new km([,-0]))[1]==Cae?function(e){return new km(e)}:bae,$ae=Sae,wae=kE,xae=mae,Eae=vae,Oae=AE,Iae=$ae,Pae=dp,Mae=200;function Rae(e,t,n){var r=-1,o=xae,a=e.length,i=!0,l=[],s=l;if(n)i=!1,o=Eae;else if(a>=Mae){var c=t?null:Iae(e);if(c)return Pae(c);i=!1,o=Oae,s=new wae;}else s=t?[]:l;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,i&&d===d){for(var m=s.length;m--;)if(s[m]===d)continue e;t&&s.push(d),l.push(u);}else o(s,d,n)||(s!==l&&s.push(d),l.push(u));}return l}var _ae=Rae,Nae=Joe,Tae=_ae;function Lae(e,t){return e&&e.length?Tae(e,Nae(t)):[]}var kae=Lae;const ms=Bn(kae),od=class od{constructor(){Ct(this,"page",0);Ct(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommend(t=void 0){var i,l;const n=++this.page,o=(await yn.get("/x/web-interface/wbi/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:od.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (i=o.data)!=null&&i.item||Pn(o.message||"API 请求没有返回结果"),((l=o.data)==null?void 0:l.item)||[]}async getRecommendTimes(t,n=void 0){let r=[];return await(async()=>{r=(await Promise.all(new Array(t).fill(0).map(()=>this.getRecommend(n)))).flat();})(),r=ms(r,a=>a.id),r.forEach(a=>{var i,l;((i=a.rcmd_reason)==null?void 0:i.reason_type)===1&&((l=a.rcmd_reason).content||(l.content="已关注"));}),r.map(a=>({...a,uniqId:a.id+"-"+crypto.randomUUID(),api:"pc"}))}};Ct(od,"PAGE_SIZE",14);let gs=od;async function LO(e,t){const n=Td(),r=Ps(),o=new URLSearchParams({fid:e,act:String(t),re_src:"11",gaia_source:"web_main",spmid:"333.999.0.0",extend_content:JSON.stringify({entity:"user",entity_id:n,fp:Aae()}),csrf:r}),i=(await yn.post("/x/relation/modify",o)).data,l=Hr(i);return l||Pn(i.message||"未知错误"),l}function Aae(){let e,t;const n=((e=window.reportObserver)===null||e===void 0||(t=e.cache)===null||t===void 0?void 0:t.fpriskMsg)||{};let r="empty";return n&&(r=n.webdriver+""+n.screenResolution+""+n.platform+""+n.hardwareConcurrency+""+n.deviceMemory+""+n.colorDepth+""+n.indexedDb+""+n.language+""+n.openDatabase+""+n.touchSupport+""+n.userAgent),decodeURIComponent(r)}const jae=To.extend("service:user:relations:blacklist"),Dae=jO("follow"),zae=jO("remove"),kO={add:Dae,remove:zae},AO=`${mn}-blacklist-mids`,Fae=(localStorage.getItem(AO)||"").split(","),_o=hp(Fae);pd(_o,e=>{localStorage.setItem(AO,Array.from(Ql(_o)).join(","));});function Bae(e){const t=vr(_o);return e&&t.has(e)}function jO(e){const t=e==="follow"?5:6;return async function(r){const o=await LO(r,t);return o&&(e==="follow"?_o.add(r):e==="remove"&&_o.delete(r)),o}}async function Hae(){const t=async i=>{const s=(await yn.get("/x/relation/blacks",{params:{re_version:0,ps:20,pn:i}})).data;if(!Hr(s))return;const c=s.data.total,u=s.data.list.map(d=>d.mid);return {total:c,mids:u}},n=await t(1);if(!n)return;const{total:r,mids:o=[]}=n;let a=o;if(r){const i=Math.ceil(r/20);for(let l=2;l<=i;l++){const{mids:s=[]}=await t(l)||{};a=a.concat(s);}}return a}(async()=>{if(!vd)return;await EE();const e=await Hae();return e&&(_o.clear(),e.forEach(t=>{_o.add(t.toString());})),jae("user blocklist fetched: %o",e),e})();class Wae{constructor(){Ct(this,"hasMore",!0);Ct(this,"page",0);Ct(this,"anonymous");this.anonymous=vt.anonymousForPopularGeneral;}async loadMore(){if(!this.hasMore)return;const n=(await yn.get("/x/web-interface/popular",{params:{ps:20,pn:this.page+1},withCredentials:!this.anonymous})).data;if(!Hr(n))return Pn(n.message||gd),void 0;this.page++,this.hasMore=!n.data.no_more;let r=(n.data.list||[]).map(o=>({...o,api:Nn.popularGeneral,uniqId:o.bvid}));return r=r.filter(o=>!_o.has(o.owner.mid.toString())),r}get usageInfo(){return j(Vae,{})}}function Vae(){const{anonymousForPopularGeneral:e}=sn(),t=ic();return j(Pt,{children:j(tc,{style:{margin:"0 10px"},checked:e,onChange:async n=>{Un({anonymousForPopularGeneral:n}),await Xn(100),t==null||t();},checkedChildren:"匿名访问",unCheckedChildren:"登录访问"})})}let Tc=[],Am="";function h1(){const e=oa();return [e.format("YYYYMMDD"),e.hour()<18?"lt-18":"gte-18"].join("_")}async function Gae(){return Tc.length&&Am&&Am===h1()||(Tc=(await yn.get("/x/web-interface/popular/series/list")).data.data.list,Am=h1()),Tc}const va=class va{constructor(){Ct(this,"episodesLoaded",!1);Ct(this,"episodes",[]);Ct(this,"id");Ct(this,"useShuffle");Ct(this,"qs",new Kp(va.PAGE_SIZE));this.id=va.id++,this.useShuffle=vt.shuffleForPopularWeekly;}get hasMore(){return this.episodesLoaded?!!this.qs.bufferQueue.length||!!this.episodes.length:!0}async loadMore(){if(this.episodesLoaded||(this.episodes=await Gae(),this.episodesLoaded=!0,this.useShuffle&&(this.episodes=bi(this.episodes))),!this.hasMore)return;if(!this.useShuffle){if(this.qs.bufferQueue.length)return this.qs.sliceFromQueue();const n=this.episodes[0],r=n.number,o=await p1(r);return this.qs.bufferQueue.push({api:Nn.separator,uniqId:`popular-weekly-${r}`,content:j("a",{target:"_blank",href:`https://www.bilibili.com/v/popular/weekly?num=${r}`,children:n.name})},...o),this.episodes=this.episodes.slice(1),this.qs.sliceFromQueue()}const t=5;for(;this.qs.bufferQueue.length<va.PAGE_SIZE*t&&this.episodes.length;){this.episodes=bi(this.episodes);const n=this.episodes.slice(0,t);this.episodes=this.episodes.slice(t);const r=await RO(n.map(o=>o.number),o=>p1(o),2);this.qs.bufferQueue=bi([...this.qs.bufferQueue,...r.flat()]);}return this.qs.sliceFromQueue()}get usageInfo(){return j(Kae,{})}};Ct(va,"id",0),Ct(va,"PAGE_SIZE",20);let Sv=va;const jm={};async function p1(e){var n;if(!((n=jm[e])!=null&&n.length)){const a=((await yn.get("/x/web-interface/popular/series/one",{params:{number:e}})).data.data.list||[]).map(i=>({...i,api:Nn.popularWeekly,uniqId:i.bvid}));jm[e]=a;}let t=jm[e];return t=t.filter(r=>!_o.has(r.owner.mid.toString())),t}function Kae(){const{shuffleForPopularWeekly:e}=sn(),t=ic();return j(Pt,{children:j(tc,{style:{marginLeft:"10px"},checked:e,onChange:async n=>{Un({shuffleForPopularWeekly:n}),await Xn(100),t==null||t();},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序"})})}const yi=mr({updatedAt:0,bvidSet:hp()});function Uae(e){return vr(yi).bvidSet.has(e)}Ms()&&setTimeout(()=>{new Wu().loadMore();});const Fo=class Fo{constructor(t){Ct(this,"qs",new Kp(Fo.PAGE_SIZE));Ct(this,"useShuffle");Ct(this,"addSeparator");Ct(this,"loaded",!1);Ct(this,"count",0);Ct(this,"keepOrder");this.keepOrder=t??!1,this.useShuffle=vt.shuffleForWatchLater,this.addSeparator=vt.addSeparatorForWatchLater;}async fetch(){const n=(await yn.get("/x/v2/history/toview/web")).data,r=n.data.list.map(l=>({...l,api:Nn.watchlater,uniqId:`watchlater-${l.bvid}`}));Date.now()>yi.updatedAt&&(yi.updatedAt=Date.now(),yi.bvidSet=hp(r.map(l=>l.bvid)));const o=oa().subtract(2,"days").unix(),a=r.findIndex(l=>l.add_at<o);let i=r;if(a!==-1){const l=r.slice(0,a);let s=r.slice(a);this.keepOrder&&Fo.LAST_BVID_ARR.length?s=s.map(c=>({item:c,index:Fo.LAST_BVID_ARR.findIndex(u=>c.bvid===u)})).sort((c,u)=>c.index-u.index).map(c=>c.item):this.useShuffle&&(s=bi(s)),i=[!!l.length&&this.addSeparator&&{api:Nn.separator,uniqId:"watchlater-recent",content:"近期"},...l,!!s.length&&this.addSeparator&&{api:Nn.separator,uniqId:"watchlater-earlier",content:"更早"},...s].filter(Boolean);}return this.count=n.data.count,Fo.LAST_BVID_ARR=i.map(l=>l.api===Nn.watchlater&&l.bvid).filter(Boolean),i}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return j(qae,{count:t})}get hasMore(){return this.loaded?!!this.qs.bufferQueue.length:!0}async loadMore(){if(this.hasMore){if(!this.loaded){const t=await this.fetch();this.qs.bufferQueue.push(...t),this.loaded=!0;}return this.qs.sliceFromQueue()}}};Ct(Fo,"PAGE_SIZE",20),Ct(Fo,"LAST_BVID_ARR",[]);let Wu=Fo;function qae({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=sn(),o=ic();return be(Pt,{children:[be(Bo,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{Pn(`稍后再看: ${n}`);},children:[e," / 100"]}),j(tc,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:async a=>{Un({shuffleForWatchLater:a}),await Xn(100),o==null||o();}})]})}const qp=f.createContext(void 0);function ic(){return f.useContext(qp)}const b1={"dynamic-feed":()=>new zO(uo.upMid),watchlater:e=>new Wu(e==null?void 0:e.watchlaterKeepOrder),fav:()=>new Cv,"popular-general":()=>new Wae,"popular-weekly":()=>new Sv};function Vu(e,t){return e[t]}function DO({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:a,setUpperRefreshing:i}){const l=GY(),s=KC(()=>({})),c=KC(()=>({})),[u,d]=f.useState(!0),[m,g]=f.useState([]);f.useEffect(()=>{try{unsafeWindow[`${qS}_gridItems`]=m;}catch{}},[m]);const[v,h]=f.useState(()=>Object.fromEntries(Object.entries(b1).map(([T,R])=>[T,R(void 0)]))),[p,b]=f.useState(()=>new gs),[y,C]=f.useState(!1),[w,x,$]=zE(()=>Date.now()),[S,O]=f.useState(l),[E,I]=f.useState(()=>new AbortController),[P,N]=f.useState(!1),[L,k]=f.useState(void 0),A=ft(async(T=!1,R)=>{const _=performance.now();if(y)if(l===S){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",l);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",S,l),E.abort();else e("refresh(): [start] tab = %s",l);await(a==null?void 0:a());const D=se=>{C(se),i==null||i(se);};D(!0),x(Date.now()),O(l),g([]),k(void 0),d(!0),await(r==null?void 0:r());let z=[],F;const W=async()=>{try{z=await n(ee);}catch(se){F=se;}},V=T&&!!c.current[l],X=V&&(!!Lu[l].swr||l==="fav"&&!v.fav.useShuffle&&!vt.shuffleForFav||l==="popular-weekly"&&!v["popular-weekly"].useShuffle&&!vt.shuffleForPopularWeekly);N(V);let q=!0;(l==="fav"||l==="popular-weekly")&&!X&&(q=!1);const Q=t?new gs:p;t&&b(Q);const ue={...v},Y=se=>{ue[se]=b1[se](R),h(ue);};l==="dynamic-feed"&&Y(l),l==="watchlater"&&Y(l),l==="fav"&&(V?X?Y(l):v.fav.qs.restore():Y(l)),l==="popular-general"&&Y(l),l==="popular-weekly"&&(V?X?Y(l):v["popular-weekly"].qs.restore():Y(l));const ce=new AbortController,Z=ce.signal;I(ce);const ee={tab:l,abortSignal:Z,serviceMap:ue,pcRecService:Q};if(e("refresh(): shouldReuse=%s swr=%s useGridCache=%s",V,X,q),V?X?(z=s.current[l]||[],g(z),await W()):q?z=s.current[l]||[]:(s.current[l]=[],await W()):(s.current[l]=[],await W()),Z.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",l);return}if(F){D(!1),console.error(F),k(F);return}if(z.length&&(c.current[l]=!0,Lu[l].swr||l==="fav"||l==="popular-weekly"?s.current[l]=z.slice(0,30):s.current[l]=z),await EE({timeout:400}),Z.aborted){e("refresh(): [legacy] skip setItems-postAction etc for aborted, legacy tab = %s",l);return}g(z);const ne=Vu(ue,l);ne&&d(ne.hasMore),await aK(),await(o==null?void 0:o());const le=performance.now()-_;e("refresh(): [success] cost %s ms",le.toFixed(0)),D(!1);});return {items:m,itemsCache:s,setItems:g,error:L,refreshedAt:w,setRefreshedAt:x,getRefreshedAt:$,refreshing:y,setRefreshing:C,refreshFor:S,setRefreshFor:O,refreshAbortController:E,setRefreshAbortController:I,hasMore:u,setHasMore:d,swr:P,setSwr:N,pcRecService:p,serviceMap:v,setPcRecService:b,setServiceMap:h,refresh:A}}async function Xae(){const t=(await yn.get("/x/polymer/web-dynamic/v1/portal")).data;return (t==null?void 0:t.data.up_list)||[]}class zO{constructor(t){Ct(this,"offset","");Ct(this,"page",0);Ct(this,"hasMore",!0);Ct(this,"upMid");this.upMid=t;}async loadMore(t=void 0){if(!this.hasMore)return;const n={timezone_offset:"-480",type:"video",features:"itemOpusStyle",page:this.page+1};this.offset&&(n.offset=this.offset),this.upMid&&(n.host_mid=this.upMid);const o=(await yn.get("/x/polymer/web-dynamic/v1/feed/all",{signal:t,params:n})).data;if(!Hr(o)){Pn(o.message||gd);return}return this.page++,this.hasMore=o.data.has_more,this.offset=o.data.offset,o.data.items.filter(l=>l.type==="DYNAMIC_TYPE_AV").map(l=>({...l,api:Nn.dynamic,uniqId:l.id_str||crypto.randomUUID()}))}get usageInfo(){return j(Jae,{})}}Ct(zO,"PAGE_SIZE",15);const Yae=location.hash;let FO,BO;if(Yae.includes("?")){const e=location.hash.slice(location.hash.indexOf("?")),t=new URLSearchParams(e);t.get("dyn-mid")&&(FO=Number(t.get("dyn-mid")),BO=t.get("dyn-mid")??void 0);}const uo=mr({upMid:FO,upName:BO,upList:[],upListUpdatedAt:0});setTimeout(()=>{vd&&(uo.upList.length||requestIdleCallback(()=>{HO();}));},qi("5s"));async function HO(e=!1){if(!e&&uo.upList.length&&uo.upListUpdatedAt&&uo.upListUpdatedAt-Date.now()<qi("5min"))return;const n=await Xae();uo.upList=n,uo.upListUpdatedAt=Date.now();}function WO(e){if(Object.assign(uo,e),e.upMid){const t=uo.upList.find(n=>n.mid===e.upMid);t&&(t.has_update=!1);}}var Zae={name:"dhit8z",styles:"margin-left:15px"},Qae={name:"1mkc8b8",styles:"display:block;max-width:130px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden"};function Jae(){const e=ic(),{upName:t,upList:n}=vr(uo);Xs(()=>{HO();});const r=ft(async i=>{WO(i),await Xn(100),e==null||e();}),o=ft(()=>{r({upMid:void 0,upName:void 0});}),a=f.useMemo(()=>{const i={key:"all",icon:j(ku,{size:"small",children:"全"}),label:"全部",onClick:o},l=n.map(s=>{let c=j(ku,{size:"small",src:s.face});return s.has_update&&(c=j(vx,{dot:!0,children:c})),{key:s.mid,icon:c,label:j("span",{title:s.uname,css:Qae,children:s.uname}),onClick(){r({upMid:s.mid,upName:s.uname});}}});return [i,...l]},[n,n.map(i=>!!i.has_update)]);return j("div",{css:Zae,children:be(ec,{children:[j(Ip,{placement:"bottomLeft",menu:{items:a,style:{maxHeight:"50vh",overflowY:"scroll"}},children:j(tn,{children:t?`UP: ${t}`:"全部"})}),!!t&&be(tn,{onClick:o,css:[Ai,"",""],children:[j(Tt,{name:"Return",size:14,style:{marginRight:5}}),j("span",{css:Pp,children:"清除"})]})]})})}const Dm={removeFav:eie,addFav:rie,getVideoFavState:tie};async function eie(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:Ps()}),o=(await yn.post("/x/v3/fav/resource/batch-del",n)).data,a=Hr(o);return a||Pn(o.message||lh),a}async function tie(e){if(!Ms())return;const r=(await yn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:Td(),type:2,rid:e}})).data.data.list.filter(i=>i.fav_state>0),o=r.map(i=>i.title),a=r.map(i=>Up(i.id));return {favFolders:r,favFolderNames:o,favFolderUrls:a}}async function nie({avid:e,add_media_ids:t="",del_media_ids:n=""}){const r=new URLSearchParams({rid:e.toString(),type:"2",add_media_ids:t,del_media_ids:n,platform:"web",eab_x:"2",ramval:"0",ga:"1",gaia_source:"web_normal",csrf:Ps()}),a=(await yn.post("/x/v3/fav/resource/deal",r)).data,i=Hr(a);return i||Pn((a==null?void 0:a.message)||"fav deal api fail"),i}let zm=0,$v="";async function rie(e){if(!zm||!$v){const t=await _O();zm=t[0].id,$v=t[0].title;}return await nie({avid:e,add_media_ids:zm.toString()})}const oie=VO("follow"),aie=VO("unfollow"),iie={follow:oie,unfollow:aie};function VO(e){const t=e==="follow"?1:2;return async function(r){return await LO(r,t)}}const lie="_bili-video-card_1g7z5_1",sie="_preview-card-wrapper_1g7z5_8",cie="_preview-card-inner_1g7z5_21",uie="_btn-dislike_1g7z5_26",die="_btn-dislike-icon_1g7z5_41",fie="_btn-dislike-tip_1g7z5_48",mie="_watch-later_1g7z5_64",gie="_watch-later-icon_1g7z5_79",vie="_watch-later-tip_1g7z5_86",hie="_badge_1g7z5_102",pie="_recommend-reason_1g7z5_112",bie="_bangumi-desc_1g7z5_128",yie="_disliked-wrapper_1g7z5_132",Cie="_dislike-content-cover_1g7z5_146",Sie="_dislike-content-cover-inner_1g7z5_152",$ie="_dislike-icon_1g7z5_163",wie="_dislike-reason_1g7z5_166",xie="_dislike-desc_1g7z5_170",Eie="_dislike-content-action_1g7z5_174",Oie="_skeleton-active_1g7z5_202",Iie="_ant-skeleton-loading_1g7z5_1",Wt={biliVideoCard:lie,previewCardWrapper:sie,previewCardInner:cie,btnDislike:uie,btnDislikeIcon:die,btnDislikeTip:fie,watchLater:mie,watchLaterIcon:gie,watchLaterTip:vie,badge:hie,recommendReason:pie,bangumiDesc:bie,dislikedWrapper:yie,dislikeContentCover:Cie,dislikeContentCoverInner:Sie,dislikeIcon:$ie,dislikeReason:wie,dislikeDesc:xie,dislikeContentAction:Eie,skeletonActive:Oie,antSkeletonLoading:Iie};function Pie(...e){for(const t of e)if(!isNaN(t))return t;return 0}function Mie({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const a=f.useRef(null),i=Xq(a),[l,s]=f.useState(()=>({width:0,height:0}));Xs(()=>{var m;const d=(m=a.current)==null?void 0:m.getBoundingClientRect();d&&s({width:d.width,height:d.height});});let c=0;if(typeof o=="number")c=o;else {const d=Pie(i.elementX,r||0);l.width&&d&&!isNaN(d)&&(c=d/l.width,c<0&&(c=0),c>1&&(c=1));}const u={videoDuration:t,pvideo:n,elWidth:l.width,elHeight:l.height,progress:c};return j("div",{ref:a,className:G(Wt.previewCardWrapper,e),children:!!(n&&l.width&&l.height&&c)&&j(Rie,{...u})})}function Rie({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var x;const a=Math.floor((e||0)*o);let i=f.useMemo(()=>{const $=(t==null?void 0:t.index)||[];let S=Nie($,a);return S!==-1?S:a>$[$.length-1]?(S=Math.floor($.length*o)-1,S<0&&(S=0),S):0},[t,a]);const{img_x_len:l,img_y_len:s,img_x_size:c,img_y_size:u}=t,d=s*l;i=i+1;const m=Math.floor(i/d),g=i-m*d,v=((x=t.image)==null?void 0:x[m])||"",h=Math.floor(g/l)+1,p=g-(h-1)*l,b=n*l,y=r*s,C=(h-1)*r,w=(p-1)*n;return j("div",{className:Wt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${v})`,backgroundPosition:`-${w}px -${C}px`,backgroundSize:`${b}px ${y}px`},children:j(_ie,{progress:o})})}function _ie({progress:e}){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:Fr,height:"100%",width:`${e*100}%`}})})}function Nie(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const l=Math.floor((n+r)/2),s=e[l];if(t===s)return l;s<t?(n=l+1,o=l):r=l-1;}if(o===-1)return -1;const a=e[o],i=e[o+1]??0;return a<t&&t<i?o:-1}const Fm={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed",favorite:"#widget-favorite",coin:"#widget-coin"},Gu={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},Tie={bangumiFollow:1.3,favorite:.9};function y1(e){return Gu[e]||Gu[1]}const Lie="--video-card-border-radius",GO=`var(${Lie})`,KO={borderRadius:GO},Ln="0",wv="player-screen-mode";var Ho=(e=>(e.Normal="normal",e.Wide="wide",e.WebFullscreen="web",e.Fullscreen="full",e))(Ho||{}),Io=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}};Io.TABEL="fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF";Io.TR={};Io.S=[11,10,3,8,4,6];Io.XOR=177451812;Io.ADD=8728348608;(()=>{const e=Io.TABEL.length;for(let t=0;t<e;t++)Io.TR[Io.TABEL[t]]=t;})();var ji=Io;ji.av2bv.bind(ji);ji.bv2av.bind(ji);function UO(e,t){if(e.api==="pc")return t.pc(e);if(e.api==="app")return t.app(e);if(e.api==="dynamic")return t.dynamic(e);if(e.api==="watchlater")return t.watchlater(e);if(e.api==="fav")return t.fav(e);if(e.api==="popular-general")return t["popular-general"](e);if(e.api==="popular-weekly")return t["popular-weekly"](e);throw new Error("unknown api type")}function qO(e){const t=UO(e,{pc:Die,app:kie,dynamic:zie,watchlater:Fie,fav:Bie,"popular-general":Hie,"popular-weekly":Wie});return t.authorFace&&(t.authorFace=MC(t.authorFace)),t.cover=MC(t.cover),t}function kie(e){return e.device==="android"?Aie(e):jie(e)}function Aie(e){var a,i,l;const t=s=>{const{cover_left_icon_1:c,cover_left_text_1:u,cover_left_icon_2:d,cover_left_text_2:m}=e;if(c&&Gu[c]===s)return Ea(u);if(d&&Gu[d]===s)return Ea(m)},n=e.param,r=ji.av2bv(Number(e.param)),o=(()=>{var s;if(e.uri.startsWith("http://")||e.uri.startsWith("https://"))return e.uri;if(e.goto==="av")return `/video/${r}/`;if(e.goto==="bangumi")return console.warn(`[${mn}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const c=(s=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:s[1];return c?`/read/cv${c}`:e.uri}return e.uri})();return {avid:n,bvid:r,goto:e.goto,href:o,title:e.title,cover:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((a=e.player_args)==null?void 0:a.duration)||0,durationStr:Fa((i=e.player_args)==null?void 0:i.duration),recommendReason:e.rcmd_reason,play:t("play"),like:void 0,coin:void 0,danmaku:t("danmaku"),favorite:void 0,bangumiFollow:t("bangumiFollow"),statItems:[e.cover_left_text_1&&{field:y1(e.cover_left_icon_1),value:e.cover_left_text_1},e.cover_left_text_2&&{field:y1(e.cover_left_icon_2),value:e.cover_left_text_2}].filter(Boolean),authorName:e.args.up_name,authorFace:void 0,authorMid:String(e.args.up_id),appBadge:e.badge,appBadgeDesc:((l=e.desc_button)==null?void 0:l.text)||e.desc||""}}function jie(e){var m,g;const t=v=>{const{cover_left_text_1:h,cover_left_text_2:p,cover_left_text_3:b}=e,y=[h,p,b].filter(Boolean);if(v==="play"){const C=y.find(x=>/观看|播放$/.test(x));if(!C)return;const w=C.replace(/观看|播放$/,"");return Ea(w)}if(v==="danmaku"){const C=y.find(x=>/弹幕$/.test(x));if(!C)return;const w=C.replace(/弹幕$/,"");return Ea(w)}if(v==="bangumiFollow"){const C=y.find(x=>/追[剧番]$/.test(x));if(!C)return;const w=C.replace(/追[剧番]$/,"");return Ea(w)}},n=e.param,r=e.bvid||ji.av2bv(Number(e.param)),o=(()=>{var v;if(e.uri.startsWith("http://")||e.uri.startsWith("https://"))return e.uri;if(e.goto==="av")return `/video/${r}/`;if(e.goto==="bangumi")return console.warn(`[${mn}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const h=(v=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:v[1];return h?`/read/cv${h}`:e.uri}return e.uri})(),a=t("play"),i=void 0,l=void 0,s=t("danmaku"),c=void 0,u=t("bangumiFollow"),d=[{field:"play",value:xn(a)||Ln},typeof s=="number"?{field:"danmaku",value:xn(s)||Ln}:{field:"bangumiFollow",value:xn(u)||Ln}];return {avid:n,bvid:r,goto:e.goto,href:o,title:e.title,desc:e.desc,cover:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((m=e.player_args)==null?void 0:m.duration)||0,durationStr:Fa((g=e.player_args)==null?void 0:g.duration),recommendReason:e.bottom_rcmd_reason||e.top_rcmd_reason,play:a,like:i,coin:l,danmaku:s,favorite:c,bangumiFollow:u,statItems:d,authorName:e.args.up_name,authorFace:e.avatar.cover,authorMid:String(e.args.up_id||""),appBadge:e.cover_badge,appBadgeDesc:e.desc}}function Die(e){var t;return {avid:String(e.id),bvid:e.bvid,goto:e.goto,href:e.goto==="av"?`/video/${e.bvid}/`:e.uri,title:e.title,cover:e.pic,pubts:e.pubdate,pubdateDisplay:mo(e.pubdate),duration:e.duration,durationStr:Fa(e.duration),recommendReason:(t=e.rcmd_reason)==null?void 0:t.content,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,statItems:[{field:"play",value:xn(e.stat.view)||Ln},{field:"like",value:xn(e.stat.like)||Ln}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function zie(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=oa().subtract(2,"days").unix(),o=(()=>{const a=n.pub_ts;return a>r?n.pub_time:mo(a)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,cover:t.cover,pubts:n.pub_ts,pubdateDisplay:o,duration:VX(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:Ea(t.stat.play),danmaku:Ea(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function Fie(e){const t=UX(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?j(sp,{title:be(Pt,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:be("del",{children:[e.viewed?"【已观看】· ":"",e.title,"`"]})}):void 0;return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:e.uri,title:n,titleRender:r,cover:e.pic,pubts:e.pubdate,pubdateDisplay:mo(e.pubdate),pubdateDisplayTitle:`${mo(e.pubdate,!0)} 发布, ${mo(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:Fa(e.duration),recommendReason:`${mo(e.add_at)} · 稍后再看`,invalidReason:t,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,statItems:[{field:"play",value:xn(e.stat.view)||Ln},{field:"like",value:xn(e.stat.like)||Ln},{field:"favorite",value:xn(e.stat.favorite)||Ln}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function Bie(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:be(Pt,{children:["【",j(Tt,{name:"Star",size:16,theme:"two-tone",fill:["currentColor",Fr],style:{display:"inline-block",verticalAlign:"middle",marginLeft:10,marginRight:4,marginTop:-4}}),e.folder.title,"】· ",e.title]}),cover:e.cover,pubts:e.pubtime,pubdateDisplay:mo(e.pubtime),duration:e.duration,durationStr:Fa(e.duration),recommendReason:`${mo(e.fav_time)} · 收藏`,play:e.cnt_info.play,like:void 0,coin:void 0,danmaku:e.cnt_info.danmaku,favorite:e.cnt_info.collect,statItems:[{field:"play",value:xn(e.cnt_info.play)||Ln},{field:"danmaku",value:xn(e.cnt_info.danmaku)||Ln},{field:"favorite",value:xn(e.cnt_info.collect)||Ln}],authorName:e.upper.name,authorFace:e.upper.face,authorMid:String(e.upper.mid)}}function Hie(e){var t;return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.pubdate,pubdateDisplay:mo(e.pubdate),duration:e.duration,durationStr:Fa(e.duration),recommendReason:(t=e.rcmd_reason)==null?void 0:t.content,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,statItems:[{field:"play",value:xn(e.stat.view)||Ln},{field:"like",value:xn(e.stat.like)||Ln},{field:"danmaku",value:xn(e.stat.danmaku)||Ln}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function Wie(e){return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.pubdate,pubdateDisplay:mo(e.pubdate),duration:e.duration,durationStr:Fa(e.duration),recommendReason:e.rcmd_reason,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,statItems:[{field:"play",value:xn(e.stat.view)||Ln},{field:"like",value:xn(e.stat.like)||Ln},{field:"danmaku",value:xn(e.stat.danmaku)||Ln}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function Vie({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:a}){const[l,s]=BE(void 0),[c,u]=f.useState(!1),d=f.useRef(!1),m=f.useRef(!1);qo("mouseenter",O=>{d.current=!0,n&&!v.current&&S(!0);},{target:a}),qo("mouseleave",O=>{d.current=!1;},{target:a}),qo("mousemove",O=>{u(!0),n||p();},{target:a});const g=Jq(),v=f.useRef(void 0),h=ft(()=>{if(g.current)return !0;if(n){if(m.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),p=ft((O=!1)=>{v.current&&cancelAnimationFrame(v.current),v.current=void 0,s(void 0),y(!1);}),[b,y,C]=zE(!1),w=f.useRef(),x=ft(()=>{var O;if(!v.current){S();return}y(E=>!E),b&&((O=w.current)==null||O.call(w,l||0));}),$=ft(()=>l||0),S=ft((O=!1)=>{m.current=O,u(!1),y(!1),o(),p(!0),s(k=>typeof k>"u"?0:k);const E=8e3,I=()=>typeof vt.autoPreviewUpdateInterval=="number"?vt.autoPreviewUpdateInterval:400;let P=performance.now(),N=0;w.current=()=>{P=performance.now()-$()*E;};function L(k){if(h()){p();return}const A=()=>{const T=performance.now()-P,R=Math.min(T%E/E,1);s(R);};C()||(I()?(!N||performance.now()-N>=I())&&(N=performance.now(),A()):A()),v.current=requestAnimationFrame(L);}v.current=requestAnimationFrame(L);});return {onHotkeyPreviewAnimation:x,onStartPreviewAnimation:S,previewAnimationProgress:l}}const Gie=To.extend("components:VideoCard");function C1(e){GM.setClipboard(e),pn.success(`已复制: ${e}`);}const XO=mp(),Ku=f.memo(function({style:t,className:n,item:r,loading:o,active:a,onRemoveCurrent:i,onMoveToFirst:l,onRefresh:s,emitter:c,...u}){o=o??!r;const d=cY((r==null?void 0:r.api)==="app"&&r.param),m=f.useMemo(()=>r&&qO(r),[r]),g=Bae(m==null?void 0:m.authorMid);return j("div",{style:t,className:G("bili-video-card",Wt.biliVideoCard,n),...u,children:o?j(qie,{loading:o}):r&&m&&(d?j(Xie,{item:r,emitter:c,dislikedReason:d}):g?j(Yie,{cardData:m}):j(ole,{item:r,cardData:m,active:a,emitter:c,onRemoveCurrent:i,onMoveToFirst:l,onRefresh:s}))})});var Kie={name:"16dof6j",styles:"flex:1;margin-left:10px"},Uie={name:"1po2nvr",styles:"width:32px;height:32px;border-radius:50%"};const qie=f.memo(function({loading:t}){const{styleFancy:n}=sn();return be("div",{className:G("bili-video-card__skeleton",{hide:!t,[Wt.skeletonActive]:t}),children:[j("div",{className:"bili-video-card__skeleton--cover",style:KO}),!n&&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"})]})}),n&&be("div",{className:"bili-video-card__skeleton--info",children:[j("div",{className:"bili-video-card__skeleton--avatar",css:Uie}),be("div",{className:"bili-video-card__skeleton--right",css:Kie,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"})]})]})]})}),Xie=f.memo(function({dislikedReason:t,item:n,emitter:r=XO}){const o=ft(async()=>{if(!(t!=null&&t.id))return;let a=!1,i;try{a=await JX(n,t.id);}catch(l){i=l;}if(i)return console.error(i.stack||i),H$();a?pn.success("已撤销"):pn.error(lh),a&&uY(n.param);});return ci(r,"cancel-dislike",o),be("div",{className:G(Wt.dislikedWrapper),children:[j("div",{className:Wt.dislikeContentCover,children:be("div",{className:Wt.dislikeContentCoverInner,children:[j(Tt,{name:"DistraughtFace",size:32,className:Wt.dislikeIcon}),j("div",{className:Wt.dislikeReason,children:t==null?void 0:t.name}),j("div",{className:Wt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),j("div",{className:Wt.dislikeContentAction,children:be("button",{onClick:o,children:[j(Tt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),Yie=f.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,a=ft(async()=>{if(!n)return;await kO.remove(n)&&pn.success(`已移出黑名单: ${o}`);});return be("div",{className:G(Wt.dislikedWrapper),children:[j("div",{className:Wt.dislikeContentCover,children:be("div",{className:Wt.dislikeContentCoverInner,children:[j(Tt,{name:"PeopleDelete",size:32,className:Wt.dislikeIcon}),j("div",{className:Wt.dislikeReason,children:"已拉黑"}),be("div",{className:Wt.dislikeDesc,children:["UP: ",o]})]})}),j("div",{className:Wt.dislikeContentAction,children:be("button",{onClick:a,children:[j(Tt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})});var Zie={name:"putlsr",styles:"margin-top:4px;padding-left:0;max-width:100%"},Qie={name:"s5xdrg",styles:"display:flex;align-items:center"},Jie={name:"zmsypw",styles:"margin-top:4px;color:var(--text3);font-size:var(--subtitle-font-size)"},ele={name:"1ic5zs4",styles:"display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-all;line-break:anywhere;color:var(--text1);font-size:var(--title-font-size);line-height:var(--title-line-height)"},tle={name:"t6djnl",styles:"flex:1;margin-left:10px;overflow:hidden"},nle={name:"1t32qz5",styles:"display:flex;margin-top:15px"},rle={name:"11ginrh",styles:"background-color:unset;position:static"};const ole=f.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:a,onRefresh:i,emitter:l=XO}){var Ce,ye;t.api;const s=t.api==="app";t.api,t.api,t.api;const{styleFancy:c}=sn();let{avid:u,bvid:d,goto:m,href:g,title:v,titleRender:h,desc:p,cover:b,pubdateDisplay:y,pubdateDisplayTitle:C,duration:w,durationStr:x,recommendReason:$,invalidReason:S,play:O,like:E,coin:I,danmaku:P,favorite:N,bangumiFollow:L,statItems:k,authorName:A,authorFace:T,authorMid:R,appBadge:_,appBadgeDesc:D}=n;const z=m==="av";["av","bangumi","picture"].includes(m)||console.warn(`[${mn}]: none (av,bangumi,picture) goto type %s`,m,t);const[F,W]=f.useState(null),V=f.useRef(!1),X=ft(async()=>{if(!F&&!V.current)try{V.current=!0,W(await ZX(d));}finally{V.current=!1;}}),q=f.useRef(null),[Q,ue]=f.useState(void 0);qo("mouseenter",ge=>{var rt;const Me=(rt=q.current)==null?void 0:rt.getBoundingClientRect();if(!Me)return;const{x:ze}=Me,at=ge.pageX-window.pageXOffset-ze;ue(at);},{target:q});const Y=Om(q),{autoPreviewWhenHover:ce}=sn(),{onStartPreviewAnimation:Z,onHotkeyPreviewAnimation:ee,previewAnimationProgress:ne}=Vie({bvid:d,title:v,autoPreviewWhenHover:ce,active:r,tryFetchVideoData:X,videoPreviewWrapperRef:q});Ru(()=>{if(r){try{unsafeWindow[`${qS}_activeItem`]=t;}catch(ge){console.warn("set unsafeWindow activeItem error"),console.warn(ge.stack||ge);}vt.autoPreviewWhenKeyboardSelect&&Z();}},[r]);const le=f.useRef(null),se=Om(le),K=Uae(d),te=Zq($l),{accessKey:re}=sn(),ve=!!re;f.useEffect(()=>{Y&&X();},[Y]);const ae=t.api!=="app"||t.api==="app"&&t.goto==="av",ie=f.useRef(!1),fe=ft(async(ge,Me)=>{if(ge==null||ge.preventDefault(),ge==null||ge.stopPropagation(),Me??(Me=K?RC:$l),Me!==$l&&Me!==RC)throw new Error("unexpected usingAction provided");if(ie.current)return {success:!1};ie.current=!0;let ze=!1;try{ze=await Me(u);}finally{ie.current=!1;}const at=Me===$l;return ze&&(at?yi.bvidSet.add(d):yi.bvidSet.delete(d),t.api==="watchlater"?at||(await Xn(100),o==null||o(t,n)):pn.success(`已${at?"添加":"移除"}稍后再看`)),{success:ze,targetState:at}}),Ee=f.useRef(null),$e=Om(Ee),We=ft(ge=>{if(ge==null||ge.preventDefault(),ge==null||ge.stopPropagation(),!ot)return t.api!=="app"?pn.error("当前视频不支持提交「我不想看」"):ve?void 0:pn.error("请先获取 access_key");gY(t);}),Ke=f.useMemo(()=>xn(O),[O]);f.useMemo(()=>xn(E),[E]);const Te=f.useMemo(()=>xn(P),[P]);f.useMemo(()=>xn(N),[N]);const Ue=({text:ge,iconSvgName:Me,iconSvgScale:ze})=>be("span",{className:"bili-video-card__stats--item",children:[j("svg",{className:"bili-video-card__stats--icon",style:{transform:ze?`scale(${ze})`:void 0},children:j("use",{href:Me})}),j("span",{className:"bili-video-card__stats--text",style:{lineHeight:"calc(var(--icon-size) + 1px)"},children:ge})]}),[_e,Oe]=f.useState(void 0),[De,Ie]=f.useState(void 0),yt=ft(async()=>{if(t.api!=="watchlater")return;const ge=await Dm.getVideoFavState(u);if(ge){const{favFolderNames:Me,favFolderUrls:ze}=ge;Oe(Me),Ie(ze);}}),Qe=ft(()=>{window.open(g,"_blank");}),gt=ft(()=>{var ke;let ge=1e3,Me=Math.ceil(ge/16*9);if(t.api===Nn.app&&((ke=t.uri)!=null&&ke.startsWith("bilibili://"))){const Xe=new URL(t.uri).searchParams,Se=Number(Xe.get("player_width")||0),Ae=Number(Xe.get("player_height")||0);Se&&Ae&&!isNaN(Se)&&!isNaN(Ae)&&Se<Ae&&(ge=720,Me=Math.floor(ge/9*16));}const ze=(window.innerWidth-ge)/2,at=(window.innerHeight-Me)/2-50,rt=["popup=true",`width=${ge}`,`height=${Me}`,`left=${ze}`,`top=${at}`].join(","),Rt=new URL(g,location.href);Rt.searchParams.append(wv,Ho.WebFullscreen);const qe=Rt.href;Gie("openInPopup: features -> %s",rt),window.open(qe,"_blank",rt);}),Ze=ft(ge=>{if(vt.openVideoInPopupWhenClick){ge.preventDefault(),gt();return}if(vt.openVideoAutoFullscreen){ge.preventDefault();const Me=new URL(g,location.href);Me.searchParams.set(wv,Ho.Fullscreen);const ze=Me.href;window.open(ze,"_blank");return}}),et=ft(()=>{const ge=new URL(g,location.href).href;GM.openInTab(ge,{active:!1,insert:!0});});ci(l,"open",Qe),ci(l,"toggle-watch-later",()=>fe()),ci(l,"trigger-dislike",()=>We()),ci(l,"start-preview-animation",Z),ci(l,"hotkey-preview-animation",ee);const ot=s&&ve&&!!((ye=(Ce=t.three_point)==null?void 0:Ce.dislike_reasons)!=null&&ye.length),wt=ft(()=>{let ge=g;g.startsWith("/")&&(ge=new URL(g,location.href).href),C1(ge);}),st=ft(()=>{let ge=g;t.api==="watchlater"&&(ge=`/video/${t.bvid}`);const Me=new URL(ge,location.href).href,ze=`iina://open?url=${encodeURIComponent(Me)}`;window.open(ze,"_self");}),mt=Zs(),ut=mt==="recommend-app"||mt==="recommend-pc"||mt==="popular-general"||mt==="popular-weekly",we=ft(async()=>{if(!R)return pn.error("UP mid 为空!");await kO.add(R)&&pn.success(`已加入黑名单: ${A}`);}),Pe=t.api==="dynamic"||(t.api==="app"||t.api==="pc")&&$==="已关注",Le=ft(async()=>{if(!R)return;await iie.unfollow(R)&&pn.success("已取消关注");}),he=z&&!!R&&!!A&&!!i,Ne=ft(async()=>{!R||!A||(WO({upMid:Number(R),upName:A}),Sf.value="dynamic-feed",await Xn(100),await(i==null?void 0:i()));}),Re=f.useMemo(()=>{const ge=K?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:j(Tt,{name:"EfferentFour",size:15}),onClick:Qe},{key:"open-link-in-popup",label:"小窗打开",icon:j(Tt,{name:"EfferentFour",size:15}),onClick:gt},{key:"open-link-in-background",label:"后台打开",icon:j(Tt,{name:"Split",size:15}),onClick:et},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:j(Tt,{name:"Copy",size:15}),onClick:wt},{key:"copy-bvid",label:"复制 BVID",icon:j(Tt,{name:"Copy",size:15}),onClick(){C1(d);}},{type:"divider"},ot&&{key:"dislike",label:"我不想看",icon:j(Tt,{name:"DislikeTwo",size:15}),onClick(){We();}},he&&{key:"dymamic-feed-filter-select-up",label:"查看 UP 的动态",icon:j(Tt,{name:"PeopleSearch",size:15}),onClick:Ne},Pe&&{key:"unfollow-up",label:"取消关注",icon:j(Tt,{name:"PeopleMinus",size:15}),onClick:Le},ut&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:j(Tt,{name:"PeopleDelete",size:15}),onClick:we},t.api==="watchlater"&&{key:"add-fav",icon:j(Tt,{name:"Star",size:15,..._e!=null&&_e.length?{theme:"two-tone",fill:["currentColor",Fr]}:void 0}),label:_e!=null&&_e.length?`已收藏 ${_e.map(Me=>`「${Me}」`).join("")}`:"快速收藏",async onClick(){!!(_e!=null&&_e.length)?De==null||De.forEach(ze=>{window.open(ze,"_blank");}):await Dm.addFav(u)&&pn.success(`已加入收藏夹「${$v}」`);}},ae&&{key:"watchlater",label:ge,icon:j(Tt,{name:K?"Delete":"FileCabinet",size:15}),onClick(){fe();}},t.api==="watchlater"&&K&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:j(Tt,{name:"AddTwo",size:15}),async onClick(){const{success:Me}=await fe(void 0,$l);Me&&(a==null||a(t,n));}},...t.api==="fav"?[{type:"divider"},{key:"open-fav-folder",label:"浏览收藏夹",icon:j(Tt,{name:"EfferentFour",size:15}),onClick(){const{id:Me}=t.folder,ze=Up(Me);window.open(ze,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:j(Tt,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await Dm.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...O9?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:j(Tt,{name:"PlayTwo",size:15}),onClick:st}]:[]].filter(Boolean)},[t,ae,K,ot,Pe,ut,he,_e,De]),He=ft(ge=>{ge&&yt();}),me=R?`https://space.bilibili.com/${R}`:g;p||(p=`${A}${y?` · ${y}`:""}`);const pe=A&&C?`${A} · ${C}`:p;return be("div",{"data-bvid":d||"",className:"bili-video-card__wrap __scale-wrap",css:rle,children:[j(Ip,{menu:{items:Re},trigger:["contextMenu"],onOpenChange:He,children:j("a",{href:g,target:"_blank",onClick:Ze,children:be("div",{className:"bili-video-card__image __scale-player-wrap",ref:q,style:{...KO,aspectRatio:"16 / 9"},children:[be("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[be("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!Xh&&j("source",{srcSet:`${b}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),j("source",{srcSet:`${b}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),j("img",{src:`${b}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(Y||typeof ne=="number")&&j(Mie,{videoDuration:w,pvideo:F==null?void 0:F.videoshotData,mouseEnterRelativeX:Q,previewAnimationProgress:ne}),ae&&be("div",{className:`${Wt.watchLater}`,style:{display:Y||r?"flex":"none"},ref:le,onClick:fe,children:[K?j("svg",{className:Wt.watchLaterIcon,viewBox:"0 0 200 200",children:j(framerMotion.motion.path,{d:"M25,100 l48,48 a 8.5,8.5 0 0 0 10,0 l90,-90",strokeWidth:"20",stroke:"currentColor",fill:"transparent",strokeLinecap:"round",...te?void 0:{initial:{pathLength:0},animate:{pathLength:1}}})}):j("svg",{className:Wt.watchLaterIcon,children:j("use",{href:"#widget-watch-later"})}),j("span",{className:Wt.watchLaterTip,style:{display:se?"block":"none"},children:K?"移除稍后再看":"稍后再看"})]}),ot&&be("div",{ref:Ee,className:Wt.btnDislike,onClick:We,style:{display:Y?"flex":"none"},children:[j("svg",{className:Wt.btnDislikeIcon,children:j("use",{href:"#widget-close"})}),j("span",{className:Wt.btnDislikeTip,style:{display:$e?"block":"none"},children:"我不想看"})]})]}),j("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:be("div",{className:"bili-video-card__stats",children:[j("div",{className:"bili-video-card__stats--left",children:k!=null&&k.length?j(Pt,{children:k.map(({field:ge,value:Me})=>j(f.Fragment,{children:Ue({text:Me,iconSvgName:Fm[ge],iconSvgScale:Tie[ge]})},ge))}):be(Pt,{children:[Ue({text:Ke||Ln,iconSvgName:Fm.play}),Ue({text:Te||Ln,iconSvgName:Fm.danmaku})]})}),j("span",{className:"bili-video-card__stats__duration",children:z&&x})]})})]})})}),!c&&j("div",{className:"bili-video-card__info __scale-disable",children:be("div",{className:"bili-video-card__info--right",children:[j("a",{href:g,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",onClick:Ze,children:j("h3",{className:"bili-video-card__info--tit",title:v,children:h??v})}),j("p",{className:"bili-video-card__info--bottom",children:z?be("a",{className:"bili-video-card__info--owner",href:me,target:"_blank",title:pe,children:[$?j("span",{className:Wt.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:p})]}):_||D?be("a",{className:"bili-video-card__info--owner",href:g,target:"_blank",children:[j("span",{className:Wt.badge,children:_||""}),j("span",{className:Wt.bangumiDesc,children:D||""})]}):null})]})}),c&&be("div",{css:nle,children:[j("a",{href:me,target:"_blank",onClick:Ze,children:T?j(ku,{src:T}):j(ku,{children:(A==null?void 0:A[0])||(D==null?void 0:D[0])||""})}),be("div",{css:tle,children:[j("a",{href:g,target:"_blank",children:j("h3",{title:v,css:ele,children:h??v})}),j("div",{css:Jie,children:z?be(Pt,{children:[j("div",{css:Qie,children:j("a",{className:"bili-video-card__info--owner",href:me,target:"_blank",title:pe,children:j("span",{className:"bili-video-card__info--author",children:p})})}),!!$&&j("div",{className:Wt.recommendReason,css:Zie,children:$})]}):_||D?be("a",{className:"bili-video-card__info--owner",href:g,target:"_blank",children:[!!_&&j("span",{className:Wt.badge,children:_}),!!D&&j("span",{className:Wt.bangumiDesc,children:D})]}):null})]})]})]})}),Xp="_video-grid_wfxpc_7",YO="_video-grid-new-homepage_wfxpc_17",ale="_limit-two-lines_wfxpc_20",ZO="_video-grid-internal-testing_wfxpc_52";const S1="_video-grid-container_wfxpc_88",ile="_video-grid-fancy_wfxpc_93",lle="_narrow-mode_wfxpc_134";function sle({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:a,changeScrollY:i,videoCardEmitters:l}){const[s,c]=f.useState(void 0),u=ft(()=>!(!e||gf())),d=ft(()=>{var S;if(typeof s!="number"||!o.current)return !1;const x=a(),$=(S=o.current.querySelector(`.${Ca.card}.${Ca.cardActive}`))==null?void 0:S.getBoundingClientRect();return !(!x||!$||$.top-x.top<-(x.height+$.height)||$.top-x.top>x.height*2+$.height)});function m(x){const $=C(s),S=$.getBoundingClientRect().left,O=N=>Math.abs(S-N)<1;{const N=Yp(o.current),L=x==="down"?N:-N,k=C(s+L);if(k){const A=k.getBoundingClientRect().left;if(O(A))return L}}let E=0,I=$;const P=()=>x==="down"?I.nextElementSibling:I.previousElementSibling;for(;P();){if(I=P(),!I.classList.contains(Ca.card))continue;x==="down"?E++:E--;const N=I.getBoundingClientRect().left;if(O(N))return E}return 0}const g=x=>$=>{if(!u())return;$==null||$.preventDefault();let S;if(d()){const O=typeof x=="number"?x:m(x);S=s+O;}else S=p();if(S<n){w(n);return}if(S>r){w(r);return}c(S),w(S);};wn("leftarrow",g(-1),{exactMatch:!0}),wn("rightarrow",g(1),{exactMatch:!0}),wn("tab",g(1),{exactMatch:!0}),wn("shift.tab",g(-1),{exactMatch:!0}),wn("uparrow",g("up"),{exactMatch:!0}),wn("downarrow",g("down"),{exactMatch:!0});const v=()=>{u()&&c(void 0);},h=()=>{if(!(!u()||typeof s!="number"))return l[s]};wn("esc",v),wn("enter",()=>{var x;!u()||typeof s!="number"||(x=h())==null||x.emit("open");}),wn("backspace",()=>{var x;!u()||typeof s!="number"||(x=h())==null||x.emit("trigger-dislike");}),wn(["s","w"],()=>{var x;!u()||typeof s!="number"||(x=h())==null||x.emit("toggle-watch-later");},{exactMatch:!0}),wn(["period","p"],()=>{var x;!u()||typeof s!="number"||(x=h())==null||x.emit("hotkey-preview-animation");},{exactMatch:!0});function p(){const x=a();if(!x)return 0;const $=y();for(let S=0;S<$.length;S++)if($[S].getBoundingClientRect().top>=x.top)return S;return 0}const b=`.${Ca.card}`;function y(){var x;return [...((x=o.current)==null?void 0:x.querySelectorAll(b))||[]]}function C(x){return y()[x]}function w(x){var E;const $=C(x);(E=$==null?void 0:$.scrollIntoViewIfNeeded)==null||E.call($,!1);const S=a(),O=$.getBoundingClientRect();if(!(!S||!O)){if(O.top<=S.top){const I=-(S.top-O.top+10);i==null||i({offset:I});return}if(S.bottom-O.bottom<10){const I=10-(S.bottom-O.bottom);i==null||i({offset:I});return}}}return {activeIndex:s,clearActiveIndex:v}}const cle=new Map,ule=new Map;function Yp(e,t=!0){if(t&&vt.useNarrowMode)return 2;const n=vt.styleFancy?cle:ule;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${Xp}`)),!e)return 0;const o=window.getComputedStyle(e);return o.display!=="grid"?0:(r=o.gridTemplateColumns.split(" ").length,n.set(window.innerWidth,r),r)}function QO(e){return e==="keep-follow-only"||vt.filterEnabled&&(vt.filterMinDurationEnabled||vt.filterMinPlayCountEnabled||vt.filterOutGotoTypePicture)}function JO(e,t){return QO(t)?e.filter(n=>{if(n.api===Nn.separator)return !0;const{play:r,duration:o,recommendReason:a,goto:i}=qO(n),l=a==="已关注"||(a==null?void 0:a.includes("关注"));if(t==="keep-follow-only"&&!l)return !1;const s=i==="av",c=i==="picture";if(s)return u();if(c)return d();return !0;function u(){return l&&!vt.enableFilterForFollowedVideo?!0:!(vt.filterMinPlayCountEnabled&&vt.filterMinPlayCount&&typeof r=="number"&&r<vt.filterMinPlayCount||vt.filterMinDurationEnabled&&vt.filterMinDuration&&o&&o<vt.filterMinDuration)}function d(){return vt.filterOutGotoTypePicture?!!(l&&!vt.enableFilterForFollowedPicture):!0}}):e}var Rf={exports:{}},Zp={exports:{}};const nu={};var xv;typeof Object.create=="function"?xv=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:xv=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const eI=xv;var dle=/%[sdj%]/g;function Di(e){if(!sc(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(po(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,a=String(e).replace(dle,function(l){if(l==="%%")return "%";if(n>=o)return l;switch(l){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 l}}),i=r[n];n<o;i=r[++n])lc(i)||!Ba(i)?a+=" "+i:a+=" "+po(i);return a}function Qp(e,t){if(go(global.process))return function(){return Qp(e,t).apply(this,arguments)};if(nu.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(nu.throwDeprecation)throw new Error(t);nu.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var Lc={},Bm;function tI(e){if(go(Bm)&&(Bm=nu.env.NODE_DEBUG||""),e=e.toUpperCase(),!Lc[e])if(new RegExp("\\b"+e+"\\b","i").test(Bm)){var t=0;Lc[e]=function(){var n=Di.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else Lc[e]=function(){};return Lc[e]}function po(e,t){var n={seen:[],stylize:mle};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_f(t)?n.showHidden=t:t&&nb(n,t),go(n.showHidden)&&(n.showHidden=!1),go(n.depth)&&(n.depth=2),go(n.colors)&&(n.colors=!1),go(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=fle),Uu(n,e,n.depth)}po.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]};po.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function fle(e,t){var n=po.styles[t];return n?"\x1B["+po.colors[n][0]+"m"+e+"\x1B["+po.colors[n][1]+"m":e}function mle(e,t){return e}function gle(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function Uu(e,t,n){if(e.customInspect&&t&&Kl(t.inspect)&&t.inspect!==po&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return sc(r)||(r=Uu(e,r,n)),r}var o=vle(e,t);if(o)return o;var a=Object.keys(t),i=gle(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Gl(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Hm(t);if(a.length===0){if(Kl(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(Vl(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(qu(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Gl(t))return Hm(t)}var s="",c=!1,u=["{","}"];if(Jp(t)&&(c=!0,u=["[","]"]),Kl(t)){var d=t.name?": "+t.name:"";s=" [Function"+d+"]";}if(Vl(t)&&(s=" "+RegExp.prototype.toString.call(t)),qu(t)&&(s=" "+Date.prototype.toUTCString.call(t)),Gl(t)&&(s=" "+Hm(t)),a.length===0&&(!c||t.length==0))return u[0]+s+u[1];if(n<0)return Vl(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var m;return c?m=hle(e,t,n,i,a):m=a.map(function(g){return Ev(e,t,n,i,g,c)}),e.seen.pop(),ple(m,s,u)}function vle(e,t){if(go(t))return e.stylize("undefined","undefined");if(sc(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(eb(t))return e.stylize(""+t,"number");if(_f(t))return e.stylize(""+t,"boolean");if(lc(t))return e.stylize("null","null")}function Hm(e){return "["+Error.prototype.toString.call(e)+"]"}function hle(e,t,n,r,o){for(var a=[],i=0,l=t.length;i<l;++i)lI(t,String(i))?a.push(Ev(e,t,n,r,String(i),!0)):a.push("");return o.forEach(function(s){s.match(/^\d+$/)||a.push(Ev(e,t,n,r,s,!0));}),a}function Ev(e,t,n,r,o,a){var i,l,s;if(s=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},s.get?s.set?l=e.stylize("[Getter/Setter]","special"):l=e.stylize("[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),lI(r,o)||(i="["+o+"]"),l||(e.seen.indexOf(s.value)<0?(lc(n)?l=Uu(e,s.value,null):l=Uu(e,s.value,n-1),l.indexOf(`
`)>-1&&(a?l=l.split(`
`).map(function(c){return " "+c}).join(`
`).substr(2):l=`
`+l.split(`
`).map(function(c){return " "+c}).join(`
`))):l=e.stylize("[Circular]","special")),go(i)){if(a&&o.match(/^\d+$/))return l;i=JSON.stringify(""+o),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"));}return i+": "+l}function ple(e,t,n){var r=e.reduce(function(o,a){return a.indexOf(`
`)>=0,o+a.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 Jp(e){return Array.isArray(e)}function _f(e){return typeof e=="boolean"}function lc(e){return e===null}function nI(e){return e==null}function eb(e){return typeof e=="number"}function sc(e){return typeof e=="string"}function rI(e){return typeof e=="symbol"}function go(e){return e===void 0}function Vl(e){return Ba(e)&&tb(e)==="[object RegExp]"}function Ba(e){return typeof e=="object"&&e!==null}function qu(e){return Ba(e)&&tb(e)==="[object Date]"}function Gl(e){return Ba(e)&&(tb(e)==="[object Error]"||e instanceof Error)}function Kl(e){return typeof e=="function"}function oI(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function aI(e){return Buffer.isBuffer(e)}function tb(e){return Object.prototype.toString.call(e)}function Wm(e){return e<10?"0"+e.toString(10):e.toString(10)}var ble=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function yle(){var e=new Date,t=[Wm(e.getHours()),Wm(e.getMinutes()),Wm(e.getSeconds())].join(":");return [e.getDate(),ble[e.getMonth()],t].join(" ")}function iI(){console.log("%s - %s",yle(),Di.apply(null,arguments));}function nb(e,t){if(!t||!Ba(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function lI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const Cle={inherits:eI,_extend:nb,log:iI,isBuffer:aI,isPrimitive:oI,isFunction:Kl,isError:Gl,isDate:qu,isObject:Ba,isRegExp:Vl,isUndefined:go,isSymbol:rI,isString:sc,isNumber:eb,isNullOrUndefined:nI,isNull:lc,isBoolean:_f,isArray:Jp,inspect:po,deprecate:Qp,format:Di,debuglog:tI},Sle=Object.freeze(Object.defineProperty({__proto__:null,_extend:nb,debuglog:tI,default:Cle,deprecate:Qp,format:Di,inherits:eI,inspect:po,isArray:Jp,isBoolean:_f,isBuffer:aI,isDate:qu,isError:Gl,isFunction:Kl,isNull:lc,isNullOrUndefined:nI,isNumber:eb,isObject:Ba,isPrimitive:oI,isRegExp:Vl,isString:sc,isSymbol:rI,isUndefined:go,log:iI},Symbol.toStringTag,{value:"Module"})),$le=EP(Sle);var wle=$le.format;function xle(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function Ele(e,t){return function(){var n=this,r=[].slice.call(arguments);xle();var o=new AbortController;return r.push(o.signal),new Promise(function(a,i){var l=setTimeout(function(){var s=new sI(t);i(s),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(s){clearTimeout(l),a(s);},function(s){clearTimeout(l),i(s);});})}}let sI=class cI extends Error{constructor(t){super(),this.timeout=t,this.message=wle("timeout of %sms exceed",t),Error.captureStackTrace(this,cI);}};Zp.exports=Ele;Zp.exports.TimeoutError=sI;var Ole=Zp.exports;const uI=Ole,Ile=uI.TimeoutError;Rf.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,a=n.timeout;a&&(t=uI(t,a));const i=n.onerror;return async function(){const l=this,s=[].slice.call(arguments),c=new Array(o);for(let u=0;u<o;u++){let d,m;try{d=await t.apply(l,s);}catch(g){m=g;}if(!m)return d;if(m instanceof TypeError)throw m;if(m instanceof Ple)throw m.originalError;c[u]=m,i&&i(m,u);}throw new dI({times:o,timeout:a,fn:r,errors:c})}};class dI 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 Ple 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 Mle=Rf.exports.RetryError=dI;Rf.exports.TimeoutError=Ile;var Rle=Rf.exports;const _le=Bn(Rle);class rb extends Error{constructor(n){super();Ct(this,"json");Error.captureStackTrace(this,rb),this.json=n,this.message=n.message||JSON.stringify(n);}}async function Nle(e){var a;let t={};e==="android"&&(t={mobi_app:"android"}),e==="ipad"&&(t={mobi_app:"iphone",device:"pad"});const r=(await hd.get(YS+"/x/v2/feed/index",{responseType:"json",params:{build:"1",...t,idx:(Date.now()/1e3).toFixed(0)+"0"+Math.trunc(Math.random()*1e3).toString().padStart(3,"0")}})).data;if(!r.data){if(r.code===-663)throw new rb(r);return Pn(`${mn}: 未知错误, 请联系开发者
code=${r.code} message=${r.message||""}`,5e3),[]}return ((a=r==null?void 0:r.data)==null?void 0:a.items)||[]}const Tle=_le(Nle,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",mn,t,e);}});async function Lle(e){try{return await Tle(e)}catch(t){if(t instanceof Mle){console.error(t.errors);const n=[Di("请求出错, 已重试%s次:",t.times),...t.errors.map((r,o)=>Di(" %s) %s",o+1,r.message)),"","请重新获取 access_key 后重试~"].join(`
`);Pn(n,5e3);}throw t}}class Xu{constructor(){Ct(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommendTimes(t){let n=[],r=vt.appApiDecice;return r!==Sa.ipad&&r!==Sa.android&&(r=Sa.ipad),await(async()=>{n=(await Promise.all(new Array(t).fill(0).map(()=>Lle(r)))).flat();})(),n=n.filter(a=>{var i,l;return !((i=a.card_goto)!=null&&i.includes("ad")||(l=a.goto)!=null&&l.includes("ad")||a.ad_info||a.card_goto==="banner")}),n=ms(n,a=>a.param),n.map(a=>({...a,api:"app",device:r,uniqId:a.param+"-"+crypto.randomUUID()}))}}Ct(Xu,"PAGE_SIZE",10);const kc=To.extend("service"),Ul=e=>e.api===Nn.separator?e.uniqId:UO(e,{pc:t=>t.bvid,app:t=>t.param,dynamic:t=>t.modules.module_dynamic.major.archive.bvid,watchlater:t=>t.bvid,fav:t=>t.bvid,"popular-general":t=>t.bvid,"popular-weekly":t=>t.bvid});function $1(e,t){const n=e.map(Ul);return t=ms(t,Ul),e.concat(t.filter(r=>!n.includes(Ul(r))))}const Ov=e=>e==="keep-follow-only"||e==="recommend-pc";async function fI(e,t,n=5){const{tab:r,abortSignal:o,pcRecService:a,serviceMap:i}=t,l=new Xu;let s=[],c=!0;const u=async d=>{let m=[];const g=Vu(i,r);if(g){m=await g.loadMore(o)||[],c=g.hasMore,s=s.concat(m),s=ms(s,Ul);return}let v;if(r==="keep-follow-only")v=8,kc("getMinCount: addMore(restCount = %s) times=%s",d,v);else {const h=Ov(r)?gs.PAGE_SIZE:Xu.PAGE_SIZE,p=QO(r)?n:1.2;v=Math.ceil(d*p/h),kc("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",d,p,h,v);}m=Ov(r)?await a.getRecommendTimes(v,o):await l.getRecommendTimes(v),m=JO(m,r),s=s.concat(m),s=ms(s,Ul);};for(await u(e);;){if(o!=null&&o.aborted){kc("getMinCount: break for abortSignal");break}if(!c){kc("getMinCount: break for tab=%s hasMore=false",r);break}if(s.filter(m=>m.api!==Nn.separator).length>=e)break;await u(e-s.length);}return s}async function kle(e){let t=await fI(Yp(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function Ale(e){return fI(Yp()*3+1,e,5)}async function jle(e,t,n){let r=Ov(t)?await n.getRecommendTimes(e):await new Xu().getRecommendTimes(e);return r=JO(r,t),r}var Iv=new Map,Ac=new WeakMap,w1=0,Dle=void 0;function zle(e){return e?(Ac.has(e)||(w1+=1,Ac.set(e,w1.toString())),Ac.get(e)):"0"}function Fle(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?zle(e.root):e[t]}`).toString()}function Ble(e){let t=Fle(e),n=Iv.get(t);if(!n){const r=new Map;let o;const a=new IntersectionObserver(i=>{i.forEach(l=>{var s;const c=l.isIntersecting&&o.some(u=>l.intersectionRatio>=u);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=c),(s=r.get(l.target))==null||s.forEach(u=>{u(c,l);});});},e);o=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},Iv.set(t,n);}return n}function Hle(e,t,n={},r=Dle){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:o,observer:a,elements:i}=Ble(n);let l=i.get(e)||[];return i.has(e)||i.set(e,l),l.push(t),a.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(i.delete(e),a.unobserve(e)),i.size===0&&(a.disconnect(),Iv.delete(o));}}function Wle({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:a,skip:i,initialInView:l,fallbackInView:s,onChange:c}={}){var u;const[d,m]=f__namespace.useState(null),g=f__namespace.useRef(),[v,h]=f__namespace.useState({inView:!!l,entry:void 0});g.current=c,f__namespace.useEffect(()=>{if(i||!d)return;let C;return C=Hle(d,(w,x)=>{h({inView:w,entry:x}),g.current&&g.current(w,x),x.isIntersecting&&a&&C&&(C(),C=void 0);},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{C&&C();}},[Array.isArray(e)?e.toString():e,d,o,r,a,i,n,s,t]);const p=(u=v.entry)==null?void 0:u.target,b=f__namespace.useRef();!d&&p&&!a&&!i&&b.current!==p&&(b.current=p,h({inView:!!l,entry:void 0}));const y=[m,v.inView,v.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const Ml=To.extend("components:RecGrid"),Ca={card:hu({name:"pqxyg1",styles:"border:2px solid transparent;.bili-video-card__info{padding-left:2px;padding-bottom:1px;margin-top:calc(var(--info-margin-top) - 1px);}"}),cardActive:hu("border-color:",Fr,";border-radius:",GO,";overflow:hidden;box-shadow:0px 0px 9px 4px ",Fr,";","")};var Vle={name:"198pn9m",styles:"grid-column:1/-1;.ant-divider-inner-text a{color:var(--ant-color-link);&:hover{color:var(--ant-color-primary);}}"},Gle={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const mI=f.forwardRef(function({infiteScrollUseWindow:t,shortcutEnabled:n,onScrollToTop:r,className:o,scrollerRef:a,setRefreshing:i,setExtraInfo:l},s){const{useNarrowMode:c,styleFancy:u}=sn(),d=Zs(),[m,g]=f.useState(0),v=ft(()=>{q(),p(d);}),h=ft(()=>{q(),g(1),p(d),queueMicrotask(R);}),p=ft(K=>{var re;const te=((re=Vu(L,K))==null?void 0:re.usageInfo)??null;l==null||l(te);}),{refresh:b,items:y,setItems:C,error:w,refreshing:x,refreshedAt:$,getRefreshedAt:S,swr:O,hasMore:E,setHasMore:I,refreshAbortController:P,pcRecService:N,serviceMap:L}=DO({tab:d,debug:Ml,fetcher:Ale,recreateService:!0,preAction:v,postAction:h,onScrollToTop:r,setUpperRefreshing:i});Xs(b),f.useImperativeHandle(s,()=>({refresh:b}),[]);const k=f.useRef();qo("visibilitychange",K=>{if(!(document.visibilityState==="visible")){k.current=Date.now();return}x||A.current[$]||d==="watchlater"&&k.current&&Date.now()-k.current>qi("1h")&&b(!0,{watchlaterKeepOrder:!0});},{target:document});const A=f.useRef({}),T=ft(async()=>{if(!E||x)return;const K=$;if(A.current[K])return;A.current={[K]:!0};let te=y,re=!0;try{const ve=Vu(L,d);if(ve){const ae=await ve.loadMore(P.signal)||[];te=$1(te,ae),re=ve.hasMore;}else for(;!(te.length>y.length);){const ie=await jle(d==="keep-follow-only"?5:2,d,N);te=$1(te,ie);}}catch(ve){throw A.current[K]=!1,ve}if(K!==S()){Ml("loadMore: skip update for mismatch refreshedAt, %s != %s",K,S());return}Ml("loadMore: seq(%s) len %s -> %s",m+1,y.length,te.length),I(re),C(te),g(ve=>ve+1),A.current[K]=!1,R();}),R=ft(async()=>{await Xn(Xh?100:50),Ml("checkShouldLoadMore(): footerInView = %s",ee.current),ee.current&&T();}),_=f.useRef(null),D=ft(()=>{var K;if(t){const te=ap()+50;return new DOMRect(0,te,window.innerWidth,window.innerHeight-te)}else return (K=a==null?void 0:a.current)==null?void 0:K.getBoundingClientRect()}),z=fY(),F=f.useMemo(()=>y.filter(K=>K.api!==Nn.separator),[y]),W=f.useMemo(()=>new Map,[$]),V=f.useMemo(()=>F.map(({uniqId:K})=>W.get(K)||(()=>{const te=mp();return W.set(K,te),te})()),[F]),{activeIndex:X,clearActiveIndex:q}=sle({enabled:n&&!z,refresh:b,maxIndex:F.length-1,containerRef:_,getScrollerRect:D,videoCardEmitters:V,changeScrollY:t?function({offset:K,absolute:te}){const re=document.documentElement;if(typeof K=="number"){re.scrollTop+=K;return}if(typeof te=="number"){re.scrollTop=te;return}}:void 0}),Q=Ta(),ue=ft((K,te)=>{C(re=>{const ve=re.findIndex(ie=>ie.uniqId===K.uniqId);if(ve===-1)return re;const ae=re.slice();return ae.splice(ve,1),pn.success(`已移除: ${te.title}`,4),d==="watchlater"&&(L.watchlater.count--,p(d)),d==="fav"&&(L.fav.total--,p(d)),ae});}),Y=ft((K,te)=>{C(re=>{const ve=re.find(Ee=>Ee.uniqId===K.uniqId);if(!ve)return re;const ae=re.indexOf(ve),ie=re.slice();ie.splice(ae,1);const fe=ie.findIndex(Ee=>Ee.api!==Nn.separator);return ie.splice(fe,0,ve),ie});}),{ref:ce,inView:Z}=Wle({root:t?null:(a==null?void 0:a.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(K){K&&(Ml("footerInView change to visible",K),T());}}),ee=Ti(Z),ne=j("div",{ref:ce,css:Gle,children:!x&&j(Pt,{children:E?be(Pt,{children:[j(Tt,{name:"Loading",fill:Fr,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),le=G(`${mn}-video-grid`,Xp,u?ile:Q?ZO:YO,c&&lle,o);return !y.length||w||x&&!O?j("div",{className:S1,children:j("div",{className:le,children:new Array(28).fill(void 0).map((K,te)=>j(Ku,{loading:!0,className:Ca.card},te))})}):be("div",{style:{minHeight:"100%"},className:S1,children:[j("div",{ref:_,className:le,children:y.map(K=>{if(K.api===Nn.separator)return j(OE,{css:Vle,orientation:"left",children:K.content},K.uniqId);{const te=F.findIndex(ve=>ve.uniqId===K.uniqId),re=te===X;return j(Ku,{className:G(Ca.card,{[Ca.cardActive]:re}),item:K,active:re,onRemoveCurrent:ue,onMoveToFirst:Y,onRefresh:b,emitter:V[te]},K.uniqId)}})}),ne]})});var Ha=f__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function Pv(e,t,n){return (e-t)/(n-t)}function ob(e,t,n,r){var o=Pv(t,n,r),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function gi(e,t){return Array.isArray(e)?e[t]:e}var Kle=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete"],Ule=f__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,a=e.value,i=e.valueIndex,l=e.onStartMove,s=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,m=e.onChangeComplete,g=dt(e,Kle),v=f__namespace.useContext(Ha),h=v.min,p=v.max,b=v.direction,y=v.disabled,C=v.keyboard,w=v.range,x=v.tabIndex,$=v.ariaLabelForHandle,S=v.ariaLabelledByForHandle,O=v.ariaValueTextFormatterForHandle,E=v.styles,I=v.classNames,P="".concat(o,"-handle"),N=function(_){y||l(_,i);},L=function(_){if(!y&&C){var D=null;switch(_.which||_.keyCode){case de.LEFT:D=b==="ltr"||b==="btt"?-1:1;break;case de.RIGHT:D=b==="ltr"||b==="btt"?1:-1;break;case de.UP:D=b!=="ttb"?1:-1;break;case de.DOWN:D=b!=="ttb"?-1:1;break;case de.HOME:D="min";break;case de.END:D="max";break;case de.PAGE_UP:D=2;break;case de.PAGE_DOWN:D=-2;break}D!==null&&(_.preventDefault(),d(D,i));}},k=function(_){switch(_.which||_.keyCode){case de.LEFT:case de.RIGHT:case de.UP:case de.DOWN:case de.HOME:case de.END:case de.PAGE_UP:case de.PAGE_DOWN:m==null||m();break}},A=ob(b,a,h,p),T=f__namespace.createElement("div",xe({ref:t,className:G(P,(n={},H(n,"".concat(P,"-").concat(i+1),w),H(n,"".concat(P,"-dragging"),u),n),I.handle),style:U(U(U({},A),s),E.handle),onMouseDown:N,onTouchStart:N,onKeyDown:L,onKeyUp:k,tabIndex:y?null:gi(x,i),role:"slider","aria-valuemin":h,"aria-valuemax":p,"aria-valuenow":a,"aria-disabled":y,"aria-label":gi($,i),"aria-labelledby":gi(S,i),"aria-valuetext":(r=gi(O,i))===null||r===void 0?void 0:r(a),"aria-orientation":b==="ltr"||b==="rtl"?"horizontal":"vertical"},g));return c&&(T=c(T,{index:i,prefixCls:o,value:a,dragging:u})),T}),qle=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],Xle=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,l=e.handleRender,s=e.draggingIndex,c=dt(e,qle),u=f__namespace.useRef({});return f__namespace.useImperativeHandle(t,function(){return {focus:function(m){var g;(g=u.current[m])===null||g===void 0||g.focus();}}}),f__namespace.createElement(f__namespace.Fragment,null,i.map(function(d,m){return f__namespace.createElement(Ule,xe({ref:function(v){v?u.current[m]=v:delete u.current[m];},dragging:s===m,prefixCls:n,style:gi(r,m),key:m,value:d,valueIndex:m,onStartMove:o,onOffsetChange:a,render:l},c))}))});function x1(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function Yle(e,t,n,r,o,a,i,l,s){var c=f__namespace.useState(null),u=J(c,2),d=u[0],m=u[1],g=f__namespace.useState(-1),v=J(g,2),h=v[0],p=v[1],b=f__namespace.useState(n),y=J(b,2),C=y[0],w=y[1],x=f__namespace.useState(n),$=J(x,2),S=$[0],O=$[1],E=f__namespace.useRef(null),I=f__namespace.useRef(null);f__namespace.useEffect(function(){h===-1&&w(n);},[n,h]),f__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",E.current),document.removeEventListener("mouseup",I.current),document.removeEventListener("touchmove",E.current),document.removeEventListener("touchend",I.current);}},[]);var P=function(R,_){C.some(function(D,z){return D!==R[z]})&&(_!==void 0&&m(_),w(R),i(R));},N=function(R,_){if(R===-1){var D=S[0],z=S[S.length-1],F=r-D,W=o-z,V=_*(o-r);V=Math.max(V,F),V=Math.min(V,W);var X=a(D+V);V=X-D;var q=S.map(function(ce){return ce+V});P(q);}else {var Q=(o-r)*_,ue=Ge(C);ue[R]=S[R];var Y=s(ue,Q,R,"dist");P(Y.values,Y.value);}},L=f__namespace.useRef(N);L.current=N;var k=function(R,_,D){R.stopPropagation();var z=D||n,F=z[_];p(_),m(F),O(z);var W=x1(R),V=W.pageX,X=W.pageY,q=function(Y){Y.preventDefault();var ce=x1(Y),Z=ce.pageX,ee=ce.pageY,ne=Z-V,le=ee-X,se=e.current.getBoundingClientRect(),K=se.width,te=se.height,re;switch(t){case"btt":re=-le/te;break;case"ttb":re=le/te;break;case"rtl":re=-ne/K;break;default:re=ne/K;}L.current(_,re);},Q=function ue(Y){Y.preventDefault(),document.removeEventListener("mouseup",ue),document.removeEventListener("mousemove",q),document.removeEventListener("touchend",ue),document.removeEventListener("touchmove",q),E.current=null,I.current=null,p(-1),l();};document.addEventListener("mouseup",Q),document.addEventListener("mousemove",q),document.addEventListener("touchend",Q),document.addEventListener("touchmove",q),E.current=q,I.current=Q;},A=f__namespace.useMemo(function(){var T=Ge(n).sort(function(_,D){return _-D}),R=Ge(C).sort(function(_,D){return _-D});return T.every(function(_,D){return _===R[D]})?C:n},[n,C]);return [h,d,A,k]}function Zle(e,t,n,r,o,a){var i=f__namespace.useCallback(function(g){var v=isFinite(g)?g:e;return v=Math.min(t,g),v=Math.max(e,v),v},[e,t]),l=f__namespace.useCallback(function(g){if(n!==null){var v=e+Math.round((i(g)-e)/n)*n,h=function(C){return (String(C).split(".")[1]||"").length},p=Math.max(h(n),h(t),h(e)),b=Number(v.toFixed(p));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),s=f__namespace.useCallback(function(g){var v=i(g),h=r.map(function(y){return y.value});n!==null&&h.push(l(g)),h.push(e,t);var p=h[0],b=t-e;return h.forEach(function(y){var C=Math.abs(v-y);C<=b&&(p=y,b=C);}),p},[e,t,r,n,i,l]),c=function g(v,h,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof h=="number"){var y,C=v[p],w=C+h,x=[];r.forEach(function(I){x.push(I.value);}),x.push(e,t),x.push(l(C));var $=h>0?1:-1;b==="unit"?x.push(l(C+$*n)):x.push(l(w)),x=x.filter(function(I){return I!==null}).filter(function(I){return h<0?I<=C:I>=C}),b==="unit"&&(x=x.filter(function(I){return I!==C}));var S=b==="unit"?C:w;y=x[0];var O=Math.abs(y-S);if(x.forEach(function(I){var P=Math.abs(I-S);P<O&&(y=I,O=P);}),y===void 0)return h<0?e:t;if(b==="dist")return y;if(Math.abs(h)>1){var E=Ge(v);return E[p]=y,g(E,h-$,p,b)}return y}else {if(h==="min")return e;if(h==="max")return t}},u=function(v,h,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=v[p],C=c(v,h,p,b);return {value:C,changed:C!==y}},d=function(v){return a===null&&v===0||typeof a=="number"&&v<a},m=function(v,h,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=v.map(s),C=y[p],w=c(y,h,p,b);if(y[p]=w,o===!1){var x=a||0;p>0&&y[p-1]!==C&&(y[p]=Math.max(y[p],y[p-1]+x)),p<y.length-1&&y[p+1]!==C&&(y[p]=Math.min(y[p],y[p+1]-x));}else if(typeof a=="number"||a===null){for(var $=p+1;$<y.length;$+=1)for(var S=!0;d(y[$]-y[$-1])&&S;){var O=u(y,1,$);y[$]=O.value,S=O.changed;}for(var E=p;E>0;E-=1)for(var I=!0;d(y[E]-y[E-1])&&I;){var P=u(y,-1,E-1);y[E-1]=P.value,I=P.changed;}for(var N=y.length-1;N>0;N-=1)for(var L=!0;d(y[N]-y[N-1])&&L;){var k=u(y,-1,N-1);y[N-1]=k.value,L=k.changed;}for(var A=0;A<y.length-1;A+=1)for(var T=!0;d(y[A+1]-y[A])&&T;){var R=u(y,1,A+1);y[A+1]=R.value,T=R.changed;}}return {value:y[p],values:y}};return [s,m]}function Qle(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=f__namespace.useContext(Ha),l=i.min,s=i.max,c=i.direction,u=i.includedStart,d=i.includedEnd,m=i.included,g="".concat(t,"-text"),v=ob(c,o,l,s);return f__namespace.createElement("span",{className:G(g,H({},"".concat(g,"-active"),m&&u<=o&&o<=d)),style:U(U({},v),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){a(o);}},r)}function Jle(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(a){var i=a.value,l=a.style,s=a.label;return f__namespace.createElement(Qle,{key:i,prefixCls:o,style:l,value:i,onClick:r},s)})):null}function ese(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=f__namespace.useContext(Ha),i=a.min,l=a.max,s=a.direction,c=a.included,u=a.includedStart,d=a.includedEnd,m="".concat(t,"-dot"),g=c&&u<=n&&n<=d,v=U(U({},ob(s,n,i,l)),typeof r=="function"?r(n):r);return g&&(v=U(U({},v),typeof o=="function"?o(n):o)),f__namespace.createElement("span",{className:G(m,H({},"".concat(m,"-active"),g)),style:v})}function tse(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=f__namespace.useContext(Ha),l=i.min,s=i.max,c=i.step,u=f__namespace.useMemo(function(){var d=new Set;if(n.forEach(function(g){d.add(g.value);}),r&&c!==null)for(var m=l;m<=s;)d.add(m),m+=c;return Array.from(d)},[l,s,c,r,n]);return f__namespace.createElement("div",{className:"".concat(t,"-step")},u.map(function(d){return f__namespace.createElement(ese,{prefixCls:t,key:d,value:d,style:o,activeStyle:a})}))}function E1(e){var t,n=e.prefixCls,r=e.style,o=e.start,a=e.end,i=e.index,l=e.onStartMove,s=e.replaceCls,c=f__namespace.useContext(Ha),u=c.direction,d=c.min,m=c.max,g=c.disabled,v=c.range,h=c.classNames,p="".concat(n,"-track"),b=Pv(o,d,m),y=Pv(a,d,m),C=function(S){!g&&l&&l(S,-1);},w={};switch(u){case"rtl":w.right="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%");break;case"btt":w.bottom="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;case"ttb":w.top="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;default:w.left="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%");}var x=s||G(p,(t={},H(t,"".concat(p,"-").concat(i+1),i!==null&&v),H(t,"".concat(n,"-track-draggable"),l),t),h.track);return f__namespace.createElement("div",{className:x,style:U(U({},w),r),onMouseDown:C,onTouchStart:C})}function nse(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=f__namespace.useContext(Ha),l=i.included,s=i.range,c=i.min,u=i.styles,d=i.classNames,m=f__namespace.useMemo(function(){if(!s){if(r.length===0)return [];var v=o??c,h=r[0];return [{start:Math.min(v,h),end:Math.max(v,h)}]}for(var p=[],b=0;b<r.length-1;b+=1)p.push({start:r[b],end:r[b+1]});return p},[r,s,o,c]),g=null;return (d.tracks||u.tracks)&&(g=f__namespace.createElement(E1,{index:null,prefixCls:t,start:m[0].start,end:m[m.length-1].end,replaceCls:G(d.tracks,"".concat(t,"-tracks")),style:u.tracks})),l?f__namespace.createElement(f__namespace.Fragment,null,g,m.map(function(v,h){var p=v.start,b=v.end;return f__namespace.createElement(E1,{index:h,prefixCls:t,style:U(U({},gi(n,h)),u.track),start:p,end:b,key:h,onStartMove:a})})):null}var rse=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-slider":r,a=e.className,i=e.style,l=e.classNames,s=e.styles,c=e.disabled,u=c===void 0?!1:c,d=e.keyboard,m=d===void 0?!0:d,g=e.autoFocus,v=e.onFocus,h=e.onBlur,p=e.min,b=p===void 0?0:p,y=e.max,C=y===void 0?100:y,w=e.step,x=w===void 0?1:w,$=e.value,S=e.defaultValue,O=e.range,E=e.count,I=e.onChange,P=e.onBeforeChange,N=e.onAfterChange,L=e.onChangeComplete,k=e.allowCross,A=k===void 0?!0:k,T=e.pushable,R=T===void 0?!1:T,_=e.draggableTrack,D=e.reverse,z=e.vertical,F=e.included,W=F===void 0?!0:F,V=e.startPoint,X=e.trackStyle,q=e.handleStyle,Q=e.railStyle,ue=e.dotStyle,Y=e.activeDotStyle,ce=e.marks,Z=e.dots,ee=e.handleRender,ne=e.tabIndex,le=ne===void 0?0:ne,se=e.ariaLabelForHandle,K=e.ariaLabelledByForHandle,te=e.ariaValueTextFormatterForHandle,re=f__namespace.useRef(),ve=f__namespace.useRef(),ae=f__namespace.useMemo(function(){return z?D?"ttb":"btt":D?"rtl":"ltr"},[D,z]),ie=f__namespace.useMemo(function(){return isFinite(b)?b:0},[b]),fe=f__namespace.useMemo(function(){return isFinite(C)?C:100},[C]),Ee=f__namespace.useMemo(function(){return x!==null&&x<=0?1:x},[x]),$e=f__namespace.useMemo(function(){return typeof R=="boolean"?R?Ee:!1:R>=0?R:!1},[R,Ee]),We=f__namespace.useMemo(function(){var ke=Object.keys(ce||{});return ke.map(function(Xe){var Se=ce[Xe],Ae={value:Number(Xe)};return Se&&ht(Se)==="object"&&!f__namespace.isValidElement(Se)&&("label"in Se||"style"in Se)?(Ae.style=Se.style,Ae.label=Se.label):Ae.label=Se,Ae}).filter(function(Xe){var Se=Xe.label;return Se||typeof Se=="number"}).sort(function(Xe,Se){return Xe.value-Se.value})},[ce]),Ke=Zle(ie,fe,Ee,We,A,$e),Te=J(Ke,2),Ue=Te[0],_e=Te[1],Oe=Gt(S,{value:$}),De=J(Oe,2),Ie=De[0],yt=De[1],Qe=f__namespace.useMemo(function(){var ke=Ie==null?[]:Array.isArray(Ie)?Ie:[Ie],Xe=J(ke,1),Se=Xe[0],Ae=Se===void 0?ie:Se,Ve=Ie===null?[]:[Ae];if(O){if(Ve=Ge(ke),E||Ie===void 0){var ct=E>=0?E+1:2;for(Ve=Ve.slice(0,ct);Ve.length<ct;){var At;Ve.push((At=Ve[Ve.length-1])!==null&&At!==void 0?At:ie);}}Ve.sort(function(It,Ft){return It-Ft});}return Ve.forEach(function(It,Ft){Ve[Ft]=Ue(It);}),Ve},[Ie,O,ie,E,Ue]),gt=f__namespace.useRef(Qe);gt.current=Qe;var Ze=function(Xe){return O?Xe:Xe[0]},et=function(Xe){var Se=Ge(Xe).sort(function(Ae,Ve){return Ae-Ve});I&&!_s(Se,gt.current,!0)&&I(Ze(Se)),yt(Se);},ot=function(){N==null||N(Ze(gt.current)),Tn(!N,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),L==null||L(Ze(gt.current));},wt=Yle(ve,ae,Qe,ie,fe,Ue,et,ot,_e),st=J(wt,4),mt=st[0],ut=st[1],we=st[2],Pe=st[3],Le=function(Xe,Se){if(!u){var Ae=0,Ve=fe-ie;Qe.forEach(function(At,It){var Ft=Math.abs(Xe-At);Ft<=Ve&&(Ve=Ft,Ae=It);});var ct=Ge(Qe);ct[Ae]=Xe,O&&!Qe.length&&E===void 0&&ct.push(Xe),P==null||P(Ze(ct)),et(ct),Se&&Pe(Se,Ae,ct);}},he=function(Xe){Xe.preventDefault();var Se=ve.current.getBoundingClientRect(),Ae=Se.width,Ve=Se.height,ct=Se.left,At=Se.top,It=Se.bottom,Ft=Se.right,Yt=Xe.clientX,Cn=Xe.clientY,ln;switch(ae){case"btt":ln=(It-Cn)/Ve;break;case"ttb":ln=(Cn-At)/Ve;break;case"rtl":ln=(Ft-Yt)/Ae;break;default:ln=(Yt-ct)/Ae;}var rn=ie+ln*(fe-ie);Le(Ue(rn),Xe);},Ne=f__namespace.useState(null),Re=J(Ne,2),He=Re[0],me=Re[1],pe=function(Xe,Se){if(!u){var Ae=_e(Qe,Xe,Se);P==null||P(Ze(Qe)),et(Ae.values),me(Ae.value);}};f__namespace.useEffect(function(){if(He!==null){var ke=Qe.indexOf(He);ke>=0&&re.current.focus(ke);}me(null);},[He]);var Ce=f__namespace.useMemo(function(){return _&&Ee===null?!1:_},[_,Ee]),ye=function(Xe,Se){Pe(Xe,Se),P==null||P(Ze(gt.current));},ge=mt!==-1;f__namespace.useEffect(function(){if(!ge){var ke=Qe.lastIndexOf(ut);re.current.focus(ke);}},[ge]);var Me=f__namespace.useMemo(function(){return Ge(we).sort(function(ke,Xe){return ke-Xe})},[we]),ze=f__namespace.useMemo(function(){return O?[Me[0],Me[Me.length-1]]:[ie,Me[0]]},[Me,O,ie]),at=J(ze,2),rt=at[0],Rt=at[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){re.current.focus(0);},blur:function(){var Xe=document,Se=Xe.activeElement;ve.current.contains(Se)&&(Se==null||Se.blur());}}}),f__namespace.useEffect(function(){g&&re.current.focus(0);},[]);var qe=f__namespace.useMemo(function(){return {min:ie,max:fe,direction:ae,disabled:u,keyboard:m,step:Ee,included:W,includedStart:rt,includedEnd:Rt,range:O,tabIndex:le,ariaLabelForHandle:se,ariaLabelledByForHandle:K,ariaValueTextFormatterForHandle:te,styles:s||{},classNames:l||{}}},[ie,fe,ae,u,m,Ee,W,rt,Rt,O,le,se,K,te,s,l]);return f__namespace.createElement(Ha.Provider,{value:qe},f__namespace.createElement("div",{ref:ve,className:G(o,a,(n={},H(n,"".concat(o,"-disabled"),u),H(n,"".concat(o,"-vertical"),z),H(n,"".concat(o,"-horizontal"),!z),H(n,"".concat(o,"-with-marks"),We.length),n)),style:i,onMouseDown:he},f__namespace.createElement("div",{className:G("".concat(o,"-rail"),l==null?void 0:l.rail),style:U(U({},Q),s==null?void 0:s.rail)}),f__namespace.createElement(nse,{prefixCls:o,style:X,values:Me,startPoint:V,onStartMove:Ce?ye:null}),f__namespace.createElement(tse,{prefixCls:o,marks:We,dots:Z,style:ue,activeStyle:Y}),f__namespace.createElement(Xle,{ref:re,prefixCls:o,style:q,values:we,draggingIndex:mt,onStartMove:ye,onOffsetChange:pe,onFocus:v,onBlur:h,handleRender:ee,onChangeComplete:ot}),f__namespace.createElement(Jle,{prefixCls:o,marks:We,onClick:Le})))});const ose=f__namespace.forwardRef((e,t)=>{const{open:n}=e,r=f.useRef(null),o=f.useRef(null);function a(){Et.cancel(o.current),o.current=null;}function i(){o.current=Et(()=>{var l;(l=r.current)===null||l===void 0||l.forceAlign(),o.current=null;});}return f__namespace.useEffect(()=>(n?i():a(),a),[n,e.title]),f__namespace.createElement(Ji,Object.assign({ref:sr(r,t)},e))}),ase=ose,ise=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:l,handleColorDisabled:s,calc:c}=e;return {[t]:Object.assign(Object.assign({},Lt(e)),{position:"relative",height:r,margin:`${B(i)} ${B(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${B(a)} ${B(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${B(e.handleLineWidth)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:c(e.handleLineWidth).mul(-1).equal(),insetBlockStart:c(e.handleLineWidth).mul(-1).equal(),width:c(e.handleSize).add(c(e.handleLineWidth).mul(2)).equal(),height:c(e.handleSize).add(c(e.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${B(e.handleLineWidth)} ${e.handleColor}`,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:c(e.handleSizeHover).sub(e.handleSize).div(2).add(e.handleLineWidthHover).mul(-1).equal(),insetBlockStart:c(e.handleSizeHover).sub(e.handleSize).div(2).add(e.handleLineWidthHover).mul(-1).equal(),width:c(e.handleSizeHover).add(c(e.handleLineWidthHover).mul(2)).equal(),height:c(e.handleSizeHover).add(c(e.handleLineWidthHover).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${B(e.handleLineWidthHover)} ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:e.calc(e.handleSize).sub(e.handleSizeHover).div(2).equal(),insetBlockStart:e.calc(e.handleSize).sub(e.handleSizeHover).div(2).equal()}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${B(e.handleLineWidth)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
${t}-dot
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${B(e.handleLineWidth)} ${s}`,insetInlineStart:0,insetBlockStart:0},[`
${t}-mark-text,
${t}-dot
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},gI=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a,marginFull:i,calc:l}=e,s=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",m=t?"top":"insetInlineStart",g=l(r).mul(3).sub(o).div(2).equal(),v=l(o).sub(r).div(2).equal(),h=t?{borderWidth:`${B(v)} 0`,transform:`translateY(${B(l(v).mul(-1).equal())})`}:{borderWidth:`0 ${B(v)}`,transform:`translateX(${B(e.calc(v).mul(-1).equal())})`};return {[s]:r,[u]:l(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},h),[`${n}-handle`]:{[d]:g},[`${n}-mark`]:{insetInlineStart:0,top:0,[m]:l(r).mul(3).add(t?0:i).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[m]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:l(r).sub(a).div(2).equal()}}},lse=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},gI(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},sse=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},gI(e,!1)),{height:"100%"})}},cse=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,a=e.lineWidth+1*3;return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,handleColorDisabled:new nn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},use=Kt("Slider",e=>{const t=Ot(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return [ise(t),lse(t),sse(t)]},cse);var dse=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 fse(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const mse=f.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:l,tooltipPrefixCls:s,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:m}=e,g=dse(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:v,slider:h,getPrefixCls:p,getPopupContainer:b}=f.useContext(nt),y=f.useContext(oo),C=l??y,[w,x]=f.useState({}),$=(R,_)=>{x(D=>Object.assign(Object.assign({},D),{[R]:_}));},S=(R,_)=>R||(_?v==="rtl"?"left":"right":"top"),O=p("slider",n),[E,I,P]=use(O),N=G(o,h==null?void 0:h.className,a,{[`${O}-rtl`]:v==="rtl"},I,P);v==="rtl"&&!g.vertical&&(g.reverse=!g.reverse);const[L,k]=f.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),A=(R,_)=>{var D;const{index:z,dragging:F}=_,{tooltip:W={},vertical:V}=e,X=Object.assign({},W),{open:q,placement:Q,getPopupContainer:ue,prefixCls:Y,formatter:ce}=X,Z=fse(ce,c),ee=Z?w[z]||F:!1,ne=(D=q??u)!==null&&D!==void 0?D:q===void 0&&ee,le=Object.assign(Object.assign({},R.props),{onMouseEnter:()=>$(z,!0),onMouseLeave:()=>$(z,!1),onFocus:se=>{var K;$(z,!0),(K=g.onFocus)===null||K===void 0||K.call(g,se);},onBlur:se=>{var K;$(z,!1),(K=g.onBlur)===null||K===void 0||K.call(g,se);}});return f.createElement(ase,Object.assign({},X,{prefixCls:p("tooltip",Y??s),title:Z?Z(_.value):"",open:ne,placement:S(Q??m,V),key:z,overlayClassName:`${O}-tooltip`,getPopupContainer:ue||d||b}),f.cloneElement(R,le))},T=Object.assign(Object.assign({},h==null?void 0:h.style),i);return E(f.createElement(rse,Object.assign({},g,{step:g.step,range:L,draggableTrack:k,className:N,style:T,disabled:C,ref:t,prefixCls:O,handleRender:A})))}),gse=mse,vse=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:l,marginXS:s,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return {[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:c,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}},hse=e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},vI=Kt("Popconfirm",e=>vse(e),hse,{resetStyle:!1});var pse=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 hI=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:l,okType:s="primary",icon:c=f__namespace.createElement(Fs,null),showCancel:u=!0,close:d,onConfirm:m,onCancel:g,onPopupClick:v}=e,{getPrefixCls:h}=f__namespace.useContext(nt),[p]=Lo("Popconfirm",bo.Popconfirm),b=Li(o),y=Li(a);return f__namespace.createElement("div",{className:`${t}-inner-content`,onClick:v},f__namespace.createElement("div",{className:`${t}-message`},c&&f__namespace.createElement("span",{className:`${t}-message-icon`},c),f__namespace.createElement("div",{className:`${t}-message-text`},b&&f__namespace.createElement("div",{className:G(`${t}-title`)},b),y&&f__namespace.createElement("div",{className:`${t}-description`},y))),f__namespace.createElement("div",{className:`${t}-buttons`},u&&f__namespace.createElement(tn,Object.assign({onClick:g,size:"small"},r),i||(p==null?void 0:p.cancelText)),f__namespace.createElement(rp,{buttonProps:Object.assign(Object.assign({size:"small"},Jh(s)),n),actionFn:m,close:d,prefixCls:h("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||(p==null?void 0:p.okText))))},bse=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=pse(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=f__namespace.useContext(nt),l=i("popconfirm",t),[s]=vI(l);return s(f__namespace.createElement(p2,{placement:n,className:G(l,r),style:o,content:f__namespace.createElement(hI,Object.assign({prefixCls:l},a))}))},yse=bse;var Cse=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 pI=f__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:a="top",trigger:i="click",okType:l="primary",icon:s=f__namespace.createElement(Fs,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:m}=e,g=Cse(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:v}=f__namespace.useContext(nt),[h,p]=Gt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),b=(I,P)=>{p(I,!0),m==null||m(I),d==null||d(I,P);},y=I=>{b(!1,I);},C=I=>{var P;return (P=e.onConfirm)===null||P===void 0?void 0:P.call(void 0,I)},w=I=>{var P;b(!1,I),(P=e.onCancel)===null||P===void 0||P.call(void 0,I);},x=I=>{I.keyCode===de.ESC&&h&&b(!1,I);},$=I=>{const{disabled:P=!1}=e;P||b(I);},S=v("popconfirm",o),O=G(S,u),[E]=vI(S);return E(f__namespace.createElement($f,Object.assign({},Yn(g,["title"]),{trigger:i,placement:a,onOpenChange:$,open:h,ref:t,overlayClassName:O,content:f__namespace.createElement(hI,Object.assign({okType:l,icon:s},e,{prefixCls:S,close:y,onConfirm:C,onCancel:w})),"data-popover-inject":!0}),ir(c,{onKeyDown:I=>{var P,N;f__namespace.isValidElement(c)&&((N=c==null?void 0:(P=c.props).onKeyDown)===null||N===void 0||N.call(P,I)),x(I);}})))});pI._InternalPanelDoNotUseOrYouWillBeFired=yse;const Mv=pI;var Sse={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 $se=Sse;var wse=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:$se}))};const xse=f__namespace.forwardRef(wse);function Rv(){return typeof BigInt=="function"}function Oa(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("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var l=n?"-":"";return {negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(r)}}function ab(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function vs(e){var t=String(e);if(ab(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(".")&&ib(t)?t.length-t.indexOf(".")-1:0}function Nf(e){var t=String(e);if(ab(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Rv()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Rv()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(vs(t));}return Oa(t).fullStr}function ib(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 bI(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var Ese=function(){function e(t){if(cr(this,e),H(this,"origin",""),H(this,"number",void 0),H(this,"empty",void 0),bI(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return ur(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 a=Math.max(vs(this.number),vs(r));return new e(o.toFixed(a))}},{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()?"":Nf(this.number):this.origin}}]),e}(),Ose=function(){function e(t){if(cr(this,e),H(this,"origin",""),H(this,"negative",void 0),H(this,"integer",void 0),H(this,"decimal",void 0),H(this,"decimalLen",void 0),H(this,"empty",void 0),H(this,"nan",void 0),bI(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(ab(n)&&(n=Number(n)),n=typeof n=="string"?n:Nf(n),ib(n)){var r=Oa(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length;}else this.nan=!0;}return ur(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),a=this.alignDecimal(o),i=r.alignDecimal(o),l=(a+i).toString(),s=Oa(l),c=s.negativeStr,u=s.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()?"":Oa("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function qr(e){return Rv()?new Ose(e):new Ese(e)}function ru(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=Oa(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(a).concat(i);if(n>=0){var u=Number(l[n]);if(u>=5&&!r){var d=qr(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return ru(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return s===".0"?c:"".concat(c).concat(s)}function Ise(e,t){var n=f.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,l=e.value,s=l.substring(0,a),c=l.substring(i);n.current={start:a,end:i,value:l,beforeTxt:s,afterTxt:c};}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,l=i.beforeTxt,s=i.afterTxt,c=i.start,u=a.length;if(a.endsWith(s))u=a.length-n.current.afterTxt.length;else if(a.startsWith(l))u=l.length;else {var d=l[c-1],m=a.indexOf(d,c-1);m!==-1&&(u=m+1);}e.setSelectionRange(u,u);}catch(g){Tn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message));}}return [r,o]}var Pse=function(){var t=f.useState(!1),n=J(t,2),r=n[0],o=n[1];return en(function(){o(Jd());},[]),r},Mse=200,Rse=600;function _se(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,l=f__namespace.useRef(),s=f__namespace.useRef([]),c=f__namespace.useRef();c.current=i;var u=function(){clearTimeout(l.current);},d=function(C,w){C.preventDefault(),u(),c.current(w);function x(){c.current(w),l.current=setTimeout(x,Mse);}l.current=setTimeout(x,Rse);};f__namespace.useEffect(function(){return function(){u(),s.current.forEach(function(y){return Et.cancel(y)});}},[]);var m=Pse();if(m)return null;var g="".concat(t,"-handler"),v=G(g,"".concat(g,"-up"),H({},"".concat(g,"-up-disabled"),o)),h=G(g,"".concat(g,"-down"),H({},"".concat(g,"-down-disabled"),a)),p=function(){return s.current.push(Et(u))},b={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return f__namespace.createElement("div",{className:"".concat(g,"-wrap")},f__namespace.createElement("span",xe({},b,{onMouseDown:function(C){d(C,!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",xe({},b,{onMouseDown:function(C){d(C,!1);},"aria-label":"Decrease Value","aria-disabled":a,className:h}),r||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function O1(e){var t=typeof e=="number"?Nf(e):Oa(e).fullStr,n=t.includes(".");return n?Oa(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Nse=function(){var e=f.useRef(0),t=function(){Et.cancel(e.current);};return f.useEffect(function(){return t},[]),function(n){t(),e.current=Et(function(){n();});}};var Tse=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","wheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],Lse=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],I1=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},P1=function(t){var n=qr(t);return n.isInvalidate()?null:n},kse=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,a=e.className,i=e.style,l=e.min,s=e.max,c=e.step,u=c===void 0?1:c,d=e.defaultValue,m=e.value,g=e.disabled,v=e.readOnly,h=e.upHandler,p=e.downHandler,b=e.keyboard,y=e.wheel,C=e.controls,w=C===void 0?!0:C;e.classNames;var x=e.stringMode,$=e.parser,S=e.formatter,O=e.precision,E=e.decimalSeparator,I=e.onChange,P=e.onInput,N=e.onPressEnter,L=e.onStep,k=e.changeOnBlur,A=k===void 0?!0:k,T=dt(e,Tse),R="".concat(o,"-input"),_=f__namespace.useRef(null),D=f__namespace.useState(!1),z=J(D,2),F=z[0],W=z[1],V=f__namespace.useRef(!1),X=f__namespace.useRef(!1),q=f__namespace.useRef(!1),Q=f__namespace.useState(function(){return qr(m??d)}),ue=J(Q,2),Y=ue[0],ce=ue[1];function Z(we){m===void 0&&ce(we);}var ee=f__namespace.useCallback(function(we,Pe){if(!Pe)return O>=0?O:Math.max(vs(we),vs(u))},[O,u]),ne=f__namespace.useCallback(function(we){var Pe=String(we);if($)return $(Pe);var Le=Pe;return E&&(Le=Le.replace(E,".")),Le.replace(/[^\w.-]+/g,"")},[$,E]),le=f__namespace.useRef(""),se=f__namespace.useCallback(function(we,Pe){if(S)return S(we,{userTyping:Pe,input:String(le.current)});var Le=typeof we=="number"?Nf(we):we;if(!Pe){var he=ee(Le,Pe);if(ib(Le)&&(E||he>=0)){var Ne=E||".";Le=ru(Le,Ne,he);}}return Le},[S,ee,E]),K=f__namespace.useState(function(){var we=d??m;return Y.isInvalidate()&&["string","number"].includes(ht(we))?Number.isNaN(we)?"":we:se(Y.toString(),!1)}),te=J(K,2),re=te[0],ve=te[1];le.current=re;function ae(we,Pe){ve(se(we.isInvalidate()?we.toString(!1):we.toString(!Pe),Pe));}var ie=f__namespace.useMemo(function(){return P1(s)},[s,O]),fe=f__namespace.useMemo(function(){return P1(l)},[l,O]),Ee=f__namespace.useMemo(function(){return !ie||!Y||Y.isInvalidate()?!1:ie.lessEquals(Y)},[ie,Y]),$e=f__namespace.useMemo(function(){return !fe||!Y||Y.isInvalidate()?!1:Y.lessEquals(fe)},[fe,Y]),We=Ise(_.current,F),Ke=J(We,2),Te=Ke[0],Ue=Ke[1],_e=function(Pe){return ie&&!Pe.lessEquals(ie)?ie:fe&&!fe.lessEquals(Pe)?fe:null},Oe=function(Pe){return !_e(Pe)},De=function(Pe,Le){var he=Pe,Ne=Oe(he)||he.isEmpty();if(!he.isEmpty()&&!Le&&(he=_e(he)||he,Ne=!0),!v&&!g&&Ne){var Re=he.toString(),He=ee(Re,Le);return He>=0&&(he=qr(ru(Re,".",He)),Oe(he)||(he=qr(ru(Re,".",He,!0)))),he.equals(Y)||(Z(he),I==null||I(he.isEmpty()?null:I1(x,he)),m===void 0&&ae(he,Le)),he}return Y},Ie=Nse(),yt=function we(Pe){if(Te(),le.current=Pe,ve(Pe),!X.current){var Le=ne(Pe),he=qr(Le);he.isNaN()||De(he,!0);}P==null||P(Pe),Ie(function(){var Ne=Pe;$||(Ne=Pe.replace(/。/g,".")),Ne!==Pe&&we(Ne);});},Qe=function(){X.current=!0;},gt=function(){X.current=!1,yt(_.current.value);},Ze=function(Pe){yt(Pe.target.value);},et=function(Pe){var Le;if(!(Pe&&Ee||!Pe&&$e)){V.current=!1;var he=qr(q.current?O1(u):u);Pe||(he=he.negate());var Ne=(Y||qr(0)).add(he.toString()),Re=De(Ne,!1);L==null||L(I1(x,Re),{offset:q.current?O1(u):u,type:Pe?"up":"down"}),(Le=_.current)===null||Le===void 0||Le.focus();}},ot=function(Pe){var Le=qr(ne(re)),he=Le;Le.isNaN()?he=De(Y,Pe):he=De(Le,Pe),m!==void 0?ae(Y,!1):he.isNaN()||ae(he,!1);},wt=function(){V.current=!0;},st=function(Pe){var Le=Pe.key,he=Pe.shiftKey;V.current=!0,q.current=he,Le==="Enter"&&(X.current||(V.current=!1),ot(!1),N==null||N(Pe)),b!==!1&&!X.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Le)&&(et(Le==="Up"||Le==="ArrowUp"),Pe.preventDefault());},mt=function(){V.current=!1,q.current=!1;};f__namespace.useEffect(function(){var we=function(he){y!==!1&&(et(he.deltaY<0),he.preventDefault());},Pe=_.current;if(Pe)return Pe.addEventListener("wheel",we),function(){return Pe.removeEventListener("wheel",we)}},[et]);var ut=function(){A&&ot(!1),W(!1),V.current=!1;};return vi(function(){Y.isInvalidate()||ae(Y,!1);},[O,S]),vi(function(){var we=qr(m);ce(we);var Pe=qr(ne(re));(!we.equals(Pe)||!V.current||S)&&ae(we,V.current);},[m]),vi(function(){S&&Ue();},[re]),f__namespace.createElement("div",{className:G(o,a,(n={},H(n,"".concat(o,"-focused"),F),H(n,"".concat(o,"-disabled"),g),H(n,"".concat(o,"-readonly"),v),H(n,"".concat(o,"-not-a-number"),Y.isNaN()),H(n,"".concat(o,"-out-of-range"),!Y.isInvalidate()&&!Oe(Y)),n)),style:i,onFocus:function(){W(!0);},onBlur:ut,onKeyDown:st,onKeyUp:mt,onCompositionStart:Qe,onCompositionEnd:gt,onBeforeInput:wt},w&&f__namespace.createElement(_se,{prefixCls:o,upNode:h,downNode:p,upDisabled:Ee,downDisabled:$e,onStep:et}),f__namespace.createElement("div",{className:"".concat(R,"-wrap")},f__namespace.createElement("input",xe({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:u},T,{ref:sr(_,t),className:R,value:re,onChange:Ze,disabled:g,readOnly:v}))))}),yI=f__namespace.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=e.value,i=e.prefix,l=e.suffix,s=e.addonBefore,c=e.addonAfter,u=e.className,d=e.classNames,m=dt(e,Lse),g=f__namespace.useRef(null),v=function(p){g.current&&xO(g.current,p);};return f__namespace.createElement(Wp,{className:u,triggerFocus:v,prefixCls:o,value:a,disabled:n,style:r,prefix:i,suffix:l,addonAfter:c,addonBefore:s,classNames:d,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},f__namespace.createElement(kse,xe({prefixCls:o,disabled:n,ref:sr(g,t),className:d==null?void 0:d.input},m)))});yI.displayName="InputNumber";const Ase=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},zp(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new nn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},M1=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a=t==="lg"?o:r;return {[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},jse=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:a,controlHeightLG:i,controlHeightSM:l,colorError:s,paddingInlineSM:c,paddingBlockSM:u,paddingBlockLG:d,paddingInlineLG:m,colorTextDescription:g,motionDurationMid:v,handleHoverColor:h,paddingInline:p,paddingBlock:b,handleBg:y,handleActiveBg:C,colorTextDisabled:w,borderRadiusSM:x,borderRadiusLG:$,controlWidth:S,handleOpacity:O,handleBorderColor:E,filledHandleBg:I,lineHeightLG:P,calc:N}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),oc(e)),{display:"inline-block",width:S,margin:0,padding:0,borderRadius:o}),mO(e,{[`${t}-handler-wrap`]:{background:y,[`${t}-handler-down`]:{borderBlockStart:`${B(n)} ${r} ${E}`}}})),pO(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${B(n)} ${r} ${E}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:y}}})),vO(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:P,borderRadius:$,[`input${t}-input`]:{height:N(i).sub(N(n).mul(2)).equal(),padding:`${B(d)} ${B(m)}`}},"&-sm":{padding:0,borderRadius:x,[`input${t}-input`]:{height:N(l).sub(N(n).mul(2)).equal(),padding:`${B(u)} ${B(c)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},Lt(e)),SO(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}},gO(e)),bO(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e)),{width:"100%",padding:`${B(b)} ${B(p)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),yO(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:O,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${v} linear ${v}`,[`${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:g,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${B(n)} ${r} ${E}`,transition:`all ${v} linear`,"&:active":{background:C},"&:hover":{height:"60%",[`
${t}-handler-up-inner,
${t}-handler-down-inner
`]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ja()),{color:g,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},M1(e,"lg")),M1(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
${t}-handler-up-disabled,
${t}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${t}-handler-up-disabled:hover &-handler-up-inner,
${t}-handler-down-disabled:hover &-handler-down-inner
`]:{color:w}})}]},Dse=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${B(n)} 0`}},oc(e)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:s,[`input${t}-input`]:{padding:`${B(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:c,[`input${t}-input`]:{padding:`${B(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},zse=Kt("InputNumber",e=>{const t=Ot(e,Dp(e));return [jse(t),Dse(t),uf(t)]},Ase,{unitless:{handleOpacity:!0}});var Fse=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 CI=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(nt),o=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:l,disabled:s,prefixCls:c,addonBefore:u,addonAfter:d,prefix:m,bordered:g,readOnly:v,status:h,controls:p,variant:b}=e,y=Fse(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),C=n("input-number",c),w=Mn(C),[x,$,S]=zse(C,w),{compactSize:O,compactItemClassnames:E}=Qi(C,r);let I=f__namespace.createElement(xse,{className:`${C}-handler-up-inner`}),P=f__namespace.createElement(Np,{className:`${C}-handler-down-inner`});const N=typeof p=="boolean"?p:void 0;typeof p=="object"&&(I=typeof p.upIcon>"u"?I:f__namespace.createElement("span",{className:`${C}-handler-up-inner`},p.upIcon),P=typeof p.downIcon>"u"?P:f__namespace.createElement("span",{className:`${C}-handler-down-inner`},p.downIcon));const{hasFeedback:L,status:k,isFormItemInput:A,feedbackIcon:T}=f__namespace.useContext(Br),R=nc(k,h),_=hr(ue=>{var Y;return (Y=l??O)!==null&&Y!==void 0?Y:ue}),D=f__namespace.useContext(oo),z=s??D,[F,W]=If(b,g),V=L&&f__namespace.createElement(f__namespace.Fragment,null,T),X=G({[`${C}-lg`]:_==="large",[`${C}-sm`]:_==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:A},$),q=`${C}-group`,Q=f__namespace.createElement(yI,Object.assign({ref:o,disabled:z,className:G(S,w,a,i,E),upHandler:I,downHandler:P,prefixCls:C,readOnly:v,controls:N,prefix:m,suffix:V,addonAfter:d&&f__namespace.createElement(Na,null,f__namespace.createElement(Ni,{override:!0,status:!0},d)),addonBefore:u&&f__namespace.createElement(Na,null,f__namespace.createElement(Ni,{override:!0,status:!0},u)),classNames:{input:X,variant:G({[`${C}-${F}`]:W},na(C,R,L)),affixWrapper:G({[`${C}-affix-wrapper-sm`]:_==="small",[`${C}-affix-wrapper-lg`]:_==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl"},$),wrapper:G({[`${q}-rtl`]:r==="rtl"},$),groupWrapper:G({[`${C}-group-wrapper-sm`]:_==="small",[`${C}-group-wrapper-lg`]:_==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${F}`]:W},na(`${C}-group-wrapper`,R,L),$)}},y));return x(Q)}),SI=CI,Bse=e=>f__namespace.createElement(So,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(CI,Object.assign({},e)));SI._InternalPanelDoNotUseOrYouWillBeFired=Bse;const _v=SI;var Hse={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 Wse=Hse;var Vse=function(t,n){return f__namespace.createElement(En,xe({},t,{ref:n,icon:Wse}))};const Gse=f__namespace.forwardRef(Vse),Tf=f.createContext(null);var Kse=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicator,i=a===void 0?{}:a,l=i.size,s=i.align,c=s===void 0?"center":s,u=f.useState(),d=J(u,2),m=d[0],g=d[1],v=f.useRef(),h=f.useCallback(function(b){return typeof l=="function"?l(b):typeof l=="number"?l:b},[l]);function p(){Et.cancel(v.current);}return f.useEffect(function(){var b={};if(n)if(r){b.width=h(n.width);var y=o?"right":"left";c==="start"&&(b[y]=n[y]),c==="center"&&(b[y]=n[y]+n.width/2,b.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(b[y]=n[y]+n.width,b.transform="translateX(-100%)");}else b.height=h(n.height),c==="start"&&(b.top=n.top),c==="center"&&(b.top=n.top+n.height/2,b.transform="translateY(-50%)"),c==="end"&&(b.top=n.top+n.height,b.transform="translateY(-100%)");return p(),v.current=Et(function(){g(b);}),p},[n,r,o,c,h]),{style:m}},R1={width:0,height:0,left:0,top:0};function Use(e,t,n){return f.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||R1,i=a.left+a.width,l=0;l<e.length;l+=1){var s=e[l].key,c=t.get(s);if(!c){var u;c=t.get((u=e[l-1])===null||u===void 0?void 0:u.key)||R1;}var d=o.get(s)||U({},c);d.right=i-d.left-d.width,o.set(s,d);}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function _1(e,t){var n=f__namespace.useRef(e),r=f__namespace.useState({}),o=J(r,2),a=o[1];function i(l){var s=typeof l=="function"?l(n.current):l;s!==n.current&&t(s,n.current),n.current=s,a({});}return [n.current,i]}var qse=.1,N1=.01,ou=20,T1=Math.pow(.995,ou);function Xse(e,t){var n=f.useState(),r=J(n,2),o=r[0],a=r[1],i=f.useState(0),l=J(i,2),s=l[0],c=l[1],u=f.useState(0),d=J(u,2),m=d[0],g=d[1],v=f.useState(),h=J(v,2),p=h[0],b=h[1],y=f.useRef();function C(E){var I=E.touches[0],P=I.screenX,N=I.screenY;a({x:P,y:N}),window.clearInterval(y.current);}function w(E){if(o){E.preventDefault();var I=E.touches[0],P=I.screenX,N=I.screenY;a({x:P,y:N});var L=P-o.x,k=N-o.y;t(L,k);var A=Date.now();c(A),g(A-s),b({x:L,y:k});}}function x(){if(o&&(a(null),b(null),p)){var E=p.x/m,I=p.y/m,P=Math.abs(E),N=Math.abs(I);if(Math.max(P,N)<qse)return;var L=E,k=I;y.current=window.setInterval(function(){if(Math.abs(L)<N1&&Math.abs(k)<N1){window.clearInterval(y.current);return}L*=T1,k*=T1,t(L*ou,k*ou);},ou);}}var $=f.useRef();function S(E){var I=E.deltaX,P=E.deltaY,N=0,L=Math.abs(I),k=Math.abs(P);L===k?N=$.current==="x"?I:P:L>k?(N=I,$.current="x"):(N=P,$.current="y"),t(-N,-N)&&E.preventDefault();}var O=f.useRef(null);O.current={onTouchStart:C,onTouchMove:w,onTouchEnd:x,onWheel:S},f__namespace.useEffect(function(){function E(L){O.current.onTouchStart(L);}function I(L){O.current.onTouchMove(L);}function P(L){O.current.onTouchEnd(L);}function N(L){O.current.onWheel(L);}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",P,{passive:!1}),e.current.addEventListener("touchstart",E,{passive:!1}),e.current.addEventListener("wheel",N),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",P);}},[]);}function $I(e){var t=f.useState(0),n=J(t,2),r=n[0],o=n[1],a=f.useRef(0),i=f.useRef();return i.current=e,vi(function(){var l;(l=i.current)===null||l===void 0||l.call(i);},[r]),function(){a.current===r&&(a.current+=1,o(a.current));}}function Yse(e){var t=f.useRef([]),n=f.useState({}),r=J(n,2),o=r[1],a=f.useRef(typeof e=="function"?e():e),i=$I(function(){var s=a.current;t.current.forEach(function(c){s=c(s);}),t.current=[],a.current=s,o({});});function l(s){t.current.push(s),i();}return [a.current,l]}var L1={width:0,height:0,left:0,top:0,right:0};function Zse(e,t,n,r,o,a,i){var l=i.tabs,s=i.tabPosition,c=i.rtl,u,d,m;return ["top","bottom"].includes(s)?(u="width",d=c?"right":"left",m=Math.abs(n)):(u="height",d="top",m=-n),f.useMemo(function(){if(!l.length)return [0,0];for(var g=l.length,v=g,h=0;h<g;h+=1){var p=e.get(l[h].key)||L1;if(p[d]+p[u]>m+t){v=h-1;break}}for(var b=0,y=g-1;y>=0;y-=1){var C=e.get(l[y].key)||L1;if(C[d]<m){b=y+1;break}}return b>=v?[0,0]:[b,v]},[e,t,r,o,a,m,s,l.map(function(g){return g.key}).join("_"),c])}function k1(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var Qse="TABS_DQ";function wI(e){return String(e).replace(/"/g,Qse)}function xI(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var EI=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return !r||r.showAdd===!1?null:f__namespace.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l});}},r.addIcon||"+")}),A1=f__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return ht(o)==="object"&&!f__namespace.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?f__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),Jse=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,l=e.moreIcon,s=l===void 0?"More":l,c=e.moreTransitionName,u=e.style,d=e.className,m=e.editable,g=e.tabBarGutter,v=e.rtl,h=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,C=f.useState(!1),w=J(C,2),x=w[0],$=w[1],S=f.useState(null),O=J(S,2),E=O[0],I=O[1],P="".concat(r,"-more-popup"),N="".concat(n,"-dropdown"),L=E!==null?"".concat(P,"-").concat(E):null,k=a==null?void 0:a.dropdownAriaLabel;function A(W,V){W.preventDefault(),W.stopPropagation(),m.onEdit("remove",{key:V,event:W});}var T=f__namespace.createElement(ol,{onClick:function(V){var X=V.key,q=V.domEvent;p(X,q),$(!1);},prefixCls:"".concat(N,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":L,selectedKeys:[E],"aria-label":k!==void 0?k:"expanded dropdown"},o.map(function(W){var V=W.closable,X=W.disabled,q=W.closeIcon,Q=W.key,ue=W.label,Y=xI(V,q,m,X);return f__namespace.createElement(Qs,{key:Q,id:"".concat(P,"-").concat(Q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Q),disabled:X},f__namespace.createElement("span",null,ue),Y&&f__namespace.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(N,"-menu-item-remove"),onClick:function(Z){Z.stopPropagation(),A(Z,Q);}},q||m.removeIcon||"×"))}));function R(W){for(var V=o.filter(function(Y){return !Y.disabled}),X=V.findIndex(function(Y){return Y.key===E})||0,q=V.length,Q=0;Q<q;Q+=1){X=(X+W+q)%q;var ue=V[X];if(!ue.disabled){I(ue.key);return}}}function _(W){var V=W.which;if(!x){[de.DOWN,de.SPACE,de.ENTER].includes(V)&&($(!0),W.preventDefault());return}switch(V){case de.UP:R(-1),W.preventDefault();break;case de.DOWN:R(1),W.preventDefault();break;case de.ESC:$(!1);break;case de.SPACE:case de.ENTER:E!==null&&p(E,W);break}}f.useEffect(function(){var W=document.getElementById(L);W&&W.scrollIntoView&&W.scrollIntoView(!1);},[E]),f.useEffect(function(){x||I(null);},[x]);var D=H({},v?"marginRight":"marginLeft",g);o.length||(D.visibility="hidden",D.order=1);var z=G(H({},"".concat(N,"-rtl"),v)),F=i?null:f__namespace.createElement(C2,{prefixCls:N,overlay:T,trigger:["hover"],visible:o.length?x:!1,transitionName:c,onVisibleChange:$,overlayClassName:G(z,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},f__namespace.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":P,id:"".concat(r,"-more"),"aria-expanded":x,onKeyDown:_},s));return f__namespace.createElement("div",{className:G("".concat(n,"-nav-operations"),d),style:u,ref:t},F,f__namespace.createElement(EI,{prefixCls:n,locale:a,editable:m}))});const ece=f__namespace.memo(Jse,function(e,t){return t.tabMoving});var tce=function(t){var n=t.prefixCls,r=t.id,o=t.active,a=t.tab,i=a.key,l=a.label,s=a.disabled,c=a.closeIcon,u=a.icon,d=t.closable,m=t.renderWrapper,g=t.removeAriaLabel,v=t.editable,h=t.onClick,p=t.onFocus,b=t.style,y="".concat(n,"-tab"),C=xI(d,c,v,s);function w(O){s||h(O);}function x(O){O.preventDefault(),O.stopPropagation(),v.onEdit("remove",{key:i,event:O});}var $=f__namespace.useMemo(function(){return u&&typeof l=="string"?f__namespace.createElement("span",null,l):l},[l,u]),S=f__namespace.createElement("div",{key:i,"data-node-key":wI(i),className:G(y,H(H(H({},"".concat(y,"-with-remove"),C),"".concat(y,"-active"),o),"".concat(y,"-disabled"),s)),style:b,onClick:w},f__namespace.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(i),className:"".concat(y,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(i),"aria-disabled":s,tabIndex:s?null:0,onClick:function(E){E.stopPropagation(),w(E);},onKeyDown:function(E){[de.SPACE,de.ENTER].includes(E.which)&&(E.preventDefault(),w(E));},onFocus:p},u&&f__namespace.createElement("span",{className:"".concat(y,"-icon")},u),l&&$),C&&f__namespace.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(y,"-remove"),onClick:function(E){E.stopPropagation(),x(E);}},c||v.removeIcon||"×"));return m?m(S):S},nce=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,a=t.offsetTop,i=t.offsetLeft,l=t.getBoundingClientRect(),s=l.width,c=l.height,u=l.x,d=l.y;return Math.abs(s-r)<1?[s,c,u-n.x,d-n.y]:[r,o,i,a]},ai=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,a=n.offsetHeight,i=a===void 0?0:a;if(t.current){var l=t.current.getBoundingClientRect(),s=l.width,c=l.height;if(Math.abs(s-o)<1)return [s,c]}return [o,i]},jc=function(t,n){return t[n?0:1]},j1=f__namespace.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,a=e.animated,i=e.activeKey,l=e.rtl,s=e.extra,c=e.editable,u=e.locale,d=e.tabPosition,m=e.tabBarGutter,g=e.children,v=e.onTabClick,h=e.onTabScroll,p=e.indicator,b=f__namespace.useContext(Tf),y=b.prefixCls,C=b.tabs,w=f.useRef(null),x=f.useRef(null),$=f.useRef(null),S=f.useRef(null),O=f.useRef(null),E=f.useRef(null),I=f.useRef(null),P=d==="top"||d==="bottom",N=_1(0,function(qe,ke){P&&h&&h({direction:qe>ke?"left":"right"});}),L=J(N,2),k=L[0],A=L[1],T=_1(0,function(qe,ke){!P&&h&&h({direction:qe>ke?"top":"bottom"});}),R=J(T,2),_=R[0],D=R[1],z=f.useState([0,0]),F=J(z,2),W=F[0],V=F[1],X=f.useState([0,0]),q=J(X,2),Q=q[0],ue=q[1],Y=f.useState([0,0]),ce=J(Y,2),Z=ce[0],ee=ce[1],ne=f.useState([0,0]),le=J(ne,2),se=le[0],K=le[1],te=Yse(new Map),re=J(te,2),ve=re[0],ae=re[1],ie=Use(C,ve,Q[0]),fe=jc(W,P),Ee=jc(Q,P),$e=jc(Z,P),We=jc(se,P),Ke=fe<Ee+$e,Te=Ke?fe-We:fe-$e,Ue="".concat(y,"-nav-operations-hidden"),_e=0,Oe=0;P&&l?(_e=0,Oe=Math.max(0,Ee-Te)):(_e=Math.min(0,Te-Ee),Oe=0);function De(qe){return qe<_e?_e:qe>Oe?Oe:qe}var Ie=f.useRef(null),yt=f.useState(),Qe=J(yt,2),gt=Qe[0],Ze=Qe[1];function et(){Ze(Date.now());}function ot(){Ie.current&&clearTimeout(Ie.current);}Xse(S,function(qe,ke){function Xe(Se,Ae){Se(function(Ve){var ct=De(Ve+Ae);return ct});}return Ke?(P?Xe(A,qe):Xe(D,ke),ot(),et(),!0):!1}),f.useEffect(function(){return ot(),gt&&(Ie.current=setTimeout(function(){Ze(0);},100)),ot},[gt]);var wt=Zse(ie,Te,P?k:_,Ee,$e,We,U(U({},e),{},{tabs:C})),st=J(wt,2),mt=st[0],ut=st[1],we=Kn(function(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,ke=ie.get(qe)||{width:0,height:0,left:0,right:0,top:0};if(P){var Xe=k;l?ke.right<k?Xe=ke.right:ke.right+ke.width>k+Te&&(Xe=ke.right+ke.width-Te):ke.left<-k?Xe=-ke.left:ke.left+ke.width>-k+Te&&(Xe=-(ke.left+ke.width-Te)),D(0),A(De(Xe));}else {var Se=_;ke.top<-_?Se=-ke.top:ke.top+ke.height>-_+Te&&(Se=-(ke.top+ke.height-Te)),A(0),D(De(Se));}}),Pe={};d==="top"||d==="bottom"?Pe[l?"marginRight":"marginLeft"]=m:Pe.marginTop=m;var Le=C.map(function(qe,ke){var Xe=qe.key;return f__namespace.createElement(tce,{id:o,prefixCls:y,key:Xe,tab:qe,style:ke===0?void 0:Pe,closable:qe.closable,editable:c,active:Xe===i,renderWrapper:g,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(Ae){v(Xe,Ae);},onFocus:function(){we(Xe),et(),S.current&&(l||(S.current.scrollLeft=0),S.current.scrollTop=0);}})}),he=function(){return ae(function(){var ke,Xe=new Map,Se=(ke=O.current)===null||ke===void 0?void 0:ke.getBoundingClientRect();return C.forEach(function(Ae){var Ve,ct=Ae.key,At=(Ve=O.current)===null||Ve===void 0?void 0:Ve.querySelector('[data-node-key="'.concat(wI(ct),'"]'));if(At){var It=nce(At,Se),Ft=J(It,4),Yt=Ft[0],Cn=Ft[1],ln=Ft[2],rn=Ft[3];Xe.set(ct,{width:Yt,height:Cn,left:ln,top:rn});}}),Xe})};f.useEffect(function(){he();},[C.map(function(qe){return qe.key}).join("_")]);var Ne=$I(function(){var qe=ai(w),ke=ai(x),Xe=ai($);V([qe[0]-ke[0]-Xe[0],qe[1]-ke[1]-Xe[1]]);var Se=ai(I);ee(Se);var Ae=ai(E);K(Ae);var Ve=ai(O);ue([Ve[0]-Se[0],Ve[1]-Se[1]]),he();}),Re=C.slice(0,mt),He=C.slice(ut+1),me=[].concat(Ge(Re),Ge(He)),pe=ie.get(i),Ce=Kse({activeTabOffset:pe,horizontal:P,indicator:p,rtl:l}),ye=Ce.style;f.useEffect(function(){we();},[i,_e,Oe,k1(pe),k1(ie),P]),f.useEffect(function(){Ne();},[l]);var ge=!!me.length,Me="".concat(y,"-nav-wrap"),ze,at,rt,Rt;return P?l?(at=k>0,ze=k!==Oe):(ze=k<0,at=k!==_e):(rt=_<0,Rt=_!==_e),f__namespace.createElement(zr,{onResize:Ne},f__namespace.createElement("div",{ref:aa(t,w),role:"tablist",className:G("".concat(y,"-nav"),n),style:r,onKeyDown:function(){et();}},f__namespace.createElement(A1,{ref:x,position:"left",extra:s,prefixCls:y}),f__namespace.createElement(zr,{onResize:Ne},f__namespace.createElement("div",{className:G(Me,H(H(H(H({},"".concat(Me,"-ping-left"),ze),"".concat(Me,"-ping-right"),at),"".concat(Me,"-ping-top"),rt),"".concat(Me,"-ping-bottom"),Rt)),ref:S},f__namespace.createElement(zr,{onResize:Ne},f__namespace.createElement("div",{ref:O,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(k,"px, ").concat(_,"px)"),transition:gt?"none":void 0}},Le,f__namespace.createElement(EI,{ref:I,prefixCls:y,locale:u,editable:c,style:U(U({},Le.length===0?void 0:Pe),{},{visibility:ge?"hidden":null})}),f__namespace.createElement("div",{className:G("".concat(y,"-ink-bar"),H({},"".concat(y,"-ink-bar-animated"),a.inkBar)),style:ye}))))),f__namespace.createElement(ece,xe({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:E,prefixCls:y,tabs:me,className:!ge&&Ue,tabMoving:!!gt})),f__namespace.createElement(A1,{ref:$,position:"right",extra:s,prefixCls:y})))}),OI=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,l=e.tabKey,s=e.children;return f__namespace.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!i,style:o,className:G(n,i&&"".concat(n,"-active"),r),ref:t},s)}),rce=["renderTabBar"],oce=["label","key"],ace=function(t){var n=t.renderTabBar,r=dt(t,rce),o=f__namespace.useContext(Tf),a=o.tabs;if(n){var i=U(U({},r),{},{panes:a.map(function(l){var s=l.label,c=l.key,u=dt(l,oce);return f__namespace.createElement(OI,xe({tab:s,key:c,tabKey:c},u))})});return n(i,j1)}return f__namespace.createElement(j1,r)},ice=["key","forceRender","style","className","destroyInactiveTabPane"],lce=function(t){var n=t.id,r=t.activeKey,o=t.animated,a=t.tabPosition,i=t.destroyInactiveTabPane,l=f__namespace.useContext(Tf),s=l.prefixCls,c=l.tabs,u=o.tabPane,d="".concat(s,"-tabpane");return f__namespace.createElement("div",{className:G("".concat(s,"-content-holder"))},f__namespace.createElement("div",{className:G("".concat(s,"-content"),"".concat(s,"-content-").concat(a),H({},"".concat(s,"-content-animated"),u))},c.map(function(m){var g=m.key,v=m.forceRender,h=m.style,p=m.className,b=m.destroyInactiveTabPane,y=dt(m,ice),C=g===r;return f__namespace.createElement(Rr,xe({key:g,visible:C,forceRender:v,removeOnLeave:!!(i||b),leavedClassName:"".concat(d,"-hidden")},o.tabPaneMotion),function(w,x){var $=w.style,S=w.className;return f__namespace.createElement(OI,xe({},y,{prefixCls:d,id:n,tabKey:g,animated:u,active:C,style:U(U({},h),$),className:G(p,S),ref:x}))})})))};function sce(){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=U({inkBar:!0},ht(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var cce=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],D1=0,uce=f__namespace.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,a=e.className,i=e.items,l=e.direction,s=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,m=e.tabPosition,g=m===void 0?"top":m,v=e.tabBarGutter,h=e.tabBarStyle,p=e.tabBarExtraContent,b=e.locale,y=e.moreIcon,C=e.moreTransitionName,w=e.destroyInactiveTabPane,x=e.renderTabBar,$=e.onChange,S=e.onTabClick,O=e.onTabScroll,E=e.getPopupContainer,I=e.popupClassName,P=e.indicator,N=dt(e,cce),L=f__namespace.useMemo(function(){return (i||[]).filter(function(K){return K&&ht(K)==="object"&&"key"in K})},[i]),k=l==="rtl",A=sce(d),T=f.useState(!1),R=J(T,2),_=R[0],D=R[1];f.useEffect(function(){D(Jd());},[]);var z=Gt(function(){var K;return (K=L[0])===null||K===void 0?void 0:K.key},{value:s,defaultValue:c}),F=J(z,2),W=F[0],V=F[1],X=f.useState(function(){return L.findIndex(function(K){return K.key===W})}),q=J(X,2),Q=q[0],ue=q[1];f.useEffect(function(){var K=L.findIndex(function(re){return re.key===W});if(K===-1){var te;K=Math.max(0,Math.min(Q,L.length-1)),V((te=L[K])===null||te===void 0?void 0:te.key);}ue(K);},[L.map(function(K){return K.key}).join("_"),W,Q]);var Y=Gt(null,{value:n}),ce=J(Y,2),Z=ce[0],ee=ce[1];f.useEffect(function(){n||(ee("rc-tabs-".concat(D1)),D1+=1);},[]);function ne(K,te){S==null||S(K,te);var re=K!==W;V(K),re&&($==null||$(K));}var le={id:Z,activeKey:W,animated:A,tabPosition:g,rtl:k,mobile:_},se=U(U({},le),{},{editable:u,locale:b,moreIcon:y,moreTransitionName:C,tabBarGutter:v,onTabClick:ne,onTabScroll:O,extra:p,style:h,panes:null,getPopupContainer:E,popupClassName:I,indicator:P});return f__namespace.createElement(Tf.Provider,{value:{tabs:L,prefixCls:o}},f__namespace.createElement("div",xe({ref:t,id:n,className:G(o,"".concat(o,"-").concat(g),H(H(H({},"".concat(o,"-mobile"),_),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),k),a)},N),f__namespace.createElement(ace,xe({},se,{renderTabBar:x})),f__namespace.createElement(lce,xe({destroyInactiveTabPane:w},le,{animated:A}))))});const dce={motionAppear:!1,motionEnter:!0,motionLeave:!0};function fce(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({},dce),{motionName:ea(e,"switch")})),n}var mce=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 gce(e){return e.filter(t=>t)}function vce(e,t){if(e)return e;const n=Ir(t).map(r=>{if(f__namespace.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:l}=i,s=mce(i,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return gce(n)}const hce=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}`}}}}},[ta(e,"slide-up"),ta(e,"slide-down")]]},pce=hce,bce=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${B(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,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:B(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${B(e.borderRadiusLG)} ${B(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${B(e.borderRadiusLG)} ${B(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:B(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${B(e.borderRadiusLG)} 0 0 ${B(e.borderRadiusLG)}`}},[`${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 ${B(e.borderRadiusLG)} ${B(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},yce=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},Lt(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:`${B(r)} 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({},Ra),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${B(e.paddingXXS)} ${B(e.paddingSM)}`,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"}}})}})}},Cce=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i,calc:l}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${B(e.lineWidth)} ${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,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:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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:B(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${B(e.lineWidth)} ${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:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Sce=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${B(e.borderRadius)} ${B(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${B(e.borderRadius)} ${B(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${B(e.borderRadius)} ${B(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${B(e.borderRadius)} 0 0 ${B(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},$ce=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return {[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Jo(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},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},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},wce=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:a}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:B(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:B(e.marginXS)},marginLeft:{_skip_check_:!0,value:B(a(e.marginXXS).mul(-1).equal())},[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},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},xce=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:l}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lt(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.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${B(e.paddingXS)}`,background:"transparent",border:`${B(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${B(e.borderRadiusLG)} ${B(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},Jo(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),$ce(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"}}}}}},Ece=e=>{const t=e.controlHeightLG;return {zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},Oce=Kt("Tabs",e=>{const t=Ot(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${B(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${B(e.horizontalItemGutter)}`});return [Sce(t),wce(t),Cce(t),yce(t),bce(t),xce(t),pce(t)]},Ece),Ice=()=>null,Pce=Ice;var Mce=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 II=e=>{var t,n,r,o,a,i;const{type:l,className:s,rootClassName:c,size:u,onEdit:d,hideAdd:m,centered:g,addIcon:v,popupClassName:h,children:p,items:b,animated:y,style:C,indicatorSize:w,indicator:x}=e,$=Mce(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:S,moreIcon:O=f__namespace.createElement(Ep,null)}=$,{direction:E,tabs:I,getPrefixCls:P,getPopupContainer:N}=f__namespace.useContext(nt),L=P("tabs",S),k=Mn(L),[A,T,R]=Oce(L,k);let _;l==="editable-card"&&(_={onEdit:(q,Q)=>{let{key:ue,event:Y}=Q;d==null||d(q==="add"?Y:ue,q);},removeIcon:f__namespace.createElement(ko,null),addIcon:v||f__namespace.createElement(Gse,null),showAdd:m!==!0});const D=P(),z=hr(u),F=vce(b,p),W=fce(L,y),V=Object.assign(Object.assign({},I==null?void 0:I.style),C),X={align:(t=x==null?void 0:x.align)!==null&&t!==void 0?t:(n=I==null?void 0:I.indicator)===null||n===void 0?void 0:n.align,size:(i=(o=(r=x==null?void 0:x.size)!==null&&r!==void 0?r:w)!==null&&o!==void 0?o:(a=I==null?void 0:I.indicator)===null||a===void 0?void 0:a.size)!==null&&i!==void 0?i:I==null?void 0:I.indicatorSize};return A(f__namespace.createElement(uce,Object.assign({direction:E,getPopupContainer:N,moreTransitionName:`${D}-slide-up`},$,{items:F,className:G({[`${L}-${z}`]:z,[`${L}-card`]:["card","editable-card"].includes(l),[`${L}-editable-card`]:l==="editable-card",[`${L}-centered`]:g},I==null?void 0:I.className,s,c,T,R,k),popupClassName:G(h,T,R,k),style:V,editable:_,moreIcon:O,prefixCls:L,animated:W,indicator:X})))};II.TabPane=Pce;const Rce=II,z1=j(tn,{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 PI({style:e,className:t}){const{runAsync:n,loading:r}=NU(HX,{manual:!0}),{accessKey:o}=sn();return j(ec,{size:"small",style:e,className:t,children:o?be(Pt,{children:[j(tn,{onClick:n,disabled:r,children:j("span",{children:"重新获取 access_key"})}),j(tn,{onClick:WX,children:j("span",{children:"删除 access_key"})}),z1]}):be(Pt,{children:[j(tn,{onClick:n,disabled:r,children:j("span",{children:"获取 access_key"})}),z1]})})}function _ce(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.useMemo(()=>r=>{t.forEach(o=>o(r));},t)}const Lf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function il(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function lb(e){return "nodeType"in e}function pr(e){var t,n;return e?il(e)?e:lb(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function sb(e){const{Document:t}=pr(e);return e instanceof t}function cc(e){return il(e)?!1:e instanceof pr(e).HTMLElement}function MI(e){return e instanceof pr(e).SVGElement}function ll(e){return e?il(e)?e.document:lb(e)?sb(e)?e:cc(e)||MI(e)?e.ownerDocument:document:document:document}const eo=Lf?f.useLayoutEffect:f.useEffect;function cb(e){const t=f.useRef(e);return eo(()=>{t.current=e;}),f.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function Nce(){const e=f.useRef(null),t=f.useCallback((r,o)=>{e.current=setInterval(r,o);},[]),n=f.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null);},[]);return [t,n]}function hs(e,t){t===void 0&&(t=[e]);const n=f.useRef(e);return eo(()=>{n.current!==e&&(n.current=e);},t),n}function uc(e,t){const n=f.useRef();return f.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Yu(e){const t=cb(e),n=f.useRef(null),r=f.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o;},[]);return [n,r]}function Nv(e){const t=f.useRef();return f.useEffect(()=>{t.current=e;},[e]),t.current}let Vm={};function dc(e,t){return f.useMemo(()=>{if(t)return t;const n=Vm[e]==null?0:Vm[e]+1;return Vm[e]=n,e+"-"+n},[e,t])}function RI(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((a,i)=>{const l=Object.entries(i);for(const[s,c]of l){const u=a[s];u!=null&&(a[s]=u+e*c);}return a},{...t})}}const Ci=RI(1),Zu=RI(-1);function Tce(e){return "clientX"in e&&"clientY"in e}function ub(e){if(!e)return !1;const{KeyboardEvent:t}=pr(e.target);return t&&e instanceof t}function Lce(e){if(!e)return !1;const{TouchEvent:t}=pr(e.target);return t&&e instanceof t}function Tv(e){if(Lce(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return {x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return {x:t,y:n}}}return Tce(e)?{x:e.clientX,y:e.clientY}:null}const ps=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return "translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return "scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return [ps.Translate.toString(e),ps.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),F1="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function kce(e){return e.matches(F1)?e:e.querySelector(F1)}const Ace={display:"none"};function jce(e){let{id:t,value:n}=e;return f.createElement("div",{id:t,style:Ace},n)}function Dce(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return f.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function zce(){const[e,t]=f.useState("");return {announce:f.useCallback(r=>{r!=null&&t(r);},[]),announcement:e}}const _I=f.createContext(null);function Fce(e){const t=f.useContext(_I);f.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t]);}function Bce(){const[e]=f.useState(()=>new Set),t=f.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return [f.useCallback(r=>{let{type:o,event:a}=r;e.forEach(i=>{var l;return (l=i[o])==null?void 0:l.call(i,a)});},[e]),t]}const Hce={draggable:`
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},Wce={onDragStart(e){let{active:t}=e;return "Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return "Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Vce(e){let{announcements:t=Wce,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Hce}=e;const{announce:a,announcement:i}=zce(),l=dc("DndLiveRegion"),[s,c]=f.useState(!1);if(f.useEffect(()=>{c(!0);},[]),Fce(f.useMemo(()=>({onDragStart(d){let{active:m}=d;a(t.onDragStart({active:m}));},onDragMove(d){let{active:m,over:g}=d;t.onDragMove&&a(t.onDragMove({active:m,over:g}));},onDragOver(d){let{active:m,over:g}=d;a(t.onDragOver({active:m,over:g}));},onDragEnd(d){let{active:m,over:g}=d;a(t.onDragEnd({active:m,over:g}));},onDragCancel(d){let{active:m,over:g}=d;a(t.onDragCancel({active:m,over:g}));}}),[a,t])),!s)return null;const u=f.createElement(f.Fragment,null,f.createElement(jce,{id:r,value:o.draggable}),f.createElement(Dce,{id:l,announcement:i}));return n?gS.createPortal(u,n):u}var _n;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable";})(_n||(_n={}));function Qu(){}function Gce(e,t){return f.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Kce(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const to=Object.freeze({x:0,y:0});function Uce(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function qce(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Xce(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Yce(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function B1(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Zce=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=B1(t,t.left,t.top),a=[];for(const i of r){const{id:l}=i,s=n.get(l);if(s){const c=Uce(B1(s),o);a.push({id:l,data:{droppableContainer:i,value:c}});}}return a.sort(qce)};function Qce(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),i=o-r,l=a-n;if(r<o&&n<a){const s=t.width*t.height,c=e.width*e.height,u=i*l,d=u/(s+c-u);return Number(d.toFixed(4))}return 0}const Jce=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const a of r){const{id:i}=a,l=n.get(i);if(l){const s=Qce(l,t);s>0&&o.push({id:i,data:{droppableContainer:a,value:s}});}}return o.sort(Xce)};function eue(e,t,n){return {...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function NI(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:to}function tue(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return o.reduce((i,l)=>({...i,top:i.top+e*l.y,bottom:i.bottom+e*l.y,left:i.left+e*l.x,right:i.right+e*l.x}),{...n})}}const nue=tue(1);function rue(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return {x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return {x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function oue(e,t,n){const r=rue(t);if(!r)return e;const{scaleX:o,scaleY:a,x:i,y:l}=r,s=e.left-i-(1-o)*parseFloat(n),c=e.top-l-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=a?e.height/a:e.height;return {width:u,height:d,top:c,right:s+u,bottom:c+d,left:s}}const aue={ignoreTransform:!1};function sl(e,t){t===void 0&&(t=aue);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=pr(e).getComputedStyle(e);c&&(n=oue(n,c,u));}const{top:r,left:o,width:a,height:i,bottom:l,right:s}=n;return {top:r,left:o,width:a,height:i,bottom:l,right:s}}function H1(e){return sl(e,{ignoreTransform:!0})}function iue(e){const t=e.innerWidth,n=e.innerHeight;return {top:0,left:0,right:t,bottom:n,width:t,height:n}}function lue(e,t){return t===void 0&&(t=pr(e).getComputedStyle(e)),t.position==="fixed"}function sue(e,t){t===void 0&&(t=pr(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return ["overflow","overflowX","overflowY"].some(o=>{const a=t[o];return typeof a=="string"?n.test(a):!1})}function db(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(sb(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!cc(o)||MI(o)||n.includes(o))return n;const a=pr(e).getComputedStyle(o);return o!==e&&sue(o,a)&&n.push(o),lue(o,a)?n:r(o.parentNode)}return e?r(e):n}function TI(e){const[t]=db(e,1);return t??null}function Gm(e){return !Lf||!e?null:il(e)?e:lb(e)?sb(e)||e===ll(e).scrollingElement?window:cc(e)?e:null:null}function LI(e){return il(e)?e.scrollX:e.scrollLeft}function kI(e){return il(e)?e.scrollY:e.scrollTop}function Lv(e){return {x:LI(e),y:kI(e)}}var zn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward";})(zn||(zn={}));function AI(e){return !Lf||!e?!1:e===document.scrollingElement}function jI(e){const t={x:0,y:0},n=AI(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,i=e.scrollTop>=r.y,l=e.scrollLeft>=r.x;return {isTop:o,isLeft:a,isBottom:i,isRight:l,maxScroll:r,minScroll:t}}const cue={x:.2,y:.2};function uue(e,t,n,r,o){let{top:a,left:i,right:l,bottom:s}=n;r===void 0&&(r=10),o===void 0&&(o=cue);const{isTop:c,isBottom:u,isLeft:d,isRight:m}=jI(e),g={x:0,y:0},v={x:0,y:0},h={height:t.height*o.y,width:t.width*o.x};return !c&&a<=t.top+h.height?(g.y=zn.Backward,v.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&s>=t.bottom-h.height&&(g.y=zn.Forward,v.y=r*Math.abs((t.bottom-h.height-s)/h.height)),!m&&l>=t.right-h.width?(g.x=zn.Forward,v.x=r*Math.abs((t.right-h.width-l)/h.width)):!d&&i<=t.left+h.width&&(g.x=zn.Backward,v.x=r*Math.abs((t.left+h.width-i)/h.width)),{direction:g,speed:v}}function due(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:i}=window;return {top:0,left:0,right:a,bottom:i,width:a,height:i}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return {top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function DI(e){return e.reduce((t,n)=>Ci(t,Lv(n)),to)}function fue(e){return e.reduce((t,n)=>t+LI(n),0)}function mue(e){return e.reduce((t,n)=>t+kI(n),0)}function gue(e,t){if(t===void 0&&(t=sl),!e)return;const{top:n,left:r,bottom:o,right:a}=t(e);TI(e)&&(o<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"});}const vue=[["x",["left","right"],fue],["y",["top","bottom"],mue]];class fb{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=db(n),o=DI(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,i,l]of vue)for(const s of i)Object.defineProperty(this,s,{get:()=>{const c=l(r),u=o[a]-c;return this.rect[s]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1});}}class ql{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return (r=this.target)==null?void 0:r.removeEventListener(...n)});},this.target=t;}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r]);}}function hue(e){const{EventTarget:t}=pr(e);return e instanceof t?e:ll(e)}function Km(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Dr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange";})(Dr||(Dr={}));function W1(e){e.preventDefault();}function pue(e){e.stopPropagation();}var Vt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter";})(Vt||(Vt={}));const zI={start:[Vt.Space,Vt.Enter],cancel:[Vt.Esc],end:[Vt.Space,Vt.Enter]},bue=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Vt.Right:return {...n,x:n.x+25};case Vt.Left:return {...n,x:n.x-25};case Vt.Down:return {...n,y:n.y+25};case Vt.Up:return {...n,y:n.y-25}}};class FI{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ql(ll(n)),this.windowListeners=new ql(pr(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach();}attach(){this.handleStart(),this.windowListeners.add(Dr.Resize,this.handleCancel),this.windowListeners.add(Dr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Dr.Keydown,this.handleKeyDown));}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&gue(r),n(to);}handleKeyDown(t){if(ub(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:a=zI,coordinateGetter:i=bue,scrollBehavior:l="smooth"}=o,{code:s}=t;if(a.end.includes(s)){this.handleEnd(t);return}if(a.cancel.includes(s)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:to;this.referenceCoordinates||(this.referenceCoordinates=u);const d=i(t,{active:n,context:r.current,currentCoordinates:u});if(d){const m=Zu(d,u),g={x:0,y:0},{scrollableAncestors:v}=r.current;for(const h of v){const p=t.code,{isTop:b,isRight:y,isLeft:C,isBottom:w,maxScroll:x,minScroll:$}=jI(h),S=due(h),O={x:Math.min(p===Vt.Right?S.right-S.width/2:S.right,Math.max(p===Vt.Right?S.left:S.left+S.width/2,d.x)),y:Math.min(p===Vt.Down?S.bottom-S.height/2:S.bottom,Math.max(p===Vt.Down?S.top:S.top+S.height/2,d.y))},E=p===Vt.Right&&!y||p===Vt.Left&&!C,I=p===Vt.Down&&!w||p===Vt.Up&&!b;if(E&&O.x!==d.x){const P=h.scrollLeft+m.x,N=p===Vt.Right&&P<=x.x||p===Vt.Left&&P>=$.x;if(N&&!m.y){h.scrollTo({left:P,behavior:l});return}N?g.x=h.scrollLeft-P:g.x=p===Vt.Right?h.scrollLeft-x.x:h.scrollLeft-$.x,g.x&&h.scrollBy({left:-g.x,behavior:l});break}else if(I&&O.y!==d.y){const P=h.scrollTop+m.y,N=p===Vt.Down&&P<=x.y||p===Vt.Up&&P>=$.y;if(N&&!m.x){h.scrollTo({top:P,behavior:l});return}N?g.y=h.scrollTop-P:g.y=p===Vt.Down?h.scrollTop-x.y:h.scrollTop-$.y,g.y&&h.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(t,Ci(Zu(d,this.referenceCoordinates),g));}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n);}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n();}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n();}detach(){this.listeners.removeAll(),this.windowListeners.removeAll();}}FI.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=zI,onActivation:o}=t,{active:a}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const l=a.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return !1}}];function V1(e){return !!(e&&"distance"in e)}function G1(e){return !!(e&&"delay"in e)}class mb{constructor(t,n,r){var o;r===void 0&&(r=hue(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:a}=t,{target:i}=a;this.props=t,this.events=n,this.document=ll(i),this.documentListeners=new ql(this.document),this.listeners=new ql(r),this.windowListeners=new ql(pr(i)),this.initialCoordinates=(o=Tv(a))!=null?o:to,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach();}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Dr.Resize,this.handleCancel),this.windowListeners.add(Dr.DragStart,W1),this.windowListeners.add(Dr.VisibilityChange,this.handleCancel),this.windowListeners.add(Dr.ContextMenu,W1),this.documentListeners.add(Dr.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(G1(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(V1(n))return}this.handleStart();}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null);}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Dr.Click,pue,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Dr.SelectionChange,this.removeTextSelection),n(t));}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:a}=this,{onMove:i,options:{activationConstraint:l}}=a;if(!o)return;const s=(n=Tv(t))!=null?n:to,c=Zu(o,s);if(!r&&l){if(V1(l)){if(l.tolerance!=null&&Km(c,l.tolerance))return this.handleCancel();if(Km(c,l.distance))return this.handleStart()}return G1(l)&&Km(c,l.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),i(s);}handleEnd(){const{onEnd:t}=this.props;this.detach(),t();}handleCancel(){const{onCancel:t}=this.props;this.detach(),t();}handleKeydown(t){t.code===Vt.Esc&&this.handleCancel();}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges();}}const yue={move:{name:"pointermove"},end:{name:"pointerup"}};class gb extends mb{constructor(t){const{event:n}=t,r=ll(n.target);super(t,yue,r);}}gb.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return !n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const Cue={move:{name:"mousemove"},end:{name:"mouseup"}};var kv;(function(e){e[e.RightClick=2]="RightClick";})(kv||(kv={}));class Sue extends mb{constructor(t){super(t,Cue,ll(t.event.target));}}Sue.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===kv.RightClick?!1:(r==null||r({event:n}),!0)}}];const Um={move:{name:"touchmove"},end:{name:"touchend"}};class $ue extends mb{constructor(t){super(t,Um);}static setup(){return window.addEventListener(Um.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Um.move.name,t);};function t(){}}}$ue.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var Xl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect";})(Xl||(Xl={}));var Ju;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder";})(Ju||(Ju={}));function wue(e){let{acceleration:t,activator:n=Xl.Pointer,canScroll:r,draggingRect:o,enabled:a,interval:i=5,order:l=Ju.TreeOrder,pointerCoordinates:s,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:m}=e;const g=Eue({delta:d,disabled:!a}),[v,h]=Nce(),p=f.useRef({x:0,y:0}),b=f.useRef({x:0,y:0}),y=f.useMemo(()=>{switch(n){case Xl.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case Xl.DraggableRect:return o}},[n,o,s]),C=f.useRef(null),w=f.useCallback(()=>{const $=C.current;if(!$)return;const S=p.current.x*b.current.x,O=p.current.y*b.current.y;$.scrollBy(S,O);},[]),x=f.useMemo(()=>l===Ju.TreeOrder?[...c].reverse():c,[l,c]);f.useEffect(()=>{if(!a||!c.length||!y){h();return}for(const $ of x){if((r==null?void 0:r($))===!1)continue;const S=c.indexOf($),O=u[S];if(!O)continue;const{direction:E,speed:I}=uue($,O,y,t,m);for(const P of ["x","y"])g[P][E[P]]||(I[P]=0,E[P]=0);if(I.x>0||I.y>0){h(),C.current=$,v(w,i),p.current=I,b.current=E;return}}p.current={x:0,y:0},b.current={x:0,y:0},h();},[t,w,r,h,a,i,JSON.stringify(y),JSON.stringify(g),v,c,x,u,JSON.stringify(m)]);}const xue={x:{[zn.Backward]:!1,[zn.Forward]:!1},y:{[zn.Backward]:!1,[zn.Forward]:!1}};function Eue(e){let{delta:t,disabled:n}=e;const r=Nv(t);return uc(o=>{if(n||!r||!o)return xue;const a={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return {x:{[zn.Backward]:o.x[zn.Backward]||a.x===-1,[zn.Forward]:o.x[zn.Forward]||a.x===1},y:{[zn.Backward]:o.y[zn.Backward]||a.y===-1,[zn.Forward]:o.y[zn.Forward]||a.y===1}}},[n,t,r])}function Oue(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return uc(o=>{var a;return t===null?null:(a=r??o)!=null?a:null},[r,t])}function Iue(e,t){return f.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,a=o.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,r)}));return [...n,...a]},[]),[e,t])}var bs;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging";})(bs||(bs={}));var Av;(function(e){e.Optimized="optimized";})(Av||(Av={}));const K1=new Map;function Pue(e,t){let{dragging:n,dependencies:r,config:o}=t;const[a,i]=f.useState(null),{frequency:l,measure:s,strategy:c}=o,u=f.useRef(e),d=p(),m=hs(d),g=f.useCallback(function(b){b===void 0&&(b=[]),!m.current&&i(y=>y===null?b:y.concat(b.filter(C=>!y.includes(C))));},[m]),v=f.useRef(null),h=uc(b=>{if(d&&!n)return K1;if(!b||b===K1||u.current!==e||a!=null){const y=new Map;for(let C of e){if(!C)continue;if(a&&a.length>0&&!a.includes(C.id)&&C.rect.current){y.set(C.id,C.rect.current);continue}const w=C.node.current,x=w?new fb(s(w),w):null;C.rect.current=x,x&&y.set(C.id,x);}return y}return b},[e,a,n,d,s]);return f.useEffect(()=>{u.current=e;},[e]),f.useEffect(()=>{d||g();},[n,d]),f.useEffect(()=>{a&&a.length>0&&i(null);},[JSON.stringify(a)]),f.useEffect(()=>{d||typeof l!="number"||v.current!==null||(v.current=setTimeout(()=>{g(),v.current=null;},l));},[l,d,g,...r]),{droppableRects:h,measureDroppableContainers:g,measuringScheduled:a!=null};function p(){switch(c){case bs.Always:return !1;case bs.BeforeDragging:return n;default:return !n}}}function BI(e,t){return uc(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Mue(e,t){return BI(e,t)}function Rue(e){let{callback:t,disabled:n}=e;const r=cb(t),o=f.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(r)},[r,n]);return f.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function kf(e){let{callback:t,disabled:n}=e;const r=cb(t),o=f.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(r)},[n]);return f.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function _ue(e){return new fb(sl(e),e)}function U1(e,t,n){t===void 0&&(t=_ue);const[r,o]=f.useReducer(l,null),a=Rue({callback(s){if(e)for(const c of s){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){o();break}}}}),i=kf({callback:o});return eo(()=>{o(),e?(i==null||i.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(i==null||i.disconnect(),a==null||a.disconnect());},[e]),r;function l(s){if(!e)return null;if(e.isConnected===!1){var c;return (c=s??n)!=null?c:null}const u=t(e);return JSON.stringify(s)===JSON.stringify(u)?s:u}}function Nue(e){const t=BI(e);return NI(e,t)}const q1=[];function Tue(e){const t=f.useRef(e),n=uc(r=>e?r&&r!==q1&&e&&t.current&&e.parentNode===t.current.parentNode?r:db(e):q1,[e]);return f.useEffect(()=>{t.current=e;},[e]),n}function Lue(e){const[t,n]=f.useState(null),r=f.useRef(e),o=f.useCallback(a=>{const i=Gm(a.target);i&&n(l=>l?(l.set(i,Lv(i)),new Map(l)):null);},[]);return f.useEffect(()=>{const a=r.current;if(e!==a){i(a);const l=e.map(s=>{const c=Gm(s);return c?(c.addEventListener("scroll",o,{passive:!0}),[c,Lv(c)]):null}).filter(s=>s!=null);n(l.length?new Map(l):null),r.current=e;}return ()=>{i(e),i(a);};function i(l){l.forEach(s=>{const c=Gm(s);c==null||c.removeEventListener("scroll",o);});}},[o,e]),f.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,i)=>Ci(a,i),to):DI(e):to,[e,t])}function X1(e,t){t===void 0&&(t=[]);const n=f.useRef(null);return f.useEffect(()=>{n.current=null;},t),f.useEffect(()=>{const r=e!==to;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null);},[e]),n.current?Zu(e,n.current):to}function kue(e){f.useEffect(()=>{if(!Lf)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return ()=>{for(const n of t)n==null||n();}},e.map(t=>{let{sensor:n}=t;return n}));}function Aue(e,t){return f.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:a}=r;return n[o]=i=>{a(i,t);},n},{}),[e,t])}function HI(e){return f.useMemo(()=>e?iue(e):null,[e])}const qm=[];function jue(e,t){t===void 0&&(t=sl);const[n]=e,r=HI(n?pr(n):null),[o,a]=f.useReducer(l,qm),i=kf({callback:a});return e.length>0&&o===qm&&a(),eo(()=>{e.length?e.forEach(s=>i==null?void 0:i.observe(s)):(i==null||i.disconnect(),a());},[e]),o;function l(){return e.length?e.map(s=>AI(s)?r:new fb(t(s),s)):qm}}function Due(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return cc(t)?t:e}function zue(e){let{measure:t}=e;const[n,r]=f.useState(null),o=f.useCallback(c=>{for(const{target:u}of c)if(cc(u)){r(d=>{const m=t(u);return d?{...d,width:m.width,height:m.height}:m});break}},[t]),a=kf({callback:o}),i=f.useCallback(c=>{const u=Due(c);a==null||a.disconnect(),u&&(a==null||a.observe(u)),r(u?t(u):null);},[t,a]),[l,s]=Yu(i);return f.useMemo(()=>({nodeRef:l,rect:n,setRef:s}),[n,l,s])}const Fue=[{sensor:gb,options:{}},{sensor:FI,options:{}}],Bue={current:{}},au={draggable:{measure:H1},droppable:{measure:H1,strategy:bs.WhileDragging,frequency:Av.Optimized},dragOverlay:{measure:sl}};class Yl extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return !n})}getNodeFor(t){var n,r;return (n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const Hue={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Yl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Qu},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:au,measureDroppableContainers:Qu,windowRect:null,measuringScheduled:!1},Wue={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Qu,draggableNodes:new Map,over:null,measureDroppableContainers:Qu},Af=f.createContext(Wue),WI=f.createContext(Hue);function Vue(){return {draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Yl}}}function Gue(e,t){switch(t.type){case _n.DragStart:return {...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case _n.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case _n.DragEnd:case _n.DragCancel:return {...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case _n.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Yl(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case _n.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const i=new Yl(e.droppable.containers);return i.set(n,{...a,disabled:o}),{...e,droppable:{...e.droppable,containers:i}}}case _n.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new Yl(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Kue(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=f.useContext(Af),a=Nv(r),i=Nv(n==null?void 0:n.id);return f.useEffect(()=>{if(!t&&!r&&a&&i!=null){if(!ub(a)||document.activeElement===a.target)return;const l=o.get(i);if(!l)return;const{activatorNode:s,node:c}=l;if(!s.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of [s.current,c.current]){if(!u)continue;const d=kce(u);if(d){d.focus();break}}});}},[r,t,o,i,a]),null}function Uue(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,a)=>a({transform:o,...r}),n):n}function que(e){return f.useMemo(()=>({draggable:{...au.draggable,...e==null?void 0:e.draggable},droppable:{...au.droppable,...e==null?void 0:e.droppable},dragOverlay:{...au.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function Xue(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const a=f.useRef(!1),{x:i,y:l}=typeof o=="boolean"?{x:o,y:o}:o;eo(()=>{if(!i&&!l||!t){a.current=!1;return}if(a.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const u=n(c),d=NI(u,r);if(i||(d.x=0),l||(d.y=0),a.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const m=TI(c);m&&m.scrollBy({top:d.y,left:d.x});}},[t,i,l,r,n]);}const VI=f.createContext({...to,scaleX:1,scaleY:1});var zo;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized";})(zo||(zo={}));const Yue=f.memo(function(t){var n,r,o,a;let{id:i,accessibility:l,autoScroll:s=!0,children:c,sensors:u=Fue,collisionDetection:d=Jce,measuring:m,modifiers:g,...v}=t;const h=f.useReducer(Gue,void 0,Vue),[p,b]=h,[y,C]=Bce(),[w,x]=f.useState(zo.Uninitialized),$=w===zo.Initialized,{draggable:{active:S,nodes:O,translate:E},droppable:{containers:I}}=p,P=S?O.get(S):null,N=f.useRef({initial:null,translated:null}),L=f.useMemo(()=>{var ut;return S!=null?{id:S,data:(ut=P==null?void 0:P.data)!=null?ut:Bue,rect:N}:null},[S,P]),k=f.useRef(null),[A,T]=f.useState(null),[R,_]=f.useState(null),D=hs(v,Object.values(v)),z=dc("DndDescribedBy",i),F=f.useMemo(()=>I.getEnabled(),[I]),W=que(m),{droppableRects:V,measureDroppableContainers:X,measuringScheduled:q}=Pue(F,{dragging:$,dependencies:[E.x,E.y],config:W.droppable}),Q=Oue(O,S),ue=f.useMemo(()=>R?Tv(R):null,[R]),Y=mt(),ce=Mue(Q,W.draggable.measure);Xue({activeNode:S?O.get(S):null,config:Y.layoutShiftCompensation,initialRect:ce,measure:W.draggable.measure});const Z=U1(Q,W.draggable.measure,ce),ee=U1(Q?Q.parentElement:null),ne=f.useRef({activatorEvent:null,active:null,activeNode:Q,collisionRect:null,collisions:null,droppableRects:V,draggableNodes:O,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),le=I.getNodeFor((n=ne.current.over)==null?void 0:n.id),se=zue({measure:W.dragOverlay.measure}),K=(r=se.nodeRef.current)!=null?r:Q,te=$?(o=se.rect)!=null?o:Z:null,re=!!(se.nodeRef.current&&se.rect),ve=Nue(re?null:Z),ae=HI(K?pr(K):null),ie=Tue($?le??Q:null),fe=jue(ie),Ee=Uue(g,{transform:{x:E.x-ve.x,y:E.y-ve.y,scaleX:1,scaleY:1},activatorEvent:R,active:L,activeNodeRect:Z,containerNodeRect:ee,draggingNodeRect:te,over:ne.current.over,overlayNodeRect:se.rect,scrollableAncestors:ie,scrollableAncestorRects:fe,windowRect:ae}),$e=ue?Ci(ue,E):null,We=Lue(ie),Ke=X1(We),Te=X1(We,[Z]),Ue=Ci(Ee,Ke),_e=te?nue(te,Ee):null,Oe=L&&_e?d({active:L,collisionRect:_e,droppableRects:V,droppableContainers:F,pointerCoordinates:$e}):null,De=Yce(Oe,"id"),[Ie,yt]=f.useState(null),Qe=re?Ee:Ci(Ee,Te),gt=eue(Qe,(a=Ie==null?void 0:Ie.rect)!=null?a:null,Z),Ze=f.useCallback((ut,we)=>{let{sensor:Pe,options:Le}=we;if(k.current==null)return;const he=O.get(k.current);if(!he)return;const Ne=ut.nativeEvent,Re=new Pe({active:k.current,activeNode:he,event:Ne,options:Le,context:ne,onStart(me){const pe=k.current;if(pe==null)return;const Ce=O.get(pe);if(!Ce)return;const{onDragStart:ye}=D.current,ge={active:{id:pe,data:Ce.data,rect:N}};gS.unstable_batchedUpdates(()=>{ye==null||ye(ge),x(zo.Initializing),b({type:_n.DragStart,initialCoordinates:me,active:pe}),y({type:"onDragStart",event:ge});});},onMove(me){b({type:_n.DragMove,coordinates:me});},onEnd:He(_n.DragEnd),onCancel:He(_n.DragCancel)});gS.unstable_batchedUpdates(()=>{T(Re),_(ut.nativeEvent);});function He(me){return async function(){const{active:Ce,collisions:ye,over:ge,scrollAdjustedTranslate:Me}=ne.current;let ze=null;if(Ce&&Me){const{cancelDrop:at}=D.current;ze={activatorEvent:Ne,active:Ce,collisions:ye,delta:Me,over:ge},me===_n.DragEnd&&typeof at=="function"&&await Promise.resolve(at(ze))&&(me=_n.DragCancel);}k.current=null,gS.unstable_batchedUpdates(()=>{b({type:me}),x(zo.Uninitialized),yt(null),T(null),_(null);const at=me===_n.DragEnd?"onDragEnd":"onDragCancel";if(ze){const rt=D.current[at];rt==null||rt(ze),y({type:at,event:ze});}});}}},[O]),et=f.useCallback((ut,we)=>(Pe,Le)=>{const he=Pe.nativeEvent,Ne=O.get(Le);if(k.current!==null||!Ne||he.dndKit||he.defaultPrevented)return;const Re={active:Ne};ut(Pe,we.options,Re)===!0&&(he.dndKit={capturedBy:we.sensor},k.current=Le,Ze(Pe,we));},[O,Ze]),ot=Iue(u,et);kue(u),eo(()=>{Z&&w===zo.Initializing&&x(zo.Initialized);},[Z,w]),f.useEffect(()=>{const{onDragMove:ut}=D.current,{active:we,activatorEvent:Pe,collisions:Le,over:he}=ne.current;if(!we||!Pe)return;const Ne={active:we,activatorEvent:Pe,collisions:Le,delta:{x:Ue.x,y:Ue.y},over:he};gS.unstable_batchedUpdates(()=>{ut==null||ut(Ne),y({type:"onDragMove",event:Ne});});},[Ue.x,Ue.y]),f.useEffect(()=>{const{active:ut,activatorEvent:we,collisions:Pe,droppableContainers:Le,scrollAdjustedTranslate:he}=ne.current;if(!ut||k.current==null||!we||!he)return;const{onDragOver:Ne}=D.current,Re=Le.get(De),He=Re&&Re.rect.current?{id:Re.id,rect:Re.rect.current,data:Re.data,disabled:Re.disabled}:null,me={active:ut,activatorEvent:we,collisions:Pe,delta:{x:he.x,y:he.y},over:He};gS.unstable_batchedUpdates(()=>{yt(He),Ne==null||Ne(me),y({type:"onDragOver",event:me});});},[De]),eo(()=>{ne.current={activatorEvent:R,active:L,activeNode:Q,collisionRect:_e,collisions:Oe,droppableRects:V,draggableNodes:O,draggingNode:K,draggingNodeRect:te,droppableContainers:I,over:Ie,scrollableAncestors:ie,scrollAdjustedTranslate:Ue},N.current={initial:te,translated:_e};},[L,Q,Oe,_e,O,K,te,V,I,Ie,ie,Ue]),wue({...Y,delta:E,draggingRect:_e,pointerCoordinates:$e,scrollableAncestors:ie,scrollableAncestorRects:fe});const wt=f.useMemo(()=>({active:L,activeNode:Q,activeNodeRect:Z,activatorEvent:R,collisions:Oe,containerNodeRect:ee,dragOverlay:se,draggableNodes:O,droppableContainers:I,droppableRects:V,over:Ie,measureDroppableContainers:X,scrollableAncestors:ie,scrollableAncestorRects:fe,measuringConfiguration:W,measuringScheduled:q,windowRect:ae}),[L,Q,Z,R,Oe,ee,se,O,I,V,Ie,X,ie,fe,W,q,ae]),st=f.useMemo(()=>({activatorEvent:R,activators:ot,active:L,activeNodeRect:Z,ariaDescribedById:{draggable:z},dispatch:b,draggableNodes:O,over:Ie,measureDroppableContainers:X}),[R,ot,L,Z,b,z,O,Ie,X]);return f.createElement(_I.Provider,{value:C},f.createElement(Af.Provider,{value:st},f.createElement(WI.Provider,{value:wt},f.createElement(VI.Provider,{value:gt},c)),f.createElement(Kue,{disabled:(l==null?void 0:l.restoreFocus)===!1})),f.createElement(Vce,{...l,hiddenTextDescribedById:z}));function mt(){const ut=(A==null?void 0:A.autoScrollEnabled)===!1,we=typeof s=="object"?s.enabled===!1:s===!1,Pe=$&&!ut&&!we;return typeof s=="object"?{...s,enabled:Pe}:{enabled:Pe}}}),Zue=f.createContext(null),Y1="button",Que="Droppable";function Jue(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const a=dc(Que),{activators:i,activatorEvent:l,active:s,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:m}=f.useContext(Af),{role:g=Y1,roleDescription:v="draggable",tabIndex:h=0}=o??{},p=(s==null?void 0:s.id)===t,b=f.useContext(p?VI:Zue),[y,C]=Yu(),[w,x]=Yu(),$=Aue(i,t),S=hs(n);eo(()=>(d.set(t,{id:t,key:a,node:y,activatorNode:w,data:S}),()=>{const E=d.get(t);E&&E.key===a&&d.delete(t);}),[d,t]);const O=f.useMemo(()=>({role:g,tabIndex:h,"aria-disabled":r,"aria-pressed":p&&g===Y1?!0:void 0,"aria-roledescription":v,"aria-describedby":u.draggable}),[r,g,h,p,v,u.draggable]);return {active:s,activatorEvent:l,activeNodeRect:c,attributes:O,isDragging:p,listeners:r?void 0:$,node:y,over:m,setNodeRef:C,setActivatorNodeRef:x,transform:b}}function ede(){return f.useContext(WI)}const tde="Droppable",nde={timeout:25};function rde(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const a=dc(tde),{active:i,dispatch:l,over:s,measureDroppableContainers:c}=f.useContext(Af),u=f.useRef({disabled:n}),d=f.useRef(!1),m=f.useRef(null),g=f.useRef(null),{disabled:v,updateMeasurementsFor:h,timeout:p}={...nde,...o},b=hs(h??r),y=f.useCallback(()=>{if(!d.current){d.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(b.current)?b.current:[b.current]),g.current=null;},p);},[p]),C=kf({callback:y,disabled:v||!i}),w=f.useCallback((O,E)=>{C&&(E&&(C.unobserve(E),d.current=!1),O&&C.observe(O));},[C]),[x,$]=Yu(w),S=hs(t);return f.useEffect(()=>{!C||!x.current||(C.disconnect(),d.current=!1,C.observe(x.current));},[x,C]),eo(()=>(l({type:_n.RegisterDroppable,element:{id:r,key:a,disabled:n,node:x,rect:m,data:S}}),()=>l({type:_n.UnregisterDroppable,key:a,id:r})),[r]),f.useEffect(()=>{n!==u.current.disabled&&(l({type:_n.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n);},[r,a,n,l]),{active:i,rect:m,isOver:(s==null?void 0:s.id)===r,node:x,over:s,setNodeRef:$}}function ode(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}const ade=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return !n||!t?r:ode(r,n,t)},ide=e=>{let{transform:t}=e;return {...t,x:0}};function GI(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function lde(e,t){return e.reduce((n,r,o)=>{const a=t.get(r);return a&&(n[o]=a),n},Array(e.length))}function Dc(e){return e!==null&&e>=0}function sde(e,t){if(e===t)return !0;if(e.length!==t.length)return !1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return !1;return !0}function cde(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const KI=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const a=GI(t,r,n),i=t[o],l=a[o];return !l||!i?null:{x:l.left-i.left,y:l.top-i.top,scaleX:l.width/i.width,scaleY:l.height/i.height}},zc={scaleX:1,scaleY:1},ude=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:a,overIndex:i}=e;const l=(t=a[n])!=null?t:r;if(!l)return null;if(o===n){const c=a[i];return c?{x:0,y:n<i?c.top+c.height-(l.top+l.height):c.top-l.top,...zc}:null}const s=dde(a,o,n);return o>n&&o<=i?{x:0,y:-l.height-s,...zc}:o<n&&o>=i?{x:0,y:l.height+s,...zc}:{x:0,y:0,...zc}};function dde(e,t,n){const r=e[t],o=e[t-1],a=e[t+1];return r?n<t?o?r.top-(o.top+o.height):a?a.top-(r.top+r.height):0:a?a.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const UI="Sortable",qI=f.createContext({activeIndex:-1,containerId:UI,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:KI,disabled:{draggable:!1,droppable:!1}});function fde(e){let{children:t,id:n,items:r,strategy:o=KI,disabled:a=!1}=e;const{active:i,dragOverlay:l,droppableRects:s,over:c,measureDroppableContainers:u}=ede(),d=dc(UI,n),m=l.rect!==null,g=f.useMemo(()=>r.map($=>typeof $=="object"&&"id"in $?$.id:$),[r]),v=i!=null,h=i?g.indexOf(i.id):-1,p=c?g.indexOf(c.id):-1,b=f.useRef(g),y=!sde(g,b.current),C=p!==-1&&h===-1||y,w=cde(a);eo(()=>{y&&v&&u(g);},[y,g,v,u]),f.useEffect(()=>{b.current=g;},[g]);const x=f.useMemo(()=>({activeIndex:h,containerId:d,disabled:w,disableTransforms:C,items:g,overIndex:p,useDragOverlay:m,sortedRects:lde(g,s),strategy:o}),[h,d,w.draggable,w.droppable,C,g,p,s,m,o]);return f.createElement(qI.Provider,{value:x},t)}const mde=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return GI(n,r,o).indexOf(t)},gde=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:a,newIndex:i,previousItems:l,previousContainerId:s,transition:c}=e;return !c||!r||l!==a&&o===i?!1:n?!0:i!==o&&t===s},vde={duration:200,easing:"ease"},XI="transform",hde=ps.Transition.toString({property:XI,duration:0,easing:"linear"}),pde={roleDescription:"sortable"};function bde(e){let{disabled:t,index:n,node:r,rect:o}=e;const[a,i]=f.useState(null),l=f.useRef(n);return eo(()=>{if(!t&&n!==l.current&&r.current){const s=o.current;if(s){const c=sl(r.current,{ignoreTransform:!0}),u={x:s.left-c.left,y:s.top-c.top,scaleX:s.width/c.width,scaleY:s.height/c.height};(u.x||u.y)&&i(u);}}n!==l.current&&(l.current=n);},[t,n,r,o]),f.useEffect(()=>{a&&i(null);},[a]),a}function yde(e){let{animateLayoutChanges:t=gde,attributes:n,disabled:r,data:o,getNewIndex:a=mde,id:i,strategy:l,resizeObserverConfig:s,transition:c=vde}=e;const{items:u,containerId:d,activeIndex:m,disabled:g,disableTransforms:v,sortedRects:h,overIndex:p,useDragOverlay:b,strategy:y}=f.useContext(qI),C=Cde(r,g),w=u.indexOf(i),x=f.useMemo(()=>({sortable:{containerId:d,index:w,items:u},...o}),[d,o,w,u]),$=f.useMemo(()=>u.slice(u.indexOf(i)),[u,i]),{rect:S,node:O,isOver:E,setNodeRef:I}=rde({id:i,data:x,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...s}}),{active:P,activatorEvent:N,activeNodeRect:L,attributes:k,setNodeRef:A,listeners:T,isDragging:R,over:_,setActivatorNodeRef:D,transform:z}=Jue({id:i,data:x,attributes:{...pde,...n},disabled:C.draggable}),F=_ce(I,A),W=!!P,V=W&&!v&&Dc(m)&&Dc(p),X=!b&&R,q=X&&V?z:null,ue=V?q??(l??y)({rects:h,activeNodeRect:L,activeIndex:m,overIndex:p,index:w}):null,Y=Dc(m)&&Dc(p)?a({id:i,items:u,activeIndex:m,overIndex:p}):w,ce=P==null?void 0:P.id,Z=f.useRef({activeId:ce,items:u,newIndex:Y,containerId:d}),ee=u!==Z.current.items,ne=t({active:P,containerId:d,isDragging:R,isSorting:W,id:i,index:w,items:u,newIndex:Z.current.newIndex,previousItems:Z.current.items,previousContainerId:Z.current.containerId,transition:c,wasDragging:Z.current.activeId!=null}),le=bde({disabled:!ne,index:w,node:O,rect:S});return f.useEffect(()=>{W&&Z.current.newIndex!==Y&&(Z.current.newIndex=Y),d!==Z.current.containerId&&(Z.current.containerId=d),u!==Z.current.items&&(Z.current.items=u);},[W,Y,d,u]),f.useEffect(()=>{if(ce===Z.current.activeId)return;if(ce&&!Z.current.activeId){Z.current.activeId=ce;return}const K=setTimeout(()=>{Z.current.activeId=ce;},50);return ()=>clearTimeout(K)},[ce]),{active:P,activeIndex:m,attributes:k,data:x,rect:S,index:w,newIndex:Y,items:u,isOver:E,isSorting:W,isDragging:R,listeners:T,node:O,overIndex:p,over:_,setNodeRef:F,setActivatorNodeRef:D,setDroppableNodeRef:I,setDraggableNodeRef:A,transform:le??ue,transition:se()};function se(){if(le||ee&&Z.current.newIndex===w)return hde;if(!(X&&!ub(N)||!c)&&(W||ne))return ps.Transition.toString({...c,property:XI})}}function Cde(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}Vt.Down,Vt.Right,Vt.Up,Vt.Left;const Sde="_config-icon_1th8l_1",$de="_settings-group_1th8l_7",wde="_settings-group-title_1th8l_10",xde="_settings-group-sub-title_1th8l_15",Ede="_settings-group-content_1th8l_21",Ode="_row_1th8l_28",Ide="_check_1th8l_37",Pde="_setting-tabs_1th8l_43",Mde="_tab-pane_1th8l_47",Ye={configIcon:Sde,settingsGroup:$de,settingsGroupTitle:wde,settingsGroupSubTitle:xde,settingsGroupContent:Ede,row:Ode,check:Ide,settingTabs:Pde,tabPane:Mde};var Rde=["b"],_de=["v"],Xm=function(t){return Math.round(Number(t||0))},Nde=function(t){if(t&&ht(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=dt(n,Rde);return U(U({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ed=function(e){Yi(n,e);var t=Zi(n);function n(r){return cr(this,n),t.call(this,Nde(r))}return ur(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Xm(o.s*100),i=Xm(o.b*100),l=Xm(o.h),s=o.a,c="hsb(".concat(l,", ").concat(a,"%, ").concat(i,"%)"),u="hsba(".concat(l,", ").concat(a,"%, ").concat(i,"%, ").concat(s.toFixed(s===0?0:2),")");return s===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv();ht(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var a=o;a.v;var i=dt(a,_de);return U(U({},i),{},{b:o.v})}}]),n}(nn),Tde="rc-color-picker",Xo=function(t){return t instanceof ed?t:new ed(t)},Lde=Xo("#1677ff"),YI=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,a=t.color,i=t.type,l=o.current.getBoundingClientRect(),s=l.width,c=l.height,u=r.current.getBoundingClientRect(),d=u.width,m=u.height,g=d/2,v=m/2,h=(n.x+g)/s,p=1-(n.y+v)/c,b=a.toHsb(),y=h,C=(n.x+g)/s*360;if(i)switch(i){case"hue":return Xo(U(U({},b),{},{h:C<=0?0:C}));case"alpha":return Xo(U(U({},b),{},{a:y<=0?0:y}))}return Xo({h:b.h,s:h<=0?0:h,b:p>=1?1:p,a:b.a})},ZI=function(t,n,r,o){var a=t.current.getBoundingClientRect(),i=a.width,l=a.height,s=n.current.getBoundingClientRect(),c=s.width,u=s.height,d=c/2,m=u/2,g=r.toHsb();if(!(c===0&&u===0||c!==u)){if(o)switch(o){case"hue":return {x:g.h/360*i-d,y:-m/3};case"alpha":return {x:g.a/1*i-d,y:-m/3}}return {x:g.s*i-d,y:(1-g.b)*l-m}}},vb=function(t){var n=t.color,r=t.prefixCls,o=t.className,a=t.style,i=t.onClick,l="".concat(r,"-color-block");return f.createElement("div",{className:G(l,o),style:a,onClick:i},f.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};function kde(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 QI(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,a=e.onDragChange,i=e.onDragChangeComplete,l=e.calculate,s=e.color,c=e.disabledDrag,u=f.useState(t||{x:0,y:0}),d=J(u,2),m=d[0],g=d[1],v=f.useRef(null),h=f.useRef(null),p=f.useRef({flag:!1});f.useEffect(function(){if(p.current.flag===!1){var x=l==null?void 0:l(r);x&&g(x);}},[s,r]),f.useEffect(function(){return function(){document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",h.current),v.current=null,h.current=null;}},[]);var b=function($){var S=kde($),O=S.pageX,E=S.pageY,I=r.current.getBoundingClientRect(),P=I.x,N=I.y,L=I.width,k=I.height,A=n.current.getBoundingClientRect(),T=A.width,R=A.height,_=T/2,D=R/2,z=Math.max(0,Math.min(O-P,L))-_,F=Math.max(0,Math.min(E-N,k))-D,W={x:z,y:o==="x"?m.y:F};if(T===0&&R===0||T!==R)return !1;g(W),a==null||a(W);},y=function($){$.preventDefault(),b($);},C=function($){$.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",h.current),v.current=null,h.current=null,i==null||i();},w=function($){document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",h.current),!c&&(b($),p.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),document.addEventListener("touchmove",y),document.addEventListener("touchend",C),v.current=y,h.current=C);};return [m,w]}var JI=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,a=t.prefixCls;return f.createElement("div",{className:G("".concat(a,"-handler"),H({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},eP=function(t){var n=t.children,r=t.style,o=t.prefixCls;return f.createElement("div",{className:"".concat(o,"-palette"),style:U({position:"relative"},r)},n)},tP=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)}),Ade=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,a=t.onChangeComplete,i=t.disabled,l=f.useRef(),s=f.useRef(),c=f.useRef(n),u=QI({color:n,containerRef:l,targetRef:s,calculate:function(h){return ZI(h,s,n)},onDragChange:function(h){var p=YI({offset:h,targetRef:s,containerRef:l,color:n});c.current=p,r(p);},onDragChangeComplete:function(){return a==null?void 0:a(c.current)},disabledDrag:i}),d=J(u,2),m=d[0],g=d[1];return f.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:g,onTouchStart:g},f.createElement(eP,{prefixCls:o},f.createElement(tP,{offset:m,ref:s},f.createElement(JI,{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))"}})))},jde=function(t){var n=t.colors,r=t.children,o=t.direction,a=o===void 0?"to right":o,i=t.type,l=t.prefixCls,s=f.useMemo(function(){return n.map(function(c,u){var d=Xo(c);return i==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,i]);return f.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(s,")")}},r)},Z1=function(t){var n=t.gradientColors,r=t.direction,o=t.type,a=o===void 0?"hue":o,i=t.color,l=t.value,s=t.onChange,c=t.onChangeComplete,u=t.disabled,d=t.prefixCls,m=f.useRef(),g=f.useRef(),v=f.useRef(i),h=QI({color:i,targetRef:g,containerRef:m,calculate:function(w){return ZI(w,g,i,a)},onDragChange:function(w){var x=YI({offset:w,targetRef:g,containerRef:m,color:i,type:a});v.current=x,s(x);},onDragChangeComplete:function(){c==null||c(v.current,a);},direction:"x",disabledDrag:u}),p=J(h,2),b=p[0],y=p[1];return f.createElement("div",{ref:m,className:G("".concat(d,"-slider"),"".concat(d,"-slider-").concat(a)),onMouseDown:y,onTouchStart:y},f.createElement(eP,{prefixCls:d},f.createElement(tP,{offset:b,ref:g},f.createElement(JI,{size:"small",color:l,prefixCls:d})),f.createElement(jde,{colors:n,direction:r,type:a,prefixCls:d})))};function Q1(e){return e!==void 0}var Dde=function(t,n){var r=n.defaultValue,o=n.value,a=f.useState(function(){var c;return Q1(o)?c=o:Q1(r)?c=r:c=t,Xo(c)}),i=J(a,2),l=i[0],s=i[1];return f.useEffect(function(){o&&s(Xo(o));},[o]),[l,s]},zde=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"];const Fde=f.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,a=o===void 0?Tde:o,i=e.onChange,l=e.onChangeComplete,s=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,m=d===void 0?!1:d,g=e.disabled,v=g===void 0?!1:g,h=Dde(Lde,{value:n,defaultValue:r}),p=J(h,2),b=p[0],y=p[1],C=f.useMemo(function(){var O=Xo(b.toRgbString());return O.setAlpha(1),O.toRgbString()},[b]),w=G("".concat(a,"-panel"),s,H({},"".concat(a,"-panel-disabled"),v)),x={prefixCls:a,onChangeComplete:l,disabled:v},$=function(E,I){n||y(E),i==null||i(E,I);},S=f.createElement(f.Fragment,null,f.createElement(Ade,xe({color:b,onChange:$},x)),f.createElement("div",{className:"".concat(a,"-slider-container")},f.createElement("div",{className:G("".concat(a,"-slider-group"),H({},"".concat(a,"-slider-group-disabled-alpha"),m))},f.createElement(Z1,xe({gradientColors:zde,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(E){return $(E,"hue")}},x)),!m&&f.createElement(Z1,xe({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",C],color:b,value:b.toRgbString(),onChange:function(E){return $(E,"alpha")}},x))),f.createElement(vb,{color:b.toRgbString(),prefixCls:a})));return f.createElement("div",{className:w,style:c,ref:t},typeof u=="function"?u(S):S)}),nP=f.createContext({}),rP=f.createContext({}),{Provider:Bde}=nP,{Provider:Hde}=rP,iu=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",Wde=(e,t)=>e?iu(e,t):"";let J1=function(){function e(t){Xd(this,e),this.metaColor=new ed(t),t||this.metaColor.setAlpha(0);}return Yd(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Wde(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 tr=e=>e instanceof J1?e:new J1(e),lu=e=>Math.round(Number(e||0)),td=e=>lu(e.toHsb().a*100),Ym=(e,t)=>{const n=e.toHsb();return n.a=t||1,tr(n)},Vde=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const a=()=>{if(n&&!r){const i=n.toHsb();i.a=0;const l=tr(i);o==null||o(l);}};return f.createElement("div",{className:`${t}-clear`,onClick:a})},oP=Vde;var Oo;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(Oo||(Oo={}));const Gde=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:a,className:i,formatter:l}=e;const s=`${t}-steppers`,[c,u]=f.useState(o);return f.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),f.createElement(_v,{className:G(s,i),min:n,max:r,value:c,formatter:l,size:"small",onChange:d=>{o||u(d||0),a==null||a(d);}})},Ia=Gde,Kde=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[a,i]=f.useState(tr(n||"#000"));f.useEffect(()=>{n&&i(n);},[n]);const l=s=>{const c=a.toHsb();c.a=(s||0)/100;const u=tr(c);n||i(u),r==null||r(u);};return f.createElement(Ia,{value:td(a),prefixCls:t,formatter:s=>`${s}%`,className:o,onChange:l})},Ude=Kde,qde=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,eS=e=>qde.test(`#${e}`),Xde=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[a,i]=f.useState(n==null?void 0:n.toHex());f.useEffect(()=>{const s=n==null?void 0:n.toHex();eS(s)&&n&&i(iu(s));},[n]);const l=s=>{const c=s.target.value;i(iu(c)),eS(iu(c,!0))&&(r==null||r(tr(c)));};return f.createElement(IO,{className:o,value:a,prefix:"#",onChange:l,size:"small"})},Yde=Xde,Zde=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[a,i]=f.useState(tr(n||"#000"));f.useEffect(()=>{n&&i(n);},[n]);const l=(s,c)=>{const u=a.toHsb();u[c]=c==="h"?s:(s||0)/100;const d=tr(u);n||i(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(Ia,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:o,formatter:s=>lu(s||0).toString(),onChange:s=>l(Number(s),"h")}),f.createElement(Ia,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:o,formatter:s=>`${lu(s||0)}%`,onChange:s=>l(Number(s),"s")}),f.createElement(Ia,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:o,formatter:s=>`${lu(s||0)}%`,onChange:s=>l(Number(s),"b")}))},Qde=Zde,Jde=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[a,i]=f.useState(tr(n||"#000"));f.useEffect(()=>{n&&i(n);},[n]);const l=(s,c)=>{const u=a.toRgb();u[c]=s||0;const d=tr(u);n||i(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(Ia,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:o,onChange:s=>l(Number(s),"r")}),f.createElement(Ia,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:o,onChange:s=>l(Number(s),"g")}),f.createElement(Ia,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:o,onChange:s=>l(Number(s),"b")}))},efe=Jde,tfe=[Oo.hex,Oo.hsb,Oo.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),nfe=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:a,onChange:i}=e,[l,s]=Gt(Oo.hex,{value:n,onChange:a}),c=`${t}-input`,u=m=>{s(m);},d=f.useMemo(()=>{const m={value:r,prefixCls:t,onChange:i};switch(l){case Oo.hsb:return f.createElement(Qde,Object.assign({},m));case Oo.rgb:return f.createElement(efe,Object.assign({},m));case Oo.hex:default:return f.createElement(Yde,Object.assign({},m))}},[l,t,r,i]);return f.createElement("div",{className:`${c}-container`},f.createElement(rc,{value:l,variant:"borderless",getPopupContainer:m=>m,popupMatchSelectWidth:68,placement:"bottomRight",onChange:u,className:`${t}-format-select`,size:"small",options:tfe}),f.createElement("div",{className:c},d),!o&&f.createElement(Ude,{prefixCls:t,value:r,onChange:i}))},rfe=nfe;var ofe=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 afe=()=>{const e=f.useContext(nP),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:a,onChange:i,onClear:l,onChangeComplete:s}=e,c=ofe(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return f.createElement(f.Fragment,null,r&&f.createElement(oP,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:u=>{i==null||i(u),l==null||l();}},c)),f.createElement(Fde,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:a,onChange:(u,d)=>i==null?void 0:i(u,d,!0),onChangeComplete:s}),f.createElement(rfe,Object.assign({value:o,onChange:i,prefixCls:t,disabledAlpha:a},c)))},tS=afe;var aP=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,a=e.className,i=e.style,l=e.children,s=e.isActive,c=e.role,u=f.useState(s||o),d=J(u,2),m=d[0],g=d[1];return f.useEffect(function(){(o||s)&&g(!0);},[o,s]),m?f.createElement("div",{ref:t,className:G("".concat(r,"-content"),(n={},H(n,"".concat(r,"-content-active"),s),H(n,"".concat(r,"-content-inactive"),!s),n),a),style:i,role:c},f.createElement("div",{className:"".concat(r,"-content-box")},l)):null});aP.displayName="PanelContent";var ife=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],iP=f.forwardRef(function(e,t){var n,r,o=e.showArrow,a=o===void 0?!0:o,i=e.headerClass,l=e.isActive,s=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,m=e.collapsible,g=e.accordion,v=e.panelKey,h=e.extra,p=e.header,b=e.expandIcon,y=e.openMotion,C=e.destroyInactivePanel,w=e.children,x=dt(e,ife),$=m==="disabled",S=m==="header",O=m==="icon",E=h!=null&&typeof h!="boolean",I=function(){s==null||s(v);},P=function(R){(R.key==="Enter"||R.keyCode===de.ENTER||R.which===de.ENTER)&&I();},N=typeof b=="function"?b(e):f.createElement("i",{className:"arrow"});N&&(N=f.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(m)?I:void 0},N));var L=G((n={},H(n,"".concat(d,"-item"),!0),H(n,"".concat(d,"-item-active"),l),H(n,"".concat(d,"-item-disabled"),$),n),u),k=G(i,(r={},H(r,"".concat(d,"-header"),!0),H(r,"".concat(d,"-header-collapsible-only"),S),H(r,"".concat(d,"-icon-collapsible-only"),O),r)),A={className:k,"aria-expanded":l,"aria-disabled":$,onKeyDown:P};return !S&&!O&&(A.onClick=I,A.role=g?"tab":"button",A.tabIndex=$?-1:0),f.createElement("div",xe({},x,{ref:t,className:L}),f.createElement("div",A,a&&N,f.createElement("span",{className:"".concat(d,"-header-text"),onClick:m==="header"?I:void 0},p),E&&f.createElement("div",{className:"".concat(d,"-extra")},h)),f.createElement(Rr,xe({visible:l,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:C}),function(T,R){var _=T.className,D=T.style;return f.createElement(aP,{ref:R,prefixCls:d,className:_,style:D,isActive:l,forceRender:c,role:g?"tabpanel":void 0},w)}))}),lfe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],sfe=function(t,n){var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,l=n.onItemClick,s=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(d,m){var g=d.children,v=d.label,h=d.key,p=d.collapsible,b=d.onItemClick,y=d.destroyInactivePanel,C=dt(d,lfe),w=String(h??m),x=p??a,$=y??i,S=function(I){x!=="disabled"&&(l(I),b==null||b(I));},O=!1;return o?O=s[0]===w:O=s.indexOf(w)>-1,f.createElement(iP,xe({},C,{prefixCls:r,key:w,panelKey:w,isActive:O,accordion:o,openMotion:c,expandIcon:u,header:v,collapsible:x,onItemClick:S,destroyInactivePanel:$}),g)})},cfe=function(t,n,r){if(!t)return null;var o=r.prefixCls,a=r.accordion,i=r.collapsible,l=r.destroyInactivePanel,s=r.onItemClick,c=r.activeKey,u=r.openMotion,d=r.expandIcon,m=t.key||String(n),g=t.props,v=g.header,h=g.headerClass,p=g.destroyInactivePanel,b=g.collapsible,y=g.onItemClick,C=!1;a?C=c[0]===m:C=c.indexOf(m)>-1;var w=b??i,x=function(O){w!=="disabled"&&(s(O),y==null||y(O));},$={key:m,panelKey:m,header:v,headerClass:h,isActive:C,prefixCls:o,destroyInactivePanel:p??l,openMotion:u,accordion:a,children:t.props.children,onItemClick:x,expandIcon:d,collapsible:w};return typeof t.type=="string"?t:(Object.keys($).forEach(function(S){typeof $[S]>"u"&&delete $[S];}),f.cloneElement(t,$))};function ufe(e,t,n){return Array.isArray(e)?sfe(e,n):Ir(t).map(function(r,o){return cfe(r,o,n)})}function dfe(e){var t=e;if(!Array.isArray(t)){var n=ht(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var ffe=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,a=o===void 0?!1:o,i=e.style,l=e.accordion,s=e.className,c=e.children,u=e.collapsible,d=e.openMotion,m=e.expandIcon,g=e.activeKey,v=e.defaultActiveKey,h=e.onChange,p=e.items,b=G(r,s),y=Gt([],{value:g,onChange:function(E){return h==null?void 0:h(E)},defaultValue:v,postState:dfe}),C=J(y,2),w=C[0],x=C[1],$=function(E){return x(function(){if(l)return w[0]===E?[]:[E];var I=w.indexOf(E),P=I>-1;return P?w.filter(function(N){return N!==E}):[].concat(Ge(w),[E])})};Tn(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var S=ufe(p,c,{prefixCls:r,accordion:l,openMotion:d,expandIcon:m,collapsible:u,destroyInactivePanel:a,onItemClick:$,activeKey:w});return f.createElement("div",{ref:t,className:b,style:i,role:l?"tablist":void 0},S)});const hb=Object.assign(ffe,{Panel:iP});hb.Panel;const mfe=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(nt),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),l=G({[`${i}-no-arrow`]:!a},o);return f__namespace.createElement(hb.Panel,Object.assign({ref:t},e,{prefixCls:i,className:l}))}),gfe=mfe,vfe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:u,colorBorder:d,colorText:m,colorTextHeading:g,colorTextDisabled:v,fontSizeLG:h,lineHeight:p,lineHeightLG:b,marginSM:y,paddingSM:C,paddingLG:w,paddingXS:x,motionDurationSlow:$,fontSizeIcon:S,contentPadding:O,fontHeight:E,fontHeightLG:I}=e,P=`${B(c)} ${u} ${d}`;return {[t]:Object.assign(Object.assign({},Lt(e)),{backgroundColor:o,border:P,borderBottom:0,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:P,"&:last-child":{[`
&,
& > ${t}-header`]:{borderRadius:`0 0 ${B(s)} ${B(s)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:g,lineHeight:p,cursor:"pointer",transition:`all ${$}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},ja()),{fontSize:S,svg:{transition:`transform ${$}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:P,[`& > ${t}-content-box`]:{padding:O},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(C).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:b,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:I,marginInlineStart:e.calc(w).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${B(s)} ${B(s)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:v,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},hfe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},pfe=e=>{const{componentCls:t,headerBg: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}}}},bfe=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}}}}}},yfe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),Cfe=Kt("Collapse",e=>{const t=Ot(e,{collapseHeaderPaddingSM:`${B(e.paddingXS)} ${B(e.paddingSM)}`,collapseHeaderPaddingLG:`${B(e.padding)} ${B(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return [vfe(t),pfe(t),bfe(t),hfe(t),Ox(t)]},yfe),Sfe=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=f__namespace.useContext(nt),{prefixCls:a,className:i,rootClassName:l,style:s,bordered:c=!0,ghost:u,size:d,expandIconPosition:m="start",children:g,expandIcon:v}=e,h=hr(I=>{var P;return (P=d??I)!==null&&P!==void 0?P:"middle"}),p=n("collapse",a),b=n(),[y,C,w]=Cfe(p),x=f__namespace.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),$=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const P=v?v(I):f__namespace.createElement(ki,{rotate:I.isActive?90:void 0});return ir(P,()=>({className:G(P.props.className,`${p}-arrow`)}))},S=G(`${p}-icon-position-${x}`,{[`${p}-borderless`]:!c,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!u,[`${p}-${h}`]:h!=="middle"},o==null?void 0:o.className,i,l,C,w),O=Object.assign(Object.assign({},Cx(b)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),E=f__namespace.useMemo(()=>g?Ir(g).map((I,P)=>{var N,L;if(!((N=I.props)===null||N===void 0)&&N.disabled){const k=(L=I.key)!==null&&L!==void 0?L:String(P),{disabled:A,collapsible:T}=I.props,R=Object.assign(Object.assign({},Yn(I.props,["disabled"])),{key:k,collapsible:T??(A?"disabled":void 0)});return ir(I,R)}return I}):null,[g]);return y(f__namespace.createElement(hb,Object.assign({ref:t,openMotion:O},Yn(e,["rootClassName"]),{expandIcon:$,prefixCls:p,className:S,style:Object.assign(Object.assign({},o==null?void 0:o.style),s)}),E))}),$fe=Object.assign(Sfe,{Panel:gfe}),Zm=e=>e.map(t=>(t.colors=t.colors.map(tr),t)),wfe=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new ed(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},nS=e=>{let{label:t}=e;return `panel-${t}`},xfe=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[a]=Lo("ColorPicker"),[,i]=In(),[l]=Gt(Zm(n),{value:Zm(n),postState:Zm}),s=`${t}-presets`,c=f.useMemo(()=>l.reduce((m,g)=>{const{defaultOpen:v=!0}=g;return v&&m.push(nS(g)),m},[]),[l]),u=m=>{o==null||o(m);},d=l.map(m=>{var g;return {key:nS(m),label:f.createElement("div",{className:`${s}-label`},m==null?void 0:m.label),children:f.createElement("div",{className:`${s}-items`},Array.isArray(m==null?void 0:m.colors)&&((g=m.colors)===null||g===void 0?void 0:g.length)>0?m.colors.map((v,h)=>f.createElement(vb,{key:`preset-${h}-${v.toHexString()}`,color:tr(v).toRgbString(),prefixCls:t,className:G(`${s}-color`,{[`${s}-color-checked`]:v.toHexString()===(r==null?void 0:r.toHexString()),[`${s}-color-bright`]:wfe(v,i.colorBgElevated)}),onClick:()=>u(v)})):f.createElement("span",{className:`${s}-empty`},a.presetEmpty))}});return f.createElement("div",{className:s},f.createElement($fe,{defaultActiveKey:c,ghost:!0,items:d}))},Efe=xfe,Ofe=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=f.useContext(rP);return Array.isArray(n)?f.createElement(Efe,{value:t,presets:n,prefixCls:e,onChange:r}):null},rS=Ofe;var Ife=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 Pfe=e=>{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:a,onClear:i}=e,l=Ife(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),s=`${t}-inner`,c=Object.assign({prefixCls:t,value:o,onChange:a,onClear:i},l),u=f.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:a}),[t,o,n,a]),d=f.createElement("div",{className:`${s}-content`},f.createElement(tS,null),Array.isArray(n)&&f.createElement(OE,null),f.createElement(rS,null));return f.createElement(Bde,{value:c},f.createElement(Hde,{value:u},f.createElement("div",{className:s},typeof r=="function"?r(d,{components:{Picker:tS,Presets:rS}}):d)))},Mfe=Pfe;var Rfe=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 _fe=f.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:a,disabled:i,format:l,className:s,showText:c}=e,u=Rfe(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),d=`${r}-trigger`,m=f.useMemo(()=>a?f.createElement(oP,{prefixCls:r}):f.createElement(vb,{prefixCls:r,color:n.toRgbString()}),[n,a,r]),g=()=>{const h=n.toHexString().toUpperCase(),p=td(n);switch(l){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${h.slice(0,7)},${p}%`:h}},v=()=>{if(typeof c=="function")return c(n);if(c)return g()};return f.createElement("div",Object.assign({ref:t,className:G(d,s,{[`${d}-active`]:o,[`${d}-disabled`]:i})},u),m,c&&f.createElement("div",{className:`${d}-text`},v()))}),Nfe=_fe;function oS(e){return e!==void 0}const Tfe=(e,t)=>{const{defaultValue:n,value:r}=t,[o,a]=f.useState(()=>{let i;return oS(r)?i=r:oS(n)?i=n:i=e,tr(i||"")});return f.useEffect(()=>{r&&a(tr(r));},[r]),[o,a]},Lfe=Tfe,lP=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),kfe=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:a,colorFillSecondary:i}=e;return {[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},lP("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${B(a)} solid ${i}`,borderRadius:"inherit"}})}},aS=kfe,Afe=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:a,marginXXS:i,paddingXXS:l,controlHeightSM:s,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:g,lineWidth:v}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:g}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${B(a)}`,marginInlineStart:i},[`${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:e.calc(u).add(i).equal(),fontSize:r,lineHeight:`${B(s)}`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:i,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:i,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${B(d)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:B(e.calc(s).sub(e.calc(v).mul(2)).equal())},[`${n}-input-prefix`]:{color:m}}}}}},jfe=Afe,Dfe=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:a,colorBgElevated:i,colorFillSecondary:l,lineWidthBold:s,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:u,colorPickerSliderHeight:d}=e;return {[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:a},[`${t}-handler`]:{width:c,height:c,border:`${B(s)} solid ${i}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`,"&-sm":{width:u,height:u}},[`${t}-slider`]:{borderRadius:e.calc(d).div(2).equal(),[`${t}-palette`]:{height:d},[`${t}-gradient`]:{borderRadius:e.calc(d).div(2).equal(),boxShadow:o},"&-alpha":lP(`${B(d)}`,e.colorFillSecondary),"&-hue":{marginBottom:a}},[`${t}-slider-container`]:{display:"flex",gap:a,marginBottom:a,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},zfe=Dfe,Ffe=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:a,fontSizeSM:i,colorText:l,lineHeightSM:s,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:m,marginXXS:g,paddingXS:v,fontHeightSM:h}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:h,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:g},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${B(v)} 0`},"&-label":{fontSize:i,color:l,lineHeight:s},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(g).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:e.calc(a).add(e.calc(c).mul(4)).equal(),height:e.calc(a).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${B(c)} 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:e.calc(a).div(13).mul(5).equal(),height:e.calc(a).div(13).mul(8).equal(),border:`${B(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:i,color:r}}}},Bfe=Ffe,jv=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${B(e.controlOutlineWidth)} ${n}`,outline:0}),Hfe=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},iS=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:a,colorSplit:i,red6:l}=e;return {[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${B(a)} solid ${i}`,position:"relative",cursor:"pointer",overflow:"hidden"},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:a,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:l}})}},Wfe=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:a,colorErrorOutline:i,colorWarningOutline:l}=e;return {[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},jv(e,n,i))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},jv(e,r,l))}}},Vfe=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:a,borderRadius:i,borderRadiusSM:l,borderRadiusXS:s,borderRadiusLG:c,fontSizeLG:u}=e;return {[`&${t}-lg`]:{minWidth:n,height:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:i},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:s}}}},Gfe=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:a,colorBgElevated:i,colorTextDisabled:l,colorText:s,colorBgContainerDisabled:c,borderRadius:u,marginXS:d,marginSM:m,controlHeight:g,controlHeightSM:v,colorBgTextActive:h,colorPickerPresetColorSize:p,colorPickerPreviewSize:b,lineWidth:y,colorBorder:C,paddingXXS:w,fontSize:x,colorPrimaryHover:$,controlOutline:S}=e;return [{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${B(m)} 0 ${B(d)}`}},[`${n}-panel`]:Object.assign({},zfe(e))},aS(e,b)),jfe(e)),Bfe(e)),iS(e,p,{marginInlineStart:"auto",marginBottom:d})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:g,height:g,borderRadius:u,border:`${B(y)} solid ${C}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${a}`,background:i,padding:e.calc(w).sub(y).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(w).sub(y)).equal(),fontSize:x,color:s},"&:hover":{borderColor:$},[`&${n}-trigger-active`]:Object.assign({},jv(e,o,S)),"&-disabled":{color:l,background:c,cursor:"not-allowed","&:hover":{borderColor:h},[`${n}-trigger-text`]:{color:l}}},iS(e,v)),aS(e,v)),Wfe(e)),Vfe(e))},Hfe(e))}]},Kfe=Kt("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=Ot(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return [Gfe(o)]});var Ufe=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 pb=e=>{const{value:t,defaultValue:n,format:r,defaultFormat:o,allowClear:a=!1,presets:i,children:l,trigger:s="click",open:c,disabled:u,placement:d="bottomLeft",arrow:m=!0,panelRender:g,showText:v,style:h,className:p,size:b,rootClassName:y,prefixCls:C,styles:w,disabledAlpha:x=!1,onFormatChange:$,onChange:S,onClear:O,onOpenChange:E,onChangeComplete:I,getPopupContainer:P,autoAdjustOverflow:N=!0,destroyTooltipOnHide:L}=e,k=Ufe(e,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:A,direction:T,colorPicker:R}=f.useContext(nt),_=f.useContext(oo),D=u??_,[z,F]=Lfe("",{value:t,defaultValue:n}),[W,V]=Gt(!1,{value:c,postState:Ue=>!D&&Ue,onChange:E}),[X,q]=Gt(r,{value:r,defaultValue:o,onChange:$}),[Q,ue]=f.useState(!t&&!n),Y=A("color-picker",C),ce=f.useMemo(()=>td(z)<100,[z]),{status:Z}=f.useContext(Br),ee=hr(b),ne=Mn(Y),[le,se,K]=Kfe(Y,ne),te={[`${Y}-rtl`]:T},re=G(y,K,ne,te),ve=G(na(Y,Z),{[`${Y}-sm`]:ee==="small",[`${Y}-lg`]:ee==="large"},R==null?void 0:R.className,re,p,se),ae=G(Y,re),ie=f.useRef(!0),fe=(Ue,_e,Oe)=>{let De=tr(Ue);(Q||(t===null||!t&&n===null))&&(ue(!1),td(z)===0&&_e!=="alpha"&&(De=Ym(De))),x&&ce&&(De=Ym(De)),Oe?ie.current=!1:I==null||I(De),F(De),S==null||S(De,De.toHexString());},Ee=()=>{ue(!0),O==null||O();},$e=Ue=>{ie.current=!0;let _e=tr(Ue);x&&ce&&(_e=Ym(Ue)),I==null||I(_e);},We={open:W,trigger:s,placement:d,arrow:m,rootClassName:y,getPopupContainer:P,autoAdjustOverflow:N,destroyTooltipOnHide:L},Ke={prefixCls:Y,color:z,allowClear:a,colorCleared:Q,disabled:D,disabledAlpha:x,presets:i,panelRender:g,format:X,onFormatChange:q,onChangeComplete:$e},Te=Object.assign(Object.assign({},R==null?void 0:R.style),h);return le(f.createElement($f,Object.assign({style:w==null?void 0:w.popup,overlayInnerStyle:w==null?void 0:w.popupOverlayInner,onOpenChange:Ue=>{ie.current&&!D&&V(Ue);},content:f.createElement(Ni,{override:!0,status:!0},f.createElement(Mfe,Object.assign({},Ke,{onChange:fe,onChangeComplete:$e,onClear:Ee}))),overlayClassName:ae},We),l||f.createElement(Nfe,Object.assign({open:W,className:ve,style:Te,color:t?tr(t):z,prefixCls:Y,disabled:D,colorCleared:Q,showText:v,format:X},k))))},qfe=bp(pb,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));pb._InternalPanelDoNotUseOrYouWillBeFired=qfe;const Xfe=pb;var Yfe={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},Zfe={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function Qfe(){const e=yh().id,{colorPickerThemeSelectedColor:t}=sn(),[n,r]=f.useState(t||vu.colorPrimary),o=f.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return j("div",{children:F$.map(({name:a,themes:i,tooltip:l})=>be(f.Fragment,{children:[be("div",{css:Zfe,children:[a,j(nl,{tooltip:l,tooltipProps:{color:"rgba(0, 0, 0, 0.85)"},iconProps:{name:"Tips",size:16}})]}),j("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:i.map(s=>{const c=e===s.id,u=s.isCustom,d=30,m=d+8;let g=j("div",{className:"preview-wrapper",css:[fr("aspect-ratio:1;width:",m,"px;border:2px solid transparent;border-radius:50%;margin:0 auto;font-size:0;",""),Ai,c&&fr("border-color:",s.colorPrimary,";",""),"",""],children:j("div",{className:"preview",css:[fr("aspect-ratio:1;width:",d,"px;background-color:",u?o:s.colorPrimary,";border-radius:50%;",""),Ai,"",""],children:c&&j(Tt,{name:"CheckSmall",size:18,fill:"#fff"})})});return s.isCustom&&(g=j(Xfe,{value:n,onChange:v=>r(v),onOpenChange:v=>{v||Un({colorPickerThemeSelectedColor:o});},children:g})),be("div",{css:Yfe,onClick:v=>{Un({theme:s.id});},children:[g,s.name]},s.id)})})]},a))})}async function bb(){pn.info("即将刷新网页"),await Xn(500),location.reload();}function Jfe(){return cz(),bb()}async function eme(){const e=await tz(),t=ih(e||{},V$);return Object.keys(t).length?(sj(!0),Un({...t}),bb()):pn.error("备份不存在或没有有效的配置")}function Fc(e,t,n){return wn(e,r=>{if(gf())return;vt[t]=!vt[t];const o=!vt[t];pn.success(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}const tme="basic",lS=mr({tab:tme});var nme={name:"1a2afmv",styles:"margin-left:10px"};function rme({show:e,onHide:t}){const{filterEnabled:n,filterMinPlayCount:r,filterMinPlayCountEnabled:o,filterMinDuration:a,filterMinDurationEnabled:i,filterOutGotoTypePicture:l}=sn();Fc(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Fc(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Fc(["shift.c"],"useNarrowMode","居中模式"),Fc(["shift.y"],"styleFancy","Fancy Style");const{tab:s}=vr(lS);return be(pf,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[be("div",{className:Or.modalHeader,children:[be("div",{className:Or.modalTitle,children:[j(Tt,{name:"Config",className:Ye.configIcon}),"设置项"]}),j("div",{className:"space",style:{flex:1}}),j(bf,{onClick:t})]}),j("main",{className:Or.modalBody,style:{overflow:"hidden"},children:j(Rce,{tabPosition:"left",size:"middle",className:Ye.settingTabs,activeKey:s,onChange:c=>lS.tab=c,items:[{label:"常规设置",key:"basic",children:j(ime,{})},{label:"内容过滤",key:"filter",children:j("div",{className:Ye.tabPane,children:be("div",{className:Ye.settingsGroup,children:[be("div",{className:Ye.settingsGroupTitle,children:["内容过滤",j(nl,{iconProps:{name:"Tips"},tooltip:be(Pt,{children:["启用过滤会大幅降低加载速度, 谨慎开启! ",j("br",{}),"仅推荐类 Tab 生效"]})}),j(tc,{css:nme,checked:n,onChange:c=>{Un({filterEnabled:c});}})]}),be("div",{className:G(Ye.settingsGroupContent),children:[j("div",{className:Ye.settingsGroupSubTitle,children:"视频"}),be("div",{className:Ye.row,children:[j(fn,{disabled:!n,configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:j(Pt,{children:"不显示播放量很少的视频"})}),j(_v,{size:"small",min:1,step:1e3,value:r,onChange:c=>c&&Un({filterMinPlayCount:c}),disabled:!n||!o})]}),be("div",{className:Ye.row,style:{marginTop:3},children:[j(fn,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:j(Pt,{children:"不显示短视频"}),disabled:!n}),j(_v,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:c=>c&&Un({filterMinDuration:c}),disabled:!n||!i})]}),j(fn,{className:Ye.row,style:{marginTop:3},configKey:"enableFilterForFollowedVideo",label:"对「已关注」的视频启用过滤",tooltip:j(Pt,{children:"默认不过滤「已关注」"}),disabled:!n}),j("div",{className:Ye.settingsGroupSubTitle,children:"图文"}),j(fn,{className:Ye.row,configKey:"filterOutGotoTypePicture",label:"启用图文(动态 & 专栏)过滤",tooltip:j(Pt,{children:"过滤掉图文推荐"}),disabled:!n}),j(fn,{className:Ye.row,disabled:!n||!l,configKey:"enableFilterForFollowedPicture",label:"对「已关注」的图文启用过滤",tooltip:j(Pt,{children:"默认不过滤「已关注」"})})]})]})})},{label:"外观设置",key:"ui",children:j("div",{className:Ye.tabPane,children:be("div",{className:Ye.settingsGroup,children:[j("div",{className:Ye.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),be("div",{className:G(Ye.settingsGroupContent),children:[j("div",{className:Ye.row,children:j(fn,{configKey:"styleFancy",label:"Fancy Style",tooltip:be(Pt,{children:["增加卡片大小, 增大卡片间距",j("br",{}),"视频卡片会显示头像",j("br",{}),"切换设置快捷键: ",j(Bo,{color:"green",children:"shift+y"})]})})}),j("div",{className:Ye.row,style:{marginTop:5},children:j(fn,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab 按钮: 使用标准高度",tooltip:"默认紧凑高度"})}),j("div",{className:Ye.row,style:{marginTop:5},children:j(fn,{configKey:"styleUseStickyTabbarInPureRecommend",label:"纯推荐模式: stick tab bar",tooltip:be(Pt,{children:["默认勾选: Tab 栏会吸附在顶栏下方",j("br",{}),"取消选中: Tab 栏会随页面一起滚动"]})})})]})]})})},{label:"主题选择",key:"theme-select",children:j("div",{className:Ye.tabPane,children:be("div",{className:Ye.settingsGroup,children:[j("div",{className:Ye.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),j("div",{className:G(Ye.settingsGroupContent),children:j(Qfe,{})})]})})},{label:"Tab 设置",key:"video-source-tab-config",children:j(mme,{})},{label:"高级设置",key:"advance",children:j(lme,{})}]})})]})}var ome={name:"15c7vdh",styles:"position:relative;top:4px;cursor:pointer"},ame={name:"velg6b",styles:"margin-left:8px;margin-right:4px;font-size:14px;position:relative;top:4px"};function ime(){return be("div",{className:Ye.tabPane,children:[be("div",{className:Ye.settingsGroup,children:[be("div",{className:Ye.settingsGroupTitle,children:["access_key",j(nl,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:be(Pt,{children:["用于「推荐」Tab",j("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),j("div",{className:G(Ye.settingsGroupContent),children:j("div",{className:Ye.row,style:{marginTop:5},children:j(PI,{})})})]}),be("div",{className:Ye.settingsGroup,children:[j("div",{className:Ye.settingsGroupTitle,children:"开关"}),be("div",{className:G(Ye.settingsGroupContent,Ye.row),children:[j(fn,{configKey:"pureRecommend",label:"纯推荐模式",tooltip:be(Pt,{children:["首页只保留推荐",j("br",{}),"P.S 需要刷新网页~"]}),className:Ye.check,extraAction:bb}),j(fn,{configKey:"useNarrowMode",label:"居中模式",tooltip:be(Pt,{children:["居中两列",j("br",{}),"切换设置快捷键: ",j(Bo,{color:"green",children:"shift+c"})]}),className:Ye.check}),j(fn,{configKey:"showModalFeedOnLoad",label:"自动「查看更多」",tooltip:"打开首页时自动打开「查看更多」弹窗",className:Ye.check,extraAction:e=>{e&&pn.success("已开启自动「查看更多」: 下次打开首页时将自动打开「查看更多」弹窗");}}),j(fn,{configKey:"showModalFeedEntry",label:"「查看更多」按钮",tooltip:"是否展示「查看更多」按钮",className:Ye.check})]})]}),be("div",{className:Ye.settingsGroup,children:[j("div",{className:Ye.settingsGroupTitle,children:"视频链接"}),be("div",{className:G(Ye.settingsGroupContent,Ye.row),children:[j(fn,{configKey:"openVideoInPopupWhenClick",label:"默认「小窗打开」",tooltip:"点击视频链接默认行为改为「小窗打开」并自动网页全屏",className:Ye.check}),j(fn,{configKey:"openVideoAutoFullscreen",label:"打开视频后自动全屏",tooltip:"点击视频链接新窗口打开视频后「自动全屏」",className:Ye.check})]})]}),be("div",{className:Ye.settingsGroup,children:[j("div",{className:Ye.settingsGroupTitle,children:"预览"}),be("div",{className:G(Ye.settingsGroupContent,Ye.row),children:[j(fn,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Ye.check,tooltip:be(Pt,{children:["手动预览快捷键: ",j(Bo,{color:"green",children:"."})," or ",j(Bo,{color:"green",children:"p"}),j("br",{}),"切换设置快捷键: ",j(Bo,{color:"green",children:"shift+p"})]})}),j(fn,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Ye.check,tooltip:be(Pt,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",j("br",{}),"切换设置快捷键: ",j(Bo,{color:"green",children:"shift+m"})]})})]})]}),be("div",{className:Ye.settingsGroup,children:[be("div",{className:Ye.settingsGroupTitle,children:["帮助",be("span",{css:ame,children:["(当前版本: v","0.20.1",")"]}),j(Tt,{name:"Copy",size:16,onClick:()=>{const e="v0.20.1";GM.setClipboard(e),pn.success(`已复制当前版本: ${e}`);},css:ome})]}),j("div",{className:G(Ye.settingsGroupContent),children:j("div",{className:Ye.row,children:be(ec,{size:"small",children:[j(tn,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),j(tn,{href:"https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),j(tn,{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:"查看可用的快捷键"}),j(tn,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),j(tn,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})}function lme(){const{autoPreviewUpdateInterval:e,appApiDecice:t}=sn();return j("div",{className:Ye.tabPane,children:be("div",{className:Ye.settingsGroup,children:[j("div",{className:Ye.settingsGroupTitle,children:"设置项"}),j("div",{className:G(Ye.settingsGroupContent),children:j("div",{className:Ye.row,children:j(Mv,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:Jfe,children:j(tn,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),j("div",{className:Ye.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),be("div",{className:G(Ye.settingsGroupContent),children:[be("div",{className:Ye.row,children:[j(fn,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${mn}`}),be("a",{style:{marginLeft:15,display:"inline-flex",alignItems:"center"},href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[j(Tt,{name:"EfferentFour",size:16,style:{marginRight:4}}),"去草稿箱浏览"]})]}),j("div",{className:Ye.row,style:{marginTop:5},children:j(Mv,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:eme,children:j(tn,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),j("div",{className:Ye.settingsGroupTitle,style:{marginTop:15},children:"预览"}),be("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",j(gse,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:n=>vt.autoPreviewUpdateInterval=n,value:e}),be("span",{style:{width:"65px"},children:["(",e,"ms)"]})]}),j("div",{className:Ye.settingsGroupTitle,style:{marginTop:15},children:"App 推荐"}),be("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["App API 设备类型",j(nl,{iconProps:{name:"Tips",style:{marginLeft:5,marginRight:10}},tooltip:be(Pt,{children:["默认 ipad, 视频有 头像/日期 等信息",j("br",{}),"可选 android, 有图文类型的推荐"]})}),j(sv.Group,{optionType:"button",buttonStyle:"solid",size:"small",options:[Sa.ipad,Sa.android],value:t,onChange:n=>Un({appApiDecice:n.target.value})})]})]})})}var sme={name:"1hzl8wy",styles:"margin-left:20px!important"},cme={name:"ypff5m",styles:"min-width:100px"},ume={name:"1hzl8wy",styles:"margin-left:20px!important"},dme={name:"ypff5m",styles:"min-width:100px"},fme={name:"rsr636",styles:"display:grid;grid-template-columns:300px 1fr;column-gap:20px"};function mme(){return j("div",{className:Ye.tabPane,children:be("div",{css:fme,children:[be("div",{className:Ye.settingsGroup,children:[be("div",{className:Ye.settingsGroupTitle,children:["Tab 设置",j(nl,{iconProps:{name:"Tips",style:{marginLeft:5,marginRight:20}},tooltip:j(Pt,{children:"勾选显示, 拖动排序"})}),j(Mv,{title:"确定",description:"确定不是手欠点着玩? 再点一次确定吧~",onConfirm:()=>{Un({hidingTabKeys:[],customTabKeysOrder:[]});},children:j(tn,{children:"重置"})})]}),j(vme,{})]}),be("div",{className:Ye.settingsGroup,children:[j("div",{className:Ye.settingsGroupTitle,children:"更多设置"}),be("div",{className:G(Ye.settingsGroupContent),children:[be("div",{className:Ye.row,children:[j("span",{css:dme,children:"「稍后再看」"}),j(fn,{configKey:"shuffleForWatchLater",label:"随机顺序",tooltip:"不包括近期添加的「稍后再看」"}),j(fn,{configKey:"addSeparatorForWatchLater",label:"添加分割线",tooltip:"添加「近期」「更早」分割线",css:ume})]}),be("div",{className:Ye.row,children:[j("span",{css:cme,children:"「收藏」"}),j(fn,{configKey:"shuffleForFav",label:"随机顺序",tooltip:"随机收藏"}),j(fn,{configKey:"addSeparatorForFav",label:"添加分割线",tooltip:"顺序显示时, 按收藏夹添加分割线",css:sme})]})]})]})]})})}var gme={name:"b1rfuh",styles:"display:block;line-height:unset"};function vme(){const e=HY(),t=WY(),n=Kce(Gce(gb)),r=ft(o=>{const{over:a,active:i}=o;if(!(a!=null&&a.id)||a.id===i.id)return;const l=t.indexOf(i.id.toString()),s=t.indexOf(a.id.toString()),c=t[l],u=t.slice();u.splice(l,1),u.splice(s,0,c),Un({customTabKeysOrder:u});});return j("div",{children:j(Ys.Group,{css:gme,value:e,onChange:o=>{if(!o.length)return pn.error("至少选择一项!");Un({hidingTabKeys:pi.filter(a=>!o.includes(a))});},children:j(Yue,{sensors:n,collisionDetection:Zce,onDragEnd:r,modifiers:[ide,ade],children:j(fde,{items:t,strategy:ude,children:t.map(o=>j(yme,{id:o},o))})})})})}var hme={name:"82a6rk",styles:"flex:1"},pme={name:"fhwcsu",styles:"margin:0 5px 0 10px"},bme={name:"8irbms",styles:"display:inline-flex;align-items:center"};function yme({id:e}){const{attributes:t,listeners:n,setNodeRef:r,transform:o,transition:a,setActivatorNodeRef:i}=yde({id:e}),l={transform:ps.Transform.toString(o),transition:a},{label:s,desc:c,icon:u,iconProps:d}=Lu[e],m=zs();return be("div",{ref:r,style:l,...t,css:fr("display:flex;align-items:center;justify-content:flex-start;height:35px;padding-left:20px;border:1px solid ",m?"#444":"#ddd",";border-radius:6px;margin-top:6px;",""),children:[j(Ys,{value:e}),be(sp,{title:c,css:bme,children:[j(Tt,{name:u,...d,size:(d==null?void 0:d.size)||18,css:pme}),s]}),j("div",{css:hme}),j("div",{...n,ref:i,css:fr("cursor:grab;font-size:0;padding:5px;margin-right:10px;border-radius:5px;&:hover{background-color:",m?"#999":"#eee",";}",""),children:j(Tt,{name:"Drag",size:18})})]},e)}function Cme(){const e=f.useRef(null),[t,n]=f.useState(!1);return f.useEffect(()=>{function r(){if(!e.current)return;const o=Math.trunc(e.current.getBoundingClientRect().top*10)/10,a=parseInt(getComputedStyle(e.current).top),i=o<=a;n(i);}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]}const sP=f.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},a){r??(r=!0),f.useState(0);const i=f.useRef(null),l=ft(()=>{i.current&&(i.current.disabled||i.current.click());});f.useImperativeHandle(a,()=>({click:l}),[]),wn("r",()=>{gf()||r&&l();},{exactMatch:!0});const s=Zs(),{shuffleForFav:c,shuffleForWatchLater:u,shuffleForPopularWeekly:d}=sn(),m=s==="dynamic-feed"||s==="watchlater"&&!u||s==="fav"&&!c||s==="popular-general"||s==="popular-weekly"&&!d?"刷新":"换一换",[g,v]=framerMotion.useAnimate(),h=ft(p=>(v(g.current,{rotate:[0,360]},{duration:.5,type:"tween"}),e==null?void 0:e()));return be(tn,{disabled:o,className:t,style:n,css:fr`
${Ai}
&.ant-btn:not(:disabled):focus-visible {
outline: none;
}
`,ref:i,onClick:h,children:[j("svg",{ref:g,style:{width:"11px",height:"11px",marginRight:5},children:j("use",{href:"#widget-roll"})}),j("span",{css:Pp,children:m})]})}),Sme="_expand-btn_12c5j_1",$me="_expanded_12c5j_12",sS={expandBtn:Sme,expanded:$me},wme=f.forwardRef(function({children:t,initialOpen:n=!1},r){const[o,a]=TE(n);f.useImperativeHandle(r,()=>a,[a]);const i=j("button",{className:G("primary-btn",sS.expandBtn),onClick:a.toggle,children:j("svg",{className:G({[sS.expanded]:o}),children:j("use",{href:"#widget-arrow"})})});return be(Pt,{children:[i,o&&t]})}),xme="_modal-mask_14tde_1",Eme="_narrow-mode_14tde_1",Ome="_modal_14tde_1",Ime="_full-screen-mode_14tde_19",Pme="_modal-header_14tde_24",Mme="_modal-body_14tde_25",Rme="_btn-refresh_14tde_29",ii={modalMask:xme,narrowMode:Eme,modal:Ome,fullScreenMode:Ime,modalHeader:Pme,modalBody:Mme,btnRefresh:Rme};var _me={name:"1q4vxyr",styles:"margin-left:8px"};const Nme=f.memo(function({show:t,onHide:n}){const r=f.useRef(null),o=f.useRef(null),{useNarrowMode:a,modalFeedFullScreen:i}=sn(),l=!a&&i,s=zs(),c=f.useMemo(()=>({[ii.narrowMode]:a,[ii.fullScreenMode]:l}),[a,l]),u=f.useMemo(()=>{if(l)return {border:`5px solid ${Fr}`};if(s)return {border:`1px solid ${Fr}`}},[s,l]),d=ft((...b)=>{var y;return (y=o.current)==null?void 0:y.refresh(...b)}),[m,g]=f.useState(null),v=ft(()=>{r.current&&(r.current.scrollTop=0);}),[h,p]=f.useState(!1);return j(pf,{show:t,onHide:n,clsModalMask:G(c),clsModal:G(ii.modal,c),styleModal:{...u},children:be(qp.Provider,{value:d,children:[be("div",{className:G(Or.modalHeader,ii.modalHeader),children:[j(d2,{onRefresh:d}),m,j("div",{className:"space",style:{flex:1}}),a?null:l?j(cS,{}):j(wme,{initialOpen:!0,children:j(cS,{})}),j(sP,{css:_me,refreshing:h,onRefresh:d,className:ii.btnRefresh,refreshHotkeyEnabled:t}),j(bf,{onClick:n})]}),j("div",{className:G(Or.modalBody,ii.modalBody),ref:r,children:j(mI,{ref:o,shortcutEnabled:t,onScrollToTop:v,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:p,setExtraInfo:g})})]})})});var Tme={name:"1qkltea",styles:"margin-left:5px"};function cS(){const e=Tme;return be(Pt,{children:[j(fn,{configKey:"showModalFeedOnLoad",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",css:e,extraAction:t=>{t&&pn.success("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),j(fn,{configKey:"modalFeedFullScreen",label:"全屏",tooltip:"世界清净了~",css:e})]})}const Yo=mr({modalFeedVisible:vt.showModalFeedOnLoad,modalConfigVisible:!1}),Lme=function(){return vr(Yo)},kme=()=>{Yo.modalFeedVisible=!0;},Ame=()=>{Yo.modalFeedVisible=!1;},jme=()=>{Yo.modalConfigVisible=!0;},Dme=()=>{Yo.modalConfigVisible=!1;},zme=To.extend("RecHeader"),uS={btn:fr`
padding: 0;
width: 32px;
height: 32px;
border-radius: 50%;
${Ai}
`,icon:fr`
svg {
width: 14px;
height: 14px;
}
`},cP=f.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},a){const{accessKey:i,pureRecommend:l,styleFancy:s,showModalFeedEntry:c,styleUseStickyTabbarInPureRecommend:u}=sn(),{modalFeedVisible:d,modalConfigVisible:m}=vr(Yo);wn(["shift.comma"],y=>{gf()||(Yo.modalConfigVisible=!Yo.modalConfigVisible);},{exactMatch:!0});const[g,v]=Cme(),h=ft(()=>{var x;if(!l)return;const y=(x=g.current)==null?void 0:x.parentElement;if(!y)return;const C=y.getBoundingClientRect(),w=ap();if(C.top<w){const $=w-C.top+1;zme("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",C.top,w,$),document.documentElement.scrollTop-=$;}});f.useImperativeHandle(a,()=>({scroll:h}));const p=yE(),b=Ta();return j(Pt,{children:be(qp.Provider,{value:t,children:[be("div",{ref:g,className:"area-header",css:[fr`
margin-bottom: 0;
height: 50px;
`,l&&u&&fr`
position: sticky;
top: ${p-1}px; // 有缝隙, 故 -1 px
z-index: 1000;
`,l&&u&&v&&fr`
background-color: var(--${s?"bg2":"bg1"}_float);
box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
`,"",""],children:[be("div",{className:"left",children:[!l&&!b&&j("svg",{className:"icon",children:j("use",{href:"#channel-cinephile"})}),j(d2,{onRefresh:t}),r]}),j("div",{className:"right",children:be(ec,{size:"small",children:[o,!i&&j(PI,{style:{marginLeft:5}}),j(tn,{onClick:jme,css:uS.btn,children:j(Tt,{name:"Config",css:uS.icon})}),j(sP,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(m||d)}),c&&be(tn,{css:Ai,onClick:kme,children:[j("span",{css:Pp,children:"查看更多"}),j("svg",{css:fr`
width: 12px;
height: 12px;
margin-left: 2px;
`,children:j("use",{href:"#widget-arrow"})})]})]})})]}),j(Nme,{show:d,onHide:Ame}),j(rme,{show:m,onHide:Dme})]})})}),Fme={grid:fr`
/* card=360 col-gap=16 */
width: ${360*2+20}px;
margin: 0 auto;
`};function Bme(){const{useNarrowMode:e}=sn(),{modalFeedVisible:t,modalConfigVisible:n}=Lme(),r=f.useRef(null),o=f.useRef(null),a=ft((...d)=>{var m;return (m=o.current)==null?void 0:m.refresh(...d)}),i=ft(()=>{var d;return (d=r.current)==null?void 0:d.scroll()}),[l,s]=f.useState(!1),[c,u]=f.useState(null);return be("section",{"data-area":"推荐",children:[j(cP,{ref:r,refreshing:l,onRefresh:a,leftSlot:c}),j(mI,{ref:o,css:[e&&Fme.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:i,setRefreshing:s,setExtraInfo:u})]})}const Hme=To.extend("components:SectionRecommend");function Wme(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=Ta(),n=Zs(),{refreshing:r,items:o,refresh:a,error:i,swr:l}=DO({tab:n,debug:Hme,fetcher:kle,recreateService:!1});Xs(a);const s=!o.length||i||r&&!l;return be("section",{"data-area":"推荐",children:[j(cP,{refreshing:r,onRefresh:a}),j("div",{className:G(Xp,ale,t?ZO:YO),style:{marginBottom:t?30:0},children:s?e.map(c=>j(Ku,{},c)):o.map(c=>c.api===Nn.separator?null:j(Ku,{item:c},c.uniqId))})]})}const Vme=(location.hash||"").startsWith(`#/${mn}/`);function Gme(){return !Vme&&document.documentElement.classList.contains("bewly-design")}async function uP(){return cp("html.bewly-design",()=>{console.warn(`${mn}: unmount for using bewly-design`),Pa==null||Pa.unmount();},{timeout:5e3,warnOnTimeout:!1})}let Pa;async function Kme(){if(ma(".adblock-tips"),cp("html.gray",e=>e.classList.remove("gray")),Gme()){console.warn(`${mn}: quit for using bewly-design`);return}return vt.pureRecommend?qme():Ume()}async function Ume(){const t=Date.now()+1e4;let n;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const o=document.querySelector(".bili-layout > section.bili-grid");n=a=>o==null?void 0:o.insertAdjacentElement("afterend",a);break}if(Ta()&&document.querySelector(".bili-feed4-layout")){n=o=>{var a;return (a=document.querySelector(".bili-feed4-layout"))==null?void 0:a.insertAdjacentElement("afterbegin",o)};break}await Xn(200);}if(!n){console.error(`[${mn}]: init fail`);return}const r=document.createElement("section");r.classList.add(Zo),n(r),Pa=Ks(r),Pa.render(j(lp,{injectGlobalStyle:!0,renderAppComponent:!0,children:j(Wme,{})})),Ta()&&ma(".bili-feed4 .header-channel"),uP();}async function qme(){var o;Xh&&await Xn(500);let e=!1;Ta()?(ma("#i_cecream .bili-feed4-layout"),ma(".bili-feed4 .header-channel"),ma(".palette-button-wrap"),e=!0):((o=document.querySelector(".bili-layout"))==null||o.remove(),ma(".bili-footer"),ma(".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 t=a=>document.body.appendChild(a),n=document.createElement("div");n.classList.add(Ta()?"bili-feed4-layout":"bili-layout","pure-recommend"),t(n);const r=document.createElement("section");r.classList.add(Zo),n.appendChild(r),Pa=Ks(r),Pa.render(be(lp,{injectGlobalStyle:!0,renderAppComponent:!0,children:[j(Bme,{}),e&&j(Da.BackTop,{style:{insetInlineEnd:"var(--back-top-right, 24px)"}})]})),uP();}const Xme=To.extend("main:video-play-page");function Yme(){Zme();}async function Zme(){const e=new URL(location.href).searchParams.get(wv);if(!(e===Ho.WebFullscreen||e===Ho.Fullscreen))return;let n;e===Ho.WebFullscreen&&(n=()=>{var a;return (a=document.querySelector('[role="button"][aria-label="网页全屏"]'))==null?void 0:a.click()}),e===Ho.Fullscreen&&(n=()=>{var a;return (a=document.querySelector('[role="button"][aria-label="全屏"]'))==null?void 0:a.click()});const r=()=>{var a;return ((a=document.querySelector("#bilibili-player .bpx-player-container"))==null?void 0:a.dataset.screen)||Ho.Normal},o=Date.now()+qi("30s");for(;r()!==e&&Date.now()<=o;)n==null||n(),await Xn(100);Xme("handleFullscreen to %s complete",e);}oa.extend(dz);(function(){if(vd)return Kme();if(lj)return Yme()})();
})(axios, axiosGmxhrAdapter, React, ReactDOM, ResizeObserver, UAParser, Motion);