// ==UserScript==
// @name bilibili-app-recommend
// @namespace https://magicdawn.fun
// @version 0.17.0
// @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.mcbbs.net/template/mcbbs/image/special_photo_bg.png
// @match https://www.bilibili.com/index.html
// @match https://www.bilibili.com/?*
// @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?*
// @match https://www.bilibili.com/index.html?*
// @require https://unpkg.com/[email protected]/dist/axios.min.js
// @require https://unpkg.com/[email protected]/dist/axiosGmxhrAdapter.min.js
// @require https://unpkg.com/[email protected]/umd/react.production.min.js
// @require https://unpkg.com/[email protected]/umd/react-dom.production.min.js
// @require https://unpkg.com/[email protected]/dist/ua-parser.min.js
// @connect app.bilibili.com
// @connect passport.bilibili.com
// @connect link.acg.tv
// @connect www.mcbbs.net
// @grant GM.deleteValue
// @grant GM.getValue
// @grant GM.setClipboard
// @grant GM.setValue
// @grant GM.xmlHttpRequest
// @grant unsafeWindow
// ==/UserScript==
(t=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.textContent=t,document.head.append(e)})(" ._toast-container_185m9_1{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:90000;padding:12px 24px;font-size:14px;min-width:200px;width:max-content;max-width:450px;background-color:#ffb243;color:#fff;border-radius:6px;white-space:pre-wrap}._toast-container_185m9_1._single-line_185m9_17{text-align:center}.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)}}.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}._modal-mask_1j5wc_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_1j5wc_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_1j5wc_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1j5wc_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1j5wc_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1j5wc_42{margin-left:10px}._btn-close_1j5wc_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1j5wc_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._modal_1rloz_1{width:500px}._title-desc_1rloz_4{margin-left:5px;font-size:40%}._reason-list_1rloz_8{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_1rloz_8{color:inherit;width:48%;text-align:center;line-height:20px;position:relative;border:1px solid #eee;padding-top:5px;padding-bottom:5px;margin-top:5px;margin-bottom:5px}body.dark ._reason_1rloz_8{border:1px solid #333}._reason_1rloz_8._active_1rloz_29{border-color:#f69;border-radius:4px}._reason-no_1rloz_33{position:absolute;left:6px;width:20px;height:20px;border-radius:50%;top:6px;display:flex;align-items:center;justify-content:center;background-color:#6a5acd;background-color:#f69;color:#fff}._tips-container_1rloz_47{margin-top:20px}._tips_1rloz_47{display:flex;align-items:center}._config-icon_1xtyf_1{line-height:1;margin-right:5px;font-size:0}._settings-group_1xtyf_6{margin-bottom:10px}._settings-group_1xtyf_6 ._settings-group-title_1xtyf_9{font-size:2em;display:flex;align-items:center}._settings-group_1xtyf_6 ._settings-group-sub-title_1xtyf_14{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20{color:default}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20 button:first-child{margin-left:0}._row_1xtyf_26{display:flex;align-items:center;flex-wrap:wrap}._row_1xtyf_26 .primary-btn:first-child{margin-left:0}._check_1xtyf_34{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_1xtyf_39.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_1xtyf_42{min-height:min(360px,calc(90vh - 121px));max-height:calc(90vh - 121px);overflow-y:scroll}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._modal-mask_7bwzz_1._narrow-mode_7bwzz_1{background-color:#000000e6}._modal_7bwzz_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}._modal_7bwzz_1._narrow-mode_7bwzz_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_7bwzz_1._narrow-mode_7bwzz_1{border:none}._modal-header_7bwzz_18,._modal-body_7bwzz_19{padding-right:15px}body.dark ._btn-refresh_7bwzz_22{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._bili-video-card_117rm_1{position:relative}._preview-card-wrapper_117rm_4{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_117rm_4 ._preview-card-inner_117rm_17{width:100%;height:100%}._watch-later_117rm_21{z-index:5}._badge_117rm_24{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_117rm_33{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_117rm_48{color:default}._btn-dislike_117rm_51{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;left:8px;width:28px;height:28px;border-radius:6px;cursor:pointer;background-color:#212121cc;z-index:9;transform:translateZ(0)}._btn-dislike_117rm_51 ._btn-dislike-icon_117rm_66{pointer-events:none;-webkit-user-select:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_117rm_51 ._btn-dislike-tip_117rm_73{pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;bottom:-6px;left:-5px;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._disliked-wrapper_117rm_88{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_117rm_88{border:1px solid #333}._disliked-wrapper_117rm_88 ._dislike-content-cover_117rm_102{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_117rm_88 ._dislike-content-cover_117rm_102 ._dislike-content-cover-inner_117rm_108{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_117rm_88 ._dislike-content-cover_117rm_102 ._dislike-content-cover-inner_117rm_108 ._dislike-icon_117rm_119{margin-bottom:5px}._disliked-wrapper_117rm_88 ._dislike-content-cover_117rm_102 ._dislike-content-cover-inner_117rm_108 ._dislike-reason_117rm_122{font-size:20px;text-align:center}._disliked-wrapper_117rm_88 ._dislike-content-cover_117rm_102 ._dislike-content-cover-inner_117rm_108 ._dislike-desc_117rm_126{font-size:16px;text-align:center}._disliked-wrapper_117rm_88 ._dislike-content-action_117rm_130{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_117rm_88 ._dislike-content-action_117rm_130{border-top:1px solid #333}._disliked-wrapper_117rm_88 ._dislike-content-action_117rm_130 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_117rm_147 .bili-video-card__skeleton--cover,._skeleton-active_117rm_147 .bili-video-card__skeleton--text,._skeleton-active_117rm_147 .bili-video-card__skeleton--light{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation-name:_ant-skeleton-loading_117rm_1;animation-duration:1.4s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_117rm_1{0%{background-position:100% 50%}to{background-position:0 50%}}._video-grid_1qaxg_9{--video-card-border-radius: 6px;display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid-new-homepage_1qaxg_17{grid-template-columns:repeat(4,1fr)}._video-grid-new-homepage_1qaxg_17._limit-two-lines_1qaxg_20>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid-new-homepage_1qaxg_17{grid-template-columns:repeat(5,1fr)}._video-grid-new-homepage_1qaxg_17._limit-two-lines_1qaxg_20>*:nth-of-type(1n + 11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid-new-homepage_1qaxg_17{grid-template-columns:repeat(6,1fr)}._video-grid-new-homepage_1qaxg_17._limit-two-lines_1qaxg_20>*:nth-of-type(1n + 13){display:none!important}}@media (min-width: 2200px){._video-grid-new-homepage_1qaxg_17{grid-template-columns:repeat(7,1fr)}._video-grid-new-homepage_1qaxg_17._limit-two-lines_1qaxg_20>*:nth-of-type(1n + 15){display:none!important}}._video-grid-internal-testing_1qaxg_52{grid-gap:20px 20px}@media (max-width: 1399.9px){._video-grid-internal-testing_1qaxg_52{grid-template-columns:repeat(4,1fr)}._video-grid-internal-testing_1qaxg_52._limit-one-line_1qaxg_59>*:nth-of-type(1n + 5){display:none!important}._video-grid-internal-testing_1qaxg_52._limit-two-lines_1qaxg_20>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1400px){._video-grid-internal-testing_1qaxg_52{grid-template-columns:repeat(5,1fr)}._video-grid-internal-testing_1qaxg_52._limit-one-line_1qaxg_59>*:nth-of-type(1n + 6){display:none!important}._video-grid-internal-testing_1qaxg_52._limit-two-lines_1qaxg_20>*:nth-of-type(1n + 11){display:none!important}}._video-grid-container_1qaxg_80{container-name:video-grid-container;container-type:inline-size}._video-grid-youtube-like_1qaxg_84{--video-card-border-radius: 12px;grid-gap:40px 16px;grid-template-columns:repeat(5,1fr)}@container video-grid-container (width >= 616px){._video-grid-youtube-like_1qaxg_84{grid-template-columns:repeat(2,1fr)}}@container video-grid-container (width >= 932px){._video-grid-youtube-like_1qaxg_84{grid-template-columns:repeat(3,1fr)}}@container video-grid-container (width >= 1248px){._video-grid-youtube-like_1qaxg_84{grid-template-columns:repeat(4,1fr)}}@container video-grid-container (width >= 1564px){._video-grid-youtube-like_1qaxg_84{grid-template-columns:repeat(5,1fr)}}._narrow-mode_1qaxg_112{grid-template-columns:repeat(2,1fr)!important} ");
(async function (u, Jd, Qv, i1, a1) {
'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 u__namespace = /*#__PURE__*/_interopNamespaceDefault(u);
const Qv__namespace = /*#__PURE__*/_interopNamespaceDefault(Qv);
var qS=Object.defineProperty;var ZS=(e,t,n)=>t in e?qS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var vt=(e,t,n)=>(ZS(e,typeof t!="symbol"?t+"":t,n),n);var ep=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l1(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}var tp={exports:{}},Ls={};/**
* @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 s1=u,c1=Symbol.for("react.element"),u1=Symbol.for("react.fragment"),d1=Object.prototype.hasOwnProperty,f1=s1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m1={key:!0,ref:!0,__self:!0,__source:!0};function np(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)d1.call(t,r)&&!m1.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:c1,type:e,key:i,ref:a,props:o,_owner:f1.current}}Ls.Fragment=u1;Ls.jsx=np;Ls.jsxs=np;tp.exports=Ls;var ba=tp.exports;function h1(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 g1(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 v1=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o);},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag);},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(g1(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=h1(o);try{i.insertRule(r,i.cssRules.length);}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++;},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0;},e}(),dn="-ms-",Zl="-moz-",$t="-webkit-",rp="comm",ef="rule",tf="decl",p1="@import",op="@keyframes",b1="@layer",y1=Math.abs,As=String.fromCharCode,C1=Object.assign;function S1(e,t){return an(e,0)^45?(((t<<2^an(e,0))<<2^an(e,1))<<2^an(e,2))<<2^an(e,3):0}function ip(e){return e.trim()}function w1(e,t){return (e=t.exec(e))?e[0]:e}function xt(e,t,n){return e.replace(t,n)}function Du(e,t){return e.indexOf(t)}function an(e,t){return e.charCodeAt(t)|0}function ya(e,t,n){return e.slice(t,n)}function sr(e){return e.length}function nf(e){return e.length}function ml(e,t){return t.push(e),e}function $1(e,t){return e.map(t).join("")}var Ds=1,mi=1,ap=0,xn=0,tn=0,Mi="";function zs(e,t,n,r,o,i,a){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:Ds,column:mi,length:a,return:""}}function Wi(e,t){return C1(zs("",null,null,"",null,null,0),e,{length:-e.length},t)}function x1(){return tn}function E1(){return tn=xn>0?an(Mi,--xn):0,mi--,tn===10&&(mi=1,Ds--),tn}function Rn(){return tn=xn<ap?an(Mi,xn++):0,mi++,tn===10&&(mi=1,Ds++),tn}function dr(){return an(Mi,xn)}function Ll(){return xn}function za(e,t){return ya(Mi,e,t)}function Ca(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 lp(e){return Ds=mi=1,ap=sr(Mi=e),xn=0,[]}function sp(e){return Mi="",e}function Al(e){return ip(za(xn-1,zu(e===91?e+2:e===40?e+1:e)))}function I1(e){for(;(tn=dr())&&tn<33;)Rn();return Ca(e)>2||Ca(tn)>3?"":" "}function O1(e,t){for(;--t&&Rn()&&!(tn<48||tn>102||tn>57&&tn<65||tn>70&&tn<97););return za(e,Ll()+(t<6&&dr()==32&&Rn()==32))}function zu(e){for(;Rn();)switch(tn){case e:return xn;case 34:case 39:e!==34&&e!==39&&zu(tn);break;case 40:e===41&&zu(e);break;case 92:Rn();break}return xn}function P1(e,t){for(;Rn()&&e+tn!==47+10;)if(e+tn===42+42&&dr()===47)break;return "/*"+za(t,xn-1)+"*"+As(e===47?e:Rn())}function M1(e){for(;!Ca(dr());)Rn();return za(e,xn)}function cp(e){return sp(Dl("",null,null,null,[""],e=lp(e),0,[0],e))}function Dl(e,t,n,r,o,i,a,l,s){for(var c=0,d=0,f=a,m=0,h=0,g=0,v=1,p=1,y=1,b=0,O="",P=o,w=i,$=r,S=O;p;)switch(g=b,b=Rn()){case 40:if(g!=108&&an(S,f-1)==58){Du(S+=xt(Al(b),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:S+=Al(b);break;case 9:case 10:case 13:case 32:S+=I1(g);break;case 92:S+=O1(Ll()-1,7);continue;case 47:switch(dr()){case 42:case 47:ml(_1(P1(Rn(),Ll()),t,n),s);break;default:S+="/";}break;case 123*v:l[c++]=sr(S)*y;case 125*v:case 59:case 0:switch(b){case 0:case 125:p=0;case 59+d:y==-1&&(S=xt(S,/\f/g,"")),h>0&&sr(S)-f&&ml(h>32?nh(S+";",r,n,f-1):nh(xt(S," ","")+";",r,n,f-2),s);break;case 59:S+=";";default:if(ml($=th(S,t,n,c,d,o,l,O,P=[],w=[],f),i),b===123)if(d===0)Dl(S,t,$,$,P,i,f,l,w);else switch(m===99&&an(S,3)===110?100:m){case 100:case 108:case 109:case 115:Dl(e,$,$,r&&ml(th(e,$,$,0,0,o,l,O,o,P=[],f),w),o,w,f,l,r?P:w);break;default:Dl(S,$,$,$,[""],w,0,l,w);}}c=d=h=0,v=y=1,O=S="",f=a;break;case 58:f=1+sr(S),h=g;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&E1()==125)continue}switch(S+=As(b),b*v){case 38:y=d>0?1:(S+="\f",-1);break;case 44:l[c++]=(sr(S)-1)*y,y=1;break;case 64:dr()===45&&(S+=Al(Rn())),m=dr(),d=f=sr(O=S+=M1(Ll())),b++;break;case 45:g===45&&sr(S)==2&&(v=0);}}return i}function th(e,t,n,r,o,i,a,l,s,c,d){for(var f=o-1,m=o===0?i:[""],h=nf(m),g=0,v=0,p=0;g<r;++g)for(var y=0,b=ya(e,f+1,f=y1(v=a[g])),O=e;y<h;++y)(O=ip(v>0?m[y]+" "+b:xt(b,/&\f/g,m[y])))&&(s[p++]=O);return zs(e,t,n,o===0?ef:l,s,c,d)}function _1(e,t,n){return zs(e,t,n,rp,As(x1()),ya(e,2,-2),0)}function nh(e,t,n,r){return zs(e,t,n,tf,ya(e,0,r),ya(e,r+1,-1),r)}function yo(e,t){for(var n="",r=nf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function up(e,t,n,r){switch(e.type){case b1:if(e.children.length)break;case p1:case tf:return e.return=e.return||e.value;case rp:return "";case op:return e.return=e.value+"{"+yo(e.children,r)+"}";case ef:e.value=e.props.join(",");}return sr(n=yo(e.children,r))?e.return=e.value+"{"+n+"}":""}function R1(e){var t=nf(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function T1(e){return function(t){t.root||(t=t.return)&&e(t);}}function N1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var k1=function(t,n,r){for(var o=0,i=0;o=i,i=dr(),o===38&&i===12&&(n[r]=1),!Ca(i);)Rn();return za(t,xn)},L1=function(t,n){var r=-1,o=44;do switch(Ca(o)){case 0:o===38&&dr()===12&&(n[r]=1),t[r]+=k1(xn-1,n,r);break;case 2:t[r]+=Al(o);break;case 4:if(o===44){t[++r]=dr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=As(o);}while(o=Rn());return t},A1=function(t,n){return sp(L1(lp(t),n))},rh=new WeakMap,D1=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&&!rh.get(r))&&!o){rh.set(t,!0);for(var i=[],a=A1(n,i),l=r.props,s=0,c=0;s<a.length;s++)for(var d=0;d<l.length;d++,c++)t.props[c]=i[s]?a[s].replace(/&\f/g,l[d]):l[d]+" "+a[s];}}},z1=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function dp(e,t){switch(S1(e,t)){case 5103:return $t+"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 $t+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $t+e+Zl+e+dn+e+e;case 6828:case 4268:return $t+e+dn+e+e;case 6165:return $t+e+dn+"flex-"+e+e;case 5187:return $t+e+xt(e,/(\w+).+(:[^]+)/,$t+"box-$1$2"+dn+"flex-$1$2")+e;case 5443:return $t+e+dn+"flex-item-"+xt(e,/flex-|-self/,"")+e;case 4675:return $t+e+dn+"flex-line-pack"+xt(e,/align-content|flex-|-self/,"")+e;case 5548:return $t+e+dn+xt(e,"shrink","negative")+e;case 5292:return $t+e+dn+xt(e,"basis","preferred-size")+e;case 6060:return $t+"box-"+xt(e,"-grow","")+$t+e+dn+xt(e,"grow","positive")+e;case 4554:return $t+xt(e,/([^-])(transform)/g,"$1"+$t+"$2")+e;case 6187:return xt(xt(xt(e,/(zoom-|grab)/,$t+"$1"),/(image-set)/,$t+"$1"),e,"")+e;case 5495:case 3959:return xt(e,/(image-set\([^]*)/,$t+"$1$`$1");case 4968:return xt(xt(e,/(.+:)(flex-)?(.*)/,$t+"box-pack:$3"+dn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$t+e+e;case 4095:case 3583:case 4068:case 2532:return xt(e,/(.+)-inline(.+)/,$t+"$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(sr(e)-1-t>6)switch(an(e,t+1)){case 109:if(an(e,t+4)!==45)break;case 102:return xt(e,/(.+:)(.+)-([^]+)/,"$1"+$t+"$2-$3$1"+Zl+(an(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Du(e,"stretch")?dp(xt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(an(e,t+1)!==115)break;case 6444:switch(an(e,sr(e)-3-(~Du(e,"!important")&&10))){case 107:return xt(e,":",":"+$t)+e;case 101:return xt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$t+(an(e,14)===45?"inline-":"")+"box$3$1"+$t+"$2$3$1"+dn+"$2box$3")+e}break;case 5936:switch(an(e,t+11)){case 114:return $t+e+dn+xt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $t+e+dn+xt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $t+e+dn+xt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $t+e+dn+e+e}return e}var j1=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case tf:t.return=dp(t.value,t.length);break;case op:return yo([Wi(t,{value:xt(t.value,"@","@"+$t)})],o);case ef:if(t.length)return $1(t.props,function(i){switch(w1(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yo([Wi(t,{props:[xt(i,/:(read-\w+)/,":"+Zl+"$1")]})],o);case"::placeholder":return yo([Wi(t,{props:[xt(i,/:(plac\w+)/,":"+$t+"input-$1")]}),Wi(t,{props:[xt(i,/:(plac\w+)/,":"+Zl+"$1")]}),Wi(t,{props:[xt(i,/:(plac\w+)/,dn+"input-$1")]})],o)}return ""})}},B1=[j1],fp=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(v){var p=v.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""));});}var o=t.stylisPlugins||B1,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var p=v.getAttribute("data-emotion").split(" "),y=1;y<p.length;y++)i[p[y]]=!0;l.push(v);});var s,c=[D1,z1];{var d,f=[up,T1(function(v){d.insert(v);})],m=R1(c.concat(o,f)),h=function(p){return yo(cp(p),m)};s=function(p,y,b,O){d=b,h(p?p+"{"+y.styles+"}":y.styles),O&&(g.inserted[y.name]=!0);};}var g={key:n,sheet:new v1({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:s};return g.sheet.hydrate(l),g},mp={exports:{}},Tt={};/** @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 on=typeof Symbol=="function"&&Symbol.for,rf=on?Symbol.for("react.element"):60103,of=on?Symbol.for("react.portal"):60106,js=on?Symbol.for("react.fragment"):60107,Bs=on?Symbol.for("react.strict_mode"):60108,Hs=on?Symbol.for("react.profiler"):60114,Fs=on?Symbol.for("react.provider"):60109,Ws=on?Symbol.for("react.context"):60110,af=on?Symbol.for("react.async_mode"):60111,Vs=on?Symbol.for("react.concurrent_mode"):60111,Ks=on?Symbol.for("react.forward_ref"):60112,Gs=on?Symbol.for("react.suspense"):60113,H1=on?Symbol.for("react.suspense_list"):60120,Us=on?Symbol.for("react.memo"):60115,Xs=on?Symbol.for("react.lazy"):60116,F1=on?Symbol.for("react.block"):60121,W1=on?Symbol.for("react.fundamental"):60117,V1=on?Symbol.for("react.responder"):60118,K1=on?Symbol.for("react.scope"):60119;function Nn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rf:switch(e=e.type,e){case af:case Vs:case js:case Hs:case Bs:case Gs:return e;default:switch(e=e&&e.$$typeof,e){case Ws:case Ks:case Xs:case Us:case Fs:return e;default:return t}}case of:return t}}}function hp(e){return Nn(e)===Vs}Tt.AsyncMode=af;Tt.ConcurrentMode=Vs;Tt.ContextConsumer=Ws;Tt.ContextProvider=Fs;Tt.Element=rf;Tt.ForwardRef=Ks;Tt.Fragment=js;Tt.Lazy=Xs;Tt.Memo=Us;Tt.Portal=of;Tt.Profiler=Hs;Tt.StrictMode=Bs;Tt.Suspense=Gs;Tt.isAsyncMode=function(e){return hp(e)||Nn(e)===af};Tt.isConcurrentMode=hp;Tt.isContextConsumer=function(e){return Nn(e)===Ws};Tt.isContextProvider=function(e){return Nn(e)===Fs};Tt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rf};Tt.isForwardRef=function(e){return Nn(e)===Ks};Tt.isFragment=function(e){return Nn(e)===js};Tt.isLazy=function(e){return Nn(e)===Xs};Tt.isMemo=function(e){return Nn(e)===Us};Tt.isPortal=function(e){return Nn(e)===of};Tt.isProfiler=function(e){return Nn(e)===Hs};Tt.isStrictMode=function(e){return Nn(e)===Bs};Tt.isSuspense=function(e){return Nn(e)===Gs};Tt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===js||e===Vs||e===Hs||e===Bs||e===Gs||e===H1||typeof e=="object"&&e!==null&&(e.$$typeof===Xs||e.$$typeof===Us||e.$$typeof===Fs||e.$$typeof===Ws||e.$$typeof===Ks||e.$$typeof===W1||e.$$typeof===V1||e.$$typeof===K1||e.$$typeof===F1)};Tt.typeOf=Nn;mp.exports=Tt;var lf=mp.exports,gp=lf,G1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},U1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vp={};vp[gp.ForwardRef]=G1;vp[gp.Memo]=U1;var X1=!0;function sf(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var pp=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||X1===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},cf=function(t,n,r){pp(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Y1(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 q1={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},Z1=/[A-Z]|^ms/g,Q1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bp=function(t){return t.charCodeAt(1)===45},oh=function(t){return t!=null&&typeof t!="boolean"},Hc=N1(function(e){return bp(e)?e:e.replace(Z1,"-$&").toLowerCase()}),ih=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Q1,function(r,o,i){return cr={name:o,styles:i,next:cr},o})}return q1[t]!==1&&!bp(t)&&typeof n=="number"&&n!==0?n+"px":n};function Sa(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 cr={name:n.name,styles:n.styles,next:cr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)cr={name:r.name,styles:r.styles,next:cr},r=r.next;var o=n.styles+";";return o}return J1(e,t,n)}case"function":{if(e!==void 0){var i=cr,a=n(e);return cr=i,Sa(e,t,a)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function J1(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Sa(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":oh(a)&&(r+=Hc(i)+":"+ih(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)oh(a[l])&&(r+=Hc(i)+":"+ih(i,a[l])+";");else {var s=Sa(e,t,a);switch(i){case"animation":case"animationName":{r+=Hc(i)+":"+s+";";break}default:r+=i+"{"+s+"}";}}}return r}var ah=/label:\s*([^\s;\n{]+)\s*(;|$)/g,cr,ai=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";cr=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=Sa(r,n,a)):i+=a[0];for(var l=1;l<t.length;l++)i+=Sa(r,n,t[l]),o&&(i+=a[l]);ah.lastIndex=0;for(var s="",c;(c=ah.exec(i))!==null;)s+="-"+c[1];var d=Y1(i)+s;return {name:d,styles:i,next:cr}},ew=function(t){return t()},yp=u__namespace["useInsertionEffect"]?u__namespace["useInsertionEffect"]:!1,tw=yp||ew,lh=yp||u__namespace.useLayoutEffect,Ys={}.hasOwnProperty,Cp=u__namespace.createContext(typeof HTMLElement<"u"?fp({key:"css"}):null);Cp.Provider;var Sp=function(t){return u.forwardRef(function(n,r){var o=u.useContext(Cp);return t(n,o,r)})},wp=u__namespace.createContext({}),ju="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$p=function(t,n){var r={};for(var o in n)Ys.call(n,o)&&(r[o]=n[o]);return r[ju]=t,r},nw=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return pp(n,r,o),tw(function(){return cf(n,r,o)}),null},rw=Sp(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[ju],i=[r],a="";typeof e.className=="string"?a=sf(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=ai(i,void 0,u__namespace.useContext(wp));a+=t.key+"-"+l.name;var s={};for(var c in e)Ys.call(e,c)&&c!=="css"&&c!==ju&&(s[c]=e[c]);return s.ref=n,s.className=a,u__namespace.createElement(u__namespace.Fragment,null,u__namespace.createElement(nw,{cache:t,serialized:l,isStringTag:typeof o=="string"}),u__namespace.createElement(o,s))}),xp=rw,Et=ba.Fragment;function D(e,t,n){return Ys.call(t,"css")?ba.jsx(xp,$p(e,t),n):ba.jsx(e,t,n)}function pe(e,t,n){return Ys.call(t,"css")?ba.jsxs(xp,$p(e,t),n):ba.jsxs(e,t,n)}function uf(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}function ow(){this.__data__=[],this.size=0;}function df(e,t){return e===t||e!==e&&t!==t}function qs(e,t){for(var n=e.length;n--;)if(df(e[n][0],t))return n;return -1}var iw=Array.prototype,aw=iw.splice;function lw(e){var t=this.__data__,n=qs(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():aw.call(t,n,1),--this.size,!0}function sw(e){var t=this.__data__,n=qs(t,e);return n<0?void 0:t[n][1]}function cw(e){return qs(this.__data__,e)>-1}function uw(e,t){var n=this.__data__,r=qs(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Dr(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]);}}Dr.prototype.clear=ow;Dr.prototype.delete=lw;Dr.prototype.get=sw;Dr.prototype.has=cw;Dr.prototype.set=uw;function dw(){this.__data__=new Dr,this.size=0;}function fw(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function mw(e){return this.__data__.get(e)}function hw(e){return this.__data__.has(e)}var gw=typeof global=="object"&&global&&global.Object===Object&&global;const Ep=gw;var vw=typeof self=="object"&&self&&self.Object===Object&&self,pw=Ep||vw||Function("return this")();const tr=pw;var bw=tr.Symbol;const Hn=bw;var Ip=Object.prototype,yw=Ip.hasOwnProperty,Cw=Ip.toString,Vi=Hn?Hn.toStringTag:void 0;function Sw(e){var t=yw.call(e,Vi),n=e[Vi];try{e[Vi]=void 0;var r=!0;}catch{}var o=Cw.call(e);return r&&(t?e[Vi]=n:delete e[Vi]),o}var ww=Object.prototype,$w=ww.toString;function xw(e){return $w.call(e)}var Ew="[object Null]",Iw="[object Undefined]",sh=Hn?Hn.toStringTag:void 0;function Mo(e){return e==null?e===void 0?Iw:Ew:sh&&sh in Object(e)?Sw(e):xw(e)}function Fn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ow="[object AsyncFunction]",Pw="[object Function]",Mw="[object GeneratorFunction]",_w="[object Proxy]";function Op(e){if(!Fn(e))return !1;var t=Mo(e);return t==Pw||t==Mw||t==Ow||t==_w}var Rw=tr["__core-js_shared__"];const Fc=Rw;var ch=function(){var e=/[^.]+$/.exec(Fc&&Fc.keys&&Fc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Tw(e){return !!ch&&ch in e}var Nw=Function.prototype,kw=Nw.toString;function _o(e){if(e!=null){try{return kw.call(e)}catch{}try{return e+""}catch{}}return ""}var Lw=/[\\^$.*+?()[\]{}|]/g,Aw=/^\[object .+?Constructor\]$/,Dw=Function.prototype,zw=Object.prototype,jw=Dw.toString,Bw=zw.hasOwnProperty,Hw=RegExp("^"+jw.call(Bw).replace(Lw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Fw(e){if(!Fn(e)||Tw(e))return !1;var t=Op(e)?Hw:Aw;return t.test(_o(e))}function Ww(e,t){return e==null?void 0:e[t]}function Ro(e,t){var n=Ww(e,t);return Fw(n)?n:void 0}var Vw=Ro(tr,"Map");const wa=Vw;var Kw=Ro(Object,"create");const $a=Kw;function Gw(){this.__data__=$a?$a(null):{},this.size=0;}function Uw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xw="__lodash_hash_undefined__",Yw=Object.prototype,qw=Yw.hasOwnProperty;function Zw(e){var t=this.__data__;if($a){var n=t[e];return n===Xw?void 0:n}return qw.call(t,e)?t[e]:void 0}var Qw=Object.prototype,Jw=Qw.hasOwnProperty;function e$(e){var t=this.__data__;return $a?t[e]!==void 0:Jw.call(t,e)}var t$="__lodash_hash_undefined__";function n$(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$a&&t===void 0?t$:t,this}function $o(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]);}}$o.prototype.clear=Gw;$o.prototype.delete=Uw;$o.prototype.get=Zw;$o.prototype.has=e$;$o.prototype.set=n$;function r$(){this.size=0,this.__data__={hash:new $o,map:new(wa||Dr),string:new $o};}function o$(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Zs(e,t){var n=e.__data__;return o$(t)?n[typeof t=="string"?"string":"hash"]:n.map}function i$(e){var t=Zs(this,e).delete(e);return this.size-=t?1:0,t}function a$(e){return Zs(this,e).get(e)}function l$(e){return Zs(this,e).has(e)}function s$(e,t){var n=Zs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function zr(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]);}}zr.prototype.clear=r$;zr.prototype.delete=i$;zr.prototype.get=a$;zr.prototype.has=l$;zr.prototype.set=s$;var c$=200;function u$(e,t){var n=this.__data__;if(n instanceof Dr){var r=n.__data__;if(!wa||r.length<c$-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zr(r);}return n.set(e,t),this.size=n.size,this}function fr(e){var t=this.__data__=new Dr(e);this.size=t.size;}fr.prototype.clear=dw;fr.prototype.delete=fw;fr.prototype.get=mw;fr.prototype.has=hw;fr.prototype.set=u$;function d$(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var f$=function(){try{var e=Ro(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ql=f$;function Pp(e,t,n){t=="__proto__"&&Ql?Ql(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}var m$=Object.prototype,h$=m$.hasOwnProperty;function ff(e,t,n){var r=e[t];(!(h$.call(e,t)&&df(r,n))||n===void 0&&!(t in e))&&Pp(e,t,n);}function ja(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=r?r(n[l],e[l],l,n,e):void 0;s===void 0&&(s=e[l]),o?Pp(n,l,s):ff(n,l,s);}return n}function g$(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function _r(e){return e!=null&&typeof e=="object"}var v$="[object Arguments]";function uh(e){return _r(e)&&Mo(e)==v$}var Mp=Object.prototype,p$=Mp.hasOwnProperty,b$=Mp.propertyIsEnumerable,y$=uh(function(){return arguments}())?uh:function(e){return _r(e)&&p$.call(e,"callee")&&!b$.call(e,"callee")};const mf=y$;var C$=Array.isArray;const Wn=C$;function S$(){return !1}var _p=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dh=_p&&typeof module=="object"&&module&&!module.nodeType&&module,w$=dh&&dh.exports===_p,fh=w$?tr.Buffer:void 0,$$=fh?fh.isBuffer:void 0,x$=$$||S$;const Jl=x$;var E$=9007199254740991,I$=/^(?:0|[1-9]\d*)$/;function hf(e,t){var n=typeof e;return t=t??E$,!!t&&(n=="number"||n!="symbol"&&I$.test(e))&&e>-1&&e%1==0&&e<t}var O$=9007199254740991;function gf(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=O$}var P$="[object Arguments]",M$="[object Array]",_$="[object Boolean]",R$="[object Date]",T$="[object Error]",N$="[object Function]",k$="[object Map]",L$="[object Number]",A$="[object Object]",D$="[object RegExp]",z$="[object Set]",j$="[object String]",B$="[object WeakMap]",H$="[object ArrayBuffer]",F$="[object DataView]",W$="[object Float32Array]",V$="[object Float64Array]",K$="[object Int8Array]",G$="[object Int16Array]",U$="[object Int32Array]",X$="[object Uint8Array]",Y$="[object Uint8ClampedArray]",q$="[object Uint16Array]",Z$="[object Uint32Array]",Bt={};Bt[W$]=Bt[V$]=Bt[K$]=Bt[G$]=Bt[U$]=Bt[X$]=Bt[Y$]=Bt[q$]=Bt[Z$]=!0;Bt[P$]=Bt[M$]=Bt[H$]=Bt[_$]=Bt[F$]=Bt[R$]=Bt[T$]=Bt[N$]=Bt[k$]=Bt[L$]=Bt[A$]=Bt[D$]=Bt[z$]=Bt[j$]=Bt[B$]=!1;function Q$(e){return _r(e)&&gf(e.length)&&!!Bt[Mo(e)]}function vf(e){return function(t){return e(t)}}var Rp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ia=Rp&&typeof module=="object"&&module&&!module.nodeType&&module,J$=ia&&ia.exports===Rp,Wc=J$&&Ep.process,ex=function(){try{var e=ia&&ia.require&&ia.require("util").types;return e||Wc&&Wc.binding&&Wc.binding("util")}catch{}}();const hi=ex;var mh=hi&&hi.isTypedArray,tx=mh?vf(mh):Q$;const Tp=tx;var nx=Object.prototype,rx=nx.hasOwnProperty;function Np(e,t){var n=Wn(e),r=!n&&mf(e),o=!n&&!r&&Jl(e),i=!n&&!r&&!o&&Tp(e),a=n||r||o||i,l=a?g$(e.length,String):[],s=l.length;for(var c in e)(t||rx.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||hf(c,s)))&&l.push(c);return l}var ox=Object.prototype;function pf(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ox;return e===n}function kp(e,t){return function(n){return e(t(n))}}var ix=kp(Object.keys,Object);const ax=ix;var lx=Object.prototype,sx=lx.hasOwnProperty;function cx(e){if(!pf(e))return ax(e);var t=[];for(var n in Object(e))sx.call(e,n)&&n!="constructor"&&t.push(n);return t}function Lp(e){return e!=null&&gf(e.length)&&!Op(e)}function Ba(e){return Lp(e)?Np(e):cx(e)}function ux(e,t){return e&&ja(t,Ba(t),e)}function dx(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var fx=Object.prototype,mx=fx.hasOwnProperty;function hx(e){if(!Fn(e))return dx(e);var t=pf(e),n=[];for(var r in e)r=="constructor"&&(t||!mx.call(e,r))||n.push(r);return n}function bf(e){return Lp(e)?Np(e,!0):hx(e)}function gx(e,t){return e&&ja(t,bf(t),e)}var Ap=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hh=Ap&&typeof module=="object"&&module&&!module.nodeType&&module,vx=hh&&hh.exports===Ap,gh=vx?tr.Buffer:void 0,vh=gh?gh.allocUnsafe:void 0;function px(e,t){if(t)return e.slice();var n=e.length,r=vh?vh(n):new e.constructor(n);return e.copy(r),r}function Dp(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function bx(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a);}return i}function zp(){return []}var yx=Object.prototype,Cx=yx.propertyIsEnumerable,ph=Object.getOwnPropertySymbols,Sx=ph?function(e){return e==null?[]:(e=Object(e),bx(ph(e),function(t){return Cx.call(e,t)}))}:zp;const yf=Sx;function wx(e,t){return ja(e,yf(e),t)}function Cf(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var $x=kp(Object.getPrototypeOf,Object);const Sf=$x;var xx=Object.getOwnPropertySymbols,Ex=xx?function(e){for(var t=[];e;)Cf(t,yf(e)),e=Sf(e);return t}:zp;const jp=Ex;function Ix(e,t){return ja(e,jp(e),t)}function Bp(e,t,n){var r=t(e);return Wn(e)?r:Cf(r,n(e))}function Bu(e){return Bp(e,Ba,yf)}function Hp(e){return Bp(e,bf,jp)}var Ox=Ro(tr,"DataView");const Hu=Ox;var Px=Ro(tr,"Promise");const Fu=Px;var Mx=Ro(tr,"Set");const li=Mx;var _x=Ro(tr,"WeakMap");const Wu=_x;var bh="[object Map]",Rx="[object Object]",yh="[object Promise]",Ch="[object Set]",Sh="[object WeakMap]",wh="[object DataView]",Tx=_o(Hu),Nx=_o(wa),kx=_o(Fu),Lx=_o(li),Ax=_o(Wu),uo=Mo;(Hu&&uo(new Hu(new ArrayBuffer(1)))!=wh||wa&&uo(new wa)!=bh||Fu&&uo(Fu.resolve())!=yh||li&&uo(new li)!=Ch||Wu&&uo(new Wu)!=Sh)&&(uo=function(e){var t=Mo(e),n=t==Rx?e.constructor:void 0,r=n?_o(n):"";if(r)switch(r){case Tx:return wh;case Nx:return bh;case kx:return yh;case Lx:return Ch;case Ax:return Sh}return t});const xa=uo;var Dx=Object.prototype,zx=Dx.hasOwnProperty;function jx(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&zx.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Bx=tr.Uint8Array;const es=Bx;function wf(e){var t=new e.constructor(e.byteLength);return new es(t).set(new es(e)),t}function Hx(e,t){var n=t?wf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Fx=/\w*$/;function Wx(e){var t=new e.constructor(e.source,Fx.exec(e));return t.lastIndex=e.lastIndex,t}var $h=Hn?Hn.prototype:void 0,xh=$h?$h.valueOf:void 0;function Vx(e){return xh?Object(xh.call(e)):{}}function Kx(e,t){var n=t?wf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Gx="[object Boolean]",Ux="[object Date]",Xx="[object Map]",Yx="[object Number]",qx="[object RegExp]",Zx="[object Set]",Qx="[object String]",Jx="[object Symbol]",eE="[object ArrayBuffer]",tE="[object DataView]",nE="[object Float32Array]",rE="[object Float64Array]",oE="[object Int8Array]",iE="[object Int16Array]",aE="[object Int32Array]",lE="[object Uint8Array]",sE="[object Uint8ClampedArray]",cE="[object Uint16Array]",uE="[object Uint32Array]";function dE(e,t,n){var r=e.constructor;switch(t){case eE:return wf(e);case Gx:case Ux:return new r(+e);case tE:return Hx(e,n);case nE:case rE:case oE:case iE:case aE:case lE:case sE:case cE:case uE:return Kx(e,n);case Xx:return new r;case Yx:case Qx:return new r(e);case qx:return Wx(e);case Zx:return new r;case Jx:return Vx(e)}}var Eh=Object.create,fE=function(){function e(){}return function(t){if(!Fn(t))return {};if(Eh)return Eh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const mE=fE;function hE(e){return typeof e.constructor=="function"&&!pf(e)?mE(Sf(e)):{}}var gE="[object Map]";function vE(e){return _r(e)&&xa(e)==gE}var Ih=hi&&hi.isMap,pE=Ih?vf(Ih):vE;const bE=pE;var yE="[object Set]";function CE(e){return _r(e)&&xa(e)==yE}var Oh=hi&&hi.isSet,SE=Oh?vf(Oh):CE;const wE=SE;var $E=1,xE=2,EE=4,Fp="[object Arguments]",IE="[object Array]",OE="[object Boolean]",PE="[object Date]",ME="[object Error]",Wp="[object Function]",_E="[object GeneratorFunction]",RE="[object Map]",TE="[object Number]",Vp="[object Object]",NE="[object RegExp]",kE="[object Set]",LE="[object String]",AE="[object Symbol]",DE="[object WeakMap]",zE="[object ArrayBuffer]",jE="[object DataView]",BE="[object Float32Array]",HE="[object Float64Array]",FE="[object Int8Array]",WE="[object Int16Array]",VE="[object Int32Array]",KE="[object Uint8Array]",GE="[object Uint8ClampedArray]",UE="[object Uint16Array]",XE="[object Uint32Array]",At={};At[Fp]=At[IE]=At[zE]=At[jE]=At[OE]=At[PE]=At[BE]=At[HE]=At[FE]=At[WE]=At[VE]=At[RE]=At[TE]=At[Vp]=At[NE]=At[kE]=At[LE]=At[AE]=At[KE]=At[GE]=At[UE]=At[XE]=!0;At[ME]=At[Wp]=At[DE]=!1;function aa(e,t,n,r,o,i){var a,l=t&$E,s=t&xE,c=t&EE;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!Fn(e))return e;var d=Wn(e);if(d){if(a=jx(e),!l)return Dp(e,a)}else {var f=xa(e),m=f==Wp||f==_E;if(Jl(e))return px(e,l);if(f==Vp||f==Fp||m&&!o){if(a=s||m?{}:hE(e),!l)return s?Ix(e,gx(a,e)):wx(e,ux(a,e))}else {if(!At[f])return o?e:{};a=dE(e,f,l);}}i||(i=new fr);var h=i.get(e);if(h)return h;i.set(e,a),wE(e)?e.forEach(function(p){a.add(aa(p,t,n,p,e,i));}):bE(e)&&e.forEach(function(p,y){a.set(y,aa(p,t,n,y,e,i));});var g=c?s?Hp:Bu:s?bf:Ba,v=d?void 0:g(e);return d$(v||e,function(p,y){v&&(y=p,p=e[y]),ff(a,y,aa(p,t,n,y,e,i));}),a}var YE="[object Symbol]";function Qs(e){return typeof e=="symbol"||_r(e)&&Mo(e)==YE}var qE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ZE=/^\w*$/;function $f(e,t){if(Wn(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Qs(e)?!0:ZE.test(e)||!qE.test(e)||t!=null&&e in Object(t)}var QE="Expected a function";function xf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(QE);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(xf.Cache||zr),n}xf.Cache=zr;var JE=500;function e2(e){var t=xf(e,function(r){return n.size===JE&&n.clear(),r}),n=t.cache;return t}var t2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n2=/\\(\\)?/g,r2=e2(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(t2,function(n,r,o,i){t.push(o?i.replace(n2,"$1"):r||n);}),t});const o2=r2;var i2=1/0,Ph=Hn?Hn.prototype:void 0,Mh=Ph?Ph.toString:void 0;function Kp(e){if(typeof e=="string")return e;if(Wn(e))return uf(e,Kp)+"";if(Qs(e))return Mh?Mh.call(e):"";var t=e+"";return t=="0"&&1/e==-i2?"-0":t}function a2(e){return e==null?"":Kp(e)}function _i(e,t){return Wn(e)?e:$f(e,t)?[e]:o2(a2(e))}function l2(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var s2=1/0;function Ri(e){if(typeof e=="string"||Qs(e))return e;var t=e+"";return t=="0"&&1/e==-s2?"-0":t}function Js(e,t){t=_i(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ri(t[n++])];return n&&n==r?e:void 0}function c2(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 i=Array(o);++r<o;)i[r]=e[r+t];return i}function u2(e,t){return t.length<2?e:Js(e,c2(t,0,-1))}function d2(e,t){return t=_i(t,e),e=u2(e,t),e==null||delete e[Ri(l2(t))]}var f2="[object Object]",m2=Function.prototype,h2=Object.prototype,Gp=m2.toString,g2=h2.hasOwnProperty,v2=Gp.call(Object);function p2(e){if(!_r(e)||Mo(e)!=f2)return !1;var t=Sf(e);if(t===null)return !0;var n=g2.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Gp.call(n)==v2}function b2(e){return p2(e)?void 0:e}var _h=Hn?Hn.isConcatSpreadable:void 0;function y2(e){return Wn(e)||mf(e)||!!(_h&&e&&e[_h])}function Up(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=y2),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?Up(l,t-1,n,r,o):Cf(o,l):r||(o[o.length]=l);}return o}function C2(e){var t=e==null?0:e.length;return t?Up(e,1):[]}function S2(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 Rh=Math.max;function w2(e,t,n){return t=Rh(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Rh(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(a),S2(e,this,l)}}function $2(e){return function(){return e}}function Xp(e){return e}var x2=Ql?function(e,t){return Ql(e,"toString",{configurable:!0,enumerable:!1,value:$2(t),writable:!0})}:Xp;const E2=x2;var I2=800,O2=16,P2=Date.now;function M2(e){var t=0,n=0;return function(){var r=P2(),o=O2-(r-n);if(n=r,o>0){if(++t>=I2)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var _2=M2(E2);const R2=_2;function Yp(e){return R2(w2(e,void 0,C2),e+"")}var T2=1,N2=2,k2=4,L2=Yp(function(e,t){var n={};if(e==null)return n;var r=!1;t=uf(t,function(i){return i=_i(i,e),r||(r=i.length>1),i}),ja(e,Hp(e),n),r&&(n=aa(n,T2|N2|k2,b2));for(var o=t.length;o--;)d2(n,t[o]);return n});const A2=L2;function D2(e,t,n,r){if(!Fn(e))return e;t=_i(t,e);for(var o=-1,i=t.length,a=i-1,l=e;l!=null&&++o<i;){var s=Ri(t[o]),c=n;if(s==="__proto__"||s==="constructor"||s==="prototype")return e;if(o!=a){var d=l[s];c=r?r(d,s,l):void 0,c===void 0&&(c=Fn(d)?d:hf(t[o+1])?[]:{});}ff(l,s,c),l=l[s];}return e}function z2(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=Js(e,a);n(l,a)&&D2(i,_i(a,e),l);}return i}function j2(e,t){return e!=null&&t in Object(e)}function B2(e,t,n){t=_i(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Ri(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a];}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&gf(o)&&hf(a,o)&&(Wn(e)||mf(e)))}function qp(e,t){return e!=null&&B2(e,t,j2)}function H2(e,t){return z2(e,t,function(n,r){return qp(e,r)})}var F2=Yp(function(e,t){return e==null?{}:H2(e,t)});const Ef=F2;var Vu={exports:{}},Vc,Th;function W2(){if(Th)return Vc;Th=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;Vc=function(d,f){f=f||{};var m=typeof d;if(m==="string"&&d.length>0)return a(d);if(m==="number"&&isFinite(d))return f.long?s(d):l(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))};function a(d){if(d=String(d),!(d.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(f){var m=parseFloat(f[1]),h=(f[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return m*i;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(d){var f=Math.abs(d);return f>=r?Math.round(d/r)+"d":f>=n?Math.round(d/n)+"h":f>=t?Math.round(d/t)+"m":f>=e?Math.round(d/e)+"s":d+"ms"}function s(d){var f=Math.abs(d);return f>=r?c(d,f,r,"day"):f>=n?c(d,f,n,"hour"):f>=t?c(d,f,t,"minute"):f>=e?c(d,f,e,"second"):d+" ms"}function c(d,f,m,h){var g=f>=m*1.5;return Math.round(d/m)+" "+h+(g?"s":"")}return Vc}function V2(e){n.debug=n,n.default=n,n.coerce=s,n.disable=i,n.enable=o,n.enabled=a,n.humanize=W2(),n.destroy=c,Object.keys(e).forEach(d=>{n[d]=e[d];}),n.names=[],n.skips=[],n.formatters={};function t(d){let f=0;for(let m=0;m<d.length;m++)f=(f<<5)-f+d.charCodeAt(m),f|=0;return n.colors[Math.abs(f)%n.colors.length]}n.selectColor=t;function n(d){let f,m=null,h,g;function v(...p){if(!v.enabled)return;const y=v,b=Number(new Date),O=b-(f||b);y.diff=O,y.prev=f,y.curr=b,f=b,p[0]=n.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let P=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,($,S)=>{if($==="%%")return "%";P++;const C=n.formatters[S];if(typeof C=="function"){const I=p[P];$=C.call(y,I),p.splice(P,1),P--;}return $}),n.formatArgs.call(y,p),(y.log||n.log).apply(y,p);}return v.namespace=d,v.useColors=n.useColors(),v.color=n.selectColor(d),v.extend=r,v.destroy=n.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(h!==n.namespaces&&(h=n.namespaces,g=n.enabled(d)),g),set:p=>{m=p;}}),typeof n.init=="function"&&n.init(v),v}function r(d,f){const m=n(this.namespace+(typeof f>"u"?":":f)+d);return m.log=this.log,m}function o(d){n.save(d),n.namespaces=d,n.names=[],n.skips=[];let f;const m=(typeof d=="string"?d:"").split(/[\s,]+/),h=m.length;for(f=0;f<h;f++)m[f]&&(d=m[f].replace(/\*/g,".*?"),d[0]==="-"?n.skips.push(new RegExp("^"+d.slice(1)+"$")):n.names.push(new RegExp("^"+d+"$")));}function i(){const d=[...n.names.map(l),...n.skips.map(l).map(f=>"-"+f)].join(",");return n.enable(""),d}function a(d){if(d[d.length-1]==="*")return !0;let f,m;for(f=0,m=n.skips.length;f<m;f++)if(n.skips[f].test(d))return !1;for(f=0,m=n.names.length;f<m;f++)if(n.names[f].test(d))return !0;return !1}function l(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function s(d){return d instanceof Error?d.stack||d.message:d}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 K2=V2;(function(e,t){t.formatArgs=r,t.save=o,t.load=i,t.useColors=n,t.storage=a(),t.destroy=(()=>{let s=!1;return ()=>{s||(s=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;s.splice(1,0,c,"color: inherit");let d=0,f=0;s[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(d++,m==="%c"&&(f=d));}),s.splice(f,0,c);}t.log=console.debug||console.log||(()=>{});function o(s){try{s?t.storage.setItem("debug",s):t.storage.removeItem("debug");}catch{}}function i(){let s;try{s=t.storage.getItem("debug");}catch{}return !s&&typeof process<"u"&&"env"in process&&(s={}.DEBUG),s}function a(){try{return localStorage}catch{}}e.exports=K2(t);const{formatters:l}=e.exports;l.j=function(s){try{return JSON.stringify(s)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Vu,Vu.exports);var G2=Vu.exports;const U2=Ar(G2),nn="bilibili-app-recommend",X2="bilibili_app_recommend",Ti=U2(nn);var Zp={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var l=n.apply(null,i);l&&r.push(l);}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var s in i)t.call(i,s)&&i[s]&&r.push(s);}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n;})();})(Zp);var Y2=Zp.exports;const W=Ar(Y2);function Qp(e){if(Array.isArray(e))return e}function q2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1;}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){c=!0,o=d;}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function Ku(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 If(e,t){if(e){if(typeof e=="string")return Ku(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 Ku(e,t)}}function Jp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(e,t){return Qp(e)||q2(e,t)||If(e,t)||Jp()}function _n(e){var t=u__namespace.useRef();t.current=e;var n=u__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function En(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}var Ft=En()?u__namespace.useLayoutEffect:u__namespace.useEffect,si=function(t,n){var r=u__namespace.useRef(!0);Ft(function(){if(!r.current)return t()},n),Ft(function(){return r.current=!1,function(){r.current=!0;}},[]);};function Co(e){var t=u__namespace.useRef(!1),n=u__namespace.useState(e),r=G(n,2),o=r[0],i=r[1];u__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function a(l,s){s&&t.current||i(l);}return [o,a]}function Kc(e){return e!==void 0}function zt(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=Co(function(){return Kc(o)?o:Kc(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=G(l,2),c=s[0],d=s[1],f=o!==void 0?o:c,m=a?a(f):f,h=_n(i),g=Co([f]),v=G(g,2),p=v[0],y=v[1];si(function(){var O=p[0];c!==O&&h(c,O);},[p]),si(function(){Kc(o)||d(o);},[o]);var b=_n(function(O,P){d(O,P),y([f],P);});return [m,b]}function Z2(e){if(Array.isArray(e))return Ku(e)}function eb(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Q2(){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 Z2(e)||eb(e)||If(e)||Q2()}function dt(e){"@babel/helpers - typeof";return dt=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},dt(e)}function J2(e,t){if(dt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function tb(e){var t=J2(e,"string");return dt(t)==="symbol"?t:String(t)}function U(e,t,n){return t=tb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nh(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 Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nh(Object(n),!0).forEach(function(r){U(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Of(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 eI(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Qe(e,t){if(e==null)return {};var n=eI(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function Ha(e,t,n){var r=u__namespace.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Gu={},tI=function(t){};function nI(e,t){}function rI(e,t){}function oI(){Gu={};}function nb(e,t,n){!t&&!Gu[n]&&(e(!1,n),Gu[n]=!0);}function pr(e,t){nb(nI,e,t);}function iI(e,t){nb(rI,e,t);}pr.preMessage=tI;pr.resetWarned=oI;pr.noteOnce=iI;function ec(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(i);if(pr(!s,"Warning: There may be circular references"),s)return !1;if(i===a)return !0;if(n&&l>1)return !1;r.add(i);var c=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return !1;for(var d=0;d<i.length;d++)if(!o(i[d],a[d],c))return !1;return !0}if(i&&a&&dt(i)==="object"&&dt(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(m){return o(i[m],a[m],c)})}return !1}return o(e,t)}function pn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kh(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,tb(r.key),r);}}function bn(e,t,n){return t&&kh(e.prototype,t),n&&kh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var aI=function(){function e(t){pn(this,e),U(this,"instanceId",void 0),U(this,"cache",new Map),this.instanceId=t;}return bn(e,[{key:"get",value:function(n){return this.cache.get(n.join("%"))||null}},{key:"update",value:function(n,r){var o=n.join("%"),i=this.cache.get(o),a=r(i);a===null?this.cache.delete(o):this.cache.set(o,a);}}]),e}(),Uu="data-token-hash",ci="data-css-hash",ti="__cssinjs_instance__";function lI(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(ci,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[ti]=o[ti]||e,o[ti]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(ci,"]"))).forEach(function(o){var i=o.getAttribute(ci);if(r[i]){if(o[ti]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o);}}else r[i]=!0;});}return new aI(e)}var sI=u__namespace.createContext({hashPriority:"low",cache:lI(),defaultCache:!0});const Pf=sI;function cI(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 Lh="data-rc-order",uI="rc-util-key",Xu=new Map;function rb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):uI}function tc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function dI(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ob(e){return Array.from((Xu.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ib(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!En())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(Lh,dI(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=tc(t),a=i.firstChild;if(r){if(r==="queue"){var l=ob(i).filter(function(s){return ["prepend","prependQueue"].includes(s.getAttribute(Lh))});if(l.length)return i.insertBefore(o,l[l.length-1].nextSibling),o}i.insertBefore(o,a);}else i.appendChild(o);return o}function ab(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=tc(t);return ob(n).find(function(r){return r.getAttribute(rb(t))===e})}function ts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ab(e,t);if(n){var r=tc(t);r.removeChild(n);}}function fI(e,t){var n=Xu.get(e);if(!n||!cI(document,n)){var r=ib("",t),o=r.parentNode;Xu.set(e,o),e.removeChild(r);}}function gi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=tc(n);fI(r,n);var o=ab(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var l;o.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var s=ib(e,n);return s.setAttribute(rb(n),t),s}function ns(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&dt(r)==="object"?t+=ns(r):t+=r;}),t}function mI(e,t){return Of("".concat(t,"_").concat(ns(e)))}var la="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),lb="903px";function hI(e,t){if(En()){var n;gi(e,la);var r=document.createElement("div");r.style.position="fixed",r.style.left="0",r.style.top="0",t==null||t(r),document.body.appendChild(r);var o=getComputedStyle(r).width===lb;return (n=r.parentNode)===null||n===void 0||n.removeChild(r),ts(la),o}return !1}var Gc=void 0;function gI(){return Gc===void 0&&(Gc=hI("@layer ".concat(la," { .").concat(la," { width: ").concat(lb,"!important; } }"),function(e){e.className=la;})),Gc}function sb(e,t,n,r){var o=u__namespace.useContext(Pf),i=o.cache,a=[e].concat(Ge(t));return u__namespace.useMemo(function(){i.update(a,function(l){var s=l||[],c=G(s,2),d=c[0],f=d===void 0?0:d,m=c[1],h=m,g=h||n();return [f+1,g]});},[a.join("_")]),u__namespace.useEffect(function(){return function(){i.update(a,function(l){var s=l||[],c=G(s,2),d=c[0],f=d===void 0?0:d,m=c[1],h=f-1;return h===0?(r==null||r(m,!1),null):[f-1,m]});}},a),i.get(a)[1]}var vI={},pI="css",ho=new Map;function bI(e){ho.set(e,(ho.get(e)||0)+1);}function yI(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Uu,'="').concat(e,'"]'));n.forEach(function(r){if(r[ti]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}function CI(e,t){ho.set(e,(ho.get(e)||0)-1);var n=Array.from(ho.keys()),r=n.filter(function(o){var i=ho.get(o)||0;return i<=0});r.length<n.length&&r.forEach(function(o){yI(o,t),ho.delete(o);});}var cb=function(t,n,r,o){var i=r.getDerivativeToken(t),a=Z(Z({},i),n);return o&&(a=o(a)),a};function SI(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(Pf),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,l=n.override,s=l===void 0?vI:l,c=n.formatToken,d=u__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(Ge(t)))},[t]),f=u__namespace.useMemo(function(){return ns(d)},[d]),m=u__namespace.useMemo(function(){return ns(s)},[s]),h=sb("token",[a,e.id,f,m],function(){var g=cb(d,s,e,c),v=mI(g,a);g._tokenKey=v,bI(v);var p="".concat(pI,"-").concat(Of(v));return g._hashId=p,[g,p]},function(g){CI(g[0]._tokenKey,o);});return h}function Ce(){return Ce=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},Ce.apply(this,arguments)}var wI={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},Ah=En(),$I="_skip_check_",ub="_multi_value_";function Dh(e){var t=yo(cp(e),up);return t.replace(/\{%%%\:[^;];}/g,";")}function xI(e){return dt(e)==="object"&&e&&($I in e||ub in e)}function EI(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var l,s=a.trim().split(/\s+/),c=s[0]||"",d=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c="".concat(d).concat(o).concat(c.slice(d.length)),[c].concat(Ge(s.slice(1))).join(" ")});return i.join(",")}var II=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var c=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",h={};function g(O){var P=O.getName(l);if(!h[P]){var w=e(O.style,n,{root:!1,parentSelectors:a}),$=G(w,1),S=$[0];h[P]="@keyframes ".concat(O.getName(l)).concat(S);}}function v(O){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return O.forEach(function(w){Array.isArray(w)?v(w,P):w&&P.push(w);}),P}var p=v(Array.isArray(t)?t:[t]);if(p.forEach(function(O){var P=typeof O=="string"&&!o?{}:O;if(typeof P=="string")m+="".concat(P,`
`);else if(P._keyframe)g(P);else {var w=f.reduce(function($,S){var C;return (S==null||(C=S.visit)===null||C===void 0?void 0:C.call(S,$))||$},P);Object.keys(w).forEach(function($){var S=w[$];if(dt(S)==="object"&&S&&($!=="animationName"||!S._keyframe)&&!xI(S)){var C=!1,I=$.trim(),M=!1;(o||i)&&l?I.startsWith("@")?C=!0:I=EI($,l,c):o&&!l&&(I==="&"||I==="")&&(I="",M=!0);var L=e(S,n,{root:M,injectHash:C,parentSelectors:[].concat(Ge(a),[I])}),_=G(L,2),E=_[0],x=_[1];h=Z(Z({},h),x),m+="".concat(I).concat(E);}else {let T=function(A,z){var F=A.replace(/[A-Z]/g,function(j){return "-".concat(j.toLowerCase())}),V=z;!wI[A]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),A==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(g(z),V=z.getName(l)),m+="".concat(F,":").concat(V,";");};var R,k=(R=S==null?void 0:S.value)!==null&&R!==void 0?R:S;dt(S)==="object"&&S!==null&&S!==void 0&&S[ub]&&Array.isArray(k)?k.forEach(function(A){T($,A);}):T($,k);}});}}),!o)m="{".concat(m,"}");else if(s&&gI()){var y=s.split(","),b=y[y.length-1].trim();m="@layer ".concat(b," {").concat(m,"}"),y.length>1&&(m="@layer ".concat(s,"{%%%:%}").concat(m));}return [m,h]};function OI(e,t){return Of("".concat(e.join("%")).concat(t))}function PI(){return null}function Yu(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=u__namespace.useContext(Pf),s=l.autoClear;l.mock;var c=l.defaultCache,d=l.hashPriority,f=l.container,m=l.ssrInline,h=l.transformers,g=l.linters,v=l.cache,p=n._tokenKey,y=[p].concat(Ge(r)),b=Ah,O=sb("style",y,function(){var C=t(),I=II(C,{hashId:o,hashPriority:d,layer:i,path:r.join("-"),transformers:h,linters:g}),M=G(I,2),L=M[0],_=M[1],E=Dh(L),x=OI(y,E);if(b){var R={mark:ci,prepend:"queue",attachTo:f},k=typeof a=="function"?a():a;k&&(R.csp={nonce:k});var T=gi(E,x,R);T[ti]=v.instanceId,T.setAttribute(Uu,p),Object.keys(_).forEach(function(A){gi(Dh(_[A]),"_effect-".concat(A),R);});}return [E,p,x]},function(C,I){var M=G(C,3),L=M[2];(I||s)&&Ah&&ts(L,{mark:ci});}),P=G(O,3),w=P[0],$=P[1],S=P[2];return function(C){var I;if(!m||b||!c)I=u__namespace.createElement(PI,null);else {var M;I=u__namespace.createElement("style",Ce({},(M={},U(M,Uu,$),U(M,ci,S),M),{dangerouslySetInnerHTML:{__html:w}}));}return u__namespace.createElement(u__namespace.Fragment,null,I,C)}}var _t=function(){function e(t,n){pn(this,e),U(this,"name",void 0),U(this,"style",void 0),U(this,"_keyframe",!0),this.name=t,this.style=n;}return bn(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 MI(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 Mf=function(){function e(){pn(this,e),U(this,"cache",void 0),U(this,"keys",void 0),U(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return bn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else {var s,c;a=(s=a)===null||s===void 0||(c=s.map)===null||c===void 0?void 0:c.get(l);}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return (r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return !!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,d){var f=G(c,2),m=f[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=G(i,1),l=a[0];this.delete(l);}this.keys.push(n);}var s=this.cache;n.forEach(function(c,d){if(d===n.length-1)s.set(c,{value:[r,o.cacheCallTimes++]});else {var f=s.get(c);f?f.map||(f.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 i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return (!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return !MI(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();U(Mf,"MAX_CACHE_SIZE",20);U(Mf,"MAX_CACHE_OFFSET",5);var zh=0,_I=function(){function e(t){pn(this,e),U(this,"derivatives",void 0),U(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=zh,t.length===0&&(t.length>0,void 0),zh+=1;}return bn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Uc=new Mf;function rs(e){var t=Array.isArray(e)?e:[e];return Uc.has(t)||Uc.set(t,new _I(t)),Uc.get(t)}function Bo(e){return e.notSplit=!0,e}Bo(["borderTop","borderBottom"]),Bo(["borderTop"]),Bo(["borderBottom"]),Bo(["borderLeft","borderRight"]),Bo(["borderLeft"]),Bo(["borderRight"]);var RI=u.createContext({});const _f=RI;function db(e){return Qp(e)||eb(e)||If(e)||Jp()}function qu(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function fb(e,t,n,r){if(!t.length)return n;var o=db(t),i=o[0],a=o.slice(1),l;return !e&&typeof i=="number"?l=[]:Array.isArray(e)?l=Ge(e):l=Z({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=fb(l[i],a,n,r),l}function Xc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!qu(e,t.slice(0,-1))?e:fb(e,t,n,r)}function TI(e){return dt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function jh(e){return Array.isArray(e)?[]:{}}function NI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jh(t[0]),o=new Set;return t.forEach(function(i){function a(l){var s=qu(i,l),c=Array.isArray(s);if(c||TI(s)){if(!o.has(s)){o.add(s);var d=qu(r,l);c?r=Xc(r,l,[]):(!d||dt(d)!=="object")&&(r=Xc(r,l,jh(s))),Object.keys(s).forEach(function(f){a([].concat(Ge(l),[f]));});}}else r=Xc(r,l,s);}a([]);}),r}const kI=u.createContext(void 0),mb={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var LI={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 AI={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},hb=AI,DI={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"]},LI),timePickerLocale:Object.assign({},hb)},Bh=DI,On="${label} is not a valid ${type}",zI={locale:"en",Pagination:mb,DatePicker:Bh,TimePicker:hb,Calendar:Bh,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:On,method:On,array:On,object:On,number:On,date:On,boolean:On,integer:On,float:On,regexp:On,email:On,url:On,hex:On},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}},Zr=zI;let Yc=Object.assign({},Zr.Modal);function Hh(e){e?Yc=Object.assign(Object.assign({},Yc),e):Yc=Object.assign({},Zr.Modal);}const jI=u.createContext(void 0),Rf=jI,BI=(e,t)=>{const n=u__namespace.useContext(Rf),r=u__namespace.useMemo(()=>{var i;const a=t||Zr[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=u__namespace.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Zr.locale:i},[n]);return [r,o]},Ni=BI,HI="internalMark",FI=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u__namespace.useEffect(()=>(Hh(t&&t.Modal),()=>{Hh();}),[t]);const o=u__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u__namespace.createElement(Rf.Provider,{value:o},n)},WI=FI,Ea=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],VI="5.7.2";function ln(e,t){KI(e)&&(e="100%");var n=GI(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 hl(e){return Math.min(1,Math.max(0,e))}function KI(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function GI(e){return typeof e=="string"&&e.indexOf("%")!==-1}function gb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function gl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function po(e){return e.length===1?"0"+e:String(e)}function UI(e,t,n){return {r:ln(e,255)*255,g:ln(t,255)*255,b:ln(n,255)*255}}function Fh(e,t,n){e=ln(e,255),t=ln(t,255),n=ln(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else {var s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6;}return {h:i,s:a,l}}function qc(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 XI(e,t,n){var r,o,i;if(e=ln(e,360),t=ln(t,100),n=ln(n,100),t===0)o=n,i=n,r=n;else {var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=qc(l,a,e+1/3),o=qc(l,a,e),i=qc(l,a,e-1/3);}return {r:r*255,g:o*255,b:i*255}}function Zu(e,t,n){e=ln(e,255),t=ln(t,255),n=ln(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,s=r===0?0:l/r;if(r===o)i=0;else {switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6;}return {h:i,s,v:a}}function YI(e,t,n){e=ln(e,360)*6,t=ln(t,100),n=ln(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6,c=[n,a,i,i,l,n][s],d=[l,n,n,a,i,i][s],f=[i,i,l,n,n,a][s];return {r:c*255,g:d*255,b:f*255}}function Qu(e,t,n,r){var o=[po(Math.round(e).toString(16)),po(Math.round(t).toString(16)),po(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 qI(e,t,n,r,o){var i=[po(Math.round(e).toString(16)),po(Math.round(t).toString(16)),po(Math.round(n).toString(16)),po(ZI(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function ZI(e){return Math.round(parseFloat(e)*255).toString(16)}function Wh(e){return Mn(e)/255}function Mn(e){return parseInt(e,16)}function QI(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var Ju={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 Jo(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=tO(e)),typeof e=="object"&&(Er(e.r)&&Er(e.g)&&Er(e.b)?(t=UI(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Er(e.h)&&Er(e.s)&&Er(e.v)?(r=gl(e.s),o=gl(e.v),t=YI(e.h,r,o),a=!0,l="hsv"):Er(e.h)&&Er(e.s)&&Er(e.l)&&(r=gl(e.s),i=gl(e.l),t=XI(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=gb(n),{ok:a,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 JI="[-\\+]?\\d+%?",eO="[-\\+]?\\d*\\.\\d+%?",Kr="(?:".concat(eO,")|(?:").concat(JI,")"),Zc="[\\s|\\(]+(".concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")\\s*\\)?"),Qc="[\\s|\\(]+(".concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")\\s*\\)?"),Un={CSS_UNIT:new RegExp(Kr),rgb:new RegExp("rgb"+Zc),rgba:new RegExp("rgba"+Qc),hsl:new RegExp("hsl"+Zc),hsla:new RegExp("hsla"+Qc),hsv:new RegExp("hsv"+Zc),hsva:new RegExp("hsva"+Qc),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 tO(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(Ju[e])e=Ju[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=Un.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Un.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Un.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Un.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Un.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Un.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Un.hex8.exec(e),n?{r:Mn(n[1]),g:Mn(n[2]),b:Mn(n[3]),a:Wh(n[4]),format:t?"name":"hex8"}:(n=Un.hex6.exec(e),n?{r:Mn(n[1]),g:Mn(n[2]),b:Mn(n[3]),format:t?"name":"hex"}:(n=Un.hex4.exec(e),n?{r:Mn(n[1]+n[1]),g:Mn(n[2]+n[2]),b:Mn(n[3]+n[3]),a:Wh(n[4]+n[4]),format:t?"name":"hex8"}:(n=Un.hex3.exec(e),n?{r:Mn(n[1]+n[1]),g:Mn(n[2]+n[2]),b:Mn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Er(e){return !!Un.CSS_UNIT.exec(String(e))}var Wt=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=QI(t)),this.originalInput=t;var o=Jo(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok;}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return !this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return (t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),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=gb(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=Zu(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=Zu(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=Fh(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=Fh(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),Qu(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),qI(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(ln(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(ln(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="#"+Qu(this.r,this.g,this.b,!1),n=0,r=Object.entries(Ju);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return !1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return (Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=hl(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=hl(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=hl(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=hl(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return [this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),vl=2,Vh=.16,nO=.05,rO=.05,oO=.15,vb=5,pb=4,iO=[{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 Kh(e){var t=e.r,n=e.g,r=e.b,o=Zu(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function pl(e){var t=e.r,n=e.g,r=e.b;return "#".concat(Qu(t,n,r,!1))}function aO(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 Gh(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-vl*t:Math.round(e.h)+vl*t:r=n?Math.round(e.h)+vl*t:Math.round(e.h)-vl*t,r<0?r+=360:r>=360&&(r-=360),r}function Uh(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Vh*t:t===pb?r=e.s+Vh:r=e.s+nO*t,r>1&&(r=1),n&&t===vb&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Xh(e,t,n){var r;return n?r=e.v+rO*t:r=e.v-oO*t,r>1&&(r=1),Number(r.toFixed(2))}function Rr(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Jo(e),o=vb;o>0;o-=1){var i=Kh(r),a=pl(Jo({h:Gh(i,o,!0),s:Uh(i,o,!0),v:Xh(i,o,!0)}));n.push(a);}n.push(pl(r));for(var l=1;l<=pb;l+=1){var s=Kh(r),c=pl(Jo({h:Gh(s,l),s:Uh(s,l),v:Xh(s,l)}));n.push(c);}return t.theme==="dark"?iO.map(function(d){var f=d.index,m=d.opacity,h=pl(aO(Jo(t.backgroundColor||"#141414"),Jo(n[f]),m*100));return h}):n}var Jc={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"},zl={},eu={};Object.keys(Jc).forEach(function(e){zl[e]=Rr(Jc[e]),zl[e].primary=zl[e][5],eu[e]=Rr(Jc[e],{theme:"dark",backgroundColor:"#141414"}),eu[e].primary=eu[e][5];});var lO=zl.blue;const sO=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},bb=sO;function cO(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 Tf={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"},uO=Object.assign(Object.assign({},Tf),{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}),Fa=uO;function yb(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:d}=e,f=n(s),m=n(o),h=n(i),g=n(a),v=n(l),p=r(c,d),y=e.colorLink||e.colorInfo,b=n(y);return Object.assign(Object.assign({},p),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[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:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Wt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const dO=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},fO=dO;function mO(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},fO(r))}const Ir=(e,t)=>new Wt(e).setAlpha(t).toRgbString(),Ki=(e,t)=>new Wt(e).darken(t).toHexString(),hO=e=>{const t=Rr(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]}},gO=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:Ir(r,.88),colorTextSecondary:Ir(r,.65),colorTextTertiary:Ir(r,.45),colorTextQuaternary:Ir(r,.25),colorFill:Ir(r,.15),colorFillSecondary:Ir(r,.06),colorFillTertiary:Ir(r,.04),colorFillQuaternary:Ir(r,.02),colorBgLayout:Ki(n,4),colorBgContainer:Ki(n,0),colorBgElevated:Ki(n,0),colorBgSpotlight:Ir(r,.85),colorBorder:Ki(n,15),colorBorderSecondary:Ki(n,6)}};function vO(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return {size:n,lineHeight:r/n}})}const pO=e=>{const t=vO(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return {fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},Cb=pO;function Wa(e){const t=Object.keys(Tf).map(n=>{const r=Rr(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),yb(e,{generateColorPalettes:hO,generateNeutralColorPalettes:gO})),Cb(e.fontSize)),cO(e)),bb(e)),mO(e))}const bO=rs(Wa),os={token:Fa,hashed:!0},Sb=u.createContext(os);function tu(e){return e>=0&&e<=255}function bl(e,t){const{r:n,g:r,b:o,a:i}=new Wt(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new Wt(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-a*(1-c))/c),f=Math.round((r-l*(1-c))/c),m=Math.round((o-s*(1-c))/c);if(tu(d)&&tu(f)&&tu(m))return new Wt({r:d,g:f,b:m,a:Math.round(c*100)/100}).toRgbString()}return new Wt({r:n,g:r,b:o,a:1}).toRgbString()}var yO=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function wb(e){const{override:t}=e,n=yO(e,["override"]),r=Object.assign({},t);Object.keys(Fa).forEach(m=>{delete r[m];});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,s=992,c=1200,d=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:bl(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:bl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:bl(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:bl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowSecondary:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowTertiary:`
0 1px 2px 0 rgba(0, 0, 0, 0.03),
0 1px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px 0 rgba(0, 0, 0, 0.02)
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
0 1px 2px -2px ${new Wt("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new Wt("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new Wt("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)}function eo(){const{token:e,hashed:t,theme:n,components:r}=u.useContext(Sb),o=`${VI}-${t||""}`,i=n||bO,[a,l]=SI(i,[Fa,e],{salt:o,override:Object.assign({override:e},r),formatToken:wb});return [i,a,t?l:""]}const $b="anticon",CO=(e,t)=>t||(e?`ant-${e}`:"ant"),ot=u__namespace.createContext({getPrefixCls:CO,iconPrefixCls:$b}),SO=(e,t,n,r,o)=>{const i=e/2,a=0,l=i,s=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),d=i-t*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),m=2*i-d,h=f,g=2*i-s,v=c,p=2*i-a,y=l,b=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),O=n*(Math.sqrt(2)-1);return {pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${O}px 100%, 50% ${O}px, ${2*i-O}px 100%, ${O}px 100%)`,`path('M ${a} ${l} A ${n} ${n} 0 0 0 ${s} ${c} L ${d} ${f} A ${t} ${t} 0 0 1 ${m} ${h} L ${g} ${v} A ${n} ${n} 0 0 0 ${p} ${y} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},xo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},kt=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),To=()=>({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"}}),ed=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),wO=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"}}}),$O=(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"}}}}},Eo=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Io=e=>({"&:focus-visible":Object.assign({},Eo(e))}),xb=typeof CSSINJS_STATISTIC<"u";let td=!0;function mt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!xb)return Object.assign.apply(Object,[{}].concat(t));td=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]});});}),td=!0,r}function xO(){}function EO(e){let t,n=e,r=xO;return xb&&(t=new Set,n=new Proxy(e,{get(o,i){return td&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t);}),{token:n,keys:t,flush:r}}function Ut(e,t,n,r){return o=>{const[i,a,l]=eo(),{getPrefixCls:s,iconPrefixCls:c,csp:d}=u.useContext(ot),f=s(),m={theme:i,token:a,hashId:l,nonce:()=>d==null?void 0:d.nonce};return Yu(Object.assign(Object.assign({},m),{path:["Shared",f]}),()=>[{"&":wO(a)}]),[Yu(Object.assign(Object.assign({},m),{path:[e,o,c]}),()=>{const{token:h,flush:g}=EO(a),v=Object.assign({},a[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:w}=r;w.forEach($=>{let[S,C]=$;var I;(v!=null&&v[S]||v!=null&&v[C])&&((I=v[C])!==null&&I!==void 0||(v[C]=v==null?void 0:v[S]));});}const p=typeof n=="function"?n(mt(h,v??{})):n,y=Object.assign(Object.assign({},p),v),b=`.${o}`,O=mt(h,{componentCls:b,prefixCls:o,iconCls:`.${c}`,antCls:`.${f}`},y),P=t(O,{hashId:l,prefixCls:o,rootPrefixCls:f,iconPrefixCls:c,overrideComponentToken:v});return g(e,y),[(r==null?void 0:r.resetStyle)===!1?null:$O(a,o),P]}),l]}}function Eb(e,t){return Ea.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const IO=`-ant-${Date.now()}-${Math.random()}`;function OO(e,t){const n={},r=(a,l)=>{let s=a.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(a,l)=>{const s=new Wt(a),c=Rr(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 a=new Wt(t.primaryColor),l=Rr(a.toRgbString());l.forEach((c,d)=>{n[`primary-${d+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const s=new Wt(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(a=>`--${e}-${a}: ${n[a]};`).join(`
`)}
}
`.trim()}function PO(e,t){const n=OO(e,t);En()&&gi(n,`${IO}-dynamic-theme`);}const nd=u__namespace.createContext(!1),MO=e=>{let{children:t,disabled:n}=e;const r=u__namespace.useContext(nd);return u__namespace.createElement(nd.Provider,{value:n??r},t)},br=nd,rd=u__namespace.createContext(void 0),_O=e=>{let{children:t,size:n}=e;const r=u__namespace.useContext(rd);return u__namespace.createElement(rd.Provider,{value:n||r},t)},nc=rd;function RO(){const e=u.useContext(br),t=u.useContext(nc);return {componentDisabled:e,componentSize:t}}function TO(e,t){const n=e||{},r=n.inherit===!1||!t?os:t;return Ha(()=>{if(!e)return t;const i=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{i[a]=Object.assign(Object.assign({},i[a]),e.components[a]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:i})},[n,r],(i,a)=>i.some((l,s)=>{const c=a[s];return !ec(l,c,!0)}))}function is(e){return e instanceof HTMLElement||e instanceof SVGElement}function as(e){return is(e)?e:e instanceof u.Component?Qv.findDOMNode(e):null}function Nf(e,t){typeof e=="function"?e(t):dt(e)==="object"&&e&&"current"in e&&(e.current=t);}function Sn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(i){Nf(i,o);});}}function Va(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ha(function(){return Sn.apply(void 0,t)},t,function(r,o){return r.length===o.length&&r.every(function(i,a){return i===o[a]})})}function No(e){var t,n,r=lf.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))}var NO=["children"],Ib=u__namespace.createContext({});function kO(e){var t=e.children,n=Qe(e,NO);return u__namespace.createElement(Ib.Provider,{value:n},t)}function od(e,t){return od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},od(e,t)}function to(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&&od(e,t);}function ls(e){return ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ls(e)}function LO(){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 id(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AO(e,t){if(t&&(dt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return id(e)}function no(e){var t=LO();return function(){var r=ls(e),o;if(t){var i=ls(this).constructor;o=Reflect.construct(r,arguments,i);}else o=r.apply(this,arguments);return AO(this,o)}}var DO=function(e){to(n,e);var t=no(n);function n(){return pn(this,n),t.apply(this,arguments)}return bn(n,[{key:"render",value:function(){return this.props.children}}]),n}(u__namespace.Component),fo="none",yl="appear",Cl="enter",Sl="leave",Yh="none",Yn="prepare",ni="start",ri="active",kf="end",Ob="prepared";function qh(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 zO(e,t){var n={animationend:qh("Animation","AnimationEnd"),transitionend:qh("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var jO=zO(En(),typeof window<"u"?window:{}),Pb={};if(En()){var BO=document.createElement("div");Pb=BO.style;}var wl={};function Mb(e){if(wl[e])return wl[e];var t=jO[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Pb)return wl[e]=t[i],wl[e]}return ""}var _b=Mb("animationend"),Rb=Mb("transitionend"),Tb=!!(_b&&Rb),Zh=_b||"animationend",Qh=Rb||"transitionend";function Jh(e,t){if(!e)return null;if(dt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const HO=function(e){var t=u.useRef(),n=u.useRef(e);n.current=e;var r=u__namespace.useCallback(function(a){n.current(a);},[]);function o(a){a&&(a.removeEventListener(Qh,r),a.removeEventListener(Zh,r));}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(Qh,r),a.addEventListener(Zh,r),t.current=a);}return u__namespace.useEffect(function(){return function(){o(t.current);}},[]),[i,o]};var Nb=En()?u.useLayoutEffect:u.useEffect,kb=function(t){return +setTimeout(t,16)},Lb=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(kb=function(t){return window.requestAnimationFrame(t)},Lb=function(t){return window.cancelAnimationFrame(t)});var eg=0,Lf=new Map;function Ab(e){Lf.delete(e);}var It=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;eg+=1;var r=eg;function o(i){if(i===0)Ab(r),t();else {var a=kb(function(){o(i-1);});Lf.set(r,a);}}return o(n),r};It.cancel=function(e){var t=Lf.get(e);return Ab(t),Lb(t)};const FO=function(){var e=u__namespace.useRef(null);function t(){It.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=It(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1);});e.current=i;}return u__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var WO=[Yn,ni,ri,kf],VO=[Yn,Ob],Db=!1,KO=!0;function zb(e){return e===ri||e===kf}const GO=function(e,t,n){var r=Co(Yh),o=G(r,2),i=o[0],a=o[1],l=FO(),s=G(l,2),c=s[0],d=s[1];function f(){a(Yn,!0);}var m=t?VO:WO;return Nb(function(){if(i!==Yh&&i!==kf){var h=m.indexOf(i),g=m[h+1],v=n(i);v===Db?a(g,!0):g&&c(function(p){function y(){p.isCanceled()||a(g,!0);}v===!0?y():Promise.resolve(v).then(y);});}},[e,i]),u__namespace.useEffect(function(){return function(){d();}},[]),[f,i]};function UO(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,c=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,h=r.onEnterPrepare,g=r.onLeavePrepare,v=r.onAppearStart,p=r.onEnterStart,y=r.onLeaveStart,b=r.onAppearActive,O=r.onEnterActive,P=r.onLeaveActive,w=r.onAppearEnd,$=r.onEnterEnd,S=r.onLeaveEnd,C=r.onVisibleChanged,I=Co(),M=G(I,2),L=M[0],_=M[1],E=Co(fo),x=G(E,2),R=x[0],k=x[1],T=Co(null),A=G(T,2),z=A[0],F=A[1],V=u.useRef(!1),j=u.useRef(null);function H(){return n()}var B=u.useRef(!1);function X(){k(fo,!0),F(null,!0);}function J(he){var ge=H();if(!(he&&!he.deadline&&he.target!==ge)){var be=B.current,Re;R===yl&&be?Re=w==null?void 0:w(ge,he):R===Cl&&be?Re=$==null?void 0:$(ge,he):R===Sl&&be&&(Re=S==null?void 0:S(ge,he)),R!==fo&&be&&Re!==!1&&X();}}var Q=HO(J),K=G(Q,1),Y=K[0],re=function(ge){var be,Re,De;switch(ge){case yl:return be={},U(be,Yn,m),U(be,ni,v),U(be,ri,b),be;case Cl:return Re={},U(Re,Yn,h),U(Re,ni,p),U(Re,ri,O),Re;case Sl:return De={},U(De,Yn,g),U(De,ni,y),U(De,ri,P),De;default:return {}}},ue=u__namespace.useMemo(function(){return re(R)},[R]),se=GO(R,!e,function(he){if(he===Yn){var ge=ue[Yn];return ge?ge(H()):Db}if(q in ue){var be;F(((be=ue[q])===null||be===void 0?void 0:be.call(ue,H(),null))||null);}return q===ri&&(Y(H()),d>0&&(clearTimeout(j.current),j.current=setTimeout(function(){J({deadline:!0});},d))),q===Ob&&X(),KO}),ee=G(se,2),ae=ee[0],q=ee[1],te=zb(q);B.current=te,Nb(function(){_(t);var he=V.current;V.current=!0;var ge;!he&&t&&l&&(ge=yl),he&&t&&i&&(ge=Cl),(he&&!t&&c||!he&&f&&!t&&c)&&(ge=Sl);var be=re(ge);ge&&(e||be[Yn])?(k(ge),ae()):k(fo);},[t]),u.useEffect(function(){(R===yl&&!l||R===Cl&&!i||R===Sl&&!c)&&k(fo);},[l,i,c]),u.useEffect(function(){return function(){V.current=!1,clearTimeout(j.current);}},[]);var ce=u__namespace.useRef(!1);u.useEffect(function(){L&&(ce.current=!0),L!==void 0&&R===fo&&((ce.current||L)&&(C==null||C(L)),ce.current=!0);},[L,R]);var fe=z;return ue[Yn]&&q===ni&&(fe=Z({transition:"none"},fe)),[R,q,fe,L??t]}function XO(e){var t=e;dt(e)==="object"&&(t=e.transitionSupport);function n(o,i){return !!(o.motionName&&t&&i!==!1)}var r=u__namespace.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,s=o.removeOnLeave,c=s===void 0?!0:s,d=o.forceRender,f=o.children,m=o.motionName,h=o.leavedClassName,g=o.eventProps,v=u__namespace.useContext(Ib),p=v.motion,y=n(o,p),b=u.useRef(),O=u.useRef();function P(){try{return b.current instanceof HTMLElement?b.current:as(O.current)}catch{return null}}var w=UO(y,l,P,o),$=G(w,4),S=$[0],C=$[1],I=$[2],M=$[3],L=u__namespace.useRef(M);M&&(L.current=!0);var _=u__namespace.useCallback(function(F){b.current=F,Nf(i,F);},[i]),E,x=Z(Z({},g),{},{visible:l});if(!f)E=null;else if(S===fo)M?E=f(Z({},x),_):!c&&L.current&&h?E=f(Z(Z({},x),{},{className:h}),_):d||!c&&!h?E=f(Z(Z({},x),{},{style:{display:"none"}}),_):E=null;else {var R,k;C===Yn?k="prepare":zb(C)?k="active":C===ni&&(k="start");var T=Jh(m,"".concat(S,"-").concat(k));E=f(Z(Z({},x),{},{className:W(Jh(m,S),(R={},U(R,T,T&&k),U(R,m,typeof m=="string"),R)),style:I}),_);}if(u__namespace.isValidElement(E)&&No(E)){var A=E,z=A.ref;z||(E=u__namespace.cloneElement(E,{ref:_}));}return u__namespace.createElement(DO,{ref:O},E)});return r.displayName="CSSMotion",r}const ro=XO(Tb);var ad="add",ld="keep",sd="remove",nu="removed";function YO(e){var t;return e&&dt(e)==="object"&&"key"in e?t=e:t={key:e},Z(Z({},t),{},{key:String(t.key)})}function cd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(YO)}function qO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=cd(e),a=cd(t);i.forEach(function(c){for(var d=!1,f=r;f<o;f+=1){var m=a[f];if(m.key===c.key){r<f&&(n=n.concat(a.slice(r,f).map(function(h){return Z(Z({},h),{},{status:ad})})),r=f),n.push(Z(Z({},m),{},{status:ld})),r+=1,d=!0;break}}d||n.push(Z(Z({},c),{},{status:sd}));}),r<o&&(n=n.concat(a.slice(r).map(function(c){return Z(Z({},c),{},{status:ad})})));var l={};n.forEach(function(c){var d=c.key;l[d]=(l[d]||0)+1;});var s=Object.keys(l).filter(function(c){return l[c]>1});return s.forEach(function(c){n=n.filter(function(d){var f=d.key,m=d.status;return f!==c||m!==sd}),n.forEach(function(d){d.key===c&&(d.status=ld);});}),n}var ZO=["component","children","onVisibleChanged","onAllRemoved"],QO=["status"],JO=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function eP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ro,n=function(r){to(i,r);var o=no(i);function i(){var a;pn(this,i);for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return a=o.call.apply(o,[this].concat(s)),U(id(a),"state",{keyEntities:[]}),U(id(a),"removeKey",function(d){var f=a.state.keyEntities,m=f.map(function(h){return h.key!==d?h:Z(Z({},h),{},{status:nu})});return a.setState({keyEntities:m}),m.filter(function(h){var g=h.status;return g!==nu}).length}),a}return bn(i,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,c=this.props,d=c.component,f=c.children,m=c.onVisibleChanged,h=c.onAllRemoved,g=Qe(c,ZO),v=d||u__namespace.Fragment,p={};return JO.forEach(function(y){p[y]=g[y],delete g[y];}),delete g.keys,u__namespace.createElement(v,g,s.map(function(y){var b=y.status,O=Qe(y,QO),P=b===ad||b===ld;return u__namespace.createElement(t,Ce({},p,{key:O.key,visible:P,eventProps:O,onVisibleChanged:function($){if(m==null||m($,{key:O.key}),!$){var S=l.removeKey(O.key);S===0&&h&&h();}}}),f)}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var c=l.keys,d=s.keyEntities,f=cd(c),m=qO(d,f);return {keyEntities:m.filter(function(h){var g=d.find(function(v){var p=v.key;return h.key===p});return !(g&&g.status===nu&&h.status===sd)})}}}]),i}(u__namespace.Component);return U(n,"defaultProps",{component:"div"}),n}eP(Tb);function tP(e){const{children:t}=e,[,n]=eo(),{motion:r}=n,o=u__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?u__namespace.createElement(kO,{motion:r},t):t}const nP=(e,t)=>{const[n,r]=eo();return Yu({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},To()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},rP=nP;var oP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const iP=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],aP="ant";let jb;function lP(){return jb||aP}function sP(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const cP=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(jb=t),r&&sP(r)&&PO(lP(),r);},uP=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:v,parentContext:p,iconPrefixCls:y,theme:b,componentDisabled:O,segmented:P,statistic:w,spin:$,calendar:S,carousel:C,cascader:I,collapse:M,typography:L,checkbox:_,descriptions:E,divider:x,drawer:R,skeleton:k,steps:T,image:A,layout:z,list:F,mentions:V,modal:j,progress:H,result:B,slider:X,breadcrumb:J,menu:Q,pagination:K,input:Y,empty:re,badge:ue,radio:se,rate:ee,switch:ae,transfer:q,avatar:te,message:ce,tag:fe,table:he,card:ge,tabs:be,timeline:Re,timePicker:De,upload:$e,notification:we,tree:Te,colorPicker:Je,datePicker:Ve}=e,Ye=u__namespace.useCallback((me,le)=>{const{prefixCls:Ne}=e;if(le)return le;const tt=Ne||p.getPrefixCls("");return me?`${tt}-${me}`:tt},[p.getPrefixCls,e.prefixCls]),Me=y||p.iconPrefixCls||$b,ke=Me!==p.iconPrefixCls,qe=n||p.csp,et=rP(Me,qe),ye=TO(b,p.theme),xe={csp:qe,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||v,direction:c,space:d,virtual:f,popupMatchSelectWidth:h??m,popupOverflow:g,getPrefixCls:Ye,iconPrefixCls:Me,theme:ye,segmented:P,statistic:w,spin:$,calendar:S,carousel:C,cascader:I,collapse:M,typography:L,checkbox:_,descriptions:E,divider:x,drawer:R,skeleton:k,steps:T,image:A,input:Y,layout:z,list:F,mentions:V,modal:j,progress:H,result:B,slider:X,breadcrumb:J,menu:Q,pagination:K,empty:re,badge:ue,radio:se,rate:ee,switch:ae,transfer:q,avatar:te,message:ce,tag:fe,table:he,card:ge,tabs:be,timeline:Re,timePicker:De,upload:$e,notification:we,tree:Te,colorPicker:Je,datePicker:Ve},ze=Object.assign({},p);Object.keys(xe).forEach(me=>{xe[me]!==void 0&&(ze[me]=xe[me]);}),iP.forEach(me=>{const le=e[me];le&&(ze[me]=le);});const Le=Ha(()=>ze,ze,(me,le)=>{const Ne=Object.keys(me),tt=Object.keys(le);return Ne.length!==tt.length||Ne.some(ct=>me[ct]!==le[ct])}),rt=u__namespace.useMemo(()=>({prefixCls:Me,csp:qe}),[Me,qe]);let Ue=ke?et(t):t;const de=u__namespace.useMemo(()=>{var me,le,Ne,tt;return NI(((me=Zr.Form)===null||me===void 0?void 0:me.defaultValidateMessages)||{},((Ne=(le=Le.locale)===null||le===void 0?void 0:le.Form)===null||Ne===void 0?void 0:Ne.defaultValidateMessages)||{},((tt=Le.form)===null||tt===void 0?void 0:tt.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Le,a==null?void 0:a.validateMessages]);Object.keys(de).length>0&&(Ue=u__namespace.createElement(kI.Provider,{value:de},t)),l&&(Ue=u__namespace.createElement(WI,{locale:l,_ANT_MARK__:HI},Ue)),(Me||qe)&&(Ue=u__namespace.createElement(_f.Provider,{value:rt},Ue)),s&&(Ue=u__namespace.createElement(_O,{size:s},Ue)),Ue=u__namespace.createElement(tP,null,Ue);const ne=u__namespace.useMemo(()=>{const me=ye||{},{algorithm:le,token:Ne}=me,tt=oP(me,["algorithm","token"]),ct=le&&(!Array.isArray(le)||le.length>0)?rs(le):void 0;return Object.assign(Object.assign({},tt),{theme:ct,token:Object.assign(Object.assign({},Fa),Ne)})},[ye]);return b&&(Ue=u__namespace.createElement(Sb.Provider,{value:ne},Ue)),O!==void 0&&(Ue=u__namespace.createElement(MO,{disabled:O},Ue)),u__namespace.createElement(ot.Provider,{value:Le},Ue)},ki=e=>{const t=u__namespace.useContext(ot),n=u__namespace.useContext(Rf);return u__namespace.createElement(uP,Object.assign({parentContext:t,legacyLocale:n},e))};ki.ConfigContext=ot;ki.SizeContext=nc;ki.config=cP;ki.useConfig=RO;Object.defineProperty(ki,"SizeContext",{get:()=>nc});const Af=ki;function Df(e,t,n,r){return function(i){const{prefixCls:a,style:l}=i,s=u__namespace.useRef(null),[c,d]=u__namespace.useState(0),[f,m]=u__namespace.useState(0),[h,g]=zt(!1,{value:i.open}),{getPrefixCls:v}=u__namespace.useContext(ot),p=v(t||"select",a);u__namespace.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const b=new ResizeObserver(P=>{const w=P[0].target;d(w.offsetHeight+8),m(w.offsetWidth);}),O=setInterval(()=>{var P;const w=n?`.${n(p)}`:`.${p}-dropdown`,$=(P=s.current)===null||P===void 0?void 0:P.querySelector(w);$&&(clearInterval(O),b.observe($));},10);return ()=>{clearInterval(O),b.disconnect();}}},[]);let y=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>s.current});return r&&(y=r(y)),u__namespace.createElement(Af,{theme:{token:{motion:!1}}},u__namespace.createElement("div",{ref:s,style:{paddingBottom:c,position:"relative",minWidth:f}},u__namespace.createElement(e,Object.assign({},y))))}}function Zn(e,t,n){return W({[`${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 Ka=(e,t)=>t||e,dP=e=>{const t=u.useContext(nc);return u.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},kn=dP;function Qn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return u.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Qn(r)):lf.isFragment(r)&&r.props?n=n.concat(Qn(r.props.children,t)):n.push(r));}),n}function Ia(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ia=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(_,E,x){_[E]=x.value;},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(_,E,x){return Object.defineProperty(_,E,{value:x,enumerable:!0,configurable:!0,writable:!0}),_[E]}try{s({},"");}catch{s=function(x,R,k){return x[R]=k};}function c(_,E,x,R){var k=E&&E.prototype instanceof m?E:m,T=Object.create(k.prototype),A=new I(R||[]);return r(T,"_invoke",{value:w(_,x,A)}),T}function d(_,E,x){try{return {type:"normal",arg:_.call(E,x)}}catch(R){return {type:"throw",arg:R}}}e.wrap=c;var f={};function m(){}function h(){}function g(){}var v={};s(v,i,function(){return this});var p=Object.getPrototypeOf,y=p&&p(p(M([])));y&&y!==t&&n.call(y,i)&&(v=y);var b=g.prototype=m.prototype=Object.create(v);function O(_){["next","throw","return"].forEach(function(E){s(_,E,function(x){return this._invoke(E,x)});});}function P(_,E){function x(k,T,A,z){var F=d(_[k],_,T);if(F.type!=="throw"){var V=F.arg,j=V.value;return j&&dt(j)=="object"&&n.call(j,"__await")?E.resolve(j.__await).then(function(H){x("next",H,A,z);},function(H){x("throw",H,A,z);}):E.resolve(j).then(function(H){V.value=H,A(V);},function(H){return x("throw",H,A,z)})}z(F.arg);}var R;r(this,"_invoke",{value:function(T,A){function z(){return new E(function(F,V){x(T,A,F,V);})}return R=R?R.then(z,z):z()}});}function w(_,E,x){var R="suspendedStart";return function(k,T){if(R==="executing")throw new Error("Generator is already running");if(R==="completed"){if(k==="throw")throw T;return L()}for(x.method=k,x.arg=T;;){var A=x.delegate;if(A){var z=$(A,x);if(z){if(z===f)continue;return z}}if(x.method==="next")x.sent=x._sent=x.arg;else if(x.method==="throw"){if(R==="suspendedStart")throw R="completed",x.arg;x.dispatchException(x.arg);}else x.method==="return"&&x.abrupt("return",x.arg);R="executing";var F=d(_,E,x);if(F.type==="normal"){if(R=x.done?"completed":"suspendedYield",F.arg===f)continue;return {value:F.arg,done:x.done}}F.type==="throw"&&(R="completed",x.method="throw",x.arg=F.arg);}}}function $(_,E){var x=E.method,R=_.iterator[x];if(R===void 0)return E.delegate=null,x==="throw"&&_.iterator.return&&(E.method="return",E.arg=void 0,$(_,E),E.method==="throw")||x!=="return"&&(E.method="throw",E.arg=new TypeError("The iterator does not provide a '"+x+"' method")),f;var k=d(R,_.iterator,E.arg);if(k.type==="throw")return E.method="throw",E.arg=k.arg,E.delegate=null,f;var T=k.arg;return T?T.done?(E[_.resultName]=T.value,E.next=_.nextLoc,E.method!=="return"&&(E.method="next",E.arg=void 0),E.delegate=null,f):T:(E.method="throw",E.arg=new TypeError("iterator result is not an object"),E.delegate=null,f)}function S(_){var E={tryLoc:_[0]};1 in _&&(E.catchLoc=_[1]),2 in _&&(E.finallyLoc=_[2],E.afterLoc=_[3]),this.tryEntries.push(E);}function C(_){var E=_.completion||{};E.type="normal",delete E.arg,_.completion=E;}function I(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(S,this),this.reset(!0);}function M(_){if(_){var E=_[i];if(E)return E.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var x=-1,R=function k(){for(;++x<_.length;)if(n.call(_,x))return k.value=_[x],k.done=!1,k;return k.value=void 0,k.done=!0,k};return R.next=R}}return {next:L}}function L(){return {value:void 0,done:!0}}return h.prototype=g,r(b,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:h,configurable:!0}),h.displayName=s(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(_){var E=typeof _=="function"&&_.constructor;return !!E&&(E===h||(E.displayName||E.name)==="GeneratorFunction")},e.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,g):(_.__proto__=g,s(_,l,"GeneratorFunction")),_.prototype=Object.create(b),_},e.awrap=function(_){return {__await:_}},O(P.prototype),s(P.prototype,a,function(){return this}),e.AsyncIterator=P,e.async=function(_,E,x,R,k){k===void 0&&(k=Promise);var T=new P(c(_,E,x,R),k);return e.isGeneratorFunction(E)?T:T.next().then(function(A){return A.done?A.value:T.next()})},O(b),s(b,l,"Generator"),s(b,i,function(){return this}),s(b,"toString",function(){return "[object Generator]"}),e.keys=function(_){var E=Object(_),x=[];for(var R in E)x.push(R);return x.reverse(),function k(){for(;x.length;){var T=x.pop();if(T in E)return k.value=T,k.done=!1,k}return k.done=!0,k}},e.values=M,I.prototype={constructor:I,reset:function(E){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!E)for(var x in this)x.charAt(0)==="t"&&n.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=void 0);},stop:function(){this.done=!0;var E=this.tryEntries[0].completion;if(E.type==="throw")throw E.arg;return this.rval},dispatchException:function(E){if(this.done)throw E;var x=this;function R(V,j){return A.type="throw",A.arg=E,x.next=V,j&&(x.method="next",x.arg=void 0),!!j}for(var k=this.tryEntries.length-1;k>=0;--k){var T=this.tryEntries[k],A=T.completion;if(T.tryLoc==="root")return R("end");if(T.tryLoc<=this.prev){var z=n.call(T,"catchLoc"),F=n.call(T,"finallyLoc");if(z&&F){if(this.prev<T.catchLoc)return R(T.catchLoc,!0);if(this.prev<T.finallyLoc)return R(T.finallyLoc)}else if(z){if(this.prev<T.catchLoc)return R(T.catchLoc,!0)}else {if(!F)throw new Error("try statement without catch or finally");if(this.prev<T.finallyLoc)return R(T.finallyLoc)}}}},abrupt:function(E,x){for(var R=this.tryEntries.length-1;R>=0;--R){var k=this.tryEntries[R];if(k.tryLoc<=this.prev&&n.call(k,"finallyLoc")&&this.prev<k.finallyLoc){var T=k;break}}T&&(E==="break"||E==="continue")&&T.tryLoc<=x&&x<=T.finallyLoc&&(T=null);var A=T?T.completion:{};return A.type=E,A.arg=x,T?(this.method="next",this.next=T.finallyLoc,f):this.complete(A)},complete:function(E,x){if(E.type==="throw")throw E.arg;return E.type==="break"||E.type==="continue"?this.next=E.arg:E.type==="return"?(this.rval=this.arg=E.arg,this.method="return",this.next="end"):E.type==="normal"&&x&&(this.next=x),f},finish:function(E){for(var x=this.tryEntries.length-1;x>=0;--x){var R=this.tryEntries[x];if(R.finallyLoc===E)return this.complete(R.completion,R.afterLoc),C(R),f}},catch:function(E){for(var x=this.tryEntries.length-1;x>=0;--x){var R=this.tryEntries[x];if(R.tryLoc===E){var k=R.completion;if(k.type==="throw"){var T=k.arg;C(R);}return T}}throw new Error("illegal catch attempt")},delegateYield:function(E,x,R){return this.delegate={iterator:M(E),resultName:x,nextLoc:R},this.method==="next"&&(this.arg=void 0),f}},e}function tg(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value;}catch(c){n(c);return}l.done?t(s):Promise.resolve(s).then(r,o);}function Bb(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){tg(i,r,o,a,l,"next",s);}function l(s){tg(i,r,o,a,l,"throw",s);}a(void 0);})}}function vn(e,t){var n=Z({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}const Vn=u__namespace.createContext({}),Oa=e=>{let{children:t,status:n,override:r}=e;const o=u.useContext(Vn),i=u.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return u__namespace.createElement(Vn.Provider,{value:i},t)},vi=e=>e?typeof e=="function"?e():e:null,ru=()=>({height:0,opacity:0}),ng=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},fP=e=>({height:e?e.offsetHeight:0}),ou=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Hb=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:ru,onEnterStart:ru,onAppearActive:ng,onEnterActive:ng,onLeaveStart:fP,onLeaveActive:ru,onAppearEnd:ou,onEnterEnd:ou,onLeaveEnd:ou,motionDeadline:500}},mP=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",rc=(e,t,n)=>n!==void 0?n:`${e}-${t}`;var Fb=u__namespace.createContext(null),rg=[];function hP(e,t){var n=u__namespace.useState(function(){if(!En())return null;var g=document.createElement("div");return g}),r=G(n,1),o=r[0],i=u__namespace.useRef(!1),a=u__namespace.useContext(Fb),l=u__namespace.useState(rg),s=G(l,2),c=s[0],d=s[1],f=a||(i.current?void 0:function(g){d(function(v){var p=[g].concat(Ge(v));return p});});function m(){o.parentElement||document.body.appendChild(o),i.current=!0;}function h(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),i.current=!1;}return Ft(function(){return e?a?a(m):m():h(),h},[e]),Ft(function(){c.length&&(c.forEach(function(g){return g()}),d(rg));},[c]),[o,f]}var iu;function gP(e){if(typeof document>"u")return 0;if(e||iu===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),iu=o-i;}return iu}function vP(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var pP="rc-util-locker-".concat(Date.now()),og=0;function bP(e){var t=!!e,n=u__namespace.useState(function(){return og+=1,"".concat(pP,"_").concat(og)}),r=G(n,1),o=r[0];Ft(function(){if(t){var i=gP(),a=vP();gi(`
html body {
overflow-y: hidden;
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
}`),o);}else ts(o);return function(){ts(o);}},[t,o]);}var ig=!1;function yP(e){return typeof e=="boolean"&&(ig=e),ig}var ag=function(t){return t===!1?!1:!En()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Wb=u__namespace.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,l=e.children,s=u__namespace.useState(n),c=G(s,2),d=c[0],f=c[1],m=d||n;u__namespace.useEffect(function(){(a||n)&&f(n);},[n,a]);var h=u__namespace.useState(function(){return ag(o)}),g=G(h,2),v=g[0],p=g[1];u__namespace.useEffect(function(){var L=ag(o);p(L??null);});var y=hP(m&&!v),b=G(y,2),O=b[0],P=b[1],w=v??O;bP(r&&n&&En()&&(w===O||w===document.body));var $=null;if(l&&No(l)&&t){var S=l;$=S.ref;}var C=Va($,t);if(!m||!En()||v===void 0)return null;var I=w===!1||yP(),M=l;return t&&(M=u__namespace.cloneElement(l,{ref:C})),u__namespace.createElement(Fb.Provider,{value:P},I?M:Qv.createPortal(M,w))}),Vb=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[];}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r]);},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1);},t.prototype.has=function(n){return !!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0);},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0]);}},t}()}(),ud=typeof window<"u"&&typeof document<"u"&&window.document===document,ss=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),CP=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ss):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),SP=2;function wP(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l();}function a(){CP(i);}function l(){var s=Date.now();if(n){if(s-o<SP)return;r=!0;}else n=!0,r=!1,setTimeout(a,t);o=s;}return l}var $P=20,xP=["top","right","bottom","left","width","height","size","weight"],EP=typeof MutationObserver<"u",IP=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=wP(this.refresh.bind(this),$P);}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_();},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_();},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh();},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!ud||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),EP?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0);},e.prototype.disconnect_=function(){!ud||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1);},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=xP.some(function(i){return !!~r.indexOf(i)});o&&this.refresh();},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Kb=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0});}return e},pi=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ss},Gb=oc(0,0,0,0);function cs(e){return parseFloat(e)||0}function lg(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+cs(i)},0)}function OP(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=cs(a);}return n}function PP(e){var t=e.getBBox();return oc(0,0,t.width,t.height)}function MP(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Gb;var r=pi(e).getComputedStyle(e),o=OP(r),i=o.left+o.right,a=o.top+o.bottom,l=cs(r.width),s=cs(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=lg(r,"left","right")+i),Math.round(s+a)!==n&&(s-=lg(r,"top","bottom")+a)),!RP(e)){var c=Math.round(l+i)-t,d=Math.round(s+a)-n;Math.abs(c)!==1&&(l-=c),Math.abs(d)!==1&&(s-=d);}return oc(o.left,o.top,l,s)}var _P=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof pi(e).SVGGraphicsElement}:function(e){return e instanceof pi(e).SVGElement&&typeof e.getBBox=="function"}}();function RP(e){return e===pi(e).document.documentElement}function TP(e){return ud?_P(e)?PP(e):MP(e):Gb}function NP(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Kb(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function oc(e,t,n,r){return {x:e,y:t,width:n,height:r}}var kP=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=oc(0,0,0,0),this.target=t;}return e.prototype.isActive=function(){var t=TP(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),LP=function(){function e(t,n){var r=NP(n);Kb(this,{target:t,contentRect:r});}return e}(),AP=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Vb,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r;}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof pi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new kP(t)),this.controller_.addObserver(this),this.controller_.refresh());}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof pi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this));}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this);},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n);});},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new LP(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive();}},e.prototype.clearActive=function(){this.activeObservations_.splice(0);},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ub=typeof WeakMap<"u"?new WeakMap:new Vb,Xb=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=IP.getInstance(),r=new AP(t,n,this);Ub.set(this,r);}return e}();["observe","unobserve","disconnect"].forEach(function(e){Xb.prototype[e]=function(){var t;return (t=Ub.get(this))[e].apply(t,arguments)};});var DP=function(){return typeof ss.ResizeObserver<"u"?ss.ResizeObserver:Xb}(),Gr=new Map;function zP(e){e.forEach(function(t){var n,r=t.target;(n=Gr.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var Yb=new DP(zP);function jP(e,t){Gr.has(e)||(Gr.set(e,new Set),Yb.observe(e)),Gr.get(e).add(t);}function BP(e,t){Gr.has(e)&&(Gr.get(e).delete(t),Gr.get(e).size||(Yb.unobserve(e),Gr.delete(e)));}var HP=function(e){to(n,e);var t=no(n);function n(){return pn(this,n),t.apply(this,arguments)}return bn(n,[{key:"render",value:function(){return this.props.children}}]),n}(u__namespace.Component),dd=u__namespace.createContext(null);function FP(e){var t=e.children,n=e.onBatchResize,r=u__namespace.useRef(0),o=u__namespace.useRef([]),i=u__namespace.useContext(dd),a=u__namespace.useCallback(function(l,s,c){r.current+=1;var d=r.current;o.current.push({size:l,element:s,data:c}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[]);}),i==null||i(l,s,c);},[n,i]);return u__namespace.createElement(dd.Provider,{value:a},t)}function WP(e,t){var n=e.children,r=e.disabled,o=u__namespace.useRef(null),i=u__namespace.useRef(null),a=u__namespace.useContext(dd),l=typeof n=="function",s=l?n(o):n,c=u__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&u__namespace.isValidElement(s)&&No(s),f=d?s.ref:null,m=u__namespace.useMemo(function(){return Sn(f,o)},[f,o]),h=function(){return as(o.current)||as(i.current)};u__namespace.useImperativeHandle(t,function(){return h()});var g=u__namespace.useRef(e);g.current=e;var v=u__namespace.useCallback(function(p){var y=g.current,b=y.onResize,O=y.data,P=p.getBoundingClientRect(),w=P.width,$=P.height,S=p.offsetWidth,C=p.offsetHeight,I=Math.floor(w),M=Math.floor($);if(c.current.width!==I||c.current.height!==M||c.current.offsetWidth!==S||c.current.offsetHeight!==C){var L={width:I,height:M,offsetWidth:S,offsetHeight:C};c.current=L;var _=S===Math.round(w)?w:S,E=C===Math.round($)?$:C,x=Z(Z({},L),{},{offsetWidth:_,offsetHeight:E});a==null||a(x,p,O),b&&Promise.resolve().then(function(){b(x,p);});}},[]);return u__namespace.useEffect(function(){var p=h();return p&&!r&&jP(p,v),function(){return BP(p,v)}},[o.current,r]),u__namespace.createElement(HP,{ref:i},d?u__namespace.cloneElement(s,{ref:m}):s)}var VP=u__namespace.forwardRef(WP),KP="rc-observer-key";function GP(e,t){var n=e.children,r=typeof n=="function"?[n]:Qn(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(KP,"-").concat(i);return u__namespace.createElement(VP,Ce({},e,{key:a,ref:i===0?t:void 0}),o)})}var Tr=u__namespace.forwardRef(GP);Tr.Collection=FP;function UP(){var e=Z({},u__namespace);return e.useId}var sg=0;function XP(e){var t=u__namespace.useState("ssr-id"),n=G(t,2),r=n[0],o=n[1],i=UP(),a=i==null?void 0:i();return u__namespace.useEffect(function(){if(!i){var l=sg;sg+=1,o("rc_unique_".concat(l));}},[]),e||a||r}const ic=function(){if(typeof navigator>"u"||typeof window>"u")return !1;var e=navigator.userAgent||navigator.vendor||window.opera;return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var cg=u__namespace.createContext(null);function ug(e){return e?Array.isArray(e)?e:[e]:[]}function YP(e,t,n,r){return u__namespace.useMemo(function(){var o=ug(n??t),i=ug(r??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}const zf=function(e){if(!e)return !1;if(e instanceof Element){if(e.offsetParent)return !0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return !0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return !0}}return !1};function qP(){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 ZP(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,s=i[a];if(qP((l=e[s])===null||l===void 0?void 0:l.points,o,r))return "".concat(t,"-placement-").concat(s)}return ""}function dg(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ga(e){return e.ownerDocument.defaultView}function fd(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Ga(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,l=o.overflow;[i,a,l].some(function(s){return r.includes(s)})&&t.push(n),n=n.parentElement;}return t}function Pa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Gi(e){return Pa(parseFloat(e),0)}function fg(e,t){var n=Z({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement)){var o=Ga(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,c=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,h=r.clientHeight,g=r.offsetWidth,v=r.clientWidth,p=Gi(l),y=Gi(s),b=Gi(c),O=Gi(d),P=Pa(Math.round(f.width/g*1e3)/1e3),w=Pa(Math.round(f.height/m*1e3)/1e3),$=(g-v-b-O)*P,S=(m-h-p-y)*w,C=p*w,I=y*w,M=b*P,L=O*P,_=0,E=0;if(i==="clip"){var x=Gi(a);_=x*P,E=x*w;}var R=f.x+M-_,k=f.y+C-E,T=R+f.width+2*_-M-L-$,A=k+f.height+2*E-C-I-S;n.left=Math.max(n.left,R),n.top=Math.max(n.top,k),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,A);}}),n}function mg(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 hg(e,t){var n=t||[],r=G(n,2),o=r[0],i=r[1];return [mg(e.width,o),mg(e.height,i)]}function gg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function Ho(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Br(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 QP(e,t,n,r,o,i,a){var l=u__namespace.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=G(l,2),c=s[0],d=s[1],f=u__namespace.useRef(0),m=u__namespace.useMemo(function(){return t?fd(t):[]},[t]),h=u__namespace.useRef({}),g=function(){h.current={};};e||g();var v=_n(function(){if(t&&n&&e){let it=function(gt,Pt){var Gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ee,Gn=M.x+gt,un=M.y+Pt,or=Gn+j,An=un+V,so=Math.max(Gn,Gt.left),ul=Math.max(un,Gt.top),Hi=Math.min(or,Gt.right),dl=Math.min(An,Gt.bottom);return Math.max(0,(Hi-so)*(dl-ul))},yt=function(){Ee=M.y+Le,_e=Ee+V,Ze=M.x+ze,ft=Ze+j;};var b=t,O=b.style.left,P=b.style.top,w=b.ownerDocument,$=Ga(b),S=Z(Z({},o[r]),i);b.style.left="0",b.style.top="0";var C;if(Array.isArray(n))C={x:n[0],y:n[1],width:0,height:0};else {var I=n.getBoundingClientRect();C={x:I.x,y:I.y,width:I.width,height:I.height};}var M=b.getBoundingClientRect(),L=$.getComputedStyle(b),_=L.width,E=L.height,x=w.documentElement,R=x.clientWidth,k=x.clientHeight,T=x.scrollWidth,A=x.scrollHeight,z=x.scrollTop,F=x.scrollLeft,V=M.height,j=M.width,H=C.height,B=C.width,X={left:0,top:0,right:R,bottom:k},J={left:-F,top:-z,right:T-F,bottom:A-z},Q=S.htmlRegion,K="visible",Y="visibleFirst";Q!=="scroll"&&Q!==Y&&(Q=K);var re=Q===Y,ue=fg(J,m),se=fg(X,m),ee=Q===K?se:ue,ae=re?se:ee;b.style.left=O,b.style.top=P;var q=Pa(Math.round(j/parseFloat(_)*1e3)/1e3),te=Pa(Math.round(V/parseFloat(E)*1e3)/1e3);if(q===0||te===0||is(n)&&!zf(n))return;var ce=S.offset,fe=S.targetOffset,he=hg(M,ce),ge=G(he,2),be=ge[0],Re=ge[1],De=hg(C,fe),$e=G(De,2),we=$e[0],Te=$e[1];C.x-=we,C.y-=Te;var Je=S.points||[],Ve=G(Je,2),Ye=Ve[0],Me=Ve[1],ke=gg(Me),qe=gg(Ye),et=Ho(C,ke),ye=Ho(M,qe),xe=Z({},S),ze=et.x-ye.x+be,Le=et.y-ye.y+Re,rt=it(ze,Le),Ue=it(ze,Le,se),de=Ho(C,["t","l"]),ne=Ho(M,["t","l"]),me=Ho(C,["b","r"]),le=Ho(M,["b","r"]),Ne=S.overflow||{},tt=Ne.adjustX,ct=Ne.adjustY,Ae=Ne.shiftX,Se=Ne.shiftY,ve=function(Pt){return typeof Pt=="boolean"?Pt:Pt>=0},Ee,_e,Ze,ft;yt();var pt=ve(ct),Vt=qe[0]===ke[0];if(pt&&qe[0]==="t"&&(_e>ae.bottom||h.current.bt)){var jt=Le;Vt?jt-=V-H:jt=de.y-le.y-Re;var Fe=it(ze,jt),Xe=it(ze,jt,se);Fe>rt||Fe===rt&&(!re||Xe>=Ue)?(h.current.bt=!0,Le=jt,xe.points=[Br(qe,0),Br(ke,0)]):h.current.bt=!1;}if(pt&&qe[0]==="b"&&(Ee<ae.top||h.current.tb)){var je=Le;Vt?je+=V-H:je=me.y-ne.y-Re;var bt=it(ze,je),ht=it(ze,je,se);bt>rt||bt===rt&&(!re||ht>=Ue)?(h.current.tb=!0,Le=je,xe.points=[Br(qe,0),Br(ke,0)]):h.current.tb=!1;}var Yt=ve(tt),Be=qe[1]===ke[1];if(Yt&&qe[1]==="l"&&(ft>ae.right||h.current.rl)){var Ke=ze;Be?Ke-=j-B:Ke=de.x-le.x-be;var ut=it(Ke,Le),wt=it(Ke,Le,se);ut>rt||ut===rt&&(!re||wt>=Ue)?(h.current.rl=!0,ze=Ke,xe.points=[Br(qe,1),Br(ke,1)]):h.current.rl=!1;}if(Yt&&qe[1]==="r"&&(Ze<ae.left||h.current.lr)){var Kt=ze;Be?Kt+=j-B:Kt=me.x-ne.x-be;var Lt=it(Kt,Le),cn=it(Kt,Le,se);Lt>rt||Lt===rt&&(!re||cn>=Ue)?(h.current.lr=!0,ze=Kt,xe.points=[Br(qe,1),Br(ke,1)]):h.current.lr=!1;}yt();var $n=Ae===!0?0:Ae;typeof $n=="number"&&(Ze<ee.left&&(ze-=Ze-ee.left,C.x+B<ee.left+$n&&(ze+=C.x-ee.left+B-$n)),ft>ee.right&&(ze-=ft-ee.right,C.x>ee.right-$n&&(ze+=C.x-ee.right+$n)));var Kn=Se===!0?0:Se;typeof Kn=="number"&&(Ee<ee.top&&(Le-=Ee-ee.top,C.y+H<ee.top+Kn&&(Le+=C.y-ee.top+H-Kn)),_e>ee.bottom&&(Le-=_e-ee.bottom,C.y>ee.bottom-Kn&&(Le+=C.y-ee.bottom+Kn)));var yr=M.x+ze,rr=yr+j,Ln=M.y+Le,yn=Ln+V,Cr=C.x,oo=Cr+B,Sr=C.y,wr=Sr+H,$r=Math.max(yr,Cr),io=Math.min(rr,oo),ao=($r+io)/2,lo=ao-yr,xr=Math.max(Ln,Sr),Ot=Math.min(yn,wr),Oe=(xr+Ot)/2,Ie=Oe-Ln;a==null||a(t,xe),d({ready:!0,offsetX:ze/q,offsetY:Le/te,arrowX:lo/q,arrowY:Ie/te,scaleX:q,scaleY:te,align:xe});}}),p=function(){f.current+=1;var O=f.current;Promise.resolve().then(function(){f.current===O&&v();});},y=function(){d(function(O){return Z(Z({},O),{},{ready:!1})});};return Ft(y,[r]),Ft(function(){e||y();},[e]),[c.ready,c.offsetX,c.offsetY,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function JP(e,t,n,r){Ft(function(){if(e&&t&&n){let d=function(){r();};var o=t,i=n,a=fd(o),l=fd(i),s=Ga(i),c=new Set([s].concat(Ge(a),Ge(l)));return c.forEach(function(f){f.addEventListener("scroll",d,{passive:!0});}),s.addEventListener("resize",d,{passive:!0}),r(),function(){c.forEach(function(f){f.removeEventListener("scroll",d),s.removeEventListener("resize",d);});}}},[e,t,n]);}function eM(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,c=s===void 0?0:s,d=o.y,f=d===void 0?0:d,m=u__namespace.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],v=n.points[1],p=g[0],y=g[1],b=v[0],O=v[1];p===b||!["t","b"].includes(p)?h.top=f:p==="t"?h.top=0:h.bottom=0,y===O||!["l","r"].includes(y)?h.left=c:y==="l"?h.left=0:h.right=0;}return u__namespace.createElement("div",{ref:m,className:W("".concat(t,"-arrow"),a),style:h},l)}function tM(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?u__namespace.createElement(ro,Ce({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return u__namespace.createElement("div",{style:{zIndex:r},className:W("".concat(t,"-mask"),l)})}):null}var nM=u__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),rM=u__namespace.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,d=e.onClick,f=e.mask,m=e.arrow,h=e.arrowPos,g=e.align,v=e.motion,p=e.maskMotion,y=e.forceRender,b=e.getPopupContainer,O=e.autoDestroy,P=e.portal,w=e.zIndex,$=e.onMouseEnter,S=e.onMouseLeave,C=e.ready,I=e.offsetX,M=e.offsetY,L=e.onAlign,_=e.onPrepare,E=e.stretch,x=e.targetWidth,R=e.targetHeight,k=typeof n=="function"?n():n,T=s||c,A=(b==null?void 0:b.length)>0,z=u__namespace.useState(!b||!A),F=G(z,2),V=F[0],j=F[1];if(Ft(function(){!V&&A&&a&&j(!0);},[V,A,a]),!V)return null;var H=C||!s?{left:I,top:M}:{left:"-1000vw",top:"-1000vh"},B={};return E&&(E.includes("height")&&R?B.height=R:E.includes("minHeight")&&R&&(B.minHeight=R),E.includes("width")&&x?B.width=x:E.includes("minWidth")&&x&&(B.minWidth=x)),s||(B.pointerEvents="none"),u__namespace.createElement(P,{open:y||T,getContainer:b&&function(){return b(a)},autoDestroy:O},u__namespace.createElement(tM,{prefixCls:o,open:s,zIndex:w,mask:f,motion:p}),u__namespace.createElement(Tr,{onResize:L,disabled:!s},function(X){return u__namespace.createElement(ro,Ce({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:_,onEnterPrepare:_,visible:s,onVisibleChanged:function(Q){var K;v==null||(K=v.onVisibleChanged)===null||K===void 0||K.call(v,Q),l(Q);}}),function(J,Q){var K=J.className,Y=J.style,re=W(o,K,r);return u__namespace.createElement("div",{ref:Sn(X,t,Q),className:re,style:Z(Z(Z(Z({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},H),B),Y),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:$,onMouseLeave:S,onClick:d},m&&u__namespace.createElement(eM,{prefixCls:o,arrow:m,arrowPos:h,align:g}),u__namespace.createElement(nM,{cache:!s},k))})}))}),oM=u__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=No(n),i=u__namespace.useCallback(function(l){Nf(t,r?r(l):l);},[r]),a=Va(i,n.ref);return o?u__namespace.cloneElement(n,{ref:a}):n}),iM=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function aM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wb,t=u__namespace.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,s=l===void 0?"hover":l,c=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,h=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,v=n.mouseEnterDelay,p=n.mouseLeaveDelay,y=p===void 0?.1:p,b=n.focusDelay,O=n.blurDelay,P=n.mask,w=n.maskClosable,$=w===void 0?!0:w,S=n.getPopupContainer,C=n.forceRender,I=n.autoDestroy,M=n.destroyPopupOnHide,L=n.popup,_=n.popupClassName,E=n.popupStyle,x=n.popupPlacement,R=n.builtinPlacements,k=R===void 0?{}:R,T=n.popupAlign,A=n.zIndex,z=n.stretch,F=n.getPopupClassNameFromAlign,V=n.alignPoint,j=n.onPopupClick,H=n.onPopupAlign,B=n.arrow,X=n.popupMotion,J=n.maskMotion,Q=n.popupTransitionName,K=n.popupAnimation,Y=n.maskTransitionName,re=n.maskAnimation,ue=n.className,se=n.getTriggerDOMNode,ee=Qe(n,iM),ae=I||M||!1,q=u__namespace.useState(!1),te=G(q,2),ce=te[0],fe=te[1];Ft(function(){fe(ic());},[]);var he=u__namespace.useRef({}),ge=u__namespace.useContext(cg),be=u__namespace.useMemo(function(){return {registerSubPopup:function(at,Rt){he.current[at]=Rt,ge==null||ge.registerSubPopup(at,Rt);}}},[ge]),Re=XP(),De=u__namespace.useState(null),$e=G(De,2),we=$e[0],Te=$e[1],Je=_n(function(We){is(We)&&we!==We&&Te(We),ge==null||ge.registerSubPopup(Re,We);}),Ve=u__namespace.useState(null),Ye=G(Ve,2),Me=Ye[0],ke=Ye[1],qe=_n(function(We){is(We)&&Me!==We&&ke(We);}),et=u__namespace.Children.only(a),ye=(et==null?void 0:et.props)||{},xe={},ze=_n(function(We){var at,Rt,Nt=Me;return (Nt==null?void 0:Nt.contains(We))||(Nt==null||(at=Nt.getRootNode())===null||at===void 0?void 0:at.host)===We||We===Nt||(we==null?void 0:we.contains(We))||(we==null||(Rt=we.getRootNode())===null||Rt===void 0?void 0:Rt.host)===We||We===we||Object.values(he.current).some(function(Mt){return (Mt==null?void 0:Mt.contains(We))||We===Mt})}),Le=dg(i,X,K,Q),rt=dg(i,J,re,Y),Ue=u__namespace.useState(m||!1),de=G(Ue,2),ne=de[0],me=de[1],le=f??ne,Ne=_n(function(We){f===void 0&&me(We);});Ft(function(){me(f||!1);},[f]);var tt=u__namespace.useRef(le);tt.current=le;var ct=_n(function(We){le!==We&&(Ne(We),h==null||h(We));}),Ae=u__namespace.useRef(),Se=function(){clearTimeout(Ae.current);},ve=function(at){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Se(),Rt===0?ct(at):Ae.current=setTimeout(function(){ct(at);},Rt*1e3);};u__namespace.useEffect(function(){return Se},[]);var Ee=u__namespace.useState(!1),_e=G(Ee,2),Ze=_e[0],ft=_e[1],pt=u__namespace.useRef(!0);Ft(function(){(!pt.current||le)&&ft(!0),pt.current=!0;},[le]);var Vt=u__namespace.useState(null),jt=G(Vt,2),Fe=jt[0],Xe=jt[1],je=u__namespace.useState([0,0]),bt=G(je,2),ht=bt[0],Yt=bt[1],Be=function(at){Yt([at.clientX,at.clientY]);},Ke=QP(le,we,V?ht:Me,x,k,T,H),ut=G(Ke,9),wt=ut[0],Kt=ut[1],Lt=ut[2],cn=ut[3],$n=ut[4],Kn=ut[5],yr=ut[6],rr=ut[7],Ln=ut[8],yn=_n(function(){Ze||Ln();});JP(le,Me,we,yn),Ft(function(){yn();},[ht,x]),Ft(function(){le&&!(k!=null&&k[x])&&yn();},[JSON.stringify(T)]);var Cr=u__namespace.useMemo(function(){var We=ZP(k,i,rr,V);return W(We,F==null?void 0:F(rr))},[rr,F,k,i,V]);u__namespace.useImperativeHandle(r,function(){return {forceAlign:yn}});var oo=function(at){ft(!1),Ln(),g==null||g(at);},Sr=function(){return new Promise(function(at){Xe(function(){return at});})};Ft(function(){Fe&&(Ln(),Fe(),Xe(null));},[Fe]);var wr=u__namespace.useState(0),$r=G(wr,2),io=$r[0],ao=$r[1],lo=u__namespace.useState(0),xr=G(lo,2),Ot=xr[0],Oe=xr[1],Ie=function(at,Rt){if(yn(),z){var Nt=Rt.getBoundingClientRect();ao(Nt.width),Oe(Nt.height);}},it=YP(ce,s,c,d),yt=G(it,2),gt=yt[0],Pt=yt[1],Gt=function(at,Rt,Nt,Mt){xe[at]=function(Fi){var zo;Mt==null||Mt(Fi),ve(Rt,Nt);for(var co=arguments.length,jo=new Array(co>1?co-1:0),fl=1;fl<co;fl++)jo[fl-1]=arguments[fl];(zo=ye[at])===null||zo===void 0||zo.call.apply(zo,[ye,Fi].concat(jo));};},Gn=gt.has("click"),un=Pt.has("click")||Pt.has("contextMenu");(Gn||un)&&(xe.onClick=function(We){var at;tt.current&&un?ve(!1):!tt.current&&Gn&&(Be(We),ve(!0));for(var Rt=arguments.length,Nt=new Array(Rt>1?Rt-1:0),Mt=1;Mt<Rt;Mt++)Nt[Mt-1]=arguments[Mt];(at=ye.onClick)===null||at===void 0||at.call.apply(at,[ye,We].concat(Nt));}),u__namespace.useEffect(function(){if(un&&we&&(!P||$)){var We=!1,at=function(co){var jo=co.target;We=ze(jo);},Rt=function(co){var jo=co.target;tt.current&&!We&&!ze(jo)&&ve(!1);},Nt=Ga(we),Mt=Me==null?void 0:Me.getRootNode();Nt.addEventListener("mousedown",at),Nt.addEventListener("click",Rt);var Fi=Mt&&Mt!==Me.ownerDocument;return Fi&&(Mt.addEventListener("mousedown",at),Mt.addEventListener("click",Rt)),function(){Nt.removeEventListener("mousedown",at),Nt.removeEventListener("click",Rt),Fi&&(Mt.removeEventListener("mousedown",at),Mt.removeEventListener("click",Rt));}}},[un,Me,we,P,$]);var or=gt.has("hover"),An=Pt.has("hover"),so,ul;or&&(Gt("onMouseEnter",!0,v,function(We){Be(We);}),so=function(){ve(!0,v);},V&&(xe.onMouseMove=function(We){var at;(at=ye.onMouseMove)===null||at===void 0||at.call(ye,We);})),An&&(Gt("onMouseLeave",!1,y),ul=function(){ve(!1,y);}),gt.has("focus")&&Gt("onFocus",!0,b),Pt.has("focus")&&Gt("onBlur",!1,O),gt.has("contextMenu")&&(xe.onContextMenu=function(We){var at;Be(We),ve(!0),We.preventDefault();for(var Rt=arguments.length,Nt=new Array(Rt>1?Rt-1:0),Mt=1;Mt<Rt;Mt++)Nt[Mt-1]=arguments[Mt];(at=ye.onContextMenu)===null||at===void 0||at.call.apply(at,[ye,We].concat(Nt));}),ue&&(xe.className=W(ye.className,ue));var Hi=Z(Z({},ye),xe),dl={},GS=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];GS.forEach(function(We){ee[We]&&(dl[We]=function(){for(var at,Rt=arguments.length,Nt=new Array(Rt),Mt=0;Mt<Rt;Mt++)Nt[Mt]=arguments[Mt];(at=Hi[We])===null||at===void 0||at.call.apply(at,[Hi].concat(Nt)),ee[We].apply(ee,Nt);});});var US=u__namespace.cloneElement(et,Z(Z({},Hi),dl)),XS={x:cn,y:$n},YS=B?Z({},B!==!0?B:{}):null;return u__namespace.createElement(u__namespace.Fragment,null,u__namespace.createElement(Tr,{disabled:!le,ref:qe,onResize:Ie},u__namespace.createElement(oM,{getTriggerDOMNode:se},US)),u__namespace.createElement(cg.Provider,{value:be},u__namespace.createElement(rM,{portal:e,ref:Je,prefixCls:i,popup:L,className:W(_,Cr),style:E,target:Me,onMouseEnter:so,onMouseLeave:ul,zIndex:A,open:le,keepDom:Ze,onClick:j,mask:P,motion:Le,maskMotion:rt,onVisibleChanged:oo,onPrepare:Sr,forceRender:C,autoDestroy:ae,getPopupContainer:S,align:rr,arrow:YS,arrowPos:XS,ready:wt,offsetX:Kt,offsetY:Lt,onAlign:yn,stretch:z,targetWidth:io/Kn,targetHeight:Ot/yr})))});return t}const ac=aM(Wb);var Fo={shiftX:64,adjustY:1},Wo={adjustX:1,shiftY:!0},Dn=[0,0],lM={left:{points:["cr","cl"],overflow:Wo,offset:[-4,0],targetOffset:Dn},right:{points:["cl","cr"],overflow:Wo,offset:[4,0],targetOffset:Dn},top:{points:["bc","tc"],overflow:Fo,offset:[0,-4],targetOffset:Dn},bottom:{points:["tc","bc"],overflow:Fo,offset:[0,4],targetOffset:Dn},topLeft:{points:["bl","tl"],overflow:Fo,offset:[0,-4],targetOffset:Dn},leftTop:{points:["tr","tl"],overflow:Wo,offset:[-4,0],targetOffset:Dn},topRight:{points:["br","tr"],overflow:Fo,offset:[0,-4],targetOffset:Dn},rightTop:{points:["tl","tr"],overflow:Wo,offset:[4,0],targetOffset:Dn},bottomRight:{points:["tr","br"],overflow:Fo,offset:[0,4],targetOffset:Dn},rightBottom:{points:["bl","br"],overflow:Wo,offset:[4,0],targetOffset:Dn},bottomLeft:{points:["tl","bl"],overflow:Fo,offset:[0,4],targetOffset:Dn},leftBottom:{points:["br","bl"],overflow:Wo,offset:[-4,0],targetOffset:Dn}};function jf(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return u__namespace.createElement("div",{className:W("".concat(n,"-content"),i),style:a},u__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var sM=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],cM=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,s=t.mouseLeaveDelay,c=s===void 0?.1:s,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,h=t.children,g=t.onVisibleChange,v=t.afterVisibleChange,p=t.transitionName,y=t.animation,b=t.motion,O=t.placement,P=O===void 0?"right":O,w=t.align,$=w===void 0?{}:w,S=t.destroyTooltipOnHide,C=S===void 0?!1:S,I=t.defaultVisible,M=t.getTooltipContainer,L=t.overlayInnerStyle;t.arrowContent;var _=t.overlay,E=t.id,x=t.showArrow,R=x===void 0?!0:x,k=Qe(t,sM),T=u.useRef(null);u.useImperativeHandle(n,function(){return T.current});var A=Z({},k);"visible"in t&&(A.popupVisible=t.visible);var z=function(){return u__namespace.createElement(jf,{key:"content",prefixCls:m,id:E,overlayInnerStyle:L},_)};return u__namespace.createElement(ac,Ce({popupClassName:r,prefixCls:m,popup:z,action:i,builtinPlacements:lM,popupPlacement:P,ref:T,popupAlign:$,getPopupContainer:M,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:p,popupAnimation:y,popupMotion:b,defaultPopupVisible:I,autoDestroy:C,mouseLeaveDelay:c,popupStyle:d,mouseEnterDelay:l,arrow:R},A),h)};const uM=u.forwardRef(cM),qb=8;function Bf(e){const t=qb,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function $l(e,t){return e?t:{}}function Hf(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:l,contentRadius:s=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:d=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:h}=Bf({contentRadius:s,limitVerticalRadius:c});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},SO(r,o,i,l,a)),{"&:before":{background:l}})]},$l(!!f.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),$l(!!f.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),$l(!!f.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:m},[`&-placement-leftBottom ${n}-arrow`]:{bottom:m}})),$l(!!f.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:m},[`&-placement-rightBottom ${n}-arrow`]:{bottom:m}}))}}function dM(e,t,n,r){if(r===!1)return {adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.dropdownArrowOffset*2+n;break;case"left":case"right":i.shiftY=t.dropdownArrowOffsetVertical*2+n;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const vg={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"]}},fM={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"]}},mM=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Zb(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(vg).forEach(c=>{const d=r&&fM[c]||vg[c],f=Object.assign(Object.assign({},d),{offset:[0,0]});switch(s[c]=f,mM.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const m=Bf({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-m.dropdownArrowOffset-l;break;case"topRight":case"bottomRight":f.offset[0]=m.dropdownArrowOffset+l;break;case"leftTop":case"rightTop":f.offset[1]=-m.dropdownArrowOffset-l;break;case"leftBottom":case"rightBottom":f.offset[1]=m.dropdownArrowOffset+l;break}f.overflow=dM(c,m,t,n),a&&(f.htmlRegion="visibleFirst");}),s}const{isValidElement:Qr}=u__namespace;function Qb(e){return e&&Qr(e)&&e.type===u__namespace.Fragment}function hM(e,t,n){return Qr(e)?u__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Tn(e,t){return hM(e,e,t)}const gM=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},vM=gM,pM=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"}}}},Jb=Ut("Space",e=>[pM(e),vM(e)],()=>({}),{resetStyle:!1});var e0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lc=u__namespace.createContext(null),Li=(e,t)=>{const n=u__namespace.useContext(lc),r=u__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return W(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${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}},bi=e=>{let{children:t}=e;return u__namespace.createElement(lc.Provider,{value:null},t)},bM=e=>{var{children:t}=e,n=e0(e,["children"]);return u__namespace.createElement(lc.Provider,{value:n},t)},yM=e=>{const{getPrefixCls:t,direction:n}=u__namespace.useContext(ot),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:s,children:c}=e,d=e0(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=kn(O=>r??O),m=t("space-compact",a),[h,g]=Jb(m),v=W(m,g,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},l,s),p=u__namespace.useContext(lc),y=Qn(c),b=u__namespace.useMemo(()=>y.map((O,P)=>{const w=O&&O.key||`${m}-item-${P}`;return u__namespace.createElement(bM,{key:w,compactSize:f,compactDirection:o,isFirstItem:P===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:P===y.length-1&&(!p||(p==null?void 0:p.isLastItem))},O)}),[r,y,p]);return y.length===0?null:h(u__namespace.createElement("div",Object.assign({className:v},d),b))},CM=yM,SM=e=>{const t=e!=null&&e.algorithm?rs(e.algorithm):rs(Wa),n=Object.assign(Object.assign({},Fa),e==null?void 0:e.token);return cb(n,{override:e==null?void 0:e.token},t,wb)},wM=SM;function $M(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 xM=(e,t)=>{const n=t??Wa(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),$M(t??e)),Cb(r)),{controlHeight:o}),bb(Object.assign(Object.assign({},n),{controlHeight:o})))},EM=xM,Hr=(e,t)=>new Wt(e).setAlpha(t).toRgbString(),Vo=(e,t)=>new Wt(e).lighten(t).toHexString(),IM=e=>{const t=Rr(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]}},OM=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:Hr(r,.85),colorTextSecondary:Hr(r,.65),colorTextTertiary:Hr(r,.45),colorTextQuaternary:Hr(r,.25),colorFill:Hr(r,.18),colorFillSecondary:Hr(r,.12),colorFillTertiary:Hr(r,.08),colorFillQuaternary:Hr(r,.04),colorBgElevated:Vo(n,12),colorBgContainer:Vo(n,8),colorBgLayout:Vo(n,0),colorBgSpotlight:Vo(n,26),colorBorder:Vo(n,26),colorBorderSecondary:Vo(n,19)}},PM=(e,t)=>{const n=Object.keys(Tf).map(o=>{const i=Rr(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,l,s)=>(a[`${o}-${s+1}`]=i[s],a[`${o}${s+1}`]=i[s],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??Wa(e);return Object.assign(Object.assign(Object.assign({},r),n),yb(e,{generateColorPalettes:IM,generateNeutralColorPalettes:OM}))},MM=PM;function _M(){const[e,t,n]=eo();return {theme:e,token:t,hashId:n}}const yi={defaultConfig:os,defaultSeed:os.token,useToken:_M,defaultAlgorithm:Wa,darkAlgorithm:MM,compactAlgorithm:EM,getDesignToken:wM},RM=e=>({animationDuration:e,animationFillMode:"both"}),TM=e=>({animationDuration:e,animationFillMode:"both"}),Ff=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[`
${i}${e}-enter,
${i}${e}-appear
`]:Object.assign(Object.assign({},RM(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},TM(r)),{animationPlayState:"paused"}),[`
${i}${e}-enter${e}-enter-active,
${i}${e}-appear${e}-appear-active
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},NM=new _t("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kM=new _t("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),LM=new _t("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),AM=new _t("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),DM=new _t("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zM=new _t("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),jM=new _t("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),BM=new _t("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),HM={"move-up":{inKeyframes:jM,outKeyframes:BM},"move-down":{inKeyframes:NM,outKeyframes:kM},"move-left":{inKeyframes:LM,outKeyframes:AM},"move-right":{inKeyframes:DM,outKeyframes:zM}},us=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=HM[t];return [Ff(r,o,i,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Wf=new _t("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Vf=new _t("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Kf=new _t("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Gf=new _t("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),FM=new _t("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),WM=new _t("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),VM=new _t("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),KM=new _t("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),UM={"slide-up":{inKeyframes:Wf,outKeyframes:Vf},"slide-down":{inKeyframes:Kf,outKeyframes:Gf},"slide-left":{inKeyframes:FM,outKeyframes:WM},"slide-right":{inKeyframes:VM,outKeyframes:KM}},Jr=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=UM[t];return [Ff(r,o,i,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},XM=new _t("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),YM=new _t("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),pg=new _t("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bg=new _t("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),qM=new _t("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ZM=new _t("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),QM=new _t("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),JM=new _t("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),e_=new _t("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),t_=new _t("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),n_=new _t("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),r_=new _t("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),o_={zoom:{inKeyframes:XM,outKeyframes:YM},"zoom-big":{inKeyframes:pg,outKeyframes:bg},"zoom-big-fast":{inKeyframes:pg,outKeyframes:bg},"zoom-left":{inKeyframes:QM,outKeyframes:JM},"zoom-right":{inKeyframes:e_,outKeyframes:t_},"zoom-up":{inKeyframes:qM,outKeyframes:ZM},"zoom-down":{inKeyframes:n_,outKeyframes:r_}},sc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=o_[t];return [Ff(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},i_=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`}}}),t0=i_,a_=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:d,tooltipRadiusOuter:f}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${c/2}px ${d}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,qb)}},[`${t}-content`]:{position:"relative"}}),Eb(e,(m,h)=>{let{darkColor:g}=h;return {[`&${t}-${m}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},Hf(mt(e,{borderRadiusOuter:f}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},n0=(e,t)=>Ut("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:l}=r,s=mt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:l>4?4:l});return [a_(s),sc(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return {zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),l_=Ea.map(e=>`${e}-inverse`),s_=["success","processing","error","default","warning"];function r0(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ge(l_),Ge(Ea)).includes(e):Ea.includes(e)}function c_(e){return s_.includes(e)}function o0(e,t){const n=r0(t),r=W({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function u_(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=u__namespace.useContext(ot),s=l("tooltip",t),[c,d]=n0(s,!0),f=o0(s,i),m=Object.assign(Object.assign({},a),f.overlayStyle),h=f.arrowStyle;return c(u__namespace.createElement("div",{className:W(d,s,`${s}-pure`,`${s}-placement-${r}`,n,f.className),style:h},u__namespace.createElement("div",{className:`${s}-arrow`}),u__namespace.createElement(jf,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:m}),o)))}var d_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const{useToken:f_}=yi,m_=(e,t)=>{const n={},r=Object.assign({},e);return t.forEach(o=>{e&&o in e&&(n[o]=e[o],delete r[o]);}),{picked:n,omitted:r}};function h_(e,t){const n=e.type;if((n.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||n.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||n.__ANT_RADIO===!0&&e.props.disabled){const{picked:r,omitted:o}=m_(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=Object.assign(Object.assign({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},o),{pointerEvents:"none"}),l=Tn(e,{style:a,className:null});return u__namespace.createElement("span",{style:i,className:W(e.props.className,`${t}-disabled-compatible-wrapper`)},l)}return e}const i0=u__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:c,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:h,arrow:g=!0,title:v,overlay:p,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:O=!0}=e,P=!!g,{token:w}=f_(),{getPopupContainer:$,getPrefixCls:S,direction:C}=u__namespace.useContext(ot),I=u__namespace.useRef(null),M=()=>{var fe;(fe=I.current)===null||fe===void 0||fe.forceAlign();};u__namespace.useImperativeHandle(t,()=>({forceAlign:M,forcePopupAlign:()=>{M();}}));const[L,_]=zt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),E=!v&&!p&&v!==0,x=fe=>{var he,ge;_(E?!1:fe),E||((he=e.onOpenChange)===null||he===void 0||he.call(e,fe),(ge=e.onVisibleChange)===null||ge===void 0||ge.call(e,fe));},R=u__namespace.useMemo(()=>{var fe,he;let ge=b;return typeof g=="object"&&(ge=(he=(fe=g.pointAtCenter)!==null&&fe!==void 0?fe:g.arrowPointAtCenter)!==null&&he!==void 0?he:b),y||Zb({arrowPointAtCenter:ge,autoAdjustOverflow:O,arrowWidth:P?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[b,g,y,w]),k=u__namespace.useMemo(()=>v===0?v:p||v||"",[p,v]),T=u__namespace.createElement(bi,null,typeof k=="function"?k():k),{getPopupContainer:A,placement:z="top",mouseEnterDelay:F=.1,mouseLeaveDelay:V=.1,overlayStyle:j,rootClassName:H}=e,B=d_(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),X=S("tooltip",o),J=S(),Q=e["data-popover-inject"];let K=L;!("open"in e)&&!("visible"in e)&&E&&(K=!1);const Y=h_(Qr(d)&&!Qb(d)?d:u__namespace.createElement("span",null,d),X),re=Y.props,ue=!re.className||typeof re.className=="string"?W(re.className,{[i||`${X}-open`]:!0}):re.className,[se,ee]=n0(X,!Q),ae=o0(X,s),q=Object.assign(Object.assign({},c),ae.overlayStyle),te=ae.arrowStyle,ce=W(l,{[`${X}-rtl`]:C==="rtl"},ae.className,H,ee);return se(u__namespace.createElement(uM,Object.assign({},B,{showArrow:P,placement:z,mouseEnterDelay:F,mouseLeaveDelay:V,prefixCls:X,overlayClassName:ce,overlayStyle:Object.assign(Object.assign({},te),j),getTooltipContainer:A||a||$,ref:I,builtinPlacements:R,overlay:T,visible:K,onVisibleChange:x,afterVisibleChange:f??m,overlayInnerStyle:q,arrowContent:u__namespace.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:rc(J,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),K?Tn(Y,{className:ue}):Y))});i0._InternalPanelDoNotUseOrYouWillBeFired=u_;const Ua=i0,g_=e=>{const{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:o,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,marginXS:d,colorBgElevated:f,popoverBg:m}=e;return [{[t]:Object.assign(Object.assign({},kt(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":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:o},[`${t}-inner-content`]:{color:n}})},Hf(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},v_=e=>{const{componentCls:t}=e;return {[t]:Ea.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},p_=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:l,lineHeight:s,padding:c}=e,d=a-Math.round(l*s),f=d/2,m=d/2-n,h=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${f}px ${h}px ${m}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${h}px`}}}},a0=Ut("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=mt(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [g_(o),v_(o),r&&p_(o),sc(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]});var b_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const y_=(e,t,n)=>{if(!(!t&&!n))return u__namespace.createElement(u__namespace.Fragment,null,t&&u__namespace.createElement("div",{className:`${e}-title`},vi(t)),u__namespace.createElement("div",{className:`${e}-inner-content`},vi(n)))},C_=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:s}=e;return u__namespace.createElement("div",{className:W(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},u__namespace.createElement("div",{className:`${n}-arrow`}),u__namespace.createElement(jf,Object.assign({},e,{className:t,prefixCls:n}),s||y_(n,a,l)))},S_=e=>{const{prefixCls:t}=e,n=b_(e,["prefixCls"]),{getPrefixCls:r}=u__namespace.useContext(ot),o=r("popover",t),[i,a]=a0(o);return i(u__namespace.createElement(C_,Object.assign({},n,{prefixCls:o,hashId:a})))},l0=S_;var w_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $_=e=>{let{title:t,content:n,prefixCls:r}=e;return u__namespace.createElement(u__namespace.Fragment,null,t&&u__namespace.createElement("div",{className:`${r}-title`},vi(t)),u__namespace.createElement("div",{className:`${r}-inner-content`},vi(n)))},s0=u__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:l="hover",mouseEnterDelay:s=.1,mouseLeaveDelay:c=.1,overlayStyle:d={}}=e,f=w_(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=u__namespace.useContext(ot),h=m("popover",n),[g,v]=a0(h),p=m(),y=W(i,v);return g(u__namespace.createElement(Ua,Object.assign({placement:a,trigger:l,mouseEnterDelay:s,mouseLeaveDelay:c,overlayStyle:d},f,{prefixCls:h,overlayClassName:y,ref:t,overlay:r||o?u__namespace.createElement($_,{prefixCls:h,title:r,content:o}):null,transitionName:rc(p,"zoom-big",f.transitionName),"data-popover-inject":!0})))});s0._InternalPanelDoNotUseOrYouWillBeFired=l0;const Uf=s0,x_=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return {[t]:Object.assign(Object.assign({},kt(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},E_=Ut("Divider",e=>{const t=mt(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return [x_(t)]},{sizePaddingEdgeHorizontal:0});var I_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const O_=e=>{const{getPrefixCls:t,direction:n,divider:r}=u__namespace.useContext(ot),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:l,className:s,rootClassName:c,children:d,dashed:f,plain:m,style:h}=e,g=I_(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",o),[p,y]=E_(v),b=a.length>0?`-${a}`:a,O=!!d,P=a==="left"&&l!=null,w=a==="right"&&l!=null,$=W(v,r==null?void 0:r.className,y,`${v}-${i}`,{[`${v}-with-text`]:O,[`${v}-with-text${b}`]:O,[`${v}-dashed`]:!!f,[`${v}-plain`]:!!m,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:P,[`${v}-no-default-orientation-margin-right`]:w},s,c),S=u__namespace.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),C=Object.assign(Object.assign({},P&&{marginLeft:S}),w&&{marginRight:S});return p(u__namespace.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},g,{role:"separator"}),d&&i!=="vertical"&&u__namespace.createElement("span",{className:`${v}-inner-text`,style:C},d)))},P_=O_;var M_=["b"],__=["v"],au=function(t){return Math.round(Number(t||0))},R_=function(t){if(t&&dt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Qe(n,M_);return Z(Z({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ds=function(e){to(n,e);var t=no(n);function n(r){return pn(this,n),t.call(this,R_(r))}return bn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=au(o.s*100),a=au(o.b*100),l=au(o.h),s=o.a,c="hsb(".concat(l,", ").concat(i,"%, ").concat(a,"%)"),d="hsba(".concat(l,", ").concat(i,"%, ").concat(a,"%, ").concat(s.toFixed(s===0?0:2),")");return s===1?c:d}},{key:"toHsb",value:function(){var o=this.toHsv();dt(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var i=o;i.v;var a=Qe(i,__);return Z(Z({},a),{},{b:o.v})}}]),n}(Wt),T_="rc-color-picker",Xr=function(t){return t instanceof ds?t:new ds(t)},N_=Xr("#1677ff"),c0=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,l=o.current.getBoundingClientRect(),s=l.width,c=l.height,d=r.current.getBoundingClientRect(),f=d.width,m=d.height,h=f/2,g=m/2,v=(n.x+h)/s,p=1-(n.y+g)/c,y=i.toHsb(),b=v,O=(n.x+h)/s*360;if(a)switch(a){case"hue":return Xr(Z(Z({},y),{},{h:O<=0?0:O}));case"alpha":return Xr(Z(Z({},y),{},{a:b<=0?0:b}))}return Xr({h:y.h,s:v<=0?0:v,b:p>=1?1:p,a:y.a})},u0=function(t,n,r,o){var i=t.current.getBoundingClientRect(),a=i.width,l=i.height,s=n.current.getBoundingClientRect(),c=s.width,d=s.height,f=c/2,m=d/2,h=r.toHsb();if(!(c===0&&d===0||c!==d)){if(o)switch(o){case"hue":return {x:h.h/360*a-f,y:-m/3};case"alpha":return {x:h.a/1*a-f,y:-m/3}}return {x:h.s*a-f,y:(1-h.b)*l-m}}},Xf=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,l="".concat(r,"-color-block");return u.createElement("div",{className:W(l,o),style:i,onClick:a},u.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};function k_(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 d0(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,l=e.calculate,s=e.color,c=e.disabledDrag,d=u.useState(t||{x:0,y:0}),f=G(d,2),m=f[0],h=f[1],g=u.useRef(null),v=u.useRef(null),p=u.useRef({flag:!1});u.useEffect(function(){if(p.current.flag===!1){var w=l==null?void 0:l(r);w&&h(w);}},[s,r]),u.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null;}},[]);var y=function($){var S=k_($),C=S.pageX,I=S.pageY,M=r.current.getBoundingClientRect(),L=M.x,_=M.y,E=M.width,x=M.height,R=n.current.getBoundingClientRect(),k=R.width,T=R.height,A=k/2,z=T/2,F=Math.max(0,Math.min(C-L,E))-A,V=Math.max(0,Math.min(I-_,x))-z,j={x:F,y:o==="x"?m.y:V};if(k===0&&T===0||k!==T)return !1;h(j),i==null||i(j);},b=function($){$.preventDefault(),y($);},O=function($){$.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null,a==null||a();},P=function($){c||(y($),p.current.flag=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",O),document.addEventListener("touchmove",b),document.addEventListener("touchend",O),g.current=b,v.current=O);};return [m,P]}var f0=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return u.createElement("div",{className:W("".concat(i,"-handler"),U({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},m0=function(t){var n=t.children,r=t.style,o=t.prefixCls;return u.createElement("div",{className:"".concat(o,"-palette"),style:Z({position:"relative"},r)},n)},h0=u.forwardRef(function(e,t){var n=e.children,r=e.offset;return u.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),L_=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,l=u.useRef(),s=u.useRef(),c=u.useRef(n),d=d0({color:n,containerRef:l,targetRef:s,calculate:function(v){return u0(v,s,n)},onDragChange:function(v){var p=c0({offset:v,targetRef:s,containerRef:l,color:n});c.current=p,r(p);},onDragChangeComplete:function(){return i==null?void 0:i(c.current)},disabledDrag:a}),f=G(d,2),m=f[0],h=f[1];return u.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},u.createElement(m0,{prefixCls:o},u.createElement(h0,{offset:m,ref:s},u.createElement(f0,{color:n.toRgbString(),prefixCls:o})),u.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))"}})))},A_=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,l=t.prefixCls,s=u.useMemo(function(){return n.map(function(c,d){var f=Xr(c);return a==="alpha"&&d===n.length-1&&f.setAlpha(1),f.toRgbString()}).join(",")},[n,a]);return u.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(s,")")}},r)},yg=function(t){var n=t.gradientColors,r=t.direction,o=t.type,i=o===void 0?"hue":o,a=t.color,l=t.value,s=t.onChange,c=t.onChangeComplete,d=t.disabled,f=t.prefixCls,m=u.useRef(),h=u.useRef(),g=u.useRef(a),v=d0({color:a,targetRef:h,containerRef:m,calculate:function(P){return u0(P,h,a,i)},onDragChange:function(P){var w=c0({offset:P,targetRef:h,containerRef:m,color:a,type:i});g.current=w,s(w);},onDragChangeComplete:function(){c==null||c(g.current,i);},direction:"x",disabledDrag:d}),p=G(v,2),y=p[0],b=p[1];return u.createElement("div",{ref:m,className:W("".concat(f,"-slider"),"".concat(f,"-slider-").concat(i)),onMouseDown:b,onTouchStart:b},u.createElement(m0,{prefixCls:f},u.createElement(h0,{offset:y,ref:h},u.createElement(f0,{size:"small",color:l,prefixCls:f})),u.createElement(A_,{colors:n,direction:r,type:i,prefixCls:f})))};function Cg(e){return e!==void 0}var D_=function(t,n){var r=n.defaultValue,o=n.value,i=u.useState(function(){var c;return Cg(o)?c=o:Cg(r)?c=r:c=t,Xr(c)}),a=G(i,2),l=a[0],s=a[1];return u.useEffect(function(){o&&s(Xr(o));},[o]),[l,s]},z_=["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 j_=u.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?T_:o,a=e.onChange,l=e.onChangeComplete,s=e.className,c=e.style,d=e.panelRender,f=e.disabledAlpha,m=f===void 0?!1:f,h=e.disabled,g=h===void 0?!1:h,v=D_(N_,{value:n,defaultValue:r}),p=G(v,2),y=p[0],b=p[1],O=u.useMemo(function(){var C=Xr(y.toRgbString());return C.setAlpha(1),C.toRgbString()},[y]),P=W("".concat(i,"-panel"),s,U({},"".concat(i,"-panel-disabled"),g)),w={prefixCls:i,onChangeComplete:l,disabled:g},$=function(I,M){n||b(I),a==null||a(I,M);},S=u.createElement(u.Fragment,null,u.createElement(L_,Ce({color:y,onChange:$},w)),u.createElement("div",{className:"".concat(i,"-slider-container")},u.createElement("div",{className:W("".concat(i,"-slider-group"),U({},"".concat(i,"-slider-group-disabled-alpha"),m))},u.createElement(yg,Ce({gradientColors:z_,color:y,value:"hsl(".concat(y.toHsb().h,",100%, 50%)"),onChange:function(I){return $(I,"hue")}},w)),!m&&u.createElement(yg,Ce({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",O],color:y,value:y.toRgbString(),onChange:function(I){return $(I,"alpha")}},w))),u.createElement(Xf,{color:y.toRgbString(),prefixCls:i})));return u.createElement("div",{className:P,style:c,ref:t},typeof d=="function"?d(S):S)}),g0=u.createContext({}),v0=u.createContext({}),{Provider:B_}=g0,{Provider:H_}=v0,jl=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",F_=(e,t)=>e?jl(e,t):"";let Sg=function(){function e(t){pn(this,e),this.metaColor=new ds(t),t||this.metaColor.setAlpha(0);}return bn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return F_(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 W_="ant-color-picker",gn=e=>e instanceof Sg?e:new Sg(e),Bl=e=>Math.round(Number(e||0)),p0=e=>Bl(e.toHsb().a*100),V_=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const i=()=>{if(n&&!r){const a=n.toHsb();a.a=0;const l=gn(a);o==null||o(l);}};return u.createElement("div",{className:`${t}-clear`,onClick:i})},b0=V_;var ie={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>=ie.F1&&n<=ie.F12)return !1;switch(n){case ie.ALT:case ie.CAPS_LOCK:case ie.CONTEXT_MENU:case ie.CTRL:case ie.DOWN:case ie.END:case ie.ESC:case ie.HOME:case ie.INSERT:case ie.LEFT:case ie.MAC_FF_META:case ie.META:case ie.NUMLOCK:case ie.NUM_CENTER:case ie.PAGE_DOWN:case ie.PAGE_UP:case ie.PAUSE:case ie.PRINT_SCREEN:case ie.RIGHT:case ie.SHIFT:case ie.UP:case ie.WIN_KEY:case ie.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=ie.ZERO&&t<=ie.NINE||t>=ie.NUM_ZERO&&t<=ie.NUM_MULTIPLY||t>=ie.A&&t<=ie.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case ie.SPACE:case ie.QUESTION_MARK:case ie.NUM_PLUS:case ie.NUM_MINUS:case ie.NUM_PERIOD:case ie.NUM_DIVISION:case ie.SEMICOLON:case ie.DASH:case ie.EQUALS:case ie.COMMA:case ie.PERIOD:case ie.SLASH:case ie.APOSTROPHE:case ie.SINGLE_QUOTE:case ie.OPEN_SQUARE_BRACKET:case ie.BACKSLASH:case ie.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},y0=u__namespace.createContext(null);function K_(){return u__namespace.useContext(y0)}function G_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u__namespace.useState(!1),n=G(t,2),r=n[0],o=n[1],i=u__namespace.useRef(null),a=function(){window.clearTimeout(i.current);};u__namespace.useEffect(function(){return a},[]);var l=function(c,d){a(),i.current=window.setTimeout(function(){o(c),d&&d();},e);};return [r,l,a]}function C0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u__namespace.useRef(null),n=u__namespace.useRef(null);u__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 U_(e,t,n,r){var o=u__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},u__namespace.useEffect(function(){function i(a){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=a.target;s.shadowRoot&&a.composed&&(s=a.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",i),function(){return window.removeEventListener("mousedown",i)}},[]);}var X_=`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`,Y_=`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`,q_="".concat(X_," ").concat(Y_).split(/[\s\n]+/),Z_="aria-",Q_="data-";function wg(e,t){return e.indexOf(t)===0}function Ci(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Z({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||wg(o,Z_))||n.data&&wg(o,Q_)||n.attr&&q_.includes(o))&&(r[o]=e[o]);}),r}var J_=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ko=void 0;function eR(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,d=e.className,f=e.style,m=e.children,h=e.display,g=e.order,v=e.component,p=v===void 0?"div":v,y=Qe(e,J_),b=a&&!h;function O(C){s(c,C);}u__namespace.useEffect(function(){return function(){O(null);}},[]);var P=i&&o!==Ko?i(o):m,w;r||(w={opacity:b?0:1,height:b?0:Ko,overflowY:b?"hidden":Ko,order:a?g:Ko,pointerEvents:b?"none":Ko,position:b?"absolute":Ko});var $={};b&&($["aria-hidden"]=!0);var S=u__namespace.createElement(p,Ce({className:W(!r&&n,d),style:Z(Z({},w),f)},$,y,{ref:t}),P);return a&&(S=u__namespace.createElement(Tr,{onResize:function(I){var M=I.offsetWidth;O(M);},disabled:l},S)),S}var sa=u__namespace.forwardRef(eR);sa.displayName="Item";function tR(e){if(typeof MessageChannel>"u")It(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function nR(){var e=u__namespace.useRef(null),t=function(r){e.current||(e.current=[],tR(function(){Qv.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function Ui(e,t){var n=u__namespace.useState(t),r=G(n,2),o=r[0],i=r[1],a=_n(function(l){e(function(){i(l);});});return [o,a]}var fs=u.createContext(null),rR=["component"],oR=["className"],iR=["className"],aR=function(t,n){var r=u__namespace.useContext(fs);if(!r){var o=t.component,i=o===void 0?"div":o,a=Qe(t,rR);return u__namespace.createElement(i,Ce({},a,{ref:n}))}var l=r.className,s=Qe(r,oR),c=t.className,d=Qe(t,iR);return u__namespace.createElement(fs.Provider,{value:null},u__namespace.createElement(sa,Ce({ref:n,className:W(l,c)},s,d)))},S0=u__namespace.forwardRef(aR);S0.displayName="RawItem";var lR=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],w0="responsive",$0="invalidate";function sR(e){return "+ ".concat(e.length," ...")}function cR(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,f=e.ssr,m=e.style,h=e.className,g=e.maxCount,v=e.renderRest,p=e.renderRawRest,y=e.suffix,b=e.component,O=b===void 0?"div":b,P=e.itemComponent,w=e.onVisibleChange,$=Qe(e,lR),S=f==="full",C=nR(),I=Ui(C,null),M=G(I,2),L=M[0],_=M[1],E=L||0,x=Ui(C,new Map),R=G(x,2),k=R[0],T=R[1],A=Ui(C,0),z=G(A,2),F=z[0],V=z[1],j=Ui(C,0),H=G(j,2),B=H[0],X=H[1],J=Ui(C,0),Q=G(J,2),K=Q[0],Y=Q[1],re=u.useState(null),ue=G(re,2),se=ue[0],ee=ue[1],ae=u.useState(null),q=G(ae,2),te=q[0],ce=q[1],fe=u__namespace.useMemo(function(){return te===null&&S?Number.MAX_SAFE_INTEGER:te||0},[te,L]),he=u.useState(!1),ge=G(he,2),be=ge[0],Re=ge[1],De="".concat(r,"-item"),$e=Math.max(F,B),we=g===w0,Te=i.length&&we,Je=g===$0,Ve=Te||typeof g=="number"&&i.length>g,Ye=u.useMemo(function(){var Ae=i;return Te?L===null&&S?Ae=i:Ae=i.slice(0,Math.min(i.length,E/d)):typeof g=="number"&&(Ae=i.slice(0,g)),Ae},[i,d,L,g,Te]),Me=u.useMemo(function(){return Te?i.slice(fe+1):i.slice(Ye.length)},[i,Ye,Te,fe]),ke=u.useCallback(function(Ae,Se){var ve;return typeof s=="function"?s(Ae):(ve=s&&(Ae==null?void 0:Ae[s]))!==null&&ve!==void 0?ve:Se},[s]),qe=u.useCallback(a||function(Ae){return Ae},[a]);function et(Ae,Se,ve){te===Ae&&(Se===void 0||Se===se)||(ce(Ae),ve||(Re(Ae<i.length-1),w==null||w(Ae)),Se!==void 0&&ee(Se));}function ye(Ae,Se){_(Se.clientWidth);}function xe(Ae,Se){T(function(ve){var Ee=new Map(ve);return Se===null?Ee.delete(Ae):Ee.set(Ae,Se),Ee});}function ze(Ae,Se){X(Se),V(B);}function Le(Ae,Se){Y(Se);}function rt(Ae){return k.get(ke(Ye[Ae],Ae))}Ft(function(){if(E&&typeof $e=="number"&&Ye){var Ae=K,Se=Ye.length,ve=Se-1;if(!Se){et(0,null);return}for(var Ee=0;Ee<Se;Ee+=1){var _e=rt(Ee);if(S&&(_e=_e||0),_e===void 0){et(Ee-1,void 0,!0);break}if(Ae+=_e,ve===0&&Ae<=E||Ee===ve-1&&Ae+rt(ve)<=E){et(ve,null);break}else if(Ae+$e>E){et(Ee-1,Ae-_e-K+B);break}}y&&rt(0)+K>E&&ee(null);}},[E,k,B,K,ke,Ye]);var Ue=be&&!!Me.length,de={};se!==null&&Te&&(de={position:"absolute",left:se,top:0});var ne={prefixCls:De,responsive:Te,component:P,invalidate:Je},me=l?function(Ae,Se){var ve=ke(Ae,Se);return u__namespace.createElement(fs.Provider,{key:ve,value:Z(Z({},ne),{},{order:Se,item:Ae,itemKey:ve,registerSize:xe,display:Se<=fe})},l(Ae,Se))}:function(Ae,Se){var ve=ke(Ae,Se);return u__namespace.createElement(sa,Ce({},ne,{order:Se,key:ve,item:Ae,renderItem:qe,itemKey:ve,registerSize:xe,display:Se<=fe}))},le,Ne={order:Ue?fe:Number.MAX_SAFE_INTEGER,className:"".concat(De,"-rest"),registerSize:ze,display:Ue};if(p)p&&(le=u__namespace.createElement(fs.Provider,{value:Z(Z({},ne),Ne)},p(Me)));else {var tt=v||sR;le=u__namespace.createElement(sa,Ce({},ne,Ne),typeof tt=="function"?tt(Me):tt);}var ct=u__namespace.createElement(O,Ce({className:W(!Je&&r,h),style:m,ref:t},$),Ye.map(me),Ve?le:null,y&&u__namespace.createElement(sa,Ce({},ne,{responsive:we,responsiveDisabled:!Te,order:fe,className:"".concat(De,"-suffix"),registerSize:Le,display:!0,style:de}),y));return we&&(ct=u__namespace.createElement(Tr,{onResize:ye,disabled:!Te},ct)),ct}var mr=u__namespace.forwardRef(cR);mr.displayName="Overflow";mr.Item=S0;mr.RESPONSIVE=w0;mr.INVALIDATE=$0;var ms=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,l=t.children,s;return typeof r=="function"?s=r(o):s=r,u__namespace.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i&&i(d);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},s!==void 0?s:u__namespace.createElement("span",{className:W(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},l))},uR=function(t,n){var r,o,i=t.prefixCls,a=t.id,l=t.inputElement,s=t.disabled,c=t.tabIndex,d=t.autoFocus,f=t.autoComplete,m=t.editable,h=t.activeDescendantId,g=t.value,v=t.maxLength,p=t.onKeyDown,y=t.onMouseDown,b=t.onChange,O=t.onPaste,P=t.onCompositionStart,w=t.onCompositionEnd,$=t.open,S=t.attrs,C=l||u__namespace.createElement("input",null),I=C,M=I.ref,L=I.props,_=L.onKeyDown,E=L.onChange,x=L.onMouseDown,R=L.onCompositionStart,k=L.onCompositionEnd,T=L.style;return "maxLength"in C.props,C=u__namespace.cloneElement(C,Z(Z(Z({type:"search"},L),{},{id:a,ref:Sn(n,M),disabled:s,tabIndex:c,autoComplete:f||"off",autoFocus:d,className:W("".concat(i,"-selection-search-input"),(r=C)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":$,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":h},S),{},{value:m?g:"",maxLength:v,readOnly:!m,unselectable:m?null:"on",style:Z(Z({},T),{},{opacity:m?null:0}),onKeyDown:function(z){p(z),_&&_(z);},onMouseDown:function(z){y(z),x&&x(z);},onChange:function(z){b(z),E&&E(z);},onCompositionStart:function(z){P(z),R&&R(z);},onCompositionEnd:function(z){w(z),k&&k(z);},onPaste:O})),C},Yf=u__namespace.forwardRef(uR);Yf.displayName="Input";function x0(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var dR=typeof window<"u"&&window.document&&window.document.documentElement,fR=dR;function mR(e){return e!=null}function $g(e){return ["string","number"].includes(dt(e))}function E0(e){var t=void 0;return e&&($g(e.title)?t=e.title.toString():$g(e.label)&&(t=e.label.toString())),t}function hR(e,t){fR?u__namespace.useLayoutEffect(e,t):u__namespace.useEffect(e,t);}function gR(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var xg=function(t){t.preventDefault(),t.stopPropagation();},vR=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,c=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,h=t.autoFocus,g=t.autoComplete,v=t.activeDescendantId,p=t.tabIndex,y=t.removeIcon,b=t.maxTagCount,O=t.maxTagTextLength,P=t.maxTagPlaceholder,w=P===void 0?function(ee){return "+ ".concat(ee.length," ...")}:P,$=t.tagRender,S=t.onToggleOpen,C=t.onRemove,I=t.onInputChange,M=t.onInputPaste,L=t.onInputKeyDown,_=t.onInputMouseDown,E=t.onInputCompositionStart,x=t.onInputCompositionEnd,R=u__namespace.useRef(null),k=u.useState(0),T=G(k,2),A=T[0],z=T[1],F=u.useState(!1),V=G(F,2),j=V[0],H=V[1],B="".concat(r,"-selection"),X=i||f==="multiple"&&l===!1||f==="tags"?a:"",J=f==="tags"||f==="multiple"&&l===!1||m&&(i||j);hR(function(){z(R.current.scrollWidth);},[X]);function Q(ee,ae,q,te,ce){return u__namespace.createElement("span",{className:W("".concat(B,"-item"),U({},"".concat(B,"-item-disabled"),q)),title:E0(ee)},u__namespace.createElement("span",{className:"".concat(B,"-item-content")},ae),te&&u__namespace.createElement(ms,{className:"".concat(B,"-item-remove"),onMouseDown:xg,onClick:ce,customizeIcon:y},"×"))}function K(ee,ae,q,te,ce){var fe=function(ge){xg(ge),S(!i);};return u__namespace.createElement("span",{onMouseDown:fe},$({label:ae,value:ee,disabled:q,closable:te,onClose:ce}))}function Y(ee){var ae=ee.disabled,q=ee.label,te=ee.value,ce=!d&&!ae,fe=q;if(typeof O=="number"&&(typeof q=="string"||typeof q=="number")){var he=String(fe);he.length>O&&(fe="".concat(he.slice(0,O),"..."));}var ge=function(Re){Re&&Re.stopPropagation(),C(ee);};return typeof $=="function"?K(te,fe,ae,ce,ge):Q(ee,fe,ae,ce,ge)}function re(ee){var ae=typeof w=="function"?w(ee):w;return Q({title:ae},ae,!1)}var ue=u__namespace.createElement("div",{className:"".concat(B,"-search"),style:{width:A},onFocus:function(){H(!0);},onBlur:function(){H(!1);}},u__namespace.createElement(Yf,{ref:s,open:i,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:h,autoComplete:g,editable:J,activeDescendantId:v,value:X,onKeyDown:L,onMouseDown:_,onChange:I,onPaste:M,onCompositionStart:E,onCompositionEnd:x,tabIndex:p,attrs:Ci(t,!0)}),u__namespace.createElement("span",{ref:R,className:"".concat(B,"-search-mirror"),"aria-hidden":!0},X," ")),se=u__namespace.createElement(mr,{prefixCls:"".concat(B,"-overflow"),data:o,renderItem:Y,renderRest:re,suffix:ue,itemKey:gR,maxCount:b});return u__namespace.createElement(u__namespace.Fragment,null,se,!o.length&&!X&&u__namespace.createElement("span",{className:"".concat(B,"-placeholder")},c))},pR=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,s=t.autoComplete,c=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,h=t.placeholder,g=t.tabIndex,v=t.showSearch,p=t.searchValue,y=t.activeValue,b=t.maxLength,O=t.onInputKeyDown,P=t.onInputMouseDown,w=t.onInputChange,$=t.onInputPaste,S=t.onInputCompositionStart,C=t.onInputCompositionEnd,I=t.title,M=u__namespace.useState(!1),L=G(M,2),_=L[0],E=L[1],x=d==="combobox",R=x||v,k=m[0],T=p||"";x&&y&&!_&&(T=y),u__namespace.useEffect(function(){x&&E(!1);},[x,y]);var A=d!=="combobox"&&!f&&!v?!1:!!T,z=I===void 0?E0(k):I,F=function(){if(k)return null;var j=A?{visibility:"hidden"}:void 0;return u__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:j},h)};return u__namespace.createElement(u__namespace.Fragment,null,u__namespace.createElement("span",{className:"".concat(r,"-selection-search")},u__namespace.createElement(Yf,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:l,autoComplete:s,editable:R,activeDescendantId:c,value:T,onKeyDown:O,onMouseDown:P,onChange:function(j){E(!0),w(j);},onPaste:$,onCompositionStart:S,onCompositionEnd:C,tabIndex:g,attrs:Ci(t,!0),maxLength:x?b:void 0})),!x&&k?u__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:A?{visibility:"hidden"}:void 0},k.label):null,F())};function bR(e){return ![ie.ESC,ie.SHIFT,ie.BACKSPACE,ie.TAB,ie.WIN_KEY,ie.ALT,ie.META,ie.WIN_KEY_RIGHT,ie.CTRL,ie.SEMICOLON,ie.EQUALS,ie.CAPS_LOCK,ie.CONTEXT_MENU,ie.F1,ie.F2,ie.F3,ie.F4,ie.F5,ie.F6,ie.F7,ie.F8,ie.F9,ie.F10,ie.F11,ie.F12].includes(e)}var yR=function(t,n){var r=u.useRef(null),o=u.useRef(!1),i=t.prefixCls,a=t.open,l=t.mode,s=t.showSearch,c=t.tokenWithEnter,d=t.autoClearSearchValue,f=t.onSearch,m=t.onSearchSubmit,h=t.onToggleOpen,g=t.onInputKeyDown,v=t.domRef;u__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=C0(0),y=G(p,2),b=y[0],O=y[1],P=function(T){var A=T.which;(A===ie.UP||A===ie.DOWN)&&T.preventDefault(),g&&g(T),A===ie.ENTER&&l==="tags"&&!o.current&&!a&&(m==null||m(T.target.value)),bR(A)&&h(!0);},w=function(){O(!0);},$=u.useRef(null),S=function(T){f(T,!0,o.current)!==!1&&h(!0);},C=function(){o.current=!0;},I=function(T){o.current=!1,l!=="combobox"&&S(T.target.value);},M=function(T){var A=T.target.value;if(c&&$.current&&/[\r\n]/.test($.current)){var z=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");A=A.replace(z,$.current);}$.current=null,S(A);},L=function(T){var A=T.clipboardData,z=A.getData("text");$.current=z;},_=function(T){var A=T.target;if(A!==r.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){r.current.focus();}):r.current.focus();}},E=function(T){var A=b();T.target!==r.current&&!A&&l!=="combobox"&&T.preventDefault(),(l!=="combobox"&&(!s||!A)||!a)&&(a&&d!==!1&&f("",!0,!1),h());},x={inputRef:r,onInputKeyDown:P,onInputMouseDown:w,onInputChange:M,onInputPaste:L,onInputCompositionStart:C,onInputCompositionEnd:I},R=l==="multiple"||l==="tags"?u__namespace.createElement(vR,Ce({},t,x)):u__namespace.createElement(pR,Ce({},t,x));return u__namespace.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:_,onMouseDown:E},R)},I0=u__namespace.forwardRef(yR);I0.displayName="Selector";var CR=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],SR=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"}}},wR=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,l=t.containerWidth,s=t.animation,c=t.transitionName,d=t.dropdownStyle,f=t.dropdownClassName,m=t.direction,h=m===void 0?"ltr":m,g=t.placement,v=t.builtinPlacements,p=t.dropdownMatchSelectWidth,y=t.dropdownRender,b=t.dropdownAlign,O=t.getPopupContainer,P=t.empty,w=t.getTriggerDOMNode,$=t.onPopupVisibleChange,S=t.onPopupMouseEnter,C=Qe(t,CR),I="".concat(r,"-dropdown"),M=a;y&&(M=y(a));var L=u__namespace.useMemo(function(){return v||SR(p)},[v,p]),_=s?"".concat(I,"-").concat(s):c,E=u__namespace.useRef(null);u__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return E.current}}});var x=Z({minWidth:l},d);return typeof p=="number"?x.width=p:p&&(x.width=l),u__namespace.createElement(ac,Ce({},C,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:g||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:L,prefixCls:I,popupTransitionName:_,popup:u__namespace.createElement("div",{ref:E,onMouseEnter:S},M),popupAlign:b,popupVisible:o,getPopupContainer:O,popupClassName:W(f,U({},"".concat(I,"-empty"),P)),popupStyle:x,getTriggerDOMNode:w,onPopupVisibleChange:$}),i)},O0=u__namespace.forwardRef(wR);O0.displayName="SelectTrigger";function Eg(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 P0(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,l=r||(t?"children":"label");return {label:l,value:o||"value",options:i||"options",groupLabel:a||l}}function $R(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=P0(n,!1),a=i.label,l=i.value,s=i.options,c=i.groupLabel;function d(f,m){f.forEach(function(h){if(m||!(s in h)){var g=h[l];o.push({key:Eg(h,o.length),groupOption:m,data:h,label:h[a],value:g});}else {var v=h[c];v===void 0&&r&&(v=h.label),o.push({key:Eg(h,o.length),group:!0,data:h,label:v}),d(h[s],!0);}});}return d(e,!1),o}function md(e){var t=Z({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return pr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function xR(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var l=db(a),s=l[0],c=l.slice(1);if(!s)return [i];var d=i.split(s);return n=n||d.length>1,d.reduce(function(f,m){return [].concat(Ge(f),Ge(r(m,c)))},[]).filter(function(f){return f})}var o=r(e,t);return n?o:null}var ER=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],IR=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function hd(e){return e==="tags"||e==="multiple"}var OR=u__namespace.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,s=e.tagRender,c=e.direction,d=e.omitDomProps,f=e.displayValues,m=e.onDisplayValuesChange,h=e.emptyOptions,g=e.notFoundContent,v=g===void 0?"Not Found":g,p=e.onClear,y=e.mode,b=e.disabled,O=e.loading,P=e.getInputElement,w=e.getRawInputElement,$=e.open,S=e.defaultOpen,C=e.onDropdownVisibleChange,I=e.activeValue,M=e.onActiveValueChange,L=e.activeDescendantId,_=e.searchValue,E=e.autoClearSearchValue,x=e.onSearch,R=e.onSearchSplit,k=e.tokenSeparators,T=e.allowClear,A=e.showArrow,z=e.inputIcon,F=e.clearIcon,V=e.OptionList,j=e.animation,H=e.transitionName,B=e.dropdownStyle,X=e.dropdownClassName,J=e.dropdownMatchSelectWidth,Q=e.dropdownRender,K=e.dropdownAlign,Y=e.placement,re=e.builtinPlacements,ue=e.getPopupContainer,se=e.showAction,ee=se===void 0?[]:se,ae=e.onFocus,q=e.onBlur,te=e.onKeyUp,ce=e.onKeyDown,fe=e.onMouseDown,he=Qe(e,ER),ge=hd(y),be=(l!==void 0?l:ge)||y==="combobox",Re=Z({},he);IR.forEach(function(Oe){delete Re[Oe];}),d==null||d.forEach(function(Oe){delete Re[Oe];});var De=u__namespace.useState(!1),$e=G(De,2),we=$e[0],Te=$e[1];u__namespace.useEffect(function(){Te(ic());},[]);var Je=u__namespace.useRef(null),Ve=u__namespace.useRef(null),Ye=u__namespace.useRef(null),Me=u__namespace.useRef(null),ke=u__namespace.useRef(null),qe=G_(),et=G(qe,3),ye=et[0],xe=et[1],ze=et[2];u__namespace.useImperativeHandle(t,function(){var Oe,Ie;return {focus:(Oe=Me.current)===null||Oe===void 0?void 0:Oe.focus,blur:(Ie=Me.current)===null||Ie===void 0?void 0:Ie.blur,scrollTo:function(yt){var gt;return (gt=ke.current)===null||gt===void 0?void 0:gt.scrollTo(yt)}}});var Le=u__namespace.useMemo(function(){var Oe;if(y!=="combobox")return _;var Ie=(Oe=f[0])===null||Oe===void 0?void 0:Oe.value;return typeof Ie=="string"||typeof Ie=="number"?String(Ie):""},[_,y,f]),rt=y==="combobox"&&typeof P=="function"&&P()||null,Ue=typeof w=="function"&&w(),de=Va(Ve,Ue==null||(n=Ue.props)===null||n===void 0?void 0:n.ref),ne=u__namespace.useState(!1),me=G(ne,2),le=me[0],Ne=me[1];Ft(function(){Ne(!0);},[]);var tt=zt(!1,{defaultValue:S,value:$}),ct=G(tt,2),Ae=ct[0],Se=ct[1],ve=le?Ae:!1,Ee=!v&&h;(b||Ee&&ve&&y==="combobox")&&(ve=!1);var _e=Ee?!1:ve,Ze=u__namespace.useCallback(function(Oe){var Ie=Oe!==void 0?Oe:!ve;b||(Se(Ie),ve!==Ie&&(C==null||C(Ie)));},[b,ve,Se,C]),ft=u__namespace.useMemo(function(){return (k||[]).some(function(Oe){return [`
`,`\r
`].includes(Oe)})},[k]),pt=function(Ie,it,yt){var gt=!0,Pt=Ie;M==null||M(null);var Gt=yt?null:xR(Ie,k);return y!=="combobox"&&Gt&&(Pt="",R==null||R(Gt),Ze(!1),gt=!1),x&&Le!==Pt&&x(Pt,{source:it?"typing":"effect"}),gt},Vt=function(Ie){!Ie||!Ie.trim()||x(Ie,{source:"submit"});};u__namespace.useEffect(function(){!ve&&!ge&&y!=="combobox"&&pt("",!1,!1);},[ve]),u__namespace.useEffect(function(){Ae&&b&&Se(!1),b&&xe(!1);},[b]);var jt=C0(),Fe=G(jt,2),Xe=Fe[0],je=Fe[1],bt=function(Ie){var it=Xe(),yt=Ie.which;if(yt===ie.ENTER&&(y!=="combobox"&&Ie.preventDefault(),ve||Ze(!0)),je(!!Le),yt===ie.BACKSPACE&&!it&&ge&&!Le&&f.length){for(var gt=Ge(f),Pt=null,Gt=gt.length-1;Gt>=0;Gt-=1){var Gn=gt[Gt];if(!Gn.disabled){gt.splice(Gt,1),Pt=Gn;break}}Pt&&m(gt,{type:"remove",values:[Pt]});}for(var un=arguments.length,or=new Array(un>1?un-1:0),An=1;An<un;An++)or[An-1]=arguments[An];if(ve&&ke.current){var so;(so=ke.current).onKeyDown.apply(so,[Ie].concat(or));}ce==null||ce.apply(void 0,[Ie].concat(or));},ht=function(Ie){for(var it=arguments.length,yt=new Array(it>1?it-1:0),gt=1;gt<it;gt++)yt[gt-1]=arguments[gt];if(ve&&ke.current){var Pt;(Pt=ke.current).onKeyUp.apply(Pt,[Ie].concat(yt));}te==null||te.apply(void 0,[Ie].concat(yt));},Yt=function(Ie){var it=f.filter(function(yt){return yt!==Ie});m(it,{type:"remove",values:[Ie]});},Be=u__namespace.useRef(!1),Ke=function(){xe(!0),b||(ae&&!Be.current&&ae.apply(void 0,arguments),ee.includes("focus")&&Ze(!0)),Be.current=!0;},ut=function(){xe(!1,function(){Be.current=!1,Ze(!1);}),!b&&(Le&&(y==="tags"?x(Le,{source:"submit"}):y==="multiple"&&x("",{source:"blur"})),q&&q.apply(void 0,arguments));},wt=[];u__namespace.useEffect(function(){return function(){wt.forEach(function(Oe){return clearTimeout(Oe)}),wt.splice(0,wt.length);}},[]);var Kt=function(Ie){var it,yt=Ie.target,gt=(it=Ye.current)===null||it===void 0?void 0:it.getPopupElement();if(gt&>.contains(yt)){var Pt=setTimeout(function(){var or=wt.indexOf(Pt);if(or!==-1&&wt.splice(or,1),ze(),!we&&!gt.contains(document.activeElement)){var An;(An=Me.current)===null||An===void 0||An.focus();}});wt.push(Pt);}for(var Gt=arguments.length,Gn=new Array(Gt>1?Gt-1:0),un=1;un<Gt;un++)Gn[un-1]=arguments[un];fe==null||fe.apply(void 0,[Ie].concat(Gn));},Lt=u__namespace.useState(null),cn=G(Lt,2),$n=cn[0],Kn=cn[1],yr=u__namespace.useState({}),rr=G(yr,2),Ln=rr[1];function yn(){Ln({});}Ft(function(){if(_e){var Oe,Ie=Math.ceil((Oe=Je.current)===null||Oe===void 0?void 0:Oe.offsetWidth);$n!==Ie&&!Number.isNaN(Ie)&&Kn(Ie);}},[_e]);var Cr;Ue&&(Cr=function(Ie){Ze(Ie);}),U_(function(){var Oe;return [Je.current,(Oe=Ye.current)===null||Oe===void 0?void 0:Oe.getPopupElement()]},_e,Ze,!!Ue);var oo=u__namespace.useMemo(function(){return Z(Z({},e),{},{notFoundContent:v,open:ve,triggerOpen:_e,id:o,showSearch:be,multiple:ge,toggleOpen:Ze})},[e,v,_e,ve,o,be,ge,Ze]),Sr=A!==void 0?A:O||!ge&&y!=="combobox",wr;Sr&&(wr=u__namespace.createElement(ms,{className:W("".concat(i,"-arrow"),U({},"".concat(i,"-arrow-loading"),O)),customizeIcon:z,customizeIconProps:{loading:O,searchValue:Le,open:ve,focused:ye,showSearch:be}}));var $r,io=function(){var Ie;p==null||p(),(Ie=Me.current)===null||Ie===void 0||Ie.focus(),m([],{type:"clear",values:f}),pt("",!1,!1);};!b&&T&&(f.length||Le)&&!(y==="combobox"&&Le==="")&&($r=u__namespace.createElement(ms,{className:"".concat(i,"-clear"),onMouseDown:io,customizeIcon:F},"×"));var ao=u__namespace.createElement(V,{ref:ke}),lo=W(i,a,(r={},U(r,"".concat(i,"-focused"),ye),U(r,"".concat(i,"-multiple"),ge),U(r,"".concat(i,"-single"),!ge),U(r,"".concat(i,"-allow-clear"),T),U(r,"".concat(i,"-show-arrow"),Sr),U(r,"".concat(i,"-disabled"),b),U(r,"".concat(i,"-loading"),O),U(r,"".concat(i,"-open"),ve),U(r,"".concat(i,"-customize-input"),rt),U(r,"".concat(i,"-show-search"),be),r)),xr=u__namespace.createElement(O0,{ref:Ye,disabled:b,prefixCls:i,visible:_e,popupElement:ao,containerWidth:$n,animation:j,transitionName:H,dropdownStyle:B,dropdownClassName:X,direction:c,dropdownMatchSelectWidth:J,dropdownRender:Q,dropdownAlign:K,placement:Y,builtinPlacements:re,getPopupContainer:ue,empty:h,getTriggerDOMNode:function(){return Ve.current},onPopupVisibleChange:Cr,onPopupMouseEnter:yn},Ue?u__namespace.cloneElement(Ue,{ref:de}):u__namespace.createElement(I0,Ce({},e,{domRef:Ve,prefixCls:i,inputElement:rt,ref:Me,id:o,showSearch:be,autoClearSearchValue:E,mode:y,activeDescendantId:L,tagRender:s,values:f,open:ve,onToggleOpen:Ze,activeValue:I,searchValue:Le,onSearch:pt,onSearchSubmit:Vt,onRemove:Yt,tokenWithEnter:ft}))),Ot;return Ue?Ot=xr:Ot=u__namespace.createElement("div",Ce({className:lo},Re,{ref:Je,onMouseDown:Kt,onKeyDown:bt,onKeyUp:ht,onFocus:Ke,onBlur:ut}),ye&&!ve&&u__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(f.map(function(Oe){var Ie=Oe.label,it=Oe.value;return ["number","string"].includes(dt(Ie))?Ie:it}).join(", "))),xr,wr,$r),u__namespace.createElement(y0.Provider,{value:oo},Ot)});const PR=function(e,t){var n=u__namespace.useRef({values:new Map,options:new Map}),r=u__namespace.useMemo(function(){var i=n.current,a=i.values,l=i.options,s=e.map(function(f){if(f.label===void 0){var m;return Z(Z({},f),{},{label:(m=a.get(f.value))===null||m===void 0?void 0:m.label})}return f}),c=new Map,d=new Map;return s.forEach(function(f){c.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value));}),n.current.values=c,n.current.options=d,s},[e,t]),o=u__namespace.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return [r,o]};function lu(e,t){return x0(e).join("").toUpperCase().includes(t)}const MR=function(e,t,n,r,o){return u__namespace.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,l=t.value,s=[],c=typeof r=="function",d=n.toUpperCase(),f=c?r:function(h,g){return o?lu(g[o],d):g[i]?lu(g[a!=="children"?a:"label"],d):lu(g[l],d)},m=c?function(h){return md(h)}:function(h){return h};return e.forEach(function(h){if(h[i]){var g=f(n,m(h));if(g)s.push(h);else {var v=h[i].filter(function(p){return f(n,m(p))});v.length&&s.push(Z(Z({},h),{},U({},i,v)));}return}f(n,m(h))&&s.push(h);}),s},[e,r,o,n,t])};var Ig=0,_R=En();function RR(){var e;return _R?(e=Ig,Ig+=1):e="TEST_OR_SSR",e}function TR(e){var t=u__namespace.useState(),n=G(t,2),r=n[0],o=n[1];return u__namespace.useEffect(function(){o("rc_select_".concat(RR()));},[]),e||r}var NR=["children","value"],kR=["children"];function LR(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=Qe(r,NR);return Z({key:n,value:i!==void 0?i:n,children:o},a)}function M0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Qn(e).map(function(n,r){if(!u__namespace.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,l=o.props,s=l.children,c=Qe(l,kR);return t||!i?LR(n):Z(Z({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:M0(s)})}).filter(function(n){return n})}function AR(e,t,n,r,o){return u__namespace.useMemo(function(){var i=e,a=!e;a&&(i=M0(t));var l=new Map,s=new Map,c=function(m,h,g){g&&typeof g=="string"&&m.set(h[g],h);};function d(f){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<f.length;h+=1){var g=f[h];!g[n.options]||m?(l.set(g[n.value],g),c(s,g,n.label),c(s,g,r),c(s,g,o)):d(g[n.options],!0);}}return d(i),{options:i,valueOptions:l,labelOptions:s}},[e,t,n,r,o])}function Og(e){var t=u__namespace.useRef();t.current=e;var n=u__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var qf=function(){return null};qf.isSelectOptGroup=!0;var Zf=function(){return null};Zf.isSelectOption=!0;var _0=u__namespace.forwardRef(function(e,t){var n=e.height,r=e.offset,o=e.children,i=e.prefixCls,a=e.onInnerResize,l=e.innerProps,s={},c={display:"flex",flexDirection:"column"};return r!==void 0&&(s={height:n,position:"relative",overflow:"hidden"},c=Z(Z({},c),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),u__namespace.createElement("div",{style:s},u__namespace.createElement(Tr,{onResize:function(f){var m=f.offsetHeight;m&&a&&a();}},u__namespace.createElement("div",Ce({style:c,className:W(U({},"".concat(i,"-holder-inner"),i)),ref:t},l),o)))});_0.displayName="Filler";var DR=20;function Pg(e){return "touches"in e?e.touches[0].pageY:e.pageY}var zR=function(e){to(n,e);var t=no(n);function n(){var r;pn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.moveRaf=null,r.scrollbarRef=u__namespace.createRef(),r.thumbRef=u__namespace.createRef(),r.visibleTimeout=null,r.state={dragging:!1,pageY:null,startTop:null,visible:!1},r.delayHidden=function(){clearTimeout(r.visibleTimeout),r.setState({visible:!0}),r.visibleTimeout=setTimeout(function(){r.setState({visible:!1});},2e3);},r.onScrollbarTouchStart=function(l){l.preventDefault();},r.onContainerMouseDown=function(l){l.stopPropagation(),l.preventDefault();},r.patchEvents=function(){window.addEventListener("mousemove",r.onMouseMove),window.addEventListener("mouseup",r.onMouseUp),r.thumbRef.current.addEventListener("touchmove",r.onMouseMove),r.thumbRef.current.addEventListener("touchend",r.onMouseUp);},r.removeEvents=function(){var l;window.removeEventListener("mousemove",r.onMouseMove),window.removeEventListener("mouseup",r.onMouseUp),(l=r.scrollbarRef.current)===null||l===void 0||l.removeEventListener("touchstart",r.onScrollbarTouchStart),r.thumbRef.current&&(r.thumbRef.current.removeEventListener("touchstart",r.onMouseDown),r.thumbRef.current.removeEventListener("touchmove",r.onMouseMove),r.thumbRef.current.removeEventListener("touchend",r.onMouseUp)),It.cancel(r.moveRaf);},r.onMouseDown=function(l){var s=r.props.onStartMove;r.setState({dragging:!0,pageY:Pg(l),startTop:r.getTop()}),s(),r.patchEvents(),l.stopPropagation(),l.preventDefault();},r.onMouseMove=function(l){var s=r.state,c=s.dragging,d=s.pageY,f=s.startTop,m=r.props.onScroll;if(It.cancel(r.moveRaf),c){var h=Pg(l)-d,g=f+h,v=r.getEnableScrollRange(),p=r.getEnableHeightRange(),y=p?g/p:0,b=Math.ceil(y*v);r.moveRaf=It(function(){m(b);});}},r.onMouseUp=function(){var l=r.props.onStopMove;r.setState({dragging:!1}),l(),r.removeEvents();},r.getSpinHeight=function(){var l=r.props,s=l.height,c=l.count,d=s/c*10;return d=Math.max(d,DR),d=Math.min(d,s/2),Math.floor(d)},r.getEnableScrollRange=function(){var l=r.props,s=l.scrollHeight,c=l.height;return s-c||0},r.getEnableHeightRange=function(){var l=r.props.height,s=r.getSpinHeight();return l-s||0},r.getTop=function(){var l=r.props.scrollTop,s=r.getEnableScrollRange(),c=r.getEnableHeightRange();if(l===0||s===0)return 0;var d=l/s;return d*c},r.showScroll=function(){var l=r.props,s=l.height,c=l.scrollHeight;return c>s},r}return bn(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown);}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden();}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout);}},{key:"render",value:function(){var o=this.state,i=o.dragging,a=o.visible,l=this.props,s=l.prefixCls,c=l.direction,d=this.getSpinHeight(),f=this.getTop(),m=this.showScroll(),h=m&&a,g=c==="rtl"?{left:0}:{right:0};return u__namespace.createElement("div",{ref:this.scrollbarRef,className:W("".concat(s,"-scrollbar"),U({},"".concat(s,"-scrollbar-show"),m)),style:Z(Z({width:8,top:0,bottom:0},g),{},{position:"absolute",display:h?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},u__namespace.createElement("div",{ref:this.thumbRef,className:W("".concat(s,"-scrollbar-thumb"),U({},"".concat(s,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:d,top:f,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(u__namespace.Component);function jR(e){var t=e.children,n=e.setRef,r=u__namespace.useCallback(function(o){n(o);},[]);return u__namespace.cloneElement(t,{ref:r})}function BR(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map(function(l,s){var c=t+s,d=o(l,c,{}),f=a(l);return u__namespace.createElement(jR,{key:f,setRef:function(h){return r(l,h)}},d)})}var HR=function(){function e(){pn(this,e),this.maps=void 0,this.maps=Object.create(null);}return bn(e,[{key:"set",value:function(n,r){this.maps[n]=r;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function FR(e,t,n){var r=u__namespace.useState(0),o=G(r,2),i=o[0],a=o[1],l=u.useRef(new Map),s=u.useRef(new HR),c=u.useRef();function d(){It.cancel(c.current);}function f(){d(),c.current=It(function(){l.current.forEach(function(h,g){if(h&&h.offsetParent){var v=as(h),p=v.offsetHeight;s.current.get(g)!==p&&s.current.set(g,v.offsetHeight);}}),a(function(h){return h+1});});}function m(h,g){var v=e(h),p=l.current.get(v);g?(l.current.set(v,g),f()):l.current.delete(v),!p!=!g&&(g?t==null||t(h):n==null||n(h));}return u.useEffect(function(){return d},[]),[m,f,s.current,i]}function WR(e,t,n,r,o,i,a,l){var s=u__namespace.useRef();return function(c){if(c==null){l();return}if(It.cancel(s.current),typeof c=="number")a(c);else if(c&&dt(c)==="object"){var d,f=c.align;"index"in c?d=c.index:d=t.findIndex(function(v){return o(v)===c.key});var m=c.offset,h=m===void 0?0:m,g=function v(p,y){if(!(p<0||!e.current)){var b=e.current.clientHeight,O=!1,P=y;if(b){for(var w=y||f,$=0,S=0,C=0,I=Math.min(t.length,d),M=0;M<=I;M+=1){var L=o(t[M]);S=$;var _=n.get(L);C=S+(_===void 0?r:_),$=C,M===d&&_===void 0&&(O=!0);}var E=null;switch(w){case"top":E=S-h;break;case"bottom":E=C-b+h;break;default:{var x=e.current.scrollTop,R=x+b;S<x?P="top":C>R&&(P="bottom");}}E!==null&&E!==e.current.scrollTop&&a(E);}s.current=It(function(){O&&i(),v(p-1,P);},2);}};g(3);}}}function VR(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var l={__EMPTY_ITEM__:!0};function s(g){return g!==void 0?n(g):l}for(var c=null,d=Math.abs(r-o)!==1,f=0;f<a.length;f+=1){var m=s(i[f]),h=s(a[f]);if(m!==h){c=f,d=d||m!==s(a[f+1]);break}}return c===null?null:{index:c,multiple:d}}function KR(e,t,n){var r=u__namespace.useState(e),o=G(r,2),i=o[0],a=o[1],l=u__namespace.useState(null),s=G(l,2),c=s[0],d=s[1];return u__namespace.useEffect(function(){var f=VR(i||[],e||[],t);(f==null?void 0:f.index)!==void 0&&(n==null||n(f.index),d(e[f.index])),a(e);},[e]),[c]}var GR=(typeof navigator>"u"?"undefined":dt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const R0=function(e,t){var n=u.useRef(!1),r=u.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1;},50);}var i=u.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=a<0&&i.current.top||a>0&&i.current.bottom;return l&&s?(clearTimeout(r.current),n.current=!1):(!s||n.current)&&o(),!n.current&&s}};function UR(e,t,n,r){var o=u.useRef(0),i=u.useRef(null),a=u.useRef(null),l=u.useRef(!1),s=R0(t,n);function c(f){if(e){It.cancel(i.current);var m=f.deltaY;o.current+=m,a.current=m,!s(m)&&(GR||f.preventDefault(),i.current=It(function(){var h=l.current?10:1;r(o.current*h),o.current=0;}));}}function d(f){e&&(l.current=f.detail===a.current);}return [c,d]}var XR=14/15;function YR(e,t,n){var r=u.useRef(!1),o=u.useRef(0),i=u.useRef(null),a=u.useRef(null),l,s=function(m){if(r.current){var h=Math.ceil(m.touches[0].pageY),g=o.current-h;o.current=h,n(g)&&m.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){g*=XR,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(a.current);},16);}},c=function(){r.current=!1,l();},d=function(m){l(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),i.current=m.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",c));};l=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",c));},Ft(function(){return e&&t.current.addEventListener("touchstart",d),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(a.current);}},[e]);}var qR=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],ZR=[],QR={overflowY:"auto",overflowAnchor:"none"};function JR(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,s=l===void 0?!0:l,c=e.style,d=e.data,f=e.children,m=e.itemKey,h=e.virtual,g=e.direction,v=e.component,p=v===void 0?"div":v,y=e.onScroll,b=e.onVisibleChange,O=e.innerProps,P=Qe(e,qR),w=!!(h!==!1&&i&&a),$=w&&d&&a*d.length>i,S=u.useState(0),C=G(S,2),I=C[0],M=C[1],L=u.useState(!1),_=G(L,2),E=_[0],x=_[1],R=W(r,U({},"".concat(r,"-rtl"),g==="rtl"),o),k=d||ZR,T=u.useRef(),A=u.useRef(),z=u.useRef(),F=u__namespace.useCallback(function(ye){return typeof m=="function"?m(ye):ye==null?void 0:ye[m]},[m]),V={getKey:F};function j(ye){M(function(xe){var ze;typeof ye=="function"?ze=ye(xe):ze=ye;var Le=be(ze);return T.current.scrollTop=Le,Le});}var H=u.useRef({start:0,end:k.length}),B=u.useRef(),X=KR(k,F),J=G(X,1),Q=J[0];B.current=Q;var K=FR(F,null,null),Y=G(K,4),re=Y[0],ue=Y[1],se=Y[2],ee=Y[3],ae=u__namespace.useMemo(function(){if(!w)return {scrollHeight:void 0,start:0,end:k.length-1,offset:void 0};if(!$){var ye;return {scrollHeight:((ye=A.current)===null||ye===void 0?void 0:ye.offsetHeight)||0,start:0,end:k.length-1,offset:void 0}}for(var xe=0,ze,Le,rt,Ue=k.length,de=0;de<Ue;de+=1){var ne=k[de],me=F(ne),le=se.get(me),Ne=xe+(le===void 0?a:le);Ne>=I&&ze===void 0&&(ze=de,Le=xe),Ne>I+i&&rt===void 0&&(rt=de),xe=Ne;}return ze===void 0&&(ze=0,Le=0,rt=Math.ceil(i/a)),rt===void 0&&(rt=k.length-1),rt=Math.min(rt+1,k.length),{scrollHeight:xe,start:ze,end:rt,offset:Le}},[$,w,I,k,ee,i]),q=ae.scrollHeight,te=ae.start,ce=ae.end,fe=ae.offset;H.current.start=te,H.current.end=ce;var he=q-i,ge=u.useRef(he);ge.current=he;function be(ye){var xe=ye;return Number.isNaN(ge.current)||(xe=Math.min(xe,ge.current)),xe=Math.max(xe,0),xe}var Re=I<=0,De=I>=he,$e=R0(Re,De);function we(ye){var xe=ye;j(xe);}function Te(ye){var xe=ye.currentTarget.scrollTop;xe!==I&&j(xe),y==null||y(ye);}var Je=UR(w,Re,De,function(ye){j(function(xe){var ze=xe+ye;return ze});}),Ve=G(Je,2),Ye=Ve[0],Me=Ve[1];YR(w,T,function(ye,xe){return $e(ye,xe)?!1:(Ye({preventDefault:function(){},deltaY:ye}),!0)}),Ft(function(){function ye(xe){w&&xe.preventDefault();}return T.current.addEventListener("wheel",Ye),T.current.addEventListener("DOMMouseScroll",Me),T.current.addEventListener("MozMousePixelScroll",ye),function(){T.current&&(T.current.removeEventListener("wheel",Ye),T.current.removeEventListener("DOMMouseScroll",Me),T.current.removeEventListener("MozMousePixelScroll",ye));}},[w]);var ke=WR(T,k,se,a,F,ue,j,function(){var ye;(ye=z.current)===null||ye===void 0||ye.delayHidden();});u__namespace.useImperativeHandle(t,function(){return {scrollTo:ke}}),Ft(function(){if(b){var ye=k.slice(te,ce+1);b(ye,k);}},[te,ce,k]);var qe=BR(k,te,ce,re,f,V),et=null;return i&&(et=Z(U({},s?"height":"maxHeight",i),QR),w&&(et.overflowY="hidden",E&&(et.pointerEvents="none"))),u__namespace.createElement("div",Ce({style:Z(Z({},c),{},{position:"relative"}),className:R},P),u__namespace.createElement(p,{className:"".concat(r,"-holder"),style:et,ref:T,onScroll:Te},u__namespace.createElement(_0,{prefixCls:r,height:q,offset:fe,onInnerResize:ue,ref:A,innerProps:O},qe)),w&&u__namespace.createElement(zR,{ref:z,prefixCls:r,scrollTop:I,height:i,scrollHeight:q,count:k.length,direction:g,onScroll:we,onStartMove:function(){x(!0);},onStopMove:function(){x(!1);}}))}var T0=u__namespace.forwardRef(JR);T0.displayName="List";var N0=u__namespace.createContext(null);function eT(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var tT=["disabled","title","children","style","className"];function Mg(e){return typeof e=="string"||typeof e=="number"}var nT=function(t,n){var r=K_(),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,s=r.mode,c=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,h=u__namespace.useContext(N0),g=h.flattenOptions,v=h.onActiveValue,p=h.defaultActiveFirstOption,y=h.onSelect,b=h.menuItemSelectedIcon,O=h.rawValues,P=h.fieldNames,w=h.virtual,$=h.direction,S=h.listHeight,C=h.listItemHeight,I="".concat(o,"-item"),M=Ha(function(){return g},[a,g],function(Q,K){return K[0]&&Q[1]!==K[1]}),L=u__namespace.useRef(null),_=function(K){K.preventDefault();},E=function(K){L.current&&L.current.scrollTo(typeof K=="number"?{index:K}:K);},x=function(K){for(var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=M.length,ue=0;ue<re;ue+=1){var se=(K+ue*Y+re)%re,ee=M[se],ae=ee.group,q=ee.data;if(!ae&&!q.disabled)return se}return -1},R=u__namespace.useState(function(){return x(0)}),k=G(R,2),T=k[0],A=k[1],z=function(K){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;A(K);var re={source:Y?"keyboard":"mouse"},ue=M[K];if(!ue){v(null,-1,re);return}v(ue.value,K,re);};u.useEffect(function(){z(p!==!1?x(0):-1);},[M.length,c]);var F=u__namespace.useCallback(function(Q){return O.has(Q)&&s!=="combobox"},[s,Ge(O).toString(),O.size]);u.useEffect(function(){var Q=setTimeout(function(){if(!l&&a&&O.size===1){var Y=Array.from(O)[0],re=M.findIndex(function(ue){var se=ue.data;return se.value===Y});re!==-1&&(z(re),E(re));}});if(a){var K;(K=L.current)===null||K===void 0||K.scrollTo(void 0);}return function(){return clearTimeout(Q)}},[a,c,g.length]);var V=function(K){K!==void 0&&y(K,{selected:!O.has(K)}),l||d(!1);};if(u__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(K){var Y=K.which,re=K.ctrlKey;switch(Y){case ie.N:case ie.P:case ie.UP:case ie.DOWN:{var ue=0;if(Y===ie.UP?ue=-1:Y===ie.DOWN?ue=1:eT()&&re&&(Y===ie.N?ue=1:Y===ie.P&&(ue=-1)),ue!==0){var se=x(T+ue,ue);E(se),z(se,!0);}break}case ie.ENTER:{var ee=M[T];ee&&!ee.data.disabled?V(ee.value):V(void 0),a&&K.preventDefault();break}case ie.ESC:d(!1),a&&K.stopPropagation();}},onKeyUp:function(){},scrollTo:function(K){E(K);}}}),M.length===0)return u__namespace.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:_},f);var j=Object.keys(P).map(function(Q){return P[Q]}),H=function(K){return K.label};function B(Q,K){var Y=Q.group;return {role:Y?"presentation":"option",id:"".concat(i,"_list_").concat(K)}}var X=function(K){var Y=M[K];if(!Y)return null;var re=Y.data||{},ue=re.value,se=Y.group,ee=Ci(re,!0),ae=H(Y);return Y?u__namespace.createElement("div",Ce({"aria-label":typeof ae=="string"&&!se?ae:null},ee,{key:K},B(Y,K),{"aria-selected":F(ue)}),ue):null},J={role:"listbox",id:"".concat(i,"_list")};return u__namespace.createElement(u__namespace.Fragment,null,w&&u__namespace.createElement("div",Ce({},J,{style:{height:0,width:0,overflow:"hidden"}}),X(T-1),X(T),X(T+1)),u__namespace.createElement(T0,{itemKey:"key",ref:L,data:M,height:S,itemHeight:C,fullHeight:!1,onMouseDown:_,onScroll:m,virtual:w,direction:$,innerProps:w?null:J},function(Q,K){var Y,re=Q.group,ue=Q.groupOption,se=Q.data,ee=Q.label,ae=Q.value,q=se.key;if(re){var te,ce=(te=se.title)!==null&&te!==void 0?te:Mg(ee)?ee.toString():void 0;return u__namespace.createElement("div",{className:W(I,"".concat(I,"-group")),title:ce},ee!==void 0?ee:q)}var fe=se.disabled,he=se.title;se.children;var ge=se.style,be=se.className,Re=Qe(se,tT),De=vn(Re,j),$e=F(ae),we="".concat(I,"-option"),Te=W(I,we,be,(Y={},U(Y,"".concat(we,"-grouped"),ue),U(Y,"".concat(we,"-active"),T===K&&!fe),U(Y,"".concat(we,"-disabled"),fe),U(Y,"".concat(we,"-selected"),$e),Y)),Je=H(Q),Ve=!b||typeof b=="function"||$e,Ye=typeof Je=="number"?Je:Je||ae,Me=Mg(Ye)?Ye.toString():void 0;return he!==void 0&&(Me=he),u__namespace.createElement("div",Ce({},Ci(De),w?{}:B(Q,K),{"aria-selected":$e,className:Te,title:Me,onMouseMove:function(){T===K||fe||z(K);},onClick:function(){fe||V(ae);},style:ge}),u__namespace.createElement("div",{className:"".concat(we,"-content")},Ye),u__namespace.isValidElement(b)||$e,Ve&&u__namespace.createElement(ms,{className:"".concat(I,"-option-state"),customizeIcon:b,customizeIconProps:{isSelected:$e}},$e?"✓":null))}))},k0=u__namespace.forwardRef(nT);k0.displayName="OptionList";var rT=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],oT=["inputValue"];function iT(e){return !e||dt(e)!=="object"}var aT=u__namespace.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,l=e.fieldNames,s=e.inputValue,c=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,m=f===void 0?!0:f,h=e.onSelect,g=e.onDeselect,v=e.dropdownMatchSelectWidth,p=v===void 0?!0:v,y=e.filterOption,b=e.filterSort,O=e.optionFilterProp,P=e.optionLabelProp,w=e.options,$=e.children,S=e.defaultActiveFirstOption,C=e.menuItemSelectedIcon,I=e.virtual,M=e.direction,L=e.listHeight,_=L===void 0?200:L,E=e.listItemHeight,x=E===void 0?20:E,R=e.value,k=e.defaultValue,T=e.labelInValue,A=e.onChange,z=Qe(e,rT),F=TR(n),V=hd(r),j=!!(!w&&$),H=u__namespace.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),B=u__namespace.useMemo(function(){return P0(l,j)},[JSON.stringify(l),j]),X=zt("",{value:c!==void 0?c:s,postState:function(ve){return ve||""}}),J=G(X,2),Q=J[0],K=J[1],Y=AR(w,$,B,O,P),re=Y.valueOptions,ue=Y.labelOptions,se=Y.options,ee=u__namespace.useCallback(function(Se){var ve=x0(Se);return ve.map(function(Ee){var _e,Ze,ft,pt,Vt;if(iT(Ee))_e=Ee;else {var jt;ft=Ee.key,Ze=Ee.label,_e=(jt=Ee.value)!==null&&jt!==void 0?jt:ft;}var Fe=re.get(_e);if(Fe){var Xe;Ze===void 0&&(Ze=Fe==null?void 0:Fe[P||B.label]),ft===void 0&&(ft=(Xe=Fe==null?void 0:Fe.key)!==null&&Xe!==void 0?Xe:_e),pt=Fe==null?void 0:Fe.disabled,Vt=Fe==null?void 0:Fe.title;}return {label:Ze,value:_e,key:ft,disabled:pt,title:Vt}})},[B,P,re]),ae=zt(k,{value:R}),q=G(ae,2),te=q[0],ce=q[1],fe=u__namespace.useMemo(function(){var Se,ve=ee(te);return r==="combobox"&&!((Se=ve[0])!==null&&Se!==void 0&&Se.value)?[]:ve},[te,ee,r]),he=PR(fe,re),ge=G(he,2),be=ge[0],Re=ge[1],De=u__namespace.useMemo(function(){if(!r&&be.length===1){var Se=be[0];if(Se.value===null&&(Se.label===null||Se.label===void 0))return []}return be.map(function(ve){var Ee;return Z(Z({},ve),{},{label:(Ee=ve.label)!==null&&Ee!==void 0?Ee:ve.value})})},[r,be]),$e=u__namespace.useMemo(function(){return new Set(be.map(function(Se){return Se.value}))},[be]);u__namespace.useEffect(function(){if(r==="combobox"){var Se,ve=(Se=be[0])===null||Se===void 0?void 0:Se.value;K(mR(ve)?String(ve):"");}},[be]);var we=Og(function(Se,ve){var Ee,_e=ve??Se;return Ee={},U(Ee,B.value,Se),U(Ee,B.label,_e),Ee}),Te=u__namespace.useMemo(function(){if(r!=="tags")return se;var Se=Ge(se),ve=function(_e){return re.has(_e)};return Ge(be).sort(function(Ee,_e){return Ee.value<_e.value?-1:1}).forEach(function(Ee){var _e=Ee.value;ve(_e)||Se.push(we(_e,Ee.label));}),Se},[we,se,re,be,r]),Je=MR(Te,B,Q,H,O),Ve=u__namespace.useMemo(function(){return r!=="tags"||!Q||Je.some(function(Se){return Se[O||"value"]===Q})?Je:[we(Q)].concat(Ge(Je))},[we,O,r,Je,Q]),Ye=u__namespace.useMemo(function(){return b?Ge(Ve).sort(function(Se,ve){return b(Se,ve)}):Ve},[Ve,b]),Me=u__namespace.useMemo(function(){return $R(Ye,{fieldNames:B,childrenAsData:j})},[Ye,B,j]),ke=function(ve){var Ee=ee(ve);if(ce(Ee),A&&(Ee.length!==be.length||Ee.some(function(ft,pt){var Vt;return ((Vt=be[pt])===null||Vt===void 0?void 0:Vt.value)!==(ft==null?void 0:ft.value)}))){var _e=T?Ee:Ee.map(function(ft){return ft.value}),Ze=Ee.map(function(ft){return md(Re(ft.value))});A(V?_e:_e[0],V?Ze:Ze[0]);}},qe=u__namespace.useState(null),et=G(qe,2),ye=et[0],xe=et[1],ze=u__namespace.useState(0),Le=G(ze,2),rt=Le[0],Ue=Le[1],de=S!==void 0?S:r!=="combobox",ne=u__namespace.useCallback(function(Se,ve){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_e=Ee.source,Ze=_e===void 0?"keyboard":_e;Ue(ve),a&&r==="combobox"&&Se!==null&&Ze==="keyboard"&&xe(String(Se));},[a,r]),me=function(ve,Ee,_e){var Ze=function(){var Yt,Be=Re(ve);return [T?{label:Be==null?void 0:Be[B.label],value:ve,key:(Yt=Be==null?void 0:Be.key)!==null&&Yt!==void 0?Yt:ve}:ve,md(Be)]};if(Ee&&h){var ft=Ze(),pt=G(ft,2),Vt=pt[0],jt=pt[1];h(Vt,jt);}else if(!Ee&&g&&_e!=="clear"){var Fe=Ze(),Xe=G(Fe,2),je=Xe[0],bt=Xe[1];g(je,bt);}},le=Og(function(Se,ve){var Ee,_e=V?ve.selected:!0;_e?Ee=V?[].concat(Ge(be),[Se]):[Se]:Ee=be.filter(function(Ze){return Ze.value!==Se}),ke(Ee),me(Se,_e),r==="combobox"?xe(""):(!hd||m)&&(K(""),xe(""));}),Ne=function(ve,Ee){ke(ve);var _e=Ee.type,Ze=Ee.values;(_e==="remove"||_e==="clear")&&Ze.forEach(function(ft){me(ft.value,!1,_e);});},tt=function(ve,Ee){if(K(ve),xe(null),Ee.source==="submit"){var _e=(ve||"").trim();if(_e){var Ze=Array.from(new Set([].concat(Ge($e),[_e])));ke(Ze),me(_e,!0),K("");}return}Ee.source!=="blur"&&(r==="combobox"&&ke(ve),d==null||d(ve));},ct=function(ve){var Ee=ve;r!=="tags"&&(Ee=ve.map(function(Ze){var ft=ue.get(Ze);return ft==null?void 0:ft.value}).filter(function(Ze){return Ze!==void 0}));var _e=Array.from(new Set([].concat(Ge($e),Ge(Ee))));ke(_e),_e.forEach(function(Ze){me(Ze,!0);});},Ae=u__namespace.useMemo(function(){var Se=I!==!1&&p!==!1;return Z(Z({},Y),{},{flattenOptions:Me,onActiveValue:ne,defaultActiveFirstOption:de,onSelect:le,menuItemSelectedIcon:C,rawValues:$e,fieldNames:B,virtual:Se,direction:M,listHeight:_,listItemHeight:x,childrenAsData:j})},[Y,Me,ne,de,le,C,$e,B,I,p,_,x,j]);return u__namespace.createElement(N0.Provider,{value:Ae},u__namespace.createElement(OR,Ce({},z,{id:F,prefixCls:i,ref:t,omitDomProps:oT,mode:r,displayValues:De,onDisplayValuesChange:Ne,direction:M,searchValue:Q,onSearch:tt,autoClearSearchValue:m,onSearchSplit:ct,dropdownMatchSelectWidth:p,OptionList:k0,emptyOptions:!Me.length,activeValue:ye,activeDescendantId:"".concat(F,"_list_").concat(rt)})))}),Qf=aT;Qf.Option=Zf;Qf.OptGroup=qf;const lT=()=>{const[,e]=eo(),n=new Wt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u__namespace.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},u__namespace.createElement("g",{transform:"translate(24 31.67)"},u__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u__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"}),u__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)"}),u__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"}),u__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"})),u__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"}),u__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},sT=lT,cT=()=>{const[,e]=eo(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=u.useMemo(()=>({borderColor:new Wt(t).onBackground(o).toHexShortString(),shadowColor:new Wt(n).onBackground(o).toHexShortString(),contentColor:new Wt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return u__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u__namespace.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),u__namespace.createElement("g",{fillRule:"nonzero",stroke:i},u__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"}),u__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}))))},uT=cT,dT=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return {[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},fT=Ut("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=mt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [dT(r)]});var mT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const L0=u__namespace.createElement(sT,null),A0=u__namespace.createElement(uT,null),Jf=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=L0,description:i,children:a,imageStyle:l,style:s}=e,c=mT(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:m}=u__namespace.useContext(ot),h=d("empty",r),[g,v]=fT(h),[p]=Ni("Empty"),y=typeof i<"u"?i:p==null?void 0:p.description,b=typeof y=="string"?y:"empty";let O=null;return typeof o=="string"?O=u__namespace.createElement("img",{alt:b,src:o}):O=o,g(u__namespace.createElement("div",Object.assign({className:W(v,h,m==null?void 0:m.className,{[`${h}-normal`]:o===A0,[`${h}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),s)},c),u__namespace.createElement("div",{className:`${h}-image`,style:l},O),y&&u__namespace.createElement("div",{className:`${h}-description`},y),a&&u__namespace.createElement("div",{className:`${h}-footer`},a)))};Jf.PRESENTED_IMAGE_DEFAULT=L0;Jf.PRESENTED_IMAGE_SIMPLE=A0;const Xi=Jf,hT=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.useContext(ot),r=n("empty");switch(t){case"Table":case"List":return u.createElement(Xi,{image:Xi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return u.createElement(Xi,{image:Xi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return u.createElement(Xi,null)}},D0=hT;function gT(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function vT(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 cc(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({},gT(e,r,t)),vT(n,r,t))}}const pT=e=>{const{controlPaddingHorizontal:t}=e;return {position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},bT=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},kt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft
`]:{animationName:Wf},[`
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft
`]:{animationName:Kf},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Vf},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Gf},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},pT(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"},xo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Jr(e,"slide-up"),Jr(e,"slide-down"),us(e,"move-up"),us(e,"move-down")]},yT=bT,Go=2,z0=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return [o,i]};function su(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=z0(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",padding:`${a-Go}px ${Go*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Go}px 0`,lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
`]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:Go,marginBottom:Go,lineHeight:`${i-e.lineWidth*2}px`,background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Go*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},To()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const CT=e=>{const{componentCls:t}=e,n=mt(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=mt(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=z0(e);return [su(e),su(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},su(r,"lg")]},ST=CT;function cu(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-e.lineWidth*2,a=Math.ceil(e.fontSize*1.25),l=t?`${n}-${t}`:"";return {[`${n}-single${l}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},kt(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`
${n}-selection-item,
${n}-selection-placeholder
`]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-placeholder
`]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function wT(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [cu(e),cu(mt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[`
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
`]:{paddingInlineEnd:e.fontSize*1.5}}}},cu(mt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const $T=e=>{const{componentCls:t}=e;return {position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},uu=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,l=n?{[`${r}-selector`]:{borderColor:o}}:{};return {[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},xT=e=>{const{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ET=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return {[t]:Object.assign(Object.assign({},kt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},$T(e)),xT(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},xo),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},xo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},To()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},IT=e=>{const{componentCls:t}=e;return [{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},ET(e),wT(e),ST(e),yT(e),{[`${t}-rtl`]:{direction:"rtl"}},uu(t,mt(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),uu(`${t}-status-error`,mt(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),uu(`${t}-status-warning`,mt(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),cc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},OT=Ut("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=mt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return [IT(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),PT=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",_experimental:{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 MT(e,t){return e||PT(t)}function _T(e){return e??!0}var RT={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 TT=RT;function j0(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function NT(e){return j0(e)!==(e==null?void 0:e.ownerDocument)}function kT(e){return NT(e)?j0(e):null}function LT(e,t){pr(e,"[@ant-design/icons] ".concat(t));}function _g(e){return dt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(dt(e.icon)==="object"||typeof e.icon=="function")}function Rg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r;}return t},{})}function gd(e,t,n){return n?u.createElement(e.tag,Z(Z({key:t},Rg(e.attrs)),n),(e.children||[]).map(function(r,o){return gd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):u.createElement(e.tag,Z({key:t},Rg(e.attrs)),(e.children||[]).map(function(r,o){return gd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function B0(e){return Rr(e)[0]}function H0(e){return e?Array.isArray(e)?e:[e]:[]}var AT=`
.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);
}
}
`,DT=function(t){var n=u.useContext(_f),r=n.csp,o=n.prefixCls,i=AT;o&&(i=i.replace(/anticon/g,o)),u.useEffect(function(){var a=t.current,l=kT(a);gi(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l});},[]);},zT=["icon","className","onClick","style","primaryColor","secondaryColor"],ca={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function jT(e){var t=e.primaryColor,n=e.secondaryColor;ca.primaryColor=t,ca.secondaryColor=n||B0(t),ca.calculated=!!n;}function BT(){return Z({},ca)}var uc=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=Qe(t,zT),c=u__namespace.useRef(),d=ca;if(a&&(d={primaryColor:a,secondaryColor:l||B0(a)}),DT(c),LT(_g(n),"icon should be icon definiton, but got ".concat(n)),!_g(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=Z(Z({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),gd(f.icon,"svg-".concat(f.name),Z(Z({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};uc.displayName="IconReact";uc.getTwoToneColors=BT;uc.setTwoToneColors=jT;const em=uc;function F0(e){var t=H0(e),n=G(t,2),r=n[0],o=n[1];return em.setTwoToneColors({primaryColor:r,secondaryColor:o})}function HT(){var e=em.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var FT=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];F0(lO.primary);var dc=u__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,s=e.onClick,c=e.twoToneColor,d=Qe(e,FT),f=u__namespace.useContext(_f),m=f.prefixCls,h=m===void 0?"anticon":m,g=f.rootClassName,v=W(g,h,(n={},U(n,"".concat(h,"-").concat(o.name),!!o.name),U(n,"".concat(h,"-spin"),!!i||o.name==="loading"),n),r),p=l;p===void 0&&s&&(p=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=H0(c),O=G(b,2),P=O[0],w=O[1];return u__namespace.createElement("span",Ce({role:"img","aria-label":o.name},d,{ref:t,tabIndex:p,onClick:s,className:v}),u__namespace.createElement(em,{icon:o,primaryColor:P,secondaryColor:w,style:y}))});dc.displayName="AntdIcon";dc.getTwoToneColor=HT;dc.setTwoToneColor=F0;const sn=dc;var WT=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:TT}))};const VT=u__namespace.forwardRef(WT);var KT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};const GT=KT;var UT=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:GT}))};const tm=u__namespace.forwardRef(UT);var XT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const YT=XT;var qT=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:YT}))};const fc=u__namespace.forwardRef(qT);var ZT={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 QT=ZT;var JT=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:QT}))};const nm=u__namespace.forwardRef(JT);var eN={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 tN=eN;var nN=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:tN}))};const rm=u__namespace.forwardRef(nN);var rN={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 oN=rN;var iN=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:oN}))};const om=u__namespace.forwardRef(iN);function aN(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showArrow:c,feedbackIcon:d}=e;const f=n??u__namespace.createElement(tm,null),m=p=>u__namespace.createElement(u__namespace.Fragment,null,c!==!1&&p,l&&d);let h=null;if(t!==void 0)h=m(t);else if(i)h=m(u__namespace.createElement(rm,{spin:!0}));else {const p=`${s}-suffix`;h=y=>{let{open:b,showSearch:O}=y;return m(b&&O?u__namespace.createElement(om,{className:p}):u__namespace.createElement(nm,{className:p}))};}let g=null;r!==void 0?g=r:a?g=u__namespace.createElement(VT,null):g=null;let v=null;return o!==void 0?v=o:v=u__namespace.createElement(fc,null),{clearIcon:f,suffixIcon:h,itemIcon:g,removeIcon:v}}var lN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const W0="SECRET_COMBOBOX_MODE_DO_NOT_USE",sN=(e,t)=>{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:l,popupClassName:s,dropdownClassName:c,listHeight:d=256,placement:f,listItemHeight:m=24,size:h,disabled:g,notFoundContent:v,status:p,showArrow:y,builtinPlacements:b,dropdownMatchSelectWidth:O,popupMatchSelectWidth:P,direction:w,style:$}=e,S=lN(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style"]);const{getPopupContainer:C,getPrefixCls:I,renderEmpty:M,direction:L,virtual:_,popupMatchSelectWidth:E,popupOverflow:x,select:R}=u__namespace.useContext(ot),k=I("select",r),T=I(),A=w??L,{compactSize:z,compactItemClassnames:F}=Li(k,A),[V,j]=OT(k),H=u__namespace.useMemo(()=>{const{mode:we}=S;if(we!=="combobox")return we===W0?"combobox":we},[S.mode]),B=H==="multiple"||H==="tags",X=_T(y),J=(n=P??O)!==null&&n!==void 0?n:E,{status:Q,hasFeedback:K,isFormItemInput:Y,feedbackIcon:re}=u__namespace.useContext(Vn),ue=Ka(Q,p);let se;v!==void 0?se=v:H==="combobox"?se=null:se=(M==null?void 0:M("Select"))||u__namespace.createElement(D0,{componentName:"Select"});const{suffixIcon:ee,itemIcon:ae,removeIcon:q,clearIcon:te}=aN(Object.assign(Object.assign({},S),{multiple:B,hasFeedback:K,feedbackIcon:re,showArrow:X,prefixCls:k})),ce=vn(S,["suffixIcon","itemIcon"]),fe=W(s||c,{[`${k}-dropdown-${A}`]:A==="rtl"},a,j),he=kn(we=>{var Te;return (Te=h??z)!==null&&Te!==void 0?Te:we}),ge=u__namespace.useContext(br),be=g??ge,Re=W({[`${k}-lg`]:he==="large",[`${k}-sm`]:he==="small",[`${k}-rtl`]:A==="rtl",[`${k}-borderless`]:!o,[`${k}-in-form-item`]:Y},Zn(k,ue,K),F,R==null?void 0:R.className,i,a,j),De=u__namespace.useMemo(()=>f!==void 0?f:A==="rtl"?"bottomRight":"bottomLeft",[f,A]),$e=MT(b,x);return V(u__namespace.createElement(Qf,Object.assign({ref:t,virtual:_,showSearch:R==null?void 0:R.showSearch},ce,{style:Object.assign(Object.assign({},R==null?void 0:R.style),$),dropdownMatchSelectWidth:J,builtinPlacements:$e,transitionName:rc(T,mP(f),S.transitionName),listHeight:d,listItemHeight:m,mode:H,prefixCls:k,placement:De,direction:A,inputIcon:ee,menuItemSelectedIcon:ae,removeIcon:q,clearIcon:te,notFoundContent:se,className:Re,getPopupContainer:l||C,dropdownClassName:fe,showArrow:K||X,disabled:be})))},Ai=u__namespace.forwardRef(sN),cN=Df(Ai);Ai.SECRET_COMBOBOX_MODE_DO_NOT_USE=W0;Ai.Option=Zf;Ai.OptGroup=qf;Ai._InternalPanelDoNotUseOrYouWillBeFired=cN;const Xa=Ai;var Pr;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(Pr||(Pr={}));var uN={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 dN=uN;var fN=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:dN}))};const mN=u__namespace.forwardRef(fN);function vd(){return typeof BigInt=="function"}function So(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var l=n?"-":"";return {negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function im(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function Ma(e){var t=String(e);if(im(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(".")&&am(t)?t.length-t.indexOf(".")-1:0}function mc(e){var t=String(e);if(im(e)){if(e>Number.MAX_SAFE_INTEGER)return String(vd()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(vd()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Ma(t));}return So(t).fullStr}function am(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 V0(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var hN=function(){function e(t){if(pn(this,e),U(this,"origin",""),U(this,"number",void 0),U(this,"empty",void 0),V0(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return bn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(Ma(this.number),Ma(r));return new e(o.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":mc(this.number):this.origin}}]),e}(),gN=function(){function e(t){if(pn(this,e),U(this,"origin",""),U(this,"negative",void 0),U(this,"integer",void 0),U(this,"decimal",void 0),U(this,"decimalLen",void 0),U(this,"empty",void 0),U(this,"nan",void 0),V0(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(im(n)&&(n=Number(n)),n=typeof n=="string"?n:mc(n),am(n)){var r=So(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length;}else this.nan=!0;}return bn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),i=this.alignDecimal(o),a=r.alignDecimal(o),l=(i+a).toString(),s=So(l),c=s.negativeStr,d=s.trimStr,f="".concat(c).concat(d.padStart(o+1,"0"));return new e("".concat(f.slice(0,-o),".").concat(f.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()?"":So("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Xn(e){return vd()?new gN(e):new hN(e)}function Hl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=So(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(i).concat(a);if(n>=0){var d=Number(l[n]);if(d>=5&&!r){var f=Xn(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-d));return Hl(f.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 Uo(e){return !!(e.addonBefore||e.addonAfter)}function du(e){return !!(e.prefix||e.suffix||e.allowClear)}function ua(e,t,n,r){if(n){var o=t;if(t.type==="click"){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",n(o);return}if(r!==void 0){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(o);return}n(o);}}function K0(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o);}}}}function pd(e){return typeof e>"u"||e===null?"":String(e)}var lm=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,l=t.suffix,s=t.addonBefore,c=t.addonAfter,d=t.className,f=t.style,m=t.disabled,h=t.readOnly,g=t.focused,v=t.triggerFocus,p=t.allowClear,y=t.value,b=t.handleReset,O=t.hidden,P=t.classes,w=t.classNames,$=t.dataAttrs,S=t.styles,C=t.components,I=(C==null?void 0:C.affixWrapper)||"span",M=(C==null?void 0:C.groupWrapper)||"span",L=(C==null?void 0:C.wrapper)||"span",_=(C==null?void 0:C.groupAddon)||"span",E=u.useRef(null),x=function(J){var Q;(Q=E.current)!==null&&Q!==void 0&&Q.contains(J.target)&&(v==null||v());},R=function(){var J;if(!p)return null;var Q=!m&&!h&&y,K="".concat(i,"-clear-icon"),Y=dt(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return u.createElement("span",{onClick:b,onMouseDown:function(ue){return ue.preventDefault()},className:W(K,(J={},U(J,"".concat(K,"-hidden"),!Q),U(J,"".concat(K,"-has-suffix"),!!l),J)),role:"button",tabIndex:-1},Y)},k=u.cloneElement(o,{value:y,hidden:O,className:W((n=o.props)===null||n===void 0?void 0:n.className,!du(t)&&!Uo(t)&&d)||null,style:Z(Z({},(r=o.props)===null||r===void 0?void 0:r.style),!du(t)&&!Uo(t)?f:{})});if(du(t)){var T,A="".concat(i,"-affix-wrapper"),z=W(A,(T={},U(T,"".concat(A,"-disabled"),m),U(T,"".concat(A,"-focused"),g),U(T,"".concat(A,"-readonly"),h),U(T,"".concat(A,"-input-with-clear-btn"),l&&p&&y),T),!Uo(t)&&d,P==null?void 0:P.affixWrapper,w==null?void 0:w.affixWrapper),F=(l||p)&&u.createElement("span",{className:W("".concat(i,"-suffix"),w==null?void 0:w.suffix),style:S==null?void 0:S.suffix},R(),l);k=u.createElement(I,Ce({className:z,style:Uo(t)?void 0:f,hidden:!Uo(t)&&O,onClick:x},$==null?void 0:$.affixWrapper,{ref:E}),a&&u.createElement("span",{className:W("".concat(i,"-prefix"),w==null?void 0:w.prefix),style:S==null?void 0:S.prefix},a),u.cloneElement(o,{value:y,hidden:null}),F);}if(Uo(t)){var V="".concat(i,"-group"),j="".concat(V,"-addon"),H=W("".concat(i,"-wrapper"),V,P==null?void 0:P.wrapper),B=W("".concat(i,"-group-wrapper"),d,P==null?void 0:P.group);return u.createElement(M,{className:B,style:f,hidden:O},u.createElement(L,{className:H},s&&u.createElement(_,{className:j},s),u.cloneElement(k,{hidden:null}),c&&u.createElement(_,{className:j},c)))}return k},vN=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],pN=u.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,c=s===void 0?"rc-input":s,d=e.disabled,f=e.htmlSize,m=e.className,h=e.maxLength,g=e.suffix,v=e.showCount,p=e.type,y=p===void 0?"text":p,b=e.classes,O=e.classNames,P=e.styles,w=Qe(e,vN),$=zt(e.defaultValue,{value:e.value}),S=G($,2),C=S[0],I=S[1],M=u.useState(!1),L=G(M,2),_=L[0],E=L[1],x=u.useRef(null),R=function(B){x.current&&K0(x.current,B);};u.useImperativeHandle(t,function(){return {focus:R,blur:function(){var B;(B=x.current)===null||B===void 0||B.blur();},setSelectionRange:function(B,X,J){var Q;(Q=x.current)===null||Q===void 0||Q.setSelectionRange(B,X,J);},select:function(){var B;(B=x.current)===null||B===void 0||B.select();},input:x.current}}),u.useEffect(function(){E(function(H){return H&&d?!1:H});},[d]);var k=function(B){e.value===void 0&&I(B.target.value),x.current&&ua(x.current,B,r);},T=function(B){a&&B.key==="Enter"&&a(B),l==null||l(B);},A=function(B){E(!0),o==null||o(B);},z=function(B){E(!1),i==null||i(B);},F=function(B){I(""),R(),x.current&&ua(x.current,B,r);},V=function(){var B=vn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return u.createElement("input",Ce({autoComplete:n},B,{onChange:k,onFocus:A,onBlur:z,onKeyDown:T,className:W(c,U({},"".concat(c,"-disabled"),d),O==null?void 0:O.input),style:P==null?void 0:P.input,ref:x,size:f,type:y}))},j=function(){var B=Number(h)>0;if(g||v){var X=pd(C),J=Ge(X).length,Q=dt(v)==="object"?v.formatter({value:X,count:J,maxLength:h}):"".concat(J).concat(B?" / ".concat(h):"");return u.createElement(u.Fragment,null,!!v&&u.createElement("span",{className:W("".concat(c,"-show-count-suffix"),U({},"".concat(c,"-show-count-has-suffix"),!!g),O==null?void 0:O.count),style:Z({},P==null?void 0:P.count)},Q),g)}return null};return u.createElement(lm,Ce({},w,{prefixCls:c,className:m,inputElement:V(),handleReset:F,value:pd(C),focused:_,triggerFocus:R,suffix:j(),disabled:d,classes:b,classNames:O,styles:P}))});function bN(e,t){var n=u.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,l=e.value,s=l.substring(0,i),c=l.substring(a);n.current={start:i,end:a,value:l,beforeTxt:s,afterTxt:c};}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,l=a.beforeTxt,s=a.afterTxt,c=a.start,d=i.length;if(i.endsWith(s))d=i.length-n.current.afterTxt.length;else if(i.startsWith(l))d=l.length;else {var f=l[c-1],m=i.indexOf(f,c-1);m!==-1&&(d=m+1);}e.setSelectionRange(d,d);}catch(h){pr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message));}}return [r,o]}var yN=function(){var t=u.useState(!1),n=G(t,2),r=n[0],o=n[1];return Ft(function(){o(ic());},[]),r},CN=200,SN=600;function wN(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,l=u__namespace.useRef(),s=u__namespace.useRef([]),c=u__namespace.useRef();c.current=a;var d=function(){clearTimeout(l.current);},f=function(O,P){O.preventDefault(),d(),c.current(P);function w(){c.current(P),l.current=setTimeout(w,CN);}l.current=setTimeout(w,SN);};u__namespace.useEffect(function(){return function(){d(),s.current.forEach(function(b){return It.cancel(b)});}},[]);var m=yN();if(m)return null;var h="".concat(t,"-handler"),g=W(h,"".concat(h,"-up"),U({},"".concat(h,"-up-disabled"),o)),v=W(h,"".concat(h,"-down"),U({},"".concat(h,"-down-disabled"),i)),p=function(){return s.current.push(It(d))},y={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return u__namespace.createElement("div",{className:"".concat(h,"-wrap")},u__namespace.createElement("span",Ce({},y,{onMouseDown:function(O){f(O,!0);},"aria-label":"Increase Value","aria-disabled":o,className:g}),n||u__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),u__namespace.createElement("span",Ce({},y,{onMouseDown:function(O){f(O,!1);},"aria-label":"Decrease Value","aria-disabled":i,className:v}),r||u__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Tg(e){var t=typeof e=="number"?mc(e):So(e).fullStr,n=t.includes(".");return n?So(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const $N=function(){var e=u.useRef(0),t=function(){It.cancel(e.current);};return u.useEffect(function(){return t},[]),function(n){t(),e.current=It(function(){n();});}};var xN=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],EN=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Ng=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},kg=function(t){var n=Xn(t);return n.isInvalidate()?null:n},IN=u__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,i=e.className,a=e.style,l=e.min,s=e.max,c=e.step,d=c===void 0?1:c,f=e.defaultValue,m=e.value,h=e.disabled,g=e.readOnly,v=e.upHandler,p=e.downHandler,y=e.keyboard,b=e.controls,O=b===void 0?!0:b,P=e.classNames,w=e.stringMode,$=e.parser,S=e.formatter,C=e.precision,I=e.decimalSeparator,M=e.onChange,L=e.onInput,_=e.onPressEnter,E=e.onStep,x=Qe(e,xN),R="".concat(o,"-input"),k=u__namespace.useRef(null),T=u__namespace.useState(!1),A=G(T,2),z=A[0],F=A[1],V=u__namespace.useRef(!1),j=u__namespace.useRef(!1),H=u__namespace.useRef(!1),B=u__namespace.useState(function(){return Xn(m??f)}),X=G(B,2),J=X[0],Q=X[1];function K(de){m===void 0&&Q(de);}var Y=u__namespace.useCallback(function(de,ne){if(!ne)return C>=0?C:Math.max(Ma(de),Ma(d))},[C,d]),re=u__namespace.useCallback(function(de){var ne=String(de);if($)return $(ne);var me=ne;return I&&(me=me.replace(I,".")),me.replace(/[^\w.-]+/g,"")},[$,I]),ue=u__namespace.useRef(""),se=u__namespace.useCallback(function(de,ne){if(S)return S(de,{userTyping:ne,input:String(ue.current)});var me=typeof de=="number"?mc(de):de;if(!ne){var le=Y(me,ne);if(am(me)&&(I||le>=0)){var Ne=I||".";me=Hl(me,Ne,le);}}return me},[S,Y,I]),ee=u__namespace.useState(function(){var de=f??m;return J.isInvalidate()&&["string","number"].includes(dt(de))?Number.isNaN(de)?"":de:se(J.toString(),!1)}),ae=G(ee,2),q=ae[0],te=ae[1];ue.current=q;function ce(de,ne){te(se(de.isInvalidate()?de.toString(!1):de.toString(!ne),ne));}var fe=u__namespace.useMemo(function(){return kg(s)},[s,C]),he=u__namespace.useMemo(function(){return kg(l)},[l,C]),ge=u__namespace.useMemo(function(){return !fe||!J||J.isInvalidate()?!1:fe.lessEquals(J)},[fe,J]),be=u__namespace.useMemo(function(){return !he||!J||J.isInvalidate()?!1:J.lessEquals(he)},[he,J]),Re=bN(k.current,z),De=G(Re,2),$e=De[0],we=De[1],Te=function(ne){return fe&&!ne.lessEquals(fe)?fe:he&&!he.lessEquals(ne)?he:null},Je=function(ne){return !Te(ne)},Ve=function(ne,me){var le=ne,Ne=Je(le)||le.isEmpty();if(!le.isEmpty()&&!me&&(le=Te(le)||le,Ne=!0),!g&&!h&&Ne){var tt=le.toString(),ct=Y(tt,me);return ct>=0&&(le=Xn(Hl(tt,".",ct)),Je(le)||(le=Xn(Hl(tt,".",ct,!0)))),le.equals(J)||(K(le),M==null||M(le.isEmpty()?null:Ng(w,le)),m===void 0&&ce(le,me)),le}return J},Ye=$N(),Me=function de(ne){if($e(),ue.current=ne,te(ne),!j.current){var me=re(ne),le=Xn(me);le.isNaN()||Ve(le,!0);}L==null||L(ne),Ye(function(){var Ne=ne;$||(Ne=ne.replace(/。/g,".")),Ne!==ne&&de(Ne);});},ke=function(){j.current=!0;},qe=function(){j.current=!1,Me(k.current.value);},et=function(ne){Me(ne.target.value);},ye=function(ne){var me;if(!(ne&&ge||!ne&&be)){V.current=!1;var le=Xn(H.current?Tg(d):d);ne||(le=le.negate());var Ne=(J||Xn(0)).add(le.toString()),tt=Ve(Ne,!1);E==null||E(Ng(w,tt),{offset:H.current?Tg(d):d,type:ne?"up":"down"}),(me=k.current)===null||me===void 0||me.focus();}},xe=function(ne){var me=Xn(re(q)),le=me;me.isNaN()?le=J:le=Ve(me,ne),m!==void 0?ce(J,!1):le.isNaN()||ce(le,!1);},ze=function(){V.current=!0;},Le=function(ne){var me=ne.key,le=ne.shiftKey;V.current=!0,H.current=le,me==="Enter"&&(j.current||(V.current=!1),xe(!1),_==null||_(ne)),y!==!1&&!j.current&&["Up","ArrowUp","Down","ArrowDown"].includes(me)&&(ye(me==="Up"||me==="ArrowUp"),ne.preventDefault());},rt=function(){V.current=!1,H.current=!1;},Ue=function(){xe(!1),F(!1),V.current=!1;};return si(function(){J.isInvalidate()||ce(J,!1);},[C]),si(function(){var de=Xn(m);Q(de);var ne=Xn(re(q));(!de.equals(ne)||!V.current||S)&&ce(de,V.current);},[m]),si(function(){S&&we();},[q]),u__namespace.createElement("div",{className:W(o,P==null?void 0:P.input,i,(n={},U(n,"".concat(o,"-focused"),z),U(n,"".concat(o,"-disabled"),h),U(n,"".concat(o,"-readonly"),g),U(n,"".concat(o,"-not-a-number"),J.isNaN()),U(n,"".concat(o,"-out-of-range"),!J.isInvalidate()&&!Je(J)),n)),style:a,onFocus:function(){F(!0);},onBlur:Ue,onKeyDown:Le,onKeyUp:rt,onCompositionStart:ke,onCompositionEnd:qe,onBeforeInput:ze},O&&u__namespace.createElement(wN,{prefixCls:o,upNode:v,downNode:p,upDisabled:ge,downDisabled:be,onStep:ye}),u__namespace.createElement("div",{className:"".concat(R,"-wrap")},u__namespace.createElement("input",Ce({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":J.isInvalidate()?null:J.toString(),step:d},x,{ref:Sn(k,t),className:R,value:q,onChange:et,disabled:h,readOnly:g}))))}),G0=u__namespace.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,l=e.suffix,s=e.addonBefore,c=e.addonAfter,d=e.classes,f=e.className,m=e.classNames,h=Qe(e,EN),g=u__namespace.useRef(null),v=function(y){g.current&&K0(g.current,y);};return u__namespace.createElement(lm,{inputElement:u__namespace.createElement(IN,Ce({prefixCls:o,disabled:n,classNames:m,ref:Sn(g,t)},h)),className:f,triggerFocus:v,prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:l,addonAfter:c,addonBefore:s,classes:d,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});G0.displayName="InputNumber";const U0=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ya=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),hs=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),sm=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Ya(mt(e,{inputBorderHoverColor:e.colorBorder})))}),X0=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return {padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},cm=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),hc=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:l,colorWarningBorderHover:s}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},hs(mt(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},hs(mt(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},qa=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},U0(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Ya(e)),"&:focus, &-focused":Object.assign({},hs(e)),"&-disabled, &[disabled]":Object.assign({},sm(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},X0(e)),"&-sm":Object.assign({},cm(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Y0=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({},X0(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},cm(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},ed()),{[`${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.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
& > ${n}-select-auto-complete ${t},
& > ${n}-cascader-picker ${t},
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${n}-select:first-child > ${n}-select-selector,
& > ${n}-select-auto-complete:first-child ${t},
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
& > ${n}-select:last-child > ${n}-select-selector,
& > ${n}-cascader-picker:last-child ${t},
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},ON=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,i=(n-r*2-o)/2;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),qa(e)),hc(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},PN=e=>{const{componentCls:t}=e;return {[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},MN=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qa(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Ya(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{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}}}),PN(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),hc(e,`${t}-affix-wrapper`))}},_N=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},kt(e)),Y0(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},sm(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}}}})}},RN=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return {[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
> ${t},
${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function um(e){return mt(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const TN=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return {[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},dm=Ut("Input",e=>{const t=um(e);return [ON(t),TN(t),MN(t),_N(t),RN(t),cc(t)]}),NN=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:l,controlHeightSM:s,colorError:c,inputPaddingHorizontalSM:d,colorTextDescription:f,motionDurationMid:m,colorPrimary:h,inputPaddingHorizontal:g,inputPaddingVertical:v,colorBgContainer:p,colorTextDisabled:y,borderRadiusSM:b,borderRadiusLG:O,controlWidth:P,handleVisible:w}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),qa(e)),hc(e,t)),{display:"inline-block",width:P,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:O,[`input${t}-input`]:{height:l-2*n}},"&-sm":{padding:0,borderRadius:b,[`input${t}-input`]:{height:s-2*n,padding:`0 ${d}px`}},"&:hover":Object.assign({},Ya(e)),"&-focused":Object.assign({},hs(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},kt(e)),Y0(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:O}},"&-sm":{[`${t}-group-addon`]:{borderRadius:b}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},sm(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),{width:"100%",padding:`${v}px ${g}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),U0(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:p,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:w===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${m} linear ${m}`,[`${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:f,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${m} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`
${t}-handler-up-inner,
${t}-handler-down-inner
`]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},To()),{color:f,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
${t}-handler-up-disabled,
${t}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${t}-handler-up-disabled:hover &-handler-up-inner,
${t}-handler-down-disabled:hover &-handler-down-inner
`]:{color:y}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},kN=e=>{const{componentCls:t,inputPaddingVertical:n,inputPaddingHorizontal:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},qa(e)),hc(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:l},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Ya(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-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}}})}},LN=Ut("InputNumber",e=>{const t=um(e);return [NN(t),kN(t),cc(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var AN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const q0=u__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u__namespace.useContext(ot),o=u__namespace.useRef(null);u__namespace.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:l,disabled:s,prefixCls:c,addonBefore:d,addonAfter:f,prefix:m,bordered:h=!0,readOnly:g,status:v,controls:p}=e,y=AN(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),b=n("input-number",c),[O,P]=LN(b),{compactSize:w,compactItemClassnames:$}=Li(b,r);let S=u__namespace.createElement(mN,{className:`${b}-handler-up-inner`}),C=u__namespace.createElement(nm,{className:`${b}-handler-down-inner`});const I=typeof p=="boolean"?p:void 0;typeof p=="object"&&(S=typeof p.upIcon>"u"?S:u__namespace.createElement("span",{className:`${b}-handler-up-inner`},p.upIcon),C=typeof p.downIcon>"u"?C:u__namespace.createElement("span",{className:`${b}-handler-down-inner`},p.downIcon));const{hasFeedback:M,status:L,isFormItemInput:_,feedbackIcon:E}=u__namespace.useContext(Vn),x=Ka(L,v),R=kn(V=>{var j;return (j=l??w)!==null&&j!==void 0?j:V}),k=u__namespace.useContext(br),T=s??k,A=W({[`${b}-lg`]:R==="large",[`${b}-sm`]:R==="small",[`${b}-rtl`]:r==="rtl",[`${b}-borderless`]:!h,[`${b}-in-form-item`]:_},Zn(b,x),$,P),z=`${b}-group`,F=u__namespace.createElement(G0,Object.assign({ref:o,disabled:T,className:W(i,a),upHandler:S,downHandler:C,prefixCls:b,readOnly:g,controls:I,prefix:m,suffix:M&&E,addonAfter:f&&u__namespace.createElement(bi,null,u__namespace.createElement(Oa,{override:!0,status:!0},f)),addonBefore:d&&u__namespace.createElement(bi,null,u__namespace.createElement(Oa,{override:!0,status:!0},d)),classNames:{input:A},classes:{affixWrapper:W(Zn(`${b}-affix-wrapper`,x,M),{[`${b}-affix-wrapper-sm`]:R==="small",[`${b}-affix-wrapper-lg`]:R==="large",[`${b}-affix-wrapper-rtl`]:r==="rtl",[`${b}-affix-wrapper-borderless`]:!h},P),wrapper:W({[`${z}-rtl`]:r==="rtl",[`${b}-wrapper-disabled`]:T},P),group:W({[`${b}-group-wrapper-sm`]:R==="small",[`${b}-group-wrapper-lg`]:R==="large",[`${b}-group-wrapper-rtl`]:r==="rtl"},Zn(`${b}-group-wrapper`,x,M),P)}},y));return O(F)}),Z0=q0,DN=e=>u__namespace.createElement(Af,{theme:{components:{InputNumber:{handleVisible:!0}}}},u__namespace.createElement(q0,Object.assign({},e)));Z0._InternalPanelDoNotUseOrYouWillBeFired=DN;const bd=Z0,zN=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:i,className:a,formatter:l}=e;const s=`${t}-steppers`,[c,d]=u.useState(o);return u.useEffect(()=>{Number.isNaN(o)||d(o);},[o]),u.createElement(bd,{className:W(s,a),min:n,max:r,value:c,formatter:l,size:"small",onChange:f=>{o||d(f||0),i==null||i(f);}})},wo=zN,jN=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=u.useState(gn(n||"#000"));u.useEffect(()=>{n&&a(n);},[n]);const l=s=>{const c=i.toHsb();c.a=(s||0)/100;const d=gn(c);n||a(d),r==null||r(d);};return u.createElement(wo,{value:p0(i),prefixCls:t,formatter:s=>`${s}%`,className:o,onChange:l})},BN=jN,HN=e=>{const{getPrefixCls:t,direction:n}=u.useContext(ot),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=dm(a),c=W(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),d=u.useContext(Vn),f=u.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(u__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u__namespace.createElement(Vn.Provider,{value:f},e.children)))},FN=HN;function Q0(e,t){const n=u.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"));}));};return u.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function WN(e){return !!(e.prefix||e.suffix||e.allowClear)}var VN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function KN(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 GN=u.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:c,suffix:d,allowClear:f,addonAfter:m,addonBefore:h,className:g,style:v,styles:p,rootClassName:y,onChange:b,classNames:O}=e,P=VN(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:w,direction:$,input:S}=u.useContext(ot),C=w("input",r),I=u.useRef(null),[M,L]=dm(C),{compactSize:_,compactItemClassnames:E}=Li(C,$),x=kn(Y=>{var re;return (re=a??_)!==null&&re!==void 0?re:Y}),R=u.useContext(br),k=l??R,{status:T,hasFeedback:A,feedbackIcon:z}=u.useContext(Vn),F=Ka(T,i),V=WN(e)||!!A,j=u.useRef(V);u.useEffect(()=>{V&&j.current,j.current=V;},[V]);const H=Q0(I,!0),B=Y=>{H(),s==null||s(Y);},X=Y=>{H(),c==null||c(Y);},J=Y=>{H(),b==null||b(Y);},Q=(A||d)&&u.createElement(u.Fragment,null,d,A&&z);let K;return typeof f=="object"&&(f!=null&&f.clearIcon)?K=f:f&&(K={clearIcon:u.createElement(tm,null)}),M(u.createElement(pN,Object.assign({ref:Sn(t,I),prefixCls:C,autoComplete:S==null?void 0:S.autoComplete},P,{disabled:k,onBlur:B,onFocus:X,style:Object.assign(Object.assign({},S==null?void 0:S.style),v),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),p),suffix:Q,allowClear:K,className:W(g,y,E,S==null?void 0:S.className),onChange:J,addonAfter:m&&u.createElement(bi,null,u.createElement(Oa,{override:!0,status:!0},m)),addonBefore:h&&u.createElement(bi,null,u.createElement(Oa,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign(Object.assign({},O),S==null?void 0:S.classNames),{input:W({[`${C}-sm`]:x==="small",[`${C}-lg`]:x==="large",[`${C}-rtl`]:$==="rtl",[`${C}-borderless`]:!o},!V&&Zn(C,F),O==null?void 0:O.input,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.input,L)}),classes:{affixWrapper:W({[`${C}-affix-wrapper-sm`]:x==="small",[`${C}-affix-wrapper-lg`]:x==="large",[`${C}-affix-wrapper-rtl`]:$==="rtl",[`${C}-affix-wrapper-borderless`]:!o},Zn(`${C}-affix-wrapper`,F,A),L),wrapper:W({[`${C}-group-rtl`]:$==="rtl"},L),group:W({[`${C}-group-wrapper-sm`]:x==="small",[`${C}-group-wrapper-lg`]:x==="large",[`${C}-group-wrapper-rtl`]:$==="rtl",[`${C}-group-wrapper-disabled`]:k},Zn(`${C}-group-wrapper`,F,A),L)}})))}),fm=GN;var UN={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 XN=UN;var YN=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:XN}))};const qN=u__namespace.forwardRef(YN);var ZN={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 QN=ZN;var JN=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:QN}))};const ek=u__namespace.forwardRef(JN);var tk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nk=e=>e?u__namespace.createElement(ek,null):u__namespace.createElement(qN,null),rk={click:"onClick",hover:"onMouseOver"},ok=u__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=u.useState(()=>r?n.visible:!1),a=u.useRef(null);u__namespace.useEffect(()=>{r&&i(n.visible);},[r,n]);const l=Q0(a),s=()=>{const{disabled:w}=e;w||(o&&l(),i($=>{var S;const C=!$;return typeof n=="object"&&((S=n.onVisibleChange)===null||S===void 0||S.call(n,C)),C}));},c=w=>{const{action:$="click",iconRender:S=nk}=e,C=rk[$]||"",I=S(o),M={[C]:s,className:`${w}-icon`,key:"passwordIcon",onMouseDown:L=>{L.preventDefault();},onMouseUp:L=>{L.preventDefault();}};return u__namespace.cloneElement(u__namespace.isValidElement(I)?I:u__namespace.createElement("span",null,I),M)},{className:d,prefixCls:f,inputPrefixCls:m,size:h}=e,g=tk(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=u__namespace.useContext(ot),p=v("input",m),y=v("input-password",f),b=n&&c(y),O=W(y,d,{[`${y}-${h}`]:!!h}),P=Object.assign(Object.assign({},vn(g,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:O,prefixCls:p,suffix:b});return h&&(P.size=h),u__namespace.createElement(fm,Object.assign({ref:Sn(t,a)},P))}),ik=ok,ak=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}}}}},lk=Ut("Wave",e=>[ak(e)]);var Za=Z({},Qv__namespace),sk=Za.version,ck=Za.render,uk=Za.unmountComponentAtNode,gc;try{var dk=Number((sk||"").split(".")[0]);dk>=18&&(gc=Za.createRoot);}catch{}function Lg(e){var t=Za.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&dt(t)==="object"&&(t.usingClientEntryPoint=e);}var gs="__rc_react_root__";function fk(e,t){Lg(!0);var n=t[gs]||gc(t);Lg(!1),n.render(e),t[gs]=n;}function mk(e,t){ck(e,t);}function hk(e,t){if(gc){fk(e,t);return}mk(e,t);}function gk(e){return yd.apply(this,arguments)}function yd(){return yd=Bb(Ia().mark(function e(t){return Ia().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[gs])===null||o===void 0||o.unmount(),delete t[gs];}));case 1:case"end":return r.stop()}},e)})),yd.apply(this,arguments)}function vk(e){uk(e);}function pk(e){return Cd.apply(this,arguments)}function Cd(){return Cd=Bb(Ia().mark(function e(t){return Ia().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(gc===void 0){r.next=2;break}return r.abrupt("return",gk(t));case 2:vk(t);case 3:case"end":return r.stop()}},e)})),Cd.apply(this,arguments)}function bk(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 fu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&bk(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function yk(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return fu(t)?t:fu(n)?n:fu(r)?r:null}function mu(e){return Number.isNaN(e)?0:e}const Ck=e=>{const{className:t,target:n}=e,r=u__namespace.useRef(null),[o,i]=u__namespace.useState(null),[a,l]=u__namespace.useState([]),[s,c]=u__namespace.useState(0),[d,f]=u__namespace.useState(0),[m,h]=u__namespace.useState(0),[g,v]=u__namespace.useState(0),[p,y]=u__namespace.useState(!1),b={left:s,top:d,width:m,height:g,borderRadius:a.map(P=>`${P}px`).join(" ")};o&&(b["--wave-color"]=o);function O(){const P=getComputedStyle(n);i(yk(n));const w=P.position==="static",{borderLeftWidth:$,borderTopWidth:S}=P;c(w?n.offsetLeft:mu(-parseFloat($))),f(w?n.offsetTop:mu(-parseFloat(S))),h(n.offsetWidth),v(n.offsetHeight);const{borderTopLeftRadius:C,borderTopRightRadius:I,borderBottomLeftRadius:M,borderBottomRightRadius:L}=P;l([C,I,L,M].map(_=>mu(parseFloat(_))));}return u__namespace.useEffect(()=>{if(n){const P=It(()=>{O(),y(!0);});let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(O),w.observe(n)),()=>{It.cancel(P),w==null||w.disconnect();}}},[]),p?u__namespace.createElement(ro,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(P,w)=>{var $;if(w.deadline||w.propertyName==="opacity"){const S=($=r.current)===null||$===void 0?void 0:$.parentElement;pk(S).then(()=>{S==null||S.remove();});}return !1}},P=>{let{className:w}=P;return u__namespace.createElement("div",{ref:r,className:W(t,w),style:b})}):null};function Sk(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),hk(u__namespace.createElement(Ck,{target:e,className:t}),n);}function wk(e,t){function n(){const r=e.current;Sk(r,t);}return n}const $k=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=u.useContext(ot),o=u.useRef(null),i=r("wave"),[,a]=lk(i),l=wk(o,W(i,a));if(u.useEffect(()=>{const c=o.current;if(!c||c.nodeType!==1||n)return;const d=f=>{f.target.tagName==="INPUT"||!zf(f.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||l();};return c.addEventListener("click",d,!0),()=>{c.removeEventListener("click",d,!0);}},[n]),!u.isValidElement(t))return t??null;const s=No(t)?Sn(t.ref,o):o;return Tn(t,{ref:s})},mm=$k,xk=u.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=W(`${i}-icon`,n);return u.createElement("span",{ref:t,className:a,style:r},o)}),J0=xk,Ag=u.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=W(`${n}-loading-icon`,r);return u.createElement(J0,{prefixCls:n,className:a,style:o,ref:t},u.createElement(rm,{className:i}))}),hu=()=>({width:0,opacity:0,transform:"scale(0)"}),gu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Ek=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?u.createElement(Ag,{prefixCls:t,className:o,style:i}):u.createElement(ro,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:hu,onAppearActive:gu,onEnterStart:hu,onEnterActive:gu,onLeaveStart:gu,onLeaveActive:hu},(l,s)=>{let{className:c,style:d}=l;return u.createElement(Ag,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),d),ref:s,iconClassName:c})})},Ik=Ek;var Ok=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ey=u__namespace.createContext(void 0),Pk=e=>{const{getPrefixCls:t,direction:n}=u__namespace.useContext(ot),{prefixCls:r,size:o,className:i}=e,a=Ok(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=eo();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const d=W(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},i,s);return u__namespace.createElement(ey.Provider,{value:o},u__namespace.createElement("div",Object.assign({},a,{className:d})))},Mk=Pk,Dg=/^[\u4e00-\u9fa5]{2}$/,Sd=Dg.test.bind(Dg);function _k(e){return typeof e=="string"}function vu(e){return e==="text"||e==="link"}function Rk(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&_k(e.type)&&Sd(e.props.children)?Tn(e,{children:e.props.children.split("").join(n)}):typeof e=="string"?Sd(e)?u.createElement("span",null,e.split("").join(n)):u.createElement("span",null,e):Qb(e)?u.createElement("span",null,e):e}function Tk(e,t){let n=!1;const r=[];return u.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,s=r[l];r[l]=`${s}${o}`;}else r.push(o);n=a;}),u.Children.map(r,o=>Rk(o,t))}function Nk(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function kk(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 Lk(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},Nk(e,t)),kk(e.componentCls,t))}}const zg=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Ak=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},zg(`${t}-primary`,o),zg(`${t}-danger`,i)]}},Dk=Ak,zk=e=>{const{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&: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({},Io(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Nr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),jk=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Bk=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Hk=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),_a=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Nr(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),hm=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Hk(e))}),ty=e=>Object.assign({},hm(e)),vs=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ny=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ty(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Nr(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),_a(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Nr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_a(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),hm(e))}),Fk=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ty(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Nr(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),_a(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Nr(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),_a(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),hm(e))}),Wk=e=>Object.assign(Object.assign({},ny(e)),{borderStyle:"dashed"}),Vk=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Nr(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),vs(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Nr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),vs(e))}),Kk=e=>Object.assign(Object.assign(Object.assign({},Nr(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),vs(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},vs(e)),Nr(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Gk=e=>{const{componentCls:t}=e;return {[`${t}-default`]:ny(e),[`${t}-primary`]:Fk(e),[`${t}-dashed`]:Wk(e),[`${t}-link`]:Vk(e),[`${t}-text`]:Kk(e),[`${t}-ghost`]:_a(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},gm=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:l,buttonPaddingHorizontal:s,iconCls:c}=e,d=Math.max(0,(r-o*i)/2-a),f=s-a,m=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${d}px ${f}px`,borderRadius:l,[`&${m}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:jk(e)},{[`${n}${n}-round${t}`]:Bk(e)}]},Uk=e=>gm(e),Xk=e=>{const t=mt(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return gm(t,`${e.componentCls}-sm`)},Yk=e=>{const t=mt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return gm(t,`${e.componentCls}-lg`)},qk=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},Zk=Ut("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=mt(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return [zk(r),Xk(r),Uk(r),Yk(r),qk(r),Gk(r),Dk(r),cc(e),Lk(e)]});var Qk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function ry(e){return e==="danger"?{danger:!0}:{type:e}}function Jk(e){if(typeof e=="object"&&e){const t=e==null?void 0:e.delay;return {loading:!1,delay:!Number.isNaN(t)&&typeof t=="number"?t:0}}return {loading:!!e,delay:0}}const e3=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:l,shape:s="default",size:c,styles:d,disabled:f,className:m,rootClassName:h,children:g,icon:v,ghost:p=!1,block:y=!1,htmlType:b="button",classNames:O,style:P={}}=e,w=Qk(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:$,autoInsertSpaceInButton:S,direction:C,button:I}=u.useContext(ot),M=$("btn",i),[L,_]=Zk(M),E=u.useContext(br),x=f??E,R=u.useContext(ey),k=u.useMemo(()=>Jk(o),[o]),[T,A]=u.useState(k.loading),[z,F]=u.useState(!1),j=Sn(t,u.createRef()),H=u.Children.count(g)===1&&!v&&!vu(a);u.useEffect(()=>{let ge=null;k.delay>0?ge=setTimeout(()=>{ge=null,A(!0);},k.delay):A(k.loading);function be(){ge&&(clearTimeout(ge),ge=null);}return be},[k]),u.useEffect(()=>{if(!j||!j.current||S===!1)return;const ge=j.current.textContent;H&&Sd(ge)?z||F(!0):z&&F(!1);},[j]);const B=ge=>{const{onClick:be}=e;if(T||x){ge.preventDefault();return}be==null||be(ge);},X=S!==!1,{compactSize:J,compactItemClassnames:Q}=Li(M,C),K={large:"lg",small:"sm",middle:void 0},Y=kn(ge=>{var be,Re;return (Re=(be=c??J)!==null&&be!==void 0?be:R)!==null&&Re!==void 0?Re:ge}),re=Y&&K[Y]||"",ue=T?"loading":v,se=vn(w,["navigate"]),ee=W(M,_,{[`${M}-${s}`]:s!=="default"&&s,[`${M}-${a}`]:a,[`${M}-${re}`]:re,[`${M}-icon-only`]:!g&&g!==0&&!!ue,[`${M}-background-ghost`]:p&&!vu(a),[`${M}-loading`]:T,[`${M}-two-chinese-chars`]:z&&X&&!T,[`${M}-block`]:y,[`${M}-dangerous`]:!!l,[`${M}-rtl`]:C==="rtl"},Q,m,h,I==null?void 0:I.className),ae=Object.assign(Object.assign({},I==null?void 0:I.style),P),q=W(O==null?void 0:O.icon,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.icon),te=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((r=I==null?void 0:I.styles)===null||r===void 0?void 0:r.icon)||{}),ce=v&&!T?u.createElement(J0,{prefixCls:M,className:q,style:te},v):u.createElement(Ik,{existIcon:!!v,prefixCls:M,loading:!!T}),fe=g||g===0?Tk(g,H&&X):null;if(se.href!==void 0)return L(u.createElement("a",Object.assign({},se,{className:W(ee,{[`${M}-disabled`]:x}),style:ae,onClick:B,ref:j}),ce,fe));let he=u.createElement("button",Object.assign({},w,{type:b,className:ee,style:ae,onClick:B,disabled:x,ref:j}),ce,fe);return vu(a)||(he=u.createElement(mm,{disabled:!!T},he)),L(he)},vm=u.forwardRef(e3);vm.Group=Mk;vm.__ANT_BUTTON=!0;const Jt=vm;var t3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const n3=u__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:c,disabled:d,onSearch:f,onChange:m,onCompositionStart:h,onCompositionEnd:g}=e,v=t3(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:y}=u__namespace.useContext(ot),b=u__namespace.useRef(!1),O=p("input-search",n),P=p("input",r),{compactSize:w}=Li(O,y),$=kn(F=>{var V;return (V=i??w)!==null&&V!==void 0?V:F}),S=u__namespace.useRef(null),C=F=>{F&&F.target&&F.type==="click"&&f&&f(F.target.value,F),m&&m(F);},I=F=>{var V;document.activeElement===((V=S.current)===null||V===void 0?void 0:V.input)&&F.preventDefault();},M=F=>{var V,j;f&&f((j=(V=S.current)===null||V===void 0?void 0:V.input)===null||j===void 0?void 0:j.value,F);},L=F=>{b.current||c||M(F);},_=typeof l=="boolean"?u__namespace.createElement(om,null):null,E=`${O}-button`;let x;const R=l||{},k=R.type&&R.type.__ANT_BUTTON===!0;k||R.type==="button"?x=Tn(R,Object.assign({onMouseDown:I,onClick:F=>{var V,j;(j=(V=R==null?void 0:R.props)===null||V===void 0?void 0:V.onClick)===null||j===void 0||j.call(V,F),M(F);},key:"enterButton"},k?{className:E,size:$}:{})):x=u__namespace.createElement(Jt,{className:E,type:l?"primary":void 0,size:$,disabled:d,key:"enterButton",onMouseDown:I,onClick:M,loading:c,icon:_},l),s&&(x=[x,Tn(s,{key:"addonAfter"})]);const T=W(O,{[`${O}-rtl`]:y==="rtl",[`${O}-${$}`]:!!$,[`${O}-with-button`]:!!l},o),A=F=>{b.current=!0,h==null||h(F);},z=F=>{b.current=!1,g==null||g(F);};return u__namespace.createElement(fm,Object.assign({ref:Sn(S,t),onPressEnter:L},v,{size:$,onCompositionStart:A,onCompositionEnd:z,prefixCls:P,addonAfter:x,suffix:a,onChange:C,className:T,disabled:d}))}),r3=n3;var o3=`
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;
`,i3=["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"],pu={},zn;function a3(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&&pu[n])return pu[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=i3.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(pu[n]=s),s}function l3(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;zn||(zn=document.createElement("textarea"),zn.setAttribute("tab-index","-1"),zn.setAttribute("aria-hidden","true"),document.body.appendChild(zn)),e.getAttribute("wrap")?zn.setAttribute("wrap",e.getAttribute("wrap")):zn.removeAttribute("wrap");var o=a3(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;zn.setAttribute("style","".concat(s,";").concat(o3)),zn.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,m=zn.scrollHeight;if(l==="border-box"?m+=a:l==="content-box"&&(m-=i),n!==null||r!==null){zn.value=" ";var h=zn.scrollHeight-i;n!==null&&(c=h*n,l==="border-box"&&(c=c+i+a),m=Math.max(c,m)),r!==null&&(d=h*r,l==="border-box"&&(d=d+i+a),f=m>d?"":"hidden",m=Math.min(d,m));}var g={height:m,overflowY:f,resize:"none"};return c&&(g.minHeight=c),d&&(g.maxHeight=d),g}var s3=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],bu=0,yu=1,Cu=2,c3=u__namespace.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=Qe(n,s3),h=zt(o,{value:i,postState:function(B){return B??""}}),g=G(h,2),v=g[0],p=g[1],y=function(B){p(B.target.value),f==null||f(B);},b=u__namespace.useRef();u__namespace.useImperativeHandle(t,function(){return {textArea:b.current}});var O=u__namespace.useMemo(function(){return a&&dt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),P=G(O,2),w=P[0],$=P[1],S=!!a,C=function(){try{if(document.activeElement===b.current){var B=b.current,X=B.selectionStart,J=B.selectionEnd,Q=B.scrollTop;b.current.setSelectionRange(X,J),b.current.scrollTop=Q;}}catch{}},I=u__namespace.useState(Cu),M=G(I,2),L=M[0],_=M[1],E=u__namespace.useState(),x=G(E,2),R=x[0],k=x[1],T=function(){_(bu);};Ft(function(){S&&T();},[i,w,$,S]),Ft(function(){if(L===bu)_(yu);else if(L===yu){var H=l3(b.current,!1,w,$);_(Cu),k(H);}else C();},[L]);var A=u__namespace.useRef(),z=function(){It.cancel(A.current);},F=function(B){L===Cu&&(l==null||l(B),a&&(z(),A.current=It(function(){T();})));};u__namespace.useEffect(function(){return z},[]);var V=S?R:null,j=Z(Z({},c),V);return (L===bu||L===yu)&&(j.overflowY="hidden",j.overflowX="hidden"),u__namespace.createElement(Tr,{onResize:F,disabled:!(a||l)},u__namespace.createElement("textarea",Ce({},m,{ref:b,style:j,className:W(r,s,U({},"".concat(r,"-disabled"),d)),disabled:d,value:v,onChange:y})))}),u3=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function oy(e,t){return Ge(e||"").slice(0,t).join("")}function jg(e,t,n,r){var o=n;return e?o=oy(n,r):Ge(t||"").length<n.length&&Ge(n||"").length>r&&(o=t),o}var d3=u.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,s=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,h=e.prefixCls,g=h===void 0?"rc-textarea":h,v=e.classes,p=e.showCount,y=e.className,b=e.style,O=e.disabled,P=e.hidden,w=e.classNames,$=e.styles,S=e.onResize,C=Qe(e,u3),I=zt(r,{value:o,defaultValue:r}),M=G(I,2),L=M[0],_=M[1],E=u.useRef(null),x=u.useState(!1),R=G(x,2),k=R[0],T=R[1],A=u.useState(!1),z=G(A,2),F=z[0],V=z[1],j=u.useRef(),H=u.useRef(0),B=u.useState(null),X=G(B,2),J=X[0],Q=X[1],K=function(){E.current.textArea.focus();};u.useImperativeHandle(t,function(){return {resizableTextArea:E.current,focus:K,blur:function(){E.current.textArea.blur();}}}),u.useEffect(function(){T(function(De){return !O&&De});},[O]);var Y=Number(c)>0,re=function($e){V(!0),j.current=L,H.current=$e.currentTarget.selectionStart,d==null||d($e);},ue=function($e){V(!1);var we=$e.currentTarget.value;if(Y){var Te,Je=H.current>=c+1||H.current===((Te=j.current)===null||Te===void 0?void 0:Te.length);we=jg(Je,j.current,we,c);}we!==L&&(_(we),ua($e.currentTarget,$e,l,we)),f==null||f($e);},se=function($e){var we=$e.target.value;if(!F&&Y){var Te=$e.target.selectionStart>=c+1||$e.target.selectionStart===we.length||!$e.target.selectionStart;we=jg(Te,L,we,c);}_(we),ua($e.currentTarget,$e,l,we);},ee=function($e){var we=C.onPressEnter,Te=C.onKeyDown;$e.key==="Enter"&&we&&we($e),Te==null||Te($e);},ae=function($e){T(!0),i==null||i($e);},q=function($e){T(!1),a==null||a($e);},te=function($e){_(""),K(),ua(E.current.textArea,$e,l);},ce=pd(L);!F&&Y&&o==null&&(ce=oy(ce,c));var fe=m,he;if(p){var ge=Ge(ce).length;dt(p)==="object"?he=p.formatter({value:ce,count:ge,maxLength:c}):he="".concat(ge).concat(Y?" / ".concat(c):""),fe=u.createElement(u.Fragment,null,fe,u.createElement("span",{className:W("".concat(g,"-data-count"),w==null?void 0:w.count),style:$==null?void 0:$.count},he));}var be=function($e){S==null||S($e),E.current.textArea.style.height&&Q(!0);},Re=u.createElement(lm,{value:ce,allowClear:s,handleReset:te,suffix:fe,prefixCls:g,classes:{affixWrapper:W(v==null?void 0:v.affixWrapper,(n={},U(n,"".concat(g,"-show-count"),p),U(n,"".concat(g,"-textarea-allow-clear"),s),n))},disabled:O,focused:k,className:y,style:Z(Z({},b),J?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof he=="string"?he:void 0}},hidden:P,inputElement:u.createElement(c3,Ce({},C,{onKeyDown:ee,onChange:se,onFocus:ae,onBlur:q,onCompositionStart:re,onCompositionEnd:ue,className:w==null?void 0:w.textarea,style:Z(Z({},$==null?void 0:$.textarea),{},{resize:b==null?void 0:b.resize}),disabled:O,prefixCls:g,onResize:be,ref:E}))});return Re}),f3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const m3=u.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:l,showCount:s,classNames:c}=e,d=f3(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:f,direction:m}=u__namespace.useContext(ot),h=kn(o),g=u__namespace.useContext(br),v=i??g,{status:p,hasFeedback:y,feedbackIcon:b}=u__namespace.useContext(Vn),O=Ka(p,a),P=u__namespace.useRef(null);u__namespace.useImperativeHandle(t,()=>{var I;return {resizableTextArea:(I=P.current)===null||I===void 0?void 0:I.resizableTextArea,focus:M=>{var L,_;KN((_=(L=P.current)===null||L===void 0?void 0:L.resizableTextArea)===null||_===void 0?void 0:_.textArea,M);},blur:()=>{var M;return (M=P.current)===null||M===void 0?void 0:M.blur()}}});const w=f("input",n);let $;typeof l=="object"&&(l!=null&&l.clearIcon)?$=l:l&&($={clearIcon:u__namespace.createElement(tm,null)});const[S,C]=dm(w);return S(u__namespace.createElement(d3,Object.assign({},d,{disabled:v,allowClear:$,classes:{affixWrapper:W(`${w}-textarea-affix-wrapper`,{[`${w}-affix-wrapper-rtl`]:m==="rtl",[`${w}-affix-wrapper-borderless`]:!r,[`${w}-affix-wrapper-sm`]:h==="small",[`${w}-affix-wrapper-lg`]:h==="large",[`${w}-textarea-show-count`]:s},Zn(`${w}-affix-wrapper`,O),C)},classNames:Object.assign(Object.assign({},c),{textarea:W({[`${w}-borderless`]:!r,[`${w}-sm`]:h==="small",[`${w}-lg`]:h==="large"},Zn(w,O),C,c==null?void 0:c.textarea)}),prefixCls:w,suffix:y&&u__namespace.createElement("span",{className:`${w}-textarea-suffix`},b),showCount:s,ref:P})))}),h3=m3,Qa=fm;Qa.Group=FN;Qa.Search=r3;Qa.TextArea=h3;Qa.Password=ik;const iy=Qa,g3=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Bg=e=>g3.test(`#${e}`),v3=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[i,a]=u.useState(n==null?void 0:n.toHex());u.useEffect(()=>{const s=n==null?void 0:n.toHex();Bg(s)&&n&&a(jl(s));},[n]);const l=s=>{const c=s.target.value;a(jl(c)),Bg(jl(c,!0))&&(r==null||r(gn(c)));};return u.createElement(iy,{className:o,value:i==null?void 0:i.toUpperCase(),prefix:"#",onChange:l,size:"small"})},p3=v3,b3=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=u.useState(gn(n||"#000"));u.useEffect(()=>{n&&a(n);},[n]);const l=(s,c)=>{const d=i.toHsb();d[c]=c==="h"?s:(s||0)/100;const f=gn(d);n||a(f),r==null||r(f);};return u.createElement("div",{className:o},u.createElement(wo,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:s=>Bl(s||0).toString(),onChange:s=>l(Number(s),"h")}),u.createElement(wo,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:s=>`${Bl(s||0)}%`,onChange:s=>l(Number(s),"s")}),u.createElement(wo,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:s=>`${Bl(s||0)}%`,onChange:s=>l(Number(s),"b")}))},y3=b3,C3=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=u.useState(gn(n||"#000"));u.useEffect(()=>{n&&a(n);},[n]);const l=(s,c)=>{const d=i.toRgb();d[c]=s||0;const f=gn(d);n||a(f),r==null||r(f);};return u.createElement("div",{className:o},u.createElement(wo,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:s=>l(Number(s),"r")}),u.createElement(wo,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:s=>l(Number(s),"g")}),u.createElement(wo,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:s=>l(Number(s),"b")}))},S3=C3,w3=[Pr.hex,Pr.hsb,Pr.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),$3=e=>{const{prefixCls:t,format:n,value:r,onFormatChange:o,onChange:i}=e,[a,l]=zt(Pr.hex,{value:n,onChange:o}),s=`${t}-input`,c=f=>{l(f);},d=u.useMemo(()=>{const f={value:r,prefixCls:t,onChange:i};switch(a){case Pr.hsb:return u.createElement(y3,Object.assign({},f));case Pr.rgb:return u.createElement(S3,Object.assign({},f));case Pr.hex:default:return u.createElement(p3,Object.assign({},f))}},[a,t,r,i]);return u.createElement("div",{className:`${s}-container`},u.createElement(Xa,{value:a,bordered:!1,getPopupContainer:f=>f,popupMatchSelectWidth:68,placement:"bottomRight",onChange:c,className:`${t}-format-select`,size:"small",options:w3}),u.createElement("div",{className:s},d),u.createElement(BN,{prefixCls:t,value:r,onChange:i}))},x3=$3;var E3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const I3=()=>{const e=u.useContext(g0),{prefixCls:t,colorCleared:n,allowClear:r,value:o,onChange:i,onClear:a,onChangeComplete:l}=e,s=E3(e,["prefixCls","colorCleared","allowClear","value","onChange","onClear","onChangeComplete"]);return u.createElement(u.Fragment,null,r&&u.createElement(b0,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:c=>{i==null||i(c),a==null||a();}},s)),u.createElement(j_,{prefixCls:t,value:o==null?void 0:o.toHsb(),onChange:(c,d)=>i==null?void 0:i(c,d,!0),onChangeComplete:l}),u.createElement(x3,Object.assign({value:o,onChange:i,prefixCls:t},s)))},Hg=I3;var O3={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 P3=O3;var M3=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:P3}))};const Si=u__namespace.forwardRef(M3);var ay=u.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,l=e.children,s=e.isActive,c=e.role,d=u.useState(s||o),f=G(d,2),m=f[0],h=f[1];return u.useEffect(function(){(o||s)&&h(!0);},[o,s]),m?u.createElement("div",{ref:t,className:W("".concat(r,"-content"),(n={},U(n,"".concat(r,"-content-active"),s),U(n,"".concat(r,"-content-inactive"),!s),n),i),style:a,role:c},u.createElement("div",{className:"".concat(r,"-content-box")},l)):null});ay.displayName="PanelContent";var _3=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],ly=u.forwardRef(function(e,t){var n,r,o=e.showArrow,i=o===void 0?!0:o,a=e.headerClass,l=e.isActive,s=e.onItemClick,c=e.forceRender,d=e.className,f=e.prefixCls,m=e.collapsible,h=e.accordion,g=e.panelKey,v=e.extra,p=e.header,y=e.expandIcon,b=e.openMotion,O=e.destroyInactivePanel,P=e.children,w=Qe(e,_3),$=m==="disabled",S=m==="header",C=m==="icon",I=v!=null&&typeof v!="boolean",M=function(){s==null||s(g);},L=function(T){(T.key==="Enter"||T.keyCode===ie.ENTER||T.which===ie.ENTER)&&M();},_=typeof y=="function"?y(e):u.createElement("i",{className:"arrow"});_&&(_=u.createElement("div",{className:"".concat(f,"-expand-icon"),onClick:["header","icon"].includes(m)?M:void 0},_));var E=W((n={},U(n,"".concat(f,"-item"),!0),U(n,"".concat(f,"-item-active"),l),U(n,"".concat(f,"-item-disabled"),$),n),d),x=W((r={},U(r,"".concat(f,"-header"),!0),U(r,"headerClass",a),U(r,"".concat(f,"-header-collapsible-only"),S),U(r,"".concat(f,"-icon-collapsible-only"),C),r)),R={className:x,"aria-expanded":l,"aria-disabled":$,onKeyDown:L};return !S&&!C&&(R.onClick=M,R.role=h?"tab":"button",R.tabIndex=$?-1:0),u.createElement("div",Ce({},w,{ref:t,className:E}),u.createElement("div",R,i&&_,u.createElement("span",{className:"".concat(f,"-header-text"),onClick:m==="header"?M:void 0},p),I&&u.createElement("div",{className:"".concat(f,"-extra")},v)),u.createElement(ro,Ce({visible:l,leavedClassName:"".concat(f,"-content-hidden")},b,{forceRender:c,removeOnLeave:O}),function(k,T){var A=k.className,z=k.style;return u.createElement(ay,{ref:T,prefixCls:f,className:A,style:z,isActive:l,forceRender:c,role:h?"tabpanel":void 0},P)}))}),R3=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],T3=function(t,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,s=n.activeKey,c=n.openMotion,d=n.expandIcon;return t.map(function(f,m){var h=f.children,g=f.label,v=f.key,p=f.collapsible,y=f.onItemClick,b=f.destroyInactivePanel,O=Qe(f,R3),P=String(v??m),w=p??i,$=b??a,S=function(M){w!=="disabled"&&(l(M),y==null||y(M));},C=!1;return o?C=s[0]===P:C=s.indexOf(P)>-1,u.createElement(ly,Ce({},O,{prefixCls:r,key:P,panelKey:P,isActive:C,accordion:o,openMotion:c,expandIcon:d,header:g,collapsible:w,onItemClick:S,destroyInactivePanel:$}),h)})},N3=function(t,n,r){if(!t)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,l=r.destroyInactivePanel,s=r.onItemClick,c=r.activeKey,d=r.openMotion,f=r.expandIcon,m=t.key||String(n),h=t.props,g=h.header,v=h.headerClass,p=h.destroyInactivePanel,y=h.collapsible,b=h.onItemClick,O=!1;i?O=c[0]===m:O=c.indexOf(m)>-1;var P=y??a,w=function(C){P!=="disabled"&&(s(C),b==null||b(C));},$={key:m,panelKey:m,header:g,headerClass:v,isActive:O,prefixCls:o,destroyInactivePanel:p??l,openMotion:d,accordion:i,children:t.props.children,onItemClick:w,expandIcon:f,collapsible:P};return typeof t.type=="string"?t:(Object.keys($).forEach(function(S){typeof $[S]>"u"&&delete $[S];}),u.cloneElement(t,$))};function k3(e,t,n){return Array.isArray(e)?T3(e,n):Qn(t).map(function(r,o){return N3(r,o,n)})}function L3(e){var t=e;if(!Array.isArray(t)){var n=dt(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var A3=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,a=e.style,l=e.accordion,s=e.className,c=e.children,d=e.collapsible,f=e.openMotion,m=e.expandIcon,h=e.activeKey,g=e.defaultActiveKey,v=e.onChange,p=e.items,y=W(r,s),b=zt([],{value:h,onChange:function(I){return v==null?void 0:v(I)},defaultValue:g,postState:L3}),O=G(b,2),P=O[0],w=O[1],$=function(I){return w(function(){if(l)return P[0]===I?[]:[I];var M=P.indexOf(I),L=M>-1;return L?P.filter(function(_){return _!==I}):[].concat(Ge(P),[I])})};pr(!c,"`children` will be removed in next major version. Please use `items` instead.");var S=k3(p,c,{prefixCls:r,accordion:l,openMotion:f,expandIcon:m,collapsible:d,destroyInactivePanel:i,onItemClick:$,activeKey:P});return u.createElement("div",{ref:t,className:y,style:a,role:l?"tablist":void 0},S)});const pm=Object.assign(A3,{Panel:ly});pm.Panel;const D3=u__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=u__namespace.useContext(ot),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),l=W({[`${a}-no-arrow`]:!i},o);return u__namespace.createElement(pm.Panel,Object.assign({ref:t},e,{prefixCls:a,className:l}))}),z3=D3,j3=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:d,lineType:f,colorBorder:m,colorText:h,colorTextHeading:g,colorTextDisabled:v,fontSize:p,fontSizeLG:y,lineHeight:b,marginSM:O,paddingSM:P,paddingLG:w,paddingXS:$,motionDurationSlow:S,fontSizeIcon:C}=e,I=`${d}px ${f} ${m}`;return {[t]:Object.assign(Object.assign({},kt(e)),{backgroundColor:i,border:I,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:I,"&:last-child":{[`
&,
& > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,paddingInlineStart:P,color:g,lineHeight:b,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:p*b,display:"flex",alignItems:"center",paddingInlineEnd:O,marginInlineStart:r-P},[`${t}-arrow`]:Object.assign(Object.assign({},To()),{fontSize:C,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:h,backgroundColor:n,borderTop:I,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:l,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:P-$}},[`> ${t}-content > ${t}-content-box`]:{padding:P}}},"&-large":{[`> ${t}-item`]:{fontSize:y,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:y*b,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\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:O}}}}})}},B3=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},H3=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return {[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`
> ${t}-item:last-child,
> ${t}-item:last-child ${t}-header
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},F3=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}}}}}},W3=Ut("Collapse",e=>{const t=mt(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return [j3(t),H3(t),F3(t),B3(t),t0(t)]}),V3=u__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=u__namespace.useContext(ot),{prefixCls:i,className:a,rootClassName:l,style:s,bordered:c=!0,ghost:d,size:f,expandIconPosition:m="start",children:h,expandIcon:g}=e,v=kn(I=>{var M;return (M=f??I)!==null&&M!==void 0?M:"middle"}),p=n("collapse",i),y=n(),[b,O]=W3(p),P=u__namespace.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),w=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const M=g?g(I):u__namespace.createElement(Si,{rotate:I.isActive?90:void 0});return Tn(M,()=>({className:W(M.props.className,`${p}-arrow`)}))},$=W(`${p}-icon-position-${P}`,{[`${p}-borderless`]:!c,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!d,[`${p}-${v}`]:v!=="middle"},o==null?void 0:o.className,a,l,O),S=Object.assign(Object.assign({},Hb(y)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),C=u__namespace.useMemo(()=>h?Qn(h).map((I,M)=>{var L,_;if(!((L=I.props)===null||L===void 0)&&L.disabled){const E=(_=I.key)!==null&&_!==void 0?_:String(M),{disabled:x,collapsible:R}=I.props,k=Object.assign(Object.assign({},vn(I.props,["disabled"])),{key:E,collapsible:R??(x?"disabled":void 0)});return Tn(I,k)}return I}):null,[h]);return b(u__namespace.createElement(pm,Object.assign({ref:t,openMotion:S},vn(e,["rootClassName"]),{expandIcon:w,prefixCls:p,className:$,style:Object.assign(Object.assign({},o==null?void 0:o.style),s)}),C))}),K3=Object.assign(V3,{Panel:z3}),Su=e=>e.map(t=>(t.colors=t.colors.map(gn),t)),G3=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new ds(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},U3=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=Ni("ColorPicker"),{token:{colorBgElevated:a}}=yi.useToken(),[l]=zt(Su(n),{value:Su(n),postState:Su}),s=`${t}-presets`,c=u.useMemo(()=>l.map(m=>`panel-${m.label}`),[l]),d=m=>{o==null||o(m);},f=l.map(m=>{var h;return {key:`panel-${m.label}`,label:u.createElement("div",{className:`${s}-label`},m==null?void 0:m.label),children:u.createElement("div",{className:`${s}-items`},Array.isArray(m==null?void 0:m.colors)&&((h=m.colors)===null||h===void 0?void 0:h.length)>0?m.colors.map(g=>u.createElement(Xf,{key:`preset-${g.toHexString()}`,color:gn(g).toRgbString(),prefixCls:t,className:W(`${s}-color`,{[`${s}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${s}-color-bright`]:G3(g,a)}),onClick:()=>d(g)})):u.createElement("span",{className:`${s}-empty`},i.presetEmpty))}});return u.createElement("div",{className:s},u.createElement(K3,{defaultActiveKey:c,ghost:!0,items:f}))},X3=U3,Y3=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=u.useContext(v0);return Array.isArray(n)?u.createElement(X3,{value:t,presets:n,prefixCls:e,onChange:r}):null},Fg=Y3;var q3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Z3=e=>{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:i,onClear:a}=e,l=q3(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),s=`${t}-inner-content`,c=Object.assign({prefixCls:t,value:o,onChange:i,onClear:a},l),d=u.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:i}),[t,o,n,i]),f=u.createElement(u.Fragment,null,u.createElement(Hg,null),Array.isArray(n)&&u.createElement(P_,{className:`${s}-divider`}),u.createElement(Fg,null));return u.createElement(B_,{value:c},u.createElement(H_,{value:d},u.createElement("div",{className:s},typeof r=="function"?r(f,{components:{Picker:Hg,Presets:Fg}}):f)))},Q3=Z3;var J3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const e4=u.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:i,disabled:a,format:l,className:s,showText:c}=e,d=J3(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),f=`${r}-trigger`,m=u.useMemo(()=>i?u.createElement(b0,{prefixCls:r}):u.createElement(Xf,{prefixCls:r,color:n.toRgbString()}),[n,i,r]),h=()=>{const v=n.toHexString().toUpperCase(),p=p0(n);switch(l){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${v.slice(0,7)},${p}%`:v}},g=()=>{if(typeof c=="function")return c(n);if(c)return h()};return u.createElement("div",Object.assign({ref:t,className:W(f,s,{[`${f}-active`]:o,[`${f}-disabled`]:a})},d),m,c&&u.createElement("div",{className:`${f}-text`},g()))}),t4=e4;function Wg(e){return e!==void 0}const n4=(e,t)=>{const{defaultValue:n,value:r}=t,[o,i]=u.useState(()=>{let a;return Wg(r)?a=r:Wg(n)?a=n:a=e,gn(a||"")});return u.useEffect(()=>{r&&i(gn(r));},[r]),[o,i]},r4=n4,sy=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),o4=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return {[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},sy("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${i}px solid ${a}`,borderRadius:"inherit"}})}},Vg=o4,i4=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:s,marginXS:c,fontSizeIcon:d,paddingXS:f,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:h,lineWidth:g}=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:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${i}px`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:d+a,fontSize:r,lineHeight:`${s}px`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${f}px`,[`${n}-input`]:{fontSize:r,lineHeight:`${s-2*g}px`},[`${n}-input-prefix`]:{color:m}}}}}},a4=i4,l4=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:s,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:d,colorPickerSliderHeight:f}=e;return {[`${t}-select`]:{[`${t}-palette`]:{minHeight:n*4,overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${s}px solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`,"&-sm":{width:d,height:d}},[`${t}-slider`]:{borderRadius:f/2,[`${t}-palette`]:{height:f},[`${t}-gradient`]:{borderRadius:f/2,boxShadow:o},"&-alpha":sy(`${f}px`,e.colorFillSecondary),marginBottom:i},[`${t}-slider-container`]:{display:"flex",gap:i,[`${t}-slider-group`]:{flex:1}}}},s4=l4,c4=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:s,lineWidth:c,borderRadius:d,colorFill:f,colorWhite:m,marginXXS:h,paddingXS:g}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:a*s,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${g}px 0`},"&-label":{fontSize:a,color:l,lineHeight:s},"&-items":{display:"flex",flexWrap:"wrap",gap:h*1.5,[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:i+4*c,height:i+4*c,position:"absolute",top:-2*c,insetInlineStart:-2*c,borderRadius:d,border:`${c}px solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:i/13*5,height:i/13*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor: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:a,color:r}}}},u4=c4,wd=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),d4=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Kg=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,red6:l}=e;return {[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${i}px solid ${a}`,position:"relative",cursor:"pointer",overflow:"hidden"},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:i,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:l}})}},f4=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorBorderHover:o,colorWarningBorderHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return {[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},wd(mt(e,{controlOutline:a})))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},wd(mt(e,{controlOutline:l})))}}},m4=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:s,borderRadiusLG:c,fontSizeLG:d}=e;return {[`&${t}-lg`]:{minWidth:n,height:n,borderRadius:c,[`${t}-color-block`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:d}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:l,[`${t}-color-block`]:{width:i,height:i,borderRadius:s}}}},h4=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:i,colorTextDisabled:a,colorText:l,colorBgContainerDisabled:s,borderRadius:c,marginXS:d,marginSM:f,controlHeight:m,controlHeightSM:h,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:p,lineWidth:y,colorBorder:b,paddingXXS:O,fontSize:P}=e;return [{[t]:Object.assign({[`${t}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:n,"&-divider":{margin:`${f}px 0 ${d}px`},[`${t}-panel`]:Object.assign({},s4(e))},Vg(e,p)),a4(e)),u4(e)),Kg(e,v,{marginInlineStart:"auto",marginBottom:d})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:m,height:m,borderRadius:c,border:`${y}px solid ${b}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${o}`,background:i,padding:O-y,[`${t}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:d-(O-y),fontSize:P,color:l},"&-active":Object.assign(Object.assign({},wd(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:a,background:s,cursor:"not-allowed","&:hover":{borderColor:g},[`${t}-trigger-text`]:{color:a}}},Kg(e,h)),Vg(e,h)),f4(e)),m4(e))},d4(e))}]},g4=Ut("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=mt(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:r*2+n});return [h4(o)]}),bm=e=>{const{value:t,defaultValue:n,format:r,allowClear:o=!1,presets:i,children:a,trigger:l="click",open:s,disabled:c,placement:d="bottomLeft",arrow:f=!0,panelRender:m,showText:h,style:g,className:v,size:p,rootClassName:y,styles:b,onFormatChange:O,onChange:P,onClear:w,onOpenChange:$,onChangeComplete:S,getPopupContainer:C,autoAdjustOverflow:I=!0,destroyTooltipOnHide:M}=e,{getPrefixCls:L,direction:_,colorPicker:E}=u.useContext(ot),{token:x}=yi.useToken(),[R,k]=r4(x.colorPrimary,{value:t,defaultValue:n}),[T,A]=zt(!1,{value:s,postState:he=>!c&&he,onChange:$}),[z,F]=zt(r,{value:r,onChange:O}),[V,j]=u.useState(!1),H=L("color-picker",W_),{status:B}=u.useContext(Vn),X=kn(p),[J,Q]=g4(H),K={[`${H}-rtl`]:_},Y=W(y,K),re=W(Zn(H,B),{[`${H}-sm`]:X==="small",[`${H}-lg`]:X==="large"},E==null?void 0:E.className,Y,v,Q),ue=W(H,K),se=u.useRef(!0),ee=(he,ge,be)=>{let Re=gn(he);if(V||(t===null||!t&&n===null)){j(!1);const $e=Re.toHsb();R.toHsb().a===0&&ge!=="alpha"&&($e.a=1,Re=gn($e));}be&&(se.current=!1),k(Re),P==null||P(Re,Re.toHexString());},ae=()=>{j(!0),w==null||w();},q=he=>{se.current=!0,S==null||S(gn(he));},te={open:T,trigger:l,placement:d,arrow:f,rootClassName:y,getPopupContainer:C,autoAdjustOverflow:I,destroyTooltipOnHide:M},ce={prefixCls:H,color:R,allowClear:o,colorCleared:V,disabled:c,presets:i,panelRender:m,format:z,onFormatChange:F,onChangeComplete:q},fe=Object.assign(Object.assign({},E==null?void 0:E.style),g);return J(u.createElement(Uf,Object.assign({style:b==null?void 0:b.popup,overlayInnerStyle:b==null?void 0:b.popupOverlayInner,onOpenChange:he=>{se.current&&A(he);},content:u.createElement(Oa,{override:!0,status:!0},u.createElement(Q3,Object.assign({},ce,{onChange:ee,onChangeComplete:q,onClear:ae}))),overlayClassName:ue},te),a||u.createElement(t4,{open:T,className:re,style:fe,color:t?gn(t):R,prefixCls:H,disabled:c,colorCleared:V,showText:h,format:z})))},v4=Df(bm,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));bm._InternalPanelDoNotUseOrYouWillBeFired=v4;const p4=bm;var b4=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],cy=u.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,i=e.className,a=e.style,l=e.checked,s=e.disabled,c=e.defaultChecked,d=c===void 0?!1:c,f=e.type,m=f===void 0?"checkbox":f,h=e.title,g=e.onChange,v=Qe(e,b4),p=u.useRef(null),y=zt(d,{value:l}),b=G(y,2),O=b[0],P=b[1];u.useImperativeHandle(t,function(){return {focus:function(){var C;(C=p.current)===null||C===void 0||C.focus();},blur:function(){var C;(C=p.current)===null||C===void 0||C.blur();},input:p.current}});var w=W(o,i,(n={},U(n,"".concat(o,"-checked"),O),U(n,"".concat(o,"-disabled"),s),n)),$=function(C){s||("checked"in e||P(C.target.checked),g==null||g({target:Z(Z({},e),{},{type:m,checked:C.target.checked}),stopPropagation:function(){C.stopPropagation();},preventDefault:function(){C.preventDefault();},nativeEvent:C.nativeEvent}));};return u__namespace.createElement("span",{className:w,title:h,style:a},u__namespace.createElement("input",Ce({},v,{className:"".concat(o,"-input"),ref:p,onChange:$,disabled:s,checked:!!O,type:m})),u__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const y4=u.createContext(null),uy=y4,C4=new _t("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),S4=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},kt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},kt(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({},kt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Eo(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[`
${n}:not(${n}-disabled),
${t}:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:C4,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`
${n}-checked:not(${n}-disabled),
${t}-checked:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-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 w4(e,t){const n=mt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [S4(n)]}const dy=Ut("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [w4(n,e)]});var $4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const x4=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:l=!1,style:s,onMouseEnter:c,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,h=$4(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:v,checkbox:p}=u__namespace.useContext(ot),y=u__namespace.useContext(uy),{isFormItemInput:b}=u__namespace.useContext(Vn),O=u__namespace.useContext(br),P=(n=(y==null?void 0:y.disabled)||m)!==null&&n!==void 0?n:O,w=u__namespace.useRef(h.value);u__namespace.useEffect(()=>{y==null||y.registerValue(h.value);},[]),u__namespace.useEffect(()=>{if(!f)return h.value!==w.current&&(y==null||y.cancelValue(w.current),y==null||y.registerValue(h.value),w.current=h.value),()=>y==null?void 0:y.cancelValue(h.value)},[h.value]);const $=g("checkbox",r),[S,C]=dy($),I=Object.assign({},h);y&&!f&&(I.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),y.toggleOption&&y.toggleOption({label:a,value:h.value});},I.name=y.name,I.checked=y.value.includes(h.value));const M=W(`${$}-wrapper`,{[`${$}-rtl`]:v==="rtl",[`${$}-wrapper-checked`]:I.checked,[`${$}-wrapper-disabled`]:P,[`${$}-wrapper-in-form-item`]:b},p==null?void 0:p.className,o,i,C),L=W({[`${$}-indeterminate`]:l},C),_=l?"mixed":void 0;return S(u__namespace.createElement("label",{className:M,style:Object.assign(Object.assign({},p==null?void 0:p.style),s),onMouseEnter:c,onMouseLeave:d},u__namespace.createElement(cy,Object.assign({"aria-checked":_},I,{prefixCls:$,className:L,disabled:P,ref:t})),a!==void 0&&u__namespace.createElement("span",null,a)))},E4=u__namespace.forwardRef(x4),fy=E4;var I4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const O4=(e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:s,onChange:c}=e,d=I4(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=u__namespace.useContext(ot),[h,g]=u__namespace.useState(d.value||n||[]),[v,p]=u__namespace.useState([]);u__namespace.useEffect(()=>{"value"in d&&g(d.value||[]);},[d.value]);const y=u__namespace.useMemo(()=>o.map(E=>typeof E=="string"||typeof E=="number"?{label:E,value:E}:E),[o]),b=E=>{p(x=>x.filter(R=>R!==E));},O=E=>{p(x=>[].concat(Ge(x),[E]));},P=E=>{const x=h.indexOf(E.value),R=Ge(h);x===-1?R.push(E.value):R.splice(x,1),"value"in d||g(R),c==null||c(R.filter(k=>v.includes(k)).sort((k,T)=>{const A=y.findIndex(F=>F.value===k),z=y.findIndex(F=>F.value===T);return A-z}));},w=f("checkbox",i),$=`${w}-group`,[S,C]=dy(w),I=vn(d,["value","disabled"]),M=o.length?y.map(E=>u__namespace.createElement(fy,{prefixCls:w,key:E.value.toString(),disabled:"disabled"in E?E.disabled:d.disabled,value:E.value,checked:h.includes(E.value),onChange:E.onChange,className:`${$}-item`,style:E.style,title:E.title},E.label)):r,L={toggleOption:P,value:h,disabled:d.disabled,name:d.name,registerValue:O,cancelValue:b},_=W($,{[`${$}-rtl`]:m==="rtl"},a,l,C);return S(u__namespace.createElement("div",Object.assign({className:_,style:s},I,{ref:t}),u__namespace.createElement(uy.Provider,{value:L},M)))},P4=u__namespace.forwardRef(O4),M4=u__namespace.memo(P4),ym=fy;ym.Group=M4;ym.__ANT_CHECKBOX=!0;const Cm=ym;var _4=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function Gg(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 Ug(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gg(Object(n),!0).forEach(function(r){R4(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function R4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T4(e,t){if(e==null)return {};var n=N4(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function N4(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var k4={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 L4(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function A4(e,t,n){var r=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],i=t.theme||n.theme;switch(i){case"outline":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none");break;case"filled":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("#FFF"),o.push("#FFF");break;case"two-tone":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone);break;case"multi-color":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.multiColor.outFillColor),o.push(typeof r[2]=="string"?r[2]:n.colors.multiColor.innerStrokeColor),o.push(typeof r[3]=="string"?r[3]:n.colors.multiColor.innerFillColor);break}return {size:t.size||n.size,strokeWidth:t.strokeWidth||n.strokeWidth,strokeLinecap:t.strokeLinecap||n.strokeLinecap,strokeLinejoin:t.strokeLinejoin||n.strokeLinejoin,colors:o,id:e}}var my=u.createContext(k4);my.Provider;function Xt(e,t,n){return function(r){var o=r.size,i=r.strokeWidth,a=r.strokeLinecap,l=r.strokeLinejoin,s=r.theme,c=r.fill,d=r.className,f=r.spin,m=T4(r,_4),h=u.useContext(my),g=u.useMemo(L4,[]),v=A4(g,{size:o,strokeWidth:i,strokeLinecap:a,strokeLinejoin:l,theme:s,fill:c},h),p=[h.prefix+"-icon"];return p.push(h.prefix+"-icon-"+e),t&&h.rtl&&p.push(h.prefix+"-icon-rtl"),f&&p.push(h.prefix+"-icon-spin"),d&&p.push(d),u.createElement("span",Ug(Ug({},m),{},{className:p.join(" ")}),n(v))}}const D4=Xt("people-delete",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.createElement("path",{d:"M33 31L41 39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M33 39L41 31",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.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}))}),z4=Xt("delete",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M9 10V44H39V10H9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M20 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M28 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M4 10H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),j4=Xt("add-two",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.createElement("path",{d:"M31 30L43 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M15 22L22 29L41 11",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M37 24V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),B4=Xt("play-two",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.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}))}),H4=Xt("unlike",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.createElement("path",{d:"M34.959 27L41.8375 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M41.8375 27L34.959 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),F4=Xt("dislike-two",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 20L20 28L28 20Z",fill:e.colors[1]}),u.createElement("path",{d:"M28 20L20 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 20.0001L28 28L20 20.0001Z",fill:e.colors[1]}),u.createElement("path",{d:"M20 20.0001L28 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),W4=Xt("copy",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.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}))}),V4=Xt("efferent-four",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.createElement("path",{d:"M28 5H40V17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M21.0001 23.9998L39 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),K4=Xt("star",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}))}),G4=Xt("file-cabinet",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M42 4H6V14H42V4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M42 19H6V29H42V19Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M42 34H6V44H42V34Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M21 9H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M21 24H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M21 39H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),U4=Xt("tumblr",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.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]}))}),X4=Xt("concern",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.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}),u.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}),u.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}),u.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}))}),Y4=Xt("iphone",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("rect",{x:"11",y:"4",width:"26",height:"40",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),u.createElement("path",{d:"M22 10L26 10",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M20 38H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),q4=Xt("computer",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("rect",{x:"19",y:"32",width:"10",height:"9",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("rect",{x:"5",y:"8",width:"38",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),u.createElement("path",{d:"M22 27H26",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M14 41L34 41",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Z4=Xt("tips",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.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}),u.createElement("path",{d:"M18 17V23L24 20L30 23V17",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Q4=Xt("return",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.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}))}),J4=Xt("loading-three",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),eL=Xt("loading",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.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}))}),tL=Xt("info",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.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]}),u.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),nL=Xt("help",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.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}),u.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]}))}),rL=Xt("distraught-face",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.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}),u.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),oL=Xt("config",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.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}),u.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}))}),iL=Xt("close",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),aL={Close:iL,Config:oL,DistraughtFace:rL,Help:nL,Info:tL,Loading:eL,LoadingThree:J4,Return:Q4,Tips:Z4,Computer:q4,Iphone:Y4,Concern:X4,Tumblr:U4,FileCabinet:G4,Star:K4,EfferentFour:V4,Copy:W4,DislikeTwo:F4,Unlike:H4,PlayTwo:B4,AddTwo:j4,Delete:z4,PeopleDelete:D4};function Dt({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const i=aL[e];return D(i,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}var lL=/\s/;function sL(e){for(var t=e.length;t--&&lL.test(e.charAt(t)););return t}var cL=/^\s+/;function uL(e){return e&&e.slice(0,sL(e)+1).replace(cL,"")}var Xg=0/0,dL=/^[-+]0x[0-9a-f]+$/i,fL=/^0b[01]+$/i,mL=/^0o[0-7]+$/i,hL=parseInt;function $d(e){if(typeof e=="number")return e;if(Qs(e))return Xg;if(Fn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fn(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=uL(e);var n=fL.test(e);return n||mL.test(e)?hL(e.slice(2),n?2:8):dL.test(e)?Xg:+e}var Yg=1/0,gL=17976931348623157e292;function vL(e){if(!e)return e===0?e:0;if(e=$d(e),e===Yg||e===-Yg){var t=e<0?-1:1;return t*gL}return e===e?e:0}function pL(e){var t=vL(e),n=t%1;return t===t?n?t-n:t:0}var bL="Expected a function";function yL(e,t){var n;if(typeof t!="function")throw new TypeError(bL);return e=pL(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function CL(e){return yL(2,e)}const SL=Symbol(),Sm=Symbol(),Yi="a",Fl="w";let wL=(e,t)=>new Proxy(e,t);const xd=Object.getPrototypeOf,Ed=new WeakMap,hy=e=>e&&(Ed.has(e)?Ed.get(e):xd(e)===Object.prototype||xd(e)===Array.prototype),qg=e=>typeof e=="object"&&e!==null,$L=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0;}),Object.create(xd(e),t)},gy=e=>e[Sm]||e,vy=(e,t,n,r)=>{if(!hy(e))return e;let o=r&&r.get(e);if(!o){const s=gy(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(d=>!d.configurable&&!d.writable))(s)?[s,$L(s)]:[s],r==null||r.set(e,o);}const[i,a]=o;let l=n&&n.get(i);return l&&l[1].f===!!a||(l=((s,c)=>{const d={f:c};let f=!1;const m=(g,v)=>{if(!f){let p=d[Yi].get(s);if(p||(p={},d[Yi].set(s,p)),g===Fl)p[Fl]=!0;else {let y=p[g];y||(y=new Set,p[g]=y),y.add(v);}}},h={get:(g,v)=>v===Sm?s:(m("k",v),vy(Reflect.get(g,v),d[Yi],d.c,d.t)),has:(g,v)=>v===SL?(f=!0,d[Yi].delete(s),!0):(m("h",v),Reflect.has(g,v)),getOwnPropertyDescriptor:(g,v)=>(m("o",v),Reflect.getOwnPropertyDescriptor(g,v)),ownKeys:g=>(m(Fl),Reflect.ownKeys(g))};return c&&(h.set=h.deleteProperty=()=>!1),[h,d]})(i,!!a),l[1].p=wL(a||i,l[0]),n&&n.set(i,l)),l[1][Yi]=t,l[1].c=n,l[1].t=r,l[1].p},py=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!qg(e)||!qg(t))return !0;const o=n.get(gy(e));if(!o)return !0;if(r){const a=r.get(e);if(a&&a.n===t)return a.g;r.set(e,{n:t,g:!1});}let i=null;try{for(const a of o.h||[])if(i=Reflect.has(e,a)!==Reflect.has(t,a),i)return i;if(o[Fl]===!0){if(i=((a,l)=>{const s=Reflect.ownKeys(a),c=Reflect.ownKeys(l);return s.length!==c.length||s.some((d,f)=>d!==c[f])})(e,t),i)return i}else for(const a of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),i)return i;for(const a of o.k||[])if(i=py(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i});}},xL=e=>hy(e)&&e[Sm]||null,Zg=(e,t=!0)=>{Ed.set(e,t);};const wu=e=>typeof e=="object"&&e!==null,Wr=new WeakMap,xl=new WeakSet,EL=(e=Object.is,t=(d,f)=>new Proxy(d,f),n=d=>wu(d)&&!xl.has(d)&&(Array.isArray(d)||!(Symbol.iterator in d))&&!(d instanceof WeakMap)&&!(d instanceof WeakSet)&&!(d instanceof Error)&&!(d instanceof Number)&&!(d instanceof Date)&&!(d instanceof String)&&!(d instanceof RegExp)&&!(d instanceof ArrayBuffer),r=d=>d.configurable&&d.enumerable&&d.writable,o=d=>{switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:throw d}},i=new WeakMap,a=(d,f,m=o)=>{const h=i.get(d);if((h==null?void 0:h[0])===f)return h[1];const g=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d));return Zg(g,!0),i.set(d,[f,g]),Reflect.ownKeys(d).forEach(v=>{if(Object.getOwnPropertyDescriptor(g,v))return;const p=Reflect.get(d,v),y={value:p,enumerable:!0,configurable:!0};if(xl.has(p))Zg(p,!1);else if(p instanceof Promise)delete y.value,y.get=()=>m(p);else if(Wr.has(p)){const[b,O]=Wr.get(p);y.value=a(b,O(),m);}Object.defineProperty(g,v,y);}),Object.preventExtensions(g)},l=new WeakMap,s=[1,1],c=d=>{if(!wu(d))throw new Error("object required");const f=l.get(d);if(f)return f;let m=s[0];const h=new Set,g=(L,_=++s[0])=>{m!==_&&(m=_,h.forEach(E=>E(L,_)));};let v=s[1];const p=(L=++s[1])=>(v!==L&&!h.size&&(v=L,b.forEach(([_])=>{const E=_[1](L);E>m&&(m=E);})),m),y=L=>(_,E)=>{const x=[..._];x[1]=[L,...x[1]],g(x,E);},b=new Map,O=(L,_)=>{if(h.size){const E=_[3](y(L));b.set(L,[_,E]);}else b.set(L,[_]);},P=L=>{var _;const E=b.get(L);E&&(b.delete(L),(_=E[1])==null||_.call(E));},w=L=>(h.add(L),h.size===1&&b.forEach(([E,x],R)=>{const k=E[3](y(R));b.set(R,[E,k]);}),()=>{h.delete(L),h.size===0&&b.forEach(([E,x],R)=>{x&&(x(),b.set(R,[E]));});}),$=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d)),S=(L,_,E,x,R)=>{if(L&&(e(_,x)||l.has(x)&&e(_,l.get(x))))return;P(E),wu(x)&&(x=xL(x)||x);let k=x;if(x instanceof Promise)x.then(T=>{x.status="fulfilled",x.value=T,g(["resolve",[E],T]);}).catch(T=>{x.status="rejected",x.reason=T,g(["reject",[E],T]);});else {!Wr.has(x)&&n(x)&&(k=c(x));const T=!xl.has(k)&&Wr.get(k);T&&O(E,T);}R(k),g(["set",[E],x,_]);},I=t($,{deleteProperty(L,_){const E=Reflect.get(L,_);P(_);const x=Reflect.deleteProperty(L,_);return x&&g(["delete",[_],E]),x},set(L,_,E,x){const R=Reflect.has(L,_),k=Reflect.get(L,_,x);return S(R,k,_,E,T=>{Reflect.set(L,_,T,x);}),!0},defineProperty(L,_,E){if(r(E)){const x=Reflect.getOwnPropertyDescriptor(L,_);if(!x||r(x))return S(!!x&&"value"in x,x==null?void 0:x.value,_,E.value,R=>{Reflect.defineProperty(L,_,{...E,value:R});}),!0}return Reflect.defineProperty(L,_,E)}});l.set(d,I);const M=[$,p,a,w];return Wr.set(I,M),Reflect.ownKeys(d).forEach(L=>{const _=Object.getOwnPropertyDescriptor(d,L);"value"in _&&(I[L]=d[L],delete _.value,delete _.writable),Object.defineProperty($,L,_);}),I})=>[c,Wr,xl,e,t,n,r,o,i,a,l,s],[IL]=EL();function Jn(e={}){return IL(e)}function wm(e,t,n){const r=Wr.get(e);let o;const i=[],a=r[3];let l=!1;const c=a(d=>{if(i.push(d),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,l&&t(i.splice(0));}));});return l=!0,()=>{l=!1,c();}}function ps(e,t){const n=Wr.get(e),[r,o,i]=n;return i(r,o(),t)}var by={exports:{}},yy={};/**
* @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 wi=u;function OL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var PL=typeof Object.is=="function"?Object.is:OL,ML=wi.useState,_L=wi.useEffect,RL=wi.useLayoutEffect,TL=wi.useDebugValue;function NL(e,t){var n=t(),r=ML({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return RL(function(){o.value=n,o.getSnapshot=t,$u(o)&&i({inst:o});},[e,n,t]),_L(function(){return $u(o)&&i({inst:o}),e(function(){$u(o)&&i({inst:o});})},[e]),TL(n),n}function $u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !PL(e,n)}catch{return !0}}function kL(e,t){return t()}var LL=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kL:NL;yy.useSyncExternalStore=wi.useSyncExternalStore!==void 0?wi.useSyncExternalStore:LL;by.exports=yy;var AL=by.exports;const DL=Ar(AL),{use:Qg}=u,{useSyncExternalStore:zL}=DL;const jL=new WeakMap;function nr(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let i=!0;const a=zL(u.useCallback(c=>{const d=wm(e,c,n);return c(),d},[e,n]),()=>{const c=ps(e,Qg);try{if(!i&&r.current&&o.current&&!py(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>ps(e,Qg));i=!1;const l=new WeakMap;u.useEffect(()=>{r.current=a,o.current=l;});const s=u.useMemo(()=>new WeakMap,[]);return vy(a,l,s,jL)}const $i=CL(()=>!!document.querySelectorAll(".bili-feed4").length),Cy=()=>document.body.classList.contains("dark"),Sy=Jn({value:Cy()});function $m(){return nr(Sy).value}const wy=new MutationObserver(function(){Sy.value=Cy();});wy.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{wy.disconnect();});const $y=i1();var qv;const BL=((qv=$y.os.name)==null?void 0:qv.toLowerCase())==="mac os";var Zv;const xm=((Zv=$y.browser.name)==null?void 0:Zv.toLowerCase())==="safari";var HL=Sp(function(e,t){var n=e.styles,r=ai([n],void 0,u__namespace.useContext(wp)),o=u__namespace.useRef();return lh(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,s=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),s!==null&&(l=!0,s.setAttribute("data-emotion",i),a.hydrate([s])),o.current=[a,l],function(){a.flush();}},[t]),lh(function(){var i=o.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(r.next!==void 0&&cf(t,r.next,!0),a.tags.length){var s=a.tags[a.tags.length-1].nextElementSibling;a.before=s,a.flush();}t.insert("",r,a,!1);},[t,r.name]),null});function Bn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ai(t)}var vc={},xy={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;})(xy);var Em=xy.exports,pc={};Object.defineProperty(pc,"__esModule",{value:!0});pc.default=void 0;var FL={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:"页码"};pc.default=FL;var bc={},Ja={},yc={};Object.defineProperty(yc,"__esModule",{value:!0});yc.default=void 0;var WL={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:"下一世纪"},VL=WL;yc.default=VL;var el={};Object.defineProperty(el,"__esModule",{value:!0});el.default=void 0;const KL={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var GL=KL;el.default=GL;var Ey=Em.default;Object.defineProperty(Ja,"__esModule",{value:!0});Ja.default=void 0;var UL=Ey(yc),XL=Ey(el);const Iy={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},UL.default),timePickerLocale:Object.assign({},XL.default)};Iy.lang.ok="确定";var YL=Iy;Ja.default=YL;var qL=Em.default;Object.defineProperty(bc,"__esModule",{value:!0});bc.default=void 0;var ZL=qL(Ja),QL=ZL.default;bc.default=QL;var Cc=Em.default;Object.defineProperty(vc,"__esModule",{value:!0});vc.default=void 0;var JL=Cc(pc),eA=Cc(bc),tA=Cc(Ja),nA=Cc(el);const Pn="${label}不是一个有效的${type}",rA={locale:"zh-cn",Pagination:JL.default,DatePicker:tA.default,TimePicker:nA.default,Calendar:eA.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:Pn,method:Pn,array:Pn,object:Pn,number:Pn,date:Pn,boolean:Pn,integer:Pn,float:Pn,regexp:Pn,email:Pn,url:Pn,hex:Pn},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新"},ColorPicker:{presetEmpty:"暂无"}};var oA=rA;vc.default=oA;var iA=vc;const aA=Ar(iA);function Oy({children:e}){const t=$m(),{colorPrimary:n}=Ty();return pe(Af,{locale:aA,theme:{algorithm:t?yi.darkAlgorithm:yi.defaultAlgorithm,token:{colorPrimary:n,colorBgSpotlight:n,zIndexPopupBase:11e3,fontFamily:"inherit"}},children:[D(HL,{styles:Bn(":root{",Ny,":",n,";}","")}),e]})}function Py(e){return D(Ua,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}function fn({configKey:e,label:t,className:n,extraAction:r,tooltip:o}){const a=!!In()[e],l=u.useCallback(c=>{const d=c.target.checked;Lr({[e]:d}),r==null||r(d);},[]);let s=D("span",{style:{userSelect:"none"},children:t||e});return o&&(s=D(Ua,{title:o,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:s})),D(Cm,{className:n,checked:a,onChange:l,children:s})}var lA={name:"1qkltea",styles:"margin-left:5px"};const sA=function(){const e=lA;return pe(Et,{children:[D(fn,{configKey:"initialShowMore",label:"自动查看更多",css:e}),D(fn,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function bs({tooltip:e,iconProps:t,tooltipProps:n}){return D(Et,{children:e&&D(Py,{...n,title:e,children:D(Dt,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const cA=[{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)"}],ys={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},My={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function uA(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 _y="UP长期洗涤",dA=uA(_y,`
#0545b2 理想之蓝
#f4cd00 柠檬黄
#ef2729 石榴红
#f89c00 鹿箭
#233728 黛绿
#f2b9b7 和熙粉
#f3cc91 芝士黄
#6b4c68 葡萄紫
#ff7227 落日橙
#004d62 碧海天
#23909b 洗碧空
#aeb400 芥丝绿
#425a17 箬叶青
#002FA7 克莱因蓝
#003153 普鲁士蓝
#01847F 马尔斯绿
#FBD26A 申布伦黄
#470024 勃艮第红
#492D22 凡戴克棕
`),Ry=[{name:"预设",themes:[ys,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},My]},{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:cA,tooltip:pe(Et,{children:["提取自"," ",D("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),D("br",{}),"Apache License 2.0"]})},{name:_y,themes:dA,tooltip:pe(Et,{children:["提取自"," ",D("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",D("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})}],fA=Ry.map(e=>e.themes).flat();function Ty(){let{theme:e,colorPickerThemeSelectedColor:t}=In();return e||(e=ys.id),u.useMemo(()=>{const n=fA.find(r=>r.id===e)||ys;return n.id===My.id&&t&&(n.colorPrimary=t),n},[e,t])}const Ny=`--${nn}-color-primary`,kr=`var(${Ny})`;var mA={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},hA={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},gA={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function vA(){const e=Ty().id,{colorPickerThemeSelectedColor:t}=In(),[n,r]=u.useState(t||ys.colorPrimary),o=u.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return D("div",{children:Ry.map(({name:i,themes:a,tooltip:l})=>pe(u.Fragment,{children:[pe("div",{css:gA,children:[i,D(bs,{tooltip:l,tooltipProps:{color:"rgba(0, 0, 0, 0.85)"},iconProps:{name:"Tips",size:16}})]}),D("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:a.map(s=>{const c=e===s.id,d=s.isCustom,f=D("div",{className:"preview",css:Bn("width:100%;height:100%;background-color:",d?o:s.colorPrimary,";border-radius:5px;","")});let m=D("div",{className:"preview-wrapper",css:[hA,c&&Bn("border-color:",s.colorPrimary,";",""),"",""],children:f});return s.isCustom&&(m=D(p4,{value:n,onChange:h=>r(h),onOpenChange:h=>{h||Lr({colorPickerThemeSelectedColor:o});},children:m})),pe("div",{css:mA,onClick:h=>{Lr({theme:s.id});},children:[m,s.name]},s.id)})})]},i))})}const pA="_toast-container_185m9_1",bA="_single-line_185m9_17";function Ct(e,t=2e3){const n=document.createElement("div");n.className=pA,n.innerText=e,n.style.backgroundColor=kr,!e.includes(`
`)&&!e.includes("<br")&&n.classList.add(bA),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const yA="请求失败, 请重试 !!!",ky="操作失败, 请重试 !!!";function Ly(){return Ct(yA)}function Ay(){return Ct(ky)}const Dy="27eb53fc9058f8c3";async function CA(){var c,d;const t=(await Jd.get("https://passport.bilibili.com/login/app/third",{params:{appkey:Dy,api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((c=t==null?void 0:t.data)!=null&&c.has_login)){Ct("你必须登录B站之后才能使用授权");return}if(!((d=t==null?void 0:t.data)!=null&&d.confirm_uri)){Ct("无法获得授权网址");return}const n=t.data.confirm_uri;let r,o;const i=new Promise(f=>{const m=h=>{if(h.origin!="https://www.mcbbs.net")return;if(!h.data||typeof h.data!="string"){console.warn("received message event with invalid data");return}const v=new URL(h.data).searchParams.get("access_key");return v?f(v):(Ct("没有获得匹配的密钥"),f(void 0))};window.addEventListener("message",m),o=()=>window.removeEventListener("message",m),r=setTimeout(()=>{Ct("获取授权超时"),f(void 0);},10*1e3);});let a;{const f=document.createElement("iframe");f.src=n,f.style.display="none",document.body.appendChild(f),a=()=>f.remove();}function l(){a==null||a(),o==null||o(),o=void 0,r&&(clearTimeout(r),r=void 0);}const s=await i;return l(),s}async function SA(){const e=await CA();if(e)return St.accessKey=e,Ct("获取成功"),e}function wA(){St.accessKey="",Ct("已删除 access_key");}const $A="https://api.bilibili.com",zy="https://app.bilibili.com",wn=Jd.create({baseURL:$A,withCredentials:!0});wn.interceptors.request.use(function(e){var t;return (t=e.params)!=null&&t._||(e.params={...e.params,_:Date.now()}),e},function(e){return Promise.reject(e)});function ko(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const Sc=Jd.create({adapter:a1});Sc.interceptors.request.use(function(e){return e.params={appkey:Dy,access_key:St.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});Sc.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 ir=class ir{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}};vt(ir,"TABEL","fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF"),vt(ir,"TR",{}),vt(ir,"S",[11,10,3,8,4,6]),vt(ir,"XOR",177451812),vt(ir,"ADD",8728348608),(()=>{const t=ir.TABEL.length;for(let n=0;n<t;n++)ir.TR[ir.TABEL[n]]=n;})();let Id=ir;function Im(){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 tl(){const e=Im().bili_jct;if(!e)throw Ct("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}function wc(){return Im().DedeUserID}function nl(){return !!Im().DedeUserID}const Od=Jn({cookie:document.cookie,logined:nl()});function xA(){return Object.assign(Od,{cookie:document.cookie,logined:nl()}),Od.logined}function jy(){return nr(Od).logined}const Jg=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},EA=new WeakMap;function IA({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(Jg());let i,a,l;const s=e??clearTimeout,c=()=>{s(i),l(Jg());},d=()=>{o&&o.removeEventListener("abort",c);},f=new Promise((m,h)=>{a=()=>{d(),m(r);},l=h,i=(t??setTimeout)(a,n);});return o&&o.addEventListener("abort",c,{once:!0}),EA.set(f,()=>{s(i),i=null,a();}),f}}const Lo=IA(),OA=Ti.extend("utility:dom"),PA=10*1e3,MA=200;async function da(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const a=performance.now()+PA;for(;!r.length&&performance.now()<a;)await Lo(MA),o();if(!r.length){console.warn(`[${nn}]: tryAction timeout, selector = %s`,e);return}OA("tryAction: selector=%s count=%s",e,r.length);for(const l of r)await Promise.resolve(t(l));}async function fa(e,t,n){return typeof n=="number"&&await Lo(n),da(e,r=>r.remove(),t)}function $c(){var t;const e=(((t=document.activeElement)==null?void 0:t.tagName)||"").toLowerCase();return !!(["input","textarea"].includes(e)||document.querySelector(".center-search__bar.is-focus"))}var By={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(ep,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",l="minute",s="hour",c="day",d="week",f="month",m="quarter",h="year",g="date",v="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={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(E){var x=["th","st","nd","rd"],R=E%100;return "["+E+(x[(R-20)%10]||x[R]||x[0])+"]"}},O=function(E,x,R){var k=String(E);return !k||k.length>=x?E:""+Array(x+1-k.length).join(R)+E},P={s:O,z:function(E){var x=-E.utcOffset(),R=Math.abs(x),k=Math.floor(R/60),T=R%60;return (x<=0?"+":"-")+O(k,2,"0")+":"+O(T,2,"0")},m:function E(x,R){if(x.date()<R.date())return -E(R,x);var k=12*(R.year()-x.year())+(R.month()-x.month()),T=x.clone().add(k,f),A=R-T<0,z=x.clone().add(k+(A?-1:1),f);return +(-(k+(R-T)/(A?T-z:z-T))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return {M:f,y:h,w:d,d:c,D:g,h:s,m:l,s:a,ms:i,Q:m}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},w="en",$={};$[w]=b;var S=function(E){return E instanceof L},C=function E(x,R,k){var T;if(!x)return w;if(typeof x=="string"){var A=x.toLowerCase();$[A]&&(T=A),R&&($[A]=R,T=A);var z=x.split("-");if(!T&&z.length>1)return E(z[0])}else {var F=x.name;$[F]=x,T=F;}return !k&&T&&(w=T),T||!k&&w},I=function(E,x){if(S(E))return E.clone();var R=typeof x=="object"?x:{};return R.date=E,R.args=arguments,new L(R)},M=P;M.l=C,M.i=S,M.w=function(E,x){return I(E,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var L=function(){function E(R){this.$L=C(R.locale,null,!0),this.parse(R);}var x=E.prototype;return x.parse=function(R){this.$d=function(k){var T=k.date,A=k.utc;if(T===null)return new Date(NaN);if(M.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var z=T.match(p);if(z){var F=z[2]-1||0,V=(z[7]||"0").substring(0,3);return A?new Date(Date.UTC(z[1],F,z[3]||1,z[4]||0,z[5]||0,z[6]||0,V)):new Date(z[1],F,z[3]||1,z[4]||0,z[5]||0,z[6]||0,V)}}return new Date(T)}(R),this.$x=R.x||{},this.init();},x.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds();},x.$utils=function(){return M},x.isValid=function(){return this.$d.toString()!==v},x.isSame=function(R,k){var T=I(R);return this.startOf(k)<=T&&T<=this.endOf(k)},x.isAfter=function(R,k){return I(R)<this.startOf(k)},x.isBefore=function(R,k){return this.endOf(k)<I(R)},x.$g=function(R,k,T){return M.u(R)?this[k]:this.set(T,R)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(R,k){var T=this,A=!!M.u(k)||k,z=M.p(R),F=function(K,Y){var re=M.w(T.$u?Date.UTC(T.$y,Y,K):new Date(T.$y,Y,K),T);return A?re:re.endOf(c)},V=function(K,Y){return M.w(T.toDate()[K].apply(T.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(Y)),T)},j=this.$W,H=this.$M,B=this.$D,X="set"+(this.$u?"UTC":"");switch(z){case h:return A?F(1,0):F(31,11);case f:return A?F(1,H):F(0,H+1);case d:var J=this.$locale().weekStart||0,Q=(j<J?j+7:j)-J;return F(A?B-Q:B+(6-Q),H);case c:case g:return V(X+"Hours",0);case s:return V(X+"Minutes",1);case l:return V(X+"Seconds",2);case a:return V(X+"Milliseconds",3);default:return this.clone()}},x.endOf=function(R){return this.startOf(R,!1)},x.$set=function(R,k){var T,A=M.p(R),z="set"+(this.$u?"UTC":""),F=(T={},T[c]=z+"Date",T[g]=z+"Date",T[f]=z+"Month",T[h]=z+"FullYear",T[s]=z+"Hours",T[l]=z+"Minutes",T[a]=z+"Seconds",T[i]=z+"Milliseconds",T)[A],V=A===c?this.$D+(k-this.$W):k;if(A===f||A===h){var j=this.clone().set(g,1);j.$d[F](V),j.init(),this.$d=j.set(g,Math.min(this.$D,j.daysInMonth())).$d;}else F&&this.$d[F](V);return this.init(),this},x.set=function(R,k){return this.clone().$set(R,k)},x.get=function(R){return this[M.p(R)]()},x.add=function(R,k){var T,A=this;R=Number(R);var z=M.p(k),F=function(H){var B=I(A);return M.w(B.date(B.date()+Math.round(H*R)),A)};if(z===f)return this.set(f,this.$M+R);if(z===h)return this.set(h,this.$y+R);if(z===c)return F(1);if(z===d)return F(7);var V=(T={},T[l]=r,T[s]=o,T[a]=n,T)[z]||1,j=this.$d.getTime()+R*V;return M.w(j,this)},x.subtract=function(R,k){return this.add(-1*R,k)},x.format=function(R){var k=this,T=this.$locale();if(!this.isValid())return T.invalidDate||v;var A=R||"YYYY-MM-DDTHH:mm:ssZ",z=M.z(this),F=this.$H,V=this.$m,j=this.$M,H=T.weekdays,B=T.months,X=T.meridiem,J=function(Y,re,ue,se){return Y&&(Y[re]||Y(k,A))||ue[re].slice(0,se)},Q=function(Y){return M.s(F%12||12,Y,"0")},K=X||function(Y,re,ue){var se=Y<12?"AM":"PM";return ue?se.toLowerCase():se};return A.replace(y,function(Y,re){return re||function(ue){switch(ue){case"YY":return String(k.$y).slice(-2);case"YYYY":return M.s(k.$y,4,"0");case"M":return j+1;case"MM":return M.s(j+1,2,"0");case"MMM":return J(T.monthsShort,j,B,3);case"MMMM":return J(B,j);case"D":return k.$D;case"DD":return M.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return J(T.weekdaysMin,k.$W,H,2);case"ddd":return J(T.weekdaysShort,k.$W,H,3);case"dddd":return H[k.$W];case"H":return String(F);case"HH":return M.s(F,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return K(F,V,!0);case"A":return K(F,V,!1);case"m":return String(V);case"mm":return M.s(V,2,"0");case"s":return String(k.$s);case"ss":return M.s(k.$s,2,"0");case"SSS":return M.s(k.$ms,3,"0");case"Z":return z}return null}(Y)||z.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(R,k,T){var A,z=this,F=M.p(k),V=I(R),j=(V.utcOffset()-this.utcOffset())*r,H=this-V,B=function(){return M.m(z,V)};switch(F){case h:A=B()/12;break;case f:A=B();break;case m:A=B()/3;break;case d:A=(H-j)/6048e5;break;case c:A=(H-j)/864e5;break;case s:A=H/o;break;case l:A=H/r;break;case a:A=H/n;break;default:A=H;}return T?A:M.a(A)},x.daysInMonth=function(){return this.endOf(f).$D},x.$locale=function(){return $[this.$L]},x.locale=function(R,k){if(!R)return this.$L;var T=this.clone(),A=C(R,k,!0);return A&&(T.$L=A),T},x.clone=function(){return M.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},E}(),_=L.prototype;return I.prototype=_,[["$ms",i],["$s",a],["$m",l],["$H",s],["$W",c],["$M",f],["$y",h],["$D",g]].forEach(function(E){_[E[1]]=function(x){return this.$g(x,E[0],E[1])};}),I.extend=function(E,x){return E.$i||(E(x,L,I),E.$i=!0),I},I.locale=C,I.isDayjs=S,I.unix=function(E){return I(1e3*E)},I.en=$[w],I.Ls=$,I.p={},I});})(By);var _A=By.exports;const Di=Ar(_A);function RA(e){if(!e)return 0;const t=[1,60,360];return e.split(":").map(o=>Number(o)).reverse().reduce((o,i,a)=>o+i*t[a],0)}function xc(e){return e||(e=0),Di.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function xu(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function Cs(e){if(e){if(e==="-")return 0;if(/^\d+$/.test(e))return Number(e);if(/^\d+(\.\d+?)?万$/.test(e))return Number(e.slice(0,-1))*1e4}}const TA=Di().format("YYYY");function Ur(e,t=!1){if(!e)return "";const n=Di.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===TA?n.format("M-D"+r):n.format("YY-M-D"+r)}const NA={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function kA(e){if(!(typeof e>"u")&&!(e>=0))return NA[e]}async function Hy(){var n;return ((n=(await wn.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function Pd(e){var i,a;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:tl(),...e}),n=(await wn.post("/x/article/creative/draft/addupdate",t)).data,r=(a=(i=n==null?void 0:n.data)==null?void 0:i.aid)==null?void 0:a.toString(),o=ko(n);return o||Ct(n.message||"addupdate error"),{success:o,aid:r}}async function LA(e){var n;const t=(await wn.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 AA(){const t=(await Hy()).find(a=>a.title===nn);if(!t){await Pd({title:nn});return}const n=await LA(t.id),i=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(i)try{return JSON.parse(i)}catch{return}}async function DA(e){const n=(await Hy()).find(a=>a.title===nn);let r="";if(n)r=n.id.toString();else {const{success:a,aid:l}=await Pd({title:nn});if(!a)return !1;r=l;}const o=JSON.stringify(e),{success:i}=await Pd({aid:r,title:nn,content:`<p>${o}</p>`,words:o.length.toString()});return i}const zA=Ti.extend("settings"),Om={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",shuffleForWatchLater:!0,shuffleForFav:!0,excludeFavFolderIds:[],filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowed:!1,filterOutGotoTypePicture:!1,styleUseYoutubeLikeCard:!1,styleUseStandardVideoSourceTab:!1,backupSettingsToArticleDraft:!1},St=Jn({...Om}),Fy=Object.keys(Om),In=function(){return nr(St)},jA=nn,Wy=`${jA}.settings`;async function BA(){const e=await GM.getValue(Wy);e&&typeof e=="object"&&Object.assign(St,Ef(e,Fy)),wm(St,()=>{HA();});}async function HA(){const e=ps(St);await GM.setValue(Wy,e);const t=A2(e,["accessKey"]);if(t.backupSettingsToArticleDraft&&!window[`${nn}-restore`])try{await DA(t),zA("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function Lr(e){Object.assign(St,e);}function FA(){return Lr(Om)}(await BA());var Vy={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(ep,function(){var n,r,o=1e3,i=6e4,a=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,d=2592e6,f=/^(-|\+)?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:d,days:l,hours:a,minutes:i,seconds:o,milliseconds:1,weeks:6048e5},h=function($){return $ instanceof P},g=function($,S,C){return new P($,C,S.$l)},v=function($){return r.p($)+"s"},p=function($){return $<0},y=function($){return p($)?Math.ceil($):Math.floor($)},b=function($){return Math.abs($)},O=function($,S){return $?p($)?{negative:!0,format:""+b($)+S}:{negative:!1,format:""+$+S}:{negative:!1,format:""}},P=function(){function $(C,I,M){var L=this;if(this.$d={},this.$l=M,C===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return g(C*m[v(I)],this);if(typeof C=="number")return this.$ms=C,this.parseFromMilliseconds(),this;if(typeof C=="object")return Object.keys(C).forEach(function(x){L.$d[v(x)]=C[x];}),this.calMilliseconds(),this;if(typeof C=="string"){var _=C.match(f);if(_){var E=_.slice(2).map(function(x){return x!=null?Number(x):0});return this.$d.years=E[0],this.$d.months=E[1],this.$d.weeks=E[2],this.$d.days=E[3],this.$d.hours=E[4],this.$d.minutes=E[5],this.$d.seconds=E[6],this.calMilliseconds(),this}}return this}var S=$.prototype;return S.calMilliseconds=function(){var C=this;this.$ms=Object.keys(this.$d).reduce(function(I,M){return I+(C.$d[M]||0)*m[M]},0);},S.parseFromMilliseconds=function(){var C=this.$ms;this.$d.years=y(C/c),C%=c,this.$d.months=y(C/d),C%=d,this.$d.days=y(C/l),C%=l,this.$d.hours=y(C/a),C%=a,this.$d.minutes=y(C/i),C%=i,this.$d.seconds=y(C/o),C%=o,this.$d.milliseconds=C;},S.toISOString=function(){var C=O(this.$d.years,"Y"),I=O(this.$d.months,"M"),M=+this.$d.days||0;this.$d.weeks&&(M+=7*this.$d.weeks);var L=O(M,"D"),_=O(this.$d.hours,"H"),E=O(this.$d.minutes,"M"),x=this.$d.seconds||0;this.$d.milliseconds&&(x+=this.$d.milliseconds/1e3);var R=O(x,"S"),k=C.negative||I.negative||L.negative||_.negative||E.negative||R.negative,T=_.format||E.format||R.format?"T":"",A=(k?"-":"")+"P"+C.format+I.format+L.format+T+_.format+E.format+R.format;return A==="P"||A==="-P"?"P0D":A},S.toJSON=function(){return this.toISOString()},S.format=function(C){var I=C||"YYYY-MM-DDTHH:mm:ss",M={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 I.replace(s,function(L,_){return _||String(M[L])})},S.as=function(C){return this.$ms/m[v(C)]},S.get=function(C){var I=this.$ms,M=v(C);return M==="milliseconds"?I%=1e3:I=M==="weeks"?y(I/m[M]):this.$d[M],I===0?0:I},S.add=function(C,I,M){var L;return L=I?C*m[v(I)]:h(C)?C.$ms:g(C,this).$ms,g(this.$ms+L*(M?-1:1),this)},S.subtract=function(C,I){return this.add(C,I,!0)},S.locale=function(C){var I=this.clone();return I.$l=C,I},S.clone=function(){return g(this.$ms,this)},S.humanize=function(C){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!C)},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")},$}(),w=function($,S,C){return $.add(S.years()*C,"y").add(S.months()*C,"M").add(S.days()*C,"d").add(S.hours()*C,"h").add(S.minutes()*C,"m").add(S.seconds()*C,"s").add(S.milliseconds()*C,"ms")};return function($,S,C){n=C,r=C().$utils(),C.duration=function(L,_){var E=C.locale();return g(L,{$l:E},_)},C.isDuration=h;var I=S.prototype.add,M=S.prototype.subtract;S.prototype.add=function(L,_){return h(L)?w(this,L,1):I.bind(this)(L,_)},S.prototype.subtract=function(L,_){return h(L)?w(this,L,-1):M.bind(this)(L,_)};}});})(Vy);var WA=Vy.exports;const VA=Ar(WA);var Ec,ev=Qv;Ec=ev.createRoot,ev.hydrateRoot;function tv(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function nv(e,t,n){var r=[],o=sf(e,r,n);return r.length<2?n:o+t(r)}var KA=function(t){var n=fp(t);n.sheet.speedy=function(l){this.isSpeedy=l;},n.compat=!0;var r=function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];var f=ai(c,n.registered,void 0);return cf(n,f,!1),n.key+"-"+f.name},o=function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];var f=ai(c,n.registered),m="animation-"+f.name;return tv(n,{name:f.name,styles:"@keyframes "+m+"{"+f.styles+"}"}),m},i=function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];var f=ai(c,n.registered);tv(n,f);},a=function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];return nv(n.registered,r,GA(c))};return {css:r,cx:a,injectGlobal:i,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:sf.bind(null,n.registered),merge:nv.bind(null,n.registered,r)}},GA=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else {i="";for(var a in o)o[a]&&a&&(i&&(i+=" "),i+=a);}break}default:i=o;}i&&(n&&(n+=" "),n+=i);}}return n},UA=KA({key:"css"}),rv=UA.css,Ky=function(e){return function(t,n){var r=u.useRef(!1);e(function(){return function(){r.current=!1;}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n);}},qn=function(){return qn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);}return t},qn.apply(this,arguments)};function Gy(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 XA(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i);})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d));}catch(f){a(f);}}function s(d){try{c(r.throw(d));}catch(f){a(f);}}function c(d){d.done?i(d.value):o(d.value).then(l,s);}c((r=r.apply(e,t||[])).next());})}function YA(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(c){return function(d){return s([c,d])}}function s(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n);}catch(d){c=[6,d],o=0;}finally{r=i=0;}if(c[0]&5)throw c[1];return {value:c[0]?c[1]:void 0,done:!0}}}function Md(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 qt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value);}catch(l){a={error:l};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(a)throw a.error}}return i}function hn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var zi=function(e){return typeof e=="function"},qA=function(e){return typeof e=="string"},Uy=function(e){return typeof e=="number"};function lt(e){var t=u.useRef(e);t.current=u.useMemo(function(){return e},[e]);var n=u.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 Ss=Ky(u.useEffect);var Xy=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?!0:r,i=t.defaultParams,a=i===void 0?[]:i,l=t.refreshDeps,s=l===void 0?[]:l,c=t.refreshDepsAction,d=u.useRef(!1);return d.current=!1,Ss(function(){!n&&o&&(d.current=!0,e.run.apply(e,hn([],qt(a),!1)));},[o]),Ss(function(){d.current||n||(d.current=!0,c?c():e.refresh());},hn([],qt(s),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};Xy.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const QA=Xy;function _d(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 Yy(e,t){var n=u.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!_d(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function xi(e){var t=u.useRef(e);return t.current=e,t}var JA=function(e){var t=xi(e);u.useEffect(function(){return function(){t.current();}},[]);};const rl=JA;var Wl=new Map,eD=function(e,t,n){var r=Wl.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){Wl.delete(e);},t)),Wl.set(e,qn(qn({},n),{timer:o}));},tD=function(e){return Wl.get(e)},Vl=new Map,nD=function(e){return Vl.get(e)},rD=function(e,t){Vl.set(e,t),t.then(function(n){return Vl.delete(e),n}).catch(function(){Vl.delete(e);});},go={},oD=function(e,t){go[e]&&go[e].forEach(function(n){return n(t)});},Eu=function(e,t){return go[e]||(go[e]=[]),go[e].push(t),function(){var r=go[e].indexOf(t);go[e].splice(r,1);}},iD=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,i=t.staleTime,a=i===void 0?0:i,l=t.setCache,s=t.getCache,c=u.useRef(),d=u.useRef(),f=function(h,g){l?l(g):eD(h,o,g),oD(h,g.data);},m=function(h,g){return g===void 0&&(g=[]),s?s(g):tD(h)};return Yy(function(){if(n){var h=m(n);h&&Object.hasOwnProperty.call(h,"data")&&(e.state.data=h.data,e.state.params=h.params,(a===-1||new Date().getTime()-h.time<=a)&&(e.state.loading=!1)),c.current=Eu(n,function(g){e.setState({data:g});});}},[]),rl(function(){var h;(h=c.current)===null||h===void 0||h.call(c);}),n?{onBefore:function(h){var g=m(n,h);return !g||!Object.hasOwnProperty.call(g,"data")?{}:a===-1||new Date().getTime()-g.time<=a?{loading:!1,data:g==null?void 0:g.data,error:void 0,returnNow:!0}:{data:g==null?void 0:g.data,error:void 0}},onRequest:function(h,g){var v=nD(n);return v&&v!==d.current?{servicePromise:v}:(v=h.apply(void 0,hn([],qt(g),!1)),d.current=v,rD(n,v),{servicePromise:v})},onSuccess:function(h,g){var v;n&&((v=c.current)===null||v===void 0||v.call(c),f(n,{data:h,params:g,time:new Date().getTime()}),c.current=Eu(n,function(p){e.setState({data:p});}));},onMutate:function(h){var g;n&&((g=c.current)===null||g===void 0||g.call(c),f(n,{data:h,params:e.state.params,time:new Date().getTime()}),c.current=Eu(n,function(v){e.setState({data:v});}));}}:{}};const aD=iD;var lD=function(){return tr.Date.now()};const Iu=lD;var sD="Expected a function",cD=Math.max,uD=Math.min;function qy(e,t,n){var r,o,i,a,l,s,c=0,d=!1,f=!1,m=!0;if(typeof e!="function")throw new TypeError(sD);t=$d(t)||0,Fn(n)&&(d=!!n.leading,f="maxWait"in n,i=f?cD($d(n.maxWait)||0,t):i,m="trailing"in n?!!n.trailing:m);function h($){var S=r,C=o;return r=o=void 0,c=$,a=e.apply(C,S),a}function g($){return c=$,l=setTimeout(y,t),d?h($):a}function v($){var S=$-s,C=$-c,I=t-S;return f?uD(I,i-C):I}function p($){var S=$-s,C=$-c;return s===void 0||S>=t||S<0||f&&C>=i}function y(){var $=Iu();if(p($))return b($);l=setTimeout(y,v($));}function b($){return l=void 0,m&&r?h($):(r=o=void 0,a)}function O(){l!==void 0&&clearTimeout(l),c=0,r=s=o=l=void 0;}function P(){return l===void 0?a:b(Iu())}function w(){var $=Iu(),S=p($);if(r=arguments,o=this,s=$,S){if(l===void 0)return g(s);if(f)return clearTimeout(l),l=setTimeout(y,t),h(s)}return l===void 0&&(l=setTimeout(y,t)),a}return w.cancel=O,w.flush=P,w}var dD=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,a=u.useRef(),l=u.useMemo(function(){var s={};return r!==void 0&&(s.leading=r),o!==void 0&&(s.trailing=o),i!==void 0&&(s.maxWait=i),s},[r,o,i]);return u.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=qy(function(c){c();},n,l),e.runAsync=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return new Promise(function(f,m){var h;(h=a.current)===null||h===void 0||h.call(a,function(){s.apply(void 0,hn([],qt(c),!1)).then(f).catch(m);});})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=s;}}},[n,l]),n?{onCancel:function(){var s;(s=a.current)===null||s===void 0||s.cancel();}}:{}};const fD=dD;var mD=function(e,t){var n=t.loadingDelay,r=t.ready,o=u.useRef();if(!n)return {};var i=function(){o.current&&clearTimeout(o.current);};return {onBefore:function(){return i(),r!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0});},n)),{loading:!1}},onFinally:function(){i();},onCancel:function(){i();}}};const hD=mD;var gD=!!(typeof window<"u"&&window.document&&window.document.createElement);const ol=gD;function Pm(){return ol?document.visibilityState!=="hidden":!0}var ma=[];function vD(e){return ma.push(e),function(){var n=ma.indexOf(e);ma.splice(n,1);}}if(ol){var pD=function(){if(Pm())for(var e=0;e<ma.length;e++){var t=ma[e];t();}};window.addEventListener("visibilitychange",pD,!1);}var bD=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,o=r===void 0?!0:r,i=t.pollingErrorRetryCount,a=i===void 0?-1:i,l=u.useRef(),s=u.useRef(),c=u.useRef(0),d=function(){var f;l.current&&clearTimeout(l.current),(f=s.current)===null||f===void 0||f.call(s);};return Ss(function(){n||d();},[n]),n?{onBefore:function(){d();},onError:function(){c.current+=1;},onSuccess:function(){c.current=0;},onFinally:function(){a===-1||a!==-1&&c.current<=a?l.current=setTimeout(function(){!o&&!Pm()?s.current=vD(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){d();}}:{}};const yD=bD;function CD(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,hn([],qt(r),!1)),setTimeout(function(){n=!1;},t));}}function SD(){return ol&&typeof navigator.onLine<"u"?navigator.onLine:!0}var ha=[];function wD(e){return ha.push(e),function(){var n=ha.indexOf(e);n>-1&&ha.splice(n,1);}}if(ol){var ov=function(){if(!(!Pm()||!SD()))for(var e=0;e<ha.length;e++){var t=ha[e];t();}};window.addEventListener("visibilitychange",ov,!1),window.addEventListener("focus",ov,!1);}var $D=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,i=u.useRef(),a=function(){var l;(l=i.current)===null||l===void 0||l.call(i);};return u.useEffect(function(){if(n){var l=CD(e.refresh.bind(e),o);i.current=wD(function(){l();});}return function(){a();}},[n,o]),rl(function(){a();}),{}};const xD=$D;var ED=function(e,t){var n=t.retryInterval,r=t.retryCount,o=u.useRef(),i=u.useRef(0),a=u.useRef(!1);return r?{onBefore:function(){a.current||(i.current=0),a.current=!1,o.current&&clearTimeout(o.current);},onSuccess:function(){i.current=0;},onError:function(){if(i.current+=1,r===-1||i.current<=r){var l=n??Math.min(1e3*Math.pow(2,i.current),3e4);o.current=setTimeout(function(){a.current=!0,e.refresh();},l);}else i.current=0;},onCancel:function(){i.current=0,o.current&&clearTimeout(o.current);}}:{}};const ID=ED;var OD="Expected a function";function PD(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(OD);return Fn(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),qy(e,t,{leading:r,maxWait:t,trailing:o})}var MD=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,i=u.useRef(),a={};return r!==void 0&&(a.leading=r),o!==void 0&&(a.trailing=o),u.useEffect(function(){if(n){var l=e.runAsync.bind(e);return i.current=PD(function(s){s();},n,a),e.runAsync=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new Promise(function(d,f){var m;(m=i.current)===null||m===void 0||m.call(i,function(){l.apply(void 0,hn([],qt(s),!1)).then(d).catch(f);});})},function(){var s;e.runAsync=l,(s=i.current)===null||s===void 0||s.cancel();}}},[n,r,o]),n?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel();}}:{}};const _D=MD;var RD=function(e){u.useEffect(function(){e==null||e();},[]);};const Oc=RD;var TD=function(){var e=qt(u.useState({}),2),t=e[1];return u.useCallback(function(){return t({})},[])};const ND=TD;var kD=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=qn(qn(qn({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=qn(qn({},this.state),t),this.subscribe();},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.pluginImpls.map(function(i){var a;return (a=i[t])===null||a===void 0?void 0:a.call.apply(a,hn([i],qt(n),!1))}).filter(Boolean);return Object.assign.apply(Object,hn([{}],qt(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,i,a,l,s,c,d,f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];return XA(this,void 0,void 0,function(){var h,g,v,p,y,b,O,P,w,$,S;return YA(this,function(C){switch(C.label){case 0:if(this.count+=1,h=this.count,g=this.runPluginHandler("onBefore",f),v=g.stopNow,p=v===void 0?!1:v,y=g.returnNow,b=y===void 0?!1:y,O=Gy(g,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState(qn({loading:!0,params:f},O)),b)return [2,Promise.resolve(O.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,f),C.label=1;case 1:return C.trys.push([1,3,,4]),P=this.runPluginHandler("onRequest",this.serviceRef.current,f).servicePromise,P||(P=(S=this.serviceRef).current.apply(S,hn([],qt(f),!1))),[4,P];case 2:return w=C.sent(),h!==this.count?[2,new Promise(function(){})]:(this.setState({data:w,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,w,f),this.runPluginHandler("onSuccess",w,f),(a=(i=this.options).onFinally)===null||a===void 0||a.call(i,f,w,void 0),h===this.count&&this.runPluginHandler("onFinally",f,w,void 0),[2,w]);case 3:if($=C.sent(),h!==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,$,f),this.runPluginHandler("onError",$,f),(d=(c=this.options).onFinally)===null||d===void 0||d.call(c,f,void 0,$),h===this.count&&this.runPluginHandler("onFinally",f,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,hn([],qt(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,hn([],qt(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,hn([],qt(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=zi(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const LD=kD;function AD(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,i=Gy(t,["manual"]);var a=qn({manual:o},i),l=xi(e),s=ND(),c=Yy(function(){var d=n.map(function(f){var m;return (m=f==null?void 0:f.onInit)===null||m===void 0?void 0:m.call(f,a)}).filter(Boolean);return new LD(l,a,s,Object.assign.apply(Object,hn([{}],qt(d),!1)))},[]);return c.options=a,c.pluginImpls=n.map(function(d){return d(c,a)}),Oc(function(){if(!o){var d=c.state.params||t.defaultParams||[];c.run.apply(c,hn([],qt(d),!1));}}),rl(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:lt(c.cancel.bind(c)),refresh:lt(c.refresh.bind(c)),refreshAsync:lt(c.refreshAsync.bind(c)),run:lt(c.run.bind(c)),runAsync:lt(c.runAsync.bind(c)),mutate:lt(c.mutate.bind(c))}}function DD(e,t,n){return AD(e,t,hn(hn([],qt(n||[]),!1),[fD,hD,yD,xD,_D,QA,aD,ID],!1))}function Zy(e,t){e===void 0&&(e=!1);var n=qt(u.useState(e),2),r=n[0],o=n[1],i=u.useMemo(function(){var a=t===void 0?!e:t,l=function(){return o(function(f){return f===e?a:e})},s=function(f){return o(f)},c=function(){return o(e)},d=function(){return o(a)};return {toggle:l,set:s,setLeft:c,setRight:d}},[]);return [r,i]}function zD(e){e===void 0&&(e=!1);var t=qt(Zy(!!e),2),n=t[0],r=t[1],o=r.toggle,i=r.set,a=u.useMemo(function(){var l=function(){return i(!0)},s=function(){return i(!1)};return {toggle:o,set:function(c){return i(!!c)},setTrue:l,setFalse:s}},[]);return [n,a]}function Pc(e,t){if(ol){if(!e)return t;var n;return zi(e)?n=e():"current"in e?n=e.current:n=e,n}}var jD=function(e){var t=function(n,r,o){var i=u.useRef(!1),a=u.useRef([]),l=u.useRef([]),s=u.useRef();e(function(){var c,d=Array.isArray(o)?o:[o],f=d.map(function(m){return Pc(m)});if(!i.current){i.current=!0,a.current=f,l.current=r,s.current=n();return}(f.length!==a.current.length||!_d(f,a.current)||!_d(r,l.current))&&((c=s.current)===null||c===void 0||c.call(s),a.current=f,l.current=r,s.current=n());}),rl(function(){var c;(c=s.current)===null||c===void 0||c.call(s),i.current=!1;});};return t};const BD=jD;var HD=BD(u.useEffect);const Qy=HD;var FD="__lodash_hash_undefined__";function WD(e){return this.__data__.set(e,FD),this}function VD(e){return this.__data__.has(e)}function Ra(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new zr;++t<n;)this.add(e[t]);}Ra.prototype.add=Ra.prototype.push=WD;Ra.prototype.has=VD;function KD(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return !0;return !1}function Jy(e,t){return e.has(t)}var GD=1,UD=2;function eC(e,t,n,r,o,i){var a=n&GD,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return !1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,m=!0,h=n&UD?new Ra:void 0;for(i.set(e,t),i.set(t,e);++f<l;){var g=e[f],v=t[f];if(r)var p=a?r(v,g,f,t,e,i):r(g,v,f,e,t,i);if(p!==void 0){if(p)continue;m=!1;break}if(h){if(!KD(t,function(y,b){if(!Jy(h,b)&&(g===y||o(g,y,n,r,i)))return h.push(b)})){m=!1;break}}else if(!(g===v||o(g,v,n,r,i))){m=!1;break}}return i.delete(e),i.delete(t),m}function XD(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}function Mm(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var YD=1,qD=2,ZD="[object Boolean]",QD="[object Date]",JD="[object Error]",e5="[object Map]",t5="[object Number]",n5="[object RegExp]",r5="[object Set]",o5="[object String]",i5="[object Symbol]",a5="[object ArrayBuffer]",l5="[object DataView]",iv=Hn?Hn.prototype:void 0,Ou=iv?iv.valueOf:void 0;function s5(e,t,n,r,o,i,a){switch(n){case l5:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case a5:return !(e.byteLength!=t.byteLength||!i(new es(e),new es(t)));case ZD:case QD:case t5:return df(+e,+t);case JD:return e.name==t.name&&e.message==t.message;case n5:case o5:return e==t+"";case e5:var l=XD;case r5:var s=r&YD;if(l||(l=Mm),e.size!=t.size&&!s)return !1;var c=a.get(e);if(c)return c==t;r|=qD,a.set(e,t);var d=eC(l(e),l(t),r,o,i,a);return a.delete(e),d;case i5:if(Ou)return Ou.call(e)==Ou.call(t)}return !1}var c5=1,u5=Object.prototype,d5=u5.hasOwnProperty;function f5(e,t,n,r,o,i){var a=n&c5,l=Bu(e),s=l.length,c=Bu(t),d=c.length;if(s!=d&&!a)return !1;for(var f=s;f--;){var m=l[f];if(!(a?m in t:d5.call(t,m)))return !1}var h=i.get(e),g=i.get(t);if(h&&g)return h==t&&g==e;var v=!0;i.set(e,t),i.set(t,e);for(var p=a;++f<s;){m=l[f];var y=e[m],b=t[m];if(r)var O=a?r(b,y,m,t,e,i):r(y,b,m,e,t,i);if(!(O===void 0?y===b||o(y,b,n,r,i):O)){v=!1;break}p||(p=m=="constructor");}if(v&&!p){var P=e.constructor,w=t.constructor;P!=w&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof w=="function"&&w instanceof w)&&(v=!1);}return i.delete(e),i.delete(t),v}var m5=1,av="[object Arguments]",lv="[object Array]",El="[object Object]",h5=Object.prototype,sv=h5.hasOwnProperty;function g5(e,t,n,r,o,i){var a=Wn(e),l=Wn(t),s=a?lv:xa(e),c=l?lv:xa(t);s=s==av?El:s,c=c==av?El:c;var d=s==El,f=c==El,m=s==c;if(m&&Jl(e)){if(!Jl(t))return !1;a=!0,d=!1;}if(m&&!d)return i||(i=new fr),a||Tp(e)?eC(e,t,n,r,o,i):s5(e,t,s,n,r,o,i);if(!(n&m5)){var h=d&&sv.call(e,"__wrapped__"),g=f&&sv.call(t,"__wrapped__");if(h||g){var v=h?e.value():e,p=g?t.value():t;return i||(i=new fr),o(v,p,n,r,i)}}return m?(i||(i=new fr),f5(e,t,n,r,o,i)):!1}function Mc(e,t,n,r,o){return e===t?!0:e==null||t==null||!_r(e)&&!_r(t)?e!==e&&t!==t:g5(e,t,n,r,Mc,o)}function v5(e,t){return Mc(e,t)}var p5=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),v5(e,t)};function Yr(e,t,n){n===void 0&&(n={});var r=xi(t);Qy(function(){var o=Pc(n.target,window);if(o!=null&&o.addEventListener){var i=function(a){return r.current(a)};return o.addEventListener(e,i,{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,i,{capture:n.capture});}}},[e,n.capture,n.once,n.passive],n.target);}function tC(e){var t=qt(u.useState(e),2),n=t[0],r=t[1],o=u.useRef(n);o.current=n;var i=u.useCallback(function(){return o.current},[]);return [n,r,i]}const Pu=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,i=n.onChange,a=qt(zD(!1),2),l=a[0],s=a[1],c=s.setTrue,d=s.setFalse;return Yr("mouseenter",function(){r==null||r(),c(),i==null||i(!0);},{target:e}),Yr("mouseleave",function(){o==null||o(),d(),i==null||i(!1);},{target:e}),l};var b5=function(e,t,n){var r=u.useRef(),o=u.useRef(0);p5(t,r.current)||(r.current=t,o.current+=1),Qy(e,[o.current],n);};const y5=b5;var C5=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const S5=C5;var nC={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:S5?[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},Rd={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"?nC.meta.includes(e.keyCode):e.metaKey}};function w5(e){var t=Object.keys(Rd).reduce(function(n,r){return Rd[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function cv(e,t,n){var r,o;if(!e.key)return !1;if(Uy(t))return e.keyCode===t;var i=t.split("."),a=0;try{for(var l=Md(i),s=l.next();!s.done;s=l.next()){var c=s.value,d=Rd[c],f=nC[c.toLowerCase()];(d&&d(e)||f&&f===e.keyCode)&&a++;}}catch(m){r={error:m};}finally{try{s&&!s.done&&(o=l.return)&&o.call(l);}finally{if(r)throw r.error}}return n?a===i.length&&w5(e)===i.length:a===i.length}function $5(e,t){return zi(e)?e:qA(e)||Uy(e)?function(n){return cv(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return cv(n,r,t)})}:function(){return !!e}}var x5=["keydown"];function Qt(e,t,n){var r=n||{},o=r.events,i=o===void 0?x5:o,a=r.target,l=r.exactMatch,s=l===void 0?!1:l,c=r.useCapture,d=c===void 0?!1:c,f=xi(t),m=xi(e);y5(function(){var h,g,v,p=Pc(a,window);if(p){var y=function(w){var $,S=$5(m.current,s);if(S(w))return ($=f.current)===null||$===void 0?void 0:$.call(f,w)};try{for(var b=Md(i),O=b.next();!O.done;O=b.next()){var P=O.value;(v=p==null?void 0:p.addEventListener)===null||v===void 0||v.call(p,P,y,d);}}catch(w){h={error:w};}finally{try{O&&!O.done&&(g=b.return)&&g.call(b);}finally{if(h)throw h.error}}return function(){var w,$,S;try{for(var C=Md(i),I=C.next();!I.done;I=C.next()){var M=I.value;(S=p==null?void 0:p.removeEventListener)===null||S===void 0||S.call(p,M,y,d);}}catch(L){w={error:L};}finally{try{I&&!I.done&&($=C.return)&&$.call(C);}finally{if(w)throw w.error}}}}},[i],a);}function rC(e){var t=u.useRef(0),n=qt(u.useState(e),2),r=n[0],o=n[1],i=u.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(a);});},[]);return rl(function(){cancelAnimationFrame(t.current);}),[r,i]}var E5={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 I5=function(e){var t=qt(rC(E5),2),n=t[0],r=t[1];return Yr("mousemove",function(o){var i=o.screenX,a=o.screenY,l=o.clientX,s=o.clientY,c=o.pageX,d=o.pageY,f={screenX:i,screenY:a,clientX:l,clientY:s,pageX:c,pageY:d,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},m=Pc(e);if(m){var h=m.getBoundingClientRect(),g=h.left,v=h.top,p=h.width,y=h.height;f.elementPosX=g+window.pageXOffset,f.elementPosY=v+window.pageYOffset,f.elementX=c-f.elementPosX,f.elementY=d-f.elementPosY,f.elementW=p,f.elementH=y;}r(f);},{target:function(){return document}}),n};var O5=function(){var e=u.useRef(!1);return u.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const P5=O5,M5=Ky(u.useLayoutEffect),_5="_modal-mask_1j5wc_1",R5="_modal_1j5wc_1",T5="_modal-header_1j5wc_23",N5="_modal-body_1j5wc_30",k5="_modal-title_1j5wc_35",L5="_btn-close_1j5wc_42",hr={modalMask:_5,modal:R5,modalHeader:T5,modalBody:N5,modalTitle:k5,btnClose:L5};let na=0;const A5=()=>{na++,document.body.style.overflow="hidden";},D5=()=>{na--,na<0&&(na=0),na===0&&(document.body.style.overflow="");};function _m({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:i,clsModal:a,width:l,hideWhenMaskOnClick:s=!1,hideWhenEsc:c=!1}){u.useLayoutEffect(()=>{e?A5():D5();},[e]);const d=u.useRef(null),f=$m(),{bg:m,c:h}=u.useMemo(()=>{const b=window.getComputedStyle(document.body).backgroundColor,O=window.getComputedStyle(document.body).color;return {bg:b,c:O}},[f]),g=u.useMemo(()=>f?{"--bg":m,"--c":h,backgroundColor:m,color:h}:{},[m,h,f]),v=u.useId(),p=u.useMemo(()=>{const b=document.createElement("div");return b.setAttribute("data-id","base-modal-"+v),document.body.appendChild(b),b},[]),y=lt(b=>{var P;const O=b.target;(P=d.current)!=null&&P.contains(O)||O.closest('.ant-tooltip-inner[role="tooltip"]')||O.closest('.ant-popover-inner[role="tooltip"]')||s&&t();});return Qt("esc",b=>{e&&c&&(b.preventDefault(),b.stopImmediatePropagation(),setTimeout(t));}),e?Qv.createPortal(D("div",{className:W(hr.modalMask,o),style:r,onClick:y,children:D("div",{className:W(hr.modal,a),style:{...g,width:l,...i},ref:d,children:n})}),p):null}const Rm=e=>D(Dt,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});function Tm(e){const t=Jn({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(Jn(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 z5(e){const t=Jn({data:Array.from(e||[]),has(n){return this.data.some(r=>r[0]===n)},set(n,r){const o=this.data.find(i=>i[0]===n);return o?o[1]=r:this.data.push([n,r]),this},get(n){var r;return (r=this.data.find(o=>o[0]===n))==null?void 0:r[1]},delete(n){const r=this.data.findIndex(o=>o[0]===n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(n){this.data.forEach(r=>{n(r[1],r[0],this);});},keys(){return this.data.map(n=>n[0]).values()},values(){return this.data.map(n=>n[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return "Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}class j5 extends Map{constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof t.maxAge=="number"&&t.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=t.maxSize,this.maxAge=t.maxAge||Number.POSITIVE_INFINITY,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0;}_emitEvictions(t){if(typeof this.onEviction=="function")for(const[n,r]of t)this.onEviction(n,r.value);}_deleteIfExpired(t,n){return typeof n.expiry=="number"&&n.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(t,n.value),this.delete(t)):!1}_getOrDeleteIfExpired(t,n){if(this._deleteIfExpired(t,n)===!1)return n.value}_getItemValue(t,n){return n.expiry?this._getOrDeleteIfExpired(t,n):n.value}_peek(t,n){const r=n.get(t);return this._getItemValue(t,r)}_set(t,n){this.cache.set(t,n),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map);}_moveToRecent(t,n){this.oldCache.delete(t),this._set(t,n);}*_entriesAscending(){for(const t of this.oldCache){const[n,r]=t;this.cache.has(n)||this._deleteIfExpired(n,r)===!1&&(yield t);}for(const t of this.cache){const[n,r]=t;this._deleteIfExpired(n,r)===!1&&(yield t);}}get(t){if(this.cache.has(t)){const n=this.cache.get(t);return this._getItemValue(t,n)}if(this.oldCache.has(t)){const n=this.oldCache.get(t);if(this._deleteIfExpired(t,n)===!1)return this._moveToRecent(t,n),n.value}}set(t,n,{maxAge:r=this.maxAge}={}){const o=typeof r=="number"&&r!==Number.POSITIVE_INFINITY?Date.now()+r:void 0;this.cache.has(t)?this.cache.set(t,{value:n,expiry:o}):this._set(t,{value:n,expiry:o});}has(t){return this.cache.has(t)?!this._deleteIfExpired(t,this.cache.get(t)):this.oldCache.has(t)?!this._deleteIfExpired(t,this.oldCache.get(t)):!1}peek(t){if(this.cache.has(t))return this._peek(t,this.cache);if(this.oldCache.has(t))return this._peek(t,this.oldCache)}delete(t){const n=this.cache.delete(t);return n&&this._size--,this.oldCache.delete(t)||n}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0;}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");const n=[...this._entriesAscending()],r=n.length-t;r<0?(this.cache=new Map(n),this.oldCache=new Map,this._size=n.length):(r>0&&this._emitEvictions(n.slice(0,r)),this.oldCache=new Map(n.slice(r)),this.cache=new Map,this._size=0),this.maxSize=t;}*keys(){for(const[t]of this)yield t;}*values(){for(const[,t]of this)yield t;}*[Symbol.iterator](){for(const t of this.cache){const[n,r]=t;this._deleteIfExpired(n,r)===!1&&(yield [n,r.value]);}for(const t of this.oldCache){const[n,r]=t;this.cache.has(n)||this._deleteIfExpired(n,r)===!1&&(yield [n,r.value]);}}*entriesDescending(){let t=[...this.cache];for(let n=t.length-1;n>=0;--n){const r=t[n],[o,i]=r;this._deleteIfExpired(o,i)===!1&&(yield [o,i.value]);}t=[...this.oldCache];for(let n=t.length-1;n>=0;--n){const r=t[n],[o,i]=r;this.cache.has(o)||this._deleteIfExpired(o,i)===!1&&(yield [o,i.value]);}}*entriesAscending(){for(const[t,n]of this._entriesAscending())yield [t,n.value];}get size(){if(!this._size)return this.oldCache.size;let t=0;for(const n of this.oldCache.keys())this.cache.has(n)||t++;return Math.min(this._size+t,this.maxSize)}entries(){return this.entriesAscending()}forEach(t,n=this){for(const[r,o]of this.entriesAscending())t.call(n,o,r,this);}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}async function B5(e){return (await wn.get("/pvideo",{params:{aid:e}})).data.data}async function H5(e){return []}const Mu=new j5({maxSize:1e3});async function F5(e){if(Mu.has(e))return Mu.get(e);const[t,n]=await Promise.all([B5(e),H5()]);return Mu.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function oC(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:tl()}),i=(await wn.post("/x/v2/history/toview/"+e,r)).data,a=ko(i);return a||Ct((i==null?void 0:i.message)||"出错了"),a}}const Il=oC("add"),uv=oC("del"),iC=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const i=(await Sc.get(zy+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return ko(i)}},W5=iC("dislike"),V5=iC("cancel"),K5="_modal_1rloz_1",G5="_title-desc_1rloz_4",U5="_reason-list_1rloz_8",X5="_reason_1rloz_8",Y5="_active_1rloz_29",q5="_reason-no_1rloz_33",Z5="_tips-container_1rloz_47",Q5="_tips_1rloz_47",jn={modal:K5,titleDesc:G5,reasonList:U5,reason:X5,active:Y5,reasonNo:q5,tipsContainer:Z5,tips:Q5},_c=z5();function J5(){return nr(_c)}function ez(e){const t=J5();if(e)return t.get(e)}function tz({show:e,onHide:t,item:n}){const[r,o]=u.useState(!1),i=lt(async h=>{if(!n)return;let g=!1,v;try{o(!0),g=await W5(n,h.id);}catch(p){v=p;}finally{o(!1);}if(v)return console.error(v.stack||v),Ly();g?Ct("已标记不想看"):Ay(),g&&(_c.set(n.param,{...h}),t());}),a=u.useMemo(()=>{var h;return ((h=n==null?void 0:n.three_point)==null?void 0:h.dislike_reasons)||[]},[n]),l=()=>!!e&&!!n,s=["1","2","3","4","5","6"];Qt(s,h=>{if(!l()||!s.includes(h.key))return;const g=Number(h.key)-1;d(g);const v=document.querySelectorAll(`.${jn.reason}`)[g]||null;v==null||v.click();});const[c,d]=u.useState(a.length-1);M5(()=>{d(a.length-1);},[a]);const f=h=>()=>{if(!l())return;const g=c+h;g<0||g>a.length-1||d(g);};Qt("leftarrow",f(-1)),Qt("rightarrow",f(1)),Qt("uparrow",f(-2)),Qt("downarrow",f(2)),Qt("enter",h=>{var g;l()&&(c<0||c>a.length-1||(h.preventDefault(),h.stopImmediatePropagation(),(g=document.querySelector(`.${jn.reason}.${jn.active}`))==null||g.click()));});const m=u.useMemo(()=>{var h;return ((h=a[c])==null?void 0:h.name)||""},[a,c]);return pe(_m,{show:e,onHide:t,clsModal:jn.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[pe("div",{className:hr.modalHeader,children:[pe("div",{className:hr.modalTitle,children:["我不想看",D("span",{className:jn.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),D("div",{className:"space",style:{flex:1}}),D(Rm,{onClick:t})]}),pe("div",{className:hr.modalBody,children:[D("div",{className:jn.reasonList,children:a.map((h,g)=>pe("button",{className:W(jn.reason,{[jn.active]:g===c}),style:{...g===c&&{borderColor:kr}},"data-id":h.id,onClick:()=>{d(g),i(h);},disabled:r,children:[D("span",{className:jn.reasonNo,style:{backgroundColor:kr},children:g+1}),h.name]},h.id))}),pe("div",{className:jn.tipsContainer,children:[pe("div",{className:jn.tips,children:[D(Dt,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),m&&pe("div",{className:jn.tips,children:[D(Dt,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",m,"」, 回车键提交"]})]})]})]})}const Kl={show:!1,onHide:lC,item:null},aC=Jn({value:Kl.show}),nz=function(){return nr(aC).value};function lC(){setTimeout(()=>{sC({show:!1,item:null});});}function sC(e){Object.assign(Kl,e),aC.value=Kl.show,rz().render(D(tz,{...Kl,onHide:lC}));}let _u;function rz(){if(!_u){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),_u=Ec(e);}return _u}function oz(e){e!=null&&e.param&&_c.has(e.param)||sC({show:!0,item:e});}const cC=u__namespace.createContext(null),iz=cC.Provider,uC=u__namespace.createContext(null),az=uC.Provider,lz=new _t("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),sz=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},kt(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"}})}},cz=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:l,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:d,lineWidth:f,dotSize:m,colorBgContainerDisabled:h,colorTextDisabled:g,paddingXS:v,dotColorDisabled:p,lineType:y,radioDotDisabledSize:b,wireframe:O,colorWhite:P}=e,w=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},kt(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${f}px ${y} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:lz,animationDuration:i,animationTimingFunction:l,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},kt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,
&:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:Object.assign({},Eo(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:O?r:P,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:c,borderColor:d,borderStyle:"solid",borderWidth:f,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:O?c:r,"&::after":{transform:`scale(${m/o})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:h,borderColor:d,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},uz=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:c,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:h,controlHeightSM:g,paddingXS:v,borderRadius:p,borderRadiusSM:y,borderRadiusLG:b,buttonCheckedBg:O,buttonSolidCheckedColor:P,colorTextDisabled:w,colorBgContainerDisabled:$,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:C,colorPrimary:I,colorPrimaryHover:M,colorPrimaryActive:L}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:d,lineHeight:`${n-o*2}px`,background:f,border:`${o}px ${i} ${a}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${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:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${i} ${a}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${r}-group-large &`]:{height:h,fontSize:m,lineHeight:`${h-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:g,paddingInline:v-o,paddingBlock:0,lineHeight:`${g-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:I},"&:has(:focus-visible)":Object.assign({},Eo(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:I,background:O,borderColor:I,"&::before":{backgroundColor:I},"&:first-child":{borderColor:I},"&:hover":{color:M,borderColor:M,"&::before":{backgroundColor:M}},"&:active":{color:L,borderColor:L,"&::before":{backgroundColor:L}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:P,background:I,borderColor:I,"&:hover":{color:P,background:M,borderColor:M},"&:active":{color:P,background:L,borderColor:L}},"&-disabled":{color:w,backgroundColor:$,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:$,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:S,borderColor:a,boxShadow:"none"}}}},dv=e=>e-4*2,dC=Ut("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,i=o,a=dv(r),l=mt(e,{radioDotDisabledSize:a,radioFocusShadow:o,radioButtonFocusShadow:i});return [sz(l),cz(l),uz(l)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:d}=e,f=4,m=i,h=t?dv(m):m-(f+o)*2;return {radioSize:m,dotSize:h,dotColorDisabled:s,buttonSolidCheckedColor:d,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var dz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const fz=(e,t)=>{var n,r;const o=u__namespace.useContext(cC),i=u__namespace.useContext(uC),{getPrefixCls:a,direction:l,radio:s}=u__namespace.useContext(ot),c=u__namespace.useRef(null),d=Sn(t,c),{isFormItemInput:f}=u__namespace.useContext(Vn),m=M=>{var L,_;(L=e.onChange)===null||L===void 0||L.call(e,M),(_=o==null?void 0:o.onChange)===null||_===void 0||_.call(o,M);},{prefixCls:h,className:g,rootClassName:v,children:p,style:y}=e,b=dz(e,["prefixCls","className","rootClassName","children","style"]),O=a("radio",h),P=((o==null?void 0:o.optionType)||i)==="button"?`${O}-button`:O,[w,$]=dC(O),S=Object.assign({},b),C=u__namespace.useContext(br);o&&(S.name=o.name,S.onChange=m,S.checked=e.value===o.value,S.disabled=(n=S.disabled)!==null&&n!==void 0?n:o.disabled),S.disabled=(r=S.disabled)!==null&&r!==void 0?r:C;const I=W(`${P}-wrapper`,{[`${P}-wrapper-checked`]:S.checked,[`${P}-wrapper-disabled`]:S.disabled,[`${P}-wrapper-rtl`]:l==="rtl",[`${P}-wrapper-in-form-item`]:f},s==null?void 0:s.className,g,v,$);return w(u__namespace.createElement("label",{className:I,style:Object.assign(Object.assign({},s==null?void 0:s.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},u__namespace.createElement(cy,Object.assign({},S,{type:"radio",prefixCls:P,ref:d})),p!==void 0?u__namespace.createElement("span",null,p):null))},mz=u__namespace.forwardRef(fz),ws=mz,hz=u__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u__namespace.useContext(ot),[o,i]=zt(e.defaultValue,{value:e.value}),a=_=>{const E=o,x=_.target.value;"value"in e||i(x);const{onChange:R}=e;R&&x!==E&&R(_);},{prefixCls:l,className:s,rootClassName:c,options:d,buttonStyle:f="outline",disabled:m,children:h,size:g,style:v,id:p,onMouseEnter:y,onMouseLeave:b,onFocus:O,onBlur:P}=e,w=n("radio",l),$=`${w}-group`,[S,C]=dC(w);let I=h;d&&d.length>0&&(I=d.map(_=>typeof _=="string"||typeof _=="number"?u__namespace.createElement(ws,{key:_.toString(),prefixCls:w,disabled:m,value:_,checked:o===_},_):u__namespace.createElement(ws,{key:`radio-group-value-options-${_.value}`,prefixCls:w,disabled:_.disabled||m,value:_.value,checked:o===_.value,title:_.title,style:_.style},_.label)));const M=kn(g),L=W($,`${$}-${f}`,{[`${$}-${M}`]:M,[`${$}-rtl`]:r==="rtl"},s,c,C);return S(u__namespace.createElement("div",Object.assign({},Ci(e,{aria:!0,data:!0}),{className:L,style:v,onMouseEnter:y,onMouseLeave:b,onFocus:O,onBlur:P,id:p,ref:t}),u__namespace.createElement(iz,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},I)))}),gz=u__namespace.memo(hz);var vz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const pz=(e,t)=>{const{getPrefixCls:n}=u__namespace.useContext(ot),{prefixCls:r}=e,o=vz(e,["prefixCls"]),i=n("radio",r);return u__namespace.createElement(az,{value:"button"},u__namespace.createElement(ws,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},bz=u__namespace.forwardRef(pz),Rc=ws;Rc.Button=bz;Rc.Group=gz;Rc.__ANT_RADIO=!0;const fv=Rc;function yz(e,t){const n=Object.keys(e),r=Ef(JSON.parse(localStorage.getItem(t)||"{}"),n),o=Jn({...e,...r});return wm(o,()=>{const i=ps(o);localStorage.setItem(t,JSON.stringify(i));}),o}const Cz=`${nn}-video-source-tab`,Nm=yz({value:"recommend-app"},Cz),mv={name:"qamjgr",styles:"margin-right:4px"},$s=[{key:"recommend-app",icon:"Iphone",label:"推荐",desc:"使用手机 APP 端推荐 API"},{key:"recommend-pc",icon:"Computer",label:"推荐",desc:"使用新版首页顶部推荐 API"},{key:"onlyFollow",icon:"Concern",label:"已关注",desc:"推荐中只保留「已关注」,会很慢"},{key:"dynamic",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:"你添加的收藏, 默认随机乱序, 可在设置-高级设置中关闭乱序",reuseable:!1}],hv=$s.reduce((e,t)=>({...e,[t.key]:t}),{}),Sz=$s.map(e=>e.key);function fC(e,t){return Sz.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function il(){return fC(nr(Nm).value,jy())}function wz(){return fC(Nm.value,nl())}function $z(){return Ct("你需要登录B站后使用该功能! 如已完成登录, 请刷新网页重试~")}const xz={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},Ez={name:"s0vnfv",styles:"height:32px"};var Iz={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},Oz={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function mC({onRefresh:e}){const t=jy(),n=il(),{styleUseStandardVideoSourceTab:r}=In();return pe(Et,{children:[D(fv.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:n,style:{overflow:"hidden"},onFocus:o=>{o.target.blur();},onChange:o=>{const i=o.target.value;if(i!=="recommend-app"&&i!=="recommend-pc"&&!t&&!xA())return $z();Nm.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:$s.map(({key:o,label:i,icon:a,iconProps:l})=>D(fv.Button,{css:[xz,r&&Ez,"",""],className:"video-source-tab",tabIndex:-1,value:o,children:pe("span",{css:Oz,children:[D(Dt,{name:a,...l,size:(l==null?void 0:l.size)||18,css:mv}),i]})},o))}),D(bs,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:D(Et,{children:$s.map(({key:o,label:i,icon:a,iconProps:l,desc:s})=>pe("div",{css:Iz,children:[D(Dt,{name:a,...l,size:(l==null?void 0:l.size)||18,css:mv}),i,": ",s]},o))})})]})}var Pz=ie.ESC,Mz=ie.TAB;function _z(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=u__namespace.useRef(!1),l=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1);}},s=function(){var f;return (f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(f){switch(f.keyCode){case Pz:l();break;case Mz:{var m=!1;a.current||(m=s()),m?f.preventDefault():l();break}}};u__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&It(s,3),function(){window.removeEventListener("keydown",c),a.current=!1;}):function(){a.current=!1;}},[t]);}var Rz=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=u.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=Sn(t,i==null?void 0:i.ref);return u.createElement(u.Fragment,null,r&&u.createElement("div",{className:"".concat(o,"-arrow")}),u.cloneElement(i,{ref:No(i)?a:void 0}))}),Xo={adjustX:1,adjustY:1},Yo=[0,0],Tz={topLeft:{points:["bl","tl"],overflow:Xo,offset:[0,-4],targetOffset:Yo},top:{points:["bc","tc"],overflow:Xo,offset:[0,-4],targetOffset:Yo},topRight:{points:["br","tr"],overflow:Xo,offset:[0,-4],targetOffset:Yo},bottomLeft:{points:["tl","bl"],overflow:Xo,offset:[0,4],targetOffset:Yo},bottom:{points:["tc","bc"],overflow:Xo,offset:[0,4],targetOffset:Yo},bottomRight:{points:["tr","br"],overflow:Xo,offset:[0,4],targetOffset:Yo}},Nz=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function kz(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,l=e.transitionName,s=e.animation,c=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,h=m===void 0?Tz:m,g=e.getPopupContainer,v=e.showAction,p=e.hideAction,y=e.overlayClassName,b=e.overlayStyle,O=e.visible,P=e.trigger,w=P===void 0?["hover"]:P,$=e.autoFocus,S=e.overlay,C=e.children,I=e.onVisibleChange,M=Qe(e,Nz),L=u.useState(),_=G(L,2),E=_[0],x=_[1],R="visible"in e?O:E,k=u.useRef(null),T=u.useRef(null),A=u.useRef(null);u.useImperativeHandle(t,function(){return k.current});var z=function(K){x(K),I==null||I(K);};_z({visible:R,triggerRef:A,onVisibleChange:z,autoFocus:$,overlayRef:T});var F=function(K){var Y=e.onOverlayClick;x(!1),Y&&Y(K);},V=function(){return u.createElement(Rz,{ref:T,overlay:S,prefixCls:a,arrow:o})},j=function(){return typeof S=="function"?V:V()},H=function(){var K=e.minOverlayWidthMatchTrigger,Y=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?K:!Y},B=function(){var K=e.openClassName;return K!==void 0?K:"".concat(a,"-open")},X=u.cloneElement(C,{className:W((n=C.props)===null||n===void 0?void 0:n.className,R&&B()),ref:No(C)?Sn(A,C.ref):void 0}),J=p;return !J&&w.indexOf("contextMenu")!==-1&&(J=["click"]),u.createElement(ac,Ce({builtinPlacements:h},M,{prefixCls:a,ref:k,popupClassName:W(y,U({},"".concat(a,"-show-arrow"),o)),popupStyle:b,action:w,showAction:v,hideAction:J,popupPlacement:f,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:R,stretch:H()?"minWidth":"",popup:j(),onPopupVisibleChange:z,onPopupClick:F,getPopupContainer:g}),X)}const hC=u.forwardRef(kz);var gC=u__namespace.createContext(null);function km(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function vC(e){var t=u__namespace.useContext(gC);return km(t,e)}var Lz=["children","locked"],er=u__namespace.createContext(null);function Az(e,t){var n=Z({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function Ta(e){var t=e.children,n=e.locked,r=Qe(e,Lz),o=u__namespace.useContext(er),i=Ha(function(){return Az(o,r)},[o,r],function(a,l){return !n&&(a[0]!==l[0]||!ec(a[1],l[1],!0))});return u__namespace.createElement(er.Provider,{value:i},t)}var Dz=[],pC=u__namespace.createContext(null);function Tc(){return u__namespace.useContext(pC)}var bC=u__namespace.createContext(Dz);function ji(e){var t=u__namespace.useContext(bC);return u__namespace.useMemo(function(){return e!==void 0?[].concat(Ge(t),[e]):t},[t,e])}var yC=u__namespace.createContext(null),Lm=u__namespace.createContext({});function gv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(zf(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return !1}function zz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ge(e.querySelectorAll("*")).filter(function(r){return gv(r,t)});return gv(e,t)&&n.unshift(e),n}var Td=ie.LEFT,Nd=ie.RIGHT,kd=ie.UP,Gl=ie.DOWN,Ul=ie.ENTER,CC=ie.ESC,qi=ie.HOME,Zi=ie.END,vv=[kd,Gl,Td,Nd];function jz(e,t,n,r){var o,i,a,l,s="prev",c="next",d="children",f="parent";if(e==="inline"&&r===Ul)return {inlineTrigger:!0};var m=(o={},U(o,kd,s),U(o,Gl,c),o),h=(i={},U(i,Td,n?c:s),U(i,Nd,n?s:c),U(i,Gl,d),U(i,Ul,d),i),g=(a={},U(a,kd,s),U(a,Gl,c),U(a,Ul,d),U(a,CC,f),U(a,Td,n?d:f),U(a,Nd,n?f:d),a),v={inline:m,horizontal:h,vertical:g,inlineSub:m,horizontalSub:g,verticalSub:g},p=(l=v["".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 f:return {offset:-1,sibling:!1};case d:return {offset:1,sibling:!1};default:return null}}function Bz(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function Hz(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function SC(e,t){var n=zz(e,!0);return n.filter(function(r){return t.has(r)})}function pv(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=SC(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}function Fz(e,t,n,r,o,i,a,l,s,c){var d=u__namespace.useRef(),f=u__namespace.useRef();f.current=t;var m=function(){It.cancel(d.current);};return u__namespace.useEffect(function(){return function(){m();}},[]),function(h){var g=h.which;if([].concat(vv,[Ul,CC,qi,Zi]).includes(g)){var v,p,y,b=function(){v=new Set,p=new Map,y=new Map;var R=i();return R.forEach(function(k){var T=document.querySelector("[data-menu-id='".concat(km(r,k),"']"));T&&(v.add(T),y.set(T,k),p.set(k,T));}),v};b();var O=p.get(t),P=Hz(O,v),w=y.get(P),$=jz(e,a(w,!0).length===1,n,g);if(!$&&g!==qi&&g!==Zi)return;(vv.includes(g)||[qi,Zi].includes(g))&&h.preventDefault();var S=function(R){if(R){var k=R,T=R.querySelector("a");T!=null&&T.getAttribute("href")&&(k=T);var A=y.get(R);l(A),m(),d.current=It(function(){f.current===A&&k.focus();});}};if([qi,Zi].includes(g)||$.sibling||!P){var C;!P||e==="inline"?C=o.current:C=Bz(P);var I,M=SC(C,v);g===qi?I=M[0]:g===Zi?I=M[M.length-1]:I=pv(C,v,P,$.offset),S(I);}else if($.inlineTrigger)s(w);else if($.offset>0)s(w,!0),m(),d.current=It(function(){b();var x=P.getAttribute("aria-controls"),R=document.getElementById(x),k=pv(R,v);S(k);},5);else if($.offset<0){var L=a(w,!0),_=L[L.length-2],E=p.get(_);s(_,!1),S(E);}}c==null||c(h);}}function Wz(e){Promise.resolve().then(e);}var Am="__RC_UTIL_PATH_SPLIT__",bv=function(t){return t.join(Am)},Vz=function(t){return t.split(Am)},Ld="rc-menu-more";function Kz(){var e=u__namespace.useState({}),t=G(e,2),n=t[1],r=u.useRef(new Map),o=u.useRef(new Map),i=u__namespace.useState([]),a=G(i,2),l=a[0],s=a[1],c=u.useRef(0),d=u.useRef(!1),f=function(){d.current||n({});},m=u.useCallback(function(O,P){var w=bv(P);o.current.set(w,O),r.current.set(O,w),c.current+=1;var $=c.current;Wz(function(){$===c.current&&f();});},[]),h=u.useCallback(function(O,P){var w=bv(P);o.current.delete(w),r.current.delete(O);},[]),g=u.useCallback(function(O){s(O);},[]),v=u.useCallback(function(O,P){var w=r.current.get(O)||"",$=Vz(w);return P&&l.includes($[0])&&$.unshift(Ld),$},[l]),p=u.useCallback(function(O,P){return O.some(function(w){var $=v(w,!0);return $.includes(P)})},[v]),y=function(){var P=Ge(r.current.keys());return l.length&&P.push(Ld),P},b=u.useCallback(function(O){var P="".concat(r.current.get(O)).concat(Am),w=new Set;return Ge(o.current.keys()).forEach(function($){$.startsWith(P)&&w.add(o.current.get($));}),w},[]);return u__namespace.useEffect(function(){return function(){d.current=!0;}},[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:g,isSubPathKey:p,getKeyPath:v,getKeys:y,getSubPathKeys:b}}function ra(e){var t=u__namespace.useRef(e);t.current=e;var n=u__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var Gz=Math.random().toFixed(5).toString().slice(2),yv=0;function Uz(e){var t=zt(e,{value:e}),n=G(t,2),r=n[0],o=n[1];return u__namespace.useEffect(function(){yv+=1;var i="".concat(Gz,"-").concat(yv);o("rc-menu-uuid-".concat(i));},[]),r}function wC(e,t,n,r){var o=u__namespace.useContext(er),i=o.activeKey,a=o.onActive,l=o.onInactive,s={active:i===e};return t||(s.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e);},s.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),l(e);}),s}function $C(e){var t=u__namespace.useContext(er),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function xC(e){var t=e.icon,n=e.props,r=e.children,o;return typeof t=="function"?o=u__namespace.createElement(t,Z({},n)):o=t,o||r||null}var Xz=["item"];function xs(e){var t=e.item,n=Qe(e,Xz);return Object.defineProperty(n,"item",{get:function(){return pr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Yz=["title","attribute","elementRef"],qz=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Zz=["active"],Qz=function(e){to(n,e);var t=no(n);function n(){return pn(this,n),t.apply(this,arguments)}return bn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,l=o.elementRef,s=Qe(o,Yz),c=vn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return pr(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u__namespace.createElement(mr.Item,Ce({},a,{title:typeof i=="string"?i:void 0},c,{ref:l}))}}]),n}(u__namespace.Component),Jz=u__namespace.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey;e.warnKey;var a=e.disabled,l=e.itemIcon,s=e.children,c=e.role,d=e.onMouseEnter,f=e.onMouseLeave,m=e.onClick,h=e.onKeyDown,g=e.onFocus,v=Qe(e,qz),p=vC(i),y=u__namespace.useContext(er),b=y.prefixCls,O=y.onItemClick,P=y.disabled,w=y.overflowDisabled,$=y.itemIcon,S=y.selectedKeys,C=y.onActive,I=u__namespace.useContext(Lm),M=I._internalRenderMenuItem,L="".concat(b,"-item"),_=u__namespace.useRef(),E=u__namespace.useRef(),x=P||a,R=Va(t,E),k=ji(i),T=function(re){return {key:i,keyPath:Ge(k).reverse(),item:_.current,domEvent:re}},A=l||$,z=wC(i,x,d,f),F=z.active,V=Qe(z,Zz),j=S.includes(i),H=$C(k.length),B=function(re){if(!x){var ue=T(re);m==null||m(xs(ue)),O(ue);}},X=function(re){if(h==null||h(re),re.which===ie.ENTER){var ue=T(re);m==null||m(xs(ue)),O(ue);}},J=function(re){C(i),g==null||g(re);},Q={};e.role==="option"&&(Q["aria-selected"]=j);var K=u__namespace.createElement(Qz,Ce({ref:_,elementRef:R,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":w&&p?null:p},v,V,Q,{component:"li","aria-disabled":a,style:Z(Z({},H),r),className:W(L,(n={},U(n,"".concat(L,"-active"),F),U(n,"".concat(L,"-selected"),j),U(n,"".concat(L,"-disabled"),x),n),o),onClick:B,onKeyDown:X,onFocus:J}),s,u__namespace.createElement(xC,{props:Z(Z({},e),{},{isSelected:j}),icon:A}));return M&&(K=M(K,e,{selected:j})),K});function ej(e,t){var n=e.eventKey,r=Tc(),o=ji(n);return u__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:u__namespace.createElement(Jz,Ce({},e,{ref:t}))}const al=u__namespace.forwardRef(ej);var tj=["className","children"],nj=function(t,n){var r=t.className,o=t.children,i=Qe(t,tj),a=u__namespace.useContext(er),l=a.prefixCls,s=a.mode,c=a.rtl;return u__namespace.createElement("ul",Ce({className:W(l,c&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(s==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},Dm=u__namespace.forwardRef(nj);Dm.displayName="SubMenuList";function zm(e,t){return Qn(e).map(function(n,r){if(u__namespace.isValidElement(n)){var o,i,a=n.key,l=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,s=l==null;s&&(l="tmp_key-".concat([].concat(Ge(t),[r]).join("-")));var c={key:l,eventKey:l};return u__namespace.cloneElement(n,c)}return n})}var mn={adjustX:1,adjustY:1},rj={topLeft:{points:["bl","tl"],overflow:mn},topRight:{points:["br","tr"],overflow:mn},bottomLeft:{points:["tl","bl"],overflow:mn},bottomRight:{points:["tr","br"],overflow:mn},leftTop:{points:["tr","tl"],overflow:mn},leftBottom:{points:["br","bl"],overflow:mn},rightTop:{points:["tl","tr"],overflow:mn},rightBottom:{points:["bl","br"],overflow:mn}},oj={topLeft:{points:["bl","tl"],overflow:mn},topRight:{points:["br","tr"],overflow:mn},bottomLeft:{points:["tl","bl"],overflow:mn},bottomRight:{points:["tr","br"],overflow:mn},rightTop:{points:["tr","tl"],overflow:mn},rightBottom:{points:["br","bl"],overflow:mn},leftTop:{points:["tl","tr"],overflow:mn},leftBottom:{points:["bl","br"],overflow:mn}};function EC(e,t,n){if(t)return t;if(n)return n[e]||n.other}var ij={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function aj(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupClassName,a=e.popupOffset,l=e.disabled,s=e.mode,c=e.onVisibleChange,d=u__namespace.useContext(er),f=d.getPopupContainer,m=d.rtl,h=d.subMenuOpenDelay,g=d.subMenuCloseDelay,v=d.builtinPlacements,p=d.triggerSubMenuAction,y=d.forceSubMenuRender,b=d.rootClassName,O=d.motion,P=d.defaultMotions,w=u__namespace.useState(!1),$=G(w,2),S=$[0],C=$[1],I=Z(m?Z({},oj):Z({},rj),v),M=ij[s],L=EC(s,O,P),_=u__namespace.useRef(L);s!=="inline"&&(_.current=L);var E=Z(Z({},_.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),x=u__namespace.useRef();return u__namespace.useEffect(function(){return x.current=It(function(){C(n);}),function(){It.cancel(x.current);}},[n]),u__namespace.createElement(ac,{prefixCls:t,popupClassName:W("".concat(t,"-popup"),U({},"".concat(t,"-rtl"),m),i,b),stretch:s==="horizontal"?"minWidth":null,getPopupContainer:f,builtinPlacements:I,popupPlacement:M,popupVisible:S,popup:o,popupAlign:a&&{offset:a},action:l?[]:[p],mouseEnterDelay:h,mouseLeaveDelay:g,onPopupVisibleChange:c,forceRender:y,popupMotion:E},r)}function lj(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=u__namespace.useContext(er),l=a.prefixCls,s=a.forceSubMenuRender,c=a.motion,d=a.defaultMotions,f=a.mode,m=u__namespace.useRef(!1);m.current=f===i;var h=u__namespace.useState(!m.current),g=G(h,2),v=g[0],p=g[1],y=m.current?n:!1;u__namespace.useEffect(function(){m.current&&p(!1);},[f]);var b=Z({},EC(i,c,d));r.length>1&&(b.motionAppear=!1);var O=b.onVisibleChanged;return b.onVisibleChanged=function(P){return !m.current&&!P&&p(!0),O==null?void 0:O(P)},v?null:u__namespace.createElement(Ta,{mode:i,locked:!m.current},u__namespace.createElement(ro,Ce({visible:y},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(P){var w=P.className,$=P.style;return u__namespace.createElement(Dm,{id:t,className:w,style:$},o)}))}var sj=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],cj=["active"],uj=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var l=t.disabled,s=t.internalPopupClose,c=t.children,d=t.itemIcon,f=t.expandIcon,m=t.popupClassName,h=t.popupOffset,g=t.onClick,v=t.onMouseEnter,p=t.onMouseLeave,y=t.onTitleClick,b=t.onTitleMouseEnter,O=t.onTitleMouseLeave,P=Qe(t,sj),w=vC(a),$=u__namespace.useContext(er),S=$.prefixCls,C=$.mode,I=$.openKeys,M=$.disabled,L=$.overflowDisabled,_=$.activeKey,E=$.selectedKeys,x=$.itemIcon,R=$.expandIcon,k=$.onItemClick,T=$.onOpenChange,A=$.onActive,z=u__namespace.useContext(Lm),F=z._internalRenderSubMenuItem,V=u__namespace.useContext(yC),j=V.isSubPathKey,H=ji(),B="".concat(S,"-submenu"),X=M||l,J=u__namespace.useRef(),Q=u__namespace.useRef(),K=d||x,Y=f||R,re=I.includes(a),ue=!L&&re,se=j(E,a),ee=wC(a,X,b,O),ae=ee.active,q=Qe(ee,cj),te=u__namespace.useState(!1),ce=G(te,2),fe=ce[0],he=ce[1],ge=function(xe){X||he(xe);},be=function(xe){ge(!0),v==null||v({key:a,domEvent:xe});},Re=function(xe){ge(!1),p==null||p({key:a,domEvent:xe});},De=u__namespace.useMemo(function(){return ae||(C!=="inline"?fe||j([_],a):!1)},[C,ae,_,fe,a,j]),$e=$C(H.length),we=function(xe){X||(y==null||y({key:a,domEvent:xe}),C==="inline"&&T(a,!re));},Te=ra(function(ye){g==null||g(xs(ye)),k(ye);}),Je=function(xe){C!=="inline"&&T(a,xe);},Ve=function(){A(a);},Ye=w&&"".concat(w,"-popup"),Me=u__namespace.createElement("div",Ce({role:"menuitem",style:$e,className:"".concat(B,"-title"),tabIndex:X?null:-1,ref:J,title:typeof i=="string"?i:null,"data-menu-id":L&&w?null:w,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":X,onClick:we,onFocus:Ve},q),i,u__namespace.createElement(xC,{icon:C!=="horizontal"?Y:null,props:Z(Z({},t),{},{isOpen:ue,isSubMenu:!0})},u__namespace.createElement("i",{className:"".concat(B,"-arrow")}))),ke=u__namespace.useRef(C);if(C!=="inline"&&H.length>1?ke.current="vertical":ke.current=C,!L){var qe=ke.current;Me=u__namespace.createElement(aj,{mode:qe,prefixCls:B,visible:!s&&ue&&C!=="inline",popupClassName:m,popupOffset:h,popup:u__namespace.createElement(Ta,{mode:qe==="horizontal"?"vertical":qe},u__namespace.createElement(Dm,{id:Ye,ref:Q},c)),disabled:X,onVisibleChange:Je},Me);}var et=u__namespace.createElement(mr.Item,Ce({role:"none"},P,{component:"li",style:r,className:W(B,"".concat(B,"-").concat(C),o,(n={},U(n,"".concat(B,"-open"),ue),U(n,"".concat(B,"-active"),De),U(n,"".concat(B,"-selected"),se),U(n,"".concat(B,"-disabled"),X),n)),onMouseEnter:be,onMouseLeave:Re}),Me,!L&&u__namespace.createElement(lj,{id:Ye,open:ue,keyPath:H},c));return F&&(et=F(et,t,{selected:se,active:De,open:ue,disabled:X})),u__namespace.createElement(Ta,{onItemClick:Te,mode:C==="horizontal"?"vertical":C,itemIcon:K,expandIcon:Y},et)};function Nc(e){var t=e.eventKey,n=e.children,r=ji(t),o=zm(n,r),i=Tc();u__namespace.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r);}},[r]);var a;return i?a=o:a=u__namespace.createElement(uj,e,o),u__namespace.createElement(bC.Provider,{value:r},a)}var dj=["className","title","eventKey","children"],fj=["children"],mj=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=Qe(t,dj),a=u__namespace.useContext(er),l=a.prefixCls,s="".concat(l,"-item-group");return u__namespace.createElement("li",Ce({role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:W(s,n)}),u__namespace.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),u__namespace.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))};function kc(e){var t=e.children,n=Qe(e,fj),r=ji(n.eventKey),o=zm(t,r),i=Tc();return i?o:u__namespace.createElement(mj,vn(n,["warnKey"]),o)}function jm(e){var t=e.className,n=e.style,r=u__namespace.useContext(er),o=r.prefixCls,i=Tc();return i?null:u__namespace.createElement("li",{className:W("".concat(o,"-item-divider"),t),style:n})}var hj=["label","children","key","type"];function Ad(e){return (e||[]).map(function(t,n){if(t&&dt(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,l=r.type,s=Qe(r,hj),c=a??"tmp-".concat(n);return i||l==="group"?l==="group"?u__namespace.createElement(kc,Ce({key:c},s,{title:o}),Ad(i)):u__namespace.createElement(Nc,Ce({key:c},s,{title:o}),Ad(i)):l==="divider"?u__namespace.createElement(jm,Ce({key:c},s)):u__namespace.createElement(al,Ce({key:c},s),o)}return null}).filter(function(t){return t})}function gj(e,t,n){var r=e;return t&&(r=Ad(t)),zm(r,n)}var vj=["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"],qo=[],pj=u__namespace.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,l=o.rootClassName,s=o.style,c=o.className,d=o.tabIndex,f=d===void 0?0:d,m=o.items,h=o.children,g=o.direction,v=o.id,p=o.mode,y=p===void 0?"vertical":p,b=o.inlineCollapsed,O=o.disabled,P=o.disabledOverflow,w=o.subMenuOpenDelay,$=w===void 0?.1:w,S=o.subMenuCloseDelay,C=S===void 0?.1:S,I=o.forceSubMenuRender,M=o.defaultOpenKeys,L=o.openKeys,_=o.activeKey,E=o.defaultActiveFirst,x=o.selectable,R=x===void 0?!0:x,k=o.multiple,T=k===void 0?!1:k,A=o.defaultSelectedKeys,z=o.selectedKeys,F=o.onSelect,V=o.onDeselect,j=o.inlineIndent,H=j===void 0?24:j,B=o.motion,X=o.defaultMotions,J=o.triggerSubMenuAction,Q=J===void 0?"hover":J,K=o.builtinPlacements,Y=o.itemIcon,re=o.expandIcon,ue=o.overflowedIndicator,se=ue===void 0?"...":ue,ee=o.overflowedIndicatorPopupClassName,ae=o.getPopupContainer,q=o.onClick,te=o.onOpenChange,ce=o.onKeyDown;o.openAnimation,o.openTransitionName;var fe=o._internalRenderMenuItem,he=o._internalRenderSubMenuItem,ge=Qe(o,vj),be=u__namespace.useMemo(function(){return gj(h,m,qo)},[h,m]),Re=u__namespace.useState(!1),De=G(Re,2),$e=De[0],we=De[1],Te=u__namespace.useRef(),Je=Uz(v),Ve=g==="rtl",Ye=zt(M,{value:L,postState:function(Oe){return Oe||qo}}),Me=G(Ye,2),ke=Me[0],qe=Me[1],et=function(Oe){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function it(){qe(Oe),te==null||te(Oe);}Ie?Qv.flushSync(it):it();},ye=u__namespace.useState(ke),xe=G(ye,2),ze=xe[0],Le=xe[1],rt=u__namespace.useRef(!1),Ue=u__namespace.useMemo(function(){return (y==="inline"||y==="vertical")&&b?["vertical",b]:[y,!1]},[y,b]),de=G(Ue,2),ne=de[0],me=de[1],le=ne==="inline",Ne=u__namespace.useState(ne),tt=G(Ne,2),ct=tt[0],Ae=tt[1],Se=u__namespace.useState(me),ve=G(Se,2),Ee=ve[0],_e=ve[1];u__namespace.useEffect(function(){Ae(ne),_e(me),rt.current&&(le?qe(ze):et(qo));},[ne,me]);var Ze=u__namespace.useState(0),ft=G(Ze,2),pt=ft[0],Vt=ft[1],jt=pt>=be.length-1||ct!=="horizontal"||P;u__namespace.useEffect(function(){le&&Le(ke);},[ke]),u__namespace.useEffect(function(){return rt.current=!0,function(){rt.current=!1;}},[]);var Fe=Kz(),Xe=Fe.registerPath,je=Fe.unregisterPath,bt=Fe.refreshOverflowKeys,ht=Fe.isSubPathKey,Yt=Fe.getKeyPath,Be=Fe.getKeys,Ke=Fe.getSubPathKeys,ut=u__namespace.useMemo(function(){return {registerPath:Xe,unregisterPath:je}},[Xe,je]),wt=u__namespace.useMemo(function(){return {isSubPathKey:ht}},[ht]);u__namespace.useEffect(function(){bt(jt?qo:be.slice(pt+1).map(function(Ot){return Ot.key}));},[pt,jt]);var Kt=zt(_||E&&((n=be[0])===null||n===void 0?void 0:n.key),{value:_}),Lt=G(Kt,2),cn=Lt[0],$n=Lt[1],Kn=ra(function(Ot){$n(Ot);}),yr=ra(function(){$n(void 0);});u.useImperativeHandle(t,function(){return {list:Te.current,focus:function(Oe){var Ie,it=cn??((Ie=be.find(function(Gt){return !Gt.props.disabled}))===null||Ie===void 0?void 0:Ie.key);if(it){var yt,gt,Pt;(yt=Te.current)===null||yt===void 0||(gt=yt.querySelector("li[data-menu-id='".concat(km(Je,it),"']")))===null||gt===void 0||(Pt=gt.focus)===null||Pt===void 0||Pt.call(gt,Oe);}}}});var rr=zt(A||[],{value:z,postState:function(Oe){return Array.isArray(Oe)?Oe:Oe==null?qo:[Oe]}}),Ln=G(rr,2),yn=Ln[0],Cr=Ln[1],oo=function(Oe){if(R){var Ie=Oe.key,it=yn.includes(Ie),yt;T?it?yt=yn.filter(function(Pt){return Pt!==Ie}):yt=[].concat(Ge(yn),[Ie]):yt=[Ie],Cr(yt);var gt=Z(Z({},Oe),{},{selectedKeys:yt});it?V==null||V(gt):F==null||F(gt);}!T&&ke.length&&ct!=="inline"&&et(qo);},Sr=ra(function(Ot){q==null||q(xs(Ot)),oo(Ot);}),wr=ra(function(Ot,Oe){var Ie=ke.filter(function(yt){return yt!==Ot});if(Oe)Ie.push(Ot);else if(ct!=="inline"){var it=Ke(Ot);Ie=Ie.filter(function(yt){return !it.has(yt)});}ec(ke,Ie,!0)||et(Ie,!0);}),$r=function(Oe,Ie){var it=Ie??!ke.includes(Oe);wr(Oe,it);},io=Fz(ct,cn,Ve,Je,Te,Be,Yt,$n,$r,ce);u__namespace.useEffect(function(){we(!0);},[]);var ao=u__namespace.useMemo(function(){return {_internalRenderMenuItem:fe,_internalRenderSubMenuItem:he}},[fe,he]),lo=ct!=="horizontal"||P?be:be.map(function(Ot,Oe){return u__namespace.createElement(Ta,{key:Ot.key,overflowDisabled:Oe>pt},Ot)}),xr=u__namespace.createElement(mr,Ce({id:v,ref:Te,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:al,className:W(a,"".concat(a,"-root"),"".concat(a,"-").concat(ct),c,(r={},U(r,"".concat(a,"-inline-collapsed"),Ee),U(r,"".concat(a,"-rtl"),Ve),r),l),dir:g,style:s,role:"menu",tabIndex:f,data:lo,renderRawItem:function(Oe){return Oe},renderRawRest:function(Oe){var Ie=Oe.length,it=Ie?be.slice(-Ie):null;return u__namespace.createElement(Nc,{eventKey:Ld,title:se,disabled:jt,internalPopupClose:Ie===0,popupClassName:ee},it)},maxCount:ct!=="horizontal"||P?mr.INVALIDATE:mr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Oe){Vt(Oe);},onKeyDown:io},ge));return u__namespace.createElement(Lm.Provider,{value:ao},u__namespace.createElement(gC.Provider,{value:Je},u__namespace.createElement(Ta,{prefixCls:a,rootClassName:l,mode:ct,openKeys:ke,rtl:Ve,disabled:O,motion:$e?B:null,defaultMotions:$e?X:null,activeKey:cn,onActive:Kn,onInactive:yr,selectedKeys:yn,inlineIndent:H,subMenuOpenDelay:$,subMenuCloseDelay:C,forceSubMenuRender:I,builtinPlacements:K,triggerSubMenuAction:Q,getPopupContainer:ae,itemIcon:Y,expandIcon:re,onItemClick:Sr,onOpenChange:wr},u__namespace.createElement(yC.Provider,{value:wt},xr),u__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},u__namespace.createElement(pC.Provider,{value:ut},be)))))}),Bi=pj;Bi.Item=al;Bi.SubMenu=Nc;Bi.ItemGroup=kc;Bi.Divider=jm;var bj={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 yj=bj;var Cj=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:yj}))};const Es=u__namespace.forwardRef(Cj);const IC=u__namespace.createContext({});var Sj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wj=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=Sj(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=u__namespace.useContext(ot),a=i("menu",t),l=W({[`${a}-item-divider-dashed`]:!!r},n);return u__namespace.createElement(jm,Object.assign({className:l},o))},OC=wj,$j=u.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Is=$j,xj=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:s,direction:c,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=u__namespace.useContext(Is),m=b=>{const O=u__namespace.createElement("span",{className:`${l}-title-content`},r);return (!o||Qr(r)&&r.type==="span")&&r&&b&&s&&typeof r=="string"?u__namespace.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):O},{siderCollapsed:h}=u__namespace.useContext(IC);let g=i;typeof i>"u"?g=s?r:"":i===!1&&(g="");const v={title:g};!h&&!f&&(v.title=null,v.open=!1);const p=Qn(r).length;let y=u__namespace.createElement(al,Object.assign({},vn(e,["title","icon","danger"]),{className:W({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?p+1:p)===1},n),title:typeof i=="string"?i:void 0}),Tn(o,{className:W(Qr(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),m(f));return d||(y=u__namespace.createElement(Ua,Object.assign({},v,{placement:c==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),y)),y},PC=xj,Ej=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=u__namespace.useContext(Is),{prefixCls:l,inlineCollapsed:s,theme:c}=a,d=ji();let f;if(!r)f=s&&!d.length&&o&&typeof o=="string"?u__namespace.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):u__namespace.createElement("span",{className:`${l}-title-content`},o);else {const h=Qr(o)&&o.type==="span";f=u__namespace.createElement(u__namespace.Fragment,null,Tn(r,{className:W(Qr(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h?o:u__namespace.createElement("span",{className:`${l}-title-content`},o));}const m=u__namespace.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]);return u__namespace.createElement(Is.Provider,{value:m},u__namespace.createElement(Nc,Object.assign({},vn(e,["icon"]),{title:f,popupClassName:W(l,n,`${l}-${i||c}`)})))},MC=Ej;var Ij={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 Oj=Ij;var Pj=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:Oj}))};const Bm=u__namespace.forwardRef(Pj);var Mj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Os=u__namespace.createContext(null),_j=u__namespace.forwardRef((e,t)=>{const{children:n}=e,r=Mj(e,["children"]),o=u__namespace.useContext(Os),i=u__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]);return u__namespace.createElement(Os.Provider,{value:i},u__namespace.createElement(bi,null,u__namespace.cloneElement(n,{ref:t})))});var Rj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Dd(e){return (e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:l}=r,s=Rj(r,["label","children","key","type"]),c=a??`tmp-${n}`;return i||l==="group"?l==="group"?u__namespace.createElement(kc,Object.assign({key:c},s,{title:o}),Dd(i)):u__namespace.createElement(MC,Object.assign({key:c},s,{title:o}),Dd(i)):l==="divider"?u__namespace.createElement(OC,Object.assign({key:c},s)):u__namespace.createElement(PC,Object.assign({key:c},s),o)}return null}).filter(t=>t)}function Tj(e){return u__namespace.useMemo(()=>e&&Dd(e),[e])}const Nj=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${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"}}}},kj=Nj,Lj=e=>{let{componentCls:t,menuArrowOffset:n}=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(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},Aj=Lj,Cv=e=>Object.assign({},Eo(e)),Dj=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:h,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:p,itemHoverColor:y,lineType:b,colorSplit:O,itemDisabledColor:P,dangerItemColor:w,dangerItemHoverColor:$,dangerItemSelectedColor:S,dangerItemActiveBg:C,dangerItemSelectedBg:I,itemHoverBg:M,itemActiveBg:L,menuSubMenuBg:_,horizontalItemSelectedColor:E,horizontalItemSelectedBg:x,horizontalItemBorderRadius:R,horizontalItemHoverBg:k,popupBg:T}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Cv(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${P} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:L}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:L}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:C}},[`${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:I}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Cv(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${n}-popup > ${n}`]:{backgroundColor:T},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:-f,marginBottom:0,borderRadius:R,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${m} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:k,"&::after":{borderBottomWidth:c,borderBottomColor:E}},"&-selected":{color:E,backgroundColor:x,"&:hover":{backgroundColor:x},"&::after":{borderBottomWidth:c,borderBottomColor:E}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${f}px ${b} ${O}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:f&&d?{width:`calc(100% + ${f}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${d}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${g}`,`opacity ${p} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(",")}}}}}},Sv=Dj,wv=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l}=e,s=o+i+a;return {[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:`calc(100% - ${r*2}px)`},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:s}}},zj=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:c,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:m,paddingXS:h,boxShadowSecondary:g,collapsedWidth:v,collapsedIconSize:p}=e,y={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},wv(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},wv(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${a*2.5}px)`,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`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,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% - ${f/2}px - ${d}px)`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:`${r}px`,"+ 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({},xo),{paddingInline:h})}}]},jj=zj,$v=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,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, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`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({},To()),[`&${t}-item-only-child`]:{[`> ${a}, > ${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"}}}},xv=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:i*.6,height:i*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},Bj=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:h,menuArrowSize:g,menuArrowOffset:v,lineType:p,menuPanelMaskInset:y,groupTitleLineHeight:b,groupTitleFontSize:O}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},ed()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),ed()),{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:`${l}px ${s}px`,fontSize:O,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${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:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),$v(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${s}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${y}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:y},"\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},$v(e)),xv(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),xv(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${v})`},"&::after":{transform:`rotate(45deg) translateX(-${v})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${g*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${v})`},"&::before":{transform:`rotate(45deg) translateX(${v})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Hj=(e,t)=>Ut("Menu",r=>{if(t===!1)return [];const{colorBgElevated:o,colorPrimary:i,colorTextLightSolid:a,controlHeightLG:l,fontSize:s,darkItemColor:c,darkDangerItemColor:d,darkItemBg:f,darkSubMenuItemBg:m,darkItemSelectedColor:h,darkItemSelectedBg:g,darkDangerItemSelectedBg:v,darkItemHoverBg:p,darkGroupTitleColor:y,darkItemHoverColor:b,darkItemDisabledColor:O,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:$}=r,S=s/7*5,C=mt(r,{menuArrowSize:S,menuHorizontalHeight:l*1.15,menuArrowOffset:`${S*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),I=mt(C,{itemColor:c,itemHoverColor:b,groupTitleColor:y,itemSelectedColor:h,itemBg:f,popupBg:f,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:O,dangerItemColor:d,dangerItemHoverColor:P,dangerItemSelectedColor:w,dangerItemActiveBg:$,dangerItemSelectedBg:v,menuSubMenuBg:m,horizontalItemSelectedColor:a,horizontalItemSelectedBg:i});return [Bj(C),kj(C),jj(C),Sv(C,"light"),Sv(I,"dark"),Aj(C),t0(C),Jr(C,"slide-up"),Jr(C,"slide-down"),sc(C,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:h,lineWidthBold:g,controlItemBgActive:v,colorBgTextHover:p,controlHeightLG:y,lineHeight:b,colorBgElevated:O,marginXXS:P,padding:w,fontSize:$,controlHeightSM:S,fontSizeLG:C,colorTextLightSolid:I,colorErrorHover:M}=r,L=new Wt(I).setAlpha(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.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:d,itemBg:d,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:v,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:h,activeBarBorderWidth:h,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:b,collapsedWidth:y*2,popupBg:O,itemMarginBlock:P,itemPaddingInline:w,horizontalLineHeight:`${y*1.15}px`,iconSize:$,iconMarginInlineEnd:S-$,collapsedIconSize:C,groupTitleFontSize:$,darkItemDisabledColor:new Wt(I).setAlpha(.25).toRgbString(),darkItemColor:L,darkDangerItemColor:i,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:I,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:L,darkItemHoverColor:I,darkDangerItemHoverColor:M,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:i}},{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"]]})(e);var Fj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Wj=u.forwardRef((e,t)=>{var n,r;const o=u__namespace.useContext(Os),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s,menu:c}=u__namespace.useContext(ot),d=a(),{prefixCls:f,className:m,style:h,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:y,siderCollapsed:b,items:O,children:P,rootClassName:w,mode:$,selectable:S,onClick:C,overflowedIndicatorPopupClassName:I}=e,M=Fj(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),L=vn(M,["collapsedWidth"]),_=Tj(O)||P;(n=i.validator)===null||n===void 0||n.call(i,{mode:$});const E=_n(function(){var B;C==null||C.apply(void 0,arguments),(B=i.onClick)===null||B===void 0||B.call(i);}),x=i.mode||$,R=S??i.selectable,k=u__namespace.useMemo(()=>b!==void 0?b:y,[y,b]),T={horizontal:{motionName:`${d}-slide-up`},inline:Hb(d),other:{motionName:`${d}-zoom-big`}},A=a("menu",f||i.prefixCls),[z,F]=Hj(A,!o),V=W(`${A}-${g}`,c==null?void 0:c.className,m);let j;if(typeof v=="function")j=v;else {const B=v||i.expandIcon;j=Tn(B,{className:W(`${A}-submenu-expand-icon`,(r=B==null?void 0:B.props)===null||r===void 0?void 0:r.className)});}const H=u__namespace.useMemo(()=>({prefixCls:A,inlineCollapsed:k||!1,direction:s,firstLevel:!0,theme:g,mode:x,disableMenuItemTitleTooltip:p}),[A,k,s,p,g]);return z(u__namespace.createElement(Os.Provider,{value:null},u__namespace.createElement(Is.Provider,{value:H},u__namespace.createElement(Bi,Object.assign({getPopupContainer:l,overflowedIndicator:u__namespace.createElement(Bm,null),overflowedIndicatorPopupClassName:W(A,`${A}-${g}`,I),mode:x,selectable:R,onClick:E},L,{inlineCollapsed:k,style:Object.assign(Object.assign({},c==null?void 0:c.style),h),className:V,prefixCls:A,direction:s,defaultMotions:T,expandIcon:j,ref:t,rootClassName:W(w,F)}),_))))}),Vj=Wj,ll=u.forwardRef((e,t)=>{const n=u.useRef(null),r=u__namespace.useContext(IC);return u.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o);}})),u__namespace.createElement(Vj,Object.assign({ref:n},e,r))});ll.Item=PC;ll.SubMenu=MC;ll.Divider=OC;ll.ItemGroup=kc;const Kj=ll,Gj=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Uj=Gj,Xj=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,dropdownPaddingVertical:c,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:h,controlPaddingHorizontal:g,colorBgElevated:v}=e;return [{[t]:Object.assign(Object.assign({},kt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:h},[`${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"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Wf},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Kf},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Vf},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Gf}})},Hf(e,{colorBg:v,limitVerticalRadius:!0,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:f,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Io(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${g}px`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,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:`${c}px ${g}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Io(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 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:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:g+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Jr(e,"slide-up"),Jr(e,"slide-down"),us(e,"move-up"),us(e,"move-down"),sc(e,"zoom-big")]]},_C=Ut("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:l,paddingXXS:s,componentCls:c,borderRadiusLG:d}=e,f=(i-a*l)/2,{dropdownArrowOffset:m}=Bf({contentRadius:d}),h=mt(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:m,dropdownPaddingVertical:f,dropdownEdgeChildPadding:s});return [Xj(h),Uj(h)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Hm=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:l,getPopupContainer:s,overlayClassName:c,rootClassName:d,open:f,onOpenChange:m,visible:h,onVisibleChange:g,mouseEnterDelay:v=.15,mouseLeaveDelay:p=.1,autoAdjustOverflow:y=!0,placement:b="",overlay:O,transitionName:P}=e,{getPopupContainer:w,getPrefixCls:$,direction:S}=u__namespace.useContext(ot),C=u__namespace.useMemo(()=>{const X=$();return P!==void 0?P:b.includes("top")?`${X}-slide-down`:`${X}-slide-up`},[$,b,P]),I=u__namespace.useMemo(()=>b?b.includes("Center")?b.slice(0,b.indexOf("Center")):b:S==="rtl"?"bottomRight":"bottomLeft",[b,S]),M=$("dropdown",r),[L,_]=_C(M),{token:E}=yi.useToken(),x=u__namespace.Children.only(o),R=Tn(x,{className:W(`${M}-trigger`,{[`${M}-rtl`]:S==="rtl"},x.props.className),disabled:a}),k=a?[]:i;let T;k&&k.includes("contextMenu")&&(T=!0);const[A,z]=zt(!1,{value:f??h}),F=_n(X=>{m==null||m(X),g==null||g(X),z(X);}),V=W(c,d,_,{[`${M}-rtl`]:S==="rtl"}),j=Zb({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:E.marginXXS,arrowWidth:n?E.sizePopupArrow:0,borderRadius:E.borderRadius}),H=u__namespace.useCallback(()=>{z(!1);},[]),B=()=>{let X;return t!=null&&t.items?X=u__namespace.createElement(Kj,Object.assign({},t)):typeof O=="function"?X=O():X=O,l&&(X=l(X)),X=u__namespace.Children.only(typeof X=="string"?u__namespace.createElement("span",null,X):X),u__namespace.createElement(_j,{prefixCls:`${M}-menu`,expandIcon:u__namespace.createElement("span",{className:`${M}-menu-submenu-arrow`},u__namespace.createElement(Si,{className:`${M}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:H,validator:J=>{}},X)};return L(u__namespace.createElement(hC,Object.assign({alignPoint:T},vn(e,["rootClassName"]),{mouseEnterDelay:v,mouseLeaveDelay:p,visible:A,builtinPlacements:j,arrow:!!n,overlayClassName:V,prefixCls:M,getPopupContainer:s||w,transitionName:C,trigger:k,overlay:B,placement:I,onVisibleChange:F}),R))};function Yj(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const qj=Df(Hm,"dropdown",e=>e,Yj),Zj=e=>u__namespace.createElement(qj,Object.assign({},e),u__namespace.createElement("span",null));Hm._InternalPanelDoNotUseOrYouWillBeFired=Zj;const RC=Hm,Qj=()=>En()&&window.document.documentElement;let Ol;const Jj=()=>{if(!Qj())return !1;if(Ol!==void 0)return Ol;const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div"));const t=document.createElement("div");return t.style.position="absolute",t.style.zIndex="-9999",t.appendChild(e),document.body.appendChild(t),Ol=e.scrollHeight===1,document.body.removeChild(t),Ol},e6=()=>{const[e,t]=u__namespace.useState(!1);return u__namespace.useEffect(()=>{t(Jj());},[]),e},TC=u.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),t6=TC.Provider,n6=e=>{let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:l,style:s}=e;const{horizontalSize:c,verticalSize:d,latestIndex:f,supportFlexGap:m}=u__namespace.useContext(TC);let h={};return m||(n==="vertical"?r<f&&(h={marginBottom:c/(a?2:1)}):h=Object.assign(Object.assign({},r<f&&{[o]:c/(a?2:1)}),l&&{paddingBottom:d})),i==null?null:u__namespace.createElement(u__namespace.Fragment,null,u__namespace.createElement("div",{className:t,style:Object.assign(Object.assign({},h),s)},i),r<f&&a&&u__namespace.createElement("span",{className:`${t}-split`,style:h},a))},r6=n6;var o6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const i6={small:8,middle:16,large:24};function a6(e){return typeof e=="string"?i6[e]:e||0}const l6=u__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=u__namespace.useContext(ot),{size:l=(i==null?void 0:i.size)||"small",align:s,className:c,rootClassName:d,children:f,direction:m="horizontal",prefixCls:h,split:g,style:v,wrap:p=!1,classNames:y,styles:b}=e,O=o6(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),P=e6(),[w,$]=u__namespace.useMemo(()=>(Array.isArray(l)?l:[l,l]).map(z=>a6(z)),[l]),S=Qn(f,{keepEmpty:!0}),C=s===void 0&&m==="horizontal"?"center":s,I=o("space",h),[M,L]=Jb(I),_=W(I,i==null?void 0:i.className,L,`${I}-${m}`,{[`${I}-rtl`]:a==="rtl",[`${I}-align-${C}`]:C},c,d),E=W(`${I}-item`,(n=y==null?void 0:y.item)!==null&&n!==void 0?n:(r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r.item),x=a==="rtl"?"marginLeft":"marginRight";let R=0;const k=S.map((z,F)=>{var V,j;z!=null&&(R=F);const H=z&&z.key||`${E}-${F}`;return u__namespace.createElement(r6,{className:E,key:H,direction:m,index:F,marginDirection:x,split:g,wrap:p,style:(V=b==null?void 0:b.item)!==null&&V!==void 0?V:(j=i==null?void 0:i.styles)===null||j===void 0?void 0:j.item},z)}),T=u__namespace.useMemo(()=>({horizontalSize:w,verticalSize:$,latestIndex:R,supportFlexGap:P}),[w,$,R,P]);if(S.length===0)return null;const A={};return p&&(A.flexWrap="wrap",P||(A.marginBottom=-$)),P&&(A.columnGap=w,A.rowGap=$),M(u__namespace.createElement("div",Object.assign({ref:t,className:_,style:Object.assign(Object.assign(Object.assign({},A),i==null?void 0:i.style),v)},O),u__namespace.createElement(t6,{value:T},k)))}),NC=l6;NC.Compact=CM;const Lc=NC;var s6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kC=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=u__namespace.useContext(ot),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:s,onClick:c,htmlType:d,children:f,className:m,menu:h,arrow:g,autoFocus:v,overlay:p,trigger:y,align:b,open:O,onOpenChange:P,placement:w,getPopupContainer:$,href:S,icon:C=u__namespace.createElement(Bm,null),title:I,buttonsRender:M=re=>re,mouseEnterDelay:L,mouseLeaveDelay:_,overlayClassName:E,overlayStyle:x,destroyPopupOnHide:R,dropdownRender:k}=e,T=s6(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"]),A=n("dropdown",o),z=`${A}-button`,[F,V]=_C(A),j={menu:h,arrow:g,autoFocus:v,align:b,disabled:l,trigger:l?[]:y,onOpenChange:P,getPopupContainer:$||t,mouseEnterDelay:L,mouseLeaveDelay:_,overlayClassName:E,overlayStyle:x,destroyPopupOnHide:R,dropdownRender:k},{compactSize:H,compactItemClassnames:B}=Li(A,r),X=W(z,B,m,V);"overlay"in e&&(j.overlay=p),"open"in e&&(j.open=O),"placement"in e?j.placement=w:j.placement=r==="rtl"?"bottomLeft":"bottomRight";const J=u__namespace.createElement(Jt,{type:i,danger:a,disabled:l,loading:s,onClick:c,htmlType:d,href:S,title:I},f),Q=u__namespace.createElement(Jt,{type:i,danger:a,icon:C}),[K,Y]=M([J,Q]);return F(u__namespace.createElement(Lc.Compact,Object.assign({className:X,size:H,block:!0},T),K,u__namespace.createElement(RC,Object.assign({},j),Y)))};kC.__ANT_BUTTON=!0;const c6=kC,LC=RC;LC.Button=c6;const AC=LC;function ei(e,t,n){const r=lt(n);u.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}var u6=Math.floor,d6=Math.random;function f6(e,t){return e+u6(d6()*(t-e+1))}function DC(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var i=f6(n,o),a=e[i];e[i]=e[n],e[n]=a;}return e.length=t,e}function m6(e){return DC(Dp(e))}function h6(e,t){return uf(t,function(n){return e[n]})}function g6(e){return e==null?[]:h6(e,Ba(e))}function v6(e){return DC(g6(e))}function zd(e){var t=Wn(e)?m6:v6;return t(e)}var p6={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 b6=p6;var y6=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:b6}))};const C6=u__namespace.forwardRef(y6);var S6={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 w6=S6;var $6=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:w6}))};const Ev=u__namespace.forwardRef($6);var x6={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 E6=x6;var I6=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:E6}))};const Iv=u__namespace.forwardRef(I6);var O6={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 P6=O6;var M6=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:P6}))};const zC=u__namespace.forwardRef(M6);var _6={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 R6=_6;var T6=function(t,n){return u__namespace.createElement(sn,Ce({},t,{ref:n,icon:R6}))};const N6=u__namespace.forwardRef(T6);function k6(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function L6(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:u.createElement(fc,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!k6(e,t,o))return [!1,null];const a=typeof t=="boolean"||t===void 0||t===null?r:t;return [!0,n?n(a):a]}function A6(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Pl=(e,t,n)=>{const r=A6(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},D6=e=>Eb(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return {[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),z6=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return {[o]:Object.assign(Object.assign({},kt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${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:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},jC=Ut("Tag",e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`,i=mt(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [z6(i),D6(i),Pl(i,"success","Success"),Pl(i,"processing","Info"),Pl(i,"error","Error"),Pl(i,"warning","Warning")]},e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}));var j6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const B6=e=>{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=j6(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:l}=u__namespace.useContext(ot),s=h=>{o==null||o(!r),i==null||i(h);},c=l("tag",t),[d,f]=jC(c),m=W(c,`${c}-checkable`,{[`${c}-checkable-checked`]:r},n,f);return d(u__namespace.createElement("span",Object.assign({},a,{className:m,onClick:s})))},H6=B6;var F6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const W6=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:s,onClose:c,closeIcon:d,closable:f,bordered:m=!0}=e,h=F6(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:g,direction:v,tag:p}=u__namespace.useContext(ot),[y,b]=u__namespace.useState(!0);u__namespace.useEffect(()=>{"visible"in h&&b(h.visible);},[h.visible]);const O=r0(s)||c_(s),P=Object.assign(Object.assign({backgroundColor:s&&!O?s:void 0},p==null?void 0:p.style),i),w=g("tag",n),[$,S]=jC(w),C=W(w,p==null?void 0:p.className,{[`${w}-${s}`]:O,[`${w}-has-color`]:s&&!O,[`${w}-hidden`]:!y,[`${w}-rtl`]:v==="rtl",[`${w}-borderless`]:!m},r,o,S),I=R=>{R.stopPropagation(),c==null||c(R),!R.defaultPrevented&&b(!1);},[,M]=L6(f,d,R=>R===null?u__namespace.createElement(fc,{className:`${w}-close-icon`,onClick:I}):u__namespace.createElement("span",{className:`${w}-close-icon`,onClick:I},R),null,!1),L=typeof h.onClick=="function"||a&&a.type==="a",_=l||null,E=_?u__namespace.createElement(u__namespace.Fragment,null,_,a&&u__namespace.createElement("span",null,a)):a,x=u__namespace.createElement("span",Object.assign({},h,{ref:t,className:C,style:P}),E,M);return $(L?u__namespace.createElement(mm,null,x):x)},BC=u__namespace.forwardRef(W6);BC.CheckableTag=H6;const Vr=BC,Ps=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},V6=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:i}=n;o&&t.set(i,r);}),t};function K6(e,t,n){const r=u__namespace.useMemo(()=>(e||[]).map(a=>(t&&(a=Object.assign(Object.assign({},a),{key:t(a)})),a)),[e,t]),[o,i]=u__namespace.useMemo(()=>{const a=[],l=new Array((n||[]).length),s=Ps(n||[]);return r.forEach(c=>{s.has(c.key)?l[s.get(c.key)]=c:a.push(c);}),[a,l]},[r,n,t]);return [r,o,i]}const G6=[];function Zo(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function Ov(e){return Array.from(e).join(";")}function U6(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:G6;const[r,o]=u__namespace.useMemo(()=>[new Set(e.map(c=>c.key)),new Set(t.map(c=>c.key))],[e,t]),[i,a]=u__namespace.useState(()=>Zo(n,r)),[l,s]=u__namespace.useState(()=>Zo(n,o));return u__namespace.useEffect(()=>{a(Zo(n,r)),s(Zo(n,o));},[n]),u__namespace.useEffect(()=>{a(Zo(i,r)),s(Zo(l,o));},[Ov(r),Ov(o)]),[i,l,a,s]}var mo={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const X6={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:"页码"};var HC=function(e){to(n,e);var t=no(n);function n(){var r;pn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.state={goInputText:""},r.getValidValue=function(){var l=r.state.goInputText;return !l||Number.isNaN(l)?void 0:Number(l)},r.buildOptionText=function(l){return "".concat(l," ").concat(r.props.locale.items_per_page)},r.changeSize=function(l){r.props.changeSize(Number(l));},r.handleChange=function(l){r.setState({goInputText:l.target.value});},r.handleBlur=function(l){var s=r.props,c=s.goButton,d=s.quickGo,f=s.rootPrefixCls,m=r.state.goInputText;c||m===""||(r.setState({goInputText:""}),!(l.relatedTarget&&(l.relatedTarget.className.indexOf("".concat(f,"-item-link"))>=0||l.relatedTarget.className.indexOf("".concat(f,"-item"))>=0))&&d(r.getValidValue()));},r.go=function(l){var s=r.state.goInputText;s!==""&&(l.keyCode===mo.ENTER||l.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()));},r}return bn(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,i=o.pageSize,a=o.pageSizeOptions;return a.some(function(l){return l.toString()===i.toString()})?a:a.concat([i.toString()]).sort(function(l,s){var c=Number.isNaN(Number(l))?0:Number(l),d=Number.isNaN(Number(s))?0:Number(s);return c-d})}},{key:"render",value:function(){var o=this,i=this.props,a=i.pageSize,l=i.locale,s=i.rootPrefixCls,c=i.changeSize,d=i.quickGo,f=i.goButton,m=i.selectComponentClass,h=i.buildOptionText,g=i.selectPrefixCls,v=i.disabled,p=this.state.goInputText,y="".concat(s,"-options"),b=m,O=null,P=null,w=null;if(!c&&!d)return null;var $=this.getPageSizeOptions();if(c&&b){var S=$.map(function(C,I){return u.createElement(b.Option,{key:I,value:C.toString()},(h||o.buildOptionText)(C))});O=u.createElement(b,{disabled:v,prefixCls:g,showSearch:!1,className:"".concat(y,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||$[0]).toString(),onChange:this.changeSize,getPopupContainer:function(I){return I.parentNode},"aria-label":l.page_size,defaultOpen:!1},S);}return d&&(f&&(w=typeof f=="boolean"?u.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:v,className:"".concat(y,"-quick-jumper-button")},l.jump_to_confirm):u.createElement("span",{onClick:this.go,onKeyUp:this.go},f)),P=u.createElement("div",{className:"".concat(y,"-quick-jumper")},l.jump_to,u.createElement("input",{disabled:v,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":l.page}),l.page,w)),u.createElement("li",{className:"".concat(y)},O,P)}}]),n}(u.Component);HC.defaultProps={pageSizeOptions:["10","20","50","100"]};var Qi=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,l=t.showTitle,s=t.onClick,c=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),m=W(f,"".concat(f,"-").concat(o),(n={},U(n,"".concat(f,"-active"),i),U(n,"".concat(f,"-disabled"),!o),U(n,t.className,a),n)),h=function(){s(o);},g=function(p){c(p,s,o);};return u.createElement("li",{title:l?o.toString():null,className:m,onClick:h,onKeyPress:g,tabIndex:0},d(o,"page",u.createElement("a",{rel:"nofollow"},o)))};function jd(){}function Pv(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var Y6=function(t,n,r){return r};function Fr(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var FC=function(e){to(n,e);var t=no(n);function n(r){var o;pn(this,n),o=t.call(this,r),o.paginationNode=u.createRef(),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(Fr(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(c,d){var f=o.props.prefixCls,m=c||u.createElement("button",{type:"button","aria-label":d,className:"".concat(f,"-item-link")});return typeof c=="function"&&(m=u.createElement(c,Z({},o.props))),m},o.isValid=function(c){var d=o.props.total;return Pv(c)&&c!==o.state.current&&Pv(d)&&d>0},o.shouldDisplayQuickJumper=function(){var c=o.props,d=c.showQuickJumper,f=c.total,m=o.state.pageSize;return f<=m?!1:d},o.handleKeyDown=function(c){(c.keyCode===mo.ARROW_UP||c.keyCode===mo.ARROW_DOWN)&&c.preventDefault();},o.handleKeyUp=function(c){var d=o.getValidValue(c),f=o.state.currentInputValue;d!==f&&o.setState({currentInputValue:d}),c.keyCode===mo.ENTER?o.handleChange(d):c.keyCode===mo.ARROW_UP?o.handleChange(d-1):c.keyCode===mo.ARROW_DOWN&&o.handleChange(d+1);},o.handleBlur=function(c){var d=o.getValidValue(c);o.handleChange(d);},o.changePageSize=function(c){var d=o.state.current,f=Fr(c,o.state,o.props);d=d>f?f:d,f===0&&(d=o.state.current),typeof c=="number"&&("pageSize"in o.props||o.setState({pageSize:c}),"current"in o.props||o.setState({current:d,currentInputValue:d})),o.props.onShowSizeChange(d,c),"onChange"in o.props&&o.props.onChange&&o.props.onChange(d,c);},o.handleChange=function(c){var d=o.props,f=d.disabled,m=d.onChange,h=o.state,g=h.pageSize,v=h.current,p=h.currentInputValue;if(o.isValid(c)&&!f){var y=Fr(void 0,o.state,o.props),b=c;return c>y?b=y:c<1&&(b=1),"current"in o.props||o.setState({current:b}),b!==p&&o.setState({currentInputValue:b}),m(b,g),b}return v},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1);},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1);},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage());},o.jumpNext=function(){o.handleChange(o.getJumpNextPage());},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current<Fr(void 0,o.state,o.props)},o.runIfEnter=function(c,d){if(c.key==="Enter"||c.charCode===13){for(var f=arguments.length,m=new Array(f>2?f-2:0),h=2;h<f;h++)m[h-2]=arguments[h];d.apply(void 0,m);}},o.runIfEnterPrev=function(c){o.runIfEnter(c,o.prev);},o.runIfEnterNext=function(c){o.runIfEnter(c,o.next);},o.runIfEnterJumpPrev=function(c){o.runIfEnter(c,o.jumpPrev);},o.runIfEnterJumpNext=function(c){o.runIfEnter(c,o.jumpNext);},o.handleGoTO=function(c){(c.keyCode===mo.ENTER||c.type==="click")&&o.handleChange(o.state.currentInputValue);},o.renderPrev=function(c){var d=o.props,f=d.prevIcon,m=d.itemRender,h=m(c,"prev",o.getItemIcon(f,"prev page")),g=!o.hasPrev();return u.isValidElement(h)?u.cloneElement(h,{disabled:g}):h},o.renderNext=function(c){var d=o.props,f=d.nextIcon,m=d.itemRender,h=m(c,"next",o.getItemIcon(f,"next page")),g=!o.hasNext();return u.isValidElement(h)?u.cloneElement(h,{disabled:g}):h};var i=r.onChange!==jd,a="current"in r;a&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var l=r.defaultCurrent;"current"in r&&(l=r.current);var s=r.defaultPageSize;return "pageSize"in r&&(s=r.pageSize),l=Math.min(l,Fr(s,void 0,r)),o.state={current:l,currentInputValue:l,pageSize:s},o}return bn(n,[{key:"componentDidUpdate",value:function(o,i){var a=this.props.prefixCls;if(i.current!==this.state.current&&this.paginationNode.current){var l=this.paginationNode.current.querySelector(".".concat(a,"-item-").concat(i.current));if(l&&document.activeElement===l){var s;l==null||(s=l.blur)===null||s===void 0||s.call(l);}}}},{key:"getValidValue",value:function(o){var i=o.target.value,a=Fr(void 0,this.state,this.props),l=this.state.currentInputValue,s;return i===""?s=i:Number.isNaN(Number(i))?s=l:i>=a?s=a:s=Number(i),s}},{key:"getShowSizeChanger",value:function(){var o=this.props,i=o.showSizeChanger,a=o.total,l=o.totalBoundaryShowSizeChanger;return typeof i<"u"?i:a>l}},{key:"render",value:function(){var o=this.props,i=o.prefixCls,a=o.className,l=o.style,s=o.disabled,c=o.hideOnSinglePage,d=o.total,f=o.locale,m=o.showQuickJumper,h=o.showLessItems,g=o.showTitle,v=o.showTotal,p=o.simple,y=o.itemRender,b=o.showPrevNextJumpers,O=o.jumpPrevIcon,P=o.jumpNextIcon,w=o.selectComponentClass,$=o.selectPrefixCls,S=o.pageSizeOptions,C=this.state,I=C.current,M=C.pageSize,L=C.currentInputValue;if(c===!0&&d<=M)return null;var _=Fr(void 0,this.state,this.props),E=[],x=null,R=null,k=null,T=null,A=null,z=m&&m.goButton,F=h?1:2,V=I-1>0?I-1:0,j=I+1<_?I+1:_,H=Ci(this.props,{aria:!0,data:!0}),B=v&&u.createElement("li",{className:"".concat(i,"-total-text")},v(d,[d===0?0:(I-1)*M+1,I*M>d?d:I*M]));if(p)return z&&(typeof z=="boolean"?A=u.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},f.jump_to_confirm):A=u.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z),A=u.createElement("li",{title:g?"".concat(f.jump_to).concat(I,"/").concat(_):null,className:"".concat(i,"-simple-pager")},A)),u.createElement("ul",Ce({className:W(i,"".concat(i,"-simple"),U({},"".concat(i,"-disabled"),s),a),style:l,ref:this.paginationNode},H),B,u.createElement("li",{title:g?f.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:W("".concat(i,"-prev"),U({},"".concat(i,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(V)),u.createElement("li",{title:g?"".concat(I,"/").concat(_):null,className:"".concat(i,"-simple-pager")},u.createElement("input",{type:"text",value:L,disabled:s,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),u.createElement("span",{className:"".concat(i,"-slash")},"/"),_),u.createElement("li",{title:g?f.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:W("".concat(i,"-next"),U({},"".concat(i,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(j)),A);if(_<=3+F*2){var X={locale:f,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:y};_||E.push(u.createElement(Qi,Ce({},X,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var J=1;J<=_;J+=1){var Q=I===J;E.push(u.createElement(Qi,Ce({},X,{key:J,page:J,active:Q})));}}else {var K=h?f.prev_3:f.prev_5,Y=h?f.next_3:f.next_5;b&&(x=u.createElement("li",{title:g?K:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:W("".concat(i,"-jump-prev"),U({},"".concat(i,"-jump-prev-custom-icon"),!!O))},y(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(O,"prev page"))),R=u.createElement("li",{title:g?Y:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:W("".concat(i,"-jump-next"),U({},"".concat(i,"-jump-next-custom-icon"),!!P))},y(this.getJumpNextPage(),"jump-next",this.getItemIcon(P,"next page")))),T=u.createElement(Qi,{locale:f,last:!0,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_,page:_,active:!1,showTitle:g,itemRender:y}),k=u.createElement(Qi,{locale:f,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:y});var re=Math.max(1,I-F),ue=Math.min(I+F,_);I-1<=F&&(ue=1+F*2),_-I<=F&&(re=_-F*2);for(var se=re;se<=ue;se+=1){var ee=I===se;E.push(u.createElement(Qi,{locale:f,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:se,page:se,active:ee,showTitle:g,itemRender:y}));}I-1>=F*2&&I!==1+2&&(E[0]=u.cloneElement(E[0],{className:"".concat(i,"-item-after-jump-prev")}),E.unshift(x)),_-I>=F*2&&I!==_-2&&(E[E.length-1]=u.cloneElement(E[E.length-1],{className:"".concat(i,"-item-before-jump-next")}),E.push(R)),re!==1&&E.unshift(k),ue!==_&&E.push(T);}var ae=!this.hasPrev()||!_,q=!this.hasNext()||!_;return u.createElement("ul",Ce({className:W(i,a,U({},"".concat(i,"-disabled"),s)),style:l,ref:this.paginationNode},H),B,u.createElement("li",{title:g?f.prev_page:null,onClick:this.prev,tabIndex:ae?null:0,onKeyPress:this.runIfEnterPrev,className:W("".concat(i,"-prev"),U({},"".concat(i,"-disabled"),ae)),"aria-disabled":ae},this.renderPrev(V)),E,u.createElement("li",{title:g?f.next_page:null,onClick:this.next,tabIndex:q?null:0,onKeyPress:this.runIfEnterNext,className:W("".concat(i,"-next"),U({},"".concat(i,"-disabled"),q)),"aria-disabled":q},this.renderNext(j)),u.createElement(HC,{disabled:s,locale:f,rootPrefixCls:i,selectComponentClass:w,selectPrefixCls:$,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:M,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:z}))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a={};if("current"in o&&(a.current=o.current,o.current!==i.current&&(a.currentInputValue=a.current)),"pageSize"in o&&o.pageSize!==i.pageSize){var l=i.current,s=Fr(o.pageSize,i,o);l=l>s?s:l,"current"in o||(a.current=l,a.currentInputValue=l),a.pageSize=o.pageSize;}return a}}]),n}(u.Component);FC.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:jd,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:jd,locale:X6,style:{},itemRender:Y6,totalBoundaryShowSizeChanger:50};function q6(){const[,e]=u__namespace.useReducer(t=>t+1,0);return e}const Z6=["xxl","xl","lg","md","sm","xs"],Q6=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)`}),J6=e=>{const t=e,n=[].concat(Z6).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o<n.length-1){const s=`screen${i}Max`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);const d=`screen${n[o+1].toUpperCase()}Min`;if(!(t[s]<=t[d]))throw new Error(`${s}<=${d} fails : !(${t[s]}<=${t[d]})`)}}),e};function e8(){const[,e]=eo(),t=Q6(J6(e));return u.useMemo(()=>{const n=new Map;let r=-1,o={};return {matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister();},unregister(){Object.keys(t).forEach(i=>{const a=t[i],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener);}),n.clear();},register(){Object.keys(t).forEach(i=>{const a=t[i],l=c=>{let{matches:d}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:d}));},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s);});},responsiveMap:t}},[e])}function t8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=u.useRef({}),n=q6(),r=e8();return u.useEffect(()=>{const o=r.subscribe(i=>{t.current=i,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const WC=e=>u__namespace.createElement(Xa,Object.assign({},e,{showSearch:!0,size:"small"})),VC=e=>u__namespace.createElement(Xa,Object.assign({},e,{showSearch:!0,size:"middle"}));WC.Option=Xa.Option;VC.Option=Xa.Option;const n8=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}-mini`]:{[`
&:hover ${t}-item:not(${t}-item-active),
&:active ${t}-item:not(${t}-item-active),
&:hover ${t}-item-link,
&:active ${t}-item-link
`]:{backgroundColor:"transparent"}},[`${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"}}}}}},r8=e=>{const{componentCls:t}=e;return {[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini ${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:`${e.itemSizeSM}px`,[`&: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:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},cm(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},o8=e=>{const{componentCls:t}=e;return {[`
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,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:`${e.itemSizeSM}px`}}},[`&${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 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${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:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},i8=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}},"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Eo(e))},[`
${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:`${e.itemSize}px`,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:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`border ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:Object.assign({},Eo(e)),[`&: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:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},qa(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},a8=e=>{const{componentCls:t}=e;return {[`${t}-item`]:Object.assign(Object.assign({display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},Io(e)),{"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},l8=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kt(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:`${e.itemSize-2}px`,verticalAlign:"middle"}}),a8(e)),i8(e)),o8(e)),r8(e)),n8(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"}}},s8=e=>{const{componentCls:t}=e;return {[`${t}${t}-disabled`]:{"&, &: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}-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:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},c8=Ut("Pagination",e=>{const t=mt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},um(e));return [l8(t),e.wireframe&&s8(t)]},e=>({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}));var u8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const d8=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:i,size:a,locale:l,selectComponentClass:s,responsive:c,showSizeChanger:d}=e,f=u8(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=t8(c),{getPrefixCls:h,direction:g,pagination:v={}}=u__namespace.useContext(ot),p=h("pagination",t),[y,b]=c8(p),O=d??v.showSizeChanger,P=u__namespace.useMemo(()=>{const _=u__namespace.createElement("span",{className:`${p}-item-ellipsis`},"•••"),E=u__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?u__namespace.createElement(Si,null):u__namespace.createElement(Es,null)),x=u__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?u__namespace.createElement(Es,null):u__namespace.createElement(Si,null)),R=u__namespace.createElement("a",{className:`${p}-item-link`},u__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?u__namespace.createElement(Iv,{className:`${p}-item-link-icon`}):u__namespace.createElement(Ev,{className:`${p}-item-link-icon`}),_)),k=u__namespace.createElement("a",{className:`${p}-item-link`},u__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?u__namespace.createElement(Ev,{className:`${p}-item-link-icon`}):u__namespace.createElement(Iv,{className:`${p}-item-link-icon`}),_));return {prevIcon:E,nextIcon:x,jumpPrevIcon:R,jumpNextIcon:k}},[g,p]),[w]=Ni("Pagination",mb),$=Object.assign(Object.assign({},w),l),S=kn(a),C=S==="small"||!!(m&&!S&&c),I=h("select",n),M=W({[`${p}-mini`]:C,[`${p}-rtl`]:g==="rtl"},v==null?void 0:v.className,r,o,b),L=Object.assign(Object.assign({},v==null?void 0:v.style),i);return y(u__namespace.createElement(FC,Object.assign({},P,f,{style:L,prefixCls:p,selectPrefixCls:I,className:M,selectComponentClass:s||(C?WC:VC),locale:$,showSizeChanger:O})))},f8=d8;var m8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const h8={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},g8=u__namespace.forwardRef((e,t)=>{const n=c=>{const{keyCode:d}=c;d===ie.ENTER&&c.preventDefault();},r=c=>{const{keyCode:d}=c,{onClick:f}=e;d===ie.ENTER&&f&&f();},{style:o,noStyle:i,disabled:a}=e,l=m8(e,["style","noStyle","disabled"]);let s={};return i||(s=Object.assign({},h8)),a&&(s.pointerEvents="none"),s=Object.assign(Object.assign({},s),o),u__namespace.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},l,{onKeyDown:n,onKeyUp:r,style:s}))}),v8=g8,p8=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:i,prefixCls:a,onClick:l,onRemove:s,showRemove:c}=e,d=W(`${a}-content-item`,{[`${a}-content-item-disabled`]:i||r.disabled,[`${a}-content-item-checked`]:o});let f;(typeof t=="string"||typeof t=="number")&&(f=String(t));const[m]=Ni("Transfer",Zr.Transfer),h={className:d,title:f},g=u__namespace.createElement("span",{className:`${a}-content-item-text`},n);return c?u__namespace.createElement("li",Object.assign({},h),g,u__namespace.createElement(v8,{disabled:i||r.disabled,className:`${a}-content-item-remove`,"aria-label":m==null?void 0:m.remove,onClick:()=>{s==null||s(r);}},u__namespace.createElement(C6,null))):(h.onClick=i||r.disabled?void 0:()=>l(r),u__namespace.createElement("li",Object.assign({},h),u__namespace.createElement(Cm,{className:`${a}-checkbox`,checked:o,disabled:i||r.disabled}),g))},b8=u__namespace.memo(p8),y8=["handleFilter","handleClear","checkedKeys"],C8=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),S8=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:i,showRemove:a,pagination:l,onScroll:s,onItemSelect:c,onItemRemove:d}=e,[f,m]=u__namespace.useState(1),h=u__namespace.useMemo(()=>l?C8(typeof l=="object"?l:{}):null,[l]),[g,v]=zt(10,{value:h==null?void 0:h.pageSize});u__namespace.useEffect(()=>{if(h){const S=Math.ceil(r.length/g);m(Math.min(f,S));}},[r,h,g]);const p=S=>{c==null||c(S.key,!o.includes(S.key));},y=S=>{d==null||d([S.key]);},b=S=>{m(S);},O=(S,C)=>{m(S),v(C);},P=u__namespace.useMemo(()=>h?r.slice((f-1)*g,f*g):r,[f,r,h,g]);u__namespace.useImperativeHandle(t,()=>({items:P}));const w=h?u__namespace.createElement(f8,{size:"small",disabled:i,simple:h.simple,pageSize:g,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:f,onChange:b,onShowSizeChange:O}):null,$=W(`${n}-content`,{[`${n}-content-show-remove`]:a});return u__namespace.createElement(u__namespace.Fragment,null,u__namespace.createElement("ul",{className:$,onScroll:s},(P||[]).map(S=>{let{renderedEl:C,renderedText:I,item:M}=S;return u__namespace.createElement(b8,{key:M.key,item:M,renderedText:I,renderedEl:C,prefixCls:n,showRemove:a,onClick:p,onRemove:y,checked:o.includes(M.key),disabled:i||M.disabled})})),w)},w8=u__namespace.forwardRef(S8),$8=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:i,handleClear:a}=e,l=u__namespace.useCallback(s=>{i==null||i(s),s.target.value===""&&(a==null||a());},[i]);return u__namespace.createElement(iy,{placeholder:t,className:r,value:n,onChange:l,disabled:o,allowClear:!0,prefix:u__namespace.createElement(om,null)})},KC=$8,x8=()=>null;function E8(e){return !!(e&&!Qr(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Ji(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const I8=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:o,disabled:i,showSearch:a=!1,style:l,searchPlaceholder:s,notFoundContent:c,selectAll:d,selectCurrent:f,selectInvert:m,removeAll:h,removeCurrent:g,showSelectAll:v=!0,showRemove:p,pagination:y,direction:b,itemsUnit:O,itemUnit:P,selectAllLabel:w,footer:$,renderList:S,onItemSelectAll:C,onItemRemove:I,handleFilter:M,handleClear:L,filterOption:_,render:E=x8}=e,[x,R]=u.useState(""),k=u.useRef({}),T=q=>{R(q.target.value),M(q);},A=()=>{R(""),L();},z=(q,te)=>_?_(x,te):q.includes(x),F=q=>{let te=S?S(q):null;const ce=!!te;return ce||(te=u.createElement(w8,Object.assign({ref:k},q))),{customize:ce,bodyContent:te}},V=q=>{const te=E(q),ce=E8(te);return {item:q,renderedEl:ce?te.label:te,renderedText:ce?te.value:te}},j=u.useMemo(()=>Array.isArray(c)?c[b==="left"?0:1]:c,[c,b]),[H,B]=u.useMemo(()=>{const q=[],te=[];return n.forEach(ce=>{const fe=V(ce);x&&!z(fe.renderedText,ce)||(q.push(ce),te.push(fe));}),[q,te]},[n,x]),X=u.useMemo(()=>{if(o.length===0)return "none";const q=Ps(o);return H.every(te=>q.has(te.key)||!!te.disabled)?"all":"part"},[o,H]),J=u.useMemo(()=>{const q=a?u.createElement("div",{className:`${t}-body-search-wrapper`},u.createElement(KC,{prefixCls:`${t}-search`,onChange:T,handleClear:A,placeholder:s,value:x,disabled:i})):null,{customize:te,bodyContent:ce}=F(Object.assign(Object.assign({},vn(e,y8)),{filteredItems:H,filteredRenderItems:B,selectedKeys:o}));let fe;return te?fe=u.createElement("div",{className:`${t}-body-customize-wrapper`},ce):fe=H.length?ce:u.createElement("div",{className:`${t}-body-not-found`},j),u.createElement("div",{className:W(a?`${t}-body ${t}-body-with-search`:`${t}-body`)},q,fe)},[a,t,s,x,i,o,H,B,j]),Q=u.createElement(Cm,{disabled:n.length===0||i,checked:X==="all",indeterminate:X==="part",className:`${t}-checkbox`,onChange:()=>{C==null||C(H.filter(q=>!q.disabled).map(q=>{let{key:te}=q;return te}),X!=="all");}}),K=(q,te)=>{if(w)return typeof w=="function"?w({selectedCount:q,totalCount:te}):w;const ce=te>1?O:P;return u.createElement(u.Fragment,null,(q>0?`${q}/`:"")+te," ",ce)},Y=$&&($.length<2?$(e):$(e,{direction:b})),re=W(t,{[`${t}-with-pagination`]:!!y,[`${t}-with-footer`]:!!Y}),ue=Y?u.createElement("div",{className:`${t}-footer`},Y):null,se=!p&&!y&&Q;let ee;p?ee=[y?{key:"removeCurrent",label:g,onClick(){var q;const te=Ji((((q=k.current)===null||q===void 0?void 0:q.items)||[]).map(ce=>ce.item));I==null||I(te);}}:null,{key:"removeAll",label:h,onClick(){I==null||I(Ji(H));}}].filter(Boolean):ee=[{key:"selectAll",label:d,onClick(){const q=Ji(H);C==null||C(q,q.length!==o.length);}},y?{key:"selectCurrent",label:f,onClick(){var q;const te=((q=k.current)===null||q===void 0?void 0:q.items)||[];C==null||C(Ji(te.map(ce=>ce.item)),!0);}}:null,{key:"selectInvert",label:m,onClick(){var q;const te=Ji(y?(((q=k.current)===null||q===void 0?void 0:q.items)||[]).map(he=>he.item):H),ce=new Set(o),fe=[];te.forEach(he=>{ce.has(he)||fe.push(he);}),C==null||C(fe,"replace");}}];const ae=u.createElement(AC,{className:`${t}-header-dropdown`,menu:{items:ee},disabled:i},u.createElement(nm,null));return u.createElement("div",{className:re,style:l},u.createElement("div",{className:`${t}-header`},v?u.createElement(u.Fragment,null,se,ae):null,u.createElement("span",{className:`${t}-header-selected`},K(o.length,H.length)),u.createElement("span",{className:`${t}-header-title`},r)),J,ue)},Bd=I8,O8=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:i="",leftActive:a,rightActive:l,className:s,style:c,direction:d,oneWay:f}=e;return u__namespace.createElement("div",{className:s,style:c},u__namespace.createElement(Jt,{type:"primary",size:"small",disabled:t||!l,onClick:r,icon:d!=="rtl"?u__namespace.createElement(Si,null):u__namespace.createElement(Es,null)},i),!f&&u__namespace.createElement(Jt,{type:"primary",size:"small",disabled:t||!a,onClick:n,icon:d!=="rtl"?u__namespace.createElement(Es,null):u__namespace.createElement(Si,null)},o))},GC=O8,P8=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:i,margin:a}=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:`${a}px 0 ${i}px`}},[`${s}[disabled]`]:{backgroundColor:"transparent"}}}},Mv=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},M8=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},Mv(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},Mv(e,e.colorWarning))}},_8=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:l,itemPaddingBlock:s,controlItemBgActive:c,colorTextDisabled:d,listHeight:f,listWidth:m,listWidthLG:h,fontSizeIcon:g,marginXS:v,paddingSM:p,lineType:y,antCls:b,iconCls:O,motionDurationSlow:P,controlItemBgHover:w,borderRadiusLG:$,colorBgContainer:S,colorText:C,controlItemBgActiveHover:I}=e;return {display:"flex",flexDirection:"column",width:m,height:f,border:`${o}px ${y} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:h,height:"auto"},"&-search":{[`${O}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${l-o}px ${p}px ${l}px`,color:C,background:S,borderBottom:`${o}px ${y} ${r}`,borderRadius:`${$}px ${$}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},xo),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},To()),{fontSize:g,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:i,padding:`${s}px ${p}px`,transition:`all ${P}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},xo),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${P}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",inset:`-${s}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:w,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:I}},"&-checked":{backgroundColor:c},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${o}px ${y} ${r}`,[`${b}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${o}px ${y} ${r}`}}},R8=e=>{const{antCls:t,iconCls:n,componentCls:r,headerHeight:o,marginXS:i,marginXXS:a,fontSizeIcon:l,fontSize:s,lineHeight:c,colorBgContainerDisabled:d}=e;return {[r]:Object.assign(Object.assign({},kt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:d}},[`${r}-list`]:_8(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${i}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:a},[n]:{fontSize:l}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(s*c)}})}},T8=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},N8=Ut("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,i=Math.round(t*n),a=mt(e,{transferHeaderVerticalPadding:Math.ceil((o-r-i)/2)});return [R8(a),P8(a),M8(a),T8(a)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o}=e,i=Math.round(t*n);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-i)/2}}),Ac=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:o=[],operations:i=[],style:a={},listStyle:l={},locale:s={},titles:c,disabled:d,showSearch:f=!1,operationStyle:m,showSelectAll:h,oneWay:g,pagination:v,status:p,prefixCls:y,className:b,rootClassName:O,filterOption:P,render:w,footer:$,children:S,rowKey:C,onScroll:I,onChange:M,onSearch:L,onSelectChange:_}=e,{getPrefixCls:E,renderEmpty:x,direction:R,transfer:k}=u.useContext(ot),T=E("transfer",y),[A,z]=N8(T),[F,V,j]=K6(t,C,n),[H,B,X,J]=U6(V,j,r),Q=u.useCallback((de,ne)=>{if(de==="left"){const me=typeof ne=="function"?ne(H||[]):ne;X(me);}else {const me=typeof ne=="function"?ne(B||[]):ne;J(me);}},[H,B]),K=u.useCallback((de,ne)=>{de==="left"?_==null||_(ne,B):_==null||_(H,ne);},[H,B]),Y=de=>{var ne;return (ne=c??de.titles)!==null&&ne!==void 0?ne:[]},re=de=>{I==null||I("left",de);},ue=de=>{I==null||I("right",de);},se=de=>{const ne=de==="right"?H:B,me=V6(F),le=ne.filter(Ae=>!me.has(Ae)),Ne=Ps(le),tt=de==="right"?le.concat(n):n.filter(Ae=>!Ne.has(Ae)),ct=de==="right"?"left":"right";Q(ct,[]),K(ct,[]),M==null||M(tt,de,le);},ee=()=>{se("left");},ae=()=>{se("right");},q=(de,ne,me)=>{Q(de,le=>{let Ne=[];if(me==="replace")Ne=ne;else if(me)Ne=Array.from(new Set([].concat(Ge(le),Ge(ne))));else {const tt=Ps(ne);Ne=le.filter(ct=>!tt.has(ct));}return K(de,Ne),Ne});},te=(de,ne)=>{q("left",de,ne);},ce=(de,ne)=>{q("right",de,ne);},fe=de=>L==null?void 0:L("left",de.target.value),he=de=>L==null?void 0:L("right",de.target.value),ge=()=>L==null?void 0:L("left",""),be=()=>L==null?void 0:L("right",""),Re=(de,ne,me)=>{const le=Ge(de==="left"?H:B),Ne=le.indexOf(ne);Ne>-1&&le.splice(Ne,1),me&&le.push(ne),K(de,le),e.selectedKeys||Q(de,le);},De=(de,ne)=>{Re("left",de,ne);},$e=(de,ne)=>{Re("right",de,ne);},we=de=>{Q("right",[]),M==null||M(n.filter(ne=>!de.includes(ne)),"left",Ge(de));},Te=de=>typeof l=="function"?l({direction:de}):l||{},Je=u.useContext(Vn),{hasFeedback:Ve,status:Ye}=Je,Me=de=>Object.assign(Object.assign(Object.assign({},de),{notFoundContent:(x==null?void 0:x("Transfer"))||u.createElement(D0,{componentName:"Transfer"})}),s),ke=Ka(Ye,p),qe=!S&&v,et=B.length>0,ye=H.length>0,xe=W(T,{[`${T}-disabled`]:d,[`${T}-customize-list`]:!!S,[`${T}-rtl`]:R==="rtl"},Zn(T,ke,Ve),k==null?void 0:k.className,b,O,z),[ze]=Ni("Transfer",Zr.Transfer),Le=Me(ze),[rt,Ue]=Y(Le);return A(u.createElement("div",{className:xe,style:Object.assign(Object.assign({},k==null?void 0:k.style),a)},u.createElement(Bd,Object.assign({prefixCls:`${T}-list`,titleText:rt,dataSource:V,filterOption:P,style:Te("left"),checkedKeys:H,handleFilter:fe,handleClear:ge,onItemSelect:De,onItemSelectAll:te,render:w,showSearch:f,renderList:S,footer:$,onScroll:re,disabled:d,direction:R==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:o[0],pagination:qe},Le)),u.createElement(GC,{className:`${T}-operation`,rightActive:ye,rightArrowText:i[0],moveToRight:ae,leftActive:et,leftArrowText:i[1],moveToLeft:ee,style:m,disabled:d,direction:R,oneWay:g}),u.createElement(Bd,Object.assign({prefixCls:`${T}-list`,titleText:Ue,dataSource:j,filterOption:P,style:Te("right"),checkedKeys:B,handleFilter:he,handleClear:be,onItemSelect:$e,onItemSelectAll:ce,onItemRemove:we,render:w,showSearch:f,renderList:S,footer:$,onScroll:ue,disabled:d,direction:R==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:o[1],showRemove:g,pagination:qe},Le))))};Ac.List=Bd;Ac.Search=KC;Ac.Operation=GC;const k8=Ac;function UC(){}var Ao=u__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function Hd(e,t,n){return (e-t)/(n-t)}function Fm(e,t,n,r){var o=Hd(t,n,r),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function oi(e,t){return Array.isArray(e)?e[t]:e}var L8=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],A8=u__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,l=e.onStartMove,s=e.style,c=e.render,d=e.dragging,f=e.onOffsetChange,m=Qe(e,L8),h=u__namespace.useContext(Ao),g=h.min,v=h.max,p=h.direction,y=h.disabled,b=h.keyboard,O=h.range,P=h.tabIndex,w=h.ariaLabelForHandle,$=h.ariaLabelledByForHandle,S=h.ariaValueTextFormatterForHandle,C="".concat(o,"-handle"),I=function(x){y||l(x,a);},M=function(x){if(!y&&b){var R=null;switch(x.which||x.keyCode){case ie.LEFT:R=p==="ltr"||p==="btt"?-1:1;break;case ie.RIGHT:R=p==="ltr"||p==="btt"?1:-1;break;case ie.UP:R=p!=="ttb"?1:-1;break;case ie.DOWN:R=p!=="ttb"?-1:1;break;case ie.HOME:R="min";break;case ie.END:R="max";break;case ie.PAGE_UP:R=2;break;case ie.PAGE_DOWN:R=-2;break}R!==null&&(x.preventDefault(),f(R,a));}},L=Fm(p,i,g,v),_=u__namespace.createElement("div",Ce({ref:t,className:W(C,(n={},U(n,"".concat(C,"-").concat(a+1),O),U(n,"".concat(C,"-dragging"),d),n)),style:Z(Z({},L),s),onMouseDown:I,onTouchStart:I,onKeyDown:M,tabIndex:y?null:oi(P,a),role:"slider","aria-valuemin":g,"aria-valuemax":v,"aria-valuenow":i,"aria-disabled":y,"aria-label":oi(w,a),"aria-labelledby":oi($,a),"aria-valuetext":(r=oi(S,a))===null||r===void 0?void 0:r(i)},m));return c&&(_=c(_,{index:a,prefixCls:o,value:i,dragging:d})),_}),D8=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],z8=u__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,l=e.handleRender,s=e.draggingIndex,c=Qe(e,D8),d=u__namespace.useRef({});return u__namespace.useImperativeHandle(t,function(){return {focus:function(m){var h;(h=d.current[m])===null||h===void 0||h.focus();}}}),u__namespace.createElement(u__namespace.Fragment,null,a.map(function(f,m){return u__namespace.createElement(A8,Ce({ref:function(g){g?d.current[m]=g:delete d.current[m];},dragging:s===m,prefixCls:n,style:oi(r,m),key:m,value:f,valueIndex:m,onStartMove:o,onOffsetChange:i,render:l},c))}))});function _v(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function j8(e,t,n,r,o,i,a,l,s){var c=u__namespace.useState(null),d=G(c,2),f=d[0],m=d[1],h=u__namespace.useState(-1),g=G(h,2),v=g[0],p=g[1],y=u__namespace.useState(n),b=G(y,2),O=b[0],P=b[1],w=u__namespace.useState(n),$=G(w,2),S=$[0],C=$[1],I=u__namespace.useRef(null),M=u__namespace.useRef(null);u__namespace.useEffect(function(){v===-1&&P(n);},[n,v]),u__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",I.current),document.removeEventListener("mouseup",M.current),document.removeEventListener("touchmove",I.current),document.removeEventListener("touchend",M.current);}},[]);var L=function(T,A){O.some(function(z,F){return z!==T[F]})&&(A!==void 0&&m(A),P(T),a(T));},_=function(T,A){if(T===-1){var z=S[0],F=S[S.length-1],V=r-z,j=o-F,H=A*(o-r);H=Math.max(H,V),H=Math.min(H,j);var B=i(z+H);H=B-z;var X=S.map(function(Y){return Y+H});L(X);}else {var J=(o-r)*A,Q=Ge(O);Q[T]=S[T];var K=s(Q,J,T,"dist");L(K.values,K.value);}},E=u__namespace.useRef(_);E.current=_;var x=function(T,A){T.stopPropagation();var z=n[A];p(A),m(z),C(n);var F=_v(T),V=F.pageX,j=F.pageY,H=function(J){J.preventDefault();var Q=_v(J),K=Q.pageX,Y=Q.pageY,re=K-V,ue=Y-j,se=e.current.getBoundingClientRect(),ee=se.width,ae=se.height,q;switch(t){case"btt":q=-ue/ae;break;case"ttb":q=ue/ae;break;case"rtl":q=-re/ee;break;default:q=re/ee;}E.current(A,q);},B=function X(J){J.preventDefault(),document.removeEventListener("mouseup",X),document.removeEventListener("mousemove",H),document.removeEventListener("touchend",X),document.removeEventListener("touchmove",H),I.current=null,M.current=null,p(-1),l();};document.addEventListener("mouseup",B),document.addEventListener("mousemove",H),document.addEventListener("touchend",B),document.addEventListener("touchmove",H),I.current=H,M.current=B;},R=u__namespace.useMemo(function(){var k=Ge(n).sort(function(A,z){return A-z}),T=Ge(O).sort(function(A,z){return A-z});return k.every(function(A,z){return A===T[z]})?O:n},[n,O]);return [v,f,R,x]}function B8(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,l=u__namespace.useContext(Ao),s=l.direction,c=l.min,d=l.max,f=l.disabled,m=l.range,h="".concat(t,"-track"),g=Hd(r,c,d),v=Hd(o,c,d),p=function(O){!f&&a&&a(O,-1);},y={};switch(s){case"rtl":y.right="".concat(g*100,"%"),y.width="".concat(v*100-g*100,"%");break;case"btt":y.bottom="".concat(g*100,"%"),y.height="".concat(v*100-g*100,"%");break;case"ttb":y.top="".concat(g*100,"%"),y.height="".concat(v*100-g*100,"%");break;default:y.left="".concat(g*100,"%"),y.width="".concat(v*100-g*100,"%");}return u__namespace.createElement("div",{className:W(h,m&&"".concat(h,"-").concat(i+1)),style:Z(Z({},y),n),onMouseDown:p,onTouchStart:p})}function H8(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=u__namespace.useContext(Ao),l=a.included,s=a.range,c=a.min,d=u__namespace.useMemo(function(){if(!s){if(r.length===0)return [];var f=o??c,m=r[0];return [{start:Math.min(f,m),end:Math.max(f,m)}]}for(var h=[],g=0;g<r.length-1;g+=1)h.push({start:r[g],end:r[g+1]});return h},[r,s,o,c]);return l?d.map(function(f,m){var h=f.start,g=f.end;return u__namespace.createElement(B8,{index:m,prefixCls:t,style:oi(n,m),start:h,end:g,key:m,onStartMove:i})}):null}function F8(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=u__namespace.useContext(Ao),l=a.min,s=a.max,c=a.direction,d=a.includedStart,f=a.includedEnd,m=a.included,h="".concat(t,"-text"),g=Fm(c,o,l,s);return u__namespace.createElement("span",{className:W(h,U({},"".concat(h,"-active"),m&&d<=o&&o<=f)),style:Z(Z({},g),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){i(o);}},r)}function W8(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?u__namespace.createElement("div",{className:o},n.map(function(i){var a=i.value,l=i.style,s=i.label;return u__namespace.createElement(F8,{key:a,prefixCls:o,style:l,value:a,onClick:r},s)})):null}function V8(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=u__namespace.useContext(Ao),a=i.min,l=i.max,s=i.direction,c=i.included,d=i.includedStart,f=i.includedEnd,m="".concat(t,"-dot"),h=c&&d<=n&&n<=f,g=Z(Z({},Fm(s,n,a,l)),typeof r=="function"?r(n):r);return h&&(g=Z(Z({},g),typeof o=="function"?o(n):o)),u__namespace.createElement("span",{className:W(m,U({},"".concat(m,"-active"),h)),style:g})}function K8(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=u__namespace.useContext(Ao),l=a.min,s=a.max,c=a.step,d=u__namespace.useMemo(function(){var f=new Set;if(n.forEach(function(h){f.add(h.value);}),r&&c!==null)for(var m=l;m<=s;)f.add(m),m+=c;return Array.from(f)},[l,s,c,r,n]);return u__namespace.createElement("div",{className:"".concat(t,"-step")},d.map(function(f){return u__namespace.createElement(V8,{prefixCls:t,key:f,value:f,style:o,activeStyle:i})}))}function G8(e,t,n,r,o,i){var a=u__namespace.useCallback(function(h){var g=isFinite(h)?h:e;return g=Math.min(t,h),g=Math.max(e,g),g},[e,t]),l=u__namespace.useCallback(function(h){if(n!==null){var g=e+Math.round((a(h)-e)/n)*n,v=function(O){return (String(O).split(".")[1]||"").length},p=Math.max(v(n),v(t),v(e)),y=Number(g.toFixed(p));return e<=y&&y<=t?y:null}return null},[n,e,t,a]),s=u__namespace.useCallback(function(h){var g=a(h),v=r.map(function(b){return b.value});n!==null&&v.push(l(h)),v.push(e,t);var p=v[0],y=t-e;return v.forEach(function(b){var O=Math.abs(g-b);O<=y&&(p=b,y=O);}),p},[e,t,r,n,a,l]),c=function h(g,v,p){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var b,O=g[p],P=O+v,w=[];r.forEach(function(M){w.push(M.value);}),w.push(e,t),w.push(l(O));var $=v>0?1:-1;y==="unit"?w.push(l(O+$*n)):w.push(l(P)),w=w.filter(function(M){return M!==null}).filter(function(M){return v<0?M<=O:M>=O}),y==="unit"&&(w=w.filter(function(M){return M!==O}));var S=y==="unit"?O:P;b=w[0];var C=Math.abs(b-S);if(w.forEach(function(M){var L=Math.abs(M-S);L<C&&(b=M,C=L);}),b===void 0)return v<0?e:t;if(y==="dist")return b;if(Math.abs(v)>1){var I=Ge(g);return I[p]=b,h(I,v-$,p,y)}return b}else {if(v==="min")return e;if(v==="max")return t}},d=function(g,v,p){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=g[p],O=c(g,v,p,y);return {value:O,changed:O!==b}},f=function(g){return i===null&&g===0||typeof i=="number"&&g<i},m=function(g,v,p){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=g.map(s),O=b[p],P=c(b,v,p,y);if(b[p]=P,o===!1){var w=i||0;p>0&&b[p-1]!==O&&(b[p]=Math.max(b[p],b[p-1]+w)),p<b.length-1&&b[p+1]!==O&&(b[p]=Math.min(b[p],b[p+1]-w));}else if(typeof i=="number"||i===null){for(var $=p+1;$<b.length;$+=1)for(var S=!0;f(b[$]-b[$-1])&&S;){var C=d(b,1,$);b[$]=C.value,S=C.changed;}for(var I=p;I>0;I-=1)for(var M=!0;f(b[I]-b[I-1])&&M;){var L=d(b,-1,I-1);b[I-1]=L.value,M=L.changed;}for(var _=b.length-1;_>0;_-=1)for(var E=!0;f(b[_]-b[_-1])&&E;){var x=d(b,-1,_-1);b[_-1]=x.value,E=x.changed;}for(var R=0;R<b.length-1;R+=1)for(var k=!0;f(b[R+1]-b[R])&&k;){var T=d(b,1,R+1);b[R+1]=T.value,k=T.changed;}}return {value:b[p],values:b}};return [s,m]}var U8=u__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-slider":r,i=e.className,a=e.style,l=e.disabled,s=l===void 0?!1:l,c=e.keyboard,d=c===void 0?!0:c,f=e.autoFocus,m=e.onFocus,h=e.onBlur,g=e.min,v=g===void 0?0:g,p=e.max,y=p===void 0?100:p,b=e.step,O=b===void 0?1:b,P=e.value,w=e.defaultValue,$=e.range,S=e.count,C=e.onChange,I=e.onBeforeChange,M=e.onAfterChange,L=e.allowCross,_=L===void 0?!0:L,E=e.pushable,x=E===void 0?!1:E,R=e.draggableTrack,k=e.reverse,T=e.vertical,A=e.included,z=A===void 0?!0:A,F=e.startPoint,V=e.trackStyle,j=e.handleStyle,H=e.railStyle,B=e.dotStyle,X=e.activeDotStyle,J=e.marks,Q=e.dots,K=e.handleRender,Y=e.tabIndex,re=Y===void 0?0:Y,ue=e.ariaLabelForHandle,se=e.ariaLabelledByForHandle,ee=e.ariaValueTextFormatterForHandle,ae=u__namespace.useRef(),q=u__namespace.useRef(),te=u__namespace.useMemo(function(){return T?k?"ttb":"btt":k?"rtl":"ltr"},[k,T]),ce=u__namespace.useMemo(function(){return isFinite(v)?v:0},[v]),fe=u__namespace.useMemo(function(){return isFinite(y)?y:100},[y]),he=u__namespace.useMemo(function(){return O!==null&&O<=0?1:O},[O]),ge=u__namespace.useMemo(function(){return x===!0?he:x>=0?x:!1},[x,he]),be=u__namespace.useMemo(function(){var Fe=Object.keys(J||{});return Fe.map(function(Xe){var je=J[Xe],bt={value:Number(Xe)};return je&&dt(je)==="object"&&!u__namespace.isValidElement(je)&&("label"in je||"style"in je)?(bt.style=je.style,bt.label=je.label):bt.label=je,bt}).filter(function(Xe){var je=Xe.label;return je||typeof je=="number"}).sort(function(Xe,je){return Xe.value-je.value})},[J]),Re=G8(ce,fe,he,be,_,ge),De=G(Re,2),$e=De[0],we=De[1],Te=zt(w,{value:P}),Je=G(Te,2),Ve=Je[0],Ye=Je[1],Me=u__namespace.useMemo(function(){var Fe=Ve==null?[]:Array.isArray(Ve)?Ve:[Ve],Xe=G(Fe,1),je=Xe[0],bt=je===void 0?ce:je,ht=Ve===null?[]:[bt];if($){if(ht=Ge(Fe),S||Ve===void 0){var Yt=S>=0?S+1:2;for(ht=ht.slice(0,Yt);ht.length<Yt;){var Be;ht.push((Be=ht[ht.length-1])!==null&&Be!==void 0?Be:ce);}}ht.sort(function(Ke,ut){return Ke-ut});}return ht.forEach(function(Ke,ut){ht[ut]=$e(Ke);}),ht},[Ve,$,ce,S,$e]),ke=u__namespace.useRef(Me);ke.current=Me;var qe=function(Xe){return $?Xe:Xe[0]},et=function(Xe){var je=Ge(Xe).sort(function(bt,ht){return bt-ht});C&&!ec(je,ke.current,!0)&&C(qe(je)),Ye(je);},ye=function(Xe){if(!s){var je=0,bt=fe-ce;Me.forEach(function(Yt,Be){var Ke=Math.abs(Xe-Yt);Ke<=bt&&(bt=Ke,je=Be);});var ht=Ge(Me);ht[je]=Xe,$&&!Me.length&&S===void 0&&ht.push(Xe),I==null||I(qe(ht)),et(ht),M==null||M(qe(ht));}},xe=function(Xe){Xe.preventDefault();var je=q.current.getBoundingClientRect(),bt=je.width,ht=je.height,Yt=je.left,Be=je.top,Ke=je.bottom,ut=je.right,wt=Xe.clientX,Kt=Xe.clientY,Lt;switch(te){case"btt":Lt=(Ke-Kt)/ht;break;case"ttb":Lt=(Kt-Be)/ht;break;case"rtl":Lt=(ut-wt)/bt;break;default:Lt=(wt-Yt)/bt;}var cn=ce+Lt*(fe-ce);ye($e(cn));},ze=u__namespace.useState(null),Le=G(ze,2),rt=Le[0],Ue=Le[1],de=function(Xe,je){if(!s){var bt=we(Me,Xe,je);I==null||I(qe(Me)),et(bt.values),M==null||M(qe(bt.values)),Ue(bt.value);}};u__namespace.useEffect(function(){if(rt!==null){var Fe=Me.indexOf(rt);Fe>=0&&ae.current.focus(Fe);}Ue(null);},[rt]);var ne=u__namespace.useMemo(function(){return R&&he===null?!1:R},[R,he]),me=function(){M==null||M(qe(ke.current));},le=j8(q,te,Me,ce,fe,$e,et,me,we),Ne=G(le,4),tt=Ne[0],ct=Ne[1],Ae=Ne[2],Se=Ne[3],ve=function(Xe,je){Se(Xe,je),I==null||I(qe(ke.current));},Ee=tt!==-1;u__namespace.useEffect(function(){if(!Ee){var Fe=Me.lastIndexOf(ct);ae.current.focus(Fe);}},[Ee]);var _e=u__namespace.useMemo(function(){return Ge(Ae).sort(function(Fe,Xe){return Fe-Xe})},[Ae]),Ze=u__namespace.useMemo(function(){return $?[_e[0],_e[_e.length-1]]:[ce,_e[0]]},[_e,$,ce]),ft=G(Ze,2),pt=ft[0],Vt=ft[1];u__namespace.useImperativeHandle(t,function(){return {focus:function(){ae.current.focus(0);},blur:function(){var Xe=document,je=Xe.activeElement;q.current.contains(je)&&(je==null||je.blur());}}}),u__namespace.useEffect(function(){f&&ae.current.focus(0);},[]);var jt=u__namespace.useMemo(function(){return {min:ce,max:fe,direction:te,disabled:s,keyboard:d,step:he,included:z,includedStart:pt,includedEnd:Vt,range:$,tabIndex:re,ariaLabelForHandle:ue,ariaLabelledByForHandle:se,ariaValueTextFormatterForHandle:ee}},[ce,fe,te,s,d,he,z,pt,Vt,$,re,ue,se,ee]);return u__namespace.createElement(Ao.Provider,{value:jt},u__namespace.createElement("div",{ref:q,className:W(o,i,(n={},U(n,"".concat(o,"-disabled"),s),U(n,"".concat(o,"-vertical"),T),U(n,"".concat(o,"-horizontal"),!T),U(n,"".concat(o,"-with-marks"),be.length),n)),style:a,onMouseDown:xe},u__namespace.createElement("div",{className:"".concat(o,"-rail"),style:H}),u__namespace.createElement(H8,{prefixCls:o,style:V,values:_e,startPoint:F,onStartMove:ne?ve:null}),u__namespace.createElement(K8,{prefixCls:o,marks:be,dots:Q,style:B,activeStyle:X}),u__namespace.createElement(z8,{ref:ae,prefixCls:o,style:j,values:Ae,draggingIndex:tt,onStartMove:ve,onOffsetChange:de,onFocus:m,onBlur:h,handleRender:K}),u__namespace.createElement(W8,{prefixCls:o,marks:be,onClick:ye})))});const X8=u__namespace.forwardRef((e,t)=>{const{open:n}=e,r=u.useRef(null),o=u.useRef(null);function i(){It.cancel(o.current),o.current=null;}function a(){o.current=It(()=>{var l;(l=r.current)===null||l===void 0||l.forceAlign(),o.current=null;});}return u__namespace.useEffect(()=>(n?a():i(),i),[n,e.title]),u__namespace.createElement(Ua,Object.assign({ref:Sn(r,t)},e))}),Y8=X8,q8=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:l}=e;return {[t]:Object.assign(Object.assign({},kt(e)),{position:"relative",height:r,margin:`${a}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.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:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px 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 ${e.handleLineWidth}px ${new Wt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`
${t}-mark-text,
${t}-dot
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},XC=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"paddingBlock":"paddingInline",l=t?"width":"height",s=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",d=t?"top":"insetInlineStart";return {[a]:r,[s]:r*3,[`${n}-rail`]:{[l]:"100%",[s]:r},[`${n}-track`]:{[s]:r},[`${n}-handle`]:{[c]:(r*3-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[d]:o,[l]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[d]:r,[l]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-i)/2}}},Z8=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},XC(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Q8=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},XC(e,!1)),{height:"100%"})}},J8=Ut("Slider",e=>{const t=mt(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [q8(t),Z8(t),Q8(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*3;return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});var eB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const tB=e=>typeof e=="number"?e.toString():"",nB=u.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:l,tooltipPrefixCls:s,tipFormatter:c,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:m}=e,h=eB(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:g,slider:v,getPrefixCls:p,getPopupContainer:y}=u.useContext(ot),b=u.useContext(br),O=l??b,[P,w]=u.useState({}),$=(k,T)=>{w(A=>Object.assign(Object.assign({},A),{[k]:T}));},S=(k,T)=>k||(T?g==="rtl"?"left":"right":"top"),C=p("slider",n),[I,M]=J8(C),L=W(o,v==null?void 0:v.className,i,{[`${C}-rtl`]:g==="rtl"},M);g==="rtl"&&!h.vertical&&(h.reverse=!h.reverse);const[_,E]=u.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),x=(k,T)=>{var A;const{index:z,dragging:F}=T,{tooltip:V={},vertical:j}=e,H=Object.assign({},V),{open:B,placement:X,getPopupContainer:J,prefixCls:Q,formatter:K}=H;let Y;K||K===null?Y=K:c||c===null?Y=c:Y=tB;const re=Y?P[z]||F:!1,ue=(A=B??d)!==null&&A!==void 0?A:B===void 0&&re,se=Object.assign(Object.assign({},k.props),{onMouseEnter:()=>$(z,!0),onMouseLeave:()=>$(z,!1)}),ee=p("tooltip",Q??s);return u.createElement(Y8,{prefixCls:ee,title:Y?Y(T.value):"",open:ue,placement:S(X??m,j),key:z,overlayClassName:`${C}-tooltip`,getPopupContainer:J||f||y},u.cloneElement(k,se))},R=Object.assign(Object.assign({},v==null?void 0:v.style),a);return I(u.createElement(U8,Object.assign({},h,{step:h.step,range:_,draggableTrack:E,className:L,style:R,disabled:O,ref:t,prefixCls:C,handleRender:x})))}),rB=nB;function Rv(e){return !!(e&&e.then)}const oB=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,quitOnNullishReturnValue:s,actionFn:c}=e,d=u__namespace.useRef(!1),f=u__namespace.useRef(null),[m,h]=Co(!1),g=function(){i==null||i.apply(void 0,arguments);};u__namespace.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{var b;(b=f.current)===null||b===void 0||b.focus();})),()=>{y&&clearTimeout(y);}},[]);const v=y=>{Rv(y)&&(h(!0),y.then(function(){h(!1,!0),g.apply(void 0,arguments),d.current=!1;},b=>(h(!1,!0),d.current=!1,Promise.reject(b))));},p=y=>{if(d.current)return;if(d.current=!0,!c){g();return}let b;if(l){if(b=c(y),s&&!Rv(b)){d.current=!1,g(y);return}}else if(c.length)b=c(i),d.current=!1;else if(b=c(),!b){g();return}v(b);};return u__namespace.createElement(Jt,Object.assign({},ry(t),{onClick:p,loading:m,prefixCls:r},o,{ref:f}),n)},iB=oB,aB=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:l,marginXS:s,fontSize:c,fontWeightStrong:d,colorTextHeading:f}=e;return {[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:s}}}}},YC=Ut("Popconfirm",e=>aB(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}});var lB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qC=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:l,okType:s="primary",icon:c=u__namespace.createElement(zC,null),showCancel:d=!0,close:f,onConfirm:m,onCancel:h,onPopupClick:g}=e,{getPrefixCls:v}=u__namespace.useContext(ot),[p]=Ni("Popconfirm",Zr.Popconfirm),y=vi(o),b=vi(i);return u__namespace.createElement("div",{className:`${t}-inner-content`,onClick:g},u__namespace.createElement("div",{className:`${t}-message`},c&&u__namespace.createElement("span",{className:`${t}-message-icon`},c),u__namespace.createElement("div",{className:`${t}-message-text`},y&&u__namespace.createElement("div",{className:W(`${t}-title`)},y),b&&u__namespace.createElement("div",{className:`${t}-description`},b))),u__namespace.createElement("div",{className:`${t}-buttons`},d&&u__namespace.createElement(Jt,Object.assign({onClick:h,size:"small"},r),a??(p==null?void 0:p.cancelText)),u__namespace.createElement(iB,{buttonProps:Object.assign(Object.assign({size:"small"},ry(s)),n),actionFn:m,close:f,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l??(p==null?void 0:p.okText))))},sB=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=lB(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=u__namespace.useContext(ot),l=a("popconfirm",t),[s]=YC(l);return s(u__namespace.createElement(l0,{placement:n,className:W(l,r),style:o,content:u__namespace.createElement(qC,Object.assign({prefixCls:l},i))}))},cB=sB;var uB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ZC=u__namespace.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o="click",okType:i="primary",icon:a=u__namespace.createElement(zC,null),children:l,overlayClassName:s,onOpenChange:c,onVisibleChange:d}=e,f=uB(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:m}=u__namespace.useContext(ot),[h,g]=zt(!1,{value:e.open,defaultValue:e.defaultOpen}),v=(C,I)=>{g(C,!0),d==null||d(C),c==null||c(C,I);},p=C=>{v(!1,C);},y=C=>{var I;return (I=e.onConfirm)===null||I===void 0?void 0:I.call(globalThis,C)},b=C=>{var I;v(!1,C),(I=e.onCancel)===null||I===void 0||I.call(globalThis,C);},O=C=>{C.keyCode===ie.ESC&&h&&v(!1,C);},P=C=>{const{disabled:I=!1}=e;I||v(C);},w=m("popconfirm",n),$=W(w,s),[S]=YC(w);return S(u__namespace.createElement(Uf,Object.assign({},vn(f,["title"]),{trigger:o,placement:r,onOpenChange:P,open:h,ref:t,overlayClassName:$,content:u__namespace.createElement(qC,Object.assign({okType:i,icon:a},e,{prefixCls:w,close:p,onConfirm:y,onCancel:b})),"data-popover-inject":!0}),Tn(l,{onKeyDown:C=>{var I,M;u__namespace.isValidElement(l)&&((M=l==null?void 0:(I=l.props).onKeyDown)===null||M===void 0||M.call(I,C)),O(C);}})))});ZC._InternalPanelDoNotUseOrYouWillBeFired=cB;const Tv=ZC,Dc=u.createContext(null);var QC=u__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,s=e.children;return u__namespace.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:W(n,a&&"".concat(n,"-active"),r),ref:t},s)}),dB=["key","forceRender","style","className"];function fB(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=u__namespace.useContext(Dc),l=a.prefixCls,s=a.tabs,c=r.tabPane,d="".concat(l,"-tabpane");return u__namespace.createElement("div",{className:W("".concat(l,"-content-holder"))},u__namespace.createElement("div",{className:W("".concat(l,"-content"),"".concat(l,"-content-").concat(o),U({},"".concat(l,"-content-animated"),c))},s.map(function(f){var m=f.key,h=f.forceRender,g=f.style,v=f.className,p=Qe(f,dB),y=m===n;return u__namespace.createElement(ro,Ce({key:m,visible:y,forceRender:h,removeOnLeave:!!i,leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),function(b,O){var P=b.style,w=b.className;return u__namespace.createElement(QC,Ce({},p,{prefixCls:d,id:t,tabKey:m,animated:c,active:y,style:Z(Z({},g),P),className:W(v,w),ref:O}))})})))}var Nv={width:0,height:0,left:0,top:0};function mB(e,t,n){return u.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Nv,a=i.left+i.width,l=0;l<e.length;l+=1){var s=e[l].key,c=t.get(s);if(!c){var d;c=t.get((d=e[l-1])===null||d===void 0?void 0:d.key)||Nv;}var f=o.get(s)||Z({},c);f.right=a-f.left-f.width,o.set(s,f);}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function kv(e,t){var n=u__namespace.useRef(e),r=u__namespace.useState({}),o=G(r,2),i=o[1];function a(l){var s=typeof l=="function"?l(n.current):l;s!==n.current&&t(s,n.current),n.current=s,i({});}return [n.current,a]}var hB=.1,Lv=.01,Xl=20,Av=Math.pow(.995,Xl);function gB(e,t){var n=u.useState(),r=G(n,2),o=r[0],i=r[1],a=u.useState(0),l=G(a,2),s=l[0],c=l[1],d=u.useState(0),f=G(d,2),m=f[0],h=f[1],g=u.useState(),v=G(g,2),p=v[0],y=v[1],b=u.useRef();function O(I){var M=I.touches[0],L=M.screenX,_=M.screenY;i({x:L,y:_}),window.clearInterval(b.current);}function P(I){if(o){I.preventDefault();var M=I.touches[0],L=M.screenX,_=M.screenY;i({x:L,y:_});var E=L-o.x,x=_-o.y;t(E,x);var R=Date.now();c(R),h(R-s),y({x:E,y:x});}}function w(){if(o&&(i(null),y(null),p)){var I=p.x/m,M=p.y/m,L=Math.abs(I),_=Math.abs(M);if(Math.max(L,_)<hB)return;var E=I,x=M;b.current=window.setInterval(function(){if(Math.abs(E)<Lv&&Math.abs(x)<Lv){window.clearInterval(b.current);return}E*=Av,x*=Av,t(E*Xl,x*Xl);},Xl);}}var $=u.useRef();function S(I){var M=I.deltaX,L=I.deltaY,_=0,E=Math.abs(M),x=Math.abs(L);E===x?_=$.current==="x"?M:L:E>x?(_=M,$.current="x"):(_=L,$.current="y"),t(-_,-_)&&I.preventDefault();}var C=u.useRef(null);C.current={onTouchStart:O,onTouchMove:P,onTouchEnd:w,onWheel:S},u__namespace.useEffect(function(){function I(E){C.current.onTouchStart(E);}function M(E){C.current.onTouchMove(E);}function L(E){C.current.onTouchEnd(E);}function _(E){C.current.onWheel(E);}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",L,{passive:!1}),e.current.addEventListener("touchstart",I,{passive:!1}),e.current.addEventListener("wheel",_),function(){document.removeEventListener("touchmove",M),document.removeEventListener("touchend",L);}},[]);}function JC(e){var t=u.useState(0),n=G(t,2),r=n[0],o=n[1],i=u.useRef(0),a=u.useRef();return a.current=e,si(function(){var l;(l=a.current)===null||l===void 0||l.call(a);},[r]),function(){i.current===r&&(i.current+=1,o(i.current));}}function vB(e){var t=u.useRef([]),n=u.useState({}),r=G(n,2),o=r[1],i=u.useRef(typeof e=="function"?e():e),a=JC(function(){var s=i.current;t.current.forEach(function(c){s=c(s);}),t.current=[],i.current=s,o({});});function l(s){t.current.push(s),a();}return [i.current,l]}var Dv={width:0,height:0,left:0,top:0,right:0};function pB(e,t,n,r,o,i,a){var l=a.tabs,s=a.tabPosition,c=a.rtl,d,f,m;return ["top","bottom"].includes(s)?(d="width",f=c?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),u.useMemo(function(){if(!l.length)return [0,0];for(var h=l.length,g=h,v=0;v<h;v+=1){var p=e.get(l[v].key)||Dv;if(p[f]+p[d]>m+t){g=v-1;break}}for(var y=0,b=h-1;b>=0;b-=1){var O=e.get(l[b].key)||Dv;if(O[f]<m){y=b+1;break}}return y>=g?[0,0]:[y,g]},[e,t,r,o,i,m,s,l.map(function(h){return h.key}).join("_"),c])}function zv(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var bB="TABS_DQ";function eS(e){return String(e).replace(/"/g,bB)}function tS(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function yB(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return !r||r.showAdd===!1?null:u__namespace.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l});}},r.addIcon||"+")}const nS=u__namespace.forwardRef(yB);var jv=u__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return dt(o)==="object"&&!u__namespace.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?u__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});function CB(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.moreIcon,s=l===void 0?"More":l,c=e.moreTransitionName,d=e.style,f=e.className,m=e.editable,h=e.tabBarGutter,g=e.rtl,v=e.removeAriaLabel,p=e.onTabClick,y=e.getPopupContainer,b=e.popupClassName,O=u.useState(!1),P=G(O,2),w=P[0],$=P[1],S=u.useState(null),C=G(S,2),I=C[0],M=C[1],L="".concat(r,"-more-popup"),_="".concat(n,"-dropdown"),E=I!==null?"".concat(L,"-").concat(I):null,x=i==null?void 0:i.dropdownAriaLabel;function R(j,H){j.preventDefault(),j.stopPropagation(),m.onEdit("remove",{key:H,event:j});}var k=u__namespace.createElement(Bi,{onClick:function(H){var B=H.key,X=H.domEvent;p(B,X),$(!1);},prefixCls:"".concat(_,"-menu"),id:L,tabIndex:-1,role:"listbox","aria-activedescendant":E,selectedKeys:[I],"aria-label":x!==void 0?x:"expanded dropdown"},o.map(function(j){var H=j.closable,B=j.disabled,X=j.closeIcon,J=j.key,Q=j.label,K=tS(H,X,m,B);return u__namespace.createElement(al,{key:J,id:"".concat(L,"-").concat(J),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(J),disabled:B},u__namespace.createElement("span",null,Q),K&&u__namespace.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(_,"-menu-item-remove"),onClick:function(re){re.stopPropagation(),R(re,J);}},X||m.removeIcon||"×"))}));function T(j){for(var H=o.filter(function(K){return !K.disabled}),B=H.findIndex(function(K){return K.key===I})||0,X=H.length,J=0;J<X;J+=1){B=(B+j+X)%X;var Q=H[B];if(!Q.disabled){M(Q.key);return}}}function A(j){var H=j.which;if(!w){[ie.DOWN,ie.SPACE,ie.ENTER].includes(H)&&($(!0),j.preventDefault());return}switch(H){case ie.UP:T(-1),j.preventDefault();break;case ie.DOWN:T(1),j.preventDefault();break;case ie.ESC:$(!1);break;case ie.SPACE:case ie.ENTER:I!==null&&p(I,j);break}}u.useEffect(function(){var j=document.getElementById(E);j&&j.scrollIntoView&&j.scrollIntoView(!1);},[I]),u.useEffect(function(){w||M(null);},[w]);var z=U({},g?"marginRight":"marginLeft",h);o.length||(z.visibility="hidden",z.order=1);var F=W(U({},"".concat(_,"-rtl"),g)),V=a?null:u__namespace.createElement(hC,{prefixCls:_,overlay:k,trigger:["hover"],visible:o.length?w:!1,transitionName:c,onVisibleChange:$,overlayClassName:W(F,b),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},u__namespace.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:z,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":L,id:"".concat(r,"-more"),"aria-expanded":w,onKeyDown:A},s));return u__namespace.createElement("div",{className:W("".concat(n,"-nav-operations"),f),style:d,ref:t},V,u__namespace.createElement(nS,{prefixCls:n,locale:i,editable:m}))}const SB=u__namespace.memo(u__namespace.forwardRef(CB),function(e,t){return t.tabMoving});function wB(e){var t,n=e.prefixCls,r=e.id,o=e.active,i=e.tab,a=i.key,l=i.label,s=i.disabled,c=i.closeIcon,d=e.closable,f=e.renderWrapper,m=e.removeAriaLabel,h=e.editable,g=e.onClick,v=e.onFocus,p=e.style,y="".concat(n,"-tab"),b=tS(d,c,h,s);function O($){s||g($);}function P($){$.preventDefault(),$.stopPropagation(),h.onEdit("remove",{key:a,event:$});}var w=u__namespace.createElement("div",{key:a,"data-node-key":eS(a),className:W(y,(t={},U(t,"".concat(y,"-with-remove"),b),U(t,"".concat(y,"-active"),o),U(t,"".concat(y,"-disabled"),s),t)),style:p,onClick:O},u__namespace.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(y,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":s,tabIndex:s?null:0,onClick:function(S){S.stopPropagation(),O(S);},onKeyDown:function(S){[ie.SPACE,ie.ENTER].includes(S.which)&&(S.preventDefault(),O(S));},onFocus:v},l),b&&u__namespace.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(y,"-remove"),onClick:function(S){S.stopPropagation(),P(S);}},c||h.removeIcon||"×"));return f?f(w):w}var Qo=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;return [o,a]},Ml=function(t,n){return t[n?0:1]};function $B(e,t){var n,r=u__namespace.useContext(Dc),o=r.prefixCls,i=r.tabs,a=e.className,l=e.style,s=e.id,c=e.animated,d=e.activeKey,f=e.rtl,m=e.extra,h=e.editable,g=e.locale,v=e.tabPosition,p=e.tabBarGutter,y=e.children,b=e.onTabClick,O=e.onTabScroll,P=u.useRef(),w=u.useRef(),$=u.useRef(),S=u.useRef(),C=u.useRef(),I=u.useRef(),M=u.useRef(),L=v==="top"||v==="bottom",_=kv(0,function(Be,Ke){L&&O&&O({direction:Be>Ke?"left":"right"});}),E=G(_,2),x=E[0],R=E[1],k=kv(0,function(Be,Ke){!L&&O&&O({direction:Be>Ke?"top":"bottom"});}),T=G(k,2),A=T[0],z=T[1],F=u.useState([0,0]),V=G(F,2),j=V[0],H=V[1],B=u.useState([0,0]),X=G(B,2),J=X[0],Q=X[1],K=u.useState([0,0]),Y=G(K,2),re=Y[0],ue=Y[1],se=u.useState([0,0]),ee=G(se,2),ae=ee[0],q=ee[1],te=vB(new Map),ce=G(te,2),fe=ce[0],he=ce[1],ge=mB(i,fe,J[0]),be=Ml(j,L),Re=Ml(J,L),De=Ml(re,L),$e=Ml(ae,L),we=be<Re+De,Te=we?be-$e:be-De,Je="".concat(o,"-nav-operations-hidden"),Ve=0,Ye=0;L&&f?(Ve=0,Ye=Math.max(0,Re-Te)):(Ve=Math.min(0,Te-Re),Ye=0);function Me(Be){return Be<Ve?Ve:Be>Ye?Ye:Be}var ke=u.useRef(),qe=u.useState(),et=G(qe,2),ye=et[0],xe=et[1];function ze(){xe(Date.now());}function Le(){window.clearTimeout(ke.current);}gB(S,function(Be,Ke){function ut(wt,Kt){wt(function(Lt){var cn=Me(Lt+Kt);return cn});}return we?(L?ut(R,Be):ut(z,Ke),Le(),ze(),!0):!1}),u.useEffect(function(){return Le(),ye&&(ke.current=window.setTimeout(function(){xe(0);},100)),Le},[ye]);var rt=pB(ge,Te,L?x:A,Re,De,$e,Z(Z({},e),{},{tabs:i})),Ue=G(rt,2),de=Ue[0],ne=Ue[1],me=_n(function(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,Ke=ge.get(Be)||{width:0,height:0,left:0,right:0,top:0};if(L){var ut=x;f?Ke.right<x?ut=Ke.right:Ke.right+Ke.width>x+Te&&(ut=Ke.right+Ke.width-Te):Ke.left<-x?ut=-Ke.left:Ke.left+Ke.width>-x+Te&&(ut=-(Ke.left+Ke.width-Te)),z(0),R(Me(ut));}else {var wt=A;Ke.top<-A?wt=-Ke.top:Ke.top+Ke.height>-A+Te&&(wt=-(Ke.top+Ke.height-Te)),R(0),z(Me(wt));}}),le={};v==="top"||v==="bottom"?le[f?"marginRight":"marginLeft"]=p:le.marginTop=p;var Ne=i.map(function(Be,Ke){var ut=Be.key;return u__namespace.createElement(wB,{id:s,prefixCls:o,key:ut,tab:Be,style:Ke===0?void 0:le,closable:Be.closable,editable:h,active:ut===d,renderWrapper:y,removeAriaLabel:g==null?void 0:g.removeAriaLabel,onClick:function(Kt){b(ut,Kt);},onFocus:function(){me(ut),ze(),S.current&&(f||(S.current.scrollLeft=0),S.current.scrollTop=0);}})}),tt=function(){return he(function(){var Ke=new Map;return i.forEach(function(ut){var wt,Kt=ut.key,Lt=(wt=C.current)===null||wt===void 0?void 0:wt.querySelector('[data-node-key="'.concat(eS(Kt),'"]'));Lt&&Ke.set(Kt,{width:Lt.offsetWidth,height:Lt.offsetHeight,left:Lt.offsetLeft,top:Lt.offsetTop});}),Ke})};u.useEffect(function(){tt();},[i.map(function(Be){return Be.key}).join("_")]);var ct=JC(function(){var Be=Qo(P),Ke=Qo(w),ut=Qo($);H([Be[0]-Ke[0]-ut[0],Be[1]-Ke[1]-ut[1]]);var wt=Qo(M);ue(wt);var Kt=Qo(I);q(Kt);var Lt=Qo(C);Q([Lt[0]-wt[0],Lt[1]-wt[1]]),tt();}),Ae=i.slice(0,de),Se=i.slice(ne+1),ve=[].concat(Ge(Ae),Ge(Se)),Ee=u.useState(),_e=G(Ee,2),Ze=_e[0],ft=_e[1],pt=ge.get(d),Vt=u.useRef();function jt(){It.cancel(Vt.current);}u.useEffect(function(){var Be={};return pt&&(L?(f?Be.right=pt.right:Be.left=pt.left,Be.width=pt.width):(Be.top=pt.top,Be.height=pt.height)),jt(),Vt.current=It(function(){ft(Be);}),jt},[pt,L,f]),u.useEffect(function(){me();},[d,Ve,Ye,zv(pt),zv(ge),L]),u.useEffect(function(){ct();},[f]);var Fe=!!ve.length,Xe="".concat(o,"-nav-wrap"),je,bt,ht,Yt;return L?f?(bt=x>0,je=x!==Ye):(je=x<0,bt=x!==Ve):(ht=A<0,Yt=A!==Ve),u__namespace.createElement(Tr,{onResize:ct},u__namespace.createElement("div",{ref:Va(t,P),role:"tablist",className:W("".concat(o,"-nav"),a),style:l,onKeyDown:function(){ze();}},u__namespace.createElement(jv,{ref:w,position:"left",extra:m,prefixCls:o}),u__namespace.createElement("div",{className:W(Xe,(n={},U(n,"".concat(Xe,"-ping-left"),je),U(n,"".concat(Xe,"-ping-right"),bt),U(n,"".concat(Xe,"-ping-top"),ht),U(n,"".concat(Xe,"-ping-bottom"),Yt),n)),ref:S},u__namespace.createElement(Tr,{onResize:ct},u__namespace.createElement("div",{ref:C,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(x,"px, ").concat(A,"px)"),transition:ye?"none":void 0}},Ne,u__namespace.createElement(nS,{ref:M,prefixCls:o,locale:g,editable:h,style:Z(Z({},Ne.length===0?void 0:le),{},{visibility:Fe?"hidden":null})}),u__namespace.createElement("div",{className:W("".concat(o,"-ink-bar"),U({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:Ze})))),u__namespace.createElement(SB,Ce({},e,{removeAriaLabel:g==null?void 0:g.removeAriaLabel,ref:I,prefixCls:o,tabs:ve,className:!Fe&&Je,tabMoving:!!ye})),u__namespace.createElement(jv,{ref:$,position:"right",extra:m,prefixCls:o})))}const Bv=u__namespace.forwardRef($B);var xB=["renderTabBar"],EB=["label","key"];function IB(e){var t=e.renderTabBar,n=Qe(e,xB),r=u__namespace.useContext(Dc),o=r.tabs;if(t){var i=Z(Z({},n),{},{panes:o.map(function(a){var l=a.label,s=a.key,c=Qe(a,EB);return u__namespace.createElement(QC,Ce({tab:l,key:s,tabKey:s},c))})});return t(i,Bv)}return u__namespace.createElement(Bv,n)}function OB(){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=Z({inkBar:!0},dt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var PB=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],Hv=0;function MB(e,t){var n,r=e.id,o=e.prefixCls,i=o===void 0?"rc-tabs":o,a=e.className,l=e.items,s=e.direction,c=e.activeKey,d=e.defaultActiveKey,f=e.editable,m=e.animated,h=e.tabPosition,g=h===void 0?"top":h,v=e.tabBarGutter,p=e.tabBarStyle,y=e.tabBarExtraContent,b=e.locale,O=e.moreIcon,P=e.moreTransitionName,w=e.destroyInactiveTabPane,$=e.renderTabBar,S=e.onChange,C=e.onTabClick,I=e.onTabScroll,M=e.getPopupContainer,L=e.popupClassName,_=Qe(e,PB),E=u__namespace.useMemo(function(){return (l||[]).filter(function(te){return te&&dt(te)==="object"&&"key"in te})},[l]),x=s==="rtl",R=OB(m),k=u.useState(!1),T=G(k,2),A=T[0],z=T[1];u.useEffect(function(){z(ic());},[]);var F=zt(function(){var te;return (te=E[0])===null||te===void 0?void 0:te.key},{value:c,defaultValue:d}),V=G(F,2),j=V[0],H=V[1],B=u.useState(function(){return E.findIndex(function(te){return te.key===j})}),X=G(B,2),J=X[0],Q=X[1];u.useEffect(function(){var te=E.findIndex(function(fe){return fe.key===j});if(te===-1){var ce;te=Math.max(0,Math.min(J,E.length-1)),H((ce=E[te])===null||ce===void 0?void 0:ce.key);}Q(te);},[E.map(function(te){return te.key}).join("_"),j,J]);var K=zt(null,{value:r}),Y=G(K,2),re=Y[0],ue=Y[1];u.useEffect(function(){r||(ue("rc-tabs-".concat(Hv)),Hv+=1);},[]);function se(te,ce){C==null||C(te,ce);var fe=te!==j;H(te),fe&&(S==null||S(te));}var ee={id:re,activeKey:j,animated:R,tabPosition:g,rtl:x,mobile:A},ae,q=Z(Z({},ee),{},{editable:f,locale:b,moreIcon:O,moreTransitionName:P,tabBarGutter:v,onTabClick:se,onTabScroll:I,extra:y,style:p,panes:null,getPopupContainer:M,popupClassName:L});return u__namespace.createElement(Dc.Provider,{value:{tabs:E,prefixCls:i}},u__namespace.createElement("div",Ce({ref:t,id:r,className:W(i,"".concat(i,"-").concat(g),(n={},U(n,"".concat(i,"-mobile"),A),U(n,"".concat(i,"-editable"),f),U(n,"".concat(i,"-rtl"),x),n),a)},_),ae,u__namespace.createElement(IB,Ce({},q,{renderTabBar:$})),u__namespace.createElement(fB,Ce({destroyInactiveTabPane:w},ee,{animated:R}))))}var _B=u__namespace.forwardRef(MB);const RB=()=>null,TB=RB,NB={motionAppear:!1,motionEnter:!0,motionLeave:!0};function kB(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({},NB),{motionName:rc(e,"switch")})),n}var LB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function AB(e){return e.filter(t=>t)}function DB(e,t){if(e)return e;const n=Qn(t).map(r=>{if(u__namespace.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:l}=a,s=LB(a,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return AB(n)}const zB=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}`}}}}},[Jr(e,"slide-up"),Jr(e,"slide-down")]]},jB=zB,BB=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},HB=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},kt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},xo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},FB=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=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:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},WB=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},VB=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l}=e,s=`${t}-tab`;return {[s]:{position:"relative",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Io(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},KB=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=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:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},GB=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Io(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),VB(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"}}}}}},UB=Ut("Tabs",e=>{const t=mt(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return [WB(t),KB(t),FB(t),HB(t),BB(t),GB(t),jB(t)]},e=>{const t=e.controlHeightLG;return {zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",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`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}});var XB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const rS=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:l,addIcon:s,popupClassName:c,children:d,items:f,animated:m,style:h}=e,g=XB(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:v,moreIcon:p=u__namespace.createElement(Bm,null)}=g,{direction:y,tabs:b,getPrefixCls:O,getPopupContainer:P}=u__namespace.useContext(ot),w=O("tabs",v),[$,S]=UB(w);let C;t==="editable-card"&&(C={onEdit:(x,R)=>{let{key:k,event:T}=R;i==null||i(x==="add"?T:k,x);},removeIcon:u__namespace.createElement(fc,null),addIcon:s||u__namespace.createElement(N6,null),showAdd:a!==!0});const I=O(),M=DB(f,d),L=kB(w,m),_=kn(o),E=Object.assign(Object.assign({},b==null?void 0:b.style),h);return $(u__namespace.createElement(_B,Object.assign({direction:y,getPopupContainer:P,moreTransitionName:`${I}-slide-up`},g,{items:M,className:W({[`${w}-${_}`]:_,[`${w}-card`]:["card","editable-card"].includes(t),[`${w}-editable-card`]:t==="editable-card",[`${w}-centered`]:l},b==null?void 0:b.className,n,r,S),popupClassName:W(c,S),style:E,editable:C,moreIcon:p,prefixCls:w,animated:L})))};rS.TabPane=TB;const YB=rS,Fv=D(Jt,{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 oS({style:e,className:t}){const{runAsync:n,loading:r}=DD(SA,{manual:!0}),{accessKey:o}=In();return D(Lc,{size:"small",style:e,className:t,children:o?pe(Et,{children:[D(Jt,{onClick:n,disabled:r,children:D("span",{children:"重新获取 access_key"})}),D(Jt,{onClick:wA,children:D("span",{children:"删除 access_key"})}),Fv]}):pe(Et,{children:[D(Jt,{onClick:n,disabled:r,size:"middle",children:D("span",{children:"获取 access_key"})}),Fv]})})}const qB="_config-icon_1xtyf_1",ZB="_settings-group_1xtyf_6",QB="_settings-group-title_1xtyf_9",JB="_settings-group-sub-title_1xtyf_14",eH="_settings-group-content_1xtyf_20",tH="_row_1xtyf_26",nH="_check_1xtyf_34",rH="_setting-tabs_1xtyf_39",oH="_tab-pane_1xtyf_42",He={configIcon:qB,settingsGroup:ZB,settingsGroupTitle:QB,settingsGroupSubTitle:JB,settingsGroupContent:eH,row:tH,check:nH,settingTabs:rH,tabPane:oH};async function Wm(){Ct("即将刷新网页"),await Lo(500),location.reload();}function iH(){return FA(),Wm()}async function aH(){const e=await AA(),t=Ef(e||{},Fy);return Object.keys(t).length?(window[`${nn}-restore`]=Date.now(),Lr({...t}),Wm()):Ct("备份不存在或没有有效的配置")}function _l(e,t,n){return Qt(e,r=>{if($c())return;St[t]=!St[t];const o=!St[t];Ct(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function lH({show:e,onHide:t}){const{autoPreviewUpdateInterval:n,filterMinPlayCount:r,filterMinPlayCountEnabled:o,filterMinDuration:i,filterMinDurationEnabled:a}=In();return _l(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),_l(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),_l(["shift.c"],"useNarrowMode","居中模式"),_l(["shift.y"],"styleUseYoutubeLikeCard","大卡片样式"),pe(_m,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[pe("div",{className:hr.modalHeader,children:[pe("div",{className:hr.modalTitle,children:[D(Dt,{name:"Config",className:He.configIcon}),"设置项"]}),D("div",{className:"space",style:{flex:1}}),D(Rm,{onClick:t})]}),D("main",{className:hr.modalBody,style:{overflow:"hidden"},children:D(YB,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:He.settingTabs,items:[{label:"常规设置",key:"normal",children:pe("div",{className:He.tabPane,children:[pe("div",{className:He.settingsGroup,children:[pe("div",{className:He.settingsGroupTitle,children:["access_key",D(bs,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:pe(Et,{children:["用于「推荐」Tab",D("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),D("div",{className:W(He.settingsGroupContent),children:D("div",{className:He.row,style:{marginTop:5},children:D(oS,{})})})]}),pe("div",{className:He.settingsGroup,children:[D("div",{className:He.settingsGroupTitle,children:"开关"}),pe("div",{className:W(He.settingsGroupContent,He.row),children:[D(fn,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:pe(Et,{children:["首页只保留推荐",D("br",{}),"P.S 需要刷新网页~"]}),className:He.check,extraAction:Wm}),D(fn,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",className:He.check,extraAction:l=>{l&&Ct("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),D(fn,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:pe(Et,{children:["居中两列",D("br",{}),"切换设置快捷键: ",D(Vr,{color:"green",children:"shift+c"})]}),className:He.check})]})]}),pe("div",{className:He.settingsGroup,children:[D("div",{className:He.settingsGroupTitle,children:"预览"}),pe("div",{className:W(He.settingsGroupContent,He.row),children:[D(fn,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:He.check,tooltip:pe(Et,{children:["手动预览快捷键: ",D(Vr,{color:"green",children:"."})," or ",D(Vr,{color:"green",children:"p"}),D("br",{}),"切换设置快捷键: ",D(Vr,{color:"green",children:"shift+p"})]})}),D(fn,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:He.check,tooltip:pe(Et,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",D("br",{}),"切换设置快捷键: ",D(Vr,{color:"green",children:"shift+m"})]})})]})]}),pe("div",{className:He.settingsGroup,children:[D("div",{className:He.settingsGroupTitle,children:"帮助"}),D("div",{className:W(He.settingsGroupContent),children:D("div",{className:He.row,children:pe(Lc,{size:"small",children:[D(Jt,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),D(Jt,{href:"https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),D(Jt,{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:"查看可用的快捷键"}),D(Jt,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),D(Jt,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})},{label:"视频过滤",key:"filter",children:D("div",{className:He.tabPane,children:pe("div",{className:He.settingsGroup,children:[pe("div",{className:He.settingsGroupTitle,children:["视频过滤",D(bs,{iconProps:{name:"Tips"},tooltip:pe(Et,{children:["启用视频过滤会大幅降低加载速度, 谨慎开启! ",D("br",{}),"仅推荐类 Tab 生效"]})})]}),pe("div",{className:W(He.settingsGroupContent),children:[D("div",{className:He.settingsGroupSubTitle,children:"过滤范围"}),D(fn,{configKey:"enableFilterForFollowed",label:"对推荐理由为「已关注」的视频启用过滤",tooltip:D(Et,{children:"默认不过滤「已关注」"})}),D("div",{className:He.settingsGroupSubTitle,children:"过滤条件"}),pe("div",{className:He.row,children:[D(fn,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:D(Et,{children:"不显示播放量很少的视频"})}),D(bd,{size:"small",min:1,step:1e3,value:r,onChange:l=>l&&Lr({filterMinPlayCount:l}),disabled:!o})]}),pe("div",{className:He.row,style:{marginTop:8},children:[D(fn,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:D(Et,{children:"不显示短视频"})}),D(bd,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:i,onChange:l=>l&&Lr({filterMinDuration:l}),disabled:!a})]}),D("div",{className:He.settingsGroupSubTitle,children:"按类型过滤"}),D("div",{className:He.row,children:D(fn,{configKey:"filterOutGotoTypePicture",label:"图文: 动态 & 专栏",tooltip:D(Et,{children:"过滤掉图文推荐"})})})]})]})})},{label:"外观设置",key:"ui",children:D("div",{className:He.tabPane,children:pe("div",{className:He.settingsGroup,children:[D("div",{className:He.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),pe("div",{className:W(He.settingsGroupContent),children:[D("div",{className:He.row,children:D(fn,{configKey:"styleUseYoutubeLikeCard",label:"视频卡片: 使用类似 YouTube 大卡片",tooltip:pe(Et,{children:["增加卡片大小, 增大卡片间距",D("br",{}),"仅「查看更多」弹窗 & 纯推荐模式可用",D("br",{}),"切换设置快捷键: ",D(Vr,{color:"green",children:"shift+y"})]})})}),D("div",{className:He.row,style:{marginTop:5},children:D(fn,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab 按钮: 使用标准高度",tooltip:"默认紧凑高度"})})]})]})})},{label:"主题选择",key:"theme-select",children:D("div",{className:He.tabPane,children:pe("div",{className:He.settingsGroup,children:[D("div",{className:He.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),D("div",{className:W(He.settingsGroupContent),children:D(vA,{})})]})})},{label:"高级设置",key:"advance",children:D("div",{className:He.tabPane,children:pe("div",{className:He.settingsGroup,children:[D("div",{className:He.settingsGroupTitle,children:"设置项"}),D("div",{className:W(He.settingsGroupContent),children:D("div",{className:He.row,children:D(Tv,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:iH,children:D(Jt,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),D("div",{className:He.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),pe("div",{className:W(He.settingsGroupContent),children:[pe("div",{className:He.row,children:[D(fn,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${nn}`}),pe("a",{style:{marginLeft:15,display:"inline-flex",alignItems:"center"},href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[D(Dt,{name:"EfferentFour",size:16,style:{marginRight:4}}),"去草稿箱浏览"]})]}),D("div",{className:He.row,style:{marginTop:5},children:D(Tv,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:aH,children:D(Jt,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),D("div",{className:He.settingsGroupTitle,style:{marginTop:15},children:"稍后再看 & 收藏"}),pe("div",{className:W(He.settingsGroupContent),children:[D("div",{className:He.row,children:D(fn,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:D(Et,{children:"不包括最近添加的「稍后再看」"})})}),D("div",{className:He.row,children:D(fn,{configKey:"shuffleForFav",label:"对「收藏」Tab 使用随机顺序"})})]}),D("div",{className:He.settingsGroupTitle,style:{marginTop:15},children:"预览"}),pe("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",D(rB,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>St.autoPreviewUpdateInterval=l,value:n}),pe("span",{style:{width:"65px"},children:["(",n,"ms)"]})]})]})})}]})})]})}const Wv=()=>document.querySelector(".bili-header__bar");function sH(){return !!(Wv()&&window.getComputedStyle(Wv()).display==="none")}function Fd(){if(!sH())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 Ms=Jn({value:Fd()});function cH(){return nr(Ms).value}function iS(){return Ms.value}setTimeout(()=>{Ms.value=Fd();const e=new MutationObserver(()=>{Ms.value=Fd();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);function uH(){const e=u.useRef(null),[t,n]=u.useState(!1);return u.useEffect(()=>{function r(){if(!e.current)return;const o=Math.trunc(e.current.getBoundingClientRect().top*10)/10,i=parseInt(getComputedStyle(e.current).top),a=o<=i;n(a);}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 dH="_expand-btn_wdzp9_1",fH="_expanded_wdzp9_12",Vv={expandBtn:dH,expanded:fH},mH=u.forwardRef(function({children:t},n){const[r,o]=Zy(!1);u.useImperativeHandle(n,()=>o,[o]);const i=D("button",{className:W("primary-btn",Vv.expandBtn),onClick:o.toggle,children:D("svg",{className:W({[Vv.expanded]:r}),children:D("use",{href:"#widget-arrow"})})});return pe(Et,{children:[i,r&&t]})}),hH="_modal-mask_7bwzz_1",gH="_narrow-mode_7bwzz_1",vH="_modal_7bwzz_1",pH="_modal-header_7bwzz_18",bH="_modal-body_7bwzz_19",yH="_btn-refresh_7bwzz_22",ea={modalMask:hH,narrowMode:gH,modal:vH,modalHeader:pH,modalBody:bH,btnRefresh:yH};var CH={name:"1q4vxyr",styles:"margin-left:8px"};const SH=u.memo(function({show:t,onHide:n}){const r=u.useRef(null),o=u.useRef(null),{useNarrowMode:i}=In(),a=u.useMemo(()=>({[ea.narrowMode]:i}),[i]),l=lt((...h)=>{var g;return (g=o.current)==null?void 0:g.refresh(...h)}),s=lt(()=>{r.current&&(r.current.scrollTop=0);}),c=$m(),d=u.useMemo(()=>c?{border:`1px solid ${kr}`}:void 0,[c]),[f,m]=u.useState(!1);return pe(_m,{show:t,onHide:n,clsModalMask:W(a),clsModal:W(ea.modal,a),styleModal:{...d},children:[pe("div",{className:W(hr.modalHeader,ea.modalHeader),children:[D(mC,{onRefresh:l}),D("div",{className:"space",style:{flex:1}}),D(mH,{children:D(sA,{})}),D(cS,{css:CH,refreshing:f,onRefresh:l,className:ea.btnRefresh,refreshHotkeyEnabled:t}),D(Rm,{onClick:n})]}),D("div",{className:W(hr.modalBody,ea.modalBody),ref:r,children:D(KS,{ref:o,shortcutEnabled:t,onScrollToTop:s,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:m})})]})}),wH=Ti.extend("RecHeader"),Vm=Bn`
display: flex;
align-items: center;
justify-content: center;
`,Kv={btn:Bn`
padding: 0;
width: 32px;
height: 32px;
border-radius: 50%;
${Vm}
`,icon:Bn`
svg {
width: 14px;
height: 14px;
}
`},qr=Jn({modalFeedVisible:St.initialShowMore,modalConfigVisible:!1}),$H=function(){return nr(qr)},xH=()=>{qr.modalFeedVisible=!0;},EH=()=>{qr.modalFeedVisible=!1;},IH=()=>{qr.modalConfigVisible=!0;},OH=()=>{qr.modalConfigVisible=!1;},aS=u.createContext({onRefresh:UC});function lS(){return u.useContext(aS)}const sS=u.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},i){const{accessKey:a,pureRecommend:l}=In(),{modalFeedVisible:s,modalConfigVisible:c}=nr(qr);Qt(["shift.comma"],g=>{$c()||(qr.modalConfigVisible=!qr.modalConfigVisible);},{exactMatch:!0});const[d,f]=uH(),m=lt(()=>{var y;if(!l)return;const g=(y=d.current)==null?void 0:y.parentElement;if(!g)return;const v=g.getBoundingClientRect(),p=iS();if(v.top<p){const b=p-v.top+1;wH("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",v.top,p,b),document.documentElement.scrollTop-=b;}});u.useImperativeHandle(i,()=>({scroll:m}));const h=cH();return D(Et,{children:pe(aS.Provider,{value:{onRefresh:t},children:[pe("div",{ref:d,className:"area-header",css:[Bn`
margin-bottom: 0;
height: 50px;
`,l&&Bn`
position: sticky;
top: ${h-1}px; // 有缝隙, 故 -1 px
z-index: 1000;
`,l&&f&&Bn`
background-color: var(--bg1_float);
box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
`,"",""],children:[pe("div",{className:"left",children:[D("svg",{className:"icon",children:D("use",{href:"#channel-cinephile"})}),D(mC,{onRefresh:t}),r]}),D("div",{className:"right",children:pe(Lc,{size:"small",children:[o,!a&&D(oS,{style:{marginLeft:5}}),D(Jt,{onClick:IH,css:Kv.btn,children:D(Dt,{name:"Config",css:Kv.icon})}),D(cS,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(c||s)}),!l&&pe(Jt,{css:Vm,onClick:xH,children:[D("span",{children:"查看更多"}),D("svg",{css:Bn`
width: 12px;
height: 12px;
margin-left: 2px;
`,children:D("use",{href:"#widget-arrow"})})]})]})})]}),D(SH,{show:s,onHide:EH}),D(lH,{show:c,onHide:OH})]})})}),cS=u.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},i){r??(r=!0);const[a,l]=u.useState(0),s=u.useRef(null),c=lt(()=>{s.current&&(s.current.disabled||s.current.click());});u.useImperativeHandle(i,()=>({click:c}),[]),Qt("r",()=>{$c()||r&&c();},{exactMatch:!0});const d=il(),f=["dynamic","watchlater"].includes(d)?"刷新":"换一换",m=lt(h=>(l(g=>g+360),e==null?void 0:e()));return pe(Jt,{disabled:o,className:t,style:n,css:Bn`
${Vm}
&.ant-btn:not(:disabled):focus-visible {
outline: none;
}
`,ref:s,onClick:m,children:[D("svg",{style:{transform:`rotate(${a}deg)`,width:"11px",height:"11px",marginRight:5,transition:a===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{l(0);},children:D("use",{href:"#widget-roll"})}),D("span",{children:f})]})});function uS(e){return `https://space.bilibili.com/${wc()}/favlist?fid=${e}`}const ii=class ii{constructor(){vt(this,"useShuffle");vt(this,"allFolderServices",[]);vt(this,"folderServices",[]);vt(this,"bufferQueue",[]);vt(this,"total",0);vt(this,"returnedItems",[]);vt(this,"foldersLoaded",!1);this.useShuffle=St.shuffleForFav;}doReturnItems(t){return this.returnedItems=this.returnedItems.concat(t||[]),t}restore(){this.bufferQueue=[...this.returnedItems,...this.bufferQueue],this.returnedItems=[];}get folderHasMore(){return this.folderServices.some(t=>t.hasMore)}get hasMore(){return this.bufferQueue.length>0||this.folderHasMore}get usageInfo(){if(this.foldersLoaded)return D(_H,{allFavFolderServices:this.allFolderServices})}async loadMore(){if(this.foldersLoaded||await this.getAllFolders(),!this.hasMore)return;const t=()=>{if(this.bufferQueue.length){const n=this.bufferQueue.slice(0,ii.PAGE_SIZE);return this.bufferQueue=this.bufferQueue.slice(ii.PAGE_SIZE),this.doReturnItems(n)}};if(!this.useShuffle){if(this.bufferQueue.length)return t();const n=this.folderServices.find(o=>o.hasMore);if(!n)return;const r=await n.loadMore();return this.doReturnItems(r)}if(this.bufferQueue.length<ii.PAGE_SIZE){for(;this.folderHasMore&&this.bufferQueue.length<100;){const n=this.folderServices.filter(i=>i.hasMore),r=zd(n).slice(0,5),o=(await Promise.all(r.map(async i=>await i.loadMore()||[]))).flat();this.bufferQueue=[...this.bufferQueue,...o];}this.bufferQueue=zd(this.bufferQueue);}return t()}async getAllFolders(){const r=(await wn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:wc()}})).data.data.list;this.foldersLoaded=!0,this.allFolderServices=r.map(o=>new PH(o)),this.folderServices=this.allFolderServices.filter(o=>!St.excludeFavFolderIds.includes(o.entry.id.toString())),this.total=this.folderServices.reduce((o,i)=>o+i.entry.media_count,0);}};vt(ii,"PAGE_SIZE",20);let Na=ii;class PH{constructor(t){vt(this,"entry");vt(this,"hasMore");vt(this,"info");vt(this,"page",0);this.entry=t,this.hasMore=t.media_count>0;}async loadMore(){if(!this.hasMore)return;const n=(await wn.get("/x/v3/fav/resource/list",{params:{media_id:this.entry.id,pn:++this.page,ps:20,keyword:"",order:"mtime",type:"0",tid:"0",platform:"web"}})).data;if(!ko(n)){Ct(n.message);return}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 i;return {...o,folder:this.info,api:"fav",uniqId:`fav-${(i=this.info)==null?void 0:i.id}-${o.bvid}`}})}}var MH={name:"1oci29d",styles:"margin-left:15px;cursor:pointer"};function _H({allFavFolderServices:e}){const{excludeFavFolderIds:t}=In(),{onRefresh:n}=lS(),[r,o]=u.useState(!1),i=lt((c,d,f)=>{o(!0),Lr({excludeFavFolderIds:c});}),a=e.length-t.length,l=u.useMemo(()=>e.filter(c=>!t.includes(c.entry.id.toString())).reduce((c,d)=>c+d.entry.media_count,0),[e,t]),s=lt(c=>{c?o(!1):r&&n();});return D(Uf,{trigger:"click",placement:"bottom",onOpenChange:s,content:D(Et,{children:D(k8,{dataSource:e,rowKey:c=>c.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:i,render:c=>c.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:pe(Vr,{color:"success",css:MH,children:["收藏夹(",a,") 收藏(",l,")"]})})}const RH=fS("add"),TH=fS("remove"),dS={add:RH,remove:TH},Wd=Tm();function NH(e){const t=nr(Wd);return e&&t.has(e)}function fS(e){const t=e==="add"?5:6;return async function(r){const o=wc(),i=new URLSearchParams({fid:r,act:String(t),re_src:"11",spmid:"333.999.0.0",extend_content:JSON.stringify({entity:"user",entity_id:o,fp:kH()}),csrf:tl()}),l=(await wn.post("/x/relation/modify",i)).data,s=ko(l);return s||Ct(l.message||"未知错误"),s&&(e==="add"?Wd.add(r):e==="remove"&&Wd.delete(r)),s}}function kH(){let e,t,n=((e=window.reportObserver)===null||e===void 0||(t=e.cache)===null||t===void 0?void 0:t.fpriskMsg)||{},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 Ru={removeFav:LH,addFav:zH,getVideoFavState:AH};async function LH(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:tl()}),o=(await wn.post("/x/v3/fav/resource/batch-del",n)).data,i=ko(o);return i||Ct(o.message||ky),i}async function AH(e){if(!nl())return;const r=(await wn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:wc(),type:2,rid:e}})).data.data.list.filter(a=>a.fav_state>0),o=r.map(a=>a.title),i=r.map(a=>uS(a.id));return {favFolders:r,favFolderNames:o,favFolderUrls:i}}async function DH({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:tl()}),i=(await wn.post("/x/v3/fav/resource/deal",r)).data,a=ko(i);return a||Ct((i==null?void 0:i.message)||"fav deal api fail"),a}let Tu=0,Vd="";async function zH(e){if(!Tu||!Vd){const t=new Na;await t.getAllFolders(),Tu=t.folderServices[0].entry.id,Vd=t.folderServices[0].entry.title;}return await DH({avid:e,add_media_ids:Tu.toString()})}var jH=1,BH=4;function HH(e){return aa(e,jH|BH)}var FH=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],mS=u__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,l=e.defaultChecked,s=e.disabled,c=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,h=e.onChange,g=e.onKeyDown,v=Qe(e,FH),p=zt(!1,{value:a,defaultValue:l}),y=G(p,2),b=y[0],O=y[1];function P(C,I){var M=b;return s||(M=C,O(M),h==null||h(M,I)),M}function w(C){C.which===ie.LEFT?P(!1,C):C.which===ie.RIGHT&&P(!0,C),g==null||g(C);}function $(C){var I=P(!b,C);m==null||m(I,C);}var S=W(o,i,(n={},U(n,"".concat(o,"-checked"),b),U(n,"".concat(o,"-disabled"),s),n));return u__namespace.createElement("button",Ce({},v,{type:"button",role:"switch","aria-checked":b,disabled:s,className:S,ref:t,onKeyDown:w,onClick:$}),c,u__namespace.createElement("span",{className:"".concat(o,"-inner")},u__namespace.createElement("span",{className:"".concat(o,"-inner-checked")},d),u__namespace.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});mS.displayName="Switch";const WH=e=>{const{componentCls:t}=e,n=`${t}-inner`;return {[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},VH=e=>{const{componentCls:t}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},KH=e=>{const{componentCls:t,motion:n}=e,r=`${t}-handle`;return {[t]:{[r]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${r}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:n?{[`${r}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${r}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},GH=e=>{const{componentCls:t}=e,n=`${t}-inner`;return {[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-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"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},UH=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Io(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"}})}},XH=Ut("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=2,o=t-r*2,i=n-r*2,a=mt(e,{switchMinWidth:o*2+r*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:o/2,switchInnerMarginMax:o+r+r*2,switchPadding:r,switchPinSize:o,switchBg:e.colorBgContainer,switchMinWidthSM:i*2+r*2,switchHeightSM:n,switchInnerMarginMinSM:i/2,switchInnerMarginMaxSM:i+r+r*2,switchPinSizeSM:i,switchHandleShadow:`0 2px 4px 0 ${new Wt("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [UH(a),GH(a),KH(a),VH(a),WH(a)]});var YH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hS=u__namespace.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:l,style:s}=e,c=YH(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:d,direction:f,switch:m}=u__namespace.useContext(ot),h=u__namespace.useContext(br),g=(o??h)||i,v=d("switch",n),p=u__namespace.createElement("div",{className:`${v}-handle`},i&&u__namespace.createElement(rm,{className:`${v}-loading-icon`})),[y,b]=XH(v),O=kn(r),P=W(m==null?void 0:m.className,{[`${v}-small`]:O==="small",[`${v}-loading`]:i,[`${v}-rtl`]:f==="rtl"},a,l,b),w=Object.assign(Object.assign({},m==null?void 0:m.style),s);return y(u__namespace.createElement(mm,null,u__namespace.createElement(mS,Object.assign({},c,{prefixCls:v,className:P,style:w,disabled:g,ref:t,loadingIcon:p}))))});hS.__ANT_SWITCH=!0;const qH=hS,ui=Jn({updatedAt:0,bvidSet:Tm()});function ZH(e){return nr(ui).bvidSet.has(e)}nl()&&setTimeout(()=>{new ka().loadMore();});const Or=class Or{constructor(t){vt(this,"loaded",!1);vt(this,"page",-1);vt(this,"hasMore",!0);vt(this,"count",0);vt(this,"items",[]);vt(this,"keepOrder");this.keepOrder=t??!1;}async fetch(){const n=(await wn.get("/x/v2/history/toview/web")).data;let r=n.data.list.map(a=>({...a,api:"watchlater",uniqId:`watchlater-${a.bvid}`}));Date.now()>ui.updatedAt&&(ui.updatedAt=Date.now(),ui.bvidSet=Tm(r.map(a=>a.bvid)));const o=Di().subtract(2,"days").unix(),i=r.findIndex(a=>a.add_at<o);if(i!==-1){const a=r.slice(0,i);let l=r.slice(i);this.keepOrder&&Or.LAST_ITEMS.length?(l=l.map(s=>({item:s,index:Or.LAST_ITEMS.findIndex(c=>c.bvid===s.bvid)})).sort((s,c)=>s.index-c.index).map(s=>s.item),r=[...a,...l]):St.shuffleForWatchLater&&(r=[...a,...zd(l)]);}this.count=n.data.count,this.items=r,Or.LAST_ITEMS=r;}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return D(QH,{count:t})}async loadMore(){if(!this.hasMore)return;this.loaded||(await this.fetch(),this.loaded=!0),this.page++;const t=this.page*Or.PAGE_SIZE,n=t+Or.PAGE_SIZE,r=HH(this.items.slice(t,n));return this.hasMore=n<=this.count-1,r}};vt(Or,"PAGE_SIZE",15),vt(Or,"LAST_ITEMS",[]);let ka=Or;function QH({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=In(),{onRefresh:o}=lS();return pe(Et,{children:[pe(Vr,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{Ct(`稍后再看: ${n}`);},children:[e," / 100"]}),D(qH,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:i=>{Lr({shuffleForWatchLater:i}),setTimeout(()=>{o();});}})]})}function gS(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);});}}}const JH="_bili-video-card_117rm_1",e9="_preview-card-wrapper_117rm_4",t9="_preview-card-inner_117rm_17",n9="_watch-later_117rm_21",r9="_badge_117rm_24",o9="_recommend-reason_117rm_33",i9="_bangumi-desc_117rm_48",a9="_btn-dislike_117rm_51",l9="_btn-dislike-icon_117rm_66",s9="_btn-dislike-tip_117rm_73",c9="_disliked-wrapper_117rm_88",u9="_dislike-content-cover_117rm_102",d9="_dislike-content-cover-inner_117rm_108",f9="_dislike-icon_117rm_119",m9="_dislike-reason_117rm_122",h9="_dislike-desc_117rm_126",g9="_dislike-content-action_117rm_130",v9="_skeleton-active_117rm_147",p9="_ant-skeleton-loading_117rm_1",Ht={biliVideoCard:JH,previewCardWrapper:e9,previewCardInner:t9,watchLater:n9,badge:r9,recommendReason:o9,bangumiDesc:i9,btnDislike:a9,btnDislikeIcon:l9,btnDislikeTip:s9,dislikedWrapper:c9,dislikeContentCover:u9,dislikeContentCoverInner:d9,dislikeIcon:f9,dislikeReason:m9,dislikeDesc:h9,dislikeContentAction:g9,skeletonActive:v9,antSkeletonLoading:p9};function b9(...e){for(const t of e)if(!isNaN(t))return t;return 0}function y9({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const i=u.useRef(null),a=I5(i),[l,s]=u.useState(()=>({width:0,height:0}));Oc(()=>{var m;const f=(m=i.current)==null?void 0:m.getBoundingClientRect();f&&s({width:f.width,height:f.height});});let c=0;if(typeof o=="number")c=o;else {const f=b9(a.elementX,r||0);l.width&&f&&!isNaN(f)&&(c=f/l.width,c<0&&(c=0),c>1&&(c=1));}const d={videoDuration:t,pvideo:n,elWidth:l.width,elHeight:l.height,progress:c};return D("div",{ref:i,className:W(Ht.previewCardWrapper,e),children:!!(n&&l.width&&l.height&&c)&&D(C9,{...d})})}function C9({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var w;const i=Math.floor((e||0)*o);let a=u.useMemo(()=>{const $=(t==null?void 0:t.index)||[];let S=w9($,i);return S!==-1?S:i>$[$.length-1]?(S=Math.floor($.length*o)-1,S<0&&(S=0),S):0},[t,i]);const{img_x_len:l,img_y_len:s,img_x_size:c,img_y_size:d}=t,f=s*l;a=a+1;const m=Math.floor(a/f),h=a-m*f,g=((w=t.image)==null?void 0:w[m])||"",v=Math.floor(h/l)+1,p=h-(v-1)*l,y=n*l,b=r*s,O=(v-1)*r,P=(p-1)*n;return D("div",{className:Ht.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${g})`,backgroundPosition:`-${P}px -${O}px`,backgroundSize:`${y}px ${b}px`},children:D(S9,{progress:o})})}function S9({progress:e}){return D("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:D("div",{className:"bar",style:{backgroundColor:kr,height:"100%",width:`${e*100}%`}})})}function w9(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 i=e[o],a=e[o+1]??0;return i<t&&t<a?o:-1}const oa={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},La={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},$9={bangumiFollow:1.3},x9=e=>{const t=La[e]||La[1];return oa[t]},E9=e=>{const t=La[e];if(t)return $9[t]};function Gv(e){return {iconSvgName:x9(e),iconSvgScale:E9(e)}}function vS(e,t){const n=e.api==="pc",r=e.api==="app",o=e.api==="dynamic",i=e.api==="watchlater";return e.api,n?t.pc(e):r?t.app(e):o?t.dynamic(e):i?t.watchlater(e):t.fav(e)}function pS(e){return vS(e,{pc:I9,app:O9,dynamic:P9,watchlater:M9,fav:_9})}function I9(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,coverRaw:e.pic,pubts:e.pubdate,pubdateDisplay:Ur(e.pubdate),duration:e.duration,durationStr:xc(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,authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function O9(e){var i,a,l;const t=s=>{const{cover_left_icon_1:c,cover_left_text_1:d,cover_left_icon_2:f,cover_left_text_2:m}=e;if(c&&La[c]===s)return Cs(d);if(f&&La[f]===s)return Cs(m)},n=e.param,r=Id.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(`[${nn}]: 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,coverRaw:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((i=e.player_args)==null?void 0:i.duration)||0,durationStr:xc((a=e.player_args)==null?void 0:a.duration),recommendReason:e.rcmd_reason,play:t("play"),like:void 0,coin:void 0,danmaku:t("danmaku"),favorite:void 0,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 P9(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=Di().subtract(2,"days").unix(),o=(()=>{const i=n.pub_ts;return i>r?n.pub_time:Ur(i)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,coverRaw:t.cover,pubts:n.pub_ts,pubdateDisplay:o,duration:RA(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:Cs(t.stat.play),danmaku:Cs(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function M9(e){const t=kA(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?D(Py,{title:pe(Et,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:pe("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,coverRaw:e.pic,pubts:e.pubdate,pubdateDisplay:Ur(e.pubdate),pubdateDisplayTitle:`${Ur(e.pubdate,!0)} 发布, ${Ur(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:xc(e.duration),recommendReason:`${Ur(e.add_at)} · 稍后再看`,invalidReason:t,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function _9(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:pe(Et,{children:["【",D(Dt,{name:"Star",size:16,theme:"two-tone",fill:["currentColor",kr],style:{display:"inline-block",verticalAlign:"middle",marginLeft:10,marginRight:4,marginTop:-4}}),e.folder.title,"】· ",e.title]}),coverRaw:e.cover,pubts:e.pubtime,pubdateDisplay:Ur(e.pubtime),duration:e.duration,durationStr:xc(e.duration),recommendReason:`${Ur(e.fav_time)} · 收藏`,play:e.cnt_info.play,like:void 0,coin:void 0,danmaku:e.cnt_info.danmaku,favorite:e.cnt_info.collect,authorName:e.upper.name,authorFace:e.upper.face,authorMid:String(e.upper.mid)}}const R9=e=>(e||"").replace(/^http:\/\//,"https://");function Uv(e){GM.setClipboard(e),Ct(`已复制: ${e}`);}const bS=gS(),T9="--video-card-border-radius",yS=`var(${T9})`,CS={borderRadius:yS},_s=u.memo(function({style:t,className:n,item:r,loading:o,active:i,onRemoveCurrent:a,onMoveToFirst:l,emitter:s,...c}){o=o??!r;const d=pe("div",{className:W("bili-video-card__skeleton",{hide:!o,[Ht.skeletonActive]:o}),children:[D("div",{className:"bili-video-card__skeleton--cover",style:CS}),D("div",{className:"bili-video-card__skeleton--info",children:pe("div",{className:"bili-video-card__skeleton--right",children:[D("p",{className:"bili-video-card__skeleton--text"}),D("p",{className:"bili-video-card__skeleton--text short"}),D("p",{className:"bili-video-card__skeleton--light"})]})})]}),f=ez((r==null?void 0:r.api)==="app"&&r.param),m=u.useMemo(()=>r&&pS(r),[r]),h=NH(m==null?void 0:m.authorMid);return pe("div",{style:t,className:W("bili-video-card",Ht.biliVideoCard,n),...c,children:[d,!o&&r&&m&&(f?D(N9,{item:r,emitter:s,dislikedReason:f}):h?D(k9,{cardData:m}):D(L9,{item:r,cardData:m,active:i,emitter:s,onRemoveCurrent:a,onMoveToFirst:l}))]})}),N9=u.memo(function({dislikedReason:t,item:n,emitter:r=bS}){const o=lt(async()=>{if(!(t!=null&&t.id))return;let i=!1,a;try{i=await V5(n,t.id);}catch(l){a=l;}if(a)return console.error(a.stack||a),Ly();i?Ct("已撤销"):Ay(),i&&_c.delete(n.param);});return ei(r,"cancel-dislike",o),pe("div",{className:W(Ht.dislikedWrapper),children:[D("div",{className:Ht.dislikeContentCover,children:pe("div",{className:Ht.dislikeContentCoverInner,children:[D(Dt,{name:"DistraughtFace",size:32,className:Ht.dislikeIcon}),D("div",{className:Ht.dislikeReason,children:t==null?void 0:t.name}),D("div",{className:Ht.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),D("div",{className:Ht.dislikeContentAction,children:pe("button",{onClick:o,children:[D(Dt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),k9=u.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,i=lt(async()=>{if(!n)return;await dS.remove(n)&&Ct(`已移出黑名单: ${o}`);});return pe("div",{className:W(Ht.dislikedWrapper),children:[D("div",{className:Ht.dislikeContentCover,children:pe("div",{className:Ht.dislikeContentCoverInner,children:[D(Dt,{name:"PeopleDelete",size:32,className:Ht.dislikeIcon}),D("div",{className:Ht.dislikeReason,children:"已拉黑"}),pe("div",{className:Ht.dislikeDesc,children:["UP: ",o]})]})}),D("div",{className:Ht.dislikeContentAction,children:pe("button",{onClick:i,children:[D(Dt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),L9=u.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:i,emitter:a=bS}){var Ue,de;const l=t.api==="pc",s=t.api==="app";t.api,t.api,t.api;const{avid:c,bvid:d,goto:f,href:m,title:h,titleRender:g,coverRaw:v,pubdateDisplay:p,pubdateDisplayTitle:y,duration:b,durationStr:O,recommendReason:P,invalidReason:w,play:$,like:S,coin:C,danmaku:I,favorite:M,authorName:L,authorFace:_,authorMid:E,appBadge:x,appBadgeDesc:R}=n,k=f==="av";["av","bangumi","picture"].includes(f)||console.warn(`[${nn}]: none (av,bangumi,picture) goto type %s`,f,t);const T=u.useMemo(()=>R9(v),[v]),[A,z]=u.useState(null),F=u.useRef(!1),V=lt(async()=>{if(!A&&!F.current)try{F.current=!0,z(await F5(c));}finally{F.current=!1;}}),j=u.useRef(null),[H,B]=u.useState(void 0);Yr("mouseenter",ne=>{var tt;const me=(tt=j.current)==null?void 0:tt.getBoundingClientRect();if(!me)return;const{x:le}=me,Ne=ne.pageX-window.pageXOffset-le;B(Ne);},{target:j});const X=Pu(j),{autoPreviewWhenHover:J}=In(),{onStartPreviewAnimation:Q,onHotkeyPreviewAnimation:K,previewAnimationProgress:Y}=A9({bvid:d,title:h,autoPreviewWhenHover:J,active:r,tryFetchVideoData:V,videoPreviewWrapperRef:j});Ss(()=>{if(r){try{unsafeWindow[`${X2}_activeItem`]=t;}catch(ne){console.warn("set unsafeWindow activeItem error"),console.warn(ne.stack||ne);}St.autoPreviewWhenKeyboardSelect&&Q();}},[r]);const re=u.useRef(null),ue=Pu(re),se=ZH(d),{accessKey:ee}=In(),ae=!!ee;u.useEffect(()=>{X&&V();},[X]);const q=u.useRef(!1),te=lt(async(ne,me)=>{if(ne==null||ne.preventDefault(),me??(me=se?uv:Il),me!==Il&&me!==uv)throw new Error("unexpected usingAction provided");if(q.current)return;q.current=!0;let le=!1;try{le=await me(c);}finally{q.current=!1;}if(le){const Ne=me===Il;Ne?ui.bvidSet.add(d):ui.bvidSet.delete(d),t.api==="watchlater"&&Ne===!1&&(await Lo(100),o==null||o(t,n));}return le}),ce=u.useRef(null),fe=Pu(ce),he=lt(ne=>{if(ne==null||ne.stopPropagation(),ne==null||ne.preventDefault(),!ke)return t.api!=="app"?Ct("当前视频不支持提交「我不想看」"):ae?void 0:Ct("请先获取 access_key");oz(t);}),ge=u.useMemo(()=>xu($),[$]),be=u.useMemo(()=>xu(S),[S]),Re=u.useMemo(()=>xu(M),[M]),De=l?be:Re,$e=({text:ne,iconSvgName:me,iconSvgScale:le})=>pe("span",{className:"bili-video-card__stats--item",children:[D("svg",{className:"bili-video-card__stats--icon",style:{transform:le?`scale(${le})`:void 0},children:D("use",{href:me})}),D("span",{className:"bili-video-card__stats--text",children:ne})]}),[we,Te]=u.useState(void 0),[Je,Ve]=u.useState(void 0),Ye=lt(async()=>{if(t.api!=="watchlater")return;const ne=await Ru.getVideoFavState(c);if(ne){const{favFolderNames:me,favFolderUrls:le}=ne;Te(me),Ve(le);}}),Me=lt(()=>{window.open(m,"_blank");});ei(a,"open",Me),ei(a,"toggle-watch-later",()=>te()),ei(a,"trigger-dislike",()=>he()),ei(a,"start-preview-animation",Q),ei(a,"hotkey-preview-animation",K);const ke=s&&ae&&((de=(Ue=t.three_point)==null?void 0:Ue.dislike_reasons)==null?void 0:de.length),qe=lt(()=>{let ne=m;m.startsWith("/")&&(ne=new URL(m,location.href).href),Uv(ne);}),et=lt(()=>{let ne=m;t.api==="watchlater"&&(ne=`/video/${t.bvid}`);const me=new URL(ne,location.href).href,le=`iina://open?url=${encodeURIComponent(me)}`;window.open(le,"_self");}),ye=il(),xe=ye==="recommend-app"||ye==="recommend-pc",ze=lt(async()=>{if(!E)return Ct("UP mid 为空!");await dS.add(E)&&Ct(`已加入黑名单: ${L}`);}),Le=u.useMemo(()=>{const ne=se?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:D(Dt,{name:"EfferentFour",size:15}),onClick:Me},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:D(Dt,{name:"Copy",size:15}),onClick:qe},{key:"copy-bvid",label:"复制 BVID",icon:D(Dt,{name:"Copy",size:15}),onClick(){Uv(d);}},{type:"divider"},ke&&{key:"dislike",label:"我不想看",icon:D(Dt,{name:"DislikeTwo",size:15}),onClick(){he();}},xe&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:D(Dt,{name:"PeopleDelete",size:15}),onClick(){ze();}},t.api==="watchlater"&&{key:"add-fav",icon:D(Dt,{name:"Star",size:15,...we!=null&&we.length?{theme:"two-tone",fill:["currentColor",kr]}:void 0}),label:we!=null&&we.length?`已收藏 ${we.map(me=>`「${me}」`).join("")}`:"快速收藏",async onClick(){!!(we!=null&&we.length)?Je==null||Je.forEach(le=>{window.open(le,"_blank");}):await Ru.addFav(c)&&Ct(`已加入收藏夹「${Vd}』」`);}},{key:"watchlater",label:ne,icon:D(Dt,{name:se?"Delete":"FileCabinet",size:15}),onClick(){te();}},t.api==="watchlater"&&se&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:D(Dt,{name:"AddTwo",size:15}),async onClick(){await te(void 0,Il)&&(i==null||i(t,n));}},...t.api==="fav"?[{type:"divider"},{key:"open-fav-folder",label:"浏览收藏夹",icon:D(Dt,{name:"EfferentFour",size:15}),onClick(){const{id:me}=t.folder,le=uS(me);window.open(le,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:D(Dt,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await Ru.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...BL?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:D(Dt,{name:"PlayTwo",size:15}),onClick:et}]:[]].filter(Boolean)},[t,se,ke,xe,we,Je]),rt=lt(ne=>{ne&&Ye();});return pe("div",{className:"bili-video-card__wrap __scale-wrap",children:[D(AC,{menu:{items:Le},trigger:["contextMenu"],onOpenChange:rt,children:D("a",{href:m,target:"_blank",children:pe("div",{className:"bili-video-card__image __scale-player-wrap",ref:j,style:{...CS,aspectRatio:"16 / 9"},children:[pe("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[pe("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!xm&&D("source",{srcSet:`${T}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),D("source",{srcSet:`${T}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),D("img",{src:`${T}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(X||typeof Y=="number")&&D(y9,{videoDuration:b,pvideo:A==null?void 0:A.pvideoData,mouseEnterRelativeX:H,previewAnimationProgress:Y}),pe("div",{className:`bili-watch-later ${Ht.watchLater}`,style:{display:X||r?"flex":"none"},ref:re,onClick:te,children:[D("svg",{className:"bili-watch-later__icon",children:D("use",{href:se?"#widget-watch-save":"#widget-watch-later"})}),D("span",{className:"bili-watch-later__tip",style:{display:ue?"block":"none"},children:se?"移除稍后再看":"稍后再看"})]}),ke&&pe("div",{ref:ce,className:Ht.btnDislike,onClick:he,style:{display:X?"flex":"none"},children:[D("svg",{className:Ht.btnDislikeIcon,children:D("use",{href:"#widget-close"})}),D("span",{className:Ht.btnDislikeTip,style:{display:fe?"block":"none"},children:"我不想看"})]})]}),D("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:pe("div",{className:"bili-video-card__stats",children:[D("div",{className:"bili-video-card__stats--left",children:l?pe(Et,{children:[$e({text:ge,iconSvgName:oa.play}),$e({text:f==="av"?be:De,iconSvgName:oa.like})]}):s?pe(Et,{children:[t.cover_left_text_1&&$e({...Gv(t.cover_left_icon_1),text:f==="picture"?t.cover_left_text_1+(t.cover_left_1_content_description||""):t.cover_left_text_1}),t.cover_left_text_2&&$e({...Gv(t.cover_left_icon_2),text:f==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]}):pe(Et,{children:[$e({text:ge,iconSvgName:oa.play}),$e({text:(I||0).toString(),iconSvgName:oa.danmaku})]})}),D("span",{className:"bili-video-card__stats__duration",children:k&&O})]})})]})})}),D("div",{className:"bili-video-card__info __scale-disable",children:pe("div",{className:"bili-video-card__info--right",children:[D("a",{href:m,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:D("h3",{className:"bili-video-card__info--tit",title:h,children:g??h})}),D("p",{className:"bili-video-card__info--bottom",children:k?pe("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${E}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",title:`${L} ${y||p}`,children:[P?D("span",{className:Ht.recommendReason,children:P}):D("svg",{className:"bili-video-card__info--owner__up",children:D("use",{href:"#widget-up"})}),D("span",{className:"bili-video-card__info--author",children:L}),p&&pe("span",{className:"bili-video-card__info--date",children:["· ",p]})]}):x||R?pe("a",{className:"bili-video-card__info--owner",href:m,target:"_blank",children:[D("span",{className:Ht.badge,children:x||""}),D("span",{className:Ht.bangumiDesc,children:R||""})]}):null})]})})]})});function A9({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:i}){const[l,s]=rC(void 0),[c,d]=u.useState(!1),f=u.useRef(!1),m=u.useRef(!1);Yr("mouseenter",C=>{f.current=!0,n&&!g.current&&S(!0);},{target:i}),Yr("mouseleave",C=>{f.current=!1;},{target:i}),Yr("mousemove",C=>{d(!0),n||p();},{target:i});const h=P5(),g=u.useRef(void 0),v=lt(()=>{if(h.current)return !0;if(n){if(m.current){if(!f.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),p=lt((C=!1)=>{g.current&&cancelAnimationFrame(g.current),g.current=void 0,s(void 0),b(!1);}),[y,b,O]=tC(!1),P=u.useRef(),w=lt(()=>{var C;if(!g.current){S();return}b(I=>!I),y&&((C=P.current)==null||C.call(P,l||0));}),$=lt(()=>l||0),S=lt((C=!1)=>{m.current=C,d(!1),b(!1),o(),p(!0),s(x=>typeof x>"u"?0:x);const I=8e3,M=()=>typeof St.autoPreviewUpdateInterval=="number"?St.autoPreviewUpdateInterval:400;let L=performance.now(),_=0;P.current=()=>{L=performance.now()-$()*I;};function E(x){if(v()){p();return}const R=()=>{const k=performance.now()-L,T=Math.min(k%I/I,1);s(T);};O()||(M()?(!_||performance.now()-_>=M())&&(_=performance.now(),R()):R()),g.current=requestAnimationFrame(E);}g.current=requestAnimationFrame(E);});return {onHotkeyPreviewAnimation:w,onStartPreviewAnimation:S,previewAnimationProgress:l}}var D9=1,z9=2;function j9(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return !i;for(e=Object(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return !1}for(;++o<i;){l=n[o];var s=l[0],c=e[s],d=l[1];if(a&&l[2]){if(c===void 0&&!(s in e))return !1}else {var f=new fr;if(r)var m=r(c,d,s,e,t,f);if(!(m===void 0?Mc(d,c,D9|z9,r,f):m))return !1}}return !0}function SS(e){return e===e&&!Fn(e)}function B9(e){for(var t=Ba(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,SS(o)];}return t}function wS(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function H9(e){var t=B9(e);return t.length==1&&t[0][2]?wS(t[0][0],t[0][1]):function(n){return n===e||j9(n,e,t)}}function F9(e,t,n){var r=e==null?void 0:Js(e,t);return r===void 0?n:r}var W9=1,V9=2;function K9(e,t){return $f(e)&&SS(t)?wS(Ri(e),t):function(n){var r=F9(n,e);return r===void 0&&r===t?qp(n,e):Mc(t,r,W9|V9)}}function G9(e){return function(t){return t==null?void 0:t[e]}}function U9(e){return function(t){return Js(t,e)}}function X9(e){return $f(e)?G9(Ri(e)):U9(e)}function Y9(e){return typeof e=="function"?e:e==null?Xp:typeof e=="object"?Wn(e)?K9(e[0],e[1]):H9(e):X9(e)}function q9(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return -1}function Z9(e){return e!==e}function Q9(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}function J9(e,t,n){return t===t?Q9(e,t,n):q9(e,Z9,n)}function eF(e,t){var n=e==null?0:e.length;return !!n&&J9(e,t,0)>-1}function tF(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 nF=1/0,rF=li&&1/Mm(new li([,-0]))[1]==nF?function(e){return new li(e)}:UC;const oF=rF;var iF=200;function aF(e,t,n){var r=-1,o=eF,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=tF;else if(i>=iF){var c=t?null:oF(e);if(c)return Mm(c);a=!1,o=Jy,s=new Ra;}else s=t?[]:l;e:for(;++r<i;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,a&&f===f){for(var m=s.length;m--;)if(s[m]===f)continue e;t&&s.push(f),l.push(d);}else o(s,f,n)||(s!==l&&s.push(f),l.push(d));}return l}function zc(e,t){return e&&e.length?aF(e,Y9(t)):[]}const Km="_video-grid_1qaxg_9",$S="_video-grid-new-homepage_1qaxg_17",lF="_limit-two-lines_1qaxg_20",xS="_video-grid-internal-testing_1qaxg_52";const Xv="_video-grid-container_1qaxg_80",sF="_video-grid-youtube-like_1qaxg_84",cF="_narrow-mode_1qaxg_112";function uF({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:i,changeScrollY:a,videoCardEmitters:l}){const[s,c]=u.useState(void 0),d=lt(()=>!(!e||$c())),f=lt(()=>{var S;if(typeof s!="number"||!o.current)return !1;const w=i(),$=(S=o.current.querySelector(`.${fi.card}.${fi.cardActive}`))==null?void 0:S.getBoundingClientRect();return !(!w||!$||$.top-w.top<-(w.height+$.height)||$.top-w.top>w.height*2+$.height)}),m=w=>$=>{if(!d())return;$==null||$.preventDefault();let S=typeof w=="number"?w:w();const C=f()?s+S:p();if(C<n){P(n);return}if(C>r){P(r);return}c(C),P(C);};Qt("leftarrow",m(-1),{exactMatch:!0}),Qt("rightarrow",m(1),{exactMatch:!0}),Qt("tab",m(1),{exactMatch:!0}),Qt("shift.tab",m(-1),{exactMatch:!0});const h=()=>Gm(o.current);Qt("uparrow",m(()=>-h()),{exactMatch:!0}),Qt("downarrow",m(h),{exactMatch:!0});const g=()=>{d()&&c(void 0);},v=()=>{if(!(!d()||typeof s!="number"))return l[s]};Qt("esc",g),Qt("enter",()=>{var w;!d()||typeof s!="number"||(w=v())==null||w.emit("open");}),Qt("backspace",()=>{var w;!d()||typeof s!="number"||(w=v())==null||w.emit("trigger-dislike");}),Qt(["s","w"],()=>{var w;!d()||typeof s!="number"||(w=v())==null||w.emit("toggle-watch-later");},{exactMatch:!0}),Qt(["period","p"],()=>{var w;!d()||typeof s!="number"||(w=v())==null||w.emit("hotkey-preview-animation");},{exactMatch:!0});function p(){const w=i();if(!w)return 0;const $=b();for(let S=0;S<$.length;S++)if($[S].getBoundingClientRect().top>=w.top)return S;return 0}const y=`.${fi.card}`;function b(){var w;return [...((w=o.current)==null?void 0:w.querySelectorAll(y))||[]]}function O(w){return b()[w]}function P(w){var I;const $=O(w);(I=$==null?void 0:$.scrollIntoViewIfNeeded)==null||I.call($,!1);const S=i(),C=$.getBoundingClientRect();if(!(!S||!C)){if(C.top<=S.top){const M=-(S.top-C.top+10);a==null||a({offset:M});return}if(S.bottom-C.bottom<10){const M=10-(S.bottom-C.bottom);a==null||a({offset:M});return}}}return {activeIndex:s,clearActiveIndex:g}}const dF=new Map,fF=new Map;function Gm(e,t=!0){if(t&&St.useNarrowMode)return 2;const n=St.styleUseYoutubeLikeCard?dF:fF;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${Km}`)),!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 ES(e){return e==="onlyFollow"||St.filterMinDurationEnabled||St.filterMinPlayCountEnabled||St.filterOutGotoTypePicture}function IS(e,t){return ES(t)?e.filter(n=>{const{play:r,duration:o,recommendReason:i,goto:a}=pS(n),l=i==="已关注"||(i==null?void 0:i.includes("关注"));return t==="onlyFollow"?l:!St.enableFilterForFollowed&&l?!0:!(St.filterMinPlayCountEnabled&&St.filterMinPlayCount&&typeof r=="number"&&r<St.filterMinPlayCount||St.filterMinDurationEnabled&&St.filterMinDuration&&o&&o<St.filterMinDuration||St.filterOutGotoTypePicture&&a==="picture")}):e}var jc={exports:{}},Um={exports:{}},OS={exports:{}},en=OS.exports={},ar,lr;function Kd(){throw new Error("setTimeout has not been defined")}function Gd(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ar=setTimeout:ar=Kd;}catch{ar=Kd;}try{typeof clearTimeout=="function"?lr=clearTimeout:lr=Gd;}catch{lr=Gd;}})();function PS(e){if(ar===setTimeout)return setTimeout(e,0);if((ar===Kd||!ar)&&setTimeout)return ar=setTimeout,setTimeout(e,0);try{return ar(e,0)}catch{try{return ar.call(null,e,0)}catch{return ar.call(this,e,0)}}}function mF(e){if(lr===clearTimeout)return clearTimeout(e);if((lr===Gd||!lr)&&clearTimeout)return lr=clearTimeout,clearTimeout(e);try{return lr(e)}catch{try{return lr.call(null,e)}catch{return lr.call(this,e)}}}var Mr=[],di=!1,bo,Yl=-1;function hF(){!di||!bo||(di=!1,bo.length?Mr=bo.concat(Mr):Yl=-1,Mr.length&&MS());}function MS(){if(!di){var e=PS(hF);di=!0;for(var t=Mr.length;t;){for(bo=Mr,Mr=[];++Yl<t;)bo&&bo[Yl].run();Yl=-1,t=Mr.length;}bo=null,di=!1,mF(e);}}en.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Mr.push(new _S(e,t)),Mr.length===1&&!di&&PS(MS);};function _S(e,t){this.fun=e,this.array=t;}_S.prototype.run=function(){this.fun.apply(null,this.array);};en.title="browser";en.browser=!0;en.env={};en.argv=[];en.version="";en.versions={};function jr(){}en.on=jr;en.addListener=jr;en.once=jr;en.off=jr;en.removeListener=jr;en.removeAllListeners=jr;en.emit=jr;en.prependListener=jr;en.prependOnceListener=jr;en.listeners=function(e){return []};en.binding=function(e){throw new Error("process.binding is not supported")};en.cwd=function(){return "/"};en.chdir=function(e){throw new Error("process.chdir is not supported")};en.umask=function(){return 0};var gF=OS.exports;const Nu=Ar(gF);var Ud;typeof Object.create=="function"?Ud=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:Ud=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const RS=Ud;var vF=/%[sdj%]/g;function Ei(e){if(!cl(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(gr(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,i=String(e).replace(vF,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}}),a=r[n];n<o;a=r[++n])sl(a)||!Do(a)?i+=" "+a:i+=" "+gr(a);return i}function Xm(e,t){if(ur(global.process))return function(){return Xm(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 Rl={},ku;function TS(e){if(ur(ku)&&(ku={}.NODE_DEBUG||""),e=e.toUpperCase(),!Rl[e])if(new RegExp("\\b"+e+"\\b","i").test(ku)){var t=0;Rl[e]=function(){var n=Ei.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else Rl[e]=function(){};return Rl[e]}function gr(e,t){var n={seen:[],stylize:bF};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Bc(t)?n.showHidden=t:t&&Qm(n,t),ur(n.showHidden)&&(n.showHidden=!1),ur(n.depth)&&(n.depth=2),ur(n.colors)&&(n.colors=!1),ur(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=pF),Rs(n,e,n.depth)}gr.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]};gr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function pF(e,t){var n=gr.styles[t];return n?"\x1B["+gr.colors[n][0]+"m"+e+"\x1B["+gr.colors[n][1]+"m":e}function bF(e,t){return e}function yF(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function Rs(e,t,n){if(e.customInspect&&t&&pa(t.inspect)&&t.inspect!==gr&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return cl(r)||(r=Rs(e,r,n)),r}var o=CF(e,t);if(o)return o;var i=Object.keys(t),a=yF(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),va(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Lu(t);if(i.length===0){if(pa(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(ga(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Ts(t))return e.stylize(Date.prototype.toString.call(t),"date");if(va(t))return Lu(t)}var s="",c=!1,d=["{","}"];if(Ym(t)&&(c=!0,d=["[","]"]),pa(t)){var f=t.name?": "+t.name:"";s=" [Function"+f+"]";}if(ga(t)&&(s=" "+RegExp.prototype.toString.call(t)),Ts(t)&&(s=" "+Date.prototype.toUTCString.call(t)),va(t)&&(s=" "+Lu(t)),i.length===0&&(!c||t.length==0))return d[0]+s+d[1];if(n<0)return ga(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var m;return c?m=SF(e,t,n,a,i):m=i.map(function(h){return Xd(e,t,n,a,h,c)}),e.seen.pop(),wF(m,s,d)}function CF(e,t){if(ur(t))return e.stylize("undefined","undefined");if(cl(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(qm(t))return e.stylize(""+t,"number");if(Bc(t))return e.stylize(""+t,"boolean");if(sl(t))return e.stylize("null","null")}function Lu(e){return "["+Error.prototype.toString.call(e)+"]"}function SF(e,t,n,r,o){for(var i=[],a=0,l=t.length;a<l;++a)zS(t,String(a))?i.push(Xd(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(s){s.match(/^\d+$/)||i.push(Xd(e,t,n,r,s,!0));}),i}function Xd(e,t,n,r,o,i){var a,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")),zS(r,o)||(a="["+o+"]"),l||(e.seen.indexOf(s.value)<0?(sl(n)?l=Rs(e,s.value,null):l=Rs(e,s.value,n-1),l.indexOf(`
`)>-1&&(i?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")),ur(a)){if(i&&o.match(/^\d+$/))return l;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"));}return a+": "+l}function wF(e,t,n){var r=e.reduce(function(o,i){return i.indexOf(`
`)>=0,o+i.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(t===""?"":t+`
`)+" "+e.join(`,
`)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function Ym(e){return Array.isArray(e)}function Bc(e){return typeof e=="boolean"}function sl(e){return e===null}function NS(e){return e==null}function qm(e){return typeof e=="number"}function cl(e){return typeof e=="string"}function kS(e){return typeof e=="symbol"}function ur(e){return e===void 0}function ga(e){return Do(e)&&Zm(e)==="[object RegExp]"}function Do(e){return typeof e=="object"&&e!==null}function Ts(e){return Do(e)&&Zm(e)==="[object Date]"}function va(e){return Do(e)&&(Zm(e)==="[object Error]"||e instanceof Error)}function pa(e){return typeof e=="function"}function LS(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function AS(e){return Buffer.isBuffer(e)}function Zm(e){return Object.prototype.toString.call(e)}function Au(e){return e<10?"0"+e.toString(10):e.toString(10)}var $F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function xF(){var e=new Date,t=[Au(e.getHours()),Au(e.getMinutes()),Au(e.getSeconds())].join(":");return [e.getDate(),$F[e.getMonth()],t].join(" ")}function DS(){console.log("%s - %s",xF(),Ei.apply(null,arguments));}function Qm(e,t){if(!t||!Do(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function zS(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const EF={inherits:RS,_extend:Qm,log:DS,isBuffer:AS,isPrimitive:LS,isFunction:pa,isError:va,isDate:Ts,isObject:Do,isRegExp:ga,isUndefined:ur,isSymbol:kS,isString:cl,isNumber:qm,isNullOrUndefined:NS,isNull:sl,isBoolean:Bc,isArray:Ym,inspect:gr,deprecate:Xm,format:Ei,debuglog:TS},IF=Object.freeze(Object.defineProperty({__proto__:null,_extend:Qm,debuglog:TS,default:EF,deprecate:Xm,format:Ei,inherits:RS,inspect:gr,isArray:Ym,isBoolean:Bc,isBuffer:AS,isDate:Ts,isError:va,isFunction:pa,isNull:sl,isNullOrUndefined:NS,isNumber:qm,isObject:Do,isPrimitive:LS,isRegExp:ga,isString:cl,isSymbol:kS,isUndefined:ur,log:DS},Symbol.toStringTag,{value:"Module"})),OF=l1(IF);var PF=OF.format;function MF(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function _F(e,t){return function(){var n=this,r=[].slice.call(arguments);MF();var o=new AbortController;return r.push(o.signal),new Promise(function(i,a){var l=setTimeout(function(){var s=new jS(t);a(s),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(s){clearTimeout(l),i(s);},function(s){clearTimeout(l),a(s);});})}}let jS=class BS extends Error{constructor(t){super(),this.timeout=t,this.message=PF("timeout of %sms exceed",t),Error.captureStackTrace(this,BS);}};Um.exports=_F;Um.exports.TimeoutError=jS;var RF=Um.exports;const HS=RF,TF=HS.TimeoutError;jc.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,i=n.timeout;i&&(t=HS(t,i));const a=n.onerror;return async function(){const l=this,s=[].slice.call(arguments),c=new Array(o);for(let d=0;d<o;d++){let f,m;try{f=await t.apply(l,s);}catch(h){m=h;}if(!m)return f;if(m instanceof TypeError)throw m;if(m instanceof NF)throw m.originalError;c[d]=m,a&&a(m,d);}throw new FS({times:o,timeout:i,fn:r,errors:c})}};class FS 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 NF 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 kF=jc.exports.RetryError=FS;jc.exports.TimeoutError=TF;var LF=jc.exports;const AF=Ar(LF);class Jm extends Error{constructor(n){super();vt(this,"json");Error.captureStackTrace(this,Jm),this.json=n,this.message=n.message||JSON.stringify(n);}}async function DF(){var r;const t=(await Sc.get(zy+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)+"0"+Math.trunc(Math.random()*1e3).toString().padStart(3,"0")}})).data;if(!t.data){if(t.code===-663)throw new Jm(t);return Ct(`${nn}: 未知错误, 请联系开发者
code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const zF=AF(DF,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",nn,t,e);}});async function jF(){try{return await zF()}catch(e){if(e instanceof kF){console.error(e.errors);const t=[Ei("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>Ei(" %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(`
`);Ct(t,5e3);}throw e}}class Ns{constructor(){vt(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommendTimes(t){let n=[];return await(async()=>{n=(await Promise.all(new Array(t).fill(0).map(()=>jF()))).flat();})(),n=zc(n,o=>o.param),n.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}}vt(Ns,"PAGE_SIZE",10);const ks=class ks{constructor(){vt(this,"page",0);vt(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommend(t=void 0){var a,l;const n=++this.page,o=(await wn.get("/x/web-interface/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:ks.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (a=o.data)!=null&&a.item||Ct(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=zc(r,i=>i.id),r.forEach(i=>{var a,l;((a=i.rcmd_reason)==null?void 0:a.reason_type)===1&&((l=i.rcmd_reason).content||(l.content="已关注"));}),r.map(i=>({...i,uniqId:i.id+"-"+crypto.randomUUID(),api:"pc"}))}};vt(ks,"PAGE_SIZE",14);let Aa=ks;const Tl=Ti.extend("service"),ql=e=>vS(e,{pc:t=>t.id,app:t=>t.param,dynamic:t=>t.modules.module_dynamic.major.archive.aid,watchlater:t=>t.bvid,fav:t=>t.bvid});function BF(e,t){const n=e.map(ql);return t=zc(t,ql),e.concat(t.filter(r=>!n.includes(ql(r))))}const Yd=e=>e==="onlyFollow"||e==="recommend-pc";async function WS(e,t,n=5){const{pcRecService:r,dynamicFeedService:o,watchLaterService:i,favService:a,tab:l,abortSignal:s}=t,c=new Ns;let d=[],f=!0;const m=async h=>{let g=[];if(l==="dynamic"){g=await o.loadMore(s)||[],f=o.hasMore,d=d.concat(g);return}if(l==="watchlater"){g=await i.loadMore()||[],f=i.hasMore,d=d.concat(g);return}if(l==="fav"){g=await a.loadMore()||[],f=a.hasMore,d=d.concat(g);return}let v;if(l==="onlyFollow")v=8,Tl("getMinCount: addMore(restCount = %s) times=%s",h,v);else {const p=Yd(l)?Aa.PAGE_SIZE:Ns.PAGE_SIZE,y=ES(l)?n:1.2;v=Math.ceil(h*y/p),Tl("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",h,y,p,v);}g=Yd(l)?await r.getRecommendTimes(v,s):await c.getRecommendTimes(v),g=IS(g,l),d=d.concat(g),d=zc(d,ql);};for(await m(e);;){if(s!=null&&s.aborted){Tl("getMinCount: break for abortSignal");break}if(!f){Tl("getMinCount: break for tab=%s hasMore=false",l);break}if(d.length>=e)break;await m(e-d.length);}return d}async function HF(e){let t=await WS(Gm(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function FF(e){return WS(Gm()*3+1,e,5)}async function WF(e,t,n){let r=Yd(t)?await n.getRecommendTimes(e):await new Ns().getRecommendTimes(e);return r=IS(r,t),r}var Ii=1e3,Oi=Ii*60,Pi=Oi*60,Oo=Pi*24,VF=Oo*7,KF=Oo*365.25,GF=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return UF(e);if(n==="number"&&isFinite(e))return t.long?YF(e):XF(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function UF(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*KF;case"weeks":case"week":case"w":return n*VF;case"days":case"day":case"d":return n*Oo;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Pi;case"minutes":case"minute":case"mins":case"min":case"m":return n*Oi;case"seconds":case"second":case"secs":case"sec":case"s":return n*Ii;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function XF(e){var t=Math.abs(e);return t>=Oo?Math.round(e/Oo)+"d":t>=Pi?Math.round(e/Pi)+"h":t>=Oi?Math.round(e/Oi)+"m":t>=Ii?Math.round(e/Ii)+"s":e+"ms"}function YF(e){var t=Math.abs(e);return t>=Oo?Nl(e,t,Oo,"day"):t>=Pi?Nl(e,t,Pi,"hour"):t>=Oi?Nl(e,t,Oi,"minute"):t>=Ii?Nl(e,t,Ii,"second"):e+" ms"}function Nl(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const qF=Ar(GF);var qd=new Map,kl=new WeakMap,Yv=0,ZF=void 0;function QF(e){return e?(kl.has(e)||(Yv+=1,kl.set(e,Yv.toString())),kl.get(e)):"0"}function JF(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?QF(e.root):e[t]}`).toString()}function e7(e){let t=JF(e),n=qd.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var s;const c=l.isIntersecting&&o.some(d=>l.intersectionRatio>=d);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=c),(s=r.get(l.target))==null||s.forEach(d=>{d(c,l);});});},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},qd.set(t,n);}return n}function t7(e,t,n={},r=ZF){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:i,elements:a}=e7(n);let l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),qd.delete(o));}}function n7({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:s,onChange:c}={}){var d;const[f,m]=u__namespace.useState(null),h=u__namespace.useRef(),[g,v]=u__namespace.useState({inView:!!l,entry:void 0});h.current=c,u__namespace.useEffect(()=>{if(a||!f)return;let O;return O=t7(f,(P,w)=>{v({inView:P,entry:w}),h.current&&h.current(P,w),w.isIntersecting&&i&&O&&(O(),O=void 0);},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{O&&O();}},[Array.isArray(e)?e.toString():e,f,o,r,i,a,n,s,t]);const p=(d=g.entry)==null?void 0:d.target,y=u__namespace.useRef();!f&&p&&!i&&!a&&y.current!==p&&(y.current=p,v({inView:!!l,entry:void 0}));const b=[m,g.inView,g.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}function r7(e){const t=u.useRef(null);return t.current||(t.current=e()),t}class Zd{constructor(){vt(this,"offset","");vt(this,"page",0);vt(this,"hasMore",!0);}async loadMore(t=void 0){if(!this.hasMore)return;this.page++;const n={timezone_offset:"-480",type:"video",features:"itemOpusStyle",page:this.page};this.offset&&(n.offset=this.offset);const o=(await wn.get("/x/polymer/web-dynamic/v1/feed/all",{signal:t,params:n})).data;return this.hasMore=o.data.has_more,this.offset=o.data.offset,o.data.items.map(l=>({...l,api:"dynamic",uniqId:l.id_str||crypto.randomUUID()}))}}vt(Zd,"PAGE_SIZE",15);function VS({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:i,setUpperRefreshing:a}){const l=wz(),s=r7(()=>({})),[c,d]=u.useState(!0),[f,m]=u.useState([]),[h,g]=u.useState(()=>new Aa),[v,p]=u.useState(()=>new Zd),[y,b]=u.useState(()=>new ka),[O,P]=u.useState(()=>new Na),[w,$]=u.useState(!1),[S,C,I]=tC(()=>Date.now()),[M,L]=u.useState(l),[_,E]=u.useState(()=>new AbortController),[x,R]=u.useState(!1),[k,T]=u.useState(void 0),A=lt(async(z=!1,F)=>{var ce;const V=performance.now();if(w)if(l===M){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",l);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",M,l),_.abort();else e("refresh(): [start] tab = %s",l);await(i==null?void 0:i());const j=fe=>{$(fe),a==null||a(fe);};j(!0),C(Date.now()),L(l),m([]),T(void 0),d(!0),await(r==null?void 0:r());let H=[],B;const X=!!(z&&((ce=s.current[l])!=null&&ce.length)),J=!!(X&&(hv[l].swr||l==="fav"));R(J);const Q=X&&(J||l==="fav"),K=async()=>{try{H=await n(q);}catch(fe){B=fe;}},Y=t?new Aa:h;t&&g(Y);let re=v;l==="dynamic"&&(re=new Zd,p(re));let ue=y;l==="watchlater"&&(ue=new ka(F==null?void 0:F.watchlaterKeepOrder),b(ue));let se=O;l==="fav"&&(X?se.restore():(se=new Na,P(se)));const ee=new AbortController,ae=ee.signal;E(ee);const q={tab:l,pcRecService:Y,dynamicFeedService:re,watchLaterService:ue,favService:se,abortSignal:ae};if(e("refresh(): shouldReuse=%s swr=%s",X,J),X?(H=s.current[l]||[],m(H),Q&&await K()):(s.current[l]=[],await K()),ae.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",l);return}if(j(!1),B){console.error(B),T(B);return}m(H),hv[l].swr?s.current[l]=H.slice(0,30):s.current[l]=H,l==="dynamic"&&d(re.hasMore),l==="dynamic"&&d(re.hasMore),l==="fav"&&d(se.hasMore),await(o==null?void 0:o());const te=performance.now()-V;e("refresh(): [success] cost %s ms",te.toFixed(0));});return {items:f,itemsCache:s,setItems:m,error:k,refreshedAt:S,setRefreshedAt:C,getRefreshedAt:I,refreshing:w,setRefreshing:$,refreshFor:M,setRefreshFor:L,refreshAbortController:_,setRefreshAbortController:E,hasMore:c,setHasMore:d,swr:x,setSwr:R,pcRecService:h,dynamicFeedService:v,watchLaterService:y,favService:O,setPcRecService:g,setDynamicFeedService:p,setWatchLaterService:b,setFavService:P,refresh:A}}const ta=Ti.extend("components:RecGrid"),fi={card:rv`
border: 2px solid transparent;
/* global class under .card */
.bili-video-card__info {
padding-left: 2px;
padding-bottom: 1px;
margin-top: calc(var(--info-margin-top) - 1px);
}
`,cardActive:rv`
border-color: ${kr};
border-radius: ${yS};
overflow: hidden;
`};var o7={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const KS=u.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:i,setExtraInfo:a},l)=>{const{useNarrowMode:s,styleUseYoutubeLikeCard:c}=In(),d=il(),[f,m]=u.useState(0),h=lt(async()=>{H(),a==null||a();}),g=lt(()=>{H(),m(1),d==="watchlater"&&(a==null||a(L.usageInfo)),d==="fav"&&(a==null||a(_.usageInfo)),k();}),{refresh:v,items:p,setItems:y,error:b,refreshing:O,refreshedAt:P,getRefreshedAt:w,swr:$,hasMore:S,setHasMore:C,pcRecService:I,dynamicFeedService:M,watchLaterService:L,favService:_}=VS({tab:d,debug:ta,fetcher:FF,recreateService:!0,preAction:h,postAction:g,onScrollToTop:n,setUpperRefreshing:i});Oc(v),u.useImperativeHandle(l,()=>({refresh:v}),[]);const E=u.useRef();Yr("visibilitychange",ee=>{if(!(document.visibilityState==="visible")){E.current=Date.now();return}O||x.current[P]||d==="watchlater"&&E.current&&Date.now()-E.current>qF("1h")&&v(!0,{watchlaterKeepOrder:!0});},{target:document});const x=u.useRef({}),R=lt(async()=>{if(!S||O)return;const ee=P;if(x.current[ee])return;x.current={[ee]:!0};let ae=p,q=!0;try{if(d==="dynamic")ae=ae.concat(await M.loadMore()||[]),q=M.hasMore;else if(d==="watchlater")ae=ae.concat(await L.loadMore()||[]),q=L.hasMore;else if(d==="fav")ae=ae.concat(await _.loadMore()||[]),q=_.hasMore;else for(;!(ae.length>p.length);){const ce=await WF(d==="onlyFollow"?5:2,d,I);ae=BF(ae,ce);}}catch(te){throw x.current[ee]=!1,te}if(ee!==w()){ta("loadMore: skip update for mismatch refreshedAt, %s != %s",ee,w());return}ta("loadMore: seq(%s) len %s -> %s",f+1,p.length,ae.length),C(q),y(ae),m(te=>te+1),x.current[ee]=!1,k();}),k=lt(async()=>{await Lo(xm?100:50),ta("checkShouldLoadMore(): footerInView = %s",Y.current),Y.current&&R();}),T=u.useRef(null),A=lt(()=>{var ee;if(e){const ae=iS()+50;return new DOMRect(0,ae,window.innerWidth,window.innerHeight-ae)}else return (ee=o==null?void 0:o.current)==null?void 0:ee.getBoundingClientRect()}),z=nz(),F=u.useMemo(()=>new Map,[P]),V=u.useMemo(()=>p.map(({uniqId:ee})=>F.get(ee)||(()=>{const ae=gS();return F.set(ee,ae),ae})()),[p]),{activeIndex:j,clearActiveIndex:H}=uF({enabled:t&&!z,refresh:v,maxIndex:p.length-1,containerRef:T,getScrollerRect:A,videoCardEmitters:V,changeScrollY:e?function({offset:ee,absolute:ae}){const q=document.documentElement;if(typeof ee=="number"){q.scrollTop+=ee;return}if(typeof ae=="number"){q.scrollTop=ae;return}}:void 0}),B=$i(),X=lt((ee,ae)=>{y(q=>{const te=q.findIndex(fe=>fe.uniqId===ee.uniqId);if(te===-1)return q;let ce=q.slice();return ce.splice(te,1),Ct(`已移除: ${ae.title}`,4e3),d==="watchlater"&&(L.count--,a==null||a(L.usageInfo)),d==="fav"&&(_.total--,a==null||a(_.usageInfo)),ce});}),J=lt((ee,ae)=>{y(q=>{const te=q.find(he=>he.uniqId===ee.uniqId);if(!te)return q;const ce=q.indexOf(te),fe=q.slice();return fe.splice(ce,1),fe.unshift(te),fe});}),{ref:Q,inView:K}=n7({root:e?null:(o==null?void 0:o.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(ee){ee&&(ta("footerInView change to visible",ee),R());}}),Y=xi(K),re=D("div",{ref:Q,css:o7,children:!O&&D(Et,{children:S?pe(Et,{children:[D(Dt,{name:"Loading",fill:kr,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),ue=W(`${nn}-video-grid`,Km,c?sF:B?xS:$S,s&&cF,r);return !p.length||b||O&&!$?D("div",{className:Xv,children:D("div",{className:ue,children:new Array(28).fill(void 0).map((ee,ae)=>D(_s,{loading:!0,className:fi.card},ae))})}):pe("div",{style:{minHeight:"100%"},className:Xv,children:[D("div",{ref:T,className:ue,children:p.map((ee,ae)=>{const q=ae===j;return D(_s,{className:W(fi.card,{[fi.cardActive]:q}),item:ee,active:q,onRemoveCurrent:X,onMoveToFirst:J,emitter:V[ae]},ee.uniqId)})}),re]})}),i7={grid:Bn`
/* card=360 col-gap=16 */
width: ${360*2+20}px;
margin: 0 auto;
`};function a7(){const{useNarrowMode:e}=In(),{modalFeedVisible:t,modalConfigVisible:n}=$H(),r=u.useRef(null),o=u.useRef(null),i=lt((...f)=>{var m;return (m=o.current)==null?void 0:m.refresh(...f)}),a=lt(()=>{var f;return (f=r.current)==null?void 0:f.scroll()}),[l,s]=u.useState(!1),[c,d]=u.useState(null);return pe("section",{"data-area":"推荐",children:[D(sS,{ref:r,refreshing:l,onRefresh:i,leftSlot:c}),D(KS,{ref:o,css:[e&&i7.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:a,setRefreshing:s,setExtraInfo:d})]})}const l7=Ti.extend("components:SectionRecommend");function s7(){const e=u.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=$i(),n=il(),{refreshing:r,items:o,refresh:i,error:a,swr:l}=VS({tab:n,debug:l7,fetcher:HF,recreateService:!1});Oc(i);const s=!o.length||a||r&&!l;return pe("section",{"data-area":"推荐",children:[D(sS,{refreshing:r,onRefresh:i}),D("div",{className:W(Km,lF,t?xS:$S),style:{marginBottom:t?30:0},children:s?e.map(c=>D(_s,{},c)):o.map(c=>D(_s,{item:c},c.uniqId))})]})}Di.extend(VA);(function(){var t,n;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?")){window.stop(),window.top===window?(t=window.opener)==null||t.postMessage(location.href,"https://www.bilibili.com"):(n=window.top)==null||n.postMessage(location.href,"https://www.bilibili.com");return}if(location.pathname==="/"||location.pathname==="/index.html")return c7()})();async function c7(){return fa(".adblock-tips"),da("html.gray",e=>e.classList.remove("gray")),St.pureRecommend?d7():u7()}async function u7(){const t=Date.now()+1e4;let n;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const i=document.querySelector(".bili-layout > section.bili-grid");n=a=>i==null?void 0:i.insertAdjacentElement("afterend",a);break}if($i()&&document.querySelector(".bili-feed4-layout")){n=i=>{var a;return (a=document.querySelector(".bili-feed4-layout"))==null?void 0:a.insertAdjacentElement("afterbegin",i)};break}await Lo(200);}if(!n){console.error(`[${nn}]: init fail`);return}const r=document.createElement("section");n(r),Ec(r).render(D(Oy,{children:D(s7,{})})),$i()&&fa(".bili-feed4 .header-channel");}async function d7(){var o,i;xm&&await Lo(500),$i()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),fa(".bili-feed4 .header-channel"),da(".palette-button-wrap .storage-box",a=>a.classList.remove("hidden")),da(".palette-button-wrap .top-btn-wrap .top-btn",a=>a.classList.add("visible")),da(".palette-button-wrap",a=>{a.style.position="absolute";})):((i=document.querySelector(".bili-layout"))==null||i.remove(),fa(".bili-footer"),fa(".palette-button-wrap > .primary-btn",a=>a.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(a=>{a.classList.remove("hidden"),a.classList.contains("top-btn")&&a.classList.remove("top-btn");});}));const e=document.createElement("div");e.classList.add($i()?"bili-feed4-layout":"bili-layout","pure-recommend");const t=document.querySelector(".bili-header");t==null||t.insertAdjacentElement("afterend",e);const n=document.createElement("section");e==null||e.appendChild(n),Ec(n).render(D(Oy,{children:D(a7,{})}));}
})(React, axios, ReactDOM, UAParser, axiosGmxhrAdapter);