// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.17.8 // @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://lf9-cdn-tos.bytecdntp.com/cdn/expire-10-y/react/18.2.0/umd/react.production.min.js // @require https://lf9-cdn-tos.bytecdntp.com/cdn/expire-10-y/react-dom/18.2.0/umd/react-dom.production.min.js // @connect app.bilibili.com // @connect passport.bilibili.com // @connect link.acg.tv // @connect www.mcbbs.net // @grant GM.getValue // @grant GM.setClipboard // @grant GM.setValue // @grant GM.xmlHttpRequest // @grant GM_addStyle // @grant unsafeWindow // @downloadURL none // ==/UserScript== (t=>{if(typeof GM_addStyle=="function"){GM_addStyle(t);return}const e=document.createElement("style");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}._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}._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}.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_1rloz_1{width:500px}._title-desc_1rloz_4{margin-left:5px;font-size:40%}._reason-list_1rloz_8{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_1rloz_8{color:inherit;width:48%;text-align:center;line-height:20px;position:relative;border:1px solid #eee;padding-top:5px;padding-bottom:5px;margin-top:5px;margin-bottom:5px}body.dark ._reason_1rloz_8{border:1px solid #333}._reason_1rloz_8._active_1rloz_29{border-color:#f69;border-radius:4px}._reason-no_1rloz_33{position:absolute;left:6px;width:20px;height:20px;border-radius:50%;top:6px;display:flex;align-items:center;justify-content:center;background-color:#6a5acd;background-color:#f69;color:#fff}._tips-container_1rloz_47{margin-top:20px}._tips_1rloz_47{display:flex;align-items:center}._bili-video-card_mnvtu_1{position:relative}._preview-card-wrapper_mnvtu_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_mnvtu_4 ._preview-card-inner_mnvtu_17{width:100%;height:100%}._watch-later_mnvtu_21{z-index:5}._badge_mnvtu_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_mnvtu_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_mnvtu_48{color:default}._btn-dislike_mnvtu_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_mnvtu_51 ._btn-dislike-icon_mnvtu_66{pointer-events:none;-webkit-user-select:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mnvtu_51 ._btn-dislike-tip_mnvtu_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_mnvtu_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_mnvtu_88{border:1px solid #333}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-icon_mnvtu_119{margin-bottom:5px}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-reason_mnvtu_122{font-size:20px;text-align:center}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-desc_mnvtu_126{font-size:16px;text-align:center}._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130{border-top:1px solid #333}._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mnvtu_147 .bili-video-card__skeleton--cover,._skeleton-active_mnvtu_147 .bili-video-card__skeleton--text,._skeleton-active_mnvtu_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_mnvtu_1;animation-duration:2.165s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mnvtu_1{0%{background-position:100% 50%}61.8%,to{background-position:0 50%}}._video-grid_t2sr7_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_t2sr7_17{grid-template-columns:repeat(4,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(5,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(6,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+13){display:none!important}}@media (min-width: 2200px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(7,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+15){display:none!important}}._video-grid-internal-testing_t2sr7_52{grid-gap:20px 20px}@media (max-width: 1399px){._video-grid-internal-testing_t2sr7_52{grid-template-columns:repeat(4,1fr)}._video-grid-internal-testing_t2sr7_52._limit-one-line_t2sr7_59>*:nth-of-type(n+5){display:none!important}._video-grid-internal-testing_t2sr7_52._limit-two-lines_t2sr7_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1400px){._video-grid-internal-testing_t2sr7_52{grid-template-columns:repeat(5,1fr)}._video-grid-internal-testing_t2sr7_52._limit-one-line_t2sr7_59>*:nth-of-type(n+6){display:none!important}._video-grid-internal-testing_t2sr7_52._limit-two-lines_t2sr7_20>*:nth-of-type(n+11){display:none!important}}._video-grid-container_t2sr7_80{container-name:video-grid-container;container-type:inline-size}._video-grid-youtube-like_t2sr7_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_t2sr7_84{grid-template-columns:repeat(2,1fr)}}@container video-grid-container (width >= 932px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(3,1fr)}}@container video-grid-container (width >= 1248px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(4,1fr)}}@container video-grid-container (width >= 1564px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(5,1fr)}}._narrow-mode_t2sr7_112{grid-template-columns:repeat(2,1fr)!important}._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} "); (async function (f, p0) { 'use strict'; function _interopNamespaceDefault(e) { const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } }); if (e) { for (const k in e) { if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: () => e[k] }); } } } n.default = e; return Object.freeze(n); } const f__namespace = /*#__PURE__*/_interopNamespaceDefault(f); const p0__namespace = /*#__PURE__*/_interopNamespaceDefault(p0); var s$=Object.defineProperty;var l$=(e,t,n)=>t in e?s$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var wt=(e,t,n)=>(l$(e,typeof t!="symbol"?t+"":t,n),n);var Io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function an(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g$(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 C0={exports:{}},lc={};/** * @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 v$=f,p$=Symbol.for("react.element"),b$=Symbol.for("react.fragment"),y$=Object.prototype.hasOwnProperty,C$=v$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,S$={key:!0,ref:!0,__self:!0,__source:!0};function S0(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)y$.call(t,r)&&!S$.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:p$,type:e,key:i,ref:a,props:o,_owner:C$.current}}lc.Fragment=b$;lc.jsx=S0;lc.jsxs=S0;C0.exports=lc;var Aa=C0.exports;function w$(e){if(e.sheet)return e.sheet;for(var t=0;t0?dn(Gi,--kn):0,Ri--,nn===10&&(Ri=1,uc--),nn}function Hn(){return nn=kn2||Da(nn)>3?"":" "}function A$(e,t){for(;--t&&Hn()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return rs(e,nl()+(t<6&&Sr()==32&&Hn()==32))}function Ud(e){for(;Hn();)switch(nn){case e:return kn;case 34:case 39:e!==34&&e!==39&&Ud(nn);break;case 40:e===41&&Ud(e);break;case 92:Hn();break}return kn}function L$(e,t){for(;Hn()&&e+nn!==47+10;)if(e+nn===42+42&&Sr()===47)break;return "/*"+rs(t,kn-1)+"*"+cc(e===47?e:Hn())}function D$(e){for(;!Da(Sr());)Hn();return rs(e,kn)}function P0(e){return I0(ol("",null,null,null,[""],e=O0(e),0,[0],e))}function ol(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,m=0,h=0,g=0,v=1,p=1,b=1,y=0,S="",E=o,C=i,$=r,x=S;p;)switch(g=y,y=Hn()){case 40:if(g!=108&&dn(x,d-1)==58){Vd(x+=Et(rl(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:x+=rl(y);break;case 9:case 10:case 13:case 32:x+=k$(g);break;case 92:x+=A$(nl()-1,7);continue;case 47:switch(Sr()){case 42:case 47:ks(z$(L$(Hn(),nl()),t,n),l);break;default:x+="/";}break;case 123*v:s[c++]=pr(x)*b;case 125*v:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(x=Et(x,/\f/g,"")),h>0&&pr(x)-d&&ks(h>32?Tg(x+";",r,n,d-1):Tg(Et(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(ks($=_g(x,t,n,c,u,o,s,S,E=[],C=[],d),i),y===123)if(u===0)ol(x,t,$,$,E,i,d,s,C);else switch(m===99&&dn(x,3)===110?100:m){case 100:case 108:case 109:case 115:ol(e,$,$,r&&ks(_g(e,$,$,0,0,o,s,S,o,E=[],d),C),o,C,d,s,r?E:C);break;default:ol(x,$,$,$,[""],C,0,s,C);}}c=u=h=0,v=b=1,S=x="",d=a;break;case 58:d=1+pr(x),h=g;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&N$()==125)continue}switch(x+=cc(y),y*v){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(pr(x)-1)*b,b=1;break;case 64:Sr()===45&&(x+=rl(Hn())),m=Sr(),u=d=pr(S=x+=D$(nl())),y++;break;case 45:g===45&&pr(x)==2&&(v=0);}}return i}function _g(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,m=o===0?i:[""],h=gm(m),g=0,v=0,p=0;g0?m[b]+" "+y:Et(y,/&\f/g,m[b])))&&(l[p++]=S);return dc(e,t,n,o===0?mm:s,l,c,u)}function z$(e,t,n){return dc(e,t,n,w0,cc(M$()),La(e,2,-2),0)}function Tg(e,t,n,r){return dc(e,t,n,hm,La(e,0,r),La(e,r+1,-1),r)}function _o(e,t){for(var n="",r=gm(e),o=0;o6)switch(dn(e,t+1)){case 109:if(dn(e,t+4)!==45)break;case 102:return Et(e,/(.+:)(.+)-([^]+)/,"$1"+$t+"$2-$3$1"+Sl+(dn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Vd(e,"stretch")?_0(Et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(dn(e,t+1)!==115)break;case 6444:switch(dn(e,pr(e)-3-(~Vd(e,"!important")&&10))){case 107:return Et(e,":",":"+$t)+e;case 101:return Et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$t+(dn(e,14)===45?"inline-":"")+"box$3$1"+$t+"$2$3$1"+gn+"$2box$3")+e}break;case 5936:switch(dn(e,t+11)){case 114:return $t+e+gn+Et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $t+e+gn+Et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $t+e+gn+Et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $t+e+gn+e+e}return e}var K$=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case hm:t.return=_0(t.value,t.length);break;case x0:return _o([aa(t,{value:Et(t.value,"@","@"+$t)})],o);case mm:if(t.length)return T$(t.props,function(i){switch(_$(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _o([aa(t,{props:[Et(i,/:(read-\w+)/,":"+Sl+"$1")]})],o);case"::placeholder":return _o([aa(t,{props:[Et(i,/:(plac\w+)/,":"+$t+"input-$1")]}),aa(t,{props:[Et(i,/:(plac\w+)/,":"+Sl+"$1")]}),aa(t,{props:[Et(i,/:(plac\w+)/,gn+"input-$1")]})],o)}return ""})}},X$=[K$],T0=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||X$,i={},a,s=[];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(" "),b=1;b=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var oE={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},iE=/[A-Z]|^ms/g,aE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,D0=function(t){return t.charCodeAt(1)===45},Ng=function(t){return t!=null&&typeof t!="boolean"},_u=H$(function(e){return D0(e)?e:e.replace(iE,"-$&").toLowerCase()}),kg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(aE,function(r,o,i){return br={name:o,styles:i,next:br},o})}return oE[t]!==1&&!D0(t)&&typeof n=="number"&&n!==0?n+"px":n};function za(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 br={name:n.name,styles:n.styles,next:br},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)br={name:r.name,styles:r.styles,next:br},r=r.next;var o=n.styles+";";return o}return sE(e,t,n)}case"function":{if(e!==void 0){var i=br,a=n(e);return br=i,za(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function sE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o-1}function bE(e,t){var n=this.__data__,r=xc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Gr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=A2}var L2="[object Arguments]",D2="[object Array]",z2="[object Boolean]",j2="[object Date]",B2="[object Error]",H2="[object Function]",F2="[object Map]",W2="[object Number]",V2="[object Object]",U2="[object RegExp]",G2="[object Set]",K2="[object String]",X2="[object WeakMap]",q2="[object ArrayBuffer]",Y2="[object DataView]",Z2="[object Float32Array]",Q2="[object Float64Array]",J2="[object Int8Array]",eO="[object Int16Array]",tO="[object Int32Array]",nO="[object Uint8Array]",rO="[object Uint8ClampedArray]",oO="[object Uint16Array]",iO="[object Uint32Array]",zt={};zt[Z2]=zt[Q2]=zt[J2]=zt[eO]=zt[tO]=zt[nO]=zt[rO]=zt[oO]=zt[iO]=!0;zt[L2]=zt[D2]=zt[q2]=zt[z2]=zt[Y2]=zt[j2]=zt[B2]=zt[H2]=zt[F2]=zt[W2]=zt[V2]=zt[U2]=zt[G2]=zt[K2]=zt[X2]=!1;function aO(e){return jr(e)&&Im(e.length)&&!!zt[Fo(e)]}function Pm(e){return function(t){return e(t)}}var Y0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wa=Y0&&typeof module=="object"&&module&&!module.nodeType&&module,sO=wa&&wa.exports===Y0,Mu=sO&&V0.process,lO=function(){try{var e=wa&&wa.require&&wa.require("util").types;return e||Mu&&Mu.binding&&Mu.binding("util")}catch{}}();const _i=lO;var Fg=_i&&_i.isTypedArray,cO=Fg?Pm(Fg):aO;const Z0=cO;var uO=Object.prototype,dO=uO.hasOwnProperty;function Q0(e,t){var n=Jn(e),r=!n&&Em(e),o=!n&&!r&&xl(e),i=!n&&!r&&!o&&Z0(e),a=n||r||o||i,s=a?x2(e.length,String):[],l=s.length;for(var c in e)(t||dO.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Om(c,l)))&&s.push(c);return s}var fO=Object.prototype;function Rm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fO;return e===n}function J0(e,t){return function(n){return e(t(n))}}var mO=J0(Object.keys,Object);const hO=mO;var gO=Object.prototype,vO=gO.hasOwnProperty;function pO(e){if(!Rm(e))return hO(e);var t=[];for(var n in Object(e))vO.call(e,n)&&n!="constructor"&&t.push(n);return t}function ey(e){return e!=null&&Im(e.length)&&!G0(e)}function is(e){return ey(e)?Q0(e):pO(e)}function bO(e,t){return e&&os(t,is(t),e)}function yO(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var CO=Object.prototype,SO=CO.hasOwnProperty;function wO(e){if(!Qn(e))return yO(e);var t=Rm(e),n=[];for(var r in e)r=="constructor"&&(t||!SO.call(e,r))||n.push(r);return n}function _m(e){return ey(e)?Q0(e,!0):wO(e)}function xO(e,t){return e&&os(t,_m(t),e)}var ty=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wg=ty&&typeof module=="object"&&module&&!module.nodeType&&module,$O=Wg&&Wg.exports===ty,Vg=$O?mr.Buffer:void 0,Ug=Vg?Vg.allocUnsafe:void 0;function EO(e,t){if(t)return e.slice();var n=e.length,r=Ug?Ug(n):new e.constructor(n);return e.copy(r),r}function ny(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++no?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);++r0&&n(s)?t>1?fy(s,t-1,n,r,o):Mm(o,s):r||(o[o.length]=s);}return o}function PP(e){var t=e==null?0:e.length;return t?fy(e,1):[]}function RP(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 av=Math.max;function _P(e,t,n){return t=av(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=av(r.length-t,0),a=Array(i);++o0){if(++t>=kP)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var zP=DP(NP);const jP=zP;function hy(e){return jP(_P(e,void 0,PP),e+"")}var BP=1,HP=2,FP=4,WP=hy(function(e,t){var n={};if(e==null)return n;var r=!1;t=wm(t,function(i){return i=Ki(i,e),r||(r=i.length>1),i}),os(e,ay(e),n),r&&(n=xa(n,BP|HP|FP,OP));for(var o=t.length;o--;)yP(n,t[o]);return n});const VP=WP;var UP=function(){return mr.Date.now()};const Nu=UP;var GP=/\s/;function KP(e){for(var t=e.length;t--&&GP.test(e.charAt(t)););return t}var XP=/^\s+/;function qP(e){return e&&e.slice(0,KP(e)+1).replace(XP,"")}var sv=0/0,YP=/^[-+]0x[0-9a-f]+$/i,ZP=/^0b[01]+$/i,QP=/^0o[0-7]+$/i,JP=parseInt;function Zd(e){if(typeof e=="number")return e;if(Ec(e))return sv;if(Qn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qn(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=qP(e);var n=ZP.test(e);return n||QP.test(e)?JP(e.slice(2),n?2:8):YP.test(e)?sv:+e}var eR="Expected a function",tR=Math.max,nR=Math.min;function gy(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(eR);t=Zd(t)||0,Qn(n)&&(u=!!n.leading,d="maxWait"in n,i=d?tR(Zd(n.maxWait)||0,t):i,m="trailing"in n?!!n.trailing:m);function h($){var x=r,w=o;return r=o=void 0,c=$,a=e.apply(w,x),a}function g($){return c=$,s=setTimeout(b,t),u?h($):a}function v($){var x=$-l,w=$-c,O=t-x;return d?nR(O,i-w):O}function p($){var x=$-l,w=$-c;return l===void 0||x>=t||x<0||d&&w>=i}function b(){var $=Nu();if(p($))return y($);s=setTimeout(b,v($));}function y($){return s=void 0,m&&r?h($):(r=o=void 0,a)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function E(){return s===void 0?a:y(Nu())}function C(){var $=Nu(),x=p($);if(r=arguments,o=this,l=$,x){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),a}return C.cancel=S,C.flush=E,C}var rR="Expected a function";function vy(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(rR);return Qn(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),gy(e,t,{leading:r,maxWait:t,trailing:o})}function oR(e,t,n,r){if(!Qn(e))return e;t=Ki(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o0)return a(u);if(m==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var m=parseFloat(d[1]),h=(d[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 s(u){var d=Math.abs(u);return d>=r?Math.round(u/r)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=r?c(u,d,r,"day"):d>=n?c(u,d,n,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,m,h){var g=d>=m*1.5;return Math.round(u/m)+" "+h+(g?"s":"")}return ku}function dR(e){n.debug=n,n.default=n,n.coerce=l,n.disable=i,n.enable=o,n.enabled=a,n.humanize=uR(),n.destroy=c,Object.keys(e).forEach(u=>{n[u]=e[u];}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let m=0;m{if($==="%%")return "%";E++;const w=n.formatters[x];if(typeof w=="function"){const O=p[E];$=w.call(b,O),p.splice(E,1),E--;}return $}),n.formatArgs.call(b,p),(b.log||n.log).apply(b,p);}return v.namespace=u,v.useColors=n.useColors(),v.color=n.selectColor(u),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(u)),g),set:p=>{m=p;}}),typeof n.init=="function"&&n.init(v),v}function r(u,d){const m=n(this.namespace+(typeof d>"u"?":":d)+u);return m.log=this.log,m}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const m=(typeof u=="string"?u:"").split(/[\s,]+/),h=m.length;for(d=0;d"-"+d)].join(",");return n.enable(""),u}function a(u){if(u[u.length-1]==="*")return !0;let d,m;for(d=0,m=n.skips.length;d{let l=!1;return ()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(u++,m==="%c"&&(d=u));}),l.splice(d,0,c);}t.log=console.debug||console.log||(()=>{});function o(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug");}catch{}}function i(){let l;try{l=t.storage.getItem("debug");}catch{}return !l&&typeof process<"u"&&"env"in process&&(l={}.DEBUG),l}function a(){try{return localStorage}catch{}}e.exports=fR(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Qd,Qd.exports);var mR=Qd.exports;const hR=an(mR),fn="bilibili-app-recommend",gR="bilibili_app_recommend",qi=hR(fn),by="https://api.bilibili.com",yy="https://app.bilibili.com";var Cy={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;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(Rr(!l,"Warning: There may be circular references"),l)return !1;if(i===a)return !0;if(n&&s>1)return !1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return !1;for(var u=0;u=0)&&(n[o]=e[o]);return n}function et(e,t){if(e==null)return {};var n=OR(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function uv(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 ee(e){for(var t=1;t=le.F1&&n<=le.F12)return !1;switch(n){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=le.ZERO&&t<=le.NINE||t>=le.NUM_ZERO&&t<=le.NUM_MULTIPLY||t>=le.A&&t<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},Uo=f__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function tf(e,t,n){return (e-t)/(n-t)}function jm(e,t,n,r){var o=tf(t,n,r),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function bi(e,t){return Array.isArray(e)?e[t]:e}var IR=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],PR=f__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,m=et(e,IR),h=f__namespace.useContext(Uo),g=h.min,v=h.max,p=h.direction,b=h.disabled,y=h.keyboard,S=h.range,E=h.tabIndex,C=h.ariaLabelForHandle,$=h.ariaLabelledByForHandle,x=h.ariaValueTextFormatterForHandle,w="".concat(o,"-handle"),O=function(P){b||s(P,a);},_=function(P){if(!b&&y){var M=null;switch(P.which||P.keyCode){case le.LEFT:M=p==="ltr"||p==="btt"?-1:1;break;case le.RIGHT:M=p==="ltr"||p==="btt"?1:-1;break;case le.UP:M=p!=="ttb"?1:-1;break;case le.DOWN:M=p!=="ttb"?-1:1;break;case le.HOME:M="min";break;case le.END:M="max";break;case le.PAGE_UP:M=2;break;case le.PAGE_DOWN:M=-2;break}M!==null&&(P.preventDefault(),d(M,a));}},A=jm(p,i,g,v),R=f__namespace.createElement("div",Ee({ref:t,className:F(w,(n={},Q(n,"".concat(w,"-").concat(a+1),S),Q(n,"".concat(w,"-dragging"),u),n)),style:ee(ee({},A),l),onMouseDown:O,onTouchStart:O,onKeyDown:_,tabIndex:b?null:bi(E,a),role:"slider","aria-valuemin":g,"aria-valuemax":v,"aria-valuenow":i,"aria-disabled":b,"aria-label":bi(C,a),"aria-labelledby":bi($,a),"aria-valuetext":(r=bi(x,a))===null||r===void 0?void 0:r(i)},m));return c&&(R=c(R,{index:a,prefixCls:o,value:i,dragging:u})),R}),RR=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],_R=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=et(e,RR),u=f__namespace.useRef({});return f__namespace.useImperativeHandle(t,function(){return {focus:function(m){var h;(h=u.current[m])===null||h===void 0||h.focus();}}}),f__namespace.createElement(f__namespace.Fragment,null,a.map(function(d,m){return f__namespace.createElement(PR,Ee({ref:function(g){g?u.current[m]=g:delete u.current[m];},dragging:l===m,prefixCls:n,style:bi(r,m),key:m,value:d,valueIndex:m,onStartMove:o,onOffsetChange:i,render:s},c))}))});function dv(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function TR(e,t,n,r,o,i,a,s,l){var c=f__namespace.useState(null),u=Z(c,2),d=u[0],m=u[1],h=f__namespace.useState(-1),g=Z(h,2),v=g[0],p=g[1],b=f__namespace.useState(n),y=Z(b,2),S=y[0],E=y[1],C=f__namespace.useState(n),$=Z(C,2),x=$[0],w=$[1],O=f__namespace.useRef(null),_=f__namespace.useRef(null);f__namespace.useEffect(function(){v===-1&&E(n);},[n,v]),f__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",O.current),document.removeEventListener("mouseup",_.current),document.removeEventListener("touchmove",O.current),document.removeEventListener("touchend",_.current);}},[]);var A=function(T,L){S.some(function(z,H){return z!==T[H]})&&(L!==void 0&&m(L),E(T),a(T));},R=function(T,L){if(T===-1){var z=x[0],H=x[x.length-1],W=r-z,B=o-H,V=L*(o-r);V=Math.max(V,W),V=Math.min(V,B);var j=i(z+V);V=j-z;var X=x.map(function(Y){return Y+V});A(X);}else {var K=(o-r)*L,G=Qe(S);G[T]=x[T];var U=l(G,K,T,"dist");A(U.values,U.value);}},I=f__namespace.useRef(R);I.current=R;var P=function(T,L){T.stopPropagation();var z=n[L];p(L),m(z),w(n);var H=dv(T),W=H.pageX,B=H.pageY,V=function(K){K.preventDefault();var G=dv(K),U=G.pageX,Y=G.pageY,re=U-W,de=Y-B,ve=e.current.getBoundingClientRect(),te=ve.width,oe=ve.height,ce;switch(t){case"btt":ce=-de/oe;break;case"ttb":ce=de/oe;break;case"rtl":ce=-re/te;break;default:ce=re/te;}I.current(L,ce);},j=function X(K){K.preventDefault(),document.removeEventListener("mouseup",X),document.removeEventListener("mousemove",V),document.removeEventListener("touchend",X),document.removeEventListener("touchmove",V),O.current=null,_.current=null,p(-1),s();};document.addEventListener("mouseup",j),document.addEventListener("mousemove",V),document.addEventListener("touchend",j),document.addEventListener("touchmove",V),O.current=V,_.current=j;},M=f__namespace.useMemo(function(){var N=Qe(n).sort(function(L,z){return L-z}),T=Qe(S).sort(function(L,z){return L-z});return N.every(function(L,z){return L===T[z]})?S:n},[n,S]);return [v,d,M,P]}function MR(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,s=f__namespace.useContext(Uo),l=s.direction,c=s.min,u=s.max,d=s.disabled,m=s.range,h="".concat(t,"-track"),g=tf(r,c,u),v=tf(o,c,u),p=function(S){!d&&a&&a(S,-1);},b={};switch(l){case"rtl":b.right="".concat(g*100,"%"),b.width="".concat(v*100-g*100,"%");break;case"btt":b.bottom="".concat(g*100,"%"),b.height="".concat(v*100-g*100,"%");break;case"ttb":b.top="".concat(g*100,"%"),b.height="".concat(v*100-g*100,"%");break;default:b.left="".concat(g*100,"%"),b.width="".concat(v*100-g*100,"%");}return f__namespace.createElement("div",{className:F(h,m&&"".concat(h,"-").concat(i+1)),style:ee(ee({},b),n),onMouseDown:p,onTouchStart:p})}function NR(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=f__namespace.useContext(Uo),s=a.included,l=a.range,c=a.min,u=f__namespace.useMemo(function(){if(!l){if(r.length===0)return [];var d=o??c,m=r[0];return [{start:Math.min(d,m),end:Math.max(d,m)}]}for(var h=[],g=0;g3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var y,S=g[p],E=S+v,C=[];r.forEach(function(_){C.push(_.value);}),C.push(e,t),C.push(s(S));var $=v>0?1:-1;b==="unit"?C.push(s(S+$*n)):C.push(s(E)),C=C.filter(function(_){return _!==null}).filter(function(_){return v<0?_<=S:_>=S}),b==="unit"&&(C=C.filter(function(_){return _!==S}));var x=b==="unit"?S:E;y=C[0];var w=Math.abs(y-x);if(C.forEach(function(_){var A=Math.abs(_-x);A1){var O=Qe(g);return O[p]=y,h(O,v-$,p,b)}return y}else {if(v==="min")return e;if(v==="max")return t}},u=function(g,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=g[p],S=c(g,v,p,b);return {value:S,changed:S!==y}},d=function(g){return i===null&&g===0||typeof i=="number"&&g3&&arguments[3]!==void 0?arguments[3]:"unit",y=g.map(l),S=y[p],E=c(y,v,p,b);if(y[p]=E,o===!1){var C=i||0;p>0&&y[p-1]!==S&&(y[p]=Math.max(y[p],y[p-1]+C)),p0;O-=1)for(var _=!0;d(y[O]-y[O-1])&&_;){var A=u(y,-1,O-1);y[O-1]=A.value,_=A.changed;}for(var R=y.length-1;R>0;R-=1)for(var I=!0;d(y[R]-y[R-1])&&I;){var P=u(y,-1,R-1);y[R-1]=P.value,I=P.changed;}for(var M=0;M=0?P:!1},[P,he]),pe=f__namespace.useMemo(function(){var Xe=Object.keys(K||{});return Xe.map(function(Ze){var Ge=K[Ze],mt={value:Number(Ze)};return Ge&&at(Ge)==="object"&&!f__namespace.isValidElement(Ge)&&("label"in Ge||"style"in Ge)?(mt.style=Ge.style,mt.label=Ge.label):mt.label=Ge,mt}).filter(function(Ze){var Ge=Ze.label;return Ge||typeof Ge=="number"}).sort(function(Ze,Ge){return Ze.value-Ge.value})},[K]),_e=zR(ne,J,he,pe,R,me),Be=Z(_e,2),Ne=Be[0],ae=Be[1],ue=Dt(C,{value:E}),be=Z(ue,2),we=be[0],ze=be[1],Le=f__namespace.useMemo(function(){var Xe=we==null?[]:Array.isArray(we)?we:[we],Ze=Z(Xe,1),Ge=Ze[0],mt=Ge===void 0?ne:Ge,ht=we===null?[]:[mt];if($){if(ht=Qe(Xe),x||we===void 0){var Mt=x>=0?x+1:2;for(ht=ht.slice(0,Mt);ht.length=0&&oe.current.focus(Xe);}dt(null);},[qe]);var ge=f__namespace.useMemo(function(){return M&&he===null?!1:M},[M,he]),Ce=function(){_==null||_(Ie(Oe.current));},fe=TR(ce,q,Le,ne,J,Ne,We,Ce,ae),Pe=Z(fe,4),Fe=Pe[0],Te=Pe[1],xe=Pe[2],se=Pe[3],Se=function(Ze,Ge){se(Ze,Ge),O==null||O(Ie(Oe.current));},Me=Fe!==-1;f__namespace.useEffect(function(){if(!Me){var Xe=Le.lastIndexOf(Te);oe.current.focus(Xe);}},[Me]);var Ae=f__namespace.useMemo(function(){return Qe(xe).sort(function(Xe,Ze){return Xe-Ze})},[xe]),st=f__namespace.useMemo(function(){return $?[Ae[0],Ae[Ae.length-1]]:[ne,Ae[0]]},[Ae,$,ne]),nt=Z(st,2),xt=nt[0],Ft=nt[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){oe.current.focus(0);},blur:function(){var Ze=document,Ge=Ze.activeElement;ce.current.contains(Ge)&&(Ge==null||Ge.blur());}}}),f__namespace.useEffect(function(){d&&oe.current.focus(0);},[]);var Wt=f__namespace.useMemo(function(){return {min:ne,max:J,direction:q,disabled:l,keyboard:u,step:he,included:z,includedStart:xt,includedEnd:Ft,range:$,tabIndex:re,ariaLabelForHandle:de,ariaLabelledByForHandle:ve,ariaValueTextFormatterForHandle:te}},[ne,J,q,l,u,he,z,xt,Ft,$,re,de,ve,te]);return f__namespace.createElement(Uo.Provider,{value:Wt},f__namespace.createElement("div",{ref:ce,className:F(o,i,(n={},Q(n,"".concat(o,"-disabled"),l),Q(n,"".concat(o,"-vertical"),T),Q(n,"".concat(o,"-horizontal"),!T),Q(n,"".concat(o,"-with-marks"),pe.length),n)),style:a,onMouseDown:ke},f__namespace.createElement("div",{className:"".concat(o,"-rail"),style:V}),f__namespace.createElement(NR,{prefixCls:o,style:W,values:Ae,startPoint:H,onStartMove:ge?Se:null}),f__namespace.createElement(DR,{prefixCls:o,marks:pe,dots:G,style:j,activeStyle:X}),f__namespace.createElement(_R,{ref:oe,prefixCls:o,style:B,values:xe,draggingIndex:Fe,onStartMove:Se,onOffsetChange:Re,onFocus:m,onBlur:h,handleRender:U}),f__namespace.createElement(AR,{prefixCls:o,marks:pe,onClick:$e})))});function Bm(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 Sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fv(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):VR}function Pc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function UR(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Iy(e){return Array.from((rf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Py(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Yi())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=UR(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(hv,a),s&&i&&l.setAttribute(gv,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Pc(t),u=c.firstChild;if(r){if(s){var d=Iy(c).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(hv)))return !1;var h=Number(m.getAttribute(gv)||0);return i>=h});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u);}else c.appendChild(l);return l}function Ry(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Pc(t);return Iy(n).find(function(r){return r.getAttribute(Oy(t))===e})}function _y(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ry(e,t);if(n){var r=Pc(t);r.removeChild(n);}}function GR(e,t){var n=rf.get(e);if(!n||!WR(document,n)){var r=Py("",t),o=r.parentNode;rf.set(e,o),e.removeChild(r);}}function of(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Pc(n);GR(r,n);var o=Ry(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=Py(e,n);return l.setAttribute(Oy(n),t),l}function KR(e,t){if(e.length!==t.length)return !1;for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else {var l,c;a=(l=a)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s);}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return (r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return !!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var d=Z(c,2),m=d[1];return o.internalGet(u)[1]0,void 0),vv+=1;}return wn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Lu=new Fm;function Fa(e){var t=Array.isArray(e)?e:[e];return Lu.has(t)||Lu.set(t,new Ty(t)),Lu.get(t)}function El(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Ty?t+=r.id:r&&at(r)==="object"?t+=El(r):t+=r;}),t}function XR(e,t){return Bm("".concat(t,"_").concat(El(e)))}var $a="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),My="_bAmBoO_";function qR(e,t,n){if(Yi()){var r,o;of(e,$a);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i);var a=n?n(i):(r=getComputedStyle(i).content)===null||r===void 0?void 0:r.includes(My);return (o=i.parentNode)===null||o===void 0||o.removeChild(i),_y($a),a}return !1}var Du=void 0;function YR(){return Du===void 0&&(Du=qR("@layer ".concat($a," { .").concat($a,' { content: "').concat(My,'"!important; } }'),function(e){e.className=$a;})),Du}var pv=Yi()?f__namespace.useLayoutEffect:f__namespace.useEffect,ZR=function(t,n){var r=f__namespace.useRef(!0);pv(function(){return t(r.current)},n),pv(function(){return r.current=!1,function(){r.current=!0;}},[]);},QR=ee({},f__namespace),bv=QR.useInsertionEffect,JR=function(t,n,r){f__namespace.useMemo(t,r),ZR(function(){return n(!0)},r);},e_=bv?function(e,t,n){return bv(function(){return e(),t()},n)}:JR;const t_=e_;var n_=ee({},f__namespace),r_=n_.useInsertionEffect,o_=function(t){var n=[],r=!1;function o(i){r||n.push(i);}return f__namespace.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()});}},t),o},i_=function(){return function(t){t();}},a_=typeof r_<"u"?o_:i_;const s_=a_;function Ny(e,t,n,r,o){var i=f__namespace.useContext(Hm),a=i.cache,s=[e].concat(Qe(t)),l=s.join("_"),c=s_([l]),u=function(g){a.update(s,function(v){var p=v||[],b=Z(p,2),y=b[0],S=y===void 0?0:y,E=b[1],C=E,$=C||n(),x=[S,$];return g?g(x):x});};f__namespace.useMemo(function(){u();},[l]);var d=a.get(s),m=d[1];return t_(function(){o==null||o(m);},function(h){return u(function(g){var v=Z(g,2),p=v[0],b=v[1];return h&&p===0&&(o==null||o(m)),[p+1,b]}),function(){a.update(s,function(g){var v=g||[],p=Z(v,2),b=p[0],y=b===void 0?0:b,S=p[1],E=y-1;return E===0?(c(function(){return r==null?void 0:r(S,!1)}),null):[y-1,S]});}},[l]),m}var l_={},c_="css",$o=new Map;function u_(e){$o.set(e,($o.get(e)||0)+1);}function d_(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(nf,'="').concat(e,'"]'));n.forEach(function(r){if(r[yi]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}var f_=0;function m_(e,t){$o.set(e,($o.get(e)||0)-1);var n=Array.from($o.keys()),r=n.filter(function(o){var i=$o.get(o)||0;return i<=0});n.length-r.length>f_&&r.forEach(function(o){d_(o,t),$o.delete(o);});}var ky=function(t,n,r,o){var i=r.getDerivativeToken(t),a=ee(ee({},i),n);return o&&(a=o(a)),a};function h_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(Hm),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,s=n.override,l=s===void 0?l_:s,c=n.formatToken,u=n.getComputedToken,d=f__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(Qe(t)))},[t]),m=f__namespace.useMemo(function(){return El(d)},[d]),h=f__namespace.useMemo(function(){return El(l)},[l]),g=Ny("token",[a,e.id,m,h],function(){var v=u?u(d,l,e):ky(d,l,e,c),p=XR(v,a);v._tokenKey=p,u_(p);var b="".concat(c_,"-").concat(Bm(p));return v._hashId=b,[v,b]},function(v){m_(v[0]._tokenKey,o);});return g}var g_={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},yv="data-ant-cssinjs-cache-path",Ay="_FILE_STYLE__",No,Ly=!0;function v_(){if(!No&&(No={},Yi())){var e=document.createElement("div");e.className=yv,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=Z(i,2),s=a[0],l=a[1];No[s]=l;});var n=document.querySelector("style[".concat(yv,"]"));if(n){var r;Ly=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n);}document.body.removeChild(e);}}function p_(e){return v_(),!!No[e]}function b_(e){var t=No[e],n=null;if(t&&Yi())if(Ly)n=Ay;else {var r=document.querySelector("style[".concat(Mo,'="').concat(No[e],'"]'));r?n=r.innerHTML:delete No[e];}return [n,t]}var Cv=Yi(),y_="_skip_check_",Dy="_multi_value_";function Sv(e){var t=_o(P0(e),R0);return t.replace(/\{%%%\:[^;];}/g,";")}function C_(e){return at(e)==="object"&&e&&(y_ in e||Dy in e)}function S_(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Qe(l.slice(1))).join(" ")});return i.join(",")}var w_=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var m="",h={};function g(S){var E=S.getName(s);if(!h[E]){var C=e(S.style,n,{root:!1,parentSelectors:a}),$=Z(C,1),x=$[0];h[E]="@keyframes ".concat(S.getName(s)).concat(x);}}function v(S){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(C){Array.isArray(C)?v(C,E):C&&E.push(C);}),E}var p=v(Array.isArray(t)?t:[t]);if(p.forEach(function(S){var E=typeof S=="string"&&!o?{}:S;if(typeof E=="string")m+="".concat(E,` `);else if(E._keyframe)g(E);else {var C=d.reduce(function($,x){var w;return (x==null||(w=x.visit)===null||w===void 0?void 0:w.call(x,$))||$},E);Object.keys(C).forEach(function($){var x=C[$];if(at(x)==="object"&&x&&($!=="animationName"||!x._keyframe)&&!C_(x)){var w=!1,O=$.trim(),_=!1;(o||i)&&s?O.startsWith("@")?w=!0:O=S_($,s,c):o&&!s&&(O==="&"||O==="")&&(O="",_=!0);var A=e(x,n,{root:_,injectHash:w,parentSelectors:[].concat(Qe(a),[O])}),R=Z(A,2),I=R[0],P=R[1];h=ee(ee({},h),P),m+="".concat(O).concat(I);}else {let T=function(L,z){var H=L.replace(/[A-Z]/g,function(B){return "-".concat(B.toLowerCase())}),W=z;!g_[L]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),L==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(g(z),W=z.getName(s)),m+="".concat(H,":").concat(W,";");};var M,N=(M=x==null?void 0:x.value)!==null&&M!==void 0?M:x;at(x)==="object"&&x!==null&&x!==void 0&&x[Dy]&&Array.isArray(N)?N.forEach(function(L){T($,L);}):T($,N);}});}}),!o)m="{".concat(m,"}");else if(l&&YR()){var b=l.split(","),y=b[b.length-1].trim();m="@layer ".concat(y," {").concat(m,"}"),b.length>1&&(m="@layer ".concat(l,"{%%%:%}").concat(m));}return [m,h]};function x_(e,t){return Bm("".concat(e.join("%")).concat(t))}function $_(){return null}function af(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=f__namespace.useContext(Hm),d=u.autoClear;u.mock;var m=u.defaultCache,h=u.hashPriority,g=u.container,v=u.ssrInline,p=u.transformers,b=u.linters,y=u.cache,S=n._tokenKey,E=[S].concat(Qe(r)),C=Cv,$=Ny("style",E,function(){var A=E.join("|");if(p_(A)){var R=b_(A),I=Z(R,2),P=I[0],M=I[1];if(P)return [P,S,M,{},s,c]}var N=t(),T=w_(N,{hashId:o,hashPriority:h,layer:i,path:r.join("-"),transformers:p,linters:b}),L=Z(T,2),z=L[0],H=L[1],W=Sv(z),B=x_(E,W);return [W,S,B,H,s,c]},function(A,R){var I=Z(A,3),P=I[2];(R||d)&&Cv&&_y(P,{mark:Mo});},function(A){var R=Z(A,4),I=R[0];R[1];var P=R[2],M=R[3];if(C&&I!==Ay){var N={mark:Mo,prepend:"queue",attachTo:g,priority:c},T=typeof a=="function"?a():a;T&&(N.csp={nonce:T});var L=of(I,P,N);L[yi]=y.instanceId,L.setAttribute(nf,S),Object.keys(M).forEach(function(z){of(Sv(M[z]),"_effect-".concat(z),N);});}}),x=Z($,3),w=x[0],O=x[1],_=x[2];return function(A){var R;if(!v||C||!m)R=f__namespace.createElement($_,null);else {var I;R=f__namespace.createElement("style",Ee({},(I={},Q(I,nf,O),Q(I,Mo,_),I),{dangerouslySetInnerHTML:{__html:w}}));}return f__namespace.createElement(f__namespace.Fragment,null,R,A)}}var Ct=function(){function e(t,n){Sn(this,e),Q(this,"name",void 0),Q(this,"style",void 0),Q(this,"_keyframe",!0),this.name=t,this.style=n;}return wn(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 Jo(e){return e.notSplit=!0,e}Jo(["borderTop","borderBottom"]),Jo(["borderTop"]),Jo(["borderBottom"]),Jo(["borderLeft","borderRight"]),Jo(["borderLeft"]),Jo(["borderRight"]);var E_=f.createContext({});const Wm=E_;function as(e,t,n){var r=f__namespace.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function zy(e){return xy(e)||wy(e)||zm(e)||$y()}function sf(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!sf(e,t.slice(0,-1))?e:jy(e,t,n,r)}function O_(e){return at(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function wv(e){return Array.isArray(e)?[]:{}}var I_=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function P_(){for(var e=arguments.length,t=new Array(e),n=0;nil.reduce((e,t)=>Object.assign(Object.assign({},e),t),Br.Modal);function k_(e){if(e){const t=Object.assign({},e);return il.push(t),$v(),()=>{il=il.filter(n=>n!==t),$v();}}Object.assign({},Br.Modal);}const A_=f.createContext(void 0),Vm=A_,L_=(e,t)=>{const n=f__namespace.useContext(Vm),r=f__namespace.useMemo(()=>{var i;const a=t||Br[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=f__namespace.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Br.locale:i},[n]);return [r,o]},Zi=L_,D_="internalMark",z_=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f__namespace.useEffect(()=>k_(t&&t.Modal),[t]);const o=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(Vm.Provider,{value:o},n)},j_=z_,Wa=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],B_="5.8.4";function mn(e,t){H_(e)&&(e="100%");var n=F_(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 As(e){return Math.min(1,Math.max(0,e))}function H_(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function F_(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Fy(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ls(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Po(e){return e.length===1?"0"+e:String(e)}function W_(e,t,n){return {r:mn(e,255)*255,g:mn(t,255)*255,b:mn(n,255)*255}}function Ev(e,t,n){e=mn(e,255),t=mn(t,255),n=mn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else {var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function V_(e,t,n){var r,o,i;if(e=mn(e,360),t=mn(t,100),n=mn(n,100),t===0)o=n,i=n,r=n;else {var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=ju(s,a,e+1/3),o=ju(s,a,e),i=ju(s,a,e-1/3);}return {r:r*255,g:o*255,b:i*255}}function lf(e,t,n){e=mn(e,255),t=mn(t,255),n=mn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else {switch(r){case e:i=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var uf={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 hi(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=Z_(e)),typeof e=="object"&&(Nr(e.r)&&Nr(e.g)&&Nr(e.b)?(t=W_(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Nr(e.h)&&Nr(e.s)&&Nr(e.v)?(r=Ls(e.s),o=Ls(e.v),t=U_(e.h,r,o),a=!0,s="hsv"):Nr(e.h)&&Nr(e.s)&&Nr(e.l)&&(r=Ls(e.s),i=Ls(e.l),t=V_(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Fy(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var q_="[-\\+]?\\d+%?",Y_="[-\\+]?\\d*\\.\\d+%?",so="(?:".concat(Y_,")|(?:").concat(q_,")"),Bu="[\\s|\\(]+(".concat(so,")[,|\\s]+(").concat(so,")[,|\\s]+(").concat(so,")\\s*\\)?"),Hu="[\\s|\\(]+(".concat(so,")[,|\\s]+(").concat(so,")[,|\\s]+(").concat(so,")[,|\\s]+(").concat(so,")\\s*\\)?"),sr={CSS_UNIT:new RegExp(so),rgb:new RegExp("rgb"+Bu),rgba:new RegExp("rgba"+Hu),hsl:new RegExp("hsl"+Bu),hsla:new RegExp("hsla"+Hu),hsv:new RegExp("hsv"+Bu),hsva:new RegExp("hsva"+Hu),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 Z_(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(uf[e])e=uf[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=sr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=sr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=sr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=sr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=sr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=sr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=sr.hex8.exec(e),n?{r:Bn(n[1]),g:Bn(n[2]),b:Bn(n[3]),a:Ov(n[4]),format:t?"name":"hex8"}:(n=sr.hex6.exec(e),n?{r:Bn(n[1]),g:Bn(n[2]),b:Bn(n[3]),format:t?"name":"hex"}:(n=sr.hex4.exec(e),n?{r:Bn(n[1]+n[1]),g:Bn(n[2]+n[2]),b:Bn(n[3]+n[3]),a:Ov(n[4]+n[4]),format:t?"name":"hex8"}:(n=sr.hex3.exec(e),n?{r:Bn(n[1]+n[1]),g:Bn(n[2]+n[2]),b:Bn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Nr(e){return !!sr.CSS_UNIT.exec(String(e))}var Ut=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=X_(t)),this.originalInput=t;var o=hi(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok;}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return !this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return (t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Fy(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=lf(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=lf(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=Ev(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=Ev(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),cf(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),G_(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(mn(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(mn(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="#"+cf(this.r,this.g,this.b,!1),n=0,r=Object.entries(uf);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return (Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=As(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=As(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=As(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=As(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return [this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ds*t:Math.round(e.h)+Ds*t:r=n?Math.round(e.h)+Ds*t:Math.round(e.h)-Ds*t,r<0?r+=360:r>=360&&(r-=360),r}function _v(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Iv*t:t===Vy?r=e.s+Iv:r=e.s+Q_*t,r>1&&(r=1),n&&t===Wy&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Tv(e,t,n){var r;return n?r=e.v+J_*t:r=e.v-eT*t,r>1&&(r=1),Number(r.toFixed(2))}function Hr(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=hi(e),o=Wy;o>0;o-=1){var i=Pv(r),a=zs(hi({h:Rv(i,o,!0),s:_v(i,o,!0),v:Tv(i,o,!0)}));n.push(a);}n.push(zs(r));for(var s=1;s<=Vy;s+=1){var l=Pv(r),c=zs(hi({h:Rv(l,s),s:_v(l,s),v:Tv(l,s)}));n.push(c);}return t.theme==="dark"?tT.map(function(u){var d=u.index,m=u.opacity,h=zs(nT(hi(t.backgroundColor||"#141414"),hi(n[d]),m*100));return h}):n}var Fu={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"},al={},Wu={};Object.keys(Fu).forEach(function(e){al[e]=Hr(Fu[e]),al[e].primary=al[e][5],Wu[e]=Hr(Fu[e],{theme:"dark",backgroundColor:"#141414"}),Wu[e].primary=Wu[e][5];});var rT=al.blue;const oT=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Uy=oT;function iT(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 Um={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"},aT=Object.assign(Object.assign({},Um),{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}),ss=aT;function Gy(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),m=n(o),h=n(i),g=n(a),v=n(s),p=r(c,u),b=e.colorLink||e.colorInfo,y=n(b);return Object.assign(Object.assign({},p),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg: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:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Ut("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const sT=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}},lT=sT;function cT(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},lT(r))}const kr=(e,t)=>new Ut(e).setAlpha(t).toRgbString(),la=(e,t)=>new Ut(e).darken(t).toHexString(),uT=e=>{const t=Hr(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]}},dT=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:kr(r,.88),colorTextSecondary:kr(r,.65),colorTextTertiary:kr(r,.45),colorTextQuaternary:kr(r,.25),colorFill:kr(r,.15),colorFillSecondary:kr(r,.06),colorFillTertiary:kr(r,.04),colorFillQuaternary:kr(r,.02),colorBgLayout:la(n,4),colorBgContainer:la(n,0),colorBgElevated:la(n,0),colorBgSpotlight:kr(r,.85),colorBorder:la(n,15),colorBorderSecondary:la(n,6)}};function fT(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 mT=e=>{const t=fT(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]}},Ky=mT;function ls(e){const t=Object.keys(Um).map(n=>{const r=Hr(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),Gy(e,{generateColorPalettes:uT,generateNeutralColorPalettes:dT})),Ky(e.fontSize)),iT(e)),Uy(e)),cT(e))}const Xy=Fa(ls),Ol={token:ss,hashed:!0},qy=f.createContext(Ol);function Vu(e){return e>=0&&e<=255}function js(e,t){const{r:n,g:r,b:o,a:i}=new Ut(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Ut(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),m=Math.round((o-l*(1-c))/c);if(Vu(u)&&Vu(d)&&Vu(m))return new Ut({r:u,g:d,b:m,a:Math.round(c*100)/100}).toRgbString()}return new Ut({r:n,g:r,b:o,a:1}).toRgbString()}var hT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{delete r[m];});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const 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:js(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:js(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:js(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:js(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowSecondary:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTertiary:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new Ut("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new Ut("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new Ut("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerLeft:` 6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerUp:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerDown:` 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Mv=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=Mv(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Gm(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Mv(c,["theme"]);let m=d;u&&(m=Yy(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=m;}),a};function Xr(){const{token:e,hashed:t,theme:n,components:r}=f.useContext(qy),o=`${B_}-${t||""}`,i=n||Xy,[a,s]=h_(i,[ss,e],{salt:o,override:Object.assign({override:e},r),getComputedToken:Yy,formatToken:Gm});return [i,a,t?s:""]}const Zy="anticon",gT=(e,t)=>t||(e?`ant-${e}`:"ant"),Je=f__namespace.createContext({getPrefixCls:gT,iconPrefixCls:Zy}),vT=(e,t,n,r,o)=>{const i=e/2,a=0,s=i,l=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),u=i-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),m=2*i-u,h=d,g=2*i-l,v=c,p=2*i-a,b=s,y=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),S=n*(Math.sqrt(2)-1);return {pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${S}px 100%, 50% ${S}px, ${2*i-S}px 100%, ${S}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${m} ${h} L ${g} ${v} A ${n} ${n} 0 0 0 ${p} ${b} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:y,height:y,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},Do={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Rt=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Go=()=>({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"}}),df=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),pT=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"}}}),bT=(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"}}}}},zo=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),jo=e=>({"&:focus-visible":Object.assign({},zo(e))}),Qy=typeof CSSINJS_STATISTIC<"u";let ff=!0;function ct(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]});});}),ff=!0,r}function yT(){}function CT(e){let t,n=e,r=yT;return Qy&&(t=new Set,n=new Proxy(e,{get(o,i){return ff&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t);}),{token:n,keys:t,flush:r}}function Bt(e,t,n,r){return o=>{const[i,a,s]=Xr(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=f.useContext(Je),d=l(),m={theme:i,token:a,hashId:s,nonce:()=>u==null?void 0:u.nonce,clientOnly:r==null?void 0:r.clientOnly,order:-999};return af(Object.assign(Object.assign({},m),{clientOnly:!1,path:["Shared",d]}),()=>[{"&":pT(a)}]),[af(Object.assign(Object.assign({},m),{path:[e,o,c]}),()=>{const{token:h,flush:g}=CT(a),v=Object.assign({},a[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:C}=r;C.forEach($=>{let[x,w]=$;var O;(v!=null&&v[x]||v!=null&&v[w])&&((O=v[w])!==null&&O!==void 0||(v[w]=v==null?void 0:v[x]));});}const p=typeof n=="function"?n(ct(h,v??{})):n,b=Object.assign(Object.assign({},p),v),y=`.${o}`,S=ct(h,{componentCls:y,prefixCls:o,iconCls:`.${c}`,antCls:`.${d}`},b),E=t(S,{hashId:s,prefixCls:o,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:v});return g(e,b),[(r==null?void 0:r.resetStyle)===!1?null:bT(a,o),E]}),s]}}function Il(e,t){return Wa.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}function ST(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 Nv="data-rc-order",wT="rc-util-key",mf=new Map;function Jy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):wT}function Rc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function xT(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function e1(e){return Array.from((mf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function t1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!er())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(Nv,xT(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=Rc(t),a=i.firstChild;if(r){if(r==="queue"){var s=e1(i).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(Nv))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,a);}else i.appendChild(o);return o}function n1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Rc(t);return e1(n).find(function(r){return r.getAttribute(Jy(t))===e})}function kv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=n1(e,t);if(n){var r=Rc(t);r.removeChild(n);}}function $T(e,t){var n=mf.get(e);if(!n||!ST(document,n)){var r=t1("",t),o=r.parentNode;mf.set(e,o),e.removeChild(r);}}function Km(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Rc(n);$T(r,n);var o=n1(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=t1(e,n);return l.setAttribute(Jy(n),t),l}const ET=`-ant-${Date.now()}-${Math.random()}`;function OT(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new Ut(a),c=Hr(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2];};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Ut(t.primaryColor),s=Hr(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new Ut(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2));}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` `)} } `.trim()}function IT(e,t){const n=OT(e,t);er()&&Km(n,`${ET}-dynamic-theme`);}const hf=f__namespace.createContext(!1),PT=e=>{let{children:t,disabled:n}=e;const r=f__namespace.useContext(hf);return f__namespace.createElement(hf.Provider,{value:n??r},t)},_r=hf,gf=f__namespace.createContext(void 0),RT=e=>{let{children:t,size:n}=e;const r=f__namespace.useContext(gf);return f__namespace.createElement(gf.Provider,{value:n||r},t)},_c=gf;function _T(){const e=f.useContext(_r),t=f.useContext(_c);return {componentDisabled:e,componentSize:t}}function TT(e,t){const n=e||{},r=n.inherit===!1||!t?Ol:t;return as(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(i=>{o[i]=Object.assign(Object.assign({},o[i]),e.components[i]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,i)=>o.some((a,s)=>{const l=i[s];return !Ic(a,l,!0)}))}function Pl(e){return e instanceof HTMLElement||e instanceof SVGElement}function Rl(e){return Pl(e)?e:e instanceof f.Component?p0.findDOMNode(e):null}function Xm(e,t){typeof e=="function"?e(t):at(e)==="object"&&e&&"current"in e&&(e.current=t);}function xn(){for(var e=arguments.length,t=new Array(e),n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function pf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AT(e,t){if(t&&(at(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pf(e)}function vo(e){var t=kT();return function(){var r=_l(e),o;if(t){var i=_l(this).constructor;o=Reflect.construct(r,arguments,i);}else o=r.apply(this,arguments);return AT(this,o)}}var LT=function(e){go(n,e);var t=vo(n);function n(){return Sn(this,n),t.apply(this,arguments)}return wn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),wo="none",Bs="appear",Hs="enter",Fs="leave",Av="none",cr="prepare",Ci="start",Si="active",qm="end",o1="prepared";function Lv(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 DT(e,t){var n={animationend:Lv("Animation","AnimationEnd"),transitionend:Lv("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var zT=DT(er(),typeof window<"u"?window:{}),i1={};if(er()){var jT=document.createElement("div");i1=jT.style;}var Ws={};function a1(e){if(Ws[e])return Ws[e];var t=zT[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:1;Bv+=1;var r=Bv;function o(i){if(i===0)m1(r),t();else {var a=d1(function(){o(i-1);});Ym.set(r,a);}}return o(n),r};pt.cancel=function(e){var t=Ym.get(e);return m1(t),f1(t)};const HT=function(){var e=f__namespace.useRef(null);function t(){pt.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=pt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1);});e.current=i;}return f__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var FT=[cr,Ci,Si,qm],WT=[cr,o1],h1=!1,VT=!0;function g1(e){return e===Si||e===qm}const UT=function(e,t,n){var r=To(Av),o=Z(r,2),i=o[0],a=o[1],s=HT(),l=Z(s,2),c=l[0],u=l[1];function d(){a(cr,!0);}var m=t?WT:FT;return u1(function(){if(i!==Av&&i!==qm){var h=m.indexOf(i),g=m[h+1],v=n(i);v===h1?a(g,!0):g&&c(function(p){function b(){p.isCanceled()||a(g,!0);}v===!0?b():Promise.resolve(v).then(b);});}},[e,i]),f__namespace.useEffect(function(){return function(){u();}},[]),[d,i]};function GT(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,m=r.onAppearPrepare,h=r.onEnterPrepare,g=r.onLeavePrepare,v=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,S=r.onEnterActive,E=r.onLeaveActive,C=r.onAppearEnd,$=r.onEnterEnd,x=r.onLeaveEnd,w=r.onVisibleChanged,O=To(),_=Z(O,2),A=_[0],R=_[1],I=To(wo),P=Z(I,2),M=P[0],N=P[1],T=To(null),L=Z(T,2),z=L[0],H=L[1],W=f.useRef(!1),B=f.useRef(null);function V(){return n()}var j=f.useRef(!1);function X(){N(wo,!0),H(null,!0);}function K(he){var me=V();if(!(he&&!he.deadline&&he.target!==me)){var pe=j.current,_e;M===Bs&&pe?_e=C==null?void 0:C(me,he):M===Hs&&pe?_e=$==null?void 0:$(me,he):M===Fs&&pe&&(_e=x==null?void 0:x(me,he)),M!==wo&&pe&&_e!==!1&&X();}}var G=BT(K),U=Z(G,1),Y=U[0],re=function(me){var pe,_e,Be;switch(me){case Bs:return pe={},Q(pe,cr,m),Q(pe,Ci,v),Q(pe,Si,y),pe;case Hs:return _e={},Q(_e,cr,h),Q(_e,Ci,p),Q(_e,Si,S),_e;case Fs:return Be={},Q(Be,cr,g),Q(Be,Ci,b),Q(Be,Si,E),Be;default:return {}}},de=f__namespace.useMemo(function(){return re(M)},[M]),ve=UT(M,!e,function(he){if(he===cr){var me=de[cr];return me?me(V()):h1}if(ce in de){var pe;H(((pe=de[ce])===null||pe===void 0?void 0:pe.call(de,V(),null))||null);}return ce===Si&&(Y(V()),u>0&&(clearTimeout(B.current),B.current=setTimeout(function(){K({deadline:!0});},u))),ce===o1&&X(),VT}),te=Z(ve,2),oe=te[0],ce=te[1],q=g1(ce);j.current=q,u1(function(){R(t);var he=W.current;W.current=!0;var me;!he&&t&&s&&(me=Bs),he&&t&&i&&(me=Hs),(he&&!t&&c||!he&&d&&!t&&c)&&(me=Fs);var pe=re(me);me&&(e||pe[cr])?(N(me),oe()):N(wo);},[t]),f.useEffect(function(){(M===Bs&&!s||M===Hs&&!i||M===Fs&&!c)&&N(wo);},[s,i,c]),f.useEffect(function(){return function(){W.current=!1,clearTimeout(B.current);}},[]);var ne=f__namespace.useRef(!1);f.useEffect(function(){A&&(ne.current=!0),A!==void 0&&M===wo&&((ne.current||A)&&(w==null||w(A)),ne.current=!0);},[A,M]);var J=z;return de[cr]&&ce===Ci&&(J=ee({transition:"none"},J)),[M,ce,J,A??t]}function KT(e){var t=e;at(e)==="object"&&(t=e.transitionSupport);function n(o,i){return !!(o.motionName&&t&&i!==!1)}var r=f__namespace.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,m=o.motionName,h=o.leavedClassName,g=o.eventProps,v=f__namespace.useContext(r1),p=v.motion,b=n(o,p),y=f.useRef(),S=f.useRef();function E(){try{return y.current instanceof HTMLElement?y.current:Rl(S.current)}catch{return null}}var C=GT(b,s,E,o),$=Z(C,4),x=$[0],w=$[1],O=$[2],_=$[3],A=f__namespace.useRef(_);_&&(A.current=!0);var R=f__namespace.useCallback(function(H){y.current=H,Xm(i,H);},[i]),I,P=ee(ee({},g),{},{visible:s});if(!d)I=null;else if(x===wo)_?I=d(ee({},P),R):!c&&A.current&&h?I=d(ee(ee({},P),{},{className:h}),R):u||!c&&!h?I=d(ee(ee({},P),{},{style:{display:"none"}}),R):I=null;else {var M,N;w===cr?N="prepare":g1(w)?N="active":w===Ci&&(N="start");var T=jv(m,"".concat(x,"-").concat(N));I=d(ee(ee({},P),{},{className:F(jv(m,x),(M={},Q(M,T,T&&N),Q(M,m,typeof m=="string"),M)),style:O}),R);}if(f__namespace.isValidElement(I)&&Ko(I)){var L=I,z=L.ref;z||(I=f__namespace.cloneElement(I,{ref:R}));}return f__namespace.createElement(LT,{ref:S},I)});return r.displayName="CSSMotion",r}const qr=KT(c1);var bf="add",yf="keep",Cf="remove",Uu="removed";function XT(e){var t;return e&&at(e)==="object"&&"key"in e?t=e:t={key:e},ee(ee({},t),{},{key:String(t.key)})}function Sf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(XT)}function qT(){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=Sf(e),a=Sf(t);i.forEach(function(c){for(var u=!1,d=r;d1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,m=u.status;return d!==c||m!==Cf}),n.forEach(function(u){u.key===c&&(u.status=yf);});}),n}var YT=["component","children","onVisibleChanged","onAllRemoved"],ZT=["status"],QT=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function JT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qr,n=function(r){go(i,r);var o=vo(i);function i(){var a;Sn(this,i);for(var s=arguments.length,l=new Array(s),c=0;c{const[n,r]=Xr();return af({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Go()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},nM=tM;var rM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const lM=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(v1=t),r&&sM(r)&&IT(aM(),r);},cM=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:v,parentContext:p,iconPrefixCls:b,theme:y,componentDisabled:S,segmented:E,statistic:C,spin:$,calendar:x,carousel:w,cascader:O,collapse:_,typography:A,checkbox:R,descriptions:I,divider:P,drawer:M,skeleton:N,steps:T,image:L,layout:z,list:H,mentions:W,modal:B,progress:V,result:j,slider:X,breadcrumb:K,menu:G,pagination:U,input:Y,empty:re,badge:de,radio:ve,rate:te,switch:oe,transfer:ce,avatar:q,message:ne,tag:J,table:he,card:me,tabs:pe,timeline:_e,timePicker:Be,upload:Ne,notification:ae,tree:ue,colorPicker:be,datePicker:we,wave:ze}=e,Le=f__namespace.useCallback((fe,Pe)=>{const{prefixCls:Fe}=e;if(Pe)return Pe;const Te=Fe||p.getPrefixCls("");return fe?`${Te}-${fe}`:Te},[p.getPrefixCls,e.prefixCls]),Oe=b||p.iconPrefixCls||Zy,Ie=Oe!==p.iconPrefixCls,We=n||p.csp,$e=nM(Oe,We),ke=TT(y,p.theme),tt={csp:We,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||v,direction:c,space:u,virtual:d,popupMatchSelectWidth:h??m,popupOverflow:g,getPrefixCls:Le,iconPrefixCls:Oe,theme:ke,segmented:E,statistic:C,spin:$,calendar:x,carousel:w,cascader:O,collapse:_,typography:A,checkbox:R,descriptions:I,divider:P,drawer:M,skeleton:N,steps:T,image:L,input:Y,layout:z,list:H,mentions:W,modal:B,progress:V,result:j,slider:X,breadcrumb:K,menu:G,pagination:U,empty:re,badge:de,radio:ve,rate:te,switch:oe,transfer:ce,avatar:q,message:ne,tag:J,table:he,card:me,tabs:pe,timeline:_e,timePicker:Be,upload:Ne,notification:ae,tree:ue,colorPicker:be,datePicker:we,wave:ze},ut=Object.assign({},p);Object.keys(tt).forEach(fe=>{tt[fe]!==void 0&&(ut[fe]=tt[fe]);}),oM.forEach(fe=>{const Pe=e[fe];Pe&&(ut[fe]=Pe);});const qe=as(()=>ut,ut,(fe,Pe)=>{const Fe=Object.keys(fe),Te=Object.keys(Pe);return Fe.length!==Te.length||Fe.some(xe=>fe[xe]!==Pe[xe])}),dt=f__namespace.useMemo(()=>({prefixCls:Oe,csp:We}),[Oe,We]);let Re=Ie?$e(t):t;const ge=f__namespace.useMemo(()=>{var fe,Pe,Fe,Te;return P_(((fe=Br.Form)===null||fe===void 0?void 0:fe.defaultValidateMessages)||{},((Fe=(Pe=qe.locale)===null||Pe===void 0?void 0:Pe.Form)===null||Fe===void 0?void 0:Fe.defaultValidateMessages)||{},((Te=qe.form)===null||Te===void 0?void 0:Te.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[qe,a==null?void 0:a.validateMessages]);Object.keys(ge).length>0&&(Re=f__namespace.createElement(R_.Provider,{value:ge},t)),s&&(Re=f__namespace.createElement(j_,{locale:s,_ANT_MARK__:D_},Re)),(Oe||We)&&(Re=f__namespace.createElement(Wm.Provider,{value:dt},Re)),l&&(Re=f__namespace.createElement(RT,{size:l},Re)),Re=f__namespace.createElement(eM,null,Re);const Ce=f__namespace.useMemo(()=>{const fe=ke||{},{algorithm:Pe,token:Fe,components:Te}=fe,xe=rM(fe,["algorithm","token","components"]),se=Pe&&(!Array.isArray(Pe)||Pe.length>0)?Fa(Pe):Xy,Se={};return Object.entries(Te||{}).forEach(Me=>{let[Ae,st]=Me;const nt=Object.assign({},st);"algorithm"in nt&&(nt.algorithm===!0?nt.theme=se:(Array.isArray(nt.algorithm)||typeof nt.algorithm=="function")&&(nt.theme=Fa(nt.algorithm)),delete nt.algorithm),Se[Ae]=nt;}),Object.assign(Object.assign({},xe),{theme:se,token:Object.assign(Object.assign({},ss),Fe),components:Se})},[ke]);return y&&(Re=f__namespace.createElement(qy.Provider,{value:Ce},Re)),S!==void 0&&(Re=f__namespace.createElement(PT,{disabled:S},Re)),f__namespace.createElement(Je.Provider,{value:qe},Re)},Qi=e=>{const t=f__namespace.useContext(Je),n=f__namespace.useContext(Vm);return f__namespace.createElement(cM,Object.assign({parentContext:t,legacyLocale:n},e))};Qi.ConfigContext=Je;Qi.SizeContext=_c;Qi.config=lM;Qi.useConfig=_T;Object.defineProperty(Qi,"SizeContext",{get:()=>_c});const Zm=Qi;var p1=f__namespace.createContext(null),Hv=[];function uM(e,t){var n=f__namespace.useState(function(){if(!er())return null;var g=document.createElement("div");return g}),r=Z(n,1),o=r[0],i=f__namespace.useRef(!1),a=f__namespace.useContext(p1),s=f__namespace.useState(Hv),l=Z(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(g){u(function(v){var p=[g].concat(Qe(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 Vt(function(){return e?a?a(m):m():h(),h},[e]),Vt(function(){c.length&&(c.forEach(function(g){return g()}),u(Hv));},[c]),[o,d]}var Gu;function dM(e){if(typeof document>"u")return 0;if(e||Gu===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),Gu=o-i;}return Gu}function fM(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var mM="rc-util-locker-".concat(Date.now()),Fv=0;function hM(e){var t=!!e,n=f__namespace.useState(function(){return Fv+=1,"".concat(mM,"_").concat(Fv)}),r=Z(n,1),o=r[0];Vt(function(){if(t){var i=dM(),a=fM();Km(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o);}else kv(o);return function(){kv(o);}},[t,o]);}var Wv=!1;function gM(e){return typeof e=="boolean"&&(Wv=e),Wv}var Vv=function(t){return t===!1?!1:!er()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},b1=f__namespace.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,s=e.children,l=f__namespace.useState(n),c=Z(l,2),u=c[0],d=c[1],m=u||n;f__namespace.useEffect(function(){(a||n)&&d(n);},[n,a]);var h=f__namespace.useState(function(){return Vv(o)}),g=Z(h,2),v=g[0],p=g[1];f__namespace.useEffect(function(){var A=Vv(o);p(A??null);});var b=uM(m&&!v),y=Z(b,2),S=y[0],E=y[1],C=v??S;hM(r&&n&&er()&&(C===S||C===document.body));var $=null;if(s&&Ko(s)&&t){var x=s;$=x.ref;}var w=cs($,t);if(!m||!er()||v===void 0)return null;var O=C===!1||gM(),_=s;return t&&(_=f__namespace.cloneElement(s,{ref:w})),f__namespace.createElement(p1.Provider,{value:E},O?_:p0.createPortal(_,C))});function tr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return f.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(tr(r)):ym.isFragment(r)&&r.props?n=n.concat(tr(r.props.children,t)):n.push(r));}),n}var y1=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__;o0},e.prototype.connect_=function(){!wf||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),SM?(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(){!wf||!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=CM.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}(),C1=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Ti(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new _M(t)),this.controller_.addObserver(this),this.controller_.refresh());}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ti(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 TM(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}(),w1=typeof WeakMap<"u"?new WeakMap:new y1,x1=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=wM.getInstance(),r=new MM(t,n,this);w1.set(this,r);}return e}();["observe","unobserve","disconnect"].forEach(function(e){x1.prototype[e]=function(){var t;return (t=w1.get(this))[e].apply(t,arguments)};});var NM=function(){return typeof Tl.ResizeObserver<"u"?Tl.ResizeObserver:x1}(),lo=new Map;function kM(e){e.forEach(function(t){var n,r=t.target;(n=lo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var $1=new NM(kM);function AM(e,t){lo.has(e)||(lo.set(e,new Set),$1.observe(e)),lo.get(e).add(t);}function LM(e,t){lo.has(e)&&(lo.get(e).delete(t),lo.get(e).size||($1.unobserve(e),lo.delete(e)));}var DM=function(e){go(n,e);var t=vo(n);function n(){return Sn(this,n),t.apply(this,arguments)}return wn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),xf=f__namespace.createContext(null);function zM(e){var t=e.children,n=e.onBatchResize,r=f__namespace.useRef(0),o=f__namespace.useRef([]),i=f__namespace.useContext(xf),a=f__namespace.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[]);}),i==null||i(s,l,c);},[n,i]);return f__namespace.createElement(xf.Provider,{value:a},t)}function jM(e,t){var n=e.children,r=e.disabled,o=f__namespace.useRef(null),i=f__namespace.useRef(null),a=f__namespace.useContext(xf),s=typeof n=="function",l=s?n(o):n,c=f__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&f__namespace.isValidElement(l)&&Ko(l),d=u?l.ref:null,m=f__namespace.useMemo(function(){return xn(d,o)},[d,o]),h=function(){return Rl(o.current)||Rl(i.current)};f__namespace.useImperativeHandle(t,function(){return h()});var g=f__namespace.useRef(e);g.current=e;var v=f__namespace.useCallback(function(p){var b=g.current,y=b.onResize,S=b.data,E=p.getBoundingClientRect(),C=E.width,$=E.height,x=p.offsetWidth,w=p.offsetHeight,O=Math.floor(C),_=Math.floor($);if(c.current.width!==O||c.current.height!==_||c.current.offsetWidth!==x||c.current.offsetHeight!==w){var A={width:O,height:_,offsetWidth:x,offsetHeight:w};c.current=A;var R=x===Math.round(C)?C:x,I=w===Math.round($)?$:w,P=ee(ee({},A),{},{offsetWidth:R,offsetHeight:I});a==null||a(P,p,S),y&&Promise.resolve().then(function(){y(P,p);});}},[]);return f__namespace.useEffect(function(){var p=h();return p&&!r&&AM(p,v),function(){return LM(p,v)}},[o.current,r]),f__namespace.createElement(DM,{ref:i},u?f__namespace.cloneElement(l,{ref:m}):l)}var BM=f__namespace.forwardRef(jM),HM="rc-observer-key";function FM(e,t){var n=e.children,r=typeof n=="function"?[n]:tr(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(HM,"-").concat(i);return f__namespace.createElement(BM,Ee({},e,{key:a,ref:i===0?t:void 0}),o)})}var Or=f__namespace.forwardRef(FM);Or.Collection=zM;function E1(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function WM(e){return E1(e)!==(e==null?void 0:e.ownerDocument)}function Nl(e){return WM(e)?E1(e):null}function VM(){var e=ee({},f__namespace);return e.useId}var Gv=0;function UM(e){var t=f__namespace.useState("ssr-id"),n=Z(t,2),r=n[0],o=n[1],i=VM(),a=i==null?void 0:i();return f__namespace.useEffect(function(){if(!i){var s=Gv;Gv+=1,o("rc_unique_".concat(s));}},[]),e||a||r}const Mc=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 Kv=f__namespace.createContext(null);function Xv(e){return e?Array.isArray(e)?e:[e]:[]}function KM(e,t,n,r){return f__namespace.useMemo(function(){var o=Xv(n??t),i=Xv(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}const Qm=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 XM(){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 qM(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ca(e){return Va(parseFloat(e),0)}function Yv(e,t){var n=ee({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=us(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),m=r.offsetHeight,h=r.clientHeight,g=r.offsetWidth,v=r.clientWidth,p=ca(s),b=ca(l),y=ca(c),S=ca(u),E=Va(Math.round(d.width/g*1e3)/1e3),C=Va(Math.round(d.height/m*1e3)/1e3),$=(g-v-y-S)*E,x=(m-h-p-b)*C,w=p*C,O=b*C,_=y*E,A=S*E,R=0,I=0;if(i==="clip"){var P=ca(a);R=P*E,I=P*C;}var M=d.x+_-R,N=d.y+w-I,T=M+d.width+2*R-_-A-$,L=N+d.height+2*I-w-O-x;n.left=Math.max(n.left,M),n.top=Math.max(n.top,N),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,L);}}),n}function Zv(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 Qv(e,t){var n=t||[],r=Z(n,2),o=r[0],i=r[1];return [Zv(e.width,o),Zv(e.height,i)]}function Jv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function ei(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 to(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 YM(e,t,n,r,o,i,a){var s=f__namespace.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=Z(s,2),c=l[0],u=l[1],d=f__namespace.useRef(0),m=f__namespace.useMemo(function(){return t?$f(t):[]},[t]),h=f__namespace.useRef({}),g=function(){h.current={};};e||g();var v=Nn(function(){if(t&&n&&e){let Zt=function(Qo,Jr){var eo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:he,ia=z.x+Qo,Ts=z.y+Jr,Ou=ia+U,Iu=Ts+G,Pu=Math.max(ia,eo.left),Ue=Math.max(Ts,eo.top),lt=Math.min(Ou,eo.right),At=Math.min(Iu,eo.bottom);return Math.max(0,(lt-Pu)*(At-Ue))},Co=function(){Xe=z.y+Pe,Ze=Xe+G,Ge=z.x+fe,mt=Ge+U;};var y,S,E=t,C=E.ownerDocument,$=us(E),x=$.getComputedStyle(E),w=x.width,O=x.height,_=x.position,A=E.style.left,R=E.style.top,I=E.style.right,P=E.style.bottom,M=ee(ee({},o[r]),i),N=C.createElement("div");(y=E.parentElement)===null||y===void 0||y.appendChild(N),N.style.left="".concat(E.offsetLeft,"px"),N.style.top="".concat(E.offsetTop,"px"),N.style.position=_,N.style.height="".concat(E.offsetHeight,"px"),N.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto";var T;if(Array.isArray(n))T={x:n[0],y:n[1],width:0,height:0};else {var L=n.getBoundingClientRect();T={x:L.x,y:L.y,width:L.width,height:L.height};}var z=E.getBoundingClientRect(),H=C.documentElement,W=H.clientWidth,B=H.clientHeight,V=H.scrollWidth,j=H.scrollHeight,X=H.scrollTop,K=H.scrollLeft,G=z.height,U=z.width,Y=T.height,re=T.width,de={left:0,top:0,right:W,bottom:B},ve={left:-K,top:-X,right:V-K,bottom:j-X},te=M.htmlRegion,oe="visible",ce="visibleFirst";te!=="scroll"&&te!==ce&&(te=oe);var q=te===ce,ne=Yv(ve,m),J=Yv(de,m),he=te===oe?J:ne,me=q?J:he;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var pe=E.getBoundingClientRect();E.style.left=A,E.style.top=R,E.style.right=I,E.style.bottom=P,(S=E.parentElement)===null||S===void 0||S.removeChild(N);var _e=Va(Math.round(U/parseFloat(w)*1e3)/1e3),Be=Va(Math.round(G/parseFloat(O)*1e3)/1e3);if(_e===0||Be===0||Pl(n)&&!Qm(n))return;var Ne=M.offset,ae=M.targetOffset,ue=Qv(z,Ne),be=Z(ue,2),we=be[0],ze=be[1],Le=Qv(T,ae),Oe=Z(Le,2),Ie=Oe[0],We=Oe[1];T.x-=Ie,T.y-=We;var $e=M.points||[],ke=Z($e,2),tt=ke[0],ut=ke[1],qe=Jv(ut),dt=Jv(tt),Re=ei(T,qe),ge=ei(z,dt),Ce=ee({},M),fe=Re.x-ge.x+we,Pe=Re.y-ge.y+ze,Fe=Zt(fe,Pe),Te=Zt(fe,Pe,J),xe=ei(T,["t","l"]),se=ei(z,["t","l"]),Se=ei(T,["b","r"]),Me=ei(z,["b","r"]),Ae=M.overflow||{},st=Ae.adjustX,nt=Ae.adjustY,xt=Ae.shiftX,Ft=Ae.shiftY,Wt=function(Jr){return typeof Jr=="boolean"?Jr:Jr>=0},Xe,Ze,Ge,mt;Co();var ht=Wt(nt),Mt=dt[0]===qe[0];if(ht&&dt[0]==="t"&&(Ze>me.bottom||h.current.bt)){var Ye=Pe;Mt?Ye-=G-Y:Ye=xe.y-Me.y-ze;var Ve=Zt(fe,Ye),ft=Zt(fe,Ye,J);Ve>Fe||Ve===Fe&&(!q||ft>=Te)?(h.current.bt=!0,Pe=Ye,ze=-ze,Ce.points=[to(dt,0),to(qe,0)]):h.current.bt=!1;}if(ht&&dt[0]==="b"&&(XeFe||en===Fe&&(!q||Nt>=Te)?(h.current.tb=!0,Pe=Ot,ze=-ze,Ce.points=[to(dt,0),to(qe,0)]):h.current.tb=!1;}var cn=Wt(st),hr=dt[1]===qe[1];if(cn&&dt[1]==="l"&&(mt>me.right||h.current.rl)){var ir=fe;hr?ir-=U-re:ir=xe.x-Me.x-we;var Zr=Zt(ir,Pe),po=Zt(ir,Pe,J);Zr>Fe||Zr===Fe&&(!q||po>=Te)?(h.current.rl=!0,fe=ir,we=-we,Ce.points=[to(dt,1),to(qe,1)]):h.current.rl=!1;}if(cn&&dt[1]==="r"&&(GeFe||Tn===Fe&&(!q||bo>=Te)?(h.current.lr=!0,fe=En,we=-we,Ce.points=[to(dt,1),to(qe,1)]):h.current.lr=!1;}Co();var Ln=xt===!0?0:xt;typeof Ln=="number"&&(GeJ.right&&(fe-=mt-J.right-we,T.x>J.right-Ln&&(fe+=T.x-J.right+Ln)));var On=Ft===!0?0:Ft;typeof On=="number"&&(XeJ.bottom&&(Pe-=Ze-J.bottom-ze,T.y>J.bottom-On&&(Pe+=T.y-J.bottom+On)));var Mn=z.x+fe,Tr=Mn+U,Vn=z.y+Pe,Un=Vn+G,Qr=T.x,yo=Qr+re,It=T.y,gt=It+Y,je=Math.max(Mn,Qr),He=Math.min(Tr,yo),bt=(je+He)/2,kt=bt-Mn,Pt=Math.max(Vn,It),tn=Math.min(Un,gt),In=(Pt+tn)/2,Mr=In-Vn;a==null||a(t,Ce);var Gn=pe.right-z.x-(fe+z.width),Pn=pe.bottom-z.y-(Pe+z.height);u({ready:!0,offsetX:fe/_e,offsetY:Pe/Be,offsetR:Gn/_e,offsetB:Pn/Be,arrowX:kt/_e,arrowY:Mr/Be,scaleX:_e,scaleY:Be,align:Ce});}}),p=function(){d.current+=1;var S=d.current;Promise.resolve().then(function(){d.current===S&&v();});},b=function(){u(function(S){return ee(ee({},S),{},{ready:!1})});};return Vt(b,[r]),Vt(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function ZM(e,t,n,r,o){Vt(function(){if(e&&t&&n){let d=function(){r(),o();};var i=t,a=n,s=$f(i),l=$f(a),c=us(a),u=new Set([c].concat(Qe(s),Qe(l)));return u.forEach(function(m){m.addEventListener("scroll",d,{passive:!0});}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(m){m.removeEventListener("scroll",d),c.removeEventListener("resize",d);});}}},[e,t,n]);}function QM(e,t,n,r,o,i,a,s){var l=f__namespace.useRef(e),c=f__namespace.useRef(!1);l.current!==e&&(c.current=!0,l.current=e),f__namespace.useEffect(function(){var u=pt(function(){c.current=!1;});return function(){pt.cancel(u);}},[e]),f__namespace.useEffect(function(){if(t&&r&&(!o||i)){var u=function(){var $=!1,x=function(_){var A=_.target;$=a(A);},w=function(_){var A=_.target;!c.current&&l.current&&!$&&!a(A)&&s(!1);};return [x,w]},d=u(),m=Z(d,2),h=m[0],g=m[1],v=u(),p=Z(v,2),b=p[0],y=p[1],S=us(r);S.addEventListener("mousedown",h,!0),S.addEventListener("click",g,!0),S.addEventListener("contextmenu",g,!0);var E=Nl(n);return E&&(E.addEventListener("mousedown",b,!0),E.addEventListener("click",y,!0),E.addEventListener("contextmenu",y,!0)),function(){S.removeEventListener("mousedown",h,!0),S.removeEventListener("click",g,!0),S.removeEventListener("contextmenu",g,!0),E&&(E.removeEventListener("mousedown",b,!0),E.removeEventListener("click",y,!0),E.removeEventListener("contextmenu",y,!0));}}},[t,n,r,o,i]);}function JM(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,m=f__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],b=g[1],y=v[0],S=v[1];p===y||!["t","b"].includes(p)?h.top=d:p==="t"?h.top=0:h.bottom=0,b===S||!["l","r"].includes(b)?h.left=c:b==="l"?h.left=0:h.right=0;}return f__namespace.createElement("div",{ref:m,className:F("".concat(t,"-arrow"),a),style:h},s)}function eN(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?f__namespace.createElement(qr,Ee({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return f__namespace.createElement("div",{style:{zIndex:r},className:F("".concat(t,"-mask"),s)})}):null}var tN=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),nN=f__namespace.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.onClick,d=e.mask,m=e.arrow,h=e.arrowPos,g=e.align,v=e.motion,p=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,S=e.autoDestroy,E=e.portal,C=e.zIndex,$=e.onMouseEnter,x=e.onMouseLeave,w=e.onPointerEnter,O=e.ready,_=e.offsetX,A=e.offsetY,R=e.offsetR,I=e.offsetB,P=e.onAlign,M=e.onPrepare,N=e.stretch,T=e.targetWidth,L=e.targetHeight,z=typeof n=="function"?n():n,H=l||c,W=(y==null?void 0:y.length)>0,B=f__namespace.useState(!y||!W),V=Z(B,2),j=V[0],X=V[1];if(Vt(function(){!j&&W&&a&&X(!0);},[j,W,a]),!j)return null;var K="auto",G={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(O||!l){var U=g.points,Y=g._experimental,re=Y==null?void 0:Y.dynamicInset,de=re&&U[0][1]==="r",ve=re&&U[0][0]==="b";de?(G.right=R,G.left=K):(G.left=_,G.right=K),ve?(G.bottom=I,G.top=K):(G.top=A,G.bottom=K);}var te={};return N&&(N.includes("height")&&L?te.height=L:N.includes("minHeight")&&L&&(te.minHeight=L),N.includes("width")&&T?te.width=T:N.includes("minWidth")&&T&&(te.minWidth=T)),l||(te.pointerEvents="none"),f__namespace.createElement(E,{open:b||H,getContainer:y&&function(){return y(a)},autoDestroy:S},f__namespace.createElement(eN,{prefixCls:o,open:l,zIndex:C,mask:d,motion:p}),f__namespace.createElement(Or,{onResize:P,disabled:!l},function(oe){return f__namespace.createElement(qr,Ee({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:M,onEnterPrepare:M,visible:l,onVisibleChanged:function(q){var ne;v==null||(ne=v.onVisibleChanged)===null||ne===void 0||ne.call(v,q),s(q);}}),function(ce,q){var ne=ce.className,J=ce.style,he=F(o,ne,r);return f__namespace.createElement("div",{ref:xn(oe,t,q),className:he,style:ee(ee(ee(ee({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},G),te),J),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:$,onMouseLeave:x,onPointerEnter:w,onClick:u},m&&f__namespace.createElement(JM,{prefixCls:o,arrow:m,arrowPos:h,align:g}),f__namespace.createElement(tN,{cache:!l},z))})}))}),rN=f__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ko(n),i=f__namespace.useCallback(function(s){Xm(t,r?r(s):s);},[r]),a=cs(i,n.ref);return o?f__namespace.cloneElement(n,{ref:a}):n}),oN=["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 iN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b1,t=f__namespace.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,m=n.defaultPopupVisible,h=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,v=n.mouseEnterDelay,p=n.mouseLeaveDelay,b=p===void 0?.1:p,y=n.focusDelay,S=n.blurDelay,E=n.mask,C=n.maskClosable,$=C===void 0?!0:C,x=n.getPopupContainer,w=n.forceRender,O=n.autoDestroy,_=n.destroyPopupOnHide,A=n.popup,R=n.popupClassName,I=n.popupStyle,P=n.popupPlacement,M=n.builtinPlacements,N=M===void 0?{}:M,T=n.popupAlign,L=n.zIndex,z=n.stretch,H=n.getPopupClassNameFromAlign,W=n.alignPoint,B=n.onPopupClick,V=n.onPopupAlign,j=n.arrow,X=n.popupMotion,K=n.maskMotion,G=n.popupTransitionName,U=n.popupAnimation,Y=n.maskTransitionName,re=n.maskAnimation,de=n.className,ve=n.getTriggerDOMNode,te=et(n,oN),oe=O||_||!1,ce=f__namespace.useState(!1),q=Z(ce,2),ne=q[0],J=q[1];Vt(function(){J(Mc());},[]);var he=f__namespace.useRef({}),me=f__namespace.useContext(Kv),pe=f__namespace.useMemo(function(){return {registerSubPopup:function(lt,At){he.current[lt]=At,me==null||me.registerSubPopup(lt,At);}}},[me]),_e=UM(),Be=f__namespace.useState(null),Ne=Z(Be,2),ae=Ne[0],ue=Ne[1],be=Nn(function(Ue){Pl(Ue)&&ae!==Ue&&ue(Ue),me==null||me.registerSubPopup(_e,Ue);}),we=f__namespace.useState(null),ze=Z(we,2),Le=ze[0],Oe=ze[1],Ie=Nn(function(Ue){Pl(Ue)&&Le!==Ue&&Oe(Ue);}),We=f__namespace.Children.only(a),$e=(We==null?void 0:We.props)||{},ke={},tt=Nn(function(Ue){var lt,At,Gt=Le;return (Gt==null?void 0:Gt.contains(Ue))||((lt=Nl(Gt))===null||lt===void 0?void 0:lt.host)===Ue||Ue===Gt||(ae==null?void 0:ae.contains(Ue))||((At=Nl(ae))===null||At===void 0?void 0:At.host)===Ue||Ue===ae||Object.values(he.current).some(function(Kt){return (Kt==null?void 0:Kt.contains(Ue))||Ue===Kt})}),ut=qv(i,X,U,G),qe=qv(i,K,re,Y),dt=f__namespace.useState(m||!1),Re=Z(dt,2),ge=Re[0],Ce=Re[1],fe=d??ge,Pe=Nn(function(Ue){d===void 0&&Ce(Ue);});Vt(function(){Ce(d||!1);},[d]);var Fe=f__namespace.useRef(fe);Fe.current=fe;var Te=Nn(function(Ue){p0.flushSync(function(){fe!==Ue&&(Pe(Ue),h==null||h(Ue));});}),xe=f__namespace.useRef(),se=function(){clearTimeout(xe.current);},Se=function(lt){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;se(),At===0?Te(lt):xe.current=setTimeout(function(){Te(lt);},At*1e3);};f__namespace.useEffect(function(){return se},[]);var Me=f__namespace.useState(!1),Ae=Z(Me,2),st=Ae[0],nt=Ae[1];Vt(function(Ue){(!Ue||fe)&&nt(!0);},[fe]);var xt=f__namespace.useState(null),Ft=Z(xt,2),Wt=Ft[0],Xe=Ft[1],Ze=f__namespace.useState([0,0]),Ge=Z(Ze,2),mt=Ge[0],ht=Ge[1],Mt=function(lt){ht([lt.clientX,lt.clientY]);},Ye=YM(fe,ae,W?mt:Le,P,N,T,V),Ve=Z(Ye,11),ft=Ve[0],Ot=Ve[1],en=Ve[2],Nt=Ve[3],cn=Ve[4],hr=Ve[5],ir=Ve[6],Zr=Ve[7],po=Ve[8],En=Ve[9],Tn=Ve[10],bo=KM(ne,l,c,u),Ln=Z(bo,2),On=Ln[0],Mn=Ln[1],Tr=On.has("click"),Vn=Mn.has("click")||Mn.has("contextMenu"),Un=Nn(function(){st||Tn();}),Qr=function(){Fe.current&&W&&Vn&&Se(!1);};ZM(fe,Le,ae,Un,Qr),Vt(function(){Un();},[mt,P]),Vt(function(){fe&&!(N!=null&&N[P])&&Un();},[JSON.stringify(T)]);var yo=f__namespace.useMemo(function(){var Ue=qM(N,i,En,W);return F(Ue,H==null?void 0:H(En))},[En,H,N,i,W]);f__namespace.useImperativeHandle(r,function(){return {forceAlign:Un}});var It=function(lt){nt(!1),Tn(),g==null||g(lt);},gt=function(){return new Promise(function(lt){Xe(function(){return lt});})};Vt(function(){Wt&&(Tn(),Wt(),Xe(null));},[Wt]);var je=f__namespace.useState(0),He=Z(je,2),bt=He[0],kt=He[1],Pt=f__namespace.useState(0),tn=Z(Pt,2),In=tn[0],Mr=tn[1],Gn=function(lt,At){if(Un(),z){var Gt=At.getBoundingClientRect();kt(Gt.width),Mr(Gt.height);}};function Pn(Ue,lt,At,Gt){ke[Ue]=function(Kt){var Ms;Gt==null||Gt(Kt),Se(lt,At);for(var Ru=arguments.length,Pg=new Array(Ru>1?Ru-1:0),Ns=1;Ns1?At-1:0),Kt=1;Kt1?At-1:0),Kt=1;Kt({height:0,opacity:0}),ep=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},uN=e=>({height:e?e.offsetHeight:0}),Xu=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",O1=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Ku,onEnterStart:Ku,onAppearActive:ep,onEnterActive:ep,onLeaveStart:uN,onLeaveActive:Ku,onAppearEnd:Xu,onEnterEnd:Xu,onLeaveEnd:Xu,motionDeadline:500}},kc=(e,t,n)=>n!==void 0?n:`${e}-${t}`,I1=8;function eh(e){const t=I1,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function Vs(e,t){return e?t:{}}function th(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:h}=eh({contentRadius:l,limitVerticalRadius:c});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},vT(r,o,i,s,a)),{"&:before":{background:s}})]},Vs(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),Vs(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),Vs(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:m},[`&-placement-leftBottom ${n}-arrow`]:{bottom:m}})),Vs(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:m},[`&-placement-rightBottom ${n}-arrow`]:{bottom:m}}))}}function dN(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 tp={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"]}},fN={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"]}},mN=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function P1(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(tp).forEach(c=>{const u=r&&fN[c]||tp[c],d=Object.assign(Object.assign({},u),{offset:[0,0]});switch(l[c]=d,mN.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+o;break}const m=eh({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-m.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":d.offset[0]=m.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":d.offset[1]=-m.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":d.offset[1]=m.dropdownArrowOffset+s;break}d.overflow=dN(c,m,t,n),a&&(d.htmlRegion="visibleFirst");}),l}const{isValidElement:Fr}=f__namespace;function R1(e){return e&&Fr(e)&&e.type===f__namespace.Fragment}function hN(e,t,n){return Fr(e)?f__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function yn(e,t){return hN(e,e,t)}const gN=e=>{const t=f.useContext(_c);return f.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Wn=gN,vN=e=>{const{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},pN=vN,bN=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"}}}},_1=Bt("Space",e=>[bN(e),pN(e)],()=>({}),{resetStyle:!1});var T1=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=f__namespace.useContext(Ac),r=f__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return F(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return {compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Mi=e=>{let{children:t}=e;return f__namespace.createElement(Ac.Provider,{value:null},t)},yN=e=>{var{children:t}=e,n=T1(e,["children"]);return f__namespace.createElement(Ac.Provider,{value:n},t)},CN=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(Je),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=T1(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Wn(S=>r??S),m=t("space-compact",a),[h,g]=_1(m),v=F(m,g,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},s,l),p=f__namespace.useContext(Ac),b=tr(c),y=f__namespace.useMemo(()=>b.map((S,E)=>{const C=S&&S.key||`${m}-item-${E}`;return f__namespace.createElement(yN,{key:C,compactSize:d,compactDirection:o,isFirstItem:E===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:E===b.length-1&&(!p||(p==null?void 0:p.isLastItem))},S)}),[r,b,p]);return b.length===0?null:h(f__namespace.createElement("div",Object.assign({className:v},u),y))},SN=CN,wN=e=>{const t=e!=null&&e.algorithm?Fa(e.algorithm):Fa(ls),n=Object.assign(Object.assign({},ss),e==null?void 0:e.token);return ky(n,{override:e==null?void 0:e.token},t,Gm)},xN=wN;function $N(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 EN=(e,t)=>{const n=t??ls(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),$N(t??e)),Ky(r)),{controlHeight:o}),Uy(Object.assign(Object.assign({},n),{controlHeight:o})))},ON=EN,no=(e,t)=>new Ut(e).setAlpha(t).toRgbString(),ri=(e,t)=>new Ut(e).lighten(t).toHexString(),IN=e=>{const t=Hr(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]}},PN=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:no(r,.85),colorTextSecondary:no(r,.65),colorTextTertiary:no(r,.45),colorTextQuaternary:no(r,.25),colorFill:no(r,.18),colorFillSecondary:no(r,.12),colorFillTertiary:no(r,.08),colorFillQuaternary:no(r,.04),colorBgElevated:ri(n,12),colorBgContainer:ri(n,8),colorBgLayout:ri(n,0),colorBgSpotlight:ri(n,26),colorBorder:ri(n,26),colorBorderSecondary:ri(n,19)}},RN=(e,t)=>{const n=Object.keys(Um).map(o=>{const i=Hr(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${o}-${l+1}`]=i[l],a[`${o}${l+1}`]=i[l],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??ls(e);return Object.assign(Object.assign(Object.assign({},r),n),Gy(e,{generateColorPalettes:IN,generateNeutralColorPalettes:PN}))},_N=RN;function TN(){const[e,t,n]=Xr();return {theme:e,token:t,hashId:n}}const Ni={defaultConfig:Ol,defaultSeed:Ol.token,useToken:TN,defaultAlgorithm:ls,darkAlgorithm:_N,compactAlgorithm:ON,getDesignToken:xN},MN=e=>({animationDuration:e,animationFillMode:"both"}),NN=e=>({animationDuration:e,animationFillMode:"both"}),nh=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({},MN(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},NN(r)),{animationPlayState:"paused"}),[` ${i}${e}-enter${e}-enter-active, ${i}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},kN=new Ct("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),AN=new Ct("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),LN=new Ct("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),DN=new Ct("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zN=new Ct("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jN=new Ct("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),BN=new Ct("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),HN=new Ct("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),FN={"move-up":{inKeyframes:BN,outKeyframes:HN},"move-down":{inKeyframes:kN,outKeyframes:AN},"move-left":{inKeyframes:LN,outKeyframes:DN},"move-right":{inKeyframes:zN,outKeyframes:jN}},kl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=FN[t];return [nh(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},rh=new Ct("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),oh=new Ct("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ih=new Ct("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ah=new Ct("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),WN=new Ct("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),VN=new Ct("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),UN=new Ct("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),GN=new Ct("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),KN={"slide-up":{inKeyframes:rh,outKeyframes:oh},"slide-down":{inKeyframes:ih,outKeyframes:ah},"slide-left":{inKeyframes:WN,outKeyframes:VN},"slide-right":{inKeyframes:UN,outKeyframes:GN}},ho=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=KN[t];return [nh(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},XN=new Ct("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qN=new Ct("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),np=new Ct("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),rp=new Ct("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),YN=new Ct("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ZN=new Ct("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),QN=new Ct("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),JN=new Ct("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),e3=new Ct("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),t3=new Ct("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),n3=new Ct("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),r3=new Ct("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),o3={zoom:{inKeyframes:XN,outKeyframes:qN},"zoom-big":{inKeyframes:np,outKeyframes:rp},"zoom-big-fast":{inKeyframes:np,outKeyframes:rp},"zoom-left":{inKeyframes:QN,outKeyframes:JN},"zoom-right":{inKeyframes:e3,outKeyframes:t3},"zoom-up":{inKeyframes:YN,outKeyframes:ZN},"zoom-down":{inKeyframes:n3,outKeyframes:r3}},Lc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=o3[t];return [nh(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}}]},i3=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`}}}),M1=i3,a3=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,I1)}},[`${t}-content`]:{position:"relative"}}),Il(e,(m,h)=>{let{darkColor:g}=h;return {[`&${t}-${m}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},th(ct(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},N1=(e,t)=>Bt("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:s}=r,l=ct(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return [a3(l),Lc(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return {zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),s3=Wa.map(e=>`${e}-inverse`),l3=["success","processing","error","default","warning"];function Dc(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Qe(s3),Qe(Wa)).includes(e):Wa.includes(e)}function c3(e){return l3.includes(e)}function k1(e,t){const n=Dc(t),r=F({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const u3=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=f__namespace.useContext(Je),l=s("tooltip",t),[c,u]=N1(l,!0),d=k1(l,i),m=d.arrowStyle,h=Object.assign(Object.assign({},a),d.overlayStyle),g=F(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(f__namespace.createElement("div",{className:g,style:m},f__namespace.createElement("div",{className:`${l}-arrow`}),f__namespace.createElement(Jm,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))},d3=u3;var 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{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 g3(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}=h3(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=Object.assign(Object.assign({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},o),{pointerEvents:"none"}),s=yn(e,{style:a,className:null});return f__namespace.createElement("span",{style:i,className:F(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const A1=f__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:m,destroyTooltipOnHide:h,arrow:g=!0,title:v,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:S=!0}=e,E=!!g,{token:C}=m3(),{getPopupContainer:$,getPrefixCls:x,direction:w}=f__namespace.useContext(Je),O=f__namespace.useRef(null),_=()=>{var J;(J=O.current)===null||J===void 0||J.forceAlign();};f__namespace.useImperativeHandle(t,()=>({forceAlign:_,forcePopupAlign:()=>{_();}}));const[A,R]=Dt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),I=!v&&!p&&v!==0,P=J=>{var he,me;R(I?!1:J),I||((he=e.onOpenChange)===null||he===void 0||he.call(e,J),(me=e.onVisibleChange)===null||me===void 0||me.call(e,J));},M=f__namespace.useMemo(()=>{var J,he;let me=y;return typeof g=="object"&&(me=(he=(J=g.pointAtCenter)!==null&&J!==void 0?J:g.arrowPointAtCenter)!==null&&he!==void 0?he:y),b||P1({arrowPointAtCenter:me,autoAdjustOverflow:S,arrowWidth:E?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[y,g,b,C]),N=f__namespace.useMemo(()=>v===0?v:p||v||"",[p,v]),T=f__namespace.createElement(Mi,null,typeof N=="function"?N():N),{getPopupContainer:L,placement:z="top",mouseEnterDelay:H=.1,mouseLeaveDelay:W=.1,overlayStyle:B,rootClassName:V}=e,j=f3(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),X=x("tooltip",o),K=x(),G=e["data-popover-inject"];let U=A;!("open"in e)&&!("visible"in e)&&I&&(U=!1);const Y=g3(Fr(u)&&!R1(u)?u:f__namespace.createElement("span",null,u),X),re=Y.props,de=!re.className||typeof re.className=="string"?F(re.className,i||`${X}-open`):re.className,[ve,te]=N1(X,!G),oe=k1(X,l),ce=oe.arrowStyle,q=Object.assign(Object.assign({},c),oe.overlayStyle),ne=F(s,{[`${X}-rtl`]:w==="rtl"},oe.className,V,te);return ve(f__namespace.createElement(cN,Object.assign({},j,{showArrow:E,placement:z,mouseEnterDelay:H,mouseLeaveDelay:W,prefixCls:X,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ce),B),getTooltipContainer:L||a||$,ref:O,builtinPlacements:M,overlay:T,visible:U,onVisibleChange:P,afterVisibleChange:d??m,overlayInnerStyle:q,arrowContent:f__namespace.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:kc(K,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),U?yn(Y,{className:de}):Y))});A1._InternalPanelDoNotUseOrYouWillBeFired=d3;const ds=A1,v3=f__namespace.forwardRef((e,t)=>{const{open:n}=e,r=f.useRef(null),o=f.useRef(null);function i(){pt.cancel(o.current),o.current=null;}function a(){o.current=pt(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),o.current=null;});}return f__namespace.useEffect(()=>(n?a():i(),i),[n,e.title]),f__namespace.createElement(ds,Object.assign({ref:xn(r,t)},e))}),p3=v3,b3=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s}=e;return {[t]:Object.assign(Object.assign({},Rt(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:s},[`${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 Ut(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"}})}},L1=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart";return {[a]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track`]:{[l]:r},[`${n}-handle`]:{[c]:(r*3-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[u]:r*3+(t?0:e.marginFull),[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-i)/2}}},y3=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},L1(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},C3=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},L1(e,!1)),{height:"100%"})}},S3=Bt("Slider",e=>{const t=ct(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [b3(t),y3(t),C3(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 w3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);otypeof e=="number"?e.toString():"",$3=f.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:m}=e,h=w3(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:g,slider:v,getPrefixCls:p,getPopupContainer:b}=f.useContext(Je),y=f.useContext(_r),S=s??y,[E,C]=f.useState({}),$=(N,T)=>{C(L=>Object.assign(Object.assign({},L),{[N]:T}));},x=(N,T)=>N||(T?g==="rtl"?"left":"right":"top"),w=p("slider",n),[O,_]=S3(w),A=F(o,v==null?void 0:v.className,i,{[`${w}-rtl`]:g==="rtl"},_);g==="rtl"&&!h.vertical&&(h.reverse=!h.reverse);const[R,I]=f.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),P=(N,T)=>{var L;const{index:z,dragging:H}=T,{tooltip:W={},vertical:B}=e,V=Object.assign({},W),{open:j,placement:X,getPopupContainer:K,prefixCls:G,formatter:U}=V;let Y;U||U===null?Y=U:c||c===null?Y=c:Y=x3;const re=Y?E[z]||H:!1,de=(L=j??u)!==null&&L!==void 0?L:j===void 0&&re,ve=Object.assign(Object.assign({},N.props),{onMouseEnter:()=>$(z,!0),onMouseLeave:()=>$(z,!1)}),te=p("tooltip",G??l);return f.createElement(p3,Object.assign({},V,{prefixCls:te,title:Y?Y(T.value):"",open:de,placement:x(X??m,B),key:z,overlayClassName:`${w}-tooltip`,getPopupContainer:K||d||b}),f.cloneElement(N,ve))},M=Object.assign(Object.assign({},v==null?void 0:v.style),a);return O(f.createElement(jR,Object.assign({},h,{step:h.step,range:R,draggableTrack:I,className:A,style:M,disabled:S,ref:t,prefixCls:w,handleRender:P})))}),E3=$3;var O3={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 I3=O3;var P3=1/0,R3="[object Symbol]",_3=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,T3=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zc="\\ud800-\\udfff",D1="\\u0300-\\u036f\\ufe20-\\ufe23",z1="\\u20d0-\\u20f0",j1="\\u2700-\\u27bf",B1="a-z\\xdf-\\xf6\\xf8-\\xff",M3="\\xac\\xb1\\xd7\\xf7",N3="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",k3="\\u2000-\\u206f",A3=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",H1="A-Z\\xc0-\\xd6\\xd8-\\xde",F1="\\ufe0e\\ufe0f",W1=M3+N3+k3+A3,sh="['’]",L3="["+zc+"]",op="["+W1+"]",Al="["+D1+z1+"]",V1="\\d+",D3="["+j1+"]",U1="["+B1+"]",G1="[^"+zc+W1+V1+j1+B1+H1+"]",Ef="\\ud83c[\\udffb-\\udfff]",z3="(?:"+Al+"|"+Ef+")",K1="[^"+zc+"]",lh="(?:\\ud83c[\\udde6-\\uddff]){2}",ch="[\\ud800-\\udbff][\\udc00-\\udfff]",gi="["+H1+"]",X1="\\u200d",ip="(?:"+U1+"|"+G1+")",j3="(?:"+gi+"|"+G1+")",ap="(?:"+sh+"(?:d|ll|m|re|s|t|ve))?",sp="(?:"+sh+"(?:D|LL|M|RE|S|T|VE))?",q1=z3+"?",Y1="["+F1+"]?",B3="(?:"+X1+"(?:"+[K1,lh,ch].join("|")+")"+Y1+q1+")*",Z1=Y1+q1+B3,H3="(?:"+[D3,lh,ch].join("|")+")"+Z1,F3="(?:"+[K1+Al+"?",Al,lh,ch,L3].join("|")+")",W3=RegExp(sh,"g"),V3=RegExp(Al,"g"),U3=RegExp(Ef+"(?="+Ef+")|"+F3+Z1,"g"),G3=RegExp([gi+"?"+U1+"+"+ap+"(?="+[op,gi,"$"].join("|")+")",j3+"+"+sp+"(?="+[op,gi+ip,"$"].join("|")+")",gi+"?"+ip+"+"+ap,gi+"+"+sp,V1,H3].join("|"),"g"),K3=RegExp("["+X1+zc+D1+z1+F1+"]"),X3=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,q3={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},Y3=typeof Io=="object"&&Io&&Io.Object===Object&&Io,Z3=typeof self=="object"&&self&&self.Object===Object&&self,Q3=Y3||Z3||Function("return this")();function J3(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++oo?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=r?e:uk(e,t,n)}function mk(e){return function(t){t=jc(t);var n=Q1(t)?ik(t):void 0,r=n?n[0]:t.charAt(0),o=n?fk(n,1).join(""):t.slice(1);return r[e]()+o}}function hk(e){return function(t){return J3(Sk(yk(t).replace(W3,"")),e,"")}}function gk(e){return !!e&&typeof e=="object"}function vk(e){return typeof e=="symbol"||gk(e)&&ck.call(e)==R3}function jc(e){return e==null?"":dk(e)}var pk=hk(function(e,t,n){return t=t.toLowerCase(),e+(n?bk(t):t)});function bk(e){return Ck(jc(e).toLowerCase())}function yk(e){return e=jc(e),e&&e.replace(T3,rk).replace(V3,"")}var Ck=mk("toUpperCase");function Sk(e,t,n){return e=jc(e),t=n?void 0:t,t===void 0?ok(e)?sk(e):tk(e):e.match(t)||[]}var wk=pk;const xk=an(wk);function $k(e,t){Rr(e,"[@ant-design/icons] ".concat(t));}function dp(e){return at(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(at(e.icon)==="object"||typeof e.icon=="function")}function fp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[xk(n)]=r;}return t},{})}function Of(e,t,n){return n?f.createElement(e.tag,ee(ee({key:t},fp(e.attrs)),n),(e.children||[]).map(function(r,o){return Of(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):f.createElement(e.tag,ee({key:t},fp(e.attrs)),(e.children||[]).map(function(r,o){return Of(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function J1(e){return Hr(e)[0]}function eC(e){return e?Array.isArray(e)?e:[e]:[]}var Ek=` .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); } } `,Ok=function(t){var n=f.useContext(Wm),r=n.csp,o=n.prefixCls,i=Ek;o&&(i=i.replace(/anticon/g,o)),f.useEffect(function(){var a=t.current,s=Nl(a);Km(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},Ik=["icon","className","onClick","style","primaryColor","secondaryColor"],Ea={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Pk(e){var t=e.primaryColor,n=e.secondaryColor;Ea.primaryColor=t,Ea.secondaryColor=n||J1(t),Ea.calculated=!!n;}function Rk(){return ee({},Ea)}var Bc=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=et(t,Ik),c=f__namespace.useRef(),u=Ea;if(a&&(u={primaryColor:a,secondaryColor:s||J1(a)}),Ok(c),$k(dp(n),"icon should be icon definiton, but got ".concat(n)),!dp(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=ee(ee({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Of(d.icon,"svg-".concat(d.name),ee(ee({className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Bc.displayName="IconReact";Bc.getTwoToneColors=Rk;Bc.setTwoToneColors=Pk;const uh=Bc;function tC(e){var t=eC(e),n=Z(t,2),r=n[0],o=n[1];return uh.setTwoToneColors({primaryColor:r,secondaryColor:o})}function _k(){var e=uh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Tk=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];tC(rT.primary);var Hc=f__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=et(e,Tk),d=f__namespace.useContext(Wm),m=d.prefixCls,h=m===void 0?"anticon":m,g=d.rootClassName,v=F(g,h,(n={},Q(n,"".concat(h,"-").concat(o.name),!!o.name),Q(n,"".concat(h,"-spin"),!!i||o.name==="loading"),n),r),p=s;p===void 0&&l&&(p=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=eC(c),S=Z(y,2),E=S[0],C=S[1];return f__namespace.createElement("span",Ee({role:"img","aria-label":o.name},u,{ref:t,tabIndex:p,onClick:l,className:v}),f__namespace.createElement(uh,{icon:o,primaryColor:E,secondaryColor:C,style:b}))});Hc.displayName="AntdIcon";Hc.getTwoToneColor=_k;Hc.setTwoToneColor=tC;const hn=Hc;var Mk=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:I3}))};const nC=f__namespace.forwardRef(Mk);function Cn(e,t){var n=ee({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}const ki=e=>e?typeof e=="function"?e():e:null,Nk=e=>{const{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:o,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,marginXS:u,colorBgElevated:d,popoverBg:m}=e;return [{[t]:Object.assign(Object.assign({},Rt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},th(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},kk=e=>{const{componentCls:t}=e;return {[t]:Wa.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Ak=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,u=a-Math.round(s*l),d=u/2,m=u/2-n,h=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${h}px ${m}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${h}px`}}}},rC=Bt("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=ct(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [Nk(o),kk(o),r&&Ak(o),Lc(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]});var Lk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(!(!t&&!n))return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${e}-title`},ki(t)),f__namespace.createElement("div",{className:`${e}-inner-content`},ki(n)))},zk=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e;return f__namespace.createElement("div",{className:F(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},f__namespace.createElement("div",{className:`${n}-arrow`}),f__namespace.createElement(Jm,Object.assign({},e,{className:t,prefixCls:n}),l||Dk(n,a,s)))},jk=e=>{const{prefixCls:t}=e,n=Lk(e,["prefixCls"]),{getPrefixCls:r}=f__namespace.useContext(Je),o=r("popover",t),[i,a]=rC(o);return i(f__namespace.createElement(zk,Object.assign({},n,{prefixCls:o,hashId:a})))},oC=jk;var Bk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:r}=e;return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${r}-title`},ki(t)),f__namespace.createElement("div",{className:`${r}-inner-content`},ki(n)))},iC=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:s="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=Bk(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=f__namespace.useContext(Je),h=m("popover",n),[g,v]=rC(h),p=m(),b=F(i,v);return g(f__namespace.createElement(ds,Object.assign({placement:a,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:h,overlayClassName:b,ref:t,overlay:r||o?f__namespace.createElement(Hk,{prefixCls:h,title:r,content:o}):null,transitionName:kc(p,"zoom-big",d.transitionName),"data-popover-inject":!0})))});iC._InternalPanelDoNotUseOrYouWillBeFired=oC;const Fc=iC,Fk=e=>{const{componentCls:t,colorPrimary:n}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},Wk=Bt("Wave",e=>[Fk(e)]);function Ua(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ua=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(R,I,P){R[I]=P.value;},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(R,I,P){return Object.defineProperty(R,I,{value:P,enumerable:!0,configurable:!0,writable:!0}),R[I]}try{l({},"");}catch{l=function(P,M,N){return P[M]=N};}function c(R,I,P,M){var N=I&&I.prototype instanceof m?I:m,T=Object.create(N.prototype),L=new O(M||[]);return r(T,"_invoke",{value:C(R,P,L)}),T}function u(R,I,P){try{return {type:"normal",arg:R.call(I,P)}}catch(M){return {type:"throw",arg:M}}}e.wrap=c;var d={};function m(){}function h(){}function g(){}var v={};l(v,i,function(){return this});var p=Object.getPrototypeOf,b=p&&p(p(_([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=g.prototype=m.prototype=Object.create(v);function S(R){["next","throw","return"].forEach(function(I){l(R,I,function(P){return this._invoke(I,P)});});}function E(R,I){function P(N,T,L,z){var H=u(R[N],R,T);if(H.type!=="throw"){var W=H.arg,B=W.value;return B&&at(B)=="object"&&n.call(B,"__await")?I.resolve(B.__await).then(function(V){P("next",V,L,z);},function(V){P("throw",V,L,z);}):I.resolve(B).then(function(V){W.value=V,L(W);},function(V){return P("throw",V,L,z)})}z(H.arg);}var M;r(this,"_invoke",{value:function(T,L){function z(){return new I(function(H,W){P(T,L,H,W);})}return M=M?M.then(z,z):z()}});}function C(R,I,P){var M="suspendedStart";return function(N,T){if(M==="executing")throw new Error("Generator is already running");if(M==="completed"){if(N==="throw")throw T;return A()}for(P.method=N,P.arg=T;;){var L=P.delegate;if(L){var z=$(L,P);if(z){if(z===d)continue;return z}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(M==="suspendedStart")throw M="completed",P.arg;P.dispatchException(P.arg);}else P.method==="return"&&P.abrupt("return",P.arg);M="executing";var H=u(R,I,P);if(H.type==="normal"){if(M=P.done?"completed":"suspendedYield",H.arg===d)continue;return {value:H.arg,done:P.done}}H.type==="throw"&&(M="completed",P.method="throw",P.arg=H.arg);}}}function $(R,I){var P=I.method,M=R.iterator[P];if(M===void 0)return I.delegate=null,P==="throw"&&R.iterator.return&&(I.method="return",I.arg=void 0,$(R,I),I.method==="throw")||P!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+P+"' method")),d;var N=u(M,R.iterator,I.arg);if(N.type==="throw")return I.method="throw",I.arg=N.arg,I.delegate=null,d;var T=N.arg;return T?T.done?(I[R.resultName]=T.value,I.next=R.nextLoc,I.method!=="return"&&(I.method="next",I.arg=void 0),I.delegate=null,d):T:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,d)}function x(R){var I={tryLoc:R[0]};1 in R&&(I.catchLoc=R[1]),2 in R&&(I.finallyLoc=R[2],I.afterLoc=R[3]),this.tryEntries.push(I);}function w(R){var I=R.completion||{};I.type="normal",delete I.arg,R.completion=I;}function O(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(x,this),this.reset(!0);}function _(R){if(R){var I=R[i];if(I)return I.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var P=-1,M=function N(){for(;++P=0;--N){var T=this.tryEntries[N],L=T.completion;if(T.tryLoc==="root")return M("end");if(T.tryLoc<=this.prev){var z=n.call(T,"catchLoc"),H=n.call(T,"finallyLoc");if(z&&H){if(this.prev=0;--M){var N=this.tryEntries[M];if(N.tryLoc<=this.prev&&n.call(N,"finallyLoc")&&this.prev=0;--P){var M=this.tryEntries[P];if(M.finallyLoc===I)return this.complete(M.completion,M.afterLoc),w(M),d}},catch:function(I){for(var P=this.tryEntries.length-1;P>=0;--P){var M=this.tryEntries[P];if(M.tryLoc===I){var N=M.completion;if(N.type==="throw"){var T=N.arg;w(M);}return T}}throw new Error("illegal catch attempt")},delegateYield:function(I,P,M){return this.delegate={iterator:_(I),resultName:P,nextLoc:M},this.method==="next"&&(this.arg=void 0),d}},e}function mp(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value;}catch(c){n(c);return}s.done?t(l):Promise.resolve(l).then(r,o);}function aC(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){mp(i,r,o,a,s,"next",l);}function s(l){mp(i,r,o,a,s,"throw",l);}a(void 0);})}}var fs=ee({},p0__namespace),Vk=fs.version,Uk=fs.render,Gk=fs.unmountComponentAtNode,Wc;try{var Kk=Number((Vk||"").split(".")[0]);Kk>=18&&(Wc=fs.createRoot);}catch{}function hp(e){var t=fs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&at(t)==="object"&&(t.usingClientEntryPoint=e);}var Ll="__rc_react_root__";function Xk(e,t){hp(!0);var n=t[Ll]||Wc(t);hp(!1),n.render(e),t[Ll]=n;}function qk(e,t){Uk(e,t);}function Yk(e,t){if(Wc){Xk(e,t);return}qk(e,t);}function Zk(e){return If.apply(this,arguments)}function If(){return If=aC(Ua().mark(function e(t){return Ua().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Ll])===null||o===void 0||o.unmount(),delete t[Ll];}));case 1:case"end":return r.stop()}},e)})),If.apply(this,arguments)}function Qk(e){Gk(e);}function Jk(e){return Pf.apply(this,arguments)}function Pf(){return Pf=aC(Ua().mark(function e(t){return Ua().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Wc===void 0){r.next=2;break}return r.abrupt("return",Zk(t));case 2:Qk(t);case 3:case"end":return r.stop()}},e)})),Pf.apply(this,arguments)}function e4(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function qu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&e4(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function t4(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return qu(t)?t:qu(n)?n:qu(r)?r:null}const Vc="ant-wave-target";function Yu(e){return Number.isNaN(e)?0:e}const n4=e=>{const{className:t,target:n,component:r}=e,o=f__namespace.useRef(null),[i,a]=f__namespace.useState(null),[s,l]=f__namespace.useState([]),[c,u]=f__namespace.useState(0),[d,m]=f__namespace.useState(0),[h,g]=f__namespace.useState(0),[v,p]=f__namespace.useState(0),[b,y]=f__namespace.useState(!1),S={left:c,top:d,width:h,height:v,borderRadius:s.map($=>`${$}px`).join(" ")};i&&(S["--wave-color"]=i);function E(){const $=getComputedStyle(n);a(t4(n));const x=$.position==="static",{borderLeftWidth:w,borderTopWidth:O}=$;u(x?n.offsetLeft:Yu(-parseFloat(w))),m(x?n.offsetTop:Yu(-parseFloat(O))),g(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:A,borderBottomLeftRadius:R,borderBottomRightRadius:I}=$;l([_,A,I,R].map(P=>Yu(parseFloat(P))));}if(f__namespace.useEffect(()=>{if(n){const $=pt(()=>{E(),y(!0);});let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(E),x.observe(n)),()=>{pt.cancel($),x==null||x.disconnect();}}},[]),!b)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Vc));return f__namespace.createElement(qr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,x)=>{var w;if(x.deadline||x.propertyName==="opacity"){const O=(w=o.current)===null||w===void 0?void 0:w.parentElement;Jk(O).then(()=>{O==null||O.remove();});}return !1}},$=>{let{className:x}=$;return f__namespace.createElement("div",{ref:o,className:F(t,{"wave-quick":C},x),style:S})})},r4=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),Yk(f__namespace.createElement(n4,Object.assign({},t,{target:e})),o);},o4=r4;function i4(e,t,n){const{wave:r}=f__namespace.useContext(Je),[,o,i]=Xr(),a=Nn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${Vc}`)||u,{showEffect:m}=r||{};(m||o4)(d,{className:t,token:o,component:n,event:c,hashId:i});}),s=f__namespace.useRef();return c=>{pt.cancel(s.current),s.current=pt(()=>{a(c);});}}const a4=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=f.useContext(Je),i=f.useRef(null),a=o("wave"),[,s]=Wk(a),l=i4(i,F(a,s),r);if(f.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const d=m=>{!Qm(m.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(m);};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0);}},[n]),!f.isValidElement(t))return t??null;const c=Ko(t)?xn(t.ref,i):i;return yn(t,{ref:c})},ms=a4,s4=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=F(`${i}-icon`,n);return f.createElement("span",{ref:t,className:a,style:r},o)}),sC=s4;var l4={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 c4=l4;var u4=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:c4}))};const dh=f__namespace.forwardRef(u4),gp=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=F(`${n}-loading-icon`,r);return f.createElement(sC,{prefixCls:n,className:a,style:o,ref:t},f.createElement(dh,{className:i}))}),Zu=()=>({width:0,opacity:0,transform:"scale(0)"}),Qu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),d4=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?f.createElement(gp,{prefixCls:t,className:o,style:i}):f.createElement(qr,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:Zu,onAppearActive:Qu,onEnterStart:Zu,onEnterActive:Qu,onLeaveStart:Qu,onLeaveActive:Zu},(s,l)=>{let{className:c,style:u}=s;return f.createElement(gp,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:l,iconClassName:c})})},f4=d4;var m4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=f__namespace.useContext(Je),{prefixCls:r,size:o,className:i}=e,a=m4(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Xr();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=F(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return f__namespace.createElement(lC.Provider,{value:o},f__namespace.createElement("div",Object.assign({},a,{className:u})))},g4=h4,vp=/^[\u4e00-\u9fa5]{2}$/,Rf=vp.test.bind(vp);function pp(e){return typeof e=="string"}function Ju(e){return e==="text"||e==="link"}function v4(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&pp(e.type)&&Rf(e.props.children)?yn(e,{children:e.props.children.split("").join(n)}):pp(e)?Rf(e)?f.createElement("span",null,e.split("").join(n)):f.createElement("span",null,e):R1(e)?f.createElement("span",null,e):e}function p4(e,t){let n=!1;const r=[];return f.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`;}else r.push(o);n=a;}),f.Children.map(r,o=>v4(o,t))}function b4(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function y4(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 Uc(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({},b4(e,r,t)),y4(n,r,t))}}function C4(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function S4(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 w4(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},C4(e,t)),S4(e.componentCls,t))}}const bp=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),x4=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}},bp(`${t}-primary`,o),bp(`${t}-danger`,i)]}},$4=x4,E4=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({},jo(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:'""'}}}}}}},Wr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),O4=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),I4=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),P4=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Ga=(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"},Wr(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),fh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},P4(e))}),cC=e=>Object.assign({},fh(e)),Dl=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),uC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cC(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Wr(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Ga(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},Wr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ga(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),fh(e))}),R4=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cC(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Wr(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Ga(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}`},Wr(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Ga(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),fh(e))}),_4=e=>Object.assign(Object.assign({},uC(e)),{borderStyle:"dashed"}),T4=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Wr(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),Dl(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Wr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Dl(e))}),M4=e=>Object.assign(Object.assign(Object.assign({},Wr(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Dl(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Dl(e)),Wr(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),N4=e=>{const{componentCls:t}=e;return {[`${t}-default`]:uC(e),[`${t}-primary`]:R4(e),[`${t}-dashed`]:_4(e),[`${t}-link`]:T4(e),[`${t}-text`]:M4(e),[`${t}-ghost`]:Ga(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},mh=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e,u=Math.max(0,(r-o*i)/2-a),d=l-a,m=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${u}px ${d}px`,borderRadius:s,[`&${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}`]:O4(e)},{[`${n}${n}-round${t}`]:I4(e)}]},k4=e=>mh(e),A4=e=>{const t=ct(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return mh(t,`${e.componentCls}-sm`)},L4=e=>{const t=ct(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return mh(t,`${e.componentCls}-lg`)},D4=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},z4=Bt("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=ct(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return [E4(r),A4(r),k4(r),L4(r),D4(r),N4(r),$4(r),Uc(e),w4(e)]});var j4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:m,rootClassName:h,children:g,icon:v,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:S,style:E={}}=e,C=j4(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:$,autoInsertSpaceInButton:x,direction:w,button:O}=f.useContext(Je),_=$("btn",i),[A,R]=z4(_),I=f.useContext(_r),P=d??I,M=f.useContext(lC),N=f.useMemo(()=>B4(o),[o]),[T,L]=f.useState(N.loading),[z,H]=f.useState(!1),B=xn(t,f.createRef()),V=f.Children.count(g)===1&&!v&&!Ju(a);f.useEffect(()=>{let me=null;N.delay>0?me=setTimeout(()=>{me=null,L(!0);},N.delay):L(N.loading);function pe(){me&&(clearTimeout(me),me=null);}return pe},[N]),f.useEffect(()=>{if(!B||!B.current||x===!1)return;const me=B.current.textContent;V&&Rf(me)?z||H(!0):z&&H(!1);},[B]);const j=me=>{const{onClick:pe}=e;if(T||P){me.preventDefault();return}pe==null||pe(me);},X=x!==!1,{compactSize:K,compactItemClassnames:G}=Ji(_,w),U={large:"lg",small:"sm",middle:void 0},Y=Wn(me=>{var pe,_e;return (_e=(pe=c??K)!==null&&pe!==void 0?pe:M)!==null&&_e!==void 0?_e:me}),re=Y&&U[Y]||"",de=T?"loading":v,ve=Cn(C,["navigate"]),te=F(_,R,{[`${_}-${l}`]:l!=="default"&&l,[`${_}-${a}`]:a,[`${_}-${re}`]:re,[`${_}-icon-only`]:!g&&g!==0&&!!de,[`${_}-background-ghost`]:p&&!Ju(a),[`${_}-loading`]:T,[`${_}-two-chinese-chars`]:z&&X&&!T,[`${_}-block`]:b,[`${_}-dangerous`]:!!s,[`${_}-rtl`]:w==="rtl"},G,m,h,O==null?void 0:O.className),oe=Object.assign(Object.assign({},O==null?void 0:O.style),E),ce=F(S==null?void 0:S.icon,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.icon),q=Object.assign(Object.assign({},(u==null?void 0:u.icon)||{}),((r=O==null?void 0:O.styles)===null||r===void 0?void 0:r.icon)||{}),ne=v&&!T?f.createElement(sC,{prefixCls:_,className:ce,style:q},v):f.createElement(f4,{existIcon:!!v,prefixCls:_,loading:!!T}),J=g||g===0?p4(g,V&&X):null;if(ve.href!==void 0)return A(f.createElement("a",Object.assign({},ve,{className:F(te,{[`${_}-disabled`]:P}),style:oe,onClick:j,ref:B}),ne,J));let he=f.createElement("button",Object.assign({},C,{type:y,className:te,style:oe,onClick:j,disabled:P,ref:B}),ne,J);return Ju(a)||(he=f.createElement(ms,{component:"Button",disabled:!!T},he)),A(he)},hh=f.forwardRef(H4);hh.Group=g4;hh.__ANT_BUTTON=!0;const Xt=hh;function yp(e){return !!(e&&e.then)}const F4=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=f__namespace.useRef(!1),m=f__namespace.useRef(null),[h,g]=To(!1),v=function(){i==null||i.apply(void 0,arguments);};f__namespace.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{var S;(S=m.current)===null||S===void 0||S.focus();})),()=>{y&&clearTimeout(y);}},[]);const p=y=>{yp(y)&&(g(!0),y.then(function(){g(!1,!0),v.apply(void 0,arguments),d.current=!1;},S=>{if(g(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(S)}));},b=y=>{if(d.current)return;if(d.current=!0,!u){v();return}let S;if(s){if(S=u(y),c&&!yp(S)){d.current=!1,v(y);return}}else if(u.length)S=u(i),d.current=!1;else if(S=u(),!S){v();return}p(S);};return f__namespace.createElement(Xt,Object.assign({},dC(t),{onClick:b,loading:h,prefixCls:r},o,{ref:m}),n)},W4=F4,V4=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return {[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},fC=Bt("Popconfirm",e=>V4(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}});var U4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=f__namespace.createElement(nC,null),showCancel:u=!0,close:d,onConfirm:m,onCancel:h,onPopupClick:g}=e,{getPrefixCls:v}=f__namespace.useContext(Je),[p]=Zi("Popconfirm",Br.Popconfirm),b=ki(o),y=ki(i);return f__namespace.createElement("div",{className:`${t}-inner-content`,onClick:g},f__namespace.createElement("div",{className:`${t}-message`},c&&f__namespace.createElement("span",{className:`${t}-message-icon`},c),f__namespace.createElement("div",{className:`${t}-message-text`},b&&f__namespace.createElement("div",{className:F(`${t}-title`)},b),y&&f__namespace.createElement("div",{className:`${t}-description`},y))),f__namespace.createElement("div",{className:`${t}-buttons`},u&&f__namespace.createElement(Xt,Object.assign({onClick:h,size:"small"},r),a??(p==null?void 0:p.cancelText)),f__namespace.createElement(W4,{buttonProps:Object.assign(Object.assign({size:"small"},dC(l)),n),actionFn:m,close:d,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))},G4=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=U4(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=f__namespace.useContext(Je),s=a("popconfirm",t),[l]=fC(s);return l(f__namespace.createElement(oC,{placement:n,className:F(s,r),style:o,content:f__namespace.createElement(mC,Object.assign({prefixCls:s},i))}))},K4=G4;var X4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,placement:r="top",trigger:o="click",okType:i="primary",icon:a=f__namespace.createElement(nC,null),children:s,overlayClassName:l,onOpenChange:c,onVisibleChange:u}=e,d=X4(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:m}=f__namespace.useContext(Je),[h,g]=Dt(!1,{value:e.open,defaultValue:e.defaultOpen}),v=(w,O)=>{g(w,!0),u==null||u(w),c==null||c(w,O);},p=w=>{v(!1,w);},b=w=>{var O;return (O=e.onConfirm)===null||O===void 0?void 0:O.call(globalThis,w)},y=w=>{var O;v(!1,w),(O=e.onCancel)===null||O===void 0||O.call(globalThis,w);},S=w=>{w.keyCode===le.ESC&&h&&v(!1,w);},E=w=>{const{disabled:O=!1}=e;O||v(w);},C=m("popconfirm",n),$=F(C,l),[x]=fC(C);return x(f__namespace.createElement(Fc,Object.assign({},Cn(d,["title"]),{trigger:o,placement:r,onOpenChange:E,open:h,ref:t,overlayClassName:$,content:f__namespace.createElement(mC,Object.assign({okType:i,icon:a},e,{prefixCls:C,close:p,onConfirm:b,onCancel:y})),"data-popover-inject":!0}),yn(s,{onKeyDown:w=>{var O,_;f__namespace.isValidElement(s)&&((_=s==null?void 0:(O=s.props).onKeyDown)===null||_===void 0||_.call(O,w)),S(w);}})))});hC._InternalPanelDoNotUseOrYouWillBeFired=K4;const Cp=hC;var q4={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 Y4=q4;var Z4=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:Y4}))};const gh=f__namespace.forwardRef(Z4);var Q4={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 J4=Q4;var eA=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:J4}))};const tA=f__namespace.forwardRef(eA);function _f(){return typeof BigInt=="function"}function ko(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return {negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function vh(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function Ka(e){var t=String(e);if(vh(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(".")&&ph(t)?t.length-t.indexOf(".")-1:0}function Gc(e){var t=String(e);if(vh(e)){if(e>Number.MAX_SAFE_INTEGER)return String(_f()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Gc(this.number):this.origin}}]),e}(),rA=function(){function e(t){if(Sn(this,e),Q(this,"origin",""),Q(this,"negative",void 0),Q(this,"integer",void 0),Q(this,"decimal",void 0),Q(this,"decimalLen",void 0),Q(this,"empty",void 0),Q(this,"nan",void 0),gC(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(vh(n)&&(n=Number(n)),n=typeof n=="string"?n:Gc(n),ph(n)){var r=ko(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 wn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),i=this.alignDecimal(o),a=r.alignDecimal(o),s=(i+a).toString(),l=ko(s),c=l.negativeStr,u=l.trimStr,d="".concat(c).concat(u.padStart(o+1,"0"));return new e("".concat(d.slice(0,-o),".").concat(d.slice(-o)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ko("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function lr(e){return _f()?new rA(e):new nA(e)}function sl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=ko(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=lr(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return sl(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function oi(e){return !!(e.addonBefore||e.addonAfter)}function ed(e){return !!(e.prefix||e.suffix||e.allowClear)}function Oa(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 vC(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 Tf(e){return typeof e>"u"||e===null?"":String(e)}var bh=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,s=t.suffix,l=t.addonBefore,c=t.addonAfter,u=t.className,d=t.style,m=t.disabled,h=t.readOnly,g=t.focused,v=t.triggerFocus,p=t.allowClear,b=t.value,y=t.handleReset,S=t.hidden,E=t.classes,C=t.classNames,$=t.dataAttrs,x=t.styles,w=t.components,O=(w==null?void 0:w.affixWrapper)||"span",_=(w==null?void 0:w.groupWrapper)||"span",A=(w==null?void 0:w.wrapper)||"span",R=(w==null?void 0:w.groupAddon)||"span",I=f.useRef(null),P=function(K){var G;(G=I.current)!==null&&G!==void 0&&G.contains(K.target)&&(v==null||v());},M=function(){var K;if(!p)return null;var G=!m&&!h&&b,U="".concat(i,"-clear-icon"),Y=at(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return f.createElement("span",{onClick:y,onMouseDown:function(de){return de.preventDefault()},className:F(U,(K={},Q(K,"".concat(U,"-hidden"),!G),Q(K,"".concat(U,"-has-suffix"),!!s),K)),role:"button",tabIndex:-1},Y)},N=f.cloneElement(o,{value:b,hidden:S,className:F((n=o.props)===null||n===void 0?void 0:n.className,!ed(t)&&!oi(t)&&u)||null,style:ee(ee({},(r=o.props)===null||r===void 0?void 0:r.style),!ed(t)&&!oi(t)?d:{})});if(ed(t)){var T,L="".concat(i,"-affix-wrapper"),z=F(L,(T={},Q(T,"".concat(L,"-disabled"),m),Q(T,"".concat(L,"-focused"),g),Q(T,"".concat(L,"-readonly"),h),Q(T,"".concat(L,"-input-with-clear-btn"),s&&p&&b),T),!oi(t)&&u,E==null?void 0:E.affixWrapper,C==null?void 0:C.affixWrapper),H=(s||p)&&f.createElement("span",{className:F("".concat(i,"-suffix"),C==null?void 0:C.suffix),style:x==null?void 0:x.suffix},M(),s);N=f.createElement(O,Ee({className:z,style:oi(t)?void 0:d,hidden:!oi(t)&&S,onClick:P},$==null?void 0:$.affixWrapper,{ref:I}),a&&f.createElement("span",{className:F("".concat(i,"-prefix"),C==null?void 0:C.prefix),style:x==null?void 0:x.prefix},a),f.cloneElement(o,{value:b,hidden:null}),H);}if(oi(t)){var W="".concat(i,"-group"),B="".concat(W,"-addon"),V=F("".concat(i,"-wrapper"),W,E==null?void 0:E.wrapper),j=F("".concat(i,"-group-wrapper"),u,E==null?void 0:E.group);return f.createElement(_,{className:j,style:d,hidden:S},f.createElement(A,{className:V},l&&f.createElement(R,{className:B},l),f.cloneElement(N,{hidden:null}),c&&f.createElement(R,{className:B},c)))}return N},oA=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],iA=f.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=l===void 0?"rc-input":l,u=e.disabled,d=e.htmlSize,m=e.className,h=e.maxLength,g=e.suffix,v=e.showCount,p=e.type,b=p===void 0?"text":p,y=e.classes,S=e.classNames,E=e.styles,C=et(e,oA),$=Dt(e.defaultValue,{value:e.value}),x=Z($,2),w=x[0],O=x[1],_=f.useState(!1),A=Z(_,2),R=A[0],I=A[1],P=f.useRef(null),M=function(j){P.current&&vC(P.current,j);};f.useImperativeHandle(t,function(){return {focus:M,blur:function(){var j;(j=P.current)===null||j===void 0||j.blur();},setSelectionRange:function(j,X,K){var G;(G=P.current)===null||G===void 0||G.setSelectionRange(j,X,K);},select:function(){var j;(j=P.current)===null||j===void 0||j.select();},input:P.current}}),f.useEffect(function(){I(function(V){return V&&u?!1:V});},[u]);var N=function(j){e.value===void 0&&O(j.target.value),P.current&&Oa(P.current,j,r);},T=function(j){a&&j.key==="Enter"&&a(j),s==null||s(j);},L=function(j){I(!0),o==null||o(j);},z=function(j){I(!1),i==null||i(j);},H=function(j){O(""),M(),P.current&&Oa(P.current,j,r);},W=function(){var j=Cn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return f.createElement("input",Ee({autoComplete:n},j,{onChange:N,onFocus:L,onBlur:z,onKeyDown:T,className:F(c,Q({},"".concat(c,"-disabled"),u),S==null?void 0:S.input),style:E==null?void 0:E.input,ref:P,size:d,type:b}))},B=function(){var j=Number(h)>0;if(g||v){var X=Tf(w),K=Qe(X).length,G=at(v)==="object"?v.formatter({value:X,count:K,maxLength:h}):"".concat(K).concat(j?" / ".concat(h):"");return f.createElement(f.Fragment,null,!!v&&f.createElement("span",{className:F("".concat(c,"-show-count-suffix"),Q({},"".concat(c,"-show-count-has-suffix"),!!g),S==null?void 0:S.count),style:ee({},E==null?void 0:E.count)},G),g)}return null};return f.createElement(bh,Ee({},C,{prefixCls:c,className:m,inputElement:W(),handleReset:H,value:Tf(w),focused:R,triggerFocus:M,suffix:B(),disabled:u,classes:y,classNames:S,styles:E}))});function aA(e,t){var n=f.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);n.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c};}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.endsWith(l))u=i.length-n.current.afterTxt.length;else if(i.startsWith(s))u=s.length;else {var d=s[c-1],m=i.indexOf(d,c-1);m!==-1&&(u=m+1);}e.setSelectionRange(u,u);}catch(h){Rr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message));}}return [r,o]}var sA=function(){var t=f.useState(!1),n=Z(t,2),r=n[0],o=n[1];return Vt(function(){o(Mc());},[]),r},lA=200,cA=600;function uA(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=f__namespace.useRef(),l=f__namespace.useRef([]),c=f__namespace.useRef();c.current=a;var u=function(){clearTimeout(s.current);},d=function(S,E){S.preventDefault(),u(),c.current(E);function C(){c.current(E),s.current=setTimeout(C,lA);}s.current=setTimeout(C,cA);};f__namespace.useEffect(function(){return function(){u(),l.current.forEach(function(y){return pt.cancel(y)});}},[]);var m=sA();if(m)return null;var h="".concat(t,"-handler"),g=F(h,"".concat(h,"-up"),Q({},"".concat(h,"-up-disabled"),o)),v=F(h,"".concat(h,"-down"),Q({},"".concat(h,"-down-disabled"),i)),p=function(){return l.current.push(pt(u))},b={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return f__namespace.createElement("div",{className:"".concat(h,"-wrap")},f__namespace.createElement("span",Ee({},b,{onMouseDown:function(S){d(S,!0);},"aria-label":"Increase Value","aria-disabled":o,className:g}),n||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f__namespace.createElement("span",Ee({},b,{onMouseDown:function(S){d(S,!1);},"aria-label":"Decrease Value","aria-disabled":i,className:v}),r||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Sp(e){var t=typeof e=="number"?Gc(e):ko(e).fullStr,n=t.includes(".");return n?ko(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const dA=function(){var e=f.useRef(0),t=function(){pt.cancel(e.current);};return f.useEffect(function(){return t},[]),function(n){t(),e.current=pt(function(){n();});}};var fA=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],mA=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],wp=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},xp=function(t){var n=lr(t);return n.isInvalidate()?null:n},hA=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,i=e.className,a=e.style,s=e.min,l=e.max,c=e.step,u=c===void 0?1:c,d=e.defaultValue,m=e.value,h=e.disabled,g=e.readOnly,v=e.upHandler,p=e.downHandler,b=e.keyboard,y=e.controls,S=y===void 0?!0:y,E=e.classNames,C=e.stringMode,$=e.parser,x=e.formatter,w=e.precision,O=e.decimalSeparator,_=e.onChange,A=e.onInput,R=e.onPressEnter,I=e.onStep,P=et(e,fA),M="".concat(o,"-input"),N=f__namespace.useRef(null),T=f__namespace.useState(!1),L=Z(T,2),z=L[0],H=L[1],W=f__namespace.useRef(!1),B=f__namespace.useRef(!1),V=f__namespace.useRef(!1),j=f__namespace.useState(function(){return lr(m??d)}),X=Z(j,2),K=X[0],G=X[1];function U(Re){m===void 0&&G(Re);}var Y=f__namespace.useCallback(function(Re,ge){if(!ge)return w>=0?w:Math.max(Ka(Re),Ka(u))},[w,u]),re=f__namespace.useCallback(function(Re){var ge=String(Re);if($)return $(ge);var Ce=ge;return O&&(Ce=Ce.replace(O,".")),Ce.replace(/[^\w.-]+/g,"")},[$,O]),de=f__namespace.useRef(""),ve=f__namespace.useCallback(function(Re,ge){if(x)return x(Re,{userTyping:ge,input:String(de.current)});var Ce=typeof Re=="number"?Gc(Re):Re;if(!ge){var fe=Y(Ce,ge);if(ph(Ce)&&(O||fe>=0)){var Pe=O||".";Ce=sl(Ce,Pe,fe);}}return Ce},[x,Y,O]),te=f__namespace.useState(function(){var Re=d??m;return K.isInvalidate()&&["string","number"].includes(at(Re))?Number.isNaN(Re)?"":Re:ve(K.toString(),!1)}),oe=Z(te,2),ce=oe[0],q=oe[1];de.current=ce;function ne(Re,ge){q(ve(Re.isInvalidate()?Re.toString(!1):Re.toString(!ge),ge));}var J=f__namespace.useMemo(function(){return xp(l)},[l,w]),he=f__namespace.useMemo(function(){return xp(s)},[s,w]),me=f__namespace.useMemo(function(){return !J||!K||K.isInvalidate()?!1:J.lessEquals(K)},[J,K]),pe=f__namespace.useMemo(function(){return !he||!K||K.isInvalidate()?!1:K.lessEquals(he)},[he,K]),_e=aA(N.current,z),Be=Z(_e,2),Ne=Be[0],ae=Be[1],ue=function(ge){return J&&!ge.lessEquals(J)?J:he&&!he.lessEquals(ge)?he:null},be=function(ge){return !ue(ge)},we=function(ge,Ce){var fe=ge,Pe=be(fe)||fe.isEmpty();if(!fe.isEmpty()&&!Ce&&(fe=ue(fe)||fe,Pe=!0),!g&&!h&&Pe){var Fe=fe.toString(),Te=Y(Fe,Ce);return Te>=0&&(fe=lr(sl(Fe,".",Te)),be(fe)||(fe=lr(sl(Fe,".",Te,!0)))),fe.equals(K)||(U(fe),_==null||_(fe.isEmpty()?null:wp(C,fe)),m===void 0&&ne(fe,Ce)),fe}return K},ze=dA(),Le=function Re(ge){if(Ne(),de.current=ge,q(ge),!B.current){var Ce=re(ge),fe=lr(Ce);fe.isNaN()||we(fe,!0);}A==null||A(ge),ze(function(){var Pe=ge;$||(Pe=ge.replace(/。/g,".")),Pe!==ge&&Re(Pe);});},Oe=function(){B.current=!0;},Ie=function(){B.current=!1,Le(N.current.value);},We=function(ge){Le(ge.target.value);},$e=function(ge){var Ce;if(!(ge&&me||!ge&&pe)){W.current=!1;var fe=lr(V.current?Sp(u):u);ge||(fe=fe.negate());var Pe=(K||lr(0)).add(fe.toString()),Fe=we(Pe,!1);I==null||I(wp(C,Fe),{offset:V.current?Sp(u):u,type:ge?"up":"down"}),(Ce=N.current)===null||Ce===void 0||Ce.focus();}},ke=function(ge){var Ce=lr(re(ce)),fe=Ce;Ce.isNaN()?fe=K:fe=we(Ce,ge),m!==void 0?ne(K,!1):fe.isNaN()||ne(fe,!1);},tt=function(){W.current=!0;},ut=function(ge){var Ce=ge.key,fe=ge.shiftKey;W.current=!0,V.current=fe,Ce==="Enter"&&(B.current||(W.current=!1),ke(!1),R==null||R(ge)),b!==!1&&!B.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ce)&&($e(Ce==="Up"||Ce==="ArrowUp"),ge.preventDefault());},qe=function(){W.current=!1,V.current=!1;},dt=function(){ke(!1),H(!1),W.current=!1;};return Ei(function(){K.isInvalidate()||ne(K,!1);},[w]),Ei(function(){var Re=lr(m);G(Re);var ge=lr(re(ce));(!Re.equals(ge)||!W.current||x)&&ne(Re,W.current);},[m]),Ei(function(){x&&ae();},[ce]),f__namespace.createElement("div",{className:F(o,E==null?void 0:E.input,i,(n={},Q(n,"".concat(o,"-focused"),z),Q(n,"".concat(o,"-disabled"),h),Q(n,"".concat(o,"-readonly"),g),Q(n,"".concat(o,"-not-a-number"),K.isNaN()),Q(n,"".concat(o,"-out-of-range"),!K.isInvalidate()&&!be(K)),n)),style:a,onFocus:function(){H(!0);},onBlur:dt,onKeyDown:ut,onKeyUp:qe,onCompositionStart:Oe,onCompositionEnd:Ie,onBeforeInput:tt},S&&f__namespace.createElement(uA,{prefixCls:o,upNode:v,downNode:p,upDisabled:me,downDisabled:pe,onStep:$e}),f__namespace.createElement("div",{className:"".concat(M,"-wrap")},f__namespace.createElement("input",Ee({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":K.isInvalidate()?null:K.toString(),step:u},P,{ref:xn(N,t),className:M,value:ce,onChange:We,disabled:h,readOnly:g}))))}),pC=f__namespace.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,m=e.classNames,h=et(e,mA),g=f__namespace.useRef(null),v=function(b){g.current&&vC(g.current,b);};return f__namespace.createElement(bh,{inputElement:f__namespace.createElement(hA,Ee({prefixCls:o,disabled:n,classNames:m,ref:xn(g,t)},h)),className:d,triggerFocus:v,prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});pC.displayName="InputNumber";function dr(e,t,n){return F({[`${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 hs=(e,t)=>t||e,nr=f__namespace.createContext({}),Xa=e=>{let{children:t,status:n,override:r}=e;const o=f.useContext(nr),i=f.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return f__namespace.createElement(nr.Provider,{value:i},t)},bC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),gs=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),zl=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),yh=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},gs(ct(e,{inputBorderHoverColor:e.colorBorder})))}),yC=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}},Ch=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Kc=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},zl(ct(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},zl(ct(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},vs=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}`},bC(e.colorTextPlaceholder)),{"&:hover":Object.assign({},gs(e)),"&:focus, &-focused":Object.assign({},zl(e)),"&-disabled, &[disabled]":Object.assign({},yh(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({},yC(e)),"&-sm":Object.assign({},Ch(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),CC=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({},yC(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Ch(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"},df()),{[`${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}}}})}},gA=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({},Rt(e)),vs(e)),Kc(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"}})}},vA=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`}}}},pA=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vs(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},gs(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}}}),vA(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),Kc(e,`${t}-affix-wrapper`))}},bA=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Rt(e)),CC(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-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({},yh(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}}}})}},yA=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 Sh(e){return ct(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 CA=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"}}}}}},wh=Bt("Input",e=>{const t=Sh(e);return [gA(t),CA(t),pA(t),bA(t),yA(t),Uc(t)]}),$p=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i=t==="lg"?o:r;return {[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},SA=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:m,colorPrimary:h,inputPaddingHorizontal:g,inputPaddingVertical:v,colorBgContainer:p,colorTextDisabled:b,borderRadiusSM:y,borderRadiusLG:S,controlWidth:E,handleVisible:C}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),vs(e)),Kc(e,t)),{display:"inline-block",width:E,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:S,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:y,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},gs(e)),"&-focused":Object.assign({},zl(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Rt(e)),CC(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:S,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},yh(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Rt(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"}),bC(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:p,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:C===!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:d,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({},Go()),{color:d,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i}},$p(e,"lg")),$p(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:b}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},wA=e=>{const{componentCls:t,inputPaddingVertical:n,inputPaddingHorizontal:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},vs(e)),Kc(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},gs(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}}})}},xA=Bt("InputNumber",e=>{const t=Sh(e);return [SA(t),wA(t),Uc(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var $A=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=f__namespace.useContext(Je),o=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:m,bordered:h=!0,readOnly:g,status:v,controls:p}=e,b=$A(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[S,E]=xA(y),{compactSize:C,compactItemClassnames:$}=Ji(y,r);let x=f__namespace.createElement(tA,{className:`${y}-handler-up-inner`}),w=f__namespace.createElement(gh,{className:`${y}-handler-down-inner`});const O=typeof p=="boolean"?p:void 0;typeof p=="object"&&(x=typeof p.upIcon>"u"?x:f__namespace.createElement("span",{className:`${y}-handler-up-inner`},p.upIcon),w=typeof p.downIcon>"u"?w:f__namespace.createElement("span",{className:`${y}-handler-down-inner`},p.downIcon));const{hasFeedback:_,status:A,isFormItemInput:R,feedbackIcon:I}=f__namespace.useContext(nr),P=hs(A,v),M=Wn(W=>{var B;return (B=s??C)!==null&&B!==void 0?B:W}),N=f__namespace.useContext(_r),T=l??N,L=F({[`${y}-lg`]:M==="large",[`${y}-sm`]:M==="small",[`${y}-rtl`]:r==="rtl",[`${y}-borderless`]:!h,[`${y}-in-form-item`]:R},dr(y,P),$,E),z=`${y}-group`,H=f__namespace.createElement(pC,Object.assign({ref:o,disabled:T,className:F(i,a),upHandler:x,downHandler:w,prefixCls:y,readOnly:g,controls:O,prefix:m,suffix:_&&I,addonAfter:d&&f__namespace.createElement(Mi,null,f__namespace.createElement(Xa,{override:!0,status:!0},d)),addonBefore:u&&f__namespace.createElement(Mi,null,f__namespace.createElement(Xa,{override:!0,status:!0},u)),classNames:{input:L},classes:{affixWrapper:F(dr(`${y}-affix-wrapper`,P,_),{[`${y}-affix-wrapper-sm`]:M==="small",[`${y}-affix-wrapper-lg`]:M==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl",[`${y}-affix-wrapper-borderless`]:!h},E),wrapper:F({[`${z}-rtl`]:r==="rtl",[`${y}-wrapper-disabled`]:T},E),group:F({[`${y}-group-wrapper-sm`]:M==="small",[`${y}-group-wrapper-lg`]:M==="large",[`${y}-group-wrapper-rtl`]:r==="rtl"},dr(`${y}-group-wrapper`,P,_),E)}},b));return S(H)}),wC=SC,EA=e=>f__namespace.createElement(Zm,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(SC,Object.assign({},e)));wC._InternalPanelDoNotUseOrYouWillBeFired=EA;const Mf=wC,OA=()=>er()&&window.document.documentElement;let Us;const IA=()=>{if(!OA())return !1;if(Us!==void 0)return Us;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),Us=e.scrollHeight===1,document.body.removeChild(t),Us},PA=()=>{const[e,t]=f__namespace.useState(!1);return f__namespace.useEffect(()=>{t(IA());},[]),e},xC=f.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),RA=xC.Provider,_A=e=>{let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:s,style:l}=e;const{horizontalSize:c,verticalSize:u,latestIndex:d,supportFlexGap:m}=f__namespace.useContext(xC);let h={};return m||(n==="vertical"?r{var n,r;const{getPrefixCls:o,space:i,direction:a}=f__namespace.useContext(Je),{size:s=(i==null?void 0:i.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:m="horizontal",prefixCls:h,split:g,style:v,wrap:p=!1,classNames:b,styles:y}=e,S=MA(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),E=PA(),[C,$]=f__namespace.useMemo(()=>(Array.isArray(s)?s:[s,s]).map(z=>kA(z)),[s]),x=tr(d,{keepEmpty:!0}),w=l===void 0&&m==="horizontal"?"center":l,O=o("space",h),[_,A]=_1(O),R=F(O,i==null?void 0:i.className,A,`${O}-${m}`,{[`${O}-rtl`]:a==="rtl",[`${O}-align-${w}`]:w},c,u),I=F(`${O}-item`,(n=b==null?void 0:b.item)!==null&&n!==void 0?n:(r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r.item),P=a==="rtl"?"marginLeft":"marginRight";let M=0;const N=x.map((z,H)=>{var W,B;z!=null&&(M=H);const V=z&&z.key||`${I}-${H}`;return f__namespace.createElement(TA,{className:I,key:V,direction:m,index:H,marginDirection:P,split:g,wrap:p,style:(W=y==null?void 0:y.item)!==null&&W!==void 0?W:(B=i==null?void 0:i.styles)===null||B===void 0?void 0:B.item},z)}),T=f__namespace.useMemo(()=>({horizontalSize:C,verticalSize:$,latestIndex:M,supportFlexGap:E}),[C,$,M,E]);if(x.length===0)return null;const L={};return p&&(L.flexWrap="wrap",E||(L.marginBottom=-$)),E&&(L.columnGap=C,L.rowGap=$),_(f__namespace.createElement("div",Object.assign({ref:t,className:R,style:Object.assign(Object.assign(Object.assign({},L),i==null?void 0:i.style),v)},S),f__namespace.createElement(RA,{value:T},N)))}),$C=AA;$C.Compact=SN;const Xc=$C;var LA={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const DA=LA;var zA=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:DA}))};const qc=f__namespace.forwardRef(zA);function jA(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function BA(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f.createElement(qc,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!jA(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 HA(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Gs=(e,t,n)=>{const r=HA(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},FA=e=>Il(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"}}}}),WA=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return {[o]:Object.assign(Object.assign({},Rt(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}}},EC=Bt("Tag",e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`,i=ct(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [WA(i),FA(i),Gs(i,"success","Success"),Gs(i,"processing","Info"),Gs(i,"error","Error"),Gs(i,"warning","Warning")]},e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}));var VA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=VA(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=f__namespace.useContext(Je),l=h=>{o==null||o(!r),i==null||i(h);},c=s("tag",t),[u,d]=EC(c),m=F(c,`${c}-checkable`,{[`${c}-checkable-checked`]:r},n,d);return u(f__namespace.createElement("span",Object.assign({},a,{className:m,onClick:l})))},GA=UA;var KA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:m=!0}=e,h=KA(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:g,direction:v,tag:p}=f__namespace.useContext(Je),[b,y]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in h&&y(h.visible);},[h.visible]);const S=Dc(l)||c3(l),E=Object.assign(Object.assign({backgroundColor:l&&!S?l:void 0},p==null?void 0:p.style),i),C=g("tag",n),[$,x]=EC(C),w=F(C,p==null?void 0:p.className,{[`${C}-${l}`]:S,[`${C}-has-color`]:l&&!S,[`${C}-hidden`]:!b,[`${C}-rtl`]:v==="rtl",[`${C}-borderless`]:!m},r,o,x),O=M=>{M.stopPropagation(),c==null||c(M),!M.defaultPrevented&&y(!1);},[,_]=BA(d,u,M=>M===null?f__namespace.createElement(qc,{className:`${C}-close-icon`,onClick:O}):f__namespace.createElement("span",{className:`${C}-close-icon`,onClick:O},M),null,!1),A=typeof h.onClick=="function"||a&&a.type==="a",R=s||null,I=R?f__namespace.createElement(f__namespace.Fragment,null,R,a&&f__namespace.createElement("span",null,a)):a,P=f__namespace.createElement("span",Object.assign({},h,{ref:t,className:w,style:E}),I,_);return $(A?f__namespace.createElement(ms,{component:"Tag"},P):P)},OC=f__namespace.forwardRef(XA);OC.CheckableTag=GA;const oo=OC;var qA={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 YA=qA;var ZA=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:YA}))};const xh=f__namespace.forwardRef(ZA);var QA={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 JA=QA;var eL=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:JA}))};const tL=f__namespace.forwardRef(eL),Yc=f.createContext(null);var IC=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return f__namespace.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:F(n,a&&"".concat(n,"-active"),r),ref:t},l)}),nL=["key","forceRender","style","className"];function rL(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=f__namespace.useContext(Yc),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return f__namespace.createElement("div",{className:F("".concat(s,"-content-holder"))},f__namespace.createElement("div",{className:F("".concat(s,"-content"),"".concat(s,"-content-").concat(o),Q({},"".concat(s,"-content-animated"),c))},l.map(function(d){var m=d.key,h=d.forceRender,g=d.style,v=d.className,p=et(d,nL),b=m===n;return f__namespace.createElement(qr,Ee({key:m,visible:b,forceRender:h,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(y,S){var E=y.style,C=y.className;return f__namespace.createElement(IC,Ee({},p,{prefixCls:u,id:t,tabKey:m,animated:c,active:b,style:ee(ee({},g),E),className:F(v,C),ref:S}))})})))}var Ep={width:0,height:0,left:0,top:0};function oL(e,t,n){return f.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Ep,a=i.left+i.width,s=0;sP?(R=_,$.current="x"):(R=A,$.current="y"),t(-R,-R)&&O.preventDefault();}var w=f.useRef(null);w.current={onTouchStart:S,onTouchMove:E,onTouchEnd:C,onWheel:x},f__namespace.useEffect(function(){function O(I){w.current.onTouchStart(I);}function _(I){w.current.onTouchMove(I);}function A(I){w.current.onTouchEnd(I);}function R(I){w.current.onWheel(I);}return document.addEventListener("touchmove",_,{passive:!1}),document.addEventListener("touchend",A,{passive:!1}),e.current.addEventListener("touchstart",O,{passive:!1}),e.current.addEventListener("wheel",R),function(){document.removeEventListener("touchmove",_),document.removeEventListener("touchend",A);}},[]);}function PC(e){var t=f.useState(0),n=Z(t,2),r=n[0],o=n[1],i=f.useRef(0),a=f.useRef();return a.current=e,Ei(function(){var s;(s=a.current)===null||s===void 0||s.call(a);},[r]),function(){i.current===r&&(i.current+=1,o(i.current));}}function sL(e){var t=f.useRef([]),n=f.useState({}),r=Z(n,2),o=r[1],i=f.useRef(typeof e=="function"?e():e),a=PC(function(){var l=i.current;t.current.forEach(function(c){l=c(l);}),t.current=[],i.current=l,o({});});function s(l){t.current.push(l),a();}return [i.current,s]}var Rp={width:0,height:0,left:0,top:0,right:0};function lL(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,m;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",m=Math.abs(n)):(u="height",d="top",m=-n),f.useMemo(function(){if(!s.length)return [0,0];for(var h=s.length,g=h,v=0;vm+t){g=v-1;break}}for(var b=0,y=h-1;y>=0;y-=1){var S=e.get(s[y].key)||Rp;if(S[d]=g?[0,0]:[b,g]},[e,t,r,o,i,m,l,s.map(function(h){return h.key}).join("_"),c])}function _p(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var cL="TABS_DQ";function RC(e){return String(e).replace(/"/g,cL)}function _C(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function uL(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return !r||r.showAdd===!1?null:f__namespace.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s});}},r.addIcon||"+")}const TC=f__namespace.forwardRef(uL);var Tp=f__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return at(o)==="object"&&!f__namespace.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?f__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),dL=le.ESC,fL=le.TAB;function mL(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=f__namespace.useRef(!1),s=function(){if(t){var d,m;(d=n.current)===null||d===void 0||(m=d.focus)===null||m===void 0||m.call(d),r==null||r(!1);}},l=function(){var d;return (d=i.current)!==null&&d!==void 0&&d.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(d){switch(d.keyCode){case dL:s();break;case fL:{var m=!1;a.current||(m=l()),m?d.preventDefault():s();break}}};f__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&pt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1;}):function(){a.current=!1;}},[t]);}var hL=f.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=f.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=xn(t,i==null?void 0:i.ref);return f.createElement(f.Fragment,null,r&&f.createElement("div",{className:"".concat(o,"-arrow")}),f.cloneElement(i,{ref:Ko(i)?a:void 0}))}),ii={adjustX:1,adjustY:1},ai=[0,0],gL={topLeft:{points:["bl","tl"],overflow:ii,offset:[0,-4],targetOffset:ai},top:{points:["bc","tc"],overflow:ii,offset:[0,-4],targetOffset:ai},topRight:{points:["br","tr"],overflow:ii,offset:[0,-4],targetOffset:ai},bottomLeft:{points:["tl","bl"],overflow:ii,offset:[0,4],targetOffset:ai},bottom:{points:["tc","bc"],overflow:ii,offset:[0,4],targetOffset:ai},bottomRight:{points:["tr","br"],overflow:ii,offset:[0,4],targetOffset:ai}},vL=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function pL(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,m=e.placements,h=m===void 0?gL:m,g=e.getPopupContainer,v=e.showAction,p=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,S=e.visible,E=e.trigger,C=E===void 0?["hover"]:E,$=e.autoFocus,x=e.overlay,w=e.children,O=e.onVisibleChange,_=et(e,vL),A=f.useState(),R=Z(A,2),I=R[0],P=R[1],M="visible"in e?S:I,N=f.useRef(null),T=f.useRef(null),L=f.useRef(null);f.useImperativeHandle(t,function(){return N.current});var z=function(U){P(U),O==null||O(U);};mL({visible:M,triggerRef:L,onVisibleChange:z,autoFocus:$,overlayRef:T});var H=function(U){var Y=e.onOverlayClick;P(!1),Y&&Y(U);},W=function(){return f.createElement(hL,{ref:T,overlay:x,prefixCls:a,arrow:o})},B=function(){return typeof x=="function"?W:W()},V=function(){var U=e.minOverlayWidthMatchTrigger,Y=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?U:!Y},j=function(){var U=e.openClassName;return U!==void 0?U:"".concat(a,"-open")},X=f.cloneElement(w,{className:F((n=w.props)===null||n===void 0?void 0:n.className,M&&j()),ref:Ko(w)?xn(L,w.ref):void 0}),K=p;return !K&&C.indexOf("contextMenu")!==-1&&(K=["click"]),f.createElement(Nc,Ee({builtinPlacements:h},_,{prefixCls:a,ref:N,popupClassName:F(b,Q({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:C,showAction:v,hideAction:K,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:M,stretch:V()?"minWidth":"",popup:B(),onPopupVisibleChange:z,onPopupClick:H,getPopupContainer:g}),X)}const MC=f.forwardRef(pL);var bL=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],si=void 0;function yL(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,m=e.children,h=e.display,g=e.order,v=e.component,p=v===void 0?"div":v,b=et(e,bL),y=a&&!h;function S(w){l(c,w);}f__namespace.useEffect(function(){return function(){S(null);}},[]);var E=i&&o!==si?i(o):m,C;r||(C={opacity:y?0:1,height:y?0:si,overflowY:y?"hidden":si,order:a?g:si,pointerEvents:y?"none":si,position:y?"absolute":si});var $={};y&&($["aria-hidden"]=!0);var x=f__namespace.createElement(p,Ee({className:F(!r&&n,u),style:ee(ee({},C),d)},$,b,{ref:t}),E);return a&&(x=f__namespace.createElement(Or,{onResize:function(O){var _=O.offsetWidth;S(_);},disabled:s},x)),x}var Ia=f__namespace.forwardRef(yL);Ia.displayName="Item";function CL(e){if(typeof MessageChannel>"u")pt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function SL(){var e=f__namespace.useRef(null),t=function(r){e.current||(e.current=[],CL(function(){p0.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function ua(e,t){var n=f__namespace.useState(t),r=Z(n,2),o=r[0],i=r[1],a=Nn(function(s){e(function(){i(s);});});return [o,a]}var jl=f.createContext(null),wL=["component"],xL=["className"],$L=["className"],EL=function(t,n){var r=f__namespace.useContext(jl);if(!r){var o=t.component,i=o===void 0?"div":o,a=et(t,wL);return f__namespace.createElement(i,Ee({},a,{ref:n}))}var s=r.className,l=et(r,xL),c=t.className,u=et(t,$L);return f__namespace.createElement(jl.Provider,{value:null},f__namespace.createElement(Ia,Ee({ref:n,className:F(s,c)},l,u)))},NC=f__namespace.forwardRef(EL);NC.displayName="RawItem";var OL=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],kC="responsive",AC="invalidate";function IL(e){return "+ ".concat(e.length," ...")}function PL(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,m=e.style,h=e.className,g=e.maxCount,v=e.renderRest,p=e.renderRawRest,b=e.suffix,y=e.component,S=y===void 0?"div":y,E=e.itemComponent,C=e.onVisibleChange,$=et(e,OL),x=d==="full",w=SL(),O=ua(w,null),_=Z(O,2),A=_[0],R=_[1],I=A||0,P=ua(w,new Map),M=Z(P,2),N=M[0],T=M[1],L=ua(w,0),z=Z(L,2),H=z[0],W=z[1],B=ua(w,0),V=Z(B,2),j=V[0],X=V[1],K=ua(w,0),G=Z(K,2),U=G[0],Y=G[1],re=f.useState(null),de=Z(re,2),ve=de[0],te=de[1],oe=f.useState(null),ce=Z(oe,2),q=ce[0],ne=ce[1],J=f__namespace.useMemo(function(){return q===null&&x?Number.MAX_SAFE_INTEGER:q||0},[q,A]),he=f.useState(!1),me=Z(he,2),pe=me[0],_e=me[1],Be="".concat(r,"-item"),Ne=Math.max(H,j),ae=g===kC,ue=i.length&&ae,be=g===AC,we=ue||typeof g=="number"&&i.length>g,ze=f.useMemo(function(){var xe=i;return ue?A===null&&x?xe=i:xe=i.slice(0,Math.min(i.length,I/u)):typeof g=="number"&&(xe=i.slice(0,g)),xe},[i,u,A,g,ue]),Le=f.useMemo(function(){return ue?i.slice(J+1):i.slice(ze.length)},[i,ze,ue,J]),Oe=f.useCallback(function(xe,se){var Se;return typeof l=="function"?l(xe):(Se=l&&(xe==null?void 0:xe[l]))!==null&&Se!==void 0?Se:se},[l]),Ie=f.useCallback(a||function(xe){return xe},[a]);function We(xe,se,Se){q===xe&&(se===void 0||se===ve)||(ne(xe),Se||(_e(xeI){We(Me-1,xe-Ae-U+j);break}}b&&qe(0)+U>I&&te(null);}},[I,N,j,U,Oe,ze]);var dt=pe&&!!Le.length,Re={};ve!==null&&ue&&(Re={position:"absolute",left:ve,top:0});var ge={prefixCls:Be,responsive:ue,component:E,invalidate:be},Ce=s?function(xe,se){var Se=Oe(xe,se);return f__namespace.createElement(jl.Provider,{key:Se,value:ee(ee({},ge),{},{order:se,item:xe,itemKey:Se,registerSize:ke,display:se<=J})},s(xe,se))}:function(xe,se){var Se=Oe(xe,se);return f__namespace.createElement(Ia,Ee({},ge,{order:se,key:Se,item:xe,renderItem:Ie,itemKey:Se,registerSize:ke,display:se<=J}))},fe,Pe={order:dt?J:Number.MAX_SAFE_INTEGER,className:"".concat(Be,"-rest"),registerSize:tt,display:dt};if(p)p&&(fe=f__namespace.createElement(jl.Provider,{value:ee(ee({},ge),Pe)},p(Le)));else {var Fe=v||IL;fe=f__namespace.createElement(Ia,Ee({},ge,Pe),typeof Fe=="function"?Fe(Le):Fe);}var Te=f__namespace.createElement(S,Ee({className:F(!be&&r,h),style:m,ref:t},$),ze.map(Ce),we?fe:null,b&&f__namespace.createElement(Ia,Ee({},ge,{responsive:ae,responsiveDisabled:!ue,order:J,className:"".concat(Be,"-suffix"),registerSize:ut,display:!0,style:Re}),b));return ae&&(Te=f__namespace.createElement(Or,{onResize:$e,disabled:!ue},Te)),Te}var xr=f__namespace.forwardRef(PL);xr.displayName="Overflow";xr.Item=NC;xr.RESPONSIVE=kC;xr.INVALIDATE=AC;var LC=f__namespace.createContext(null);function $h(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function DC(e){var t=f__namespace.useContext(LC);return $h(t,e)}var RL=["children","locked"],fr=f__namespace.createContext(null);function _L(e,t){var n=ee({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function qa(e){var t=e.children,n=e.locked,r=et(e,RL),o=f__namespace.useContext(fr),i=as(function(){return _L(o,r)},[o,r],function(a,s){return !n&&(a[0]!==s[0]||!Ic(a[1],s[1],!0))});return f__namespace.createElement(fr.Provider,{value:i},t)}var TL=[],zC=f__namespace.createContext(null);function Zc(){return f__namespace.useContext(zC)}var jC=f__namespace.createContext(TL);function ea(e){var t=f__namespace.useContext(jC);return f__namespace.useMemo(function(){return e!==void 0?[].concat(Qe(t),[e]):t},[t,e])}var BC=f__namespace.createContext(null),Eh=f__namespace.createContext({});function Mp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Qm(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 ML(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Qe(e.querySelectorAll("*")).filter(function(r){return Mp(r,t)});return Mp(e,t)&&n.unshift(e),n}var Nf=le.LEFT,kf=le.RIGHT,Af=le.UP,cl=le.DOWN,ul=le.ENTER,HC=le.ESC,da=le.HOME,fa=le.END,Np=[Af,cl,Nf,kf];function NL(e,t,n,r){var o,i,a,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===ul)return {inlineTrigger:!0};var m=(o={},Q(o,Af,l),Q(o,cl,c),o),h=(i={},Q(i,Nf,n?c:l),Q(i,kf,n?l:c),Q(i,cl,u),Q(i,ul,u),i),g=(a={},Q(a,Af,l),Q(a,cl,c),Q(a,ul,u),Q(a,HC,d),Q(a,Nf,n?u:d),Q(a,kf,n?d:u),a),v={inline:m,horizontal:h,vertical:g,inlineSub:m,horizontalSub:g,verticalSub:g},p=(s=v["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(p){case l:return {offset:-1,sibling:!0};case c:return {offset:1,sibling:!0};case d:return {offset:-1,sibling:!1};case u:return {offset:1,sibling:!1};default:return null}}function kL(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function AL(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function FC(e,t){var n=ML(e,!0);return n.filter(function(r){return t.has(r)})}function kp(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=FC(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}function LL(e,t,n,r,o,i,a,s,l,c){var u=f__namespace.useRef(),d=f__namespace.useRef();d.current=t;var m=function(){pt.cancel(u.current);};return f__namespace.useEffect(function(){return function(){m();}},[]),function(h){var g=h.which;if([].concat(Np,[ul,HC,da,fa]).includes(g)){var v,p,b,y=function(){v=new Set,p=new Map,b=new Map;var M=i();return M.forEach(function(N){var T=document.querySelector("[data-menu-id='".concat($h(r,N),"']"));T&&(v.add(T),b.set(T,N),p.set(N,T));}),v};y();var S=p.get(t),E=AL(S,v),C=b.get(E),$=NL(e,a(C,!0).length===1,n,g);if(!$&&g!==da&&g!==fa)return;(Np.includes(g)||[da,fa].includes(g))&&h.preventDefault();var x=function(M){if(M){var N=M,T=M.querySelector("a");T!=null&&T.getAttribute("href")&&(N=T);var L=b.get(M);s(L),m(),u.current=pt(function(){d.current===L&&N.focus();});}};if([da,fa].includes(g)||$.sibling||!E){var w;!E||e==="inline"?w=o.current:w=kL(E);var O,_=FC(w,v);g===da?O=_[0]:g===fa?O=_[_.length-1]:O=kp(w,v,E,$.offset),x(O);}else if($.inlineTrigger)l(C);else if($.offset>0)l(C,!0),m(),u.current=pt(function(){y();var P=E.getAttribute("aria-controls"),M=document.getElementById(P),N=kp(M,v);x(N);},5);else if($.offset<0){var A=a(C,!0),R=A[A.length-2],I=p.get(R);l(R,!1),x(I);}}c==null||c(h);}}function DL(e){Promise.resolve().then(e);}var Oh="__RC_UTIL_PATH_SPLIT__",Ap=function(t){return t.join(Oh)},zL=function(t){return t.split(Oh)},Lf="rc-menu-more";function jL(){var e=f__namespace.useState({}),t=Z(e,2),n=t[1],r=f.useRef(new Map),o=f.useRef(new Map),i=f__namespace.useState([]),a=Z(i,2),s=a[0],l=a[1],c=f.useRef(0),u=f.useRef(!1),d=function(){u.current||n({});},m=f.useCallback(function(S,E){var C=Ap(E);o.current.set(C,S),r.current.set(S,C),c.current+=1;var $=c.current;DL(function(){$===c.current&&d();});},[]),h=f.useCallback(function(S,E){var C=Ap(E);o.current.delete(C),r.current.delete(S);},[]),g=f.useCallback(function(S){l(S);},[]),v=f.useCallback(function(S,E){var C=r.current.get(S)||"",$=zL(C);return E&&s.includes($[0])&&$.unshift(Lf),$},[s]),p=f.useCallback(function(S,E){return S.some(function(C){var $=v(C,!0);return $.includes(E)})},[v]),b=function(){var E=Qe(r.current.keys());return s.length&&E.push(Lf),E},y=f.useCallback(function(S){var E="".concat(r.current.get(S)).concat(Oh),C=new Set;return Qe(o.current.keys()).forEach(function($){$.startsWith(E)&&C.add(o.current.get($));}),C},[]);return f__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:g,isSubPathKey:p,getKeyPath:v,getKeys:b,getSubPathKeys:y}}function ya(e){var t=f__namespace.useRef(e);t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1&&(y.motionAppear=!1);var S=y.onVisibleChanged;return y.onVisibleChanged=function(E){return !m.current&&!E&&p(!0),S==null?void 0:S(E)},v?null:f__namespace.createElement(qa,{mode:i,locked:!m.current},f__namespace.createElement(qr,Ee({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(E){var C=E.className,$=E.style;return f__namespace.createElement(Ih,{id:t,className:C,style:$},o)}))}var n5=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],r5=["active"],o5=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var s=t.disabled,l=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,m=t.popupClassName,h=t.popupOffset,g=t.onClick,v=t.onMouseEnter,p=t.onMouseLeave,b=t.onTitleClick,y=t.onTitleMouseEnter,S=t.onTitleMouseLeave,E=et(t,n5),C=DC(a),$=f__namespace.useContext(fr),x=$.prefixCls,w=$.mode,O=$.openKeys,_=$.disabled,A=$.overflowDisabled,R=$.activeKey,I=$.selectedKeys,P=$.itemIcon,M=$.expandIcon,N=$.onItemClick,T=$.onOpenChange,L=$.onActive,z=f__namespace.useContext(Eh),H=z._internalRenderSubMenuItem,W=f__namespace.useContext(BC),B=W.isSubPathKey,V=ea(),j="".concat(x,"-submenu"),X=_||s,K=f__namespace.useRef(),G=f__namespace.useRef(),U=u||P,Y=d||M,re=O.includes(a),de=!A&&re,ve=B(I,a),te=WC(a,X,y,S),oe=te.active,ce=et(te,r5),q=f__namespace.useState(!1),ne=Z(q,2),J=ne[0],he=ne[1],me=function(ke){X||he(ke);},pe=function(ke){me(!0),v==null||v({key:a,domEvent:ke});},_e=function(ke){me(!1),p==null||p({key:a,domEvent:ke});},Be=f__namespace.useMemo(function(){return oe||(w!=="inline"?J||B([R],a):!1)},[w,oe,R,J,a,B]),Ne=VC(V.length),ae=function(ke){X||(b==null||b({key:a,domEvent:ke}),w==="inline"&&T(a,!re));},ue=ya(function($e){g==null||g(Bl($e)),N($e);}),be=function(ke){w!=="inline"&&T(a,ke);},we=function(){L(a);},ze=C&&"".concat(C,"-popup"),Le=f__namespace.createElement("div",Ee({role:"menuitem",style:Ne,className:"".concat(j,"-title"),tabIndex:X?null:-1,ref:K,title:typeof i=="string"?i:null,"data-menu-id":A&&C?null:C,"aria-expanded":de,"aria-haspopup":!0,"aria-controls":ze,"aria-disabled":X,onClick:ae,onFocus:we},ce),i,f__namespace.createElement(UC,{icon:w!=="horizontal"?Y:null,props:ee(ee({},t),{},{isOpen:de,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(j,"-arrow")}))),Oe=f__namespace.useRef(w);if(w!=="inline"&&V.length>1?Oe.current="vertical":Oe.current=w,!A){var Ie=Oe.current;Le=f__namespace.createElement(e5,{mode:Ie,prefixCls:j,visible:!l&&de&&w!=="inline",popupClassName:m,popupOffset:h,popup:f__namespace.createElement(qa,{mode:Ie==="horizontal"?"vertical":Ie},f__namespace.createElement(Ih,{id:ze,ref:G},c)),disabled:X,onVisibleChange:be},Le);}var We=f__namespace.createElement(xr.Item,Ee({role:"none"},E,{component:"li",style:r,className:F(j,"".concat(j,"-").concat(w),o,(n={},Q(n,"".concat(j,"-open"),de),Q(n,"".concat(j,"-active"),Be),Q(n,"".concat(j,"-selected"),ve),Q(n,"".concat(j,"-disabled"),X),n)),onMouseEnter:pe,onMouseLeave:_e}),Le,!A&&f__namespace.createElement(t5,{id:ze,open:de,keyPath:V},c));return H&&(We=H(We,t,{selected:ve,active:Be,open:de,disabled:X})),f__namespace.createElement(qa,{onItemClick:ue,mode:w==="horizontal"?"vertical":w,itemIcon:U,expandIcon:Y},We)};function Qc(e){var t=e.eventKey,n=e.children,r=ea(t),o=Ph(n,r),i=Zc();f__namespace.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r);}},[r]);var a;return i?a=o:a=f__namespace.createElement(o5,e,o),f__namespace.createElement(jC.Provider,{value:r},a)}var i5=["className","title","eventKey","children"],a5=["children"],s5=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=et(t,i5),a=f__namespace.useContext(fr),s=a.prefixCls,l="".concat(s,"-item-group");return f__namespace.createElement("li",Ee({role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:F(l,n)}),f__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),f__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function Jc(e){var t=e.children,n=et(e,a5),r=ea(n.eventKey),o=Ph(t,r),i=Zc();return i?o:f__namespace.createElement(s5,Cn(n,["warnKey"]),o)}function Rh(e){var t=e.className,n=e.style,r=f__namespace.useContext(fr),o=r.prefixCls,i=Zc();return i?null:f__namespace.createElement("li",{className:F("".concat(o,"-item-divider"),t),style:n})}var l5=["label","children","key","type"];function Df(e){return (e||[]).map(function(t,n){if(t&&at(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,s=r.type,l=et(r,l5),c=a??"tmp-".concat(n);return i||s==="group"?s==="group"?f__namespace.createElement(Jc,Ee({key:c},l,{title:o}),Df(i)):f__namespace.createElement(Qc,Ee({key:c},l,{title:o}),Df(i)):s==="divider"?f__namespace.createElement(Rh,Ee({key:c},l)):f__namespace.createElement(ps,Ee({key:c},l),o)}return null}).filter(function(t){return t})}function c5(e,t,n){var r=e;return t&&(r=Df(t)),Ph(r,n)}var u5=["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"],li=[],d5=f__namespace.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,d=u===void 0?0:u,m=o.items,h=o.children,g=o.direction,v=o.id,p=o.mode,b=p===void 0?"vertical":p,y=o.inlineCollapsed,S=o.disabled,E=o.disabledOverflow,C=o.subMenuOpenDelay,$=C===void 0?.1:C,x=o.subMenuCloseDelay,w=x===void 0?.1:x,O=o.forceSubMenuRender,_=o.defaultOpenKeys,A=o.openKeys,R=o.activeKey,I=o.defaultActiveFirst,P=o.selectable,M=P===void 0?!0:P,N=o.multiple,T=N===void 0?!1:N,L=o.defaultSelectedKeys,z=o.selectedKeys,H=o.onSelect,W=o.onDeselect,B=o.inlineIndent,V=B===void 0?24:B,j=o.motion,X=o.defaultMotions,K=o.triggerSubMenuAction,G=K===void 0?"hover":K,U=o.builtinPlacements,Y=o.itemIcon,re=o.expandIcon,de=o.overflowedIndicator,ve=de===void 0?"...":de,te=o.overflowedIndicatorPopupClassName,oe=o.getPopupContainer,ce=o.onClick,q=o.onOpenChange,ne=o.onKeyDown;o.openAnimation,o.openTransitionName;var J=o._internalRenderMenuItem,he=o._internalRenderSubMenuItem,me=et(o,u5),pe=f__namespace.useMemo(function(){return c5(h,m,li)},[h,m]),_e=f__namespace.useState(!1),Be=Z(_e,2),Ne=Be[0],ae=Be[1],ue=f__namespace.useRef(),be=HL(v),we=g==="rtl",ze=Dt(_,{value:A,postState:function(gt){return gt||li}}),Le=Z(ze,2),Oe=Le[0],Ie=Le[1],We=function(gt){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function He(){Ie(gt),q==null||q(gt);}je?p0.flushSync(He):He();},$e=f__namespace.useState(Oe),ke=Z($e,2),tt=ke[0],ut=ke[1],qe=f__namespace.useRef(!1),dt=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),Re=Z(dt,2),ge=Re[0],Ce=Re[1],fe=ge==="inline",Pe=f__namespace.useState(ge),Fe=Z(Pe,2),Te=Fe[0],xe=Fe[1],se=f__namespace.useState(Ce),Se=Z(se,2),Me=Se[0],Ae=Se[1];f__namespace.useEffect(function(){xe(ge),Ae(Ce),qe.current&&(fe?Ie(tt):We(li));},[ge,Ce]);var st=f__namespace.useState(0),nt=Z(st,2),xt=nt[0],Ft=nt[1],Wt=xt>=pe.length-1||Te!=="horizontal"||E;f__namespace.useEffect(function(){fe&&ut(Oe);},[Oe]),f__namespace.useEffect(function(){return qe.current=!0,function(){qe.current=!1;}},[]);var Xe=jL(),Ze=Xe.registerPath,Ge=Xe.unregisterPath,mt=Xe.refreshOverflowKeys,ht=Xe.isSubPathKey,Mt=Xe.getKeyPath,Ye=Xe.getKeys,Ve=Xe.getSubPathKeys,ft=f__namespace.useMemo(function(){return {registerPath:Ze,unregisterPath:Ge}},[Ze,Ge]),Ot=f__namespace.useMemo(function(){return {isSubPathKey:ht}},[ht]);f__namespace.useEffect(function(){mt(Wt?li:pe.slice(xt+1).map(function(It){return It.key}));},[xt,Wt]);var en=Dt(R||I&&((n=pe[0])===null||n===void 0?void 0:n.key),{value:R}),Nt=Z(en,2),cn=Nt[0],hr=Nt[1],ir=ya(function(It){hr(It);}),Zr=ya(function(){hr(void 0);});f.useImperativeHandle(t,function(){return {list:ue.current,focus:function(gt){var je,He=cn??((je=pe.find(function(tn){return !tn.props.disabled}))===null||je===void 0?void 0:je.key);if(He){var bt,kt,Pt;(bt=ue.current)===null||bt===void 0||(kt=bt.querySelector("li[data-menu-id='".concat($h(be,He),"']")))===null||kt===void 0||(Pt=kt.focus)===null||Pt===void 0||Pt.call(kt,gt);}}}});var po=Dt(L||[],{value:z,postState:function(gt){return Array.isArray(gt)?gt:gt==null?li:[gt]}}),En=Z(po,2),Tn=En[0],bo=En[1],Ln=function(gt){if(M){var je=gt.key,He=Tn.includes(je),bt;T?He?bt=Tn.filter(function(Pt){return Pt!==je}):bt=[].concat(Qe(Tn),[je]):bt=[je],bo(bt);var kt=ee(ee({},gt),{},{selectedKeys:bt});He?W==null||W(kt):H==null||H(kt);}!T&&Oe.length&&Te!=="inline"&&We(li);},On=ya(function(It){ce==null||ce(Bl(It)),Ln(It);}),Mn=ya(function(It,gt){var je=Oe.filter(function(bt){return bt!==It});if(gt)je.push(It);else if(Te!=="inline"){var He=Ve(It);je=je.filter(function(bt){return !He.has(bt)});}Ic(Oe,je,!0)||We(je,!0);}),Tr=function(gt,je){var He=je??!Oe.includes(gt);Mn(gt,He);},Vn=LL(Te,cn,we,be,ue,Ye,Mt,hr,Tr,ne);f__namespace.useEffect(function(){ae(!0);},[]);var Un=f__namespace.useMemo(function(){return {_internalRenderMenuItem:J,_internalRenderSubMenuItem:he}},[J,he]),Qr=Te!=="horizontal"||E?pe:pe.map(function(It,gt){return f__namespace.createElement(qa,{key:It.key,overflowDisabled:gt>xt},It)}),yo=f__namespace.createElement(xr,Ee({id:v,ref:ue,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:ps,className:F(a,"".concat(a,"-root"),"".concat(a,"-").concat(Te),c,(r={},Q(r,"".concat(a,"-inline-collapsed"),Me),Q(r,"".concat(a,"-rtl"),we),r),s),dir:g,style:l,role:"menu",tabIndex:d,data:Qr,renderRawItem:function(gt){return gt},renderRawRest:function(gt){var je=gt.length,He=je?pe.slice(-je):null;return f__namespace.createElement(Qc,{eventKey:Lf,title:ve,disabled:Wt,internalPopupClose:je===0,popupClassName:te},He)},maxCount:Te!=="horizontal"||E?xr.INVALIDATE:xr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(gt){Ft(gt);},onKeyDown:Vn},me));return f__namespace.createElement(Eh.Provider,{value:Un},f__namespace.createElement(LC.Provider,{value:be},f__namespace.createElement(qa,{prefixCls:a,rootClassName:s,mode:Te,openKeys:Oe,rtl:we,disabled:S,motion:Ne?j:null,defaultMotions:Ne?X:null,activeKey:cn,onActive:ir,onInactive:Zr,selectedKeys:Tn,inlineIndent:V,subMenuOpenDelay:$,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:U,triggerSubMenuAction:G,getPopupContainer:oe,itemIcon:Y,expandIcon:re,onItemClick:On,onOpenChange:Mn},f__namespace.createElement(BC.Provider,{value:Ot},yo),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement(zC.Provider,{value:ft},pe)))))}),ta=d5;ta.Item=ps;ta.SubMenu=Qc;ta.ItemGroup=Jc;ta.Divider=Rh;function f5(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.moreIcon,l=s===void 0?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,m=e.editable,h=e.tabBarGutter,g=e.rtl,v=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,S=f.useState(!1),E=Z(S,2),C=E[0],$=E[1],x=f.useState(null),w=Z(x,2),O=w[0],_=w[1],A="".concat(r,"-more-popup"),R="".concat(n,"-dropdown"),I=O!==null?"".concat(A,"-").concat(O):null,P=i==null?void 0:i.dropdownAriaLabel;function M(B,V){B.preventDefault(),B.stopPropagation(),m.onEdit("remove",{key:V,event:B});}var N=f__namespace.createElement(ta,{onClick:function(V){var j=V.key,X=V.domEvent;p(j,X),$(!1);},prefixCls:"".concat(R,"-menu"),id:A,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[O],"aria-label":P!==void 0?P:"expanded dropdown"},o.map(function(B){var V=B.closable,j=B.disabled,X=B.closeIcon,K=B.key,G=B.label,U=_C(V,X,m,j);return f__namespace.createElement(ps,{key:K,id:"".concat(A,"-").concat(K),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(K),disabled:j},f__namespace.createElement("span",null,G),U&&f__namespace.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(R,"-menu-item-remove"),onClick:function(re){re.stopPropagation(),M(re,K);}},X||m.removeIcon||"×"))}));function T(B){for(var V=o.filter(function(U){return !U.disabled}),j=V.findIndex(function(U){return U.key===O})||0,X=V.length,K=0;KVe?"left":"right"});}),I=Z(R,2),P=I[0],M=I[1],N=Op(0,function(Ye,Ve){!A&&S&&S({direction:Ye>Ve?"top":"bottom"});}),T=Z(N,2),L=T[0],z=T[1],H=f.useState([0,0]),W=Z(H,2),B=W[0],V=W[1],j=f.useState([0,0]),X=Z(j,2),K=X[0],G=X[1],U=f.useState([0,0]),Y=Z(U,2),re=Y[0],de=Y[1],ve=f.useState([0,0]),te=Z(ve,2),oe=te[0],ce=te[1],q=sL(new Map),ne=Z(q,2),J=ne[0],he=ne[1],me=oL(i,J,K[0]),pe=Ks(B,A),_e=Ks(K,A),Be=Ks(re,A),Ne=Ks(oe,A),ae=pe<_e+Be,ue=ae?pe-Ne:pe-Be,be="".concat(o,"-nav-operations-hidden"),we=0,ze=0;A&&d?(we=0,ze=Math.max(0,_e-ue)):(we=Math.min(0,ue-_e),ze=0);function Le(Ye){return Yeze?ze:Ye}var Oe=f.useRef(),Ie=f.useState(),We=Z(Ie,2),$e=We[0],ke=We[1];function tt(){ke(Date.now());}function ut(){window.clearTimeout(Oe.current);}aL(x,function(Ye,Ve){function ft(Ot,en){Ot(function(Nt){var cn=Le(Nt+en);return cn});}return ae?(A?ft(M,Ye):ft(z,Ve),ut(),tt(),!0):!1}),f.useEffect(function(){return ut(),$e&&(Oe.current=window.setTimeout(function(){ke(0);},100)),ut},[$e]);var qe=lL(me,ue,A?P:L,_e,Be,Ne,ee(ee({},e),{},{tabs:i})),dt=Z(qe,2),Re=dt[0],ge=dt[1],Ce=Nn(function(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,Ve=me.get(Ye)||{width:0,height:0,left:0,right:0,top:0};if(A){var ft=P;d?Ve.rightP+ue&&(ft=Ve.right+Ve.width-ue):Ve.left<-P?ft=-Ve.left:Ve.left+Ve.width>-P+ue&&(ft=-(Ve.left+Ve.width-ue)),z(0),M(Le(ft));}else {var Ot=L;Ve.top<-L?Ot=-Ve.top:Ve.top+Ve.height>-L+ue&&(Ot=-(Ve.top+Ve.height-ue)),M(0),z(Le(Ot));}}),fe={};v==="top"||v==="bottom"?fe[d?"marginRight":"marginLeft"]=p:fe.marginTop=p;var Pe=i.map(function(Ye,Ve){var ft=Ye.key;return f__namespace.createElement(h5,{id:l,prefixCls:o,key:ft,tab:Ye,style:Ve===0?void 0:fe,closable:Ye.closable,editable:h,active:ft===u,renderWrapper:b,removeAriaLabel:g==null?void 0:g.removeAriaLabel,onClick:function(en){y(ft,en);},onFocus:function(){Ce(ft),tt(),x.current&&(d||(x.current.scrollLeft=0),x.current.scrollTop=0);}})}),Fe=function(){return he(function(){var Ve=new Map;return i.forEach(function(ft){var Ot,en=ft.key,Nt=(Ot=w.current)===null||Ot===void 0?void 0:Ot.querySelector('[data-node-key="'.concat(RC(en),'"]'));Nt&&Ve.set(en,{width:Nt.offsetWidth,height:Nt.offsetHeight,left:Nt.offsetLeft,top:Nt.offsetTop});}),Ve})};f.useEffect(function(){Fe();},[i.map(function(Ye){return Ye.key}).join("_")]);var Te=PC(function(){var Ye=ci(E),Ve=ci(C),ft=ci($);V([Ye[0]-Ve[0]-ft[0],Ye[1]-Ve[1]-ft[1]]);var Ot=ci(_);de(Ot);var en=ci(O);ce(en);var Nt=ci(w);G([Nt[0]-Ot[0],Nt[1]-Ot[1]]),Fe();}),xe=i.slice(0,Re),se=i.slice(ge+1),Se=[].concat(Qe(xe),Qe(se)),Me=f.useState(),Ae=Z(Me,2),st=Ae[0],nt=Ae[1],xt=me.get(u),Ft=f.useRef();function Wt(){pt.cancel(Ft.current);}f.useEffect(function(){var Ye={};return xt&&(A?(d?Ye.right=xt.right:Ye.left=xt.left,Ye.width=xt.width):(Ye.top=xt.top,Ye.height=xt.height)),Wt(),Ft.current=pt(function(){nt(Ye);}),Wt},[xt,A,d]),f.useEffect(function(){Ce();},[u,we,ze,_p(xt),_p(me),A]),f.useEffect(function(){Te();},[d]);var Xe=!!Se.length,Ze="".concat(o,"-nav-wrap"),Ge,mt,ht,Mt;return A?d?(mt=P>0,Ge=P!==ze):(Ge=P<0,mt=P!==we):(ht=L<0,Mt=L!==we),f__namespace.createElement(Or,{onResize:Te},f__namespace.createElement("div",{ref:cs(t,E),role:"tablist",className:F("".concat(o,"-nav"),a),style:s,onKeyDown:function(){tt();}},f__namespace.createElement(Tp,{ref:C,position:"left",extra:m,prefixCls:o}),f__namespace.createElement("div",{className:F(Ze,(n={},Q(n,"".concat(Ze,"-ping-left"),Ge),Q(n,"".concat(Ze,"-ping-right"),mt),Q(n,"".concat(Ze,"-ping-top"),ht),Q(n,"".concat(Ze,"-ping-bottom"),Mt),n)),ref:x},f__namespace.createElement(Or,{onResize:Te},f__namespace.createElement("div",{ref:w,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(P,"px, ").concat(L,"px)"),transition:$e?"none":void 0}},Pe,f__namespace.createElement(TC,{ref:_,prefixCls:o,locale:g,editable:h,style:ee(ee({},Pe.length===0?void 0:fe),{},{visibility:Xe?"hidden":null})}),f__namespace.createElement("div",{className:F("".concat(o,"-ink-bar"),Q({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:st})))),f__namespace.createElement(m5,Ee({},e,{removeAriaLabel:g==null?void 0:g.removeAriaLabel,ref:O,prefixCls:o,tabs:Se,className:!Xe&&be,tabMoving:!!$e})),f__namespace.createElement(Tp,{ref:$,position:"right",extra:m,prefixCls:o})))}const Dp=f__namespace.forwardRef(g5);var v5=["renderTabBar"],p5=["label","key"];function b5(e){var t=e.renderTabBar,n=et(e,v5),r=f__namespace.useContext(Yc),o=r.tabs;if(t){var i=ee(ee({},n),{},{panes:o.map(function(a){var s=a.label,l=a.key,c=et(a,p5);return f__namespace.createElement(IC,Ee({tab:s,key:l,tabKey:l},c))})});return t(i,Dp)}return f__namespace.createElement(Dp,n)}function y5(){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=ee({inkBar:!0},at(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var C5=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],zp=0;function S5(e,t){var n,r=e.id,o=e.prefixCls,i=o===void 0?"rc-tabs":o,a=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,m=e.animated,h=e.tabPosition,g=h===void 0?"top":h,v=e.tabBarGutter,p=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,S=e.moreIcon,E=e.moreTransitionName,C=e.destroyInactiveTabPane,$=e.renderTabBar,x=e.onChange,w=e.onTabClick,O=e.onTabScroll,_=e.getPopupContainer,A=e.popupClassName,R=et(e,C5),I=f__namespace.useMemo(function(){return (s||[]).filter(function(q){return q&&at(q)==="object"&&"key"in q})},[s]),P=l==="rtl",M=y5(m),N=f.useState(!1),T=Z(N,2),L=T[0],z=T[1];f.useEffect(function(){z(Mc());},[]);var H=Dt(function(){var q;return (q=I[0])===null||q===void 0?void 0:q.key},{value:c,defaultValue:u}),W=Z(H,2),B=W[0],V=W[1],j=f.useState(function(){return I.findIndex(function(q){return q.key===B})}),X=Z(j,2),K=X[0],G=X[1];f.useEffect(function(){var q=I.findIndex(function(J){return J.key===B});if(q===-1){var ne;q=Math.max(0,Math.min(K,I.length-1)),V((ne=I[q])===null||ne===void 0?void 0:ne.key);}G(q);},[I.map(function(q){return q.key}).join("_"),B,K]);var U=Dt(null,{value:r}),Y=Z(U,2),re=Y[0],de=Y[1];f.useEffect(function(){r||(de("rc-tabs-".concat(zp)),zp+=1);},[]);function ve(q,ne){w==null||w(q,ne);var J=q!==B;V(q),J&&(x==null||x(q));}var te={id:re,activeKey:B,animated:M,tabPosition:g,rtl:P,mobile:L},oe,ce=ee(ee({},te),{},{editable:d,locale:y,moreIcon:S,moreTransitionName:E,tabBarGutter:v,onTabClick:ve,onTabScroll:O,extra:b,style:p,panes:null,getPopupContainer:_,popupClassName:A});return f__namespace.createElement(Yc.Provider,{value:{tabs:I,prefixCls:i}},f__namespace.createElement("div",Ee({ref:t,id:r,className:F(i,"".concat(i,"-").concat(g),(n={},Q(n,"".concat(i,"-mobile"),L),Q(n,"".concat(i,"-editable"),d),Q(n,"".concat(i,"-rtl"),P),n),a)},R),oe,f__namespace.createElement(b5,Ee({},ce,{renderTabBar:$})),f__namespace.createElement(rL,Ee({destroyInactiveTabPane:C},te,{animated:M}))))}var w5=f__namespace.forwardRef(S5);const x5=()=>null,$5=x5,E5={motionAppear:!1,motionEnter:!0,motionLeave:!0};function O5(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({},E5),{motionName:kc(e,"switch")})),n}var I5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot)}function R5(e,t){if(e)return e;const n=tr(t).map(r=>{if(f__namespace.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=I5(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return P5(n)}const _5=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}`}}}}},[ho(e,"slide-up"),ho(e,"slide-down")]]},T5=_5,M5=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}}}}}}},N5=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},Rt(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({},Do),{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"}}})}})}},k5=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}}}}}},A5=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}}}}}},L5=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s}=e,l=`${t}-tab`;return {[l]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",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}},jo(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},[`&${l}-active ${l}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:i}}}},D5=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"}}}}},z5=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rt(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} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},jo(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),L5(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"}}}}}},j5=Bt("Tabs",e=>{const t=ct(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 [A5(t),D5(t),k5(t),N5(t),M5(t),z5(t),T5(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 B5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:m,style:h}=e,g=B5(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:v,moreIcon:p=f__namespace.createElement(xh,null)}=g,{direction:b,tabs:y,getPrefixCls:S,getPopupContainer:E}=f__namespace.useContext(Je),C=S("tabs",v),[$,x]=j5(C);let w;t==="editable-card"&&(w={onEdit:(P,M)=>{let{key:N,event:T}=M;i==null||i(P==="add"?T:N,P);},removeIcon:f__namespace.createElement(qc,null),addIcon:l||f__namespace.createElement(tL,null),showAdd:a!==!0});const O=S(),_=R5(d,u),A=O5(C,m),R=Wn(o),I=Object.assign(Object.assign({},y==null?void 0:y.style),h);return $(f__namespace.createElement(w5,Object.assign({direction:b,getPopupContainer:E,moreTransitionName:`${O}-slide-up`},g,{items:_,className:F({[`${C}-${R}`]:R,[`${C}-card`]:["card","editable-card"].includes(t),[`${C}-editable-card`]:t==="editable-card",[`${C}-centered`]:s},y==null?void 0:y.className,n,r,x),popupClassName:F(c,x),style:I,editable:w,moreIcon:p,prefixCls:C,animated:A})))};KC.TabPane=$5;const H5=KC;var _h={exports:{}},XC=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i"u"}function W5(e){return e!==null&&!Hl(e)&&e.constructor!==null&&!Hl(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var qC=Xo("ArrayBuffer");function V5(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qC(e.buffer),t}function U5(e){return typeof e=="string"}function G5(e){return typeof e=="number"}function YC(e){return e!==null&&typeof e=="object"}function dl(e){if(Mh(e)!=="object")return !1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var K5=Xo("Date"),X5=Xo("File"),q5=Xo("Blob"),Y5=Xo("FileList");function kh(e){return Th.call(e)==="[object Function]"}function Z5(e){return YC(e)&&kh(e.pipe)}function Q5(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Th.call(e)===t||kh(e.toString)&&e.toString()===t)}var J5=Xo("URLSearchParams");function e6(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function t6(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Ah(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Nh(e))for(var n=0,r=e.length;n0;)i=r[o],a[i]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e);}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function a6(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function s6(e){if(!e)return null;var t=e.length;if(Hl(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var l6=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),ln={isArray:Nh,isArrayBuffer:qC,isBuffer:W5,isFormData:Q5,isArrayBufferView:V5,isString:U5,isNumber:G5,isObject:YC,isPlainObject:dl,isUndefined:Hl,isDate:K5,isFile:X5,isBlob:q5,isFunction:kh,isStream:Z5,isURLSearchParams:J5,isStandardBrowserEnv:t6,forEach:Ah,merge:zf,extend:n6,trim:e6,stripBOM:r6,inherits:o6,toFlatObject:i6,kindOf:Mh,kindOfTest:Xo,endsWith:a6,toArray:s6,isTypedArray:l6,isFileList:Y5};const jp=an(ln);var ui=ln;function Bp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Lh=function(t,n,r){if(!n)return t;var o;if(r)o=r(n);else if(ui.isURLSearchParams(n))o=n.toString();else {var i=[];ui.forEach(n,function(l,c){l===null||typeof l>"u"||(ui.isArray(l)?c=c+"[]":l=[l],ui.forEach(l,function(d){ui.isDate(d)?d=d.toISOString():ui.isObject(d)&&(d=JSON.stringify(d)),i.push(Bp(c)+"="+Bp(d));}));}),o=i.join("&");}if(o){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o;}return t};const c6=an(Lh);var u6=ln;function eu(){this.handlers=[];}eu.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};eu.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null);};eu.prototype.forEach=function(t){u6.forEach(this.handlers,function(r){r!==null&&t(r);});};var d6=eu,f6=ln,m6=function(t,n){f6.forEach(t,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[i]);});},ZC=ln;function Ai(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o);}ZC.inherits(Ai,Error,{toJSON:function(){return {message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var QC=Ai.prototype,JC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){JC[e]={value:e};});Object.defineProperties(Ai,JC);Object.defineProperty(QC,"isAxiosError",{value:!0});Ai.from=function(e,t,n,r,o,i){var a=Object.create(QC);return ZC.toFlatObject(e,a,function(l){return l!==Error.prototype}),Ai.call(a,e.message,t,n,r,o),a.name=e.name,i&&Object.assign(a,i),a};var na=Ai,eS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ar=ln;function h6(e,t){t=t||new FormData;var n=[];function r(i){return i===null?"":ar.isDate(i)?i.toISOString():ar.isArrayBuffer(i)||ar.isTypedArray(i)?typeof Blob=="function"?new Blob([i]):Buffer.from(i):i}function o(i,a){if(ar.isPlainObject(i)||ar.isArray(i)){if(n.indexOf(i)!==-1)throw Error("Circular reference detected in "+a);n.push(i),ar.forEach(i,function(l,c){if(!ar.isUndefined(l)){var u=a?a+"."+c:c,d;if(l&&!a&&typeof l=="object"){if(ar.endsWith(c,"{}"))l=JSON.stringify(l);else if(ar.endsWith(c,"[]")&&(d=ar.toArray(l))){d.forEach(function(m){!ar.isUndefined(m)&&t.append(u,r(m));});return}}o(l,u);}}),n.pop();}else t.append(a,r(i));}return o(e),t}var tS=h6,td=na,nS=function(t,n,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?t(r):n(new td("Request failed with status code "+r.status,[td.ERR_BAD_REQUEST,td.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r));};const g6=an(nS);var nd,Hp;function v6(){if(Hp)return nd;Hp=1;var e=ln;return nd=e.isStandardBrowserEnv()?function(){return {write:function(r,o,i,a,s,l){var c=[];c.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),e.isString(a)&&c.push("path="+a),e.isString(s)&&c.push("domain="+s),l===!0&&c.push("secure"),document.cookie=c.join("; ");},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5);}}}():function(){return {write:function(){},read:function(){return null},remove:function(){}}}(),nd}var p6=function(t){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},b6=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},y6=p6,C6=b6,Dh=function(t,n){return t&&!y6(n)?C6(t,n):n};const S6=an(Dh);var rd=ln,w6=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],rS=function(t){var n={},r,o,i;return t&&rd.forEach(t.split(` `),function(s){if(i=s.indexOf(":"),r=rd.trim(s.substr(0,i)).toLowerCase(),o=rd.trim(s.substr(i+1)),r){if(n[r]&&w6.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([o]):n[r]=n[r]?n[r]+", "+o:o;}}),n};const x6=an(rS);var od,Fp;function $6(){if(Fp)return od;Fp=1;var e=ln;return od=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function i(a){var s=a;return n&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=i(window.location.href),function(s){var l=e.isString(s)?i(s):s;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return !0}}(),od}var id,Wp;function tu(){if(Wp)return id;Wp=1;var e=na,t=ln;function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError";}return t.inherits(n,e,{__CANCEL__:!0}),id=n,id}var ad,Vp;function E6(){return Vp||(Vp=1,ad=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),ad}var sd,Up;function Gp(){if(Up)return sd;Up=1;var e=ln,t=nS,n=v6(),r=Lh,o=Dh,i=rS,a=$6(),s=eS,l=na,c=tu(),u=E6();return sd=function(m){return new Promise(function(g,v){var p=m.data,b=m.headers,y=m.responseType,S;function E(){m.cancelToken&&m.cancelToken.unsubscribe(S),m.signal&&m.signal.removeEventListener("abort",S);}e.isFormData(p)&&e.isStandardBrowserEnv()&&delete b["Content-Type"];var C=new XMLHttpRequest;if(m.auth){var $=m.auth.username||"",x=m.auth.password?unescape(encodeURIComponent(m.auth.password)):"";b.Authorization="Basic "+btoa($+":"+x);}var w=o(m.baseURL,m.url);C.open(m.method.toUpperCase(),r(w,m.params,m.paramsSerializer),!0),C.timeout=m.timeout;function O(){if(C){var R="getAllResponseHeaders"in C?i(C.getAllResponseHeaders()):null,I=!y||y==="text"||y==="json"?C.responseText:C.response,P={data:I,status:C.status,statusText:C.statusText,headers:R,config:m,request:C};t(function(N){g(N),E();},function(N){v(N),E();},P),C=null;}}if("onloadend"in C?C.onloadend=O:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(O);},C.onabort=function(){C&&(v(new l("Request aborted",l.ECONNABORTED,m,C)),C=null);},C.onerror=function(){v(new l("Network Error",l.ERR_NETWORK,m,C,C)),C=null;},C.ontimeout=function(){var I=m.timeout?"timeout of "+m.timeout+"ms exceeded":"timeout exceeded",P=m.transitional||s;m.timeoutErrorMessage&&(I=m.timeoutErrorMessage),v(new l(I,P.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,m,C)),C=null;},e.isStandardBrowserEnv()){var _=(m.withCredentials||a(w))&&m.xsrfCookieName?n.read(m.xsrfCookieName):void 0;_&&(b[m.xsrfHeaderName]=_);}"setRequestHeader"in C&&e.forEach(b,function(I,P){typeof p>"u"&&P.toLowerCase()==="content-type"?delete b[P]:C.setRequestHeader(P,I);}),e.isUndefined(m.withCredentials)||(C.withCredentials=!!m.withCredentials),y&&y!=="json"&&(C.responseType=m.responseType),typeof m.onDownloadProgress=="function"&&C.addEventListener("progress",m.onDownloadProgress),typeof m.onUploadProgress=="function"&&C.upload&&C.upload.addEventListener("progress",m.onUploadProgress),(m.cancelToken||m.signal)&&(S=function(R){C&&(v(!R||R&&R.type?new c:R),C.abort(),C=null);},m.cancelToken&&m.cancelToken.subscribe(S),m.signal&&(m.signal.aborted?S():m.signal.addEventListener("abort",S))),p||(p=null);var A=u(w);if(A&&["http","https","file"].indexOf(A)===-1){v(new l("Unsupported protocol "+A+":",l.ERR_BAD_REQUEST,m));return}C.send(p);})},sd}var ld,Kp;function O6(){return Kp||(Kp=1,ld=null),ld}var on=ln,Xp=m6,qp=na,I6=eS,P6=tS,R6={"Content-Type":"application/x-www-form-urlencoded"};function Yp(e,t){!on.isUndefined(e)&&on.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t);}function _6(){var e;return (typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Gp()),e}function T6(e,t,n){if(on.isString(e))try{return (t||JSON.parse)(e),on.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return (n||JSON.stringify)(e)}var nu={transitional:I6,adapter:_6(),transformRequest:[function(t,n){if(Xp(n,"Accept"),Xp(n,"Content-Type"),on.isFormData(t)||on.isArrayBuffer(t)||on.isBuffer(t)||on.isStream(t)||on.isFile(t)||on.isBlob(t))return t;if(on.isArrayBufferView(t))return t.buffer;if(on.isURLSearchParams(t))return Yp(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=on.isObject(t),o=n&&n["Content-Type"],i;if((i=on.isFileList(t))||r&&o==="multipart/form-data"){var a=this.env&&this.env.FormData;return P6(i?{"files[]":t}:t,a&&new a)}else if(r||o==="application/json")return Yp(n,"application/json"),T6(t);return t}],transformResponse:[function(t){var n=this.transitional||nu.transitional,r=n&&n.silentJSONParsing,o=n&&n.forcedJSONParsing,i=!r&&this.responseType==="json";if(i||o&&on.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?qp.from(a,qp.ERR_BAD_RESPONSE,this,null,this.response):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O6()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};on.forEach(["delete","get","head"],function(t){nu.headers[t]={};});on.forEach(["post","put","patch"],function(t){nu.headers[t]=on.merge(R6);});var zh=nu,M6=ln,N6=zh,k6=function(t,n,r){var o=this||N6;return M6.forEach(r,function(a){t=a.call(o,t,n);}),t},cd,Zp;function oS(){return Zp||(Zp=1,cd=function(t){return !!(t&&t.__CANCEL__)}),cd}var Qp=ln,ud=k6,A6=oS(),L6=zh,D6=tu();function dd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new D6}var z6=function(t){dd(t),t.headers=t.headers||{},t.data=ud.call(t,t.data,t.headers,t.transformRequest),t.headers=Qp.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Qp.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o];});var n=t.adapter||L6.adapter;return n(t).then(function(o){return dd(t),o.data=ud.call(t,o.data,o.headers,t.transformResponse),o},function(o){return A6(o)||(dd(t),o&&o.response&&(o.response.data=ud.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},zn=ln,iS=function(t,n){n=n||{};var r={};function o(u,d){return zn.isPlainObject(u)&&zn.isPlainObject(d)?zn.merge(u,d):zn.isPlainObject(d)?zn.merge({},d):zn.isArray(d)?d.slice():d}function i(u){if(zn.isUndefined(n[u])){if(!zn.isUndefined(t[u]))return o(void 0,t[u])}else return o(t[u],n[u])}function a(u){if(!zn.isUndefined(n[u]))return o(void 0,n[u])}function s(u){if(zn.isUndefined(n[u])){if(!zn.isUndefined(t[u]))return o(void 0,t[u])}else return o(void 0,n[u])}function l(u){if(u in n)return o(t[u],n[u]);if(u in t)return o(void 0,t[u])}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return zn.forEach(Object.keys(t).concat(Object.keys(n)),function(d){var m=c[d]||i,h=m(d);zn.isUndefined(h)&&m!==l||(r[d]=h);}),r},fd,Jp;function aS(){return Jp||(Jp=1,fd={version:"0.27.2"}),fd}var j6=aS().version,io=na,jh={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){jh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e};});var eb={};jh.transitional=function(t,n,r){function o(i,a){return "[Axios v"+j6+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return function(i,a,s){if(t===!1)throw new io(o(a," has been removed"+(n?" in "+n:"")),io.ERR_DEPRECATED);return n&&!eb[a]&&(eb[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function B6(e,t,n){if(typeof e!="object")throw new io("options must be an object",io.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new io("option "+i+" must be "+l,io.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new io("Unknown option "+i,io.ERR_BAD_OPTION)}}var H6={assertOptions:B6,validators:jh},sS=ln,F6=Lh,tb=d6,nb=z6,ru=iS,W6=Dh,lS=H6,di=lS.validators;function Li(e){this.defaults=e,this.interceptors={request:new tb,response:new tb};}Li.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ru(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&lS.assertOptions(r,{silentJSONParsing:di.transitional(di.boolean),forcedJSONParsing:di.transitional(di.boolean),clarifyTimeoutError:di.transitional(di.boolean)},!1);var o=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(i=i&&h.synchronous,o.unshift(h.fulfilled,h.rejected));});var a=[];this.interceptors.response.forEach(function(h){a.push(h.fulfilled,h.rejected);});var s;if(!i){var l=[nb,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(a),s=Promise.resolve(n);l.length;)s=s.then(l.shift(),l.shift());return s}for(var c=n;o.length;){var u=o.shift(),d=o.shift();try{c=u(c);}catch(m){d(m);break}}try{s=nb(c);}catch(m){return Promise.reject(m)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};Li.prototype.getUri=function(t){t=ru(this.defaults,t);var n=W6(t.baseURL,t.url);return F6(n,t.params,t.paramsSerializer)};sS.forEach(["delete","get","head","options"],function(t){Li.prototype[t]=function(n,r){return this.request(ru(r||{},{method:t,url:n,data:(r||{}).data}))};});sS.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(ru(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Li.prototype[t]=n(),Li.prototype[t+"Form"]=n(!0);});var V6=Li,md,rb;function U6(){if(rb)return md;rb=1;var e=tu();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(a){r=a;});var o=this;this.promise.then(function(i){if(o._listeners){var a,s=o._listeners.length;for(a=0;a{if(g(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(E=>{const C=E[0].target;u(C.offsetHeight+8),m(C.offsetWidth);}),S=setInterval(()=>{var E;const C=n?`.${n(p)}`:`.${p}-dropdown`,$=(E=l.current)===null||E===void 0?void 0:E.querySelector(C);$&&(clearInterval(S),y.observe($));},10);return ()=>{clearInterval(S),y.disconnect();}}},[]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:h,visible:h,getPopupContainer:()=>l.current});return r&&(b=r(b)),f__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},f__namespace.createElement(e,Object.assign({},b)))}return Q6(o)}const J6=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return {[t]:Object.assign(Object.assign({},Rt(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}}})}},eD=Bt("Divider",e=>{const t=ct(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return [J6(t)]},{sizePaddingEdgeHorizontal:0});var tD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=f__namespace.useContext(Je),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:m,style:h}=e,g=tD(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",o),[p,b]=eD(v),y=a.length>0?`-${a}`:a,S=!!u,E=a==="left"&&s!=null,C=a==="right"&&s!=null,$=F(v,r==null?void 0:r.className,b,`${v}-${i}`,{[`${v}-with-text`]:S,[`${v}-with-text${y}`]:S,[`${v}-dashed`]:!!d,[`${v}-plain`]:!!m,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:E,[`${v}-no-default-orientation-margin-right`]:C},l,c),x=f__namespace.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),w=Object.assign(Object.assign({},E&&{marginLeft:x}),C&&{marginRight:x});return p(f__namespace.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},g,{role:"separator"}),u&&i!=="vertical"&&f__namespace.createElement("span",{className:`${v}-inner-text`,style:w},u)))},rD=nD;var oD=["b"],iD=["v"],vd=function(t){return Math.round(Number(t||0))},aD=function(t){if(t&&at(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=et(n,oD);return ee(ee({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Fl=function(e){go(n,e);var t=vo(n);function n(r){return Sn(this,n),t.call(this,aD(r))}return wn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=vd(o.s*100),a=vd(o.b*100),s=vd(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv();at(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var i=o;i.v;var a=et(i,iD);return ee(ee({},a),{},{b:o.v})}}]),n}(Ut),sD="rc-color-picker",uo=function(t){return t instanceof Fl?t:new Fl(t)},lD=uo("#1677ff"),uS=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),d=u.width,m=u.height,h=d/2,g=m/2,v=(n.x+h)/l,p=1-(n.y+g)/c,b=i.toHsb(),y=v,S=(n.x+h)/l*360;if(a)switch(a){case"hue":return uo(ee(ee({},b),{},{h:S<=0?0:S}));case"alpha":return uo(ee(ee({},b),{},{a:y<=0?0:y}))}return uo({h:b.h,s:v<=0?0:v,b:p>=1?1:p,a:b.a})},dS=function(t,n,r,o){var i=t.current.getBoundingClientRect(),a=i.width,s=i.height,l=n.current.getBoundingClientRect(),c=l.width,u=l.height,d=c/2,m=u/2,h=r.toHsb();if(!(c===0&&u===0||c!==u)){if(o)switch(o){case"hue":return {x:h.h/360*a-d,y:-m/3};case"alpha":return {x:h.a/1*a-d,y:-m/3}}return {x:h.s*a-d,y:(1-h.b)*s-m}}},Hh=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(r,"-color-block");return f.createElement("div",{className:F(s,o),style:i,onClick:a},f.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function cD(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 fS(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,s=e.calculate,l=e.color,c=e.disabledDrag,u=f.useState(t||{x:0,y:0}),d=Z(u,2),m=d[0],h=d[1],g=f.useRef(null),v=f.useRef(null),p=f.useRef({flag:!1});f.useEffect(function(){if(p.current.flag===!1){var C=s==null?void 0:s(r);C&&h(C);}},[l,r]),f.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 b=function($){var x=cD($),w=x.pageX,O=x.pageY,_=r.current.getBoundingClientRect(),A=_.x,R=_.y,I=_.width,P=_.height,M=n.current.getBoundingClientRect(),N=M.width,T=M.height,L=N/2,z=T/2,H=Math.max(0,Math.min(w-A,I))-L,W=Math.max(0,Math.min(O-R,P))-z,B={x:H,y:o==="x"?m.y:W};if(N===0&&T===0||N!==T)return !1;h(B),i==null||i(B);},y=function($){$.preventDefault(),b($);},S=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();},E=function($){c||(b($),p.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),g.current=y,v.current=S);};return [m,E]}var mS=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return f.createElement("div",{className:F("".concat(i,"-handler"),Q({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},hS=function(t){var n=t.children,r=t.style,o=t.prefixCls;return f.createElement("div",{className:"".concat(o,"-palette"),style:ee({position:"relative"},r)},n)},gS=f.forwardRef(function(e,t){var n=e.children,r=e.offset;return f.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),uD=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=f.useRef(),l=f.useRef(),c=f.useRef(n),u=fS({color:n,containerRef:s,targetRef:l,calculate:function(v){return dS(v,l,n)},onDragChange:function(v){var p=uS({offset:v,targetRef:l,containerRef:s,color:n});c.current=p,r(p);},onDragChangeComplete:function(){return i==null?void 0:i(c.current)},disabledDrag:a}),d=Z(u,2),m=d[0],h=d[1];return f.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},f.createElement(hS,{prefixCls:o},f.createElement(gS,{offset:m,ref:l},f.createElement(mS,{color:n.toRgbString(),prefixCls:o})),f.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},dD=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,s=t.prefixCls,l=f.useMemo(function(){return n.map(function(c,u){var d=uo(c);return a==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,a]);return f.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},r)},sb=function(t){var n=t.gradientColors,r=t.direction,o=t.type,i=o===void 0?"hue":o,a=t.color,s=t.value,l=t.onChange,c=t.onChangeComplete,u=t.disabled,d=t.prefixCls,m=f.useRef(),h=f.useRef(),g=f.useRef(a),v=fS({color:a,targetRef:h,containerRef:m,calculate:function(E){return dS(E,h,a,i)},onDragChange:function(E){var C=uS({offset:E,targetRef:h,containerRef:m,color:a,type:i});g.current=C,l(C);},onDragChangeComplete:function(){c==null||c(g.current,i);},direction:"x",disabledDrag:u}),p=Z(v,2),b=p[0],y=p[1];return f.createElement("div",{ref:m,className:F("".concat(d,"-slider"),"".concat(d,"-slider-").concat(i)),onMouseDown:y,onTouchStart:y},f.createElement(hS,{prefixCls:d},f.createElement(gS,{offset:b,ref:h},f.createElement(mS,{size:"small",color:s,prefixCls:d})),f.createElement(dD,{colors:n,direction:r,type:i,prefixCls:d})))};function lb(e){return e!==void 0}var fD=function(t,n){var r=n.defaultValue,o=n.value,i=f.useState(function(){var c;return lb(o)?c=o:lb(r)?c=r:c=t,uo(c)}),a=Z(i,2),s=a[0],l=a[1];return f.useEffect(function(){o&&l(uo(o));},[o]),[s,l]},mD=["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 hD=f.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?sD:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,m=d===void 0?!1:d,h=e.disabled,g=h===void 0?!1:h,v=fD(lD,{value:n,defaultValue:r}),p=Z(v,2),b=p[0],y=p[1],S=f.useMemo(function(){var w=uo(b.toRgbString());return w.setAlpha(1),w.toRgbString()},[b]),E=F("".concat(i,"-panel"),l,Q({},"".concat(i,"-panel-disabled"),g)),C={prefixCls:i,onChangeComplete:s,disabled:g},$=function(O,_){n||y(O),a==null||a(O,_);},x=f.createElement(f.Fragment,null,f.createElement(uD,Ee({color:b,onChange:$},C)),f.createElement("div",{className:"".concat(i,"-slider-container")},f.createElement("div",{className:F("".concat(i,"-slider-group"),Q({},"".concat(i,"-slider-group-disabled-alpha"),m))},f.createElement(sb,Ee({gradientColors:mD,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(O){return $(O,"hue")}},C)),!m&&f.createElement(sb,Ee({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",S],color:b,value:b.toRgbString(),onChange:function(O){return $(O,"alpha")}},C))),f.createElement(Hh,{color:b.toRgbString(),prefixCls:i})));return f.createElement("div",{className:E,style:c,ref:t},typeof u=="function"?u(x):x)}),vS=f.createContext({}),pS=f.createContext({}),{Provider:gD}=vS,{Provider:vD}=pS,ml=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",pD=(e,t)=>e?ml(e,t):"";let cb=function(){function e(t){Sn(this,e),this.metaColor=new Fl(t),t||this.metaColor.setAlpha(0);}return wn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return pD(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 bD="ant-color-picker",bn=e=>e instanceof cb?e:new cb(e),hl=e=>Math.round(Number(e||0)),Wl=e=>hl(e.toHsb().a*100),pd=(e,t)=>{const n=e.toHsb();return n.a=t||1,bn(n)},yD=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const i=()=>{if(n&&!r){const a=n.toHsb();a.a=0;const s=bn(a);o==null||o(s);}};return f.createElement("div",{className:`${t}-clear`,onClick:i})},bS=yD;var yS=f__namespace.createContext(null);function CD(){return f__namespace.useContext(yS)}function SD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f__namespace.useState(!1),n=Z(t,2),r=n[0],o=n[1],i=f__namespace.useRef(null),a=function(){window.clearTimeout(i.current);};f__namespace.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u();},e);};return [r,s,a]}function CS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=f__namespace.useRef(null),n=f__namespace.useRef(null);f__namespace.useEffect(function(){return function(){window.clearTimeout(n.current);}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null;},e);}return [function(){return t.current},r]}function wD(e,t,n,r){var o=f__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},f__namespace.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return !c.contains(l)&&c!==l})&&o.current.triggerOpen(!1);}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[]);}var xD=`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`,$D=`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`,ED="".concat(xD," ").concat($D).split(/[\s\n]+/),OD="aria-",ID="data-";function ub(e,t){return e.indexOf(t)===0}function Di(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=ee({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||ub(o,OD))||n.data&&ub(o,ID)||n.attr&&ED.includes(o))&&(r[o]=e[o]);}),r}var iu=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,s=t.children,l;return typeof r=="function"?l=r(o):l=r,f__namespace.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),i&&i(u);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},l!==void 0?l:f__namespace.createElement("span",{className:F(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))},PD=function(t,n){var r,o,i=t.prefixCls,a=t.id,s=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,m=t.editable,h=t.activeDescendantId,g=t.value,v=t.maxLength,p=t.onKeyDown,b=t.onMouseDown,y=t.onChange,S=t.onPaste,E=t.onCompositionStart,C=t.onCompositionEnd,$=t.open,x=t.attrs,w=s||f__namespace.createElement("input",null),O=w,_=O.ref,A=O.props,R=A.onKeyDown,I=A.onChange,P=A.onMouseDown,M=A.onCompositionStart,N=A.onCompositionEnd,T=A.style;return "maxLength"in w.props,w=f__namespace.cloneElement(w,ee(ee(ee({type:"search"},A),{},{id:a,ref:xn(n,_),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:F("".concat(i,"-selection-search-input"),(r=w)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-label":"Search","aria-expanded":$,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":$?h:void 0},x),{},{value:m?g:"",maxLength:v,readOnly:!m,unselectable:m?null:"on",style:ee(ee({},T),{},{opacity:m?null:0}),onKeyDown:function(z){p(z),R&&R(z);},onMouseDown:function(z){b(z),P&&P(z);},onChange:function(z){y(z),I&&I(z);},onCompositionStart:function(z){E(z),M&&M(z);},onCompositionEnd:function(z){C(z),N&&N(z);},onPaste:S})),w},Fh=f__namespace.forwardRef(PD);Fh.displayName="Input";function SS(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var RD=typeof window<"u"&&window.document&&window.document.documentElement,_D=RD;function TD(e){return e!=null}function MD(e){return !e&&e!==0}function db(e){return ["string","number"].includes(at(e))}function wS(e){var t=void 0;return e&&(db(e.title)?t=e.title.toString():db(e.label)&&(t=e.label.toString())),t}function ND(e,t){_D?f__namespace.useLayoutEffect(e,t):f__namespace.useEffect(e,t);}function kD(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var fb=function(t){t.preventDefault(),t.stopPropagation();},AD=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,m=t.showSearch,h=t.autoFocus,g=t.autoComplete,v=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,S=t.maxTagTextLength,E=t.maxTagPlaceholder,C=E===void 0?function(te){return "+ ".concat(te.length," ...")}:E,$=t.tagRender,x=t.onToggleOpen,w=t.onRemove,O=t.onInputChange,_=t.onInputPaste,A=t.onInputKeyDown,R=t.onInputMouseDown,I=t.onInputCompositionStart,P=t.onInputCompositionEnd,M=f__namespace.useRef(null),N=f.useState(0),T=Z(N,2),L=T[0],z=T[1],H=f.useState(!1),W=Z(H,2),B=W[0],V=W[1],j="".concat(r,"-selection"),X=i||d==="multiple"&&s===!1||d==="tags"?a:"",K=d==="tags"||d==="multiple"&&s===!1||m&&(i||B);ND(function(){z(M.current.scrollWidth);},[X]);function G(te,oe,ce,q,ne){return f__namespace.createElement("span",{className:F("".concat(j,"-item"),Q({},"".concat(j,"-item-disabled"),ce)),title:wS(te)},f__namespace.createElement("span",{className:"".concat(j,"-item-content")},oe),q&&f__namespace.createElement(iu,{className:"".concat(j,"-item-remove"),onMouseDown:fb,onClick:ne,customizeIcon:b},"×"))}function U(te,oe,ce,q,ne){var J=function(me){fb(me),x(!i);};return f__namespace.createElement("span",{onMouseDown:J},$({label:oe,value:te,disabled:ce,closable:q,onClose:ne}))}function Y(te){var oe=te.disabled,ce=te.label,q=te.value,ne=!u&&!oe,J=ce;if(typeof S=="number"&&(typeof ce=="string"||typeof ce=="number")){var he=String(J);he.length>S&&(J="".concat(he.slice(0,S),"..."));}var me=function(_e){_e&&_e.stopPropagation(),w(te);};return typeof $=="function"?U(q,J,oe,ne,me):G(te,J,oe,ne,me)}function re(te){var oe=typeof C=="function"?C(te):C;return G({title:oe},oe,!1)}var de=f__namespace.createElement("div",{className:"".concat(j,"-search"),style:{width:L},onFocus:function(){V(!0);},onBlur:function(){V(!1);}},f__namespace.createElement(Fh,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:g,editable:K,activeDescendantId:v,value:X,onKeyDown:A,onMouseDown:R,onChange:O,onPaste:_,onCompositionStart:I,onCompositionEnd:P,tabIndex:p,attrs:Di(t,!0)}),f__namespace.createElement("span",{ref:M,className:"".concat(j,"-search-mirror"),"aria-hidden":!0},X," ")),ve=f__namespace.createElement(xr,{prefixCls:"".concat(j,"-overflow"),data:o,renderItem:Y,renderRest:re,suffix:de,itemKey:kD,maxCount:y});return f__namespace.createElement(f__namespace.Fragment,null,ve,!o.length&&!X&&f__namespace.createElement("span",{className:"".concat(j,"-placeholder")},c))},LD=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,m=t.values,h=t.placeholder,g=t.tabIndex,v=t.showSearch,p=t.searchValue,b=t.activeValue,y=t.maxLength,S=t.onInputKeyDown,E=t.onInputMouseDown,C=t.onInputChange,$=t.onInputPaste,x=t.onInputCompositionStart,w=t.onInputCompositionEnd,O=t.title,_=f__namespace.useState(!1),A=Z(_,2),R=A[0],I=A[1],P=u==="combobox",M=P||v,N=m[0],T=p||"";P&&b&&!R&&(T=b),f__namespace.useEffect(function(){P&&I(!1);},[P,b]);var L=u!=="combobox"&&!d&&!v?!1:!!T,z=O===void 0?wS(N):O,H=function(){if(N)return null;var B=L?{visibility:"hidden"}:void 0;return f__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:B},h)};return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("span",{className:"".concat(r,"-selection-search")},f__namespace.createElement(Fh,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:M,activeDescendantId:c,value:T,onKeyDown:S,onMouseDown:E,onChange:function(B){I(!0),C(B);},onPaste:$,onCompositionStart:x,onCompositionEnd:w,tabIndex:g,attrs:Di(t,!0),maxLength:P?y:void 0})),!P&&N?f__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:L?{visibility:"hidden"}:void 0},N.label):null,H())};function DD(e){return ![le.ESC,le.SHIFT,le.BACKSPACE,le.TAB,le.WIN_KEY,le.ALT,le.META,le.WIN_KEY_RIGHT,le.CTRL,le.SEMICOLON,le.EQUALS,le.CAPS_LOCK,le.CONTEXT_MENU,le.F1,le.F2,le.F3,le.F4,le.F5,le.F6,le.F7,le.F8,le.F9,le.F10,le.F11,le.F12].includes(e)}var zD=function(t,n){var r=f.useRef(null),o=f.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,m=t.onSearchSubmit,h=t.onToggleOpen,g=t.onInputKeyDown,v=t.domRef;f__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=CS(0),b=Z(p,2),y=b[0],S=b[1],E=function(T){var L=T.which;(L===le.UP||L===le.DOWN)&&T.preventDefault(),g&&g(T),L===le.ENTER&&s==="tags"&&!o.current&&!a&&(m==null||m(T.target.value)),DD(L)&&h(!0);},C=function(){S(!0);},$=f.useRef(null),x=function(T){d(T,!0,o.current)!==!1&&h(!0);},w=function(){o.current=!0;},O=function(T){o.current=!1,s!=="combobox"&&x(T.target.value);},_=function(T){var L=T.target.value;if(c&&$.current&&/[\r\n]/.test($.current)){var z=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(z,$.current);}$.current=null,x(L);},A=function(T){var L=T.clipboardData,z=L.getData("text");$.current=z;},R=function(T){var L=T.target;if(L!==r.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){r.current.focus();}):r.current.focus();}},I=function(T){var L=y();T.target!==r.current&&!L&&s!=="combobox"&&T.preventDefault(),(s!=="combobox"&&(!l||!L)||!a)&&(a&&u!==!1&&d("",!0,!1),h());},P={inputRef:r,onInputKeyDown:E,onInputMouseDown:C,onInputChange:_,onInputPaste:A,onInputCompositionStart:w,onInputCompositionEnd:O},M=s==="multiple"||s==="tags"?f__namespace.createElement(AD,Ee({},t,P)):f__namespace.createElement(LD,Ee({},t,P));return f__namespace.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:R,onMouseDown:I},M)},xS=f__namespace.forwardRef(zD);xS.displayName="Selector";var jD=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],BD=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"}}},HD=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,s=t.containerWidth,l=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,m=t.direction,h=m===void 0?"ltr":m,g=t.placement,v=t.builtinPlacements,p=t.dropdownMatchSelectWidth,b=t.dropdownRender,y=t.dropdownAlign,S=t.getPopupContainer,E=t.empty,C=t.getTriggerDOMNode,$=t.onPopupVisibleChange,x=t.onPopupMouseEnter,w=et(t,jD),O="".concat(r,"-dropdown"),_=a;b&&(_=b(a));var A=f__namespace.useMemo(function(){return v||BD(p)},[v,p]),R=l?"".concat(O,"-").concat(l):c,I=f__namespace.useRef(null);f__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return I.current}}});var P=ee({minWidth:s},u);return typeof p=="number"?P.width=p:p&&(P.width=s),f__namespace.createElement(Nc,Ee({},w,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:g||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:A,prefixCls:O,popupTransitionName:R,popup:f__namespace.createElement("div",{ref:I,onMouseEnter:x},_),popupAlign:y,popupVisible:o,getPopupContainer:S,popupClassName:F(d,Q({},"".concat(O,"-empty"),E)),popupStyle:P,getTriggerDOMNode:C,onPopupVisibleChange:$}),i)},$S=f__namespace.forwardRef(HD);$S.displayName="SelectTrigger";function mb(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 ES(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,s=r||(t?"children":"label");return {label:s,value:o||"value",options:i||"options",groupLabel:a||s}}function FD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=ES(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(d,m){d.forEach(function(h){if(m||!(l in h)){var g=h[s];o.push({key:mb(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:mb(h,o.length),group:!0,data:h,label:v}),u(h[l],!0);}});}return u(e,!1),o}function jf(e){var t=ee({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return Rr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function WD(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var s=zy(a),l=s[0],c=s.slice(1);if(!l)return [i];var u=i.split(l);return n=n||u.length>1,u.reduce(function(d,m){return [].concat(Qe(d),Qe(r(m,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}function VD(e,t,n,r,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=f.useMemo(function(){if(at(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=f.useMemo(function(){return !!(!i&&r&&(n.length||a)&&!(s==="combobox"&&a===""))},[r,i,n.length,a,s]);return {allowClear:c,clearIcon:f.createElement(iu,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}var UD=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],GD=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Bf(e){return e==="tags"||e==="multiple"}var KD=f__namespace.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,m=e.onDisplayValuesChange,h=e.emptyOptions,g=e.notFoundContent,v=g===void 0?"Not Found":g,p=e.onClear,b=e.mode,y=e.disabled,S=e.loading,E=e.getInputElement,C=e.getRawInputElement,$=e.open,x=e.defaultOpen,w=e.onDropdownVisibleChange,O=e.activeValue,_=e.onActiveValueChange,A=e.activeDescendantId,R=e.searchValue,I=e.autoClearSearchValue,P=e.onSearch,M=e.onSearchSplit,N=e.tokenSeparators,T=e.allowClear,L=e.suffixIcon,z=e.clearIcon,H=e.OptionList,W=e.animation,B=e.transitionName,V=e.dropdownStyle,j=e.dropdownClassName,X=e.dropdownMatchSelectWidth,K=e.dropdownRender,G=e.dropdownAlign,U=e.placement,Y=e.builtinPlacements,re=e.getPopupContainer,de=e.showAction,ve=de===void 0?[]:de,te=e.onFocus,oe=e.onBlur,ce=e.onKeyUp,q=e.onKeyDown,ne=e.onMouseDown,J=et(e,UD),he=Bf(b),me=(s!==void 0?s:he)||b==="combobox",pe=ee({},J);GD.forEach(function(je){delete pe[je];}),u==null||u.forEach(function(je){delete pe[je];});var _e=f__namespace.useState(!1),Be=Z(_e,2),Ne=Be[0],ae=Be[1];f__namespace.useEffect(function(){ae(Mc());},[]);var ue=f__namespace.useRef(null),be=f__namespace.useRef(null),we=f__namespace.useRef(null),ze=f__namespace.useRef(null),Le=f__namespace.useRef(null),Oe=SD(),Ie=Z(Oe,3),We=Ie[0],$e=Ie[1],ke=Ie[2];f__namespace.useImperativeHandle(t,function(){var je,He;return {focus:(je=ze.current)===null||je===void 0?void 0:je.focus,blur:(He=ze.current)===null||He===void 0?void 0:He.blur,scrollTo:function(kt){var Pt;return (Pt=Le.current)===null||Pt===void 0?void 0:Pt.scrollTo(kt)}}});var tt=f__namespace.useMemo(function(){var je;if(b!=="combobox")return R;var He=(je=d[0])===null||je===void 0?void 0:je.value;return typeof He=="string"||typeof He=="number"?String(He):""},[R,b,d]),ut=b==="combobox"&&typeof E=="function"&&E()||null,qe=typeof C=="function"&&C(),dt=cs(be,qe==null||(n=qe.props)===null||n===void 0?void 0:n.ref),Re=f__namespace.useState(!1),ge=Z(Re,2),Ce=ge[0],fe=ge[1];Vt(function(){fe(!0);},[]);var Pe=Dt(!1,{defaultValue:x,value:$}),Fe=Z(Pe,2),Te=Fe[0],xe=Fe[1],se=Ce?Te:!1,Se=!v&&h;(y||Se&&se&&b==="combobox")&&(se=!1);var Me=Se?!1:se,Ae=f__namespace.useCallback(function(je){var He=je!==void 0?je:!se;y||(xe(He),se!==He&&(w==null||w(He)));},[y,se,xe,w]),st=f__namespace.useMemo(function(){return (N||[]).some(function(je){return [` `,`\r `].includes(je)})},[N]),nt=function(He,bt,kt){var Pt=!0,tn=He;_==null||_(null);var In=kt?null:WD(He,N);return b!=="combobox"&&In&&(tn="",M==null||M(In),Ae(!1),Pt=!1),P&&tt!==tn&&P(tn,{source:bt?"typing":"effect"}),Pt},xt=function(He){!He||!He.trim()||P(He,{source:"submit"});};f__namespace.useEffect(function(){!se&&!he&&b!=="combobox"&&nt("",!1,!1);},[se]),f__namespace.useEffect(function(){Te&&y&&xe(!1),y&&$e(!1);},[y]);var Ft=CS(),Wt=Z(Ft,2),Xe=Wt[0],Ze=Wt[1],Ge=function(He){var bt=Xe(),kt=He.which;if(kt===le.ENTER&&(b!=="combobox"&&He.preventDefault(),se||Ae(!0)),Ze(!!tt),kt===le.BACKSPACE&&!bt&&he&&!tt&&d.length){for(var Pt=Qe(d),tn=null,In=Pt.length-1;In>=0;In-=1){var Mr=Pt[In];if(!Mr.disabled){Pt.splice(In,1),tn=Mr;break}}tn&&m(Pt,{type:"remove",values:[tn]});}for(var Gn=arguments.length,Pn=new Array(Gn>1?Gn-1:0),Zt=1;Zt1?bt-1:0),Pt=1;Pt1?In-1:0),Gn=1;Gn1&&arguments[1]!==void 0?arguments[1]:!1;return tr(e).map(function(n,r){if(!f__namespace.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=et(s,ez);return t||!i?tz(n):ee(ee({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:OS(l)})}).filter(function(n){return n})}function nz(e,t,n,r,o){return f__namespace.useMemo(function(){var i=e,a=!e;a&&(i=OS(t));var s=new Map,l=new Map,c=function(m,h,g){g&&typeof g=="string"&&m.set(h[g],h);};function u(d){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;hl},r}return wn(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown);}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden();}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout);}},{key:"render",value:function(){var o=this.state,i=o.dragging,a=o.visible,s=this.props,l=s.prefixCls,c=s.direction,u=this.getSpinHeight(),d=this.getTop(),m=this.showScroll(),h=m&&a,g=c==="rtl"?{left:0}:{right:0};return f__namespace.createElement("div",{ref:this.scrollbarRef,className:F("".concat(l,"-scrollbar"),Q({},"".concat(l,"-scrollbar-show"),m)),style:ee(ee({width:8,top:0,bottom:0},g),{},{position:"absolute",display:h?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},f__namespace.createElement("div",{ref:this.thumbRef,className:F("".concat(l,"-scrollbar-thumb"),Q({},"".concat(l,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:u,top:d,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(f__namespace.Component);function iz(e){var t=e.children,n=e.setRef,r=f__namespace.useCallback(function(o){n(o);},[]);return f__namespace.cloneElement(t,{ref:r})}function az(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map(function(s,l){var c=t+l,u=o(s,c,{}),d=a(s);return f__namespace.createElement(iz,{key:d,setRef:function(h){return r(s,h)}},u)})}var sz=function(){function e(){Sn(this,e),this.maps=void 0,this.maps=Object.create(null);}return wn(e,[{key:"set",value:function(n,r){this.maps[n]=r;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function lz(e,t,n){var r=f__namespace.useState(0),o=Z(r,2),i=o[0],a=o[1],s=f.useRef(new Map),l=f.useRef(new sz),c=f.useRef();function u(){pt.cancel(c.current);}function d(){u(),c.current=pt(function(){s.current.forEach(function(h,g){if(h&&h.offsetParent){var v=Rl(h),p=v.offsetHeight;l.current.get(g)!==p&&l.current.set(g,v.offsetHeight);}}),a(function(h){return h+1});});}function m(h,g){var v=e(h),p=s.current.get(v);g?(s.current.set(v,g),d()):s.current.delete(v),!p!=!g&&(g?t==null||t(h):n==null||n(h));}return f.useEffect(function(){return u},[]),[m,d,l.current,i]}function cz(e,t,n,r,o,i,a,s){var l=f__namespace.useRef();return function(c){if(c==null){s();return}if(pt.cancel(l.current),typeof c=="number")a(c);else if(c&&at(c)==="object"){var u,d=c.align;"index"in c?u=c.index:u=t.findIndex(function(v){return o(v)===c.key});var m=c.offset,h=m===void 0?0:m,g=function v(p,b){if(!(p<0||!e.current)){var y=e.current.clientHeight,S=!1,E=b;if(y){for(var C=b||d,$=0,x=0,w=0,O=Math.min(t.length,u),_=0;_<=O;_+=1){var A=o(t[_]);x=$;var R=n.get(A);w=x+(R===void 0?r:R),$=w,_===u&&R===void 0&&(S=!0);}var I=null;switch(C){case"top":I=x-h;break;case"bottom":I=w-y+h;break;default:{var P=e.current.scrollTop,M=P+y;xM&&(E="bottom");}}I!==null&&I!==e.current.scrollTop&&a(I);}l.current=pt(function(){S&&i(),v(p-1,E);},2);}};g(3);}}}function uz(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r"u"?"undefined":at(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const PS=function(e,t){var n=f.useRef(!1),r=f.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1;},50);}var i=f.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=a<0&&i.current.top||a>0&&i.current.bottom;return s&&l?(clearTimeout(r.current),n.current=!1):(!l||n.current)&&o(),!n.current&&l}};function mz(e,t,n,r){var o=f.useRef(0),i=f.useRef(null),a=f.useRef(null),s=f.useRef(!1),l=PS(t,n);function c(d){if(e){pt.cancel(i.current);var m=d.deltaY;o.current+=m,a.current=m,!l(m)&&(fz||d.preventDefault(),i.current=pt(function(){var h=s.current?10:1;r(o.current*h),o.current=0;}));}}function u(d){e&&(s.current=d.detail===a.current);}return [c,u]}var hz=14/15;function gz(e,t,n){var r=f.useRef(!1),o=f.useRef(0),i=f.useRef(null),a=f.useRef(null),s,l=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*=hz,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(a.current);},16);}},c=function(){r.current=!1,s();},u=function(m){s(),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",l),i.current.addEventListener("touchend",c));};s=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",c));},Vt(function(){return e&&t.current.addEventListener("touchstart",u),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),s(),clearInterval(a.current);}},[e]);}var vz=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],pz=[],bz={overflowY:"auto",overflowAnchor:"none"};function yz(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,m=e.itemKey,h=e.virtual,g=e.direction,v=e.component,p=v===void 0?"div":v,b=e.onScroll,y=e.onVisibleChange,S=e.innerProps,E=et(e,vz),C=!!(h!==!1&&i&&a),$=C&&u&&a*u.length>i,x=f.useState(0),w=Z(x,2),O=w[0],_=w[1],A=f.useState(!1),R=Z(A,2),I=R[0],P=R[1],M=F(r,Q({},"".concat(r,"-rtl"),g==="rtl"),o),N=u||pz,T=f.useRef(),L=f.useRef(),z=f.useRef(),H=f__namespace.useCallback(function($e){return typeof m=="function"?m($e):$e==null?void 0:$e[m]},[m]),W={getKey:H};function B($e){_(function(ke){var tt;typeof $e=="function"?tt=$e(ke):tt=$e;var ut=pe(tt);return T.current.scrollTop=ut,ut});}var V=f.useRef({start:0,end:N.length}),j=f.useRef(),X=dz(N,H),K=Z(X,1),G=K[0];j.current=G;var U=lz(H,null,null),Y=Z(U,4),re=Y[0],de=Y[1],ve=Y[2],te=Y[3],oe=f__namespace.useMemo(function(){if(!C)return {scrollHeight:void 0,start:0,end:N.length-1,offset:void 0};if(!$){var $e;return {scrollHeight:(($e=L.current)===null||$e===void 0?void 0:$e.offsetHeight)||0,start:0,end:N.length-1,offset:void 0}}for(var ke=0,tt,ut,qe,dt=N.length,Re=0;Re=O&&tt===void 0&&(tt=Re,ut=ke),Pe>O+i&&qe===void 0&&(qe=Re),ke=Pe;}return tt===void 0&&(tt=0,ut=0,qe=Math.ceil(i/a)),qe===void 0&&(qe=N.length-1),qe=Math.min(qe+1,N.length),{scrollHeight:ke,start:tt,end:qe,offset:ut}},[$,C,O,N,te,i]),ce=oe.scrollHeight,q=oe.start,ne=oe.end,J=oe.offset;V.current.start=q,V.current.end=ne;var he=ce-i,me=f.useRef(he);me.current=he;function pe($e){var ke=$e;return Number.isNaN(me.current)||(ke=Math.min(ke,me.current)),ke=Math.max(ke,0),ke}var _e=O<=0,Be=O>=he,Ne=PS(_e,Be);function ae($e){var ke=$e;B(ke);}function ue($e){var ke=$e.currentTarget.scrollTop;ke!==O&&B(ke),b==null||b($e);}var be=mz(C,_e,Be,function($e){B(function(ke){var tt=ke+$e;return tt});}),we=Z(be,2),ze=we[0],Le=we[1];gz(C,T,function($e,ke){return Ne($e,ke)?!1:(ze({preventDefault:function(){},deltaY:$e}),!0)}),Vt(function(){function $e(ke){C&&ke.preventDefault();}return T.current.addEventListener("wheel",ze),T.current.addEventListener("DOMMouseScroll",Le),T.current.addEventListener("MozMousePixelScroll",$e),function(){T.current&&(T.current.removeEventListener("wheel",ze),T.current.removeEventListener("DOMMouseScroll",Le),T.current.removeEventListener("MozMousePixelScroll",$e));}},[C]);var Oe=cz(T,N,ve,a,H,de,B,function(){var $e;($e=z.current)===null||$e===void 0||$e.delayHidden();});f__namespace.useImperativeHandle(t,function(){return {scrollTo:Oe}}),Vt(function(){if(y){var $e=N.slice(q,ne+1);y($e,N);}},[q,ne,N]);var Ie=az(N,q,ne,re,d,W),We=null;return i&&(We=ee(Q({},l?"height":"maxHeight",i),bz),C&&(We.overflowY="hidden",I&&(We.pointerEvents="none"))),f__namespace.createElement("div",Ee({style:ee(ee({},c),{},{position:"relative"}),className:M},E),f__namespace.createElement(p,{className:"".concat(r,"-holder"),style:We,ref:T,onScroll:ue},f__namespace.createElement(IS,{prefixCls:r,height:ce,offset:J,onInnerResize:de,ref:L,innerProps:S},Ie)),C&&f__namespace.createElement(oz,{ref:z,prefixCls:r,scrollTop:O,height:i,scrollHeight:ce,count:N.length,direction:g,onScroll:ae,onStartMove:function(){P(!0);},onStopMove:function(){P(!1);}}))}var RS=f__namespace.forwardRef(yz);RS.displayName="List";var _S=f__namespace.createContext(null);function Cz(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var Sz=["disabled","title","children","style","className"];function pb(e){return typeof e=="string"||typeof e=="number"}var wz=function(t,n){var r=CD(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,m=r.onPopupScroll,h=f__namespace.useContext(_S),g=h.flattenOptions,v=h.onActiveValue,p=h.defaultActiveFirstOption,b=h.onSelect,y=h.menuItemSelectedIcon,S=h.rawValues,E=h.fieldNames,C=h.virtual,$=h.direction,x=h.listHeight,w=h.listItemHeight,O="".concat(o,"-item"),_=as(function(){return g},[a,g],function(G,U){return U[0]&&G[1]!==U[1]}),A=f__namespace.useRef(null),R=function(U){U.preventDefault();},I=function(U){A.current&&A.current.scrollTo(typeof U=="number"?{index:U}:U);},P=function(U){for(var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=_.length,de=0;de1&&arguments[1]!==void 0?arguments[1]:!1;L(U);var re={source:Y?"keyboard":"mouse"},de=_[U];if(!de){v(null,-1,re);return}v(de.value,U,re);};f.useEffect(function(){z(p!==!1?P(0):-1);},[_.length,c]);var H=f__namespace.useCallback(function(G){return S.has(G)&&l!=="combobox"},[l,Qe(S).toString(),S.size]);f.useEffect(function(){var G=setTimeout(function(){if(!s&&a&&S.size===1){var Y=Array.from(S)[0],re=_.findIndex(function(de){var ve=de.data;return ve.value===Y});re!==-1&&(z(re),I(re));}});if(a){var U;(U=A.current)===null||U===void 0||U.scrollTo(void 0);}return function(){return clearTimeout(G)}},[a,c,g.length]);var W=function(U){U!==void 0&&b(U,{selected:!S.has(U)}),s||u(!1);};if(f__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(U){var Y=U.which,re=U.ctrlKey;switch(Y){case le.N:case le.P:case le.UP:case le.DOWN:{var de=0;if(Y===le.UP?de=-1:Y===le.DOWN?de=1:Cz()&&re&&(Y===le.N?de=1:Y===le.P&&(de=-1)),de!==0){var ve=P(T+de,de);I(ve),z(ve,!0);}break}case le.ENTER:{var te=_[T];te&&!te.data.disabled?W(te.value):W(void 0),a&&U.preventDefault();break}case le.ESC:u(!1),a&&U.stopPropagation();}},onKeyUp:function(){},scrollTo:function(U){I(U);}}}),_.length===0)return f__namespace.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(O,"-empty"),onMouseDown:R},d);var B=Object.keys(E).map(function(G){return E[G]}),V=function(U){return U.label};function j(G,U){var Y=G.group;return {role:Y?"presentation":"option",id:"".concat(i,"_list_").concat(U)}}var X=function(U){var Y=_[U];if(!Y)return null;var re=Y.data||{},de=re.value,ve=Y.group,te=Di(re,!0),oe=V(Y);return Y?f__namespace.createElement("div",Ee({"aria-label":typeof oe=="string"&&!ve?oe:null},te,{key:U},j(Y,U),{"aria-selected":H(de)}),de):null},K={role:"listbox",id:"".concat(i,"_list")};return f__namespace.createElement(f__namespace.Fragment,null,C&&f__namespace.createElement("div",Ee({},K,{style:{height:0,width:0,overflow:"hidden"}}),X(T-1),X(T),X(T+1)),f__namespace.createElement(RS,{itemKey:"key",ref:A,data:_,height:x,itemHeight:w,fullHeight:!1,onMouseDown:R,onScroll:m,virtual:C,direction:$,innerProps:C?null:K},function(G,U){var Y,re=G.group,de=G.groupOption,ve=G.data,te=G.label,oe=G.value,ce=ve.key;if(re){var q,ne=(q=ve.title)!==null&&q!==void 0?q:pb(te)?te.toString():void 0;return f__namespace.createElement("div",{className:F(O,"".concat(O,"-group")),title:ne},te!==void 0?te:ce)}var J=ve.disabled,he=ve.title;ve.children;var me=ve.style,pe=ve.className,_e=et(ve,Sz),Be=Cn(_e,B),Ne=H(oe),ae="".concat(O,"-option"),ue=F(O,ae,pe,(Y={},Q(Y,"".concat(ae,"-grouped"),de),Q(Y,"".concat(ae,"-active"),T===U&&!J),Q(Y,"".concat(ae,"-disabled"),J),Q(Y,"".concat(ae,"-selected"),Ne),Y)),be=V(G),we=!y||typeof y=="function"||Ne,ze=typeof be=="number"?be:be||oe,Le=pb(ze)?ze.toString():void 0;return he!==void 0&&(Le=he),f__namespace.createElement("div",Ee({},Di(Be),C?{}:j(G,U),{"aria-selected":Ne,className:ue,title:Le,onMouseMove:function(){T===U||J||z(U);},onClick:function(){J||W(oe);},style:me}),f__namespace.createElement("div",{className:"".concat(ae,"-content")},ze),f__namespace.isValidElement(y)||Ne,we&&f__namespace.createElement(iu,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:Ne}},Ne?"✓":null))}))},TS=f__namespace.forwardRef(wz);TS.displayName="OptionList";var xz=["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"],$z=["inputValue"];function Ez(e){return !e||at(e)!=="object"}var Oz=f__namespace.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,m=d===void 0?!0:d,h=e.onSelect,g=e.onDeselect,v=e.dropdownMatchSelectWidth,p=v===void 0?!0:v,b=e.filterOption,y=e.filterSort,S=e.optionFilterProp,E=e.optionLabelProp,C=e.options,$=e.children,x=e.defaultActiveFirstOption,w=e.menuItemSelectedIcon,O=e.virtual,_=e.direction,A=e.listHeight,R=A===void 0?200:A,I=e.listItemHeight,P=I===void 0?20:I,M=e.value,N=e.defaultValue,T=e.labelInValue,L=e.onChange,z=et(e,xz),H=QD(n),W=Bf(r),B=!!(!C&&$),V=f__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),j=f__namespace.useMemo(function(){return ES(s,B)},[JSON.stringify(s),B]),X=Dt("",{value:c!==void 0?c:l,postState:function(Se){return Se||""}}),K=Z(X,2),G=K[0],U=K[1],Y=nz(C,$,j,S,E),re=Y.valueOptions,de=Y.labelOptions,ve=Y.options,te=f__namespace.useCallback(function(se){var Se=SS(se);return Se.map(function(Me){var Ae,st,nt,xt,Ft;if(Ez(Me))Ae=Me;else {var Wt;nt=Me.key,st=Me.label,Ae=(Wt=Me.value)!==null&&Wt!==void 0?Wt:nt;}var Xe=re.get(Ae);if(Xe){var Ze;st===void 0&&(st=Xe==null?void 0:Xe[E||j.label]),nt===void 0&&(nt=(Ze=Xe==null?void 0:Xe.key)!==null&&Ze!==void 0?Ze:Ae),xt=Xe==null?void 0:Xe.disabled,Ft=Xe==null?void 0:Xe.title;}return {label:st,value:Ae,key:nt,disabled:xt,title:Ft}})},[j,E,re]),oe=Dt(N,{value:M}),ce=Z(oe,2),q=ce[0],ne=ce[1],J=f__namespace.useMemo(function(){var se,Se=te(q);return r==="combobox"&&MD((se=Se[0])===null||se===void 0?void 0:se.value)?[]:Se},[q,te,r]),he=XD(J,re),me=Z(he,2),pe=me[0],_e=me[1],Be=f__namespace.useMemo(function(){if(!r&&pe.length===1){var se=pe[0];if(se.value===null&&(se.label===null||se.label===void 0))return []}return pe.map(function(Se){var Me;return ee(ee({},Se),{},{label:(Me=Se.label)!==null&&Me!==void 0?Me:Se.value})})},[r,pe]),Ne=f__namespace.useMemo(function(){return new Set(pe.map(function(se){return se.value}))},[pe]);f__namespace.useEffect(function(){if(r==="combobox"){var se,Se=(se=pe[0])===null||se===void 0?void 0:se.value;U(TD(Se)?String(Se):"");}},[pe]);var ae=gb(function(se,Se){var Me,Ae=Se??se;return Me={},Q(Me,j.value,se),Q(Me,j.label,Ae),Me}),ue=f__namespace.useMemo(function(){if(r!=="tags")return ve;var se=Qe(ve),Se=function(Ae){return re.has(Ae)};return Qe(pe).sort(function(Me,Ae){return Me.value2&&arguments[2]!==void 0?arguments[2]:{},Ae=Me.source,st=Ae===void 0?"keyboard":Ae;dt(Se),a&&r==="combobox"&&se!==null&&st==="keyboard"&&ke(String(se));},[a,r]),Ce=function(Se,Me,Ae){var st=function(){var Mt,Ye=_e(Se);return [T?{label:Ye==null?void 0:Ye[j.label],value:Se,key:(Mt=Ye==null?void 0:Ye.key)!==null&&Mt!==void 0?Mt:Se}:Se,jf(Ye)]};if(Me&&h){var nt=st(),xt=Z(nt,2),Ft=xt[0],Wt=xt[1];h(Ft,Wt);}else if(!Me&&g&&Ae!=="clear"){var Xe=st(),Ze=Z(Xe,2),Ge=Ze[0],mt=Ze[1];g(Ge,mt);}},fe=gb(function(se,Se){var Me,Ae=W?Se.selected:!0;Ae?Me=W?[].concat(Qe(pe),[se]):[se]:Me=pe.filter(function(st){return st.value!==se}),Oe(Me),Ce(se,Ae),r==="combobox"?ke(""):(!Bf||m)&&(U(""),ke(""));}),Pe=function(Se,Me){Oe(Se);var Ae=Me.type,st=Me.values;(Ae==="remove"||Ae==="clear")&&st.forEach(function(nt){Ce(nt.value,!1,Ae);});},Fe=function(Se,Me){if(U(Se),ke(null),Me.source==="submit"){var Ae=(Se||"").trim();if(Ae){var st=Array.from(new Set([].concat(Qe(Ne),[Ae])));Oe(st),Ce(Ae,!0),U("");}return}Me.source!=="blur"&&(r==="combobox"&&Oe(Se),u==null||u(Se));},Te=function(Se){var Me=Se;r!=="tags"&&(Me=Se.map(function(st){var nt=de.get(st);return nt==null?void 0:nt.value}).filter(function(st){return st!==void 0}));var Ae=Array.from(new Set([].concat(Qe(Ne),Qe(Me))));Oe(Ae),Ae.forEach(function(st){Ce(st,!0);});},xe=f__namespace.useMemo(function(){var se=O!==!1&&p!==!1;return ee(ee({},Y),{},{flattenOptions:Le,onActiveValue:ge,defaultActiveFirstOption:Re,onSelect:fe,menuItemSelectedIcon:w,rawValues:Ne,fieldNames:j,virtual:se,direction:_,listHeight:R,listItemHeight:P,childrenAsData:B})},[Y,Le,ge,Re,fe,w,Ne,j,O,p,R,P,B]);return f__namespace.createElement(_S.Provider,{value:xe},f__namespace.createElement(KD,Ee({},z,{id:H,prefixCls:i,ref:t,omitDomProps:$z,mode:r,displayValues:Be,onDisplayValuesChange:Pe,direction:_,searchValue:G,onSearch:Fe,autoClearSearchValue:m,onSearchSplit:Te,dropdownMatchSelectWidth:p,OptionList:TS,emptyOptions:!Le.length,activeValue:$e,activeDescendantId:"".concat(H,"_list_").concat(qe)})))}),Uh=Oz;Uh.Option=Vh;Uh.OptGroup=Wh;const Iz=()=>{const[,e]=Xr(),n=new Ut(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return f__namespace.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},f__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},f__namespace.createElement("g",{transform:"translate(24 31.67)"},f__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),f__namespace.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),f__namespace.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),f__namespace.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),f__namespace.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),f__namespace.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),f__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},f__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),f__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Pz=Iz,Rz=()=>{const[,e]=Xr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=f.useMemo(()=>({borderColor:new Ut(t).onBackground(o).toHexShortString(),shadowColor:new Ut(n).onBackground(o).toHexShortString(),contentColor:new Ut(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return f__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},f__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},f__namespace.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),f__namespace.createElement("g",{fillRule:"nonzero",stroke:i},f__namespace.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),f__namespace.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},_z=Rz,Tz=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}}}}},Mz=Bt("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=ct(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [Tz(r)]});var Nz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:o=MS,description:i,children:a,imageStyle:s,style:l}=e,c=Nz(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:m}=f__namespace.useContext(Je),h=u("empty",r),[g,v]=Mz(h),[p]=Zi("Empty"),b=typeof i<"u"?i:p==null?void 0:p.description,y=typeof b=="string"?b:"empty";let S=null;return typeof o=="string"?S=f__namespace.createElement("img",{alt:y,src:o}):S=o,g(f__namespace.createElement("div",Object.assign({className:F(v,h,m==null?void 0:m.className,{[`${h}-normal`]:o===NS,[`${h}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),l)},c),f__namespace.createElement("div",{className:`${h}-image`,style:s},S),b&&f__namespace.createElement("div",{className:`${h}-description`},b),a&&f__namespace.createElement("div",{className:`${h}-footer`},a)))};Gh.PRESENTED_IMAGE_DEFAULT=MS;Gh.PRESENTED_IMAGE_SIMPLE=NS;const ma=Gh,kz=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(Je),r=n("empty");switch(t){case"Table":case"List":return f.createElement(ma,{image:ma.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f.createElement(ma,{image:ma.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return f.createElement(ma,null)}},kS=kz,Az=e=>{const{controlPaddingHorizontal:t,controlHeight:n,fontSize:r,lineHeight:o}=e;return {position:"relative",display:"block",minHeight:n,padding:`${(n-r*o)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:o,boxSizing:"border-box"}},Lz=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},Rt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` ${o}${s}bottomLeft, ${i}${s}bottomLeft `]:{animationName:rh},[` ${o}${s}topLeft, ${i}${s}topLeft, ${o}${s}topRight, ${i}${s}topRight `]:{animationName:ih},[`${a}${s}bottomLeft`]:{animationName:oh},[` ${a}${s}topLeft, ${a}${s}topRight `]:{animationName:ah},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},Az(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"},Do),"&-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"}})},ho(e,"slide-up"),ho(e,"slide-down"),kl(e,"move-up"),kl(e,"move-down")]},Dz=Lz,fi=2,AS=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return [o,i]};function yd(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=AS(e),s=t?`${n}-${t}`:"";return {[`${n}-multiple${s}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-fi}px ${fi*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:`${fi}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:fi,marginBottom:fi,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:fi*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({},Go()),{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 zz=e=>{const{componentCls:t}=e,n=ct(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=ct(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=AS(e);return [yd(e),yd(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},yd(r,"lg")]},jz=zz;function Cd(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-e.lineWidth*2,a=Math.ceil(e.fontSize*1.25),s=t?`${n}-${t}`:"";return {[`${n}-single${s}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},Rt(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 Bz(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [Cd(e),Cd(ct(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder `]:{paddingInlineEnd:e.fontSize*1.5}}}},Cd(ct(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Hz=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"}}}},Sd=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,s=n?{[`${r}-selector`]:{borderColor:o}}:{};return {[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},Fz=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"}}}},Wz=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return {[t]:Object.assign(Object.assign({},Rt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},Hz(e)),Fz(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Do),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},Do),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},Go()),{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}}}},Vz=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%"}}},Wz(e),Bz(e),jz(e),Dz(e),{[`${t}-rtl`]:{direction:"rtl"}},Sd(t,ct(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),Sd(`${t}-status-error`,ct(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),Sd(`${t}-status-warning`,ct(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Uc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Uz=Bt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=ct(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return [Vz(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Gz=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 Kz(e,t){return e||Gz(t)}function Xz(e,t){return t!==void 0?t:e!==null}var qz={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 Yz=qz;var Zz=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:Yz}))};const Qz=f__namespace.forwardRef(Zz);var Jz={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const ej=Jz;var tj=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:ej}))};const Kh=f__namespace.forwardRef(tj);var nj={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 rj=nj;var oj=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:rj}))};const Xh=f__namespace.forwardRef(oj);function ij(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:m}=e;const h=n??f__namespace.createElement(Kh,null),g=y=>t===null&&!s&&!d?null:f__namespace.createElement(f__namespace.Fragment,null,c!==!1&&y,s&&u);let v=null;if(t!==void 0)v=g(t);else if(i)v=g(f__namespace.createElement(dh,{spin:!0}));else {const y=`${l}-suffix`;v=S=>{let{open:E,showSearch:C}=S;return g(E&&C?f__namespace.createElement(Xh,{className:y}):f__namespace.createElement(gh,{className:y}))};}let p=null;r!==void 0?p=r:a?p=f__namespace.createElement(Qz,null):p=null;let b=null;return o!==void 0?b=o:b=f__namespace.createElement(qc,null),{clearIcon:h,suffixIcon:v,itemIcon:p,removeIcon:b}}var aj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:m=24,size:h,disabled:g,notFoundContent:v,status:p,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:S,direction:E,style:C,allowClear:$}=e,x=aj(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:w,getPrefixCls:O,renderEmpty:_,direction:A,virtual:R,popupMatchSelectWidth:I,popupOverflow:P,select:M}=f__namespace.useContext(Je),N=O("select",r),T=O(),L=E??A,{compactSize:z,compactItemClassnames:H}=Ji(N,L),[W,B]=Uz(N),V=f__namespace.useMemo(()=>{const{mode:ue}=x;if(ue!=="combobox")return ue===LS?"combobox":ue},[x.mode]),j=V==="multiple"||V==="tags",X=Xz(x.suffixIcon,x.showArrow),K=(n=S??y)!==null&&n!==void 0?n:I,{status:G,hasFeedback:U,isFormItemInput:Y,feedbackIcon:re}=f__namespace.useContext(nr),de=hs(G,p);let ve;v!==void 0?ve=v:V==="combobox"?ve=null:ve=(_==null?void 0:_("Select"))||f__namespace.createElement(kS,{componentName:"Select"});const{suffixIcon:te,itemIcon:oe,removeIcon:ce,clearIcon:q}=ij(Object.assign(Object.assign({},x),{multiple:j,hasFeedback:U,feedbackIcon:re,showSuffixIcon:X,prefixCls:N,showArrow:x.showArrow,componentName:"Select"})),ne=$===!0?{clearIcon:q}:$,J=Cn(x,["suffixIcon","itemIcon"]),he=F(l||c,{[`${N}-dropdown-${L}`]:L==="rtl"},a,B),me=Wn(ue=>{var be;return (be=h??z)!==null&&be!==void 0?be:ue}),pe=f__namespace.useContext(_r),_e=g??pe,Be=F({[`${N}-lg`]:me==="large",[`${N}-sm`]:me==="small",[`${N}-rtl`]:L==="rtl",[`${N}-borderless`]:!o,[`${N}-in-form-item`]:Y},dr(N,de,U),H,M==null?void 0:M.className,i,a,B),Ne=f__namespace.useMemo(()=>d!==void 0?d:L==="rtl"?"bottomRight":"bottomLeft",[d,L]),ae=Kz(b,P);return W(f__namespace.createElement(Uh,Object.assign({ref:t,virtual:R,showSearch:M==null?void 0:M.showSearch},J,{style:Object.assign(Object.assign({},M==null?void 0:M.style),C),dropdownMatchSelectWidth:K,builtinPlacements:ae,transitionName:kc(T,"slide-up",x.transitionName),listHeight:u,listItemHeight:m,mode:V,prefixCls:N,placement:Ne,direction:L,suffixIcon:te,menuItemSelectedIcon:oe,removeIcon:ce,allowClear:ne,notFoundContent:ve,className:Be,getPopupContainer:s||w,dropdownClassName:he,disabled:_e})))},ra=f__namespace.forwardRef(sj),lj=Bh(ra);ra.SECRET_COMBOBOX_MODE_DO_NOT_USE=LS;ra.Option=Vh;ra.OptGroup=Wh;ra._InternalPanelDoNotUseOrYouWillBeFired=lj;const bs=ra;var Lr;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(Lr||(Lr={}));const cj=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:i,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,u]=f.useState(o);return f.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),f.createElement(Mf,{className:F(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),i==null||i(d);}})},Ao=cj,uj=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=f.useState(bn(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=l=>{const c=i.toHsb();c.a=(l||0)/100;const u=bn(c);n||a(u),r==null||r(u);};return f.createElement(Ao,{value:Wl(i),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},dj=uj,fj=e=>{const{getPrefixCls:t,direction:n}=f.useContext(Je),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=wh(a),c=F(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),u=f.useContext(nr),d=f.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(f__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},f__namespace.createElement(nr.Provider,{value:d},e.children)))},mj=fj;function DS(e,t){const n=f.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"));}));};return f.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function hj(e){return !!(e.prefix||e.suffix||e.allowClear)}var gj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:m,addonBefore:h,className:g,style:v,styles:p,rootClassName:b,onChange:y,classNames:S}=e,E=gj(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:C,direction:$,input:x}=f.useContext(Je),w=C("input",r),O=f.useRef(null),[_,A]=wh(w),{compactSize:R,compactItemClassnames:I}=Ji(w,$),P=Wn(Y=>{var re;return (re=a??R)!==null&&re!==void 0?re:Y}),M=f.useContext(_r),N=s??M,{status:T,hasFeedback:L,feedbackIcon:z}=f.useContext(nr),H=hs(T,i),W=hj(e)||!!L,B=f.useRef(W);f.useEffect(()=>{W&&B.current,B.current=W;},[W]);const V=DS(O,!0),j=Y=>{V(),l==null||l(Y);},X=Y=>{V(),c==null||c(Y);},K=Y=>{V(),y==null||y(Y);},G=(L||u)&&f.createElement(f.Fragment,null,u,L&&z);let U;return typeof d=="object"&&(d!=null&&d.clearIcon)?U=d:d&&(U={clearIcon:f.createElement(Kh,null)}),_(f.createElement(iA,Object.assign({ref:xn(t,O),prefixCls:w,autoComplete:x==null?void 0:x.autoComplete},E,{disabled:N,onBlur:j,onFocus:X,style:Object.assign(Object.assign({},x==null?void 0:x.style),v),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),p),suffix:G,allowClear:U,className:F(g,b,I,x==null?void 0:x.className),onChange:K,addonAfter:m&&f.createElement(Mi,null,f.createElement(Xa,{override:!0,status:!0},m)),addonBefore:h&&f.createElement(Mi,null,f.createElement(Xa,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign(Object.assign({},S),x==null?void 0:x.classNames),{input:F({[`${w}-sm`]:P==="small",[`${w}-lg`]:P==="large",[`${w}-rtl`]:$==="rtl",[`${w}-borderless`]:!o},!W&&dr(w,H),S==null?void 0:S.input,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.input,A)}),classes:{affixWrapper:F({[`${w}-affix-wrapper-sm`]:P==="small",[`${w}-affix-wrapper-lg`]:P==="large",[`${w}-affix-wrapper-rtl`]:$==="rtl",[`${w}-affix-wrapper-borderless`]:!o},dr(`${w}-affix-wrapper`,H,L),A),wrapper:F({[`${w}-group-rtl`]:$==="rtl"},A),group:F({[`${w}-group-wrapper-sm`]:P==="small",[`${w}-group-wrapper-lg`]:P==="large",[`${w}-group-wrapper-rtl`]:$==="rtl",[`${w}-group-wrapper-disabled`]:N},dr(`${w}-group-wrapper`,H,L),A)}})))}),qh=pj;var bj={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 yj=bj;var Cj=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:yj}))};const Sj=f__namespace.forwardRef(Cj);var wj={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 xj=wj;var $j=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:xj}))};const Ej=f__namespace.forwardRef($j);var Oj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe?f__namespace.createElement(Ej,null):f__namespace.createElement(Sj,null),Pj={click:"onClick",hover:"onMouseOver"},Rj=f__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=f.useState(()=>r?n.visible:!1),a=f.useRef(null);f__namespace.useEffect(()=>{r&&i(n.visible);},[r,n]);const s=DS(a),l=()=>{const{disabled:C}=e;C||(o&&s(),i($=>{var x;const w=!$;return typeof n=="object"&&((x=n.onVisibleChange)===null||x===void 0||x.call(n,w)),w}));},c=C=>{const{action:$="click",iconRender:x=Ij}=e,w=Pj[$]||"",O=x(o),_={[w]:l,className:`${C}-icon`,key:"passwordIcon",onMouseDown:A=>{A.preventDefault();},onMouseUp:A=>{A.preventDefault();}};return f__namespace.cloneElement(f__namespace.isValidElement(O)?O:f__namespace.createElement("span",null,O),_)},{className:u,prefixCls:d,inputPrefixCls:m,size:h}=e,g=Oj(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=f__namespace.useContext(Je),p=v("input",m),b=v("input-password",d),y=n&&c(b),S=F(b,u,{[`${b}-${h}`]:!!h}),E=Object.assign(Object.assign({},Cn(g,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:S,prefixCls:p,suffix:y});return h&&(E.size=h),f__namespace.createElement(qh,Object.assign({ref:xn(t,a)},E))}),_j=Rj;var Tj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:m,onCompositionStart:h,onCompositionEnd:g}=e,v=Tj(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=f__namespace.useContext(Je),y=f__namespace.useRef(!1),S=p("input-search",n),E=p("input",r),{compactSize:C}=Ji(S,b),$=Wn(H=>{var W;return (W=i??C)!==null&&W!==void 0?W:H}),x=f__namespace.useRef(null),w=H=>{H&&H.target&&H.type==="click"&&d&&d(H.target.value,H),m&&m(H);},O=H=>{var W;document.activeElement===((W=x.current)===null||W===void 0?void 0:W.input)&&H.preventDefault();},_=H=>{var W,B;d&&d((B=(W=x.current)===null||W===void 0?void 0:W.input)===null||B===void 0?void 0:B.value,H);},A=H=>{y.current||c||_(H);},R=typeof s=="boolean"?f__namespace.createElement(Xh,null):null,I=`${S}-button`;let P;const M=s||{},N=M.type&&M.type.__ANT_BUTTON===!0;N||M.type==="button"?P=yn(M,Object.assign({onMouseDown:O,onClick:H=>{var W,B;(B=(W=M==null?void 0:M.props)===null||W===void 0?void 0:W.onClick)===null||B===void 0||B.call(W,H),_(H);},key:"enterButton"},N?{className:I,size:$}:{})):P=f__namespace.createElement(Xt,{className:I,type:s?"primary":void 0,size:$,disabled:u,key:"enterButton",onMouseDown:O,onClick:_,loading:c,icon:R},s),l&&(P=[P,yn(l,{key:"addonAfter"})]);const T=F(S,{[`${S}-rtl`]:b==="rtl",[`${S}-${$}`]:!!$,[`${S}-with-button`]:!!s},o),L=H=>{y.current=!0,h==null||h(H);},z=H=>{y.current=!1,g==null||g(H);};return f__namespace.createElement(qh,Object.assign({ref:xn(x,t),onPressEnter:A},v,{size:$,onCompositionStart:L,onCompositionEnd:z,prefixCls:E,addonAfter:P,suffix:a,onChange:w,className:T,disabled:u}))}),Nj=Mj;var kj=` 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; `,Aj=["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"],wd={},Xn;function Lj(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&&wd[n])return wd[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=Aj.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(wd[n]=l),l}function Dj(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;Xn||(Xn=document.createElement("textarea"),Xn.setAttribute("tab-index","-1"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn)),e.getAttribute("wrap")?Xn.setAttribute("wrap",e.getAttribute("wrap")):Xn.removeAttribute("wrap");var o=Lj(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Xn.setAttribute("style","".concat(l,";").concat(kj)),Xn.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,m=Xn.scrollHeight;if(s==="border-box"?m+=a:s==="content-box"&&(m-=i),n!==null||r!==null){Xn.value=" ";var h=Xn.scrollHeight-i;n!==null&&(c=h*n,s==="border-box"&&(c=c+i+a),m=Math.max(c,m)),r!==null&&(u=h*r,s==="border-box"&&(u=u+i+a),d=m>u?"":"hidden",m=Math.min(u,m));}var g={height:m,overflowY:d,resize:"none"};return c&&(g.minHeight=c),u&&(g.maxHeight=u),g}var zj=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],xd=0,$d=1,Ed=2,jj=f__namespace.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var m=et(n,zj),h=Dt(o,{value:i,postState:function(j){return j??""}}),g=Z(h,2),v=g[0],p=g[1],b=function(j){p(j.target.value),d==null||d(j);},y=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var S=f__namespace.useMemo(function(){return a&&at(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),E=Z(S,2),C=E[0],$=E[1],x=!!a,w=function(){try{if(document.activeElement===y.current){var j=y.current,X=j.selectionStart,K=j.selectionEnd,G=j.scrollTop;y.current.setSelectionRange(X,K),y.current.scrollTop=G;}}catch{}},O=f__namespace.useState(Ed),_=Z(O,2),A=_[0],R=_[1],I=f__namespace.useState(),P=Z(I,2),M=P[0],N=P[1],T=function(){R(xd);};Vt(function(){x&&T();},[i,C,$,x]),Vt(function(){if(A===xd)R($d);else if(A===$d){var V=Dj(y.current,!1,C,$);R(Ed),N(V);}else w();},[A]);var L=f__namespace.useRef(),z=function(){pt.cancel(L.current);},H=function(j){A===Ed&&(s==null||s(j),a&&(z(),L.current=pt(function(){T();})));};f__namespace.useEffect(function(){return z},[]);var W=x?M:null,B=ee(ee({},c),W);return (A===xd||A===$d)&&(B.overflowY="hidden",B.overflowX="hidden"),f__namespace.createElement(Or,{onResize:H,disabled:!(a||s)},f__namespace.createElement("textarea",Ee({},m,{ref:y,style:B,className:F(r,l,Q({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:b})))}),Bj=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function zS(e,t){return Qe(e||"").slice(0,t).join("")}function bb(e,t,n,r){var o=n;return e?o=zS(n,r):Qe(t||"").lengthr&&(o=t),o}var Hj=f.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,m=e.suffix,h=e.prefixCls,g=h===void 0?"rc-textarea":h,v=e.classes,p=e.showCount,b=e.className,y=e.style,S=e.disabled,E=e.hidden,C=e.classNames,$=e.styles,x=e.onResize,w=et(e,Bj),O=Dt(r,{value:o,defaultValue:r}),_=Z(O,2),A=_[0],R=_[1],I=f.useRef(null),P=f.useState(!1),M=Z(P,2),N=M[0],T=M[1],L=f.useState(!1),z=Z(L,2),H=z[0],W=z[1],B=f.useRef(),V=f.useRef(0),j=f.useState(null),X=Z(j,2),K=X[0],G=X[1],U=function(){var ae;(ae=I.current)===null||ae===void 0||ae.textArea.focus();};f.useImperativeHandle(t,function(){return {resizableTextArea:I.current,focus:U,blur:function(){var ae;(ae=I.current)===null||ae===void 0||ae.textArea.blur();}}}),f.useEffect(function(){T(function(Ne){return !S&&Ne});},[S]);var Y=Number(c)>0,re=function(ae){W(!0),B.current=A,V.current=ae.currentTarget.selectionStart,u==null||u(ae);},de=function(ae){W(!1);var ue=ae.currentTarget.value;if(Y){var be,we=V.current>=c+1||V.current===((be=B.current)===null||be===void 0?void 0:be.length);ue=bb(we,B.current,ue,c);}ue!==A&&(R(ue),Oa(ae.currentTarget,ae,s,ue)),d==null||d(ae);},ve=function(ae){var ue=ae.target.value;if(!H&&Y){var be=ae.target.selectionStart>=c+1||ae.target.selectionStart===ue.length||!ae.target.selectionStart;ue=bb(be,A,ue,c);}R(ue),Oa(ae.currentTarget,ae,s,ue);},te=function(ae){var ue=w.onPressEnter,be=w.onKeyDown;ae.key==="Enter"&&ue&&ue(ae),be==null||be(ae);},oe=function(ae){T(!0),i==null||i(ae);},ce=function(ae){T(!1),a==null||a(ae);},q=function(ae){var ue;R(""),U(),Oa((ue=I.current)===null||ue===void 0?void 0:ue.textArea,ae,s);},ne=Tf(A);!H&&Y&&o==null&&(ne=zS(ne,c));var J=m,he;if(p){var me=Qe(ne).length;at(p)==="object"?he=p.formatter({value:ne,count:me,maxLength:c}):he="".concat(me).concat(Y?" / ".concat(c):""),J=f.createElement(f.Fragment,null,J,f.createElement("span",{className:F("".concat(g,"-data-count"),C==null?void 0:C.count),style:$==null?void 0:$.count},he));}var pe=function(ae){var ue;x==null||x(ae),(ue=I.current)!==null&&ue!==void 0&&ue.textArea.style.height&&G(!0);},_e=!w.autoSize&&!p&&!l,Be=f.createElement(bh,{value:ne,allowClear:l,handleReset:q,suffix:J,prefixCls:g,classes:{affixWrapper:F(v==null?void 0:v.affixWrapper,(n={},Q(n,"".concat(g,"-show-count"),p),Q(n,"".concat(g,"-textarea-allow-clear"),l),n))},disabled:S,focused:N,className:b,style:ee(ee({},y),K&&!_e?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof he=="string"?he:void 0}},hidden:E,inputElement:f.createElement(jj,Ee({},w,{onKeyDown:te,onChange:ve,onFocus:oe,onBlur:ce,onCompositionStart:re,onCompositionEnd:de,className:C==null?void 0:C.textarea,style:ee(ee({},$==null?void 0:$.textarea),{},{resize:y==null?void 0:y.resize}),disabled:S,prefixCls:g,onResize:pe,ref:I}))});return Be}),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{const{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c}=e,u=Fj(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:d,direction:m}=f__namespace.useContext(Je),h=Wn(o),g=f__namespace.useContext(_r),v=i??g,{status:p,hasFeedback:b,feedbackIcon:y}=f__namespace.useContext(nr),S=hs(p,a),E=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>{var O;return {resizableTextArea:(O=E.current)===null||O===void 0?void 0:O.resizableTextArea,focus:_=>{var A,R;vj((R=(A=E.current)===null||A===void 0?void 0:A.resizableTextArea)===null||R===void 0?void 0:R.textArea,_);},blur:()=>{var _;return (_=E.current)===null||_===void 0?void 0:_.blur()}}});const C=d("input",n);let $;typeof s=="object"&&(s!=null&&s.clearIcon)?$=s:s&&($={clearIcon:f__namespace.createElement(Kh,null)});const[x,w]=wh(C);return x(f__namespace.createElement(Hj,Object.assign({},u,{disabled:v,allowClear:$,classes:{affixWrapper:F(`${C}-textarea-affix-wrapper`,{[`${C}-affix-wrapper-rtl`]:m==="rtl",[`${C}-affix-wrapper-borderless`]:!r,[`${C}-affix-wrapper-sm`]:h==="small",[`${C}-affix-wrapper-lg`]:h==="large",[`${C}-textarea-show-count`]:l},dr(`${C}-affix-wrapper`,S),w)},classNames:Object.assign(Object.assign({},c),{textarea:F({[`${C}-borderless`]:!r,[`${C}-sm`]:h==="small",[`${C}-lg`]:h==="large"},dr(C,S),w,c==null?void 0:c.textarea)}),prefixCls:C,suffix:b&&f__namespace.createElement("span",{className:`${C}-textarea-suffix`},y),showCount:l,ref:E})))}),Vj=Wj,ys=qh;ys.Group=mj;ys.Search=Nj;ys.TextArea=Vj;ys.Password=_j;const jS=ys,Uj=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,yb=e=>Uj.test(`#${e}`),Gj=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[i,a]=f.useState(n==null?void 0:n.toHex());f.useEffect(()=>{const l=n==null?void 0:n.toHex();yb(l)&&n&&a(ml(l));},[n]);const s=l=>{const c=l.target.value;a(ml(c)),yb(ml(c,!0))&&(r==null||r(bn(c)));};return f.createElement(jS,{className:o,value:i,prefix:"#",onChange:s,size:"small"})},Kj=Gj,Xj=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=f.useState(bn(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const u=i.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=bn(u);n||a(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(Ao,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:l=>hl(l||0).toString(),onChange:l=>s(Number(l),"h")}),f.createElement(Ao,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${hl(l||0)}%`,onChange:l=>s(Number(l),"s")}),f.createElement(Ao,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${hl(l||0)}%`,onChange:l=>s(Number(l),"b")}))},qj=Xj,Yj=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=f.useState(bn(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const u=i.toRgb();u[c]=l||0;const d=bn(u);n||a(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(Ao,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),f.createElement(Ao,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),f.createElement(Ao,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},Zj=Yj,Qj=[Lr.hex,Lr.hsb,Lr.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),Jj=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:i,onChange:a}=e,[s,l]=Dt(Lr.hex,{value:n,onChange:i}),c=`${t}-input`,u=m=>{l(m);},d=f.useMemo(()=>{const m={value:r,prefixCls:t,onChange:a};switch(s){case Lr.hsb:return f.createElement(qj,Object.assign({},m));case Lr.rgb:return f.createElement(Zj,Object.assign({},m));case Lr.hex:default:return f.createElement(Kj,Object.assign({},m))}},[s,t,r,a]);return f.createElement("div",{className:`${c}-container`},f.createElement(bs,{value:s,bordered:!1,getPopupContainer:m=>m,popupMatchSelectWidth:68,placement:"bottomRight",onChange:u,className:`${t}-format-select`,size:"small",options:Qj}),f.createElement("div",{className:c},d),!o&&f.createElement(dj,{prefixCls:t,value:r,onChange:a}))},e8=Jj;var t8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const e=f.useContext(vS),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:i,onChange:a,onClear:s,onChangeComplete:l}=e,c=t8(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return f.createElement(f.Fragment,null,r&&f.createElement(bS,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:u=>{a==null||a(u),s==null||s();}},c)),f.createElement(hD,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:i,onChange:(u,d)=>a==null?void 0:a(u,d,!0),onChangeComplete:l}),f.createElement(e8,Object.assign({value:o,onChange:a,prefixCls:t,disabledAlpha:i},c)))},Cb=n8;var r8={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 o8=r8;var i8=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:o8}))};const zi=f__namespace.forwardRef(i8);var BS=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=f.useState(l||o),d=Z(u,2),m=d[0],h=d[1];return f.useEffect(function(){(o||l)&&h(!0);},[o,l]),m?f.createElement("div",{ref:t,className:F("".concat(r,"-content"),(n={},Q(n,"".concat(r,"-content-active"),l),Q(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},f.createElement("div",{className:"".concat(r,"-content-box")},s)):null});BS.displayName="PanelContent";var a8=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],HS=f.forwardRef(function(e,t){var n,r,o=e.showArrow,i=o===void 0?!0:o,a=e.headerClass,s=e.isActive,l=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,m=e.collapsible,h=e.accordion,g=e.panelKey,v=e.extra,p=e.header,b=e.expandIcon,y=e.openMotion,S=e.destroyInactivePanel,E=e.children,C=et(e,a8),$=m==="disabled",x=m==="header",w=m==="icon",O=v!=null&&typeof v!="boolean",_=function(){l==null||l(g);},A=function(T){(T.key==="Enter"||T.keyCode===le.ENTER||T.which===le.ENTER)&&_();},R=typeof b=="function"?b(e):f.createElement("i",{className:"arrow"});R&&(R=f.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(m)?_:void 0},R));var I=F((n={},Q(n,"".concat(d,"-item"),!0),Q(n,"".concat(d,"-item-active"),s),Q(n,"".concat(d,"-item-disabled"),$),n),u),P=F((r={},Q(r,"".concat(d,"-header"),!0),Q(r,"headerClass",a),Q(r,"".concat(d,"-header-collapsible-only"),x),Q(r,"".concat(d,"-icon-collapsible-only"),w),r)),M={className:P,"aria-expanded":s,"aria-disabled":$,onKeyDown:A};return !x&&!w&&(M.onClick=_,M.role=h?"tab":"button",M.tabIndex=$?-1:0),f.createElement("div",Ee({},C,{ref:t,className:I}),f.createElement("div",M,i&&R,f.createElement("span",{className:"".concat(d,"-header-text"),onClick:m==="header"?_:void 0},p),O&&f.createElement("div",{className:"".concat(d,"-extra")},v)),f.createElement(qr,Ee({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:S}),function(N,T){var L=N.className,z=N.style;return f.createElement(BS,{ref:T,prefixCls:d,className:L,style:z,isActive:s,forceRender:c,role:h?"tabpanel":void 0},E)}))}),s8=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],l8=function(t,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(d,m){var h=d.children,g=d.label,v=d.key,p=d.collapsible,b=d.onItemClick,y=d.destroyInactivePanel,S=et(d,s8),E=String(v??m),C=p??i,$=y??a,x=function(_){C!=="disabled"&&(s(_),b==null||b(_));},w=!1;return o?w=l[0]===E:w=l.indexOf(E)>-1,f.createElement(HS,Ee({},S,{prefixCls:r,key:E,panelKey:E,isActive:w,accordion:o,openMotion:c,expandIcon:u,header:g,collapsible:C,onItemClick:x,destroyInactivePanel:$}),h)})},c8=function(t,n,r){if(!t)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,d=r.expandIcon,m=t.key||String(n),h=t.props,g=h.header,v=h.headerClass,p=h.destroyInactivePanel,b=h.collapsible,y=h.onItemClick,S=!1;i?S=c[0]===m:S=c.indexOf(m)>-1;var E=b??a,C=function(w){E!=="disabled"&&(l(w),y==null||y(w));},$={key:m,panelKey:m,header:g,headerClass:v,isActive:S,prefixCls:o,destroyInactivePanel:p??s,openMotion:u,accordion:i,children:t.props.children,onItemClick:C,expandIcon:d,collapsible:E};return typeof t.type=="string"?t:(Object.keys($).forEach(function(x){typeof $[x]>"u"&&delete $[x];}),f.cloneElement(t,$))};function u8(e,t,n){return Array.isArray(e)?l8(e,n):tr(t).map(function(r,o){return c8(r,o,n)})}function d8(e){var t=e;if(!Array.isArray(t)){var n=at(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var f8=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,a=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,m=e.expandIcon,h=e.activeKey,g=e.defaultActiveKey,v=e.onChange,p=e.items,b=F(r,l),y=Dt([],{value:h,onChange:function(O){return v==null?void 0:v(O)},defaultValue:g,postState:d8}),S=Z(y,2),E=S[0],C=S[1],$=function(O){return C(function(){if(s)return E[0]===O?[]:[O];var _=E.indexOf(O),A=_>-1;return A?E.filter(function(R){return R!==O}):[].concat(Qe(E),[O])})};Rr(!c,"`children` will be removed in next major version. Please use `items` instead.");var x=u8(p,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:m,collapsible:u,destroyInactivePanel:i,onItemClick:$,activeKey:E});return f.createElement("div",{ref:t,className:b,style:a,role:s?"tablist":void 0},x)});const Yh=Object.assign(f8,{Panel:HS});Yh.Panel;const m8=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(Je),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=F({[`${a}-no-arrow`]:!i},o);return f__namespace.createElement(Yh.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),h8=m8,g8=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:m,colorText:h,colorTextHeading:g,colorTextDisabled:v,fontSize:p,fontSizeLG:b,lineHeight:y,marginSM:S,paddingSM:E,paddingLG:C,paddingXS:$,motionDurationSlow:x,fontSizeIcon:w}=e,O=`${u}px ${d} ${m}`;return {[t]:Object.assign(Object.assign({},Rt(e)),{backgroundColor:i,border:O,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,"&: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:E,color:g,lineHeight:y,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:p*y,display:"flex",alignItems:"center",paddingInlineEnd:S,marginInlineStart:r-E},[`${t}-arrow`]:Object.assign(Object.assign({},Go()),{fontSize:w,svg:{transition:`transform ${x}`}}),[`${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:O,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:E-$}},[`> ${t}-content > ${t}-content-box`]:{padding:E}}},"&-large":{[`> ${t}-item`]:{fontSize:b,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:b*y,marginInlineStart:C-r}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${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:S}}}}})}},v8=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},p8=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}}}},b8=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}}}}}},y8=Bt("Collapse",e=>{const t=ct(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 [g8(t),p8(t),b8(t),v8(t),M1(t)]}),C8=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=f__namespace.useContext(Je),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:m="start",children:h,expandIcon:g}=e,v=Wn(O=>{var _;return (_=d??O)!==null&&_!==void 0?_:"middle"}),p=n("collapse",i),b=n(),[y,S]=y8(p),E=f__namespace.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),C=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const _=g?g(O):f__namespace.createElement(zi,{rotate:O.isActive?90:void 0});return yn(_,()=>({className:F(_.props.className,`${p}-arrow`)}))},$=F(`${p}-icon-position-${E}`,{[`${p}-borderless`]:!c,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!u,[`${p}-${v}`]:v!=="middle"},o==null?void 0:o.className,a,s,S),x=Object.assign(Object.assign({},O1(b)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),w=f__namespace.useMemo(()=>h?tr(h).map((O,_)=>{var A,R;if(!((A=O.props)===null||A===void 0)&&A.disabled){const I=(R=O.key)!==null&&R!==void 0?R:String(_),{disabled:P,collapsible:M}=O.props,N=Object.assign(Object.assign({},Cn(O.props,["disabled"])),{key:I,collapsible:M??(P?"disabled":void 0)});return yn(O,N)}return O}):null,[h]);return y(f__namespace.createElement(Yh,Object.assign({ref:t,openMotion:x},Cn(e,["rootClassName"]),{expandIcon:C,prefixCls:p,className:$,style:Object.assign(Object.assign({},o==null?void 0:o.style),l)}),w))}),S8=Object.assign(C8,{Panel:h8}),Od=e=>e.map(t=>(t.colors=t.colors.map(bn),t)),w8=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Fl(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},x8=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=Zi("ColorPicker"),{token:{colorBgElevated:a}}=Ni.useToken(),[s]=Dt(Od(n),{value:Od(n),postState:Od}),l=`${t}-presets`,c=f.useMemo(()=>s.map(m=>`panel-${m.label}`),[s]),u=m=>{o==null||o(m);},d=s.map(m=>{var h;return {key:`panel-${m.label}`,label:f.createElement("div",{className:`${l}-label`},m==null?void 0:m.label),children:f.createElement("div",{className:`${l}-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=>f.createElement(Hh,{key:`preset-${g.toHexString()}`,color:bn(g).toRgbString(),prefixCls:t,className:F(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:w8(g,a)}),onClick:()=>u(g)})):f.createElement("span",{className:`${l}-empty`},i.presetEmpty))}});return f.createElement("div",{className:l},f.createElement(S8,{defaultActiveKey:c,ghost:!0,items:d}))},$8=x8,E8=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=f.useContext(pS);return Array.isArray(n)?f.createElement($8,{value:t,presets:n,prefixCls:e,onChange:r}):null},Sb=E8;var O8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:i,onClear:a}=e,s=O8(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),l=`${t}-inner-content`,c=Object.assign({prefixCls:t,value:o,onChange:i,onClear:a},s),u=f.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:i}),[t,o,n,i]),d=f.createElement(f.Fragment,null,f.createElement(Cb,null),Array.isArray(n)&&f.createElement(rD,{className:`${l}-divider`}),f.createElement(Sb,null));return f.createElement(gD,{value:c},f.createElement(vD,{value:u},f.createElement("div",{className:l},typeof r=="function"?r(d,{components:{Picker:Cb,Presets:Sb}}):d)))},P8=I8;var R8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{color:n,prefixCls:r,open:o,colorCleared:i,disabled:a,format:s,className:l,showText:c}=e,u=R8(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),d=`${r}-trigger`,m=f.useMemo(()=>i?f.createElement(bS,{prefixCls:r}):f.createElement(Hh,{prefixCls:r,color:n.toRgbString()}),[n,i,r]),h=()=>{const v=n.toHexString().toUpperCase(),p=Wl(n);switch(s){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 f.createElement("div",Object.assign({ref:t,className:F(d,l,{[`${d}-active`]:o,[`${d}-disabled`]:a})},u),m,c&&f.createElement("div",{className:`${d}-text`},g()))}),T8=_8;function wb(e){return e!==void 0}const M8=(e,t)=>{const{defaultValue:n,value:r}=t,[o,i]=f.useState(()=>{let a;return wb(r)?a=r:wb(n)?a=n:a=e,bn(a||"")});return f.useEffect(()=>{r&&i(bn(r));},[r]),[o,i]},N8=M8,FS=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),k8=(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},FS("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${i}px solid ${a}`,borderRadius:"inherit"}})}},xb=k8,A8=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder: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:s,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:u+a,fontSize:r,lineHeight:`${l}px`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${d}px`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:`${l-2*g}px`},[`${n}-input-prefix`]:{color:m}}}}}},L8=A8,D8=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:u,colorPickerSliderHeight:d}=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:`${l}px solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`,"&-sm":{width:u,height:u}},[`${t}-slider`]:{borderRadius:d/2,[`${t}-palette`]:{height:d},[`${t}-gradient`]:{borderRadius:d/2,boxShadow:o},"&-alpha":FS(`${d}px`,e.colorFillSecondary),"&-hue":{marginBottom:i}},[`${t}-slider-container`]:{display:"flex",gap:i,marginBottom:i,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},z8=D8,j8=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:m,marginXXS:h,paddingXS:g}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:a*l,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${g}px 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-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:u,border:`${c}px solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:i/13*5,height:i/13*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor: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}}}},B8=j8,Hf=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),H8=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},$b=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,red6:s}=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:s}})}},F8=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorBorderHover:o,colorWarningBorderHover:i,colorErrorOutline:a,colorWarningOutline:s}=e;return {[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},Hf(ct(e,{controlOutline:a})))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},Hf(ct(e,{controlOutline:s})))}}},W8=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return {[`&${t}-lg`]:{minWidth:n,height:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:l}}}},V8=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:i,colorTextDisabled:a,colorText:s,colorBgContainerDisabled:l,borderRadius:c,marginXS:u,marginSM:d,controlHeight:m,controlHeightSM:h,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:p,lineWidth:b,colorBorder:y,paddingXXS:S,fontSize:E}=e;return [{[t]:Object.assign({[`${t}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:n,"&-divider":{margin:`${d}px 0 ${u}px`},[`${t}-panel`]:Object.assign({},z8(e))},xb(e,p)),L8(e)),B8(e)),$b(e,v,{marginInlineStart:"auto",marginBottom:u})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:m,height:m,borderRadius:c,border:`${b}px solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${o}`,background:i,padding:S-b,[`${t}-trigger-text`]:{marginInlineStart:u,marginInlineEnd:u-(S-b),fontSize:E,color:s},"&-active":Object.assign(Object.assign({},Hf(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:a,background:l,cursor:"not-allowed","&:hover":{borderColor:g},[`${t}-trigger-text`]:{color:a}}},$b(e,h)),xb(e,h)),F8(e)),W8(e))},H8(e))}]},U8=Bt("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=ct(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 [V8(o)]}),Zh=e=>{const{value:t,defaultValue:n,format:r,allowClear:o=!1,presets:i,children:a,trigger:s="click",open:l,disabled:c,placement:u="bottomLeft",arrow:d=!0,panelRender:m,showText:h,style:g,className:v,size:p,rootClassName:b,styles:y,disabledAlpha:S=!1,onFormatChange:E,onChange:C,onClear:$,onOpenChange:x,onChangeComplete:w,getPopupContainer:O,autoAdjustOverflow:_=!0,destroyTooltipOnHide:A}=e,{getPrefixCls:R,direction:I,colorPicker:P}=f.useContext(Je),{token:M}=Ni.useToken(),[N,T]=N8(M.colorPrimary,{value:t,defaultValue:n}),[L,z]=Dt(!1,{value:l,postState:pe=>!c&&pe,onChange:x}),[H,W]=Dt(r,{value:r,onChange:E}),[B,V]=f.useState(!1),j=R("color-picker",bD),X=f.useMemo(()=>Wl(N)<100,[N]),{status:K}=f.useContext(nr),G=Wn(p),[U,Y]=U8(j),re={[`${j}-rtl`]:I},de=F(b,re),ve=F(dr(j,K),{[`${j}-sm`]:G==="small",[`${j}-lg`]:G==="large"},P==null?void 0:P.className,de,v,Y),te=F(j,re),oe=f.useRef(!0),ce=(pe,_e,Be)=>{let Ne=bn(pe);(B||(t===null||!t&&n===null))&&(V(!1),Wl(N)===0&&_e!=="alpha"&&(Ne=pd(Ne))),S&&X&&(Ne=pd(Ne)),Be?oe.current=!1:w==null||w(Ne),T(Ne),C==null||C(Ne,Ne.toHexString());},q=()=>{V(!0),$==null||$();},ne=pe=>{oe.current=!0;let _e=bn(pe);S&&X&&(_e=pd(pe)),w==null||w(_e);},J={open:L,trigger:s,placement:u,arrow:d,rootClassName:b,getPopupContainer:O,autoAdjustOverflow:_,destroyTooltipOnHide:A},he={prefixCls:j,color:N,allowClear:o,colorCleared:B,disabled:c,disabledAlpha:S,presets:i,panelRender:m,format:H,onFormatChange:W,onChangeComplete:ne},me=Object.assign(Object.assign({},P==null?void 0:P.style),g);return U(f.createElement(Fc,Object.assign({style:y==null?void 0:y.popup,overlayInnerStyle:y==null?void 0:y.popupOverlayInner,onOpenChange:pe=>{oe.current&&z(pe);},content:f.createElement(Xa,{override:!0,status:!0},f.createElement(P8,Object.assign({},he,{onChange:ce,onChangeComplete:ne,onClear:q}))),overlayClassName:te},J),a||f.createElement(T8,{open:L,className:ve,style:me,color:t?bn(t):N,prefixCls:j,disabled:c,colorCleared:B,showText:h,format:H})))},G8=Bh(Zh,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));Zh._InternalPanelDoNotUseOrYouWillBeFired=G8;const K8=Zh;var X8=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],WS=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,i=e.className,a=e.style,s=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,m=d===void 0?"checkbox":d,h=e.title,g=e.onChange,v=et(e,X8),p=f.useRef(null),b=Dt(u,{value:s}),y=Z(b,2),S=y[0],E=y[1];f.useImperativeHandle(t,function(){return {focus:function(){var w;(w=p.current)===null||w===void 0||w.focus();},blur:function(){var w;(w=p.current)===null||w===void 0||w.blur();},input:p.current}});var C=F(o,i,(n={},Q(n,"".concat(o,"-checked"),S),Q(n,"".concat(o,"-disabled"),l),n)),$=function(w){l||("checked"in e||E(w.target.checked),g==null||g({target:ee(ee({},e),{},{type:m,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation();},preventDefault:function(){w.preventDefault();},nativeEvent:w.nativeEvent}));};return f__namespace.createElement("span",{className:C,title:h,style:a},f__namespace.createElement("input",Ee({},v,{className:"".concat(o,"-input"),ref:p,onChange:$,disabled:l,checked:!!S,type:m})),f__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const q8=f.createContext(null),VS=q8,Y8=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Rt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Rt(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({},Rt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},zo(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}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.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 Z8(e,t){const n=ct(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [Y8(n)]}const US=Bt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [Z8(n,e)]});var Q8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:m}=e,h=Q8(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:v,checkbox:p}=f__namespace.useContext(Je),b=f__namespace.useContext(VS),{isFormItemInput:y}=f__namespace.useContext(nr),S=f__namespace.useContext(_r),E=(n=(b==null?void 0:b.disabled)||m)!==null&&n!==void 0?n:S,C=f__namespace.useRef(h.value);f__namespace.useEffect(()=>{b==null||b.registerValue(h.value);},[]),f__namespace.useEffect(()=>{if(!d)return h.value!==C.current&&(b==null||b.cancelValue(C.current),b==null||b.registerValue(h.value),C.current=h.value),()=>b==null?void 0:b.cancelValue(h.value)},[h.value]);const $=g("checkbox",r),[x,w]=US($),O=Object.assign({},h);b&&!d&&(O.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),b.toggleOption&&b.toggleOption({label:a,value:h.value});},O.name=b.name,O.checked=b.value.includes(h.value));const _=F(`${$}-wrapper`,{[`${$}-rtl`]:v==="rtl",[`${$}-wrapper-checked`]:O.checked,[`${$}-wrapper-disabled`]:E,[`${$}-wrapper-in-form-item`]:y},p==null?void 0:p.className,o,i,w),A=F({[`${$}-indeterminate`]:s},Vc,w),R=s?"mixed":void 0;return x(f__namespace.createElement(ms,{component:"Checkbox",disabled:E},f__namespace.createElement("label",{className:_,style:Object.assign(Object.assign({},p==null?void 0:p.style),l),onMouseEnter:c,onMouseLeave:u},f__namespace.createElement(WS,Object.assign({"aria-checked":R},O,{prefixCls:$,className:A,disabled:E,ref:t})),a!==void 0&&f__namespace.createElement("span",null,a))))},eB=f__namespace.forwardRef(J8),GS=eB;var tB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=tB(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:m}=f__namespace.useContext(Je),[h,g]=f__namespace.useState(u.value||n||[]),[v,p]=f__namespace.useState([]);f__namespace.useEffect(()=>{"value"in u&&g(u.value||[]);},[u.value]);const b=f__namespace.useMemo(()=>o.map(I=>typeof I=="string"||typeof I=="number"?{label:I,value:I}:I),[o]),y=I=>{p(P=>P.filter(M=>M!==I));},S=I=>{p(P=>[].concat(Qe(P),[I]));},E=I=>{const P=h.indexOf(I.value),M=Qe(h);P===-1?M.push(I.value):M.splice(P,1),"value"in u||g(M),c==null||c(M.filter(N=>v.includes(N)).sort((N,T)=>{const L=b.findIndex(H=>H.value===N),z=b.findIndex(H=>H.value===T);return L-z}));},C=d("checkbox",i),$=`${C}-group`,[x,w]=US(C),O=Cn(u,["value","disabled"]),_=o.length?b.map(I=>f__namespace.createElement(GS,{prefixCls:C,key:I.value.toString(),disabled:"disabled"in I?I.disabled:u.disabled,value:I.value,checked:h.includes(I.value),onChange:I.onChange,className:`${$}-item`,style:I.style,title:I.title},I.label)):r,A={toggleOption:E,value:h,disabled:u.disabled,name:u.name,registerValue:S,cancelValue:y},R=F($,{[`${$}-rtl`]:m==="rtl"},a,s,w);return x(f__namespace.createElement("div",Object.assign({className:R,style:l},O,{ref:t}),f__namespace.createElement(VS.Provider,{value:A},_)))},rB=f__namespace.forwardRef(nB),oB=f__namespace.memo(rB),Qh=GS;Qh.Group=oB;Qh.__ANT_CHECKBOX=!0;const Jh=Qh;var iB=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function Eb(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 Ob(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function lB(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var cB={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 uB(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function dB(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 KS=f.createContext(cB);KS.Provider;function Ht(e,t,n){return function(r){var o=r.size,i=r.strokeWidth,a=r.strokeLinecap,s=r.strokeLinejoin,l=r.theme,c=r.fill,u=r.className,d=r.spin,m=sB(r,iB),h=f.useContext(KS),g=f.useMemo(uB,[]),v=dB(g,{size:o,strokeWidth:i,strokeLinecap:a,strokeLinejoin:s,theme:l,fill:c},h),p=[h.prefix+"-icon"];return p.push(h.prefix+"-icon-"+e),t&&h.rtl&&p.push(h.prefix+"-icon-rtl"),d&&p.push(h.prefix+"-icon-spin"),u&&p.push(u),f.createElement("span",Ob(Ob({},m),{},{className:p.join(" ")}),n(v))}}const fB=Ht("people-search",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M39.9997 41.0002L36.8281 37.8286",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M38 35C38 36.1046 37.5523 37.1046 36.8284 37.8284C36.1046 38.5523 35.1046 39 34 39C31.7909 39 30 37.2091 30 35C30 32.7909 31.7909 31 34 31C36.2091 31 38 32.7909 38 35Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),mB=Ht("people-minus",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 35H42H30Z",fill:e.colors[1]}),f.createElement("path",{d:"M30 35H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),hB=Ht("people-delete",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M33 31L41 39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M33 39L41 31",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),gB=Ht("delete",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M9 10V44H39V10H9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M20 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M28 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M4 10H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),vB=Ht("add-two",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M33 7.26261C30.3212 5.81915 27.2563 5 24 5C13.5066 5 5 13.5066 5 24C5 34.4934 13.5066 43 24 43C26.858 43 29.5685 42.369 32 41.2387",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M31 30L43 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15 22L22 29L41 11",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M37 24V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),pB=Ht("play-two",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M18.5 24V16.2058L25.25 20.1029L32 24L25.25 27.8971L18.5 31.7942V24Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),bB=Ht("unlike",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C25.1936 41.9295 26.5616 41.3098 28.0099 40.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M34.959 27L41.8375 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M41.8375 27L34.959 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),yB=Ht("dislike-two",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C31 40 44 30 44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 20L20 28L28 20Z",fill:e.colors[1]}),f.createElement("path",{d:"M28 20L20 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 20.0001L28 28L20 20.0001Z",fill:e.colors[1]}),f.createElement("path",{d:"M20 20.0001L28 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),CB=Ht("copy",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M13 12.4316V7.8125C13 6.2592 14.2592 5 15.8125 5H40.1875C41.7408 5 43 6.2592 43 7.8125V32.1875C43 33.7408 41.7408 35 40.1875 35H35.5163",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.1875 13H7.8125C6.2592 13 5 14.2592 5 15.8125V40.1875C5 41.7408 6.2592 43 7.8125 43H32.1875C33.7408 43 35 41.7408 35 40.1875V15.8125C35 14.2592 33.7408 13 32.1875 13Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),SB=Ht("efferent-four",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M20 5L10 5C8.89543 5 8 5.89543 8 7L8 41C8 42.1046 8.89543 43 10 43L38 43C39.1046 43 40 42.1046 40 41L40 24.75",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M28 5H40V17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21.0001 23.9998L39 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),wB=Ht("star",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M23.9986 5L17.8856 17.4776L4 19.4911L14.0589 29.3251L11.6544 43L23.9986 36.4192L36.3454 43L33.9586 29.3251L44 19.4911L30.1913 17.4776L23.9986 5Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),xB=Ht("file-cabinet",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M42 4H6V14H42V4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M42 19H6V29H42V19Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M42 34H6V44H42V34Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21 9H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M21 24H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M21 39H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),$B=Ht("tumblr",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M15 22V17H20V14L26 12V17H31V22H26V29C26 29 26 30.5 28 31C30 31.5 33 30 33 30L31 36H26C22.5 36 20 32.5 20 30V22H15Z",fill:e.colors[2]}))}),EB=Ht("concern",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M10.8579 9.85803C7.23858 13.4773 5 18.4773 5 24.0002C5 29.523 7.23858 34.523 10.8579 38.1423",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M39.1421 38.1423C42.7614 34.523 45 29.523 45 24.0002C45 18.4773 42.7614 13.4773 39.1421 9.85803",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M34.8994 33.8997C37.4329 31.3662 38.9999 27.8662 38.9999 24.0002C38.9999 20.1342 37.4329 16.6342 34.8994 14.1007",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M15.1005 14.1007C12.567 16.6342 11 20.1342 11 24.0002C11 27.8662 12.567 31.3662 15.1005 33.8997",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M28.1818 20C30.2905 20 32 21.6118 32 23.6C32 26.1882 29.4545 28.4 28.1818 29.6C27.3333 30.4 26.2727 31.2 25 32C23.7273 31.2 22.6667 30.4 21.8182 29.6C20.5455 28.4 18 26.1882 18 23.6C18 21.6118 19.7095 20 21.8182 20C23.1463 20 24.316 20.6393 25 21.6093C25.684 20.6393 26.8537 20 28.1818 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),OB=Ht("iphone",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"11",y:"4",width:"26",height:"40",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M22 10L26 10",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M20 38H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),IB=Ht("computer",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"19",y:"32",width:"10",height:"9",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("rect",{x:"5",y:"8",width:"38",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M22 27H26",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M14 41L34 41",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),PB=Ht("tips",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M40 20C40 26.8077 35.7484 32.6224 29.7555 34.9336H24H18.2445C12.2516 32.6224 8 26.8077 8 20C8 11.1634 15.1634 4 24 4C32.8366 4 40 11.1634 40 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M29.7557 34.9336L29.0766 43.0831C29.0334 43.6014 28.6001 44 28.08 44H19.9203C19.4002 44 18.9669 43.6014 18.9238 43.0831L18.2446 34.9336",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M18 17V23L24 20L30 23V17",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),RB=Ht("return",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),_B=Ht("loading-three",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),TB=Ht("loading",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M4 24C4 35.0457 12.9543 44 24 44V44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M36 24C36 17.3726 30.6274 12 24 12C17.3726 12 12 17.3726 12 24C12 30.6274 17.3726 36 24 36V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),MB=Ht("info",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11C25.3807 11 26.5 12.1193 26.5 13.5C26.5 14.8807 25.3807 16 24 16C22.6193 16 21.5 14.8807 21.5 13.5C21.5 12.1193 22.6193 11 24 11Z",fill:e.colors[2]}),f.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),NB=Ht("help",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M24 28.6248V24.6248C27.3137 24.6248 30 21.9385 30 18.6248C30 15.3111 27.3137 12.6248 24 12.6248C20.6863 12.6248 18 15.3111 18 18.6248",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 37.6248C25.3807 37.6248 26.5 36.5055 26.5 35.1248C26.5 33.7441 25.3807 32.6248 24 32.6248C22.6193 32.6248 21.5 33.7441 21.5 35.1248C21.5 36.5055 22.6193 37.6248 24 37.6248Z",fill:e.colors[2]}))}),kB=Ht("distraught-face",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M24 29C29 29 31 33 31 33H17C17 33 19 29 24 29Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),AB=Ht("config",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M24 4L18 10H10V18L4 24L10 30V38H18L24 44L30 38H38V30L44 24L38 18V10H30L24 4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M24 30C27.3137 30 30 27.3137 30 24C30 20.6863 27.3137 18 24 18C20.6863 18 18 20.6863 18 24C18 27.3137 20.6863 30 24 30Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),LB=Ht("close",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),DB={Close:LB,Config:AB,DistraughtFace:kB,Help:NB,Info:MB,Loading:TB,LoadingThree:_B,Return:RB,Tips:PB,Computer:IB,Iphone:OB,Concern:EB,Tumblr:$B,FileCabinet:xB,Star:wB,EfferentFour:SB,Copy:CB,DislikeTwo:yB,Unlike:bB,PlayTwo:pB,AddTwo:vB,Delete:gB,PeopleDelete:hB,PeopleMinus:mB,PeopleSearch:fB};function Tt({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const i=DB[e];return D(i,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}var Ib=1/0,zB=17976931348623157e292;function jB(e){if(!e)return e===0?e:0;if(e=Zd(e),e===Ib||e===-Ib){var t=e<0?-1:1;return t*zB}return e===e?e:0}function BB(e){var t=jB(e),n=t%1;return t===t?n?t-n:t:0}var HB="Expected a function";function FB(e,t){var n;if(typeof t!="function")throw new TypeError(HB);return e=BB(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function WB(e){return FB(2,e)}var Ff={exports:{}};(function(e,t){(function(n,r){var o="1.0.36",i="",a="?",s="function",l="undefined",c="object",u="string",d="major",m="model",h="name",g="type",v="vendor",p="version",b="architecture",y="console",S="mobile",E="tablet",C="smarttv",$="wearable",x="embedded",w=350,O="Amazon",_="Apple",A="ASUS",R="BlackBerry",I="Browser",P="Chrome",M="Edge",N="Firefox",T="Google",L="Huawei",z="LG",H="Microsoft",W="Motorola",B="Opera",V="Samsung",j="Sharp",X="Sony",K="Xiaomi",G="Zebra",U="Facebook",Y="Chromium OS",re="Mac OS",de=function(ae,ue){var be={};for(var we in ae)ue[we]&&ue[we].length%2===0?be[we]=ue[we].concat(ae[we]):be[we]=ae[we];return be},ve=function(ae){for(var ue={},be=0;be0?Oe.length===2?typeof Oe[1]==s?this[Oe[0]]=Oe[1].call(this,We):this[Oe[0]]=Oe[1]:Oe.length===3?typeof Oe[1]===s&&!(Oe[1].exec&&Oe[1].test)?this[Oe[0]]=We?Oe[1].call(this,We,Oe[2]):r:this[Oe[0]]=We?We.replace(Oe[1],Oe[2]):r:Oe.length===4&&(this[Oe[0]]=We?Oe[3].call(this,We.replace(Oe[1],Oe[2])):r):this[Oe]=We||r;be+=2;}},J=function(ae,ue){for(var be in ue)if(typeof ue[be]===c&&ue[be].length>0){for(var we=0;we2&&(Ie[m]="iPad",Ie[g]=E),Ie},this.getEngine=function(){var Ie={};return Ie[h]=r,Ie[p]=r,ne.call(Ie,we,Le.engine),Ie},this.getOS=function(){var Ie={};return Ie[h]=r,Ie[p]=r,ne.call(Ie,we,Le.os),Oe&&!Ie[h]&&ze&&ze.platform!="Unknown"&&(Ie[h]=ze.platform.replace(/chrome os/i,Y).replace(/macos/i,re)),Ie},this.getResult=function(){return {ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return we},this.setUA=function(Ie){return we=typeof Ie===u&&Ie.length>w?q(Ie,w):Ie,this},this.setUA(we),this};_e.VERSION=o,_e.BROWSER=ve([h,p,d]),_e.CPU=ve([b]),_e.DEVICE=ve([m,v,g,y,S,C,E,$,x]),_e.ENGINE=_e.OS=ve([h,p]),e.exports&&(t=e.exports=_e),t.UAParser=_e;var Be=typeof n!==l&&(n.jQuery||n.Zepto);if(Be&&!Be.ua){var Ne=new _e;Be.ua=Ne.getResult(),Be.ua.get=function(){return Ne.getUA()},Be.ua.set=function(ae){Ne.setUA(ae);var ue=Ne.getResult();for(var be in ue)Be.ua[be]=ue[be];};}})(typeof window=="object"?window:Io);})(Ff,Ff.exports);var VB=Ff.exports;const UB=an(VB),GB=Symbol(),eg=Symbol(),ha="a",gl="w";let KB=(e,t)=>new Proxy(e,t);const Wf=Object.getPrototypeOf,Vf=new WeakMap,XS=e=>e&&(Vf.has(e)?Vf.get(e):Wf(e)===Object.prototype||Wf(e)===Array.prototype),Pb=e=>typeof e=="object"&&e!==null,XB=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(Wf(e),t)},qS=e=>e[eg]||e,YS=(e,t,n,r)=>{if(!XS(e))return e;let o=r&&r.get(e);if(!o){const l=qS(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,XB(l)]:[l],r==null||r.set(e,o);}const[i,a]=o;let s=n&&n.get(i);return s&&s[1].f===!!a||(s=((l,c)=>{const u={f:c};let d=!1;const m=(g,v)=>{if(!d){let p=u[ha].get(l);if(p||(p={},u[ha].set(l,p)),g===gl)p[gl]=!0;else {let b=p[g];b||(b=new Set,p[g]=b),b.add(v);}}},h={get:(g,v)=>v===eg?l:(m("k",v),YS(Reflect.get(g,v),u[ha],u.c,u.t)),has:(g,v)=>v===GB?(d=!0,u[ha].delete(l),!0):(m("h",v),Reflect.has(g,v)),getOwnPropertyDescriptor:(g,v)=>(m("o",v),Reflect.getOwnPropertyDescriptor(g,v)),ownKeys:g=>(m(gl),Reflect.ownKeys(g))};return c&&(h.set=h.deleteProperty=()=>!1),[h,u]})(i,!!a),s[1].p=KB(a||i,s[0]),n&&n.set(i,s)),s[1][ha]=t,s[1].c=n,s[1].t=r,s[1].p},ZS=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!Pb(e)||!Pb(t))return !0;const o=n.get(qS(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[gl]===!0){if(i=((a,s)=>{const l=Reflect.ownKeys(a),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((u,d)=>u!==c[d])})(e,t),i)return i}else for(const a of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),i)return i;for(const a of o.k||[])if(i=ZS(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i});}},qB=e=>XS(e)&&e[eg]||null,Rb=(e,t=!0)=>{Vf.set(e,t);};const Id=e=>typeof e=="object"&&e!==null,ao=new WeakMap,Xs=new WeakSet,YB=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>Id(c)&&!Xs.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),r=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},o=new WeakMap,i=(c,u,d=r)=>{const m=o.get(c);if((m==null?void 0:m[0])===u)return m[1];const h=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return Rb(h,!0),o.set(c,[u,h]),Reflect.ownKeys(c).forEach(g=>{if(Object.getOwnPropertyDescriptor(h,g))return;const v=Reflect.get(c,g),p={value:v,enumerable:!0,configurable:!0};if(Xs.has(v))Rb(v,!1);else if(v instanceof Promise)delete p.value,p.get=()=>d(v);else if(ao.has(v)){const[b,y]=ao.get(v);p.value=i(b,y(),d);}Object.defineProperty(h,g,p);}),Object.preventExtensions(h)},a=new WeakMap,s=[1,1],l=c=>{if(!Id(c))throw new Error("object required");const u=a.get(c);if(u)return u;let d=s[0];const m=new Set,h=(O,_=++s[0])=>{d!==_&&(d=_,m.forEach(A=>A(O,_)));};let g=s[1];const v=(O=++s[1])=>(g!==O&&!m.size&&(g=O,b.forEach(([_])=>{const A=_[1](O);A>d&&(d=A);})),d),p=O=>(_,A)=>{const R=[..._];R[1]=[O,...R[1]],h(R,A);},b=new Map,y=(O,_)=>{if(m.size){const A=_[3](p(O));b.set(O,[_,A]);}else b.set(O,[_]);},S=O=>{var _;const A=b.get(O);A&&(b.delete(O),(_=A[1])==null||_.call(A));},E=O=>(m.add(O),m.size===1&&b.forEach(([A,R],I)=>{const P=A[3](p(I));b.set(I,[A,P]);}),()=>{m.delete(O),m.size===0&&b.forEach(([A,R],I)=>{R&&(R(),b.set(I,[A]));});}),C=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),x=t(C,{deleteProperty(O,_){const A=Reflect.get(O,_);S(_);const R=Reflect.deleteProperty(O,_);return R&&h(["delete",[_],A]),R},set(O,_,A,R){const I=Reflect.has(O,_),P=Reflect.get(O,_,R);if(I&&(e(P,A)||a.has(A)&&e(P,a.get(A))))return !0;S(_),Id(A)&&(A=qB(A)||A);let M=A;if(A instanceof Promise)A.then(N=>{A.status="fulfilled",A.value=N,h(["resolve",[_],N]);}).catch(N=>{A.status="rejected",A.reason=N,h(["reject",[_],N]);});else {!ao.has(A)&&n(A)&&(M=l(A));const N=!Xs.has(M)&&ao.get(M);N&&y(_,N);}return Reflect.set(O,_,M,R),h(["set",[_],A,P]),!0}});a.set(c,x);const w=[C,v,i,E];return ao.set(x,w),Reflect.ownKeys(c).forEach(O=>{const _=Object.getOwnPropertyDescriptor(c,O);"value"in _&&(x[O]=c[O],delete _.value,delete _.writable),Object.defineProperty(C,O,_);}),x})=>[l,ao,Xs,e,t,n,r,o,i,a,s],[ZB]=YB();function rr(e={}){return ZB(e)}function tg(e,t,n){const r=ao.get(e);let o;const i=[],a=r[3];let s=!1;const c=a(u=>{if(i.push(u),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(i.splice(0));}));});return s=!0,()=>{s=!1,c();}}function Vl(e,t){const n=ao.get(e),[r,o,i]=n;return i(r,o(),t)}var QS={exports:{}},JS={};/** * @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 ji=f;function QB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var JB=typeof Object.is=="function"?Object.is:QB,eH=ji.useState,tH=ji.useEffect,nH=ji.useLayoutEffect,rH=ji.useDebugValue;function oH(e,t){var n=t(),r=eH({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return nH(function(){o.value=n,o.getSnapshot=t,Pd(o)&&i({inst:o});},[e,n,t]),tH(function(){return Pd(o)&&i({inst:o}),e(function(){Pd(o)&&i({inst:o});})},[e]),rH(n),n}function Pd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !JB(e,n)}catch{return !0}}function iH(e,t){return t()}var aH=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?iH:oH;JS.useSyncExternalStore=ji.useSyncExternalStore!==void 0?ji.useSyncExternalStore:aH;QS.exports=JS;var sH=QS.exports;const lH=an(sH),{use:_b}=f,{useSyncExternalStore:cH}=lH;const uH=new WeakMap;function or(e,t){const n=t==null?void 0:t.sync,r=f.useRef(),o=f.useRef();let i=!0;const a=cH(f.useCallback(c=>{const u=tg(e,c,n);return c(),u},[e,n]),()=>{const c=Vl(e,_b);try{if(!i&&r.current&&o.current&&!ZS(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>Vl(e,_b));i=!1;const s=new WeakMap;f.useEffect(()=>{r.current=a,o.current=s;});const l=f.useMemo(()=>new WeakMap,[]);return YS(a,s,l,uH)}const Bi=WB(()=>!!document.querySelectorAll(".bili-feed4").length),ew=()=>document.body.classList.contains("dark"),tw=rr({value:ew()});function ng(){return or(tw).value}const nw=new MutationObserver(function(){tw.value=ew();});nw.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{nw.disconnect();});const rw=UB();var g0;const dH=((g0=rw.os.name)==null?void 0:g0.toLowerCase())==="mac os";var v0;const rg=((v0=rw.browser.name)==null?void 0:v0.toLowerCase())==="safari";var fH=B0(function(e,t){var n=e.styles,r=xi([n],void 0,f__namespace.useContext(H0)),o=f__namespace.useRef();return Lg(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}),s=!1,l=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",i),a.hydrate([l])),o.current=[a,s],function(){a.flush();}},[t]),Lg(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(r.next!==void 0&&Sm(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush();}t.insert("",r,a,!1);},[t,r.name]),null});function Yn(){for(var e=arguments.length,t=new Array(e),n=0;n{const u=c.target.checked;Ir({[e]:u}),n==null||n(u);},[]);let l=D("span",{style:{userSelect:"none"},children:t||e});return r&&(l=D(ds,{title:r,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),D(Jh,{...o,checked:a,onChange:s,children:l})}var MH={name:"1qkltea",styles:"margin-left:5px"};const NH=function(){const e=MH;return ye(St,{children:[D(un,{configKey:"initialShowMore",label:"自动查看更多",css:e}),D(un,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function Gl({tooltip:e,iconProps:t,tooltipProps:n}){return D(St,{children:e&&D(Ul,{...n,title:e,children:D(Tt,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const kH=[{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)"}],Kl={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},lw={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function AH(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 cw="UP长期洗涤",LH=AH(cw,` #0545b2 理想之蓝 #f4cd00 柠檬黄 #ef2729 石榴红 #f89c00 鹿箭 #233728 黛绿 #f2b9b7 和熙粉 #f3cc91 芝士黄 #6b4c68 葡萄紫 #ff7227 落日橙 #004d62 碧海天 #23909b 洗碧空 #aeb400 芥丝绿 #425a17 箬叶青 #002FA7 克莱因蓝 #003153 普鲁士蓝 #01847F 马尔斯绿 #FBD26A 申布伦黄 #470024 勃艮第红 #492D22 凡戴克棕 `),uw=[{name:"预设",themes:[Kl,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},lw]},{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:kH,tooltip:ye(St,{children:["提取自"," ",D("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),D("br",{}),"Apache License 2.0"]})},{name:cw,themes:LH,tooltip:ye(St,{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"})]})}],DH=uw.map(e=>e.themes).flat();function dw(){let{theme:e,colorPickerThemeSelectedColor:t}=_n();return e||(e=Kl.id),f.useMemo(()=>{const n=DH.find(r=>r.id===e)||Kl;return n.id===lw.id&&t&&(n.colorPrimary=t),n},[e,t])}const fw=`--${fn}-color-primary`,Vr=`var(${fw})`;var zH={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},jH={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},BH={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function HH(){const e=dw().id,{colorPickerThemeSelectedColor:t}=_n(),[n,r]=f.useState(t||Kl.colorPrimary),o=f.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return D("div",{children:uw.map(({name:i,themes:a,tooltip:s})=>ye(f.Fragment,{children:[ye("div",{css:BH,children:[i,D(Gl,{tooltip:s,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(l=>{const c=e===l.id,u=l.isCustom,d=D("div",{className:"preview",css:Yn("width:100%;height:100%;background-color:",u?o:l.colorPrimary,";border-radius:5px;","")});let m=D("div",{className:"preview-wrapper",css:[jH,c&&Yn("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(m=D(K8,{value:n,onChange:h=>r(h),onOpenChange:h=>{h||Ir({colorPickerThemeSelectedColor:o});},children:m})),ye("div",{css:zH,onClick:h=>{Ir({theme:l.id});},children:[m,l.name]},l.id)})})]},i))})}const FH="_toast-container_185m9_1",WH="_single-line_185m9_17";function vt(e,t=2e3){const n=document.createElement("div");n.className=FH,n.innerText=e,n.style.backgroundColor=Vr,!e.includes(` `)&&!e.includes("n.remove(),t);}const VH="请求失败, 请重试 !!!",mw="操作失败, 请重试 !!!";function hw(){return vt(VH)}function gw(){return vt(mw)}const vw="27eb53fc9058f8c3";async function UH(){var c,u;const t=(await ou.get("https://passport.bilibili.com/login/app/third",{params:{appkey:vw,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)){vt("你必须登录B站之后才能使用授权");return}if(!((u=t==null?void 0:t.data)!=null&&u.confirm_uri)){vt("无法获得授权网址");return}const n=t.data.confirm_uri;let r,o;const i=new Promise(d=>{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?d(v):(vt("没有获得匹配的密钥"),d(void 0))};window.addEventListener("message",m),o=()=>window.removeEventListener("message",m),r=setTimeout(()=>{vt("获取授权超时"),d(void 0);},10*1e3);});let a;{const d=window.open(n,"_blank","popup=true,width=800,height=600");a=()=>d==null?void 0:d.close();}function s(){a==null||a(),o==null||o(),o=void 0,r&&(clearTimeout(r),r=void 0);}const l=await i;return s(),l}async function GH(){const e=await UH();if(e)return yt.accessKey=e,vt("获取成功"),e}function KH(){yt.accessKey="",vt("已删除 access_key");}var pw=function(e){return function(t,n){var r=f.useRef(!1);e(function(){return function(){r.current=!1;}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n);}},ur=function(){return ur=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value);}catch(s){a={error:s};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(a)throw a.error}}return i}function pn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r-1&&(o=setTimeout(function(){vl.delete(e);},t)),vl.set(e,ur(ur({},n),{timer:o}));},t9=function(e){return vl.get(e)},pl=new Map,n9=function(e){return pl.get(e)},r9=function(e,t){pl.set(e,t),t.then(function(n){return pl.delete(e),n}).catch(function(){pl.delete(e);});},Eo={},o9=function(e,t){Eo[e]&&Eo[e].forEach(function(n){return n(t)});},Rd=function(e,t){return Eo[e]||(Eo[e]=[]),Eo[e].push(t),function(){var r=Eo[e].indexOf(t);Eo[e].splice(r,1);}},i9=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,i=t.staleTime,a=i===void 0?0:i,s=t.setCache,l=t.getCache,c=f.useRef(),u=f.useRef(),d=function(h,g){s?s(g):e9(h,o,g),o9(h,g.data);},m=function(h,g){return g===void 0&&(g=[]),l?l(g):t9(h)};return Sw(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=Rd(n,function(g){e.setState({data:g});});}},[]),ws(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=n9(n);return v&&v!==u.current?{servicePromise:v}:(v=h.apply(void 0,pn([],qt(g),!1)),u.current=v,r9(n,v),{servicePromise:v})},onSuccess:function(h,g){var v;n&&((v=c.current)===null||v===void 0||v.call(c),d(n,{data:h,params:g,time:new Date().getTime()}),c.current=Rd(n,function(p){e.setState({data:p});}));},onMutate:function(h){var g;n&&((g=c.current)===null||g===void 0||g.call(c),d(n,{data:h,params:e.state.params,time:new Date().getTime()}),c.current=Rd(n,function(v){e.setState({data:v});}));}}:{}};const a9=i9;var s9=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,a=f.useRef(),s=f.useMemo(function(){var l={};return r!==void 0&&(l.leading=r),o!==void 0&&(l.trailing=o),i!==void 0&&(l.maxWait=i),l},[r,o,i]);return f.useEffect(function(){if(n){var l=e.runAsync.bind(e);return a.current=gy(function(c){c();},n,s),e.runAsync=function(){for(var c=[],u=0;u-1&&Ra.splice(n,1);}}if(xs){var Tb=function(){if(!(!ig()||!p9()))for(var e=0;e=P?I:""+Array(P+1-N.length).join(M)+I},E={s:S,z:function(I){var P=-I.utcOffset(),M=Math.abs(P),N=Math.floor(M/60),T=M%60;return (P<=0?"+":"-")+S(N,2,"0")+":"+S(T,2,"0")},m:function I(P,M){if(P.date()1)return I(z[0])}else {var H=P.name;$[H]=P,T=H;}return !N&&T&&(C=T),T||!N&&C},O=function(I,P){if(x(I))return I.clone();var M=typeof P=="object"?P:{};return M.date=I,M.args=arguments,new A(M)},_=E;_.l=w,_.i=x,_.w=function(I,P){return O(I,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var A=function(){function I(M){this.$L=w(M.locale,null,!0),this.parse(M);}var P=I.prototype;return P.parse=function(M){this.$d=function(N){var T=N.date,L=N.utc;if(T===null)return new Date(NaN);if(_.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 H=z[2]-1||0,W=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],H,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)):new Date(z[1],H,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)}}return new Date(T)}(M),this.$x=M.x||{},this.init();},P.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds();},P.$utils=function(){return _},P.isValid=function(){return this.$d.toString()!==v},P.isSame=function(M,N){var T=O(M);return this.startOf(N)<=T&&T<=this.endOf(N)},P.isAfter=function(M,N){return O(M)s))return !1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,m=!0,h=n&F9?new Ya:void 0;for(i.set(e,t),i.set(t,e);++d{Ca++,document.body.style.overflow="hidden";},AF=()=>{Ca--,Ca<0&&(Ca=0),Ca===0&&(document.body.style.overflow="");};function sg({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:i,clsModal:a,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){f.useLayoutEffect(()=>{e?kF():AF();},[e]);const u=f.useRef(null),d=ng(),{bg:m,c:h}=f.useMemo(()=>{const y=window.getComputedStyle(document.body).backgroundColor,S=window.getComputedStyle(document.body).color;return {bg:y,c:S}},[d]),g=f.useMemo(()=>d?{"--bg":m,"--c":h,backgroundColor:m,color:h}:{},[m,h,d]),v=f.useId(),p=f.useMemo(()=>{const y=document.createElement("div");return y.setAttribute("data-id","base-modal-"+v),document.body.appendChild(y),y},[]),b=ot(y=>{var E;const S=y.target;(E=u.current)!=null&&E.contains(S)||S.closest('.ant-tooltip-inner[role="tooltip"]')||S.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return Qt("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?p0.createPortal(D("div",{className:F($r.modalMask,o),style:r,onClick:b,children:D("div",{className:F($r.modal,a),style:{...g,width:s,...i},ref:u,children:n})}),p):null}const lg=e=>D(Tt,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});var Tw={exports:{}},Mw={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],o=0,i=0;o>>5]|=n[o]<<24-i%32;return r},wordsToBytes:function(n){for(var r=[],o=0;o>>5]>>>24-o%32&255);return r},bytesToHex:function(n){for(var r=[],o=0;o>>4).toString(16)),r.push((n[o]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],o=0;o>>6*(3-a)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],o=0,i=0;o>>6-i*2);return r}};Mw.exports=t;})();var LF=Mw.exports,Xf={utf8:{stringToBytes:function(e){return Xf.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Xf.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n * @license MIT */var DF=function(e){return e!=null&&(Nw(e)||zF(e)||!!e._isBuffer)};function Nw(e){return !!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function zF(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Nw(e.slice(0,0))}(function(){var e=LF,t=Hb.utf8,n=DF,r=Hb.bin,o=function(i,a){i.constructor==String?a&&a.encoding==="binary"?i=r.stringToBytes(i):i=t.stringToBytes(i):n(i)?i=Array.prototype.slice.call(i,0):!Array.isArray(i)&&i.constructor!==Uint8Array&&(i=i.toString());for(var s=e.bytesToWords(i),l=i.length*8,c=1732584193,u=-271733879,d=-1732584194,m=271733878,h=0;h>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360;s[l>>>5]|=128<>>9<<4)+14]=l;for(var g=o._ff,v=o._gg,p=o._hh,b=o._ii,h=0;h>>0,u=u+S>>>0,d=d+E>>>0,m=m+C>>>0;}return e.endian([c,u,d,m])};o._ff=function(i,a,s,l,c,u,d){var m=i+(a&s|~a&l)+(c>>>0)+d;return (m<>>32-u)+a},o._gg=function(i,a,s,l,c,u,d){var m=i+(a&l|s&~l)+(c>>>0)+d;return (m<>>32-u)+a},o._hh=function(i,a,s,l,c,u,d){var m=i+(a^s^l)+(c>>>0)+d;return (m<>>32-u)+a},o._ii=function(i,a,s,l,c,u,d){var m=i+(s^(a|~l))+(c>>>0)+d;return (m<>>32-u)+a},o._blocksize=16,o._digestsize=16,Tw.exports=function(i,a){if(i==null)throw new Error("Illegal argument "+i);var s=e.wordsToBytes(o(i,a));return a&&a.asBytes?s:a&&a.asString?r.bytesToString(s):e.bytesToHex(s)};})();var jF=Tw.exports;const BF=an(jF);var Fi=1e3,Wi=Fi*60,Vi=Wi*60,Bo=Vi*24,HF=Bo*7,FF=Bo*365.25,WF=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return VF(e);if(n==="number"&&isFinite(e))return t.long?GF(e):UF(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function VF(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*FF;case"weeks":case"week":case"w":return n*HF;case"days":case"day":case"d":return n*Bo;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Vi;case"minutes":case"minute":case"mins":case"min":case"m":return n*Wi;case"seconds":case"second":case"secs":case"sec":case"s":return n*Fi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function UF(e){var t=Math.abs(e);return t>=Bo?Math.round(e/Bo)+"d":t>=Vi?Math.round(e/Vi)+"h":t>=Wi?Math.round(e/Wi)+"m":t>=Fi?Math.round(e/Fi)+"s":e+"ms"}function GF(e){var t=Math.abs(e);return t>=Bo?Ys(e,t,Bo,"day"):t>=Vi?Ys(e,t,Vi,"hour"):t>=Wi?Ys(e,t,Wi,"minute"):t>=Fi?Ys(e,t,Fi,"second"):e+" ms"}function Ys(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const hu=an(WF),KF=[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,39,12,38,41,13,37,48,7,16,24,55,40,61,26,17,0,1,60,51,30,4,22,25,54,21,56,59,6,63,57,62,11,36,20,34,44,52];function XF(e){let t="";return KF.forEach(n=>{t+=e[n];}),t.slice(0,32)}async function qF(e){const{img_key:t,sub_key:n}=await YF(),r=XF(t+n),o=Math.round(Date.now()/1e3),i=/[!'()*]/g;let a=[];e={...e,wts:o},Object.keys(e).sort().forEach(c=>{a.push(`${encodeURIComponent(c)}=${encodeURIComponent(e[c].toString().replace(i,""))}`);});const s=a.join("&"),l=BF(s+r);return {wts:o,w_rid:l}}let Md,Nd,kd;async function YF(){const e=()=>qo().format("YYYYMMDD");if(Md&&Nd&&kd&&kd===e()&&Date.now()-Nd<=hu("6h"))return Md;const r=(await ou.get("/x/web-interface/nav",{baseURL:by})).data,o=r.data.wbi_img.img_url,i=r.data.wbi_img.sub_url,a={img_key:o.slice(o.lastIndexOf("/")+1,o.lastIndexOf(".")),sub_key:i.slice(i.lastIndexOf("/")+1,i.lastIndexOf("."))};return Md=a,kd=e(),Nd=Date.now(),a}function ZF(e){return new Promise((t,n)=>{let r=e.data;const o=e.headers??{};if(jp.isFormData(r)&&delete o["Content-Type"],e.auth){const u=e.auth.username||"",d=e.auth.password||"";o.Authorization="Basic "+Buffer.from(u+":"+d).toString("base64");}const i=function(){n(new vi.AxiosError("Network Error",vi.AxiosError.ERR_NETWORK,e));},a=function(){n(new vi.AxiosError("timeout of "+e.timeout+"ms exceeded",vi.AxiosError.ECONNABORTED,e));};jp.forEach(o,function(d,m){typeof r>"u"&&m.toLowerCase()==="content-type"&&delete o[m];}),r===void 0&&(r=null);const s=function(d){const m="responseHeaders"in d?x6(d.responseHeaders):{},g={data:!e.responseType||e.responseType==="text"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:m,config:e,request:{responseURL:d.finalUrl,status:d.status,statusText:d.statusText,responseXML:null}};g6(t,n,g);};e.cancelToken&&e.cancelToken.promise.then(function(d){n(d);});let l;e.responseType&&e.responseType!=="json"&&(l=e.responseType);const c=e.method.toUpperCase();c==="UNLINK"||c==="PURGE"||c==="LINK"?n(new vi.AxiosError(`${c} is not a supported method by GM.xmlHttpRequest`)):GM.xmlHttpRequest({method:c,url:c6(S6(e.baseURL,e.url),e.params,e.paramsSerializer),headers:Object.fromEntries(Object.entries(o).map(([u,d])=>[u,d.toString()])),responseType:l,data:r,timeout:e.timeout,ontimeout:a,onload:s,onerror:i});})}const $n=ou.create({baseURL:by,withCredentials:!0});$n.interceptors.request.use(async function(e){var t;return e.params||(e.params={}),(t=e.url)!=null&&t.includes("/wbi/")&&(e.params={...e.params,...await qF(e.params)}),e});function Yo(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const gu=ou.create({adapter:ZF});gu.interceptors.request.use(function(e){return e.params={appkey:vw,access_key:yt.accessKey||"",...e.params},e});gu.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){const t=new TextDecoder,n=new Uint8Array(e.data),r=t.decode(n);e.data=r;try{e.data=JSON.parse(r);}catch{}}return e});function cg(){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 Es(){const e=cg().bili_jct;if(!e)throw vt("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}function vu(){return cg().DedeUserID}function Os(){return !!cg().DedeUserID}const qf=rr({cookie:document.cookie,logined:Os()});function QF(){return Object.assign(qf,{cookie:document.cookie,logined:Os()}),qf.logined}function kw(){return or(qf).logined}const Fb=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},JF=new WeakMap;function e7({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(Fb());let i,a,s;const l=e??clearTimeout,c=()=>{l(i),s(Fb());},u=()=>{o&&o.removeEventListener("abort",c);},d=new Promise((m,h)=>{a=()=>{u(),m(r);},s=h,i=(t??setTimeout)(a,n);});return o&&o.addEventListener("abort",c,{once:!0}),JF.set(d,()=>{l(i),i=null,a();}),d}}const Ur=e7(),t7=qi.extend("utility:dom"),n7=10*1e3,r7=200;async function _a(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const a=performance.now()+n7;for(;!r.length&&performance.now()r.remove(),t)}function pu(){var t;const e=(((t=document.activeElement)==null?void 0:t.tagName)||"").toLowerCase();return !!(["input","textarea"].includes(e)||document.querySelector(".center-search__bar.is-focus"))}function o7(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 bu(e){return e||(e=0),qo.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function Ad(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function ql(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 i7=qo().format("YYYY");function co(e,t=!1){if(!e)return "";const n=qo.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===i7?n.format("M-D"+r):n.format("YY-M-D"+r)}const a7={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function s7(e){if(!(typeof e>"u")&&!(e>=0))return a7[e]}async function Aw(){var n;return ((n=(await $n.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function Yf(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:Es(),...e}),n=(await $n.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=Yo(n);return o||vt(n.message||"addupdate error"),{success:o,aid:r}}async function l7(e){var n;const t=(await $n.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 c7(){const t=(await Aw()).find(a=>a.title===fn);if(!t){await Yf({title:fn});return}const n=await l7(t.id),i=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(i)try{return JSON.parse(i)}catch{return}}async function u7(e){const n=(await Aw()).find(a=>a.title===fn);let r="";if(n)r=n.id.toString();else {const{success:a,aid:s}=await Yf({title:fn});if(!a)return !1;r=s;}const o=JSON.stringify(e),{success:i}=await Yf({aid:r,title:fn,content:`

${o}

`,words:o.length.toString()});return i}const d7="_config-icon_1xtyf_1",f7="_settings-group_1xtyf_6",m7="_settings-group-title_1xtyf_9",h7="_settings-group-sub-title_1xtyf_14",g7="_settings-group-content_1xtyf_20",v7="_row_1xtyf_26",p7="_check_1xtyf_34",b7="_setting-tabs_1xtyf_39",y7="_tab-pane_1xtyf_42",Ke={configIcon:d7,settingsGroup:f7,settingsGroupTitle:m7,settingsGroupSubTitle:h7,settingsGroupContent:g7,row:v7,check:p7,settingTabs:b7,tabPane:y7};async function ug(){vt("即将刷新网页"),await Ur(500),location.reload();}function C7(){return R7(),ug()}let Lw=!1;async function S7(){const e=await c7(),t=Dm(e||{},Dw);return Object.keys(t).length?(Lw=!0,Ir({...t}),ug()):vt("备份不存在或没有有效的配置")}function Zs(e,t,n){return Qt(e,r=>{if(pu())return;yt[t]=!yt[t];const o=!yt[t];vt(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function w7({show:e,onHide:t}){const{autoPreviewUpdateInterval:n,filterMinPlayCount:r,filterMinPlayCountEnabled:o,filterMinDuration:i,filterMinDurationEnabled:a,filterOutGotoTypePicture:s}=_n();return Zs(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Zs(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Zs(["shift.c"],"useNarrowMode","居中模式"),Zs(["shift.y"],"styleUseYoutubeLikeCard","大卡片样式"),ye(sg,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[ye("div",{className:$r.modalHeader,children:[ye("div",{className:$r.modalTitle,children:[D(Tt,{name:"Config",className:Ke.configIcon}),"设置项"]}),D("div",{className:"space",style:{flex:1}}),D(lg,{onClick:t})]}),D("main",{className:$r.modalBody,style:{overflow:"hidden"},children:D(H5,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:Ke.settingTabs,items:[{label:"常规设置",key:"normal",children:ye("div",{className:Ke.tabPane,children:[ye("div",{className:Ke.settingsGroup,children:[ye("div",{className:Ke.settingsGroupTitle,children:["access_key",D(Gl,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:ye(St,{children:["用于「推荐」Tab",D("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),D("div",{className:F(Ke.settingsGroupContent),children:D("div",{className:Ke.row,style:{marginTop:5},children:D(_w,{})})})]}),ye("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"开关"}),ye("div",{className:F(Ke.settingsGroupContent,Ke.row),children:[D(un,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:ye(St,{children:["首页只保留推荐",D("br",{}),"P.S 需要刷新网页~"]}),className:Ke.check,extraAction:ug}),D(un,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",className:Ke.check,extraAction:l=>{l&&vt("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),D(un,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:ye(St,{children:["居中两列",D("br",{}),"切换设置快捷键: ",D(oo,{color:"green",children:"shift+c"})]}),className:Ke.check})]})]}),ye("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"预览"}),ye("div",{className:F(Ke.settingsGroupContent,Ke.row),children:[D(un,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Ke.check,tooltip:ye(St,{children:["手动预览快捷键: ",D(oo,{color:"green",children:"."})," or ",D(oo,{color:"green",children:"p"}),D("br",{}),"切换设置快捷键: ",D(oo,{color:"green",children:"shift+p"})]})}),D(un,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Ke.check,tooltip:ye(St,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",D("br",{}),"切换设置快捷键: ",D(oo,{color:"green",children:"shift+m"})]})})]})]}),ye("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"帮助"}),D("div",{className:F(Ke.settingsGroupContent),children:D("div",{className:Ke.row,children:ye(Xc,{size:"small",children:[D(Xt,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),D(Xt,{href:"https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),D(Xt,{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(Xt,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),D(Xt,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})},{label:"内容过滤",key:"filter",children:D("div",{className:Ke.tabPane,children:ye("div",{className:Ke.settingsGroup,children:[ye("div",{className:Ke.settingsGroupTitle,children:["内容过滤",D(Gl,{iconProps:{name:"Tips"},tooltip:ye(St,{children:["启用过滤会大幅降低加载速度, 谨慎开启! ",D("br",{}),"仅推荐类 Tab 生效"]})})]}),ye("div",{className:F(Ke.settingsGroupContent),children:[D("div",{className:Ke.settingsGroupSubTitle,children:"视频"}),ye("div",{className:Ke.row,children:[D(un,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:D(St,{children:"不显示播放量很少的视频"})}),D(Mf,{size:"small",min:1,step:1e3,value:r,onChange:l=>l&&Ir({filterMinPlayCount:l}),disabled:!o})]}),ye("div",{className:Ke.row,style:{marginTop:3},children:[D(un,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:D(St,{children:"不显示短视频"})}),D(Mf,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:i,onChange:l=>l&&Ir({filterMinDuration:l}),disabled:!a})]}),D(un,{className:Ke.row,style:{marginTop:3},configKey:"enableFilterForFollowedVideo",label:"对「已关注」的视频启用过滤",tooltip:D(St,{children:"默认不过滤「已关注」"})}),D("div",{className:Ke.settingsGroupSubTitle,children:"图文"}),D(un,{className:Ke.row,configKey:"filterOutGotoTypePicture",label:"启用图文(动态 & 专栏)过滤",tooltip:D(St,{children:"过滤掉图文推荐"})}),D(un,{className:Ke.row,disabled:!s,configKey:"enableFilterForFollowedPicture",label:"对「已关注」的图文启用过滤",tooltip:D(St,{children:"默认不过滤「已关注」"})})]})]})})},{label:"外观设置",key:"ui",children:D("div",{className:Ke.tabPane,children:ye("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),ye("div",{className:F(Ke.settingsGroupContent),children:[D("div",{className:Ke.row,children:D(un,{configKey:"styleUseYoutubeLikeCard",label:"视频卡片: 使用类似 YouTube 大卡片",tooltip:ye(St,{children:["增加卡片大小, 增大卡片间距",D("br",{}),"仅「查看更多」弹窗 & 纯推荐模式可用",D("br",{}),"切换设置快捷键: ",D(oo,{color:"green",children:"shift+y"})]})})}),D("div",{className:Ke.row,style:{marginTop:5},children:D(un,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab 按钮: 使用标准高度",tooltip:"默认紧凑高度"})})]})]})})},{label:"主题选择",key:"theme-select",children:D("div",{className:Ke.tabPane,children:ye("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),D("div",{className:F(Ke.settingsGroupContent),children:D(HH,{})})]})})},{label:"高级设置",key:"advance",children:D("div",{className:Ke.tabPane,children:ye("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"设置项"}),D("div",{className:F(Ke.settingsGroupContent),children:D("div",{className:Ke.row,children:D(Cp,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:C7,children:D(Xt,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),D("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),ye("div",{className:F(Ke.settingsGroupContent),children:[ye("div",{className:Ke.row,children:[D(un,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${fn}`}),ye("a",{style:{marginLeft:15,display:"inline-flex",alignItems:"center"},href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[D(Tt,{name:"EfferentFour",size:16,style:{marginRight:4}}),"去草稿箱浏览"]})]}),D("div",{className:Ke.row,style:{marginTop:5},children:D(Cp,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:S7,children:D(Xt,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),D("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"稍后再看 & 收藏"}),ye("div",{className:F(Ke.settingsGroupContent),children:[D("div",{className:Ke.row,children:D(un,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:D(St,{children:"不包括最近添加的「稍后再看」"})})}),D("div",{className:Ke.row,children:D(un,{configKey:"shuffleForFav",label:"对「收藏」Tab 使用随机顺序"})})]}),D("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"预览"}),ye("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",D(E3,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>yt.autoPreviewUpdateInterval=l,value:n}),ye("span",{style:{width:"65px"},children:["(",n,"ms)"]})]})]})})}]})})]})}const x7=qi.extend("settings"),dg={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,enableFilterForFollowedVideo:!1,filterOutGotoTypePicture:!1,enableFilterForFollowedPicture:!1,styleUseYoutubeLikeCard:!1,styleUseStandardVideoSourceTab:!1,backupSettingsToArticleDraft:!1},yt=rr({...dg}),Dw=Object.keys(dg);function _n(){return or(yt)}const $7=fn,zw=`${$7}.settings`;async function E7(){const e=await GM.getValue(zw);e&&typeof e=="object"&&Object.assign(yt,Dm(e,Dw)),tg(yt,()=>{I7();});}const O7=vy(u7,hu("5s"));async function I7(){const e=Vl(yt);await GM.setValue(zw,e),await P7(e);}async function P7(e){if(!e.backupSettingsToArticleDraft||Lw)return;const t=VP(e,["accessKey"]);try{await O7(t),x7("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function Ir(e){Object.assign(yt,e);}function R7(){return Ir(dg)}await( E7());var jw={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Io,function(){var n,r,o=1e3,i=6e4,a=36e5,s=864e5,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=31536e6,u=2592e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,m={years:c,months:u,days:s,hours:a,minutes:i,seconds:o,milliseconds:1,weeks:6048e5},h=function($){return $ instanceof E},g=function($,x,w){return new E($,w,x.$l)},v=function($){return r.p($)+"s"},p=function($){return $<0},b=function($){return p($)?Math.ceil($):Math.floor($)},y=function($){return Math.abs($)},S=function($,x){return $?p($)?{negative:!0,format:""+y($)+x}:{negative:!1,format:""+$+x}:{negative:!1,format:""}},E=function(){function $(w,O,_){var A=this;if(this.$d={},this.$l=_,w===void 0&&(this.$ms=0,this.parseFromMilliseconds()),O)return g(w*m[v(O)],this);if(typeof w=="number")return this.$ms=w,this.parseFromMilliseconds(),this;if(typeof w=="object")return Object.keys(w).forEach(function(P){A.$d[v(P)]=w[P];}),this.calMilliseconds(),this;if(typeof w=="string"){var R=w.match(d);if(R){var I=R.slice(2).map(function(P){return P!=null?Number(P):0});return this.$d.years=I[0],this.$d.months=I[1],this.$d.weeks=I[2],this.$d.days=I[3],this.$d.hours=I[4],this.$d.minutes=I[5],this.$d.seconds=I[6],this.calMilliseconds(),this}}return this}var x=$.prototype;return x.calMilliseconds=function(){var w=this;this.$ms=Object.keys(this.$d).reduce(function(O,_){return O+(w.$d[_]||0)*m[_]},0);},x.parseFromMilliseconds=function(){var w=this.$ms;this.$d.years=b(w/c),w%=c,this.$d.months=b(w/u),w%=u,this.$d.days=b(w/s),w%=s,this.$d.hours=b(w/a),w%=a,this.$d.minutes=b(w/i),w%=i,this.$d.seconds=b(w/o),w%=o,this.$d.milliseconds=w;},x.toISOString=function(){var w=S(this.$d.years,"Y"),O=S(this.$d.months,"M"),_=+this.$d.days||0;this.$d.weeks&&(_+=7*this.$d.weeks);var A=S(_,"D"),R=S(this.$d.hours,"H"),I=S(this.$d.minutes,"M"),P=this.$d.seconds||0;this.$d.milliseconds&&(P+=this.$d.milliseconds/1e3);var M=S(P,"S"),N=w.negative||O.negative||A.negative||R.negative||I.negative||M.negative,T=R.format||I.format||M.format?"T":"",L=(N?"-":"")+"P"+w.format+O.format+A.format+T+R.format+I.format+M.format;return L==="P"||L==="-P"?"P0D":L},x.toJSON=function(){return this.toISOString()},x.format=function(w){var O=w||"YYYY-MM-DDTHH:mm:ss",_={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 O.replace(l,function(A,R){return R||String(_[A])})},x.as=function(w){return this.$ms/m[v(w)]},x.get=function(w){var O=this.$ms,_=v(w);return _==="milliseconds"?O%=1e3:O=_==="weeks"?b(O/m[_]):this.$d[_],O===0?0:O},x.add=function(w,O,_){var A;return A=O?w*m[v(O)]:h(w)?w.$ms:g(w,this).$ms,g(this.$ms+A*(_?-1:1),this)},x.subtract=function(w,O){return this.add(w,O,!0)},x.locale=function(w){var O=this.clone();return O.$l=w,O},x.clone=function(){return g(this.$ms,this)},x.humanize=function(w){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!w)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},$}(),C=function($,x,w){return $.add(x.years()*w,"y").add(x.months()*w,"M").add(x.days()*w,"d").add(x.hours()*w,"h").add(x.minutes()*w,"m").add(x.seconds()*w,"s").add(x.milliseconds()*w,"ms")};return function($,x,w){n=w,r=w().$utils(),w.duration=function(A,R){var I=w.locale();return g(A,{$l:I},R)},w.isDuration=h;var O=x.prototype.add,_=x.prototype.subtract;x.prototype.add=function(A,R){return h(A)?C(this,A,1):O.bind(this)(A,R)},x.prototype.subtract=function(A,R){return h(A)?C(this,A,-1):_.bind(this)(A,R)};}});})(jw);var _7=jw.exports;const T7=an(_7);var yu,Wb=p0;yu=Wb.createRoot,Wb.hydrateRoot;function fg(e){const t=rr({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(rr(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 M7(e){const t=rr({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 N7 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;return this.cache.has(t)?this.cache.set(t,{value:n,expiry:o}):this._set(t,{value:n,expiry:o}),this}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 k7(e){return (await $n.get("/x/player/videoshot",{params:{aid:e,index:"1"}})).data.data}async function A7(e){return []}const Ld=new N7({maxSize:1e3});async function L7(e){if(Ld.has(e))return Ld.get(e);const[t,n]=await Promise.all([k7(e),A7()]);return Ld.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function Bw(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:Es()}),i=(await $n.post("/x/v2/history/toview/"+e,r)).data,a=Yo(i);return a||vt((i==null?void 0:i.message)||"出错了"),a}}const Qs=Bw("add"),Vb=Bw("del"),Hw=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const i=(await gu.get(yy+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return Yo(i)}},D7=Hw("dislike"),z7=Hw("cancel"),j7="_modal_1rloz_1",B7="_title-desc_1rloz_4",H7="_reason-list_1rloz_8",F7="_reason_1rloz_8",W7="_active_1rloz_29",V7="_reason-no_1rloz_33",U7="_tips-container_1rloz_47",G7="_tips_1rloz_47",qn={modal:j7,titleDesc:B7,reasonList:H7,reason:F7,active:W7,reasonNo:V7,tipsContainer:U7,tips:G7},Cu=M7();function K7(){return or(Cu)}function X7(e){const t=K7();if(e)return t.get(e)}function q7({show:e,onHide:t,item:n}){const[r,o]=f.useState(!1),i=ot(async h=>{if(!n)return;let g=!1,v;try{o(!0),g=await D7(n,h.id);}catch(p){v=p;}finally{o(!1);}if(v)return console.error(v.stack||v),hw();g?vt("已标记不想看"):gw(),g&&(Cu.set(n.param,{...h}),t());}),a=f.useMemo(()=>{var h;return ((h=n==null?void 0:n.three_point)==null?void 0:h.dislike_reasons)||[]},[n]),s=()=>!!e&&!!n,l=["1","2","3","4","5","6"];Qt(l,h=>{if(!s()||!l.includes(h.key))return;const g=Number(h.key)-1;u(g);const v=document.querySelectorAll(`.${qn.reason}`)[g]||null;v==null||v.click();});const[c,u]=f.useState(a.length-1);$F(()=>{u(a.length-1);},[a]);const d=h=>()=>{if(!s())return;const g=c+h;g<0||g>a.length-1||u(g);};Qt("leftarrow",d(-1)),Qt("rightarrow",d(1)),Qt("uparrow",d(-2)),Qt("downarrow",d(2)),Qt("enter",h=>{var g;s()&&(c<0||c>a.length-1||(h.preventDefault(),h.stopImmediatePropagation(),(g=document.querySelector(`.${qn.reason}.${qn.active}`))==null||g.click()));});const m=f.useMemo(()=>{var h;return ((h=a[c])==null?void 0:h.name)||""},[a,c]);return ye(sg,{show:e,onHide:t,clsModal:qn.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[ye("div",{className:$r.modalHeader,children:[ye("div",{className:$r.modalTitle,children:["我不想看",D("span",{className:qn.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),D("div",{className:"space",style:{flex:1}}),D(lg,{onClick:t})]}),ye("div",{className:$r.modalBody,children:[D("div",{className:qn.reasonList,children:a.map((h,g)=>ye("button",{className:F(qn.reason,{[qn.active]:g===c}),style:{...g===c&&{borderColor:Vr}},"data-id":h.id,onClick:()=>{u(g),i(h);},disabled:r,children:[D("span",{className:qn.reasonNo,style:{backgroundColor:Vr},children:g+1}),h.name]},h.id))}),ye("div",{className:qn.tipsContainer,children:[ye("div",{className:qn.tips,children:[D(Tt,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),m&&ye("div",{className:qn.tips,children:[D(Tt,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",m,"」, 回车键提交"]})]})]})]})}const bl={show:!1,onHide:Ww,item:null},Fw=rr({value:bl.show}),Y7=function(){return or(Fw).value};function Ww(){setTimeout(()=>{Vw({show:!1,item:null});});}function Vw(e){Object.assign(bl,e),Fw.value=bl.show,Z7().render(D(q7,{...bl,onHide:Ww}));}let Dd;function Z7(){if(!Dd){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),Dd=yu(e);}return Dd}function Q7(e){e!=null&&e.param&&Cu.has(e.param)||Vw({show:!0,item:e});}const Uw=f__namespace.createContext(null),J7=Uw.Provider,Gw=f__namespace.createContext(null),eW=Gw.Provider,tW=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},Rt(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"}})}},nW=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,dotSize:d,colorBgContainerDisabled:m,colorTextDisabled:h,paddingXS:g,dotColorDisabled:v,lineType:p,radioDotDisabledSize:b,wireframe:y,colorWhite:S}=e,E=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},Rt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${u}px ${p} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Rt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, &:hover ${E}`]:{borderColor:r},[`${t}-input:focus-visible + ${E}`]:Object.assign({},zo(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:y?r:S,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:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,width:0,height:0,padding:0,margin:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[E]:{borderColor:r,backgroundColor:y?l:r,"&::after":{transform:`scale(${d/o})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[E]:{backgroundColor:m,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:v}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[E]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},rW=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:m,controlHeightLG:h,controlHeightSM:g,paddingXS:v,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:S,buttonSolidCheckedColor:E,colorTextDisabled:C,colorBgContainerDisabled:$,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:w,colorPrimary:O,colorPrimaryHover:_,colorPrimaryActive:A}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-o*2}px`,background:d,border:`${o}px ${i} ${a}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${i} ${a}`,borderStartStartRadius: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:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:g,paddingInline:v-o,paddingBlock:0,lineHeight:`${g-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":Object.assign({},zo(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:O,background:S,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:_,borderColor:_,"&::before":{backgroundColor:_}},"&:active":{color:A,borderColor:A,"&::before":{backgroundColor:A}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:E,background:O,borderColor:O,"&:hover":{color:E,background:_,borderColor:_},"&:active":{color:E,background:A,borderColor:A}},"&-disabled":{color:C,backgroundColor:$,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:$,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:w,backgroundColor:x,borderColor:a,boxShadow:"none"}}}},Ub=e=>e-4*2,Kw=Bt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,i=o,a=Ub(r),s=ct(e,{radioDotDisabledSize:a,radioFocusShadow:o,radioButtonFocusShadow:i});return [tW(s),nW(s),rW(s)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u}=e,d=4,m=i,h=t?Ub(m):m-(d+o)*2;return {radioSize:m,dotSize:h,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var oW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=f__namespace.useContext(Uw),i=f__namespace.useContext(Gw),{getPrefixCls:a,direction:s,radio:l}=f__namespace.useContext(Je),c=f__namespace.useRef(null),u=xn(t,c),{isFormItemInput:d}=f__namespace.useContext(nr),m=A=>{var R,I;(R=e.onChange)===null||R===void 0||R.call(e,A),(I=o==null?void 0:o.onChange)===null||I===void 0||I.call(o,A);},{prefixCls:h,className:g,rootClassName:v,children:p,style:b}=e,y=oW(e,["prefixCls","className","rootClassName","children","style"]),S=a("radio",h),E=((o==null?void 0:o.optionType)||i)==="button",C=E?`${S}-button`:S,[$,x]=Kw(S),w=Object.assign({},y),O=f__namespace.useContext(_r);o&&(w.name=o.name,w.onChange=m,w.checked=e.value===o.value,w.disabled=(n=w.disabled)!==null&&n!==void 0?n:o.disabled),w.disabled=(r=w.disabled)!==null&&r!==void 0?r:O;const _=F(`${C}-wrapper`,{[`${C}-wrapper-checked`]:w.checked,[`${C}-wrapper-disabled`]:w.disabled,[`${C}-wrapper-rtl`]:s==="rtl",[`${C}-wrapper-in-form-item`]:d},l==null?void 0:l.className,g,v,x);return $(f__namespace.createElement(ms,{component:"Radio",disabled:w.disabled},f__namespace.createElement("label",{className:_,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},f__namespace.createElement(WS,Object.assign({},w,{className:F(w.className,!E&&Vc),type:"radio",prefixCls:C,ref:u})),p!==void 0?f__namespace.createElement("span",null,p):null)))},aW=f__namespace.forwardRef(iW),Yl=aW,sW=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(Je),[o,i]=Dt(e.defaultValue,{value:e.value}),a=R=>{const I=o,P=R.target.value;"value"in e||i(P);const{onChange:M}=e;M&&P!==I&&M(R);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:m,children:h,size:g,style:v,id:p,onMouseEnter:b,onMouseLeave:y,onFocus:S,onBlur:E}=e,C=n("radio",s),$=`${C}-group`,[x,w]=Kw(C);let O=h;u&&u.length>0&&(O=u.map(R=>typeof R=="string"||typeof R=="number"?f__namespace.createElement(Yl,{key:R.toString(),prefixCls:C,disabled:m,value:R,checked:o===R},R):f__namespace.createElement(Yl,{key:`radio-group-value-options-${R.value}`,prefixCls:C,disabled:R.disabled||m,value:R.value,checked:o===R.value,title:R.title,style:R.style},R.label)));const _=Wn(g),A=F($,`${$}-${d}`,{[`${$}-${_}`]:_,[`${$}-rtl`]:r==="rtl"},l,c,w);return x(f__namespace.createElement("div",Object.assign({},Di(e,{aria:!0,data:!0}),{className:A,style:v,onMouseEnter:b,onMouseLeave:y,onFocus:S,onBlur:E,id:p,ref:t}),f__namespace.createElement(J7,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},O)))}),lW=f__namespace.memo(sW);var cW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=f__namespace.useContext(Je),{prefixCls:r}=e,o=cW(e,["prefixCls"]),i=n("radio",r);return f__namespace.createElement(eW,{value:"button"},f__namespace.createElement(Yl,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},dW=f__namespace.forwardRef(uW),Su=Yl;Su.Button=dW;Su.Group=lW;Su.__ANT_RADIO=!0;const Gb=Su;function fW(e,t){const n=Object.keys(e),r=Dm(JSON.parse(localStorage.getItem(t)||"{}"),n),o=rr({...e,...r});return tg(o,()=>{const i=Vl(o);localStorage.setItem(t,JSON.stringify(i));}),o}const mW=`${fn}-video-source-tab`,mg=fW({value:"recommend-app"},mW),Kb={name:"qamjgr",styles:"margin-right:4px"},Zl=[{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:"你添加的稍后再看; 默认随机乱序, 可在设置-高级设置 或 稍后再看 Tab 中关闭乱序",swr:!0},{key:"fav",icon:"Star",iconProps:{size:15},label:"收藏",desc:"你添加的收藏; 默认随机乱序, 可在设置-高级设置 或 收藏 Tab 中关闭乱序",reuseable:!1}],Xb=Zl.reduce((e,t)=>({...e,[t.key]:t}),{}),hW=Zl.map(e=>e.key);function Xw(e,t){return hW.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function Is(){return Xw(or(mg).value,kw())}function gW(){return Xw(mg.value,Os())}function vW(){return vt("你需要登录B站后使用该功能! 如已完成登录, 请刷新网页重试~")}const pW={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},bW={name:"s0vnfv",styles:"height:32px"};var yW={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},CW={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function qw({onRefresh:e}){const t=kw(),n=Is(),{styleUseStandardVideoSourceTab:r}=_n();return ye(St,{children:[D(Gb.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&&!QF())return vW();mg.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:Zl.map(({key:o,label:i,icon:a,iconProps:s})=>D(Gb.Button,{css:[pW,r&&bW,"",""],className:"video-source-tab",tabIndex:-1,value:o,children:ye("span",{css:CW,children:[D(Tt,{name:a,...s,size:(s==null?void 0:s.size)||18,css:Kb}),i]})},o))}),D(Gl,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:D(St,{children:Zl.map(({key:o,label:i,icon:a,iconProps:s,desc:l})=>ye("div",{css:yW,children:[D(Tt,{name:a,...s,size:(s==null?void 0:s.size)||18,css:Kb}),i,": ",l]},o))})})]})}var SW={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 wW=SW;var xW=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:wW}))};const Ql=f__namespace.forwardRef(xW);const Yw=f__namespace.createContext({});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{const{prefixCls:t,className:n,dashed:r}=e,o=$W(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=f__namespace.useContext(Je),a=i("menu",t),s=F({[`${a}-item-divider-dashed`]:!!r},n);return f__namespace.createElement(Rh,Object.assign({className:s},o))},Zw=EW,OW=f.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Jl=OW,IW=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=f__namespace.useContext(Jl),m=y=>{const S=f__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||Fr(r)&&r.type==="span")&&r&&y&&l&&typeof r=="string"?f__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):S},{siderCollapsed:h}=f__namespace.useContext(Yw);let g=i;typeof i>"u"?g=l?r:"":i===!1&&(g="");const v={title:g};!h&&!d&&(v.title=null,v.open=!1);const p=tr(r).length;let b=f__namespace.createElement(ps,Object.assign({},Cn(e,["title","icon","danger"]),{className:F({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(o?p+1:p)===1},n),title:typeof i=="string"?i:void 0}),yn(o,{className:F(Fr(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m(d));return u||(b=f__namespace.createElement(ds,Object.assign({},v,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},Qw=IW,PW=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=f__namespace.useContext(Jl),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=ea();let d;if(!r)d=l&&!u.length&&o&&typeof o=="string"?f__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):f__namespace.createElement("span",{className:`${s}-title-content`},o);else {const h=Fr(o)&&o.type==="span";d=f__namespace.createElement(f__namespace.Fragment,null,yn(r,{className:F(Fr(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?o:f__namespace.createElement("span",{className:`${s}-title-content`},o));}const m=f__namespace.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]);return f__namespace.createElement(Jl.Provider,{value:m},f__namespace.createElement(Qc,Object.assign({},Cn(e,["icon"]),{title:d,popupClassName:F(s,n,`${s}-${i||c}`)})))},Jw=PW;var RW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=RW(e,["children"]),o=f__namespace.useContext(ec),i=f__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]);return f__namespace.createElement(ec.Provider,{value:i},f__namespace.createElement(Mi,null,f__namespace.cloneElement(n,{ref:t})))});var TW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:s}=r,l=TW(r,["label","children","key","type"]),c=a??`tmp-${n}`;return i||s==="group"?s==="group"?f__namespace.createElement(Jc,Object.assign({key:c},l,{title:o}),Zf(i)):f__namespace.createElement(Jw,Object.assign({key:c},l,{title:o}),Zf(i)):s==="divider"?f__namespace.createElement(Zw,Object.assign({key:c},l)):f__namespace.createElement(Qw,Object.assign({key:c},l),o)}return null}).filter(t=>t)}function MW(e){return f__namespace.useMemo(()=>e&&Zf(e),[e])}const NW=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=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:s},[`> ${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"}}}},kW=NW,AW=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})`}}}}},LW=AW,qb=e=>Object.assign({},zo(e)),DW=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:m,motionEaseInOut:h,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:p,itemHoverColor:b,lineType:y,colorSplit:S,itemDisabledColor:E,dangerItemColor:C,dangerItemHoverColor:$,dangerItemSelectedColor:x,dangerItemActiveBg:w,dangerItemSelectedBg:O,itemHoverBg:_,itemActiveBg:A,menuSubMenuBg:R,horizontalItemSelectedColor:I,horizontalItemSelectedBg:P,horizontalItemBorderRadius:M,horizontalItemHoverBg:N,popupBg:T}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},qb(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${E} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:A}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:w}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:x},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:O}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},qb(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:R},[`&${n}-popup > ${n}`]:{backgroundColor:T},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:M,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${m} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:c,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:c,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${g}`,`opacity ${p} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:x}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(",")}}}}}},Yb=DW,Zb=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s}=e,l=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:s,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:l}}},zW=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:m,paddingXS:h,boxShadowSecondary:g,collapsedWidth:v,collapsedIconSize:p}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Zb(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Zb(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 ${s} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}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({},Do),{paddingInline:h})}}]},jW=zW,Qb=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=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:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Go()),[`&${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"}}}},Jb=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})`}}}}},BW=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:m,subMenuItemBorderRadius:h,menuArrowSize:g,menuArrowOffset:v,lineType:p,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:S}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},df()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),df()),{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:`${s}px ${l}px`,fontSize:S,lineHeight:y,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:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Qb(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},Qb(e)),Jb(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),Jb(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"}}}]},HW=(e,t)=>Bt("Menu",r=>{if(t===!1)return [];const{colorBgElevated:o,colorPrimary:i,colorTextLightSolid:a,controlHeightLG:s,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:m,darkItemSelectedColor:h,darkItemSelectedBg:g,darkDangerItemSelectedBg:v,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:S,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:$}=r,x=l/7*5,w=ct(r,{menuArrowSize:x,menuHorizontalHeight:s*1.15,menuArrowOffset:`${x*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),O=ct(w,{itemColor:c,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:h,itemBg:d,popupBg:d,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:S,dangerItemColor:u,dangerItemHoverColor:E,dangerItemSelectedColor:C,dangerItemActiveBg:$,dangerItemSelectedBg:v,menuSubMenuBg:m,horizontalItemSelectedColor:a,horizontalItemSelectedBg:i});return [BW(w),kW(w),jW(w),Yb(w,"light"),Yb(O,"dark"),LW(w),M1(w),ho(w,"slide-up"),ho(w,"slide-down"),Lc(w,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:m,lineWidth:h,lineWidthBold:g,controlItemBgActive:v,colorBgTextHover:p,controlHeightLG:b,lineHeight:y,colorBgElevated:S,marginXXS:E,padding:C,fontSize:$,controlHeightSM:x,fontSizeLG:w,colorTextLightSolid:O,colorErrorHover:_}=r,A=new Ut(O).setAlpha(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:v,colorSubItemBg:d,subMenuItemBg:d,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:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:S,itemMarginBlock:E,itemPaddingInline:C,horizontalLineHeight:`${b*1.15}px`,iconSize:$,iconMarginInlineEnd:x-$,collapsedIconSize:w,groupTitleFontSize:$,darkItemDisabledColor:new Ut(O).setAlpha(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:i,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:O,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:O,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 FW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=f__namespace.useContext(ec),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=f__namespace.useContext(Je),u=a(),{prefixCls:d,className:m,style:h,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:y,items:S,children:E,rootClassName:C,mode:$,selectable:x,onClick:w,overflowedIndicatorPopupClassName:O}=e,_=FW(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),A=Cn(_,["collapsedWidth"]),R=MW(S)||E;(n=i.validator)===null||n===void 0||n.call(i,{mode:$});const I=Nn(function(){var j;w==null||w.apply(void 0,arguments),(j=i.onClick)===null||j===void 0||j.call(i);}),P=i.mode||$,M=x??i.selectable,N=f__namespace.useMemo(()=>y!==void 0?y:b,[b,y]),T={horizontal:{motionName:`${u}-slide-up`},inline:O1(u),other:{motionName:`${u}-zoom-big`}},L=a("menu",d||i.prefixCls),[z,H]=HW(L,!o),W=F(`${L}-${g}`,c==null?void 0:c.className,m);let B;if(typeof v=="function")B=v;else {const j=v||i.expandIcon;B=yn(j,{className:F(`${L}-submenu-expand-icon`,Fr(j)?(r=j.props)===null||r===void 0?void 0:r.className:"")});}const V=f__namespace.useMemo(()=>({prefixCls:L,inlineCollapsed:N||!1,direction:l,firstLevel:!0,theme:g,mode:P,disableMenuItemTitleTooltip:p}),[L,N,l,p,g]);return z(f__namespace.createElement(ec.Provider,{value:null},f__namespace.createElement(Jl.Provider,{value:V},f__namespace.createElement(ta,Object.assign({getPopupContainer:s,overflowedIndicator:f__namespace.createElement(xh,null),overflowedIndicatorPopupClassName:F(L,`${L}-${g}`,O),mode:P,selectable:M,onClick:I},A,{inlineCollapsed:N,style:Object.assign(Object.assign({},c==null?void 0:c.style),h),className:W,prefixCls:L,direction:l,defaultMotions:T,expandIcon:B,ref:t,rootClassName:F(C,H)}),R))))}),VW=WW,Ps=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f__namespace.useContext(Yw);return f.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o);}})),f__namespace.createElement(VW,Object.assign({ref:n},e,r))});Ps.Item=Qw;Ps.SubMenu=Jw;Ps.Divider=Zw;Ps.ItemGroup=Jc;const UW=Ps,GW=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}}}}}},KW=GW,XW=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,dropdownPaddingVertical:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:m,fontSizeIcon:h,controlPaddingHorizontal:g,colorBgElevated:v}=e;return [{[t]:Object.assign(Object.assign({},Rt(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`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-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:rh},[`&${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:ih},[`&${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:oh},[`&${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:ah}})},th(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:d,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},jo(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${g}px`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&: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:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},jo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor: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}})}},[ho(e,"slide-up"),ho(e,"slide-down"),kl(e,"move-up"),kl(e,"move-down"),Lc(e,"zoom-big")]]},ex=Bt("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:s,paddingXXS:l,componentCls:c,borderRadiusLG:u}=e,d=(i-a*s)/2,{dropdownArrowOffset:m}=eh({contentRadius:u}),h=ct(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:m,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return [XW(h),KW(h)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),hg=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:s,getPopupContainer:l,overlayClassName:c,rootClassName:u,open:d,onOpenChange:m,visible:h,onVisibleChange:g,mouseEnterDelay:v=.15,mouseLeaveDelay:p=.1,autoAdjustOverflow:b=!0,placement:y="",overlay:S,transitionName:E}=e,{getPopupContainer:C,getPrefixCls:$,direction:x}=f__namespace.useContext(Je),w=f__namespace.useMemo(()=>{const X=$();return E!==void 0?E:y.includes("top")?`${X}-slide-down`:`${X}-slide-up`},[$,y,E]),O=f__namespace.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:x==="rtl"?"bottomRight":"bottomLeft",[y,x]),_=$("dropdown",r),[A,R]=ex(_),{token:I}=Ni.useToken(),P=f__namespace.Children.only(o),M=yn(P,{className:F(`${_}-trigger`,{[`${_}-rtl`]:x==="rtl"},P.props.className),disabled:a}),N=a?[]:i;let T;N&&N.includes("contextMenu")&&(T=!0);const[L,z]=Dt(!1,{value:d??h}),H=Nn(X=>{m==null||m(X),g==null||g(X),z(X);}),W=F(c,u,R,{[`${_}-rtl`]:x==="rtl"}),B=P1({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:b,offset:I.marginXXS,arrowWidth:n?I.sizePopupArrow:0,borderRadius:I.borderRadius}),V=f__namespace.useCallback(()=>{z(!1);},[]),j=()=>{let X;return t!=null&&t.items?X=f__namespace.createElement(UW,Object.assign({},t)):typeof S=="function"?X=S():X=S,s&&(X=s(X)),X=f__namespace.Children.only(typeof X=="string"?f__namespace.createElement("span",null,X):X),f__namespace.createElement(_W,{prefixCls:`${_}-menu`,expandIcon:f__namespace.createElement("span",{className:`${_}-menu-submenu-arrow`},f__namespace.createElement(zi,{className:`${_}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:V,validator:K=>{}},X)};return A(f__namespace.createElement(MC,Object.assign({alignPoint:T},Cn(e,["rootClassName"]),{mouseEnterDelay:v,mouseLeaveDelay:p,visible:L,builtinPlacements:B,arrow:!!n,overlayClassName:W,prefixCls:_,getPopupContainer:l||C,transitionName:w,trigger:N,overlay:j,placement:O,onVisibleChange:H}),M))};function qW(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const YW=Bh(hg,"dropdown",e=>e,qW),ZW=e=>f__namespace.createElement(YW,Object.assign({},e),f__namespace.createElement("span",null));hg._InternalPanelDoNotUseOrYouWillBeFired=ZW;const tx=hg;var QW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=f__namespace.useContext(Je),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:m,menu:h,arrow:g,autoFocus:v,overlay:p,trigger:b,align:y,open:S,onOpenChange:E,placement:C,getPopupContainer:$,href:x,icon:w=f__namespace.createElement(xh,null),title:O,buttonsRender:_=re=>re,mouseEnterDelay:A,mouseLeaveDelay:R,overlayClassName:I,overlayStyle:P,destroyPopupOnHide:M,dropdownRender:N}=e,T=QW(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"]),L=n("dropdown",o),z=`${L}-button`,[H,W]=ex(L),B={menu:h,arrow:g,autoFocus:v,align:y,disabled:s,trigger:s?[]:b,onOpenChange:E,getPopupContainer:$||t,mouseEnterDelay:A,mouseLeaveDelay:R,overlayClassName:I,overlayStyle:P,destroyPopupOnHide:M,dropdownRender:N},{compactSize:V,compactItemClassnames:j}=Ji(L,r),X=F(z,j,m,W);"overlay"in e&&(B.overlay=p),"open"in e&&(B.open=S),"placement"in e?B.placement=C:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const K=f__namespace.createElement(Xt,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:x,title:O},d),G=f__namespace.createElement(Xt,{type:i,danger:a,icon:w}),[U,Y]=_([K,G]);return H(f__namespace.createElement(Xc.Compact,Object.assign({className:X,size:V,block:!0},T),U,f__namespace.createElement(tx,Object.assign({},B),Y)))};nx.__ANT_BUTTON=!0;const JW=nx,rx=tx;rx.Button=JW;const gg=rx;function pi(e,t,n){const r=ot(n);f.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}const eV=new Ct("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),tV=new Ct("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),nV=new Ct("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),rV=new Ct("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),oV=new Ct("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),iV=new Ct("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),aV=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeFontHeight:o,badgeShadowSize:i,badgeHeightSm:a,motionDurationSlow:s,badgeStatusSize:l,marginXS:c,badgeRibbonOffset:u}=e,d=`${r}-scroll-number`,m=`${r}-ribbon`,h=`${r}-ribbon-wrapper`,g=Il(e,(p,b)=>{let{darkColor:y}=b;return {[`&${t} ${t}-color-${p}`]:{background:y,[`&:not(${t}-count)`]:{color:y}}}}),v=Il(e,(p,b)=>{let{darkColor:y}=b;return {[`&${m}-color-${p}`]:{background:y,color:y}}});return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:a,height:a,fontSize:e.badgeFontSizeSm,lineHeight:`${a}px`,borderRadius:a/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${s}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:iV,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:eV,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:c,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:tV,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:nV,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:rV,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:oV,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${d}-custom-component, ${t}-count`]:{transform:"none"},[`${d}-custom-component, ${d}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${d}`]:{overflow:"hidden",[`${d}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${d}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${h}`]:{position:"relative"},[`${m}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),{position:"absolute",top:c,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${o}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${m}-text`]:{color:e.colorTextLightSolid},[`${m}-corner`]:{position:"absolute",top:"100%",width:u,height:u,color:"currentcolor",border:`${u/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),v),{[`&${m}-placement-end`]:{insetInlineEnd:-u,borderEndEndRadius:0,[`${m}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${m}-placement-start`]:{insetInlineStart:-u,borderEndStartRadius:0,[`${m}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},ox=Bt("Badge",e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o,marginXS:i,colorBorderBg:a}=e,s=Math.round(t*n),l=o,c="auto",u=s-2*l,d=e.colorBgContainer,m="normal",h=r,g=e.colorError,v=e.colorErrorHover,p=t,b=r/2,y=r,S=r/2,E=ct(e,{badgeFontHeight:s,badgeShadowSize:l,badgeZIndex:c,badgeHeight:u,badgeTextColor:d,badgeFontWeight:m,badgeFontSize:h,badgeColor:g,badgeColorHover:v,badgeShadowColor:a,badgeHeightSm:p,badgeDotSize:b,badgeFontSizeSm:y,badgeStatusSize:S,badgeProcessingDuration:"1.2s",badgeRibbonOffset:i,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return [aV(E)]}),sV=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:s="end"}=e,{getPrefixCls:l,direction:c}=f__namespace.useContext(Je),u=l("ribbon",n),d=Dc(o,!1),m=F(u,`${u}-placement-${s}`,{[`${u}-rtl`]:c==="rtl",[`${u}-color-${o}`]:d},t),[h,g]=ox(u),v={},p={};return o&&!d&&(v.background=o,p.color=o),h(f__namespace.createElement("div",{className:F(`${u}-wrapper`,g)},i,f__namespace.createElement("div",{className:F(m,g),style:Object.assign(Object.assign({},v),r)},f__namespace.createElement("span",{className:`${u}-text`},a),f__namespace.createElement("div",{className:`${u}-corner`,style:p}))))},lV=sV;function e0(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),f__namespace.createElement("span",{style:i,className:F(`${t}-only-unit`,{current:r})},n)}function cV(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function uV(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,s]=f__namespace.useState(o),[l,c]=f__namespace.useState(i),u=()=>{s(o),c(i);};f__namespace.useEffect(()=>{const h=setTimeout(()=>{u();},1e3);return ()=>{clearTimeout(h);}},[o]);let d,m;if(a===o||Number.isNaN(o)||Number.isNaN(a))d=[f__namespace.createElement(e0,Object.assign({},e,{key:o,current:!0}))],m={transition:"none"};else {d=[];const h=o+10,g=[];for(let b=o;b<=h;b+=1)g.push(b);const v=g.findIndex(b=>b%10===a);d=g.map((b,y)=>{const S=b%10;return f__namespace.createElement(e0,Object.assign({},e,{key:b,value:S,offset:y-v,current:y===v}))});const p=l{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:s,show:l,component:c="sup",children:u}=e,d=dV(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=f__namespace.useContext(Je),h=m("scroll-number",n),g=Object.assign(Object.assign({},d),{"data-show":l,style:a,className:F(h,o,i),title:s});let v=r;if(r&&Number(r)%1===0){const p=String(r).split("");v=f__namespace.createElement("bdi",null,p.map((b,y)=>f__namespace.createElement(uV,{prefixCls:h,count:Number(r),value:b,key:p.length-y})));}return a&&a.borderColor&&(g.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?yn(u,p=>({className:F(`${h}-custom-component`,p==null?void 0:p.className,i)})):f__namespace.createElement(c,Object.assign({},g,{ref:t}),v)}),mV=fV;var hV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:m,count:h=null,overflowCount:g=99,dot:v=!1,size:p="default",title:b,offset:y,style:S,className:E,rootClassName:C,classNames:$,styles:x,showZero:w=!1}=e,O=hV(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:_,direction:A,badge:R}=f__namespace.useContext(Je),I=_("badge",s),[P,M]=ox(I),N=h>g?`${g}+`:h,T=N==="0"||N===0,L=h===null||T&&!w,z=(u!=null||m!=null)&&L,H=v&&!T,W=H?"":N,B=f.useMemo(()=>(W==null||W===""||T&&!w)&&!H,[W,T,w,H]),V=f.useRef(h);B||(V.current=h);const j=V.current,X=f.useRef(W);B||(X.current=W);const K=X.current,G=f.useRef(H);B||(G.current=H);const U=f.useMemo(()=>{if(!y)return Object.assign(Object.assign({},R==null?void 0:R.style),S);const q={marginTop:y[1]};return A==="rtl"?q.left=parseInt(y[0],10):q.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},q),R==null?void 0:R.style),S)},[A,y,S,R==null?void 0:R.style]),Y=b??(typeof j=="string"||typeof j=="number"?j:void 0),re=B||!d?null:f__namespace.createElement("span",{className:`${I}-status-text`},d),de=!j||typeof j!="object"?void 0:yn(j,q=>({style:Object.assign(Object.assign({},U),q.style)})),ve=Dc(m,!1),te=F($==null?void 0:$.indicator,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.indicator,{[`${I}-status-dot`]:z,[`${I}-status-${u}`]:!!u,[`${I}-color-${m}`]:ve}),oe={};m&&!ve&&(oe.color=m,oe.background=m);const ce=F(I,{[`${I}-status`]:z,[`${I}-not-a-wrapper`]:!c,[`${I}-rtl`]:A==="rtl"},E,C,R==null?void 0:R.className,(r=R==null?void 0:R.classNames)===null||r===void 0?void 0:r.root,$==null?void 0:$.root,M);if(!c&&z){const q=U.color;return P(f__namespace.createElement("span",Object.assign({},O,{className:ce,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.root),(o=R==null?void 0:R.styles)===null||o===void 0?void 0:o.root),U)}),f__namespace.createElement("span",{className:te,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(i=R==null?void 0:R.styles)===null||i===void 0?void 0:i.indicator),oe)}),d&&f__namespace.createElement("span",{style:{color:q},className:`${I}-status-text`},d)))}return P(f__namespace.createElement("span",Object.assign({ref:t},O,{className:ce,style:Object.assign(Object.assign({},(a=R==null?void 0:R.styles)===null||a===void 0?void 0:a.root),x==null?void 0:x.root)}),c,f__namespace.createElement(qr,{visible:!B,motionName:`${I}-zoom`,motionAppear:!1,motionDeadline:1e3},q=>{let{className:ne,ref:J}=q;var he,me;const pe=_("scroll-number",l),_e=G.current,Be=F($==null?void 0:$.indicator,(he=R==null?void 0:R.classNames)===null||he===void 0?void 0:he.indicator,{[`${I}-dot`]:_e,[`${I}-count`]:!_e,[`${I}-count-sm`]:p==="small",[`${I}-multiple-words`]:!_e&&K&&K.toString().length>1,[`${I}-status-${u}`]:!!u,[`${I}-color-${m}`]:ve});let Ne=Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(me=R==null?void 0:R.styles)===null||me===void 0?void 0:me.indicator),U);return m&&!ve&&(Ne=Ne||{},Ne.background=m),f__namespace.createElement(mV,{prefixCls:pe,show:!B,motionClassName:ne,className:Be,count:K,title:Y,style:Ne,key:"scrollNumber",ref:J},de)}),re))},ix=f__namespace.forwardRef(gV);ix.Ribbon=lV;const vV=ix,ax=["xxl","xl","lg","md","sm","xs"],pV=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)`}),bV=e=>{const t=e,n=[].concat(ax).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o{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],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener);}),n.clear();},register(){Object.keys(t).forEach(i=>{const a=t[i],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}));},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l);});},responsiveMap:t}},[e])}function CV(){const[,e]=f__namespace.useReducer(t=>t+1,0);return e}function sx(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=f.useRef({}),n=CV(),r=yV();return Vt(()=>{const o=r.subscribe(i=>{t.current=i,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const SV=f__namespace.createContext({size:"default",shape:void 0}),Qf=SV,wV=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:m,borderRadiusLG:h,borderRadiusSM:g,lineWidth:v,lineType:p}=e,b=(y,S,E)=>({width:y,height:y,lineHeight:`${y-v*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:E},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:S,[`> ${r}`]:{margin:0}}});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${v}px ${p} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(a,c,m)),{"&-lg":Object.assign({},b(s,u,h)),"&-sm":Object.assign({},b(l,d,g)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},xV=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return {[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},lx=Bt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=ct(e,{avatarBg:n,avatarColor:t});return [wV(r),xV(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return {containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}});var $V=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const[n,r]=f__namespace.useState(1),[o,i]=f__namespace.useState(!1),[a,s]=f__namespace.useState(!0),l=f__namespace.useRef(null),c=f__namespace.useRef(null),u=xn(t,l),{getPrefixCls:d,avatar:m}=f__namespace.useContext(Je),h=f__namespace.useContext(Qf),g=()=>{if(!c.current||!l.current)return;const K=c.current.offsetWidth,G=l.current.offsetWidth;if(K!==0&&G!==0){const{gap:U=4}=e;U*2{i(!0);},[]),f__namespace.useEffect(()=>{s(!0),r(1);},[e.src]),f__namespace.useEffect(g,[e.gap]);const v=()=>{const{onError:K}=e;(K==null?void 0:K())!==!1&&s(!1);},{prefixCls:p,shape:b,size:y="default",src:S,srcSet:E,icon:C,className:$,rootClassName:x,alt:w,draggable:O,children:_,crossOrigin:A}=e,R=$V(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),I=y==="default"?h==null?void 0:h.size:y,P=Object.keys(typeof I=="object"?I||{}:{}).some(K=>["xs","sm","md","lg","xl","xxl"].includes(K)),M=sx(P),N=f__namespace.useMemo(()=>{if(typeof I!="object")return {};const K=ax.find(U=>M[U]),G=I[K];return G?{width:G,height:G,lineHeight:`${G}px`,fontSize:C?G/2:18}:{}},[M,I]),T=d("avatar",p),[L,z]=lx(T),H=F({[`${T}-lg`]:I==="large",[`${T}-sm`]:I==="small"}),W=f__namespace.isValidElement(S),B=b||(h==null?void 0:h.shape)||"circle",V=F(T,H,m==null?void 0:m.className,`${T}-${B}`,{[`${T}-image`]:W||S&&a,[`${T}-icon`]:!!C},$,x,z),j=typeof I=="number"?{width:I,height:I,lineHeight:`${I}px`,fontSize:C?I/2:18}:{};let X;if(typeof S=="string"&&a)X=f__namespace.createElement("img",{src:S,draggable:O,srcSet:E,onError:v,alt:w,crossOrigin:A});else if(W)X=S;else if(C)X=C;else if(o||n!==1){const K=`scale(${n}) translateX(-50%)`,G={msTransform:K,WebkitTransform:K,transform:K},U=typeof I=="number"?{lineHeight:`${I}px`}:{};X=f__namespace.createElement(Or,{onResize:g},f__namespace.createElement("span",{className:`${T}-string`,ref:c,style:Object.assign(Object.assign({},U),G)},_));}else X=f__namespace.createElement("span",{className:`${T}-string`,style:{opacity:0},ref:c},_);return delete R.onError,delete R.gap,L(f__namespace.createElement("span",Object.assign({},R,{style:Object.assign(Object.assign(Object.assign(Object.assign({},j),N),m==null?void 0:m.style),R.style),className:V,ref:u}),X))},OV=f__namespace.forwardRef(EV),cx=OV,t0=e=>{const{size:t,shape:n}=f__namespace.useContext(Qf),r=f__namespace.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return f__namespace.createElement(Qf.Provider,{value:r},e.children)},IV=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(Je),{prefixCls:r,className:o,rootClassName:i,style:a,maxCount:s,maxStyle:l,size:c,shape:u,maxPopoverPlacement:d="top",maxPopoverTrigger:m="hover",children:h}=e,g=t("avatar",r),v=`${g}-group`,[p,b]=lx(g),y=F(v,{[`${v}-rtl`]:n==="rtl"},o,i,b),S=tr(h).map((C,$)=>yn(C,{key:`avatar-key-${$}`})),E=S.length;if(s&&s{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}}}}}}},jV=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}}}},BV=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}}:{}}}},HV=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}}}}}},FV=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rt(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}}),jo(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},WV=Bt("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=2,o=t-r*2,i=n-r*2,a=ct(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 Ut("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [FV(a),HV(a),BV(a),jV(a),zV(a)]});var VV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l}=e,c=VV(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:m}=f__namespace.useContext(Je),h=f__namespace.useContext(_r),g=(o??h)||i,v=u("switch",n),p=f__namespace.createElement("div",{className:`${v}-handle`},i&&f__namespace.createElement(dh,{className:`${v}-loading-icon`})),[b,y]=WV(v),S=Wn(r),E=F(m==null?void 0:m.className,{[`${v}-small`]:S==="small",[`${v}-loading`]:i,[`${v}-rtl`]:d==="rtl"},a,s,y),C=Object.assign(Object.assign({},m==null?void 0:m.style),l);return b(f__namespace.createElement(ms,{component:"Switch"},f__namespace.createElement(fx,Object.assign({},c,{prefixCls:v,className:E,style:C,disabled:g,ref:t,loadingIcon:p}))))});mx.__ANT_SWITCH=!0;const hx=mx,tc=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},UV=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:i}=n;o&&t.set(i,r);}),t};function GV(e,t,n){const r=f__namespace.useMemo(()=>(e||[]).map(a=>(t&&(a=Object.assign(Object.assign({},a),{key:t(a)})),a)),[e,t]),[o,i]=f__namespace.useMemo(()=>{const a=[],s=new Array((n||[]).length),l=tc(n||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:a.push(c);}),[a,s]},[r,n,t]);return [r,o,i]}const KV=[];function mi(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function r0(e){return Array.from(e).join(";")}function XV(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:KV;const[r,o]=f__namespace.useMemo(()=>[new Set(e.map(c=>c.key)),new Set(t.map(c=>c.key))],[e,t]),[i,a]=f__namespace.useState(()=>mi(n,r)),[s,l]=f__namespace.useState(()=>mi(n,o));return f__namespace.useEffect(()=>{a(mi(n,r)),l(mi(n,o));},[n]),f__namespace.useEffect(()=>{a(mi(i,r)),l(mi(s,o));},[r0(r),r0(o)]),[i,s,a,l]}var qV={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 YV=qV;var ZV=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:YV}))};const o0=f__namespace.forwardRef(ZV);var QV={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 JV=QV;var eU=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:JV}))};const i0=f__namespace.forwardRef(eU);var xo={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const tU={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 gx=function(e){go(n,e);var t=vo(n);function n(){var r;Sn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0||s.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&u(r.getValidValue()));},r.go=function(s){var l=r.state.goInputText;l!==""&&(s.keyCode===xo.ENTER||s.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()));},r}return wn(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,i=o.pageSize,a=o.pageSizeOptions;return a.some(function(s){return s.toString()===i.toString()})?a:a.concat([i.toString()]).sort(function(s,l){var c=Number.isNaN(Number(s))?0:Number(s),u=Number.isNaN(Number(l))?0:Number(l);return c-u})}},{key:"render",value:function(){var o=this,i=this.props,a=i.pageSize,s=i.locale,l=i.rootPrefixCls,c=i.changeSize,u=i.quickGo,d=i.goButton,m=i.selectComponentClass,h=i.buildOptionText,g=i.selectPrefixCls,v=i.disabled,p=this.state.goInputText,b="".concat(l,"-options"),y=m,S=null,E=null,C=null;if(!c&&!u)return null;var $=this.getPageSizeOptions();if(c&&y){var x=$.map(function(w,O){return f.createElement(y.Option,{key:O,value:w.toString()},(h||o.buildOptionText)(w))});S=f.createElement(y,{disabled:v,prefixCls:g,showSearch:!1,className:"".concat(b,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||$[0]).toString(),onChange:this.changeSize,getPopupContainer:function(O){return O.parentNode},"aria-label":s.page_size,defaultOpen:!1},x);}return u&&(d&&(C=typeof d=="boolean"?f.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:v,className:"".concat(b,"-quick-jumper-button")},s.jump_to_confirm):f.createElement("span",{onClick:this.go,onKeyUp:this.go},d)),E=f.createElement("div",{className:"".concat(b,"-quick-jumper")},s.jump_to,f.createElement("input",{disabled:v,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,C)),f.createElement("li",{className:"".concat(b)},S,E)}}]),n}(f.Component);gx.defaultProps={pageSizeOptions:["10","20","50","100"]};var ga=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(r,"-item"),m=F(d,"".concat(d,"-").concat(o),(n={},Q(n,"".concat(d,"-active"),i),Q(n,"".concat(d,"-disabled"),!o),Q(n,t.className,a),n)),h=function(){l(o);},g=function(b){c(b,l,o);},v=u(o,"page",f.createElement("a",{rel:"nofollow"},o));return v?f.createElement("li",{title:s?o.toString():null,className:m,onClick:h,onKeyPress:g,tabIndex:0},v):null};function em(){}function a0(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var nU=function(t,n,r){return r};function ro(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var vx=function(e){go(n,e);var t=vo(n);function n(r){var o;Sn(this,n),o=t.call(this,r),o.paginationNode=f.createRef(),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(ro(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(c,u){var d=o.props.prefixCls,m=c||f.createElement("button",{type:"button","aria-label":u,className:"".concat(d,"-item-link")});return typeof c=="function"&&(m=f.createElement(c,ee({},o.props))),m},o.isValid=function(c){var u=o.props.total;return a0(c)&&c!==o.state.current&&a0(u)&&u>0},o.shouldDisplayQuickJumper=function(){var c=o.props,u=c.showQuickJumper,d=c.total,m=o.state.pageSize;return d<=m?!1:u},o.handleKeyDown=function(c){(c.keyCode===xo.ARROW_UP||c.keyCode===xo.ARROW_DOWN)&&c.preventDefault();},o.handleKeyUp=function(c){var u=o.getValidValue(c),d=o.state.currentInputValue;u!==d&&o.setState({currentInputValue:u}),c.keyCode===xo.ENTER?o.handleChange(u):c.keyCode===xo.ARROW_UP?o.handleChange(u-1):c.keyCode===xo.ARROW_DOWN&&o.handleChange(u+1);},o.handleBlur=function(c){var u=o.getValidValue(c);o.handleChange(u);},o.changePageSize=function(c){var u=o.state.current,d=ro(c,o.state,o.props);u=u>d?d:u,d===0&&(u=o.state.current),typeof c=="number"&&("pageSize"in o.props||o.setState({pageSize:c}),"current"in o.props||o.setState({current:u,currentInputValue:u})),o.props.onShowSizeChange(u,c),"onChange"in o.props&&o.props.onChange&&o.props.onChange(u,c);},o.handleChange=function(c){var u=o.props,d=u.disabled,m=u.onChange,h=o.state,g=h.pageSize,v=h.current,p=h.currentInputValue;if(o.isValid(c)&&!d){var b=ro(void 0,o.state,o.props),y=c;return c>b?y=b:c<1&&(y=1),"current"in o.props||o.setState({current:y}),y!==p&&o.setState({currentInputValue:y}),m(y,g),y}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.current2?d-2:0),h=2;h=a?l=a:l=Number(i),l}},{key:"getShowSizeChanger",value:function(){var o=this.props,i=o.showSizeChanger,a=o.total,s=o.totalBoundaryShowSizeChanger;return typeof i<"u"?i:a>s}},{key:"render",value:function(){var o=this.props,i=o.prefixCls,a=o.className,s=o.style,l=o.disabled,c=o.hideOnSinglePage,u=o.total,d=o.locale,m=o.showQuickJumper,h=o.showLessItems,g=o.showTitle,v=o.showTotal,p=o.simple,b=o.itemRender,y=o.showPrevNextJumpers,S=o.jumpPrevIcon,E=o.jumpNextIcon,C=o.selectComponentClass,$=o.selectPrefixCls,x=o.pageSizeOptions,w=this.state,O=w.current,_=w.pageSize,A=w.currentInputValue;if(c===!0&&u<=_)return null;var R=ro(void 0,this.state,this.props),I=[],P=null,M=null,N=null,T=null,L=null,z=m&&m.goButton,H=h?1:2,W=O-1>0?O-1:0,B=O+1u?u:O*_]));if(p){z&&(typeof z=="boolean"?L=f.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):L=f.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z),L=f.createElement("li",{title:g?"".concat(d.jump_to).concat(O,"/").concat(R):null,className:"".concat(i,"-simple-pager")},L));var X=this.renderPrev(W);return f.createElement("ul",Ee({className:F(i,"".concat(i,"-simple"),Q({},"".concat(i,"-disabled"),l),a),style:s,ref:this.paginationNode},V),j,X?f.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:F("".concat(i,"-prev"),Q({},"".concat(i,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},X):null,f.createElement("li",{title:g?"".concat(O,"/").concat(R):null,className:"".concat(i,"-simple-pager")},f.createElement("input",{type:"text",value:A,disabled:l,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),f.createElement("span",{className:"".concat(i,"-slash")},"/"),R),f.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:F("".concat(i,"-next"),Q({},"".concat(i,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(B)),L)}if(R<=3+H*2){var K={locale:d,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:b};R||I.push(f.createElement(ga,Ee({},K,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var G=1;G<=R;G+=1){var U=O===G;I.push(f.createElement(ga,Ee({},K,{key:G,page:G,active:U})));}}else {var Y=h?d.prev_3:d.prev_5,re=h?d.next_3:d.next_5,de=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(S,"prev page")),ve=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(E,"next page"));y&&(P=de?f.createElement("li",{title:g?Y:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:F("".concat(i,"-jump-prev"),Q({},"".concat(i,"-jump-prev-custom-icon"),!!S))},de):null,M=ve?f.createElement("li",{title:g?re:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:F("".concat(i,"-jump-next"),Q({},"".concat(i,"-jump-next-custom-icon"),!!E))},ve):null),T=f.createElement(ga,{locale:d,last:!0,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:R,page:R,active:!1,showTitle:g,itemRender:b}),N=f.createElement(ga,{locale:d,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:b});var te=Math.max(1,O-H),oe=Math.min(O+H,R);O-1<=H&&(oe=1+H*2),R-O<=H&&(te=R-H*2);for(var ce=te;ce<=oe;ce+=1){var q=O===ce;I.push(f.createElement(ga,{locale:d,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ce,page:ce,active:q,showTitle:g,itemRender:b}));}O-1>=H*2&&O!==1+2&&(I[0]=f.cloneElement(I[0],{className:"".concat(i,"-item-after-jump-prev")}),I.unshift(P)),R-O>=H*2&&O!==R-2&&(I[I.length-1]=f.cloneElement(I[I.length-1],{className:"".concat(i,"-item-before-jump-next")}),I.push(M)),te!==1&&I.unshift(N),oe!==R&&I.push(T);}var ne=!this.hasPrev()||!R,J=!this.hasNext()||!R,he=this.renderPrev(W),me=this.renderNext(B);return f.createElement("ul",Ee({className:F(i,a,Q({},"".concat(i,"-disabled"),l)),style:s,ref:this.paginationNode},V),j,he?f.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:ne?null:0,onKeyPress:this.runIfEnterPrev,className:F("".concat(i,"-prev"),Q({},"".concat(i,"-disabled"),ne)),"aria-disabled":ne},he):null,I,me?f.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:J?null:0,onKeyPress:this.runIfEnterNext,className:F("".concat(i,"-next"),Q({},"".concat(i,"-disabled"),J)),"aria-disabled":J},me):null,f.createElement(gx,{disabled:l,locale:d,rootPrefixCls:i,selectComponentClass:C,selectPrefixCls:$,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:O,pageSize:_,pageSizeOptions:x,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 s=i.current,l=ro(o.pageSize,i,o);s=s>l?l:s,"current"in o||(a.current=s,a.currentInputValue=s),a.pageSize=o.pageSize;}return a}}]),n}(f.Component);vx.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:em,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:em,locale:tU,style:{},itemRender:nU,totalBoundaryShowSizeChanger:50};const px=e=>f__namespace.createElement(bs,Object.assign({},e,{showSearch:!0,size:"small"})),bx=e=>f__namespace.createElement(bs,Object.assign({},e,{showSearch:!0,size:"middle"}));px.Option=bs.Option;bx.Option=bs.Option;const rU=e=>{const{componentCls:t}=e;return {[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},oU=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:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${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({},Ch(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},iU=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"}}}}},aU=e=>{const{componentCls:t}=e;return {[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next `]:{marginInlineEnd:e.marginXS},[` ${t}-prev, ${t}-next, ${t}-jump-prev, ${t}-jump-next `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${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:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},vs(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},sU=e=>{const{componentCls:t}=e;return {[`${t}-item`]:{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,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},lU=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rt(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"}}),sU(e)),aU(e)),iU(e)),oU(e)),rU(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"}}},cU=e=>{const{componentCls:t}=e;return {[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${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}}}}},uU=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},jo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},zo(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},zo(e))}}}},dU=Bt("Pagination",e=>{const t=ct(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"},Sh(e));return [lU(t),uU(t),e.wireframe&&cU(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 fU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:i,size:a,locale:s,selectComponentClass:l,responsive:c,showSizeChanger:u}=e,d=fU(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=sx(c),{getPrefixCls:h,direction:g,pagination:v={}}=f__namespace.useContext(Je),p=h("pagination",t),[b,y]=dU(p),S=u??v.showSizeChanger,E=f__namespace.useMemo(()=>{const R=f__namespace.createElement("span",{className:`${p}-item-ellipsis`},"•••"),I=f__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?f__namespace.createElement(zi,null):f__namespace.createElement(Ql,null)),P=f__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?f__namespace.createElement(Ql,null):f__namespace.createElement(zi,null)),M=f__namespace.createElement("a",{className:`${p}-item-link`},f__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?f__namespace.createElement(i0,{className:`${p}-item-link-icon`}):f__namespace.createElement(o0,{className:`${p}-item-link-icon`}),R)),N=f__namespace.createElement("a",{className:`${p}-item-link`},f__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?f__namespace.createElement(o0,{className:`${p}-item-link-icon`}):f__namespace.createElement(i0,{className:`${p}-item-link-icon`}),R));return {prevIcon:I,nextIcon:P,jumpPrevIcon:M,jumpNextIcon:N}},[g,p]),[C]=Zi("Pagination",By),$=Object.assign(Object.assign({},C),s),x=Wn(a),w=x==="small"||!!(m&&!x&&c),O=h("select",n),_=F({[`${p}-mini`]:w,[`${p}-rtl`]:g==="rtl"},v==null?void 0:v.className,r,o,y),A=Object.assign(Object.assign({},v==null?void 0:v.style),i);return b(f__namespace.createElement(vx,Object.assign({},E,d,{style:A,prefixCls:p,selectPrefixCls:O,className:_,selectComponentClass:l||(w?px:bx),locale:$,showSizeChanger:S})))},hU=mU;var gU={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 vU=gU;var pU=function(t,n){return f__namespace.createElement(hn,Ee({},t,{ref:n,icon:vU}))};const bU=f__namespace.forwardRef(pU);var yU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=c=>{const{keyCode:u}=c;u===le.ENTER&&c.preventDefault();},r=c=>{const{keyCode:u}=c,{onClick:d}=e;u===le.ENTER&&d&&d();},{style:o,noStyle:i,disabled:a}=e,s=yU(e,["style","noStyle","disabled"]);let l={};return i||(l=Object.assign({},CU)),a&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),o),f__namespace.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},s,{onKeyDown:n,onKeyUp:r,style:l}))}),wU=SU,xU=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:i,prefixCls:a,onClick:s,onRemove:l,showRemove:c}=e,u=F(`${a}-content-item`,{[`${a}-content-item-disabled`]:i||r.disabled,[`${a}-content-item-checked`]:o});let d;(typeof t=="string"||typeof t=="number")&&(d=String(t));const[m]=Zi("Transfer",Br.Transfer),h={className:u,title:d},g=f__namespace.createElement("span",{className:`${a}-content-item-text`},n);return c?f__namespace.createElement("li",Object.assign({},h),g,f__namespace.createElement(wU,{disabled:i||r.disabled,className:`${a}-content-item-remove`,"aria-label":m==null?void 0:m.remove,onClick:()=>{l==null||l(r);}},f__namespace.createElement(bU,null))):(h.onClick=i||r.disabled?void 0:()=>s(r),f__namespace.createElement("li",Object.assign({},h),f__namespace.createElement(Jh,{className:`${a}-checkbox`,checked:o,disabled:i||r.disabled}),g))},$U=f__namespace.memo(xU),EU=["handleFilter","handleClear","checkedKeys"],OU=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),IU=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:i,showRemove:a,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[d,m]=f__namespace.useState(1),h=f__namespace.useMemo(()=>s?OU(typeof s=="object"?s:{}):null,[s]),[g,v]=Dt(10,{value:h==null?void 0:h.pageSize});f__namespace.useEffect(()=>{if(h){const x=Math.ceil(r.length/g);m(Math.min(d,x));}},[r,h,g]);const p=x=>{c==null||c(x.key,!o.includes(x.key));},b=x=>{u==null||u([x.key]);},y=x=>{m(x);},S=(x,w)=>{m(x),v(w);},E=f__namespace.useMemo(()=>h?r.slice((d-1)*g,d*g):r,[d,r,h,g]);f__namespace.useImperativeHandle(t,()=>({items:E}));const C=h?f__namespace.createElement(hU,{size:"small",disabled:i,simple:h.simple,pageSize:g,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:d,onChange:y,onShowSizeChange:S}):null,$=F(`${n}-content`,{[`${n}-content-show-remove`]:a});return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("ul",{className:$,onScroll:l},(E||[]).map(x=>{let{renderedEl:w,renderedText:O,item:_}=x;return f__namespace.createElement($U,{key:_.key,item:_,renderedText:O,renderedEl:w,prefixCls:n,showRemove:a,onClick:p,onRemove:b,checked:o.includes(_.key),disabled:i||_.disabled})})),C)},PU=f__namespace.forwardRef(IU),RU=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:i,handleClear:a}=e,s=f__namespace.useCallback(l=>{i==null||i(l),l.target.value===""&&(a==null||a());},[i]);return f__namespace.createElement(jS,{placeholder:t,className:r,value:n,onChange:s,disabled:o,allowClear:!0,prefix:f__namespace.createElement(Xh,null)})},yx=RU,_U=()=>null;function TU(e){return !!(e&&!Fr(e)&&Object.prototype.toString.call(e)==="[object Object]")}function va(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const MU=e=>e!==void 0,NU=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:o,disabled:i,showSearch:a=!1,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:u,selectCurrent:d,selectInvert:m,removeAll:h,removeCurrent:g,showSelectAll:v=!0,showRemove:p,pagination:b,direction:y,itemsUnit:S,itemUnit:E,selectAllLabel:C,selectionsIcon:$,footer:x,renderList:w,onItemSelectAll:O,onItemRemove:_,handleFilter:A,handleClear:R,filterOption:I,render:P=_U}=e,[M,N]=f.useState(""),T=f.useRef({}),L=q=>{N(q.target.value),A(q);},z=()=>{N(""),R();},H=(q,ne)=>I?I(M,ne):q.includes(M),W=q=>{let ne=w?w(q):null;const J=!!ne;return J||(ne=f.createElement(PU,Object.assign({ref:T},q))),{customize:J,bodyContent:ne}},B=q=>{const ne=P(q),J=TU(ne);return {item:q,renderedEl:J?ne.label:ne,renderedText:J?ne.value:ne}},V=f.useMemo(()=>Array.isArray(c)?c[y==="left"?0:1]:c,[c,y]),[j,X]=f.useMemo(()=>{const q=[],ne=[];return n.forEach(J=>{const he=B(J);M&&!H(he.renderedText,J)||(q.push(J),ne.push(he));}),[q,ne]},[n,M]),K=f.useMemo(()=>{if(o.length===0)return "none";const q=tc(o);return j.every(ne=>q.has(ne.key)||!!ne.disabled)?"all":"part"},[o,j]),G=f.useMemo(()=>{const q=a?f.createElement("div",{className:`${t}-body-search-wrapper`},f.createElement(yx,{prefixCls:`${t}-search`,onChange:L,handleClear:z,placeholder:l,value:M,disabled:i})):null,{customize:ne,bodyContent:J}=W(Object.assign(Object.assign({},Cn(e,EU)),{filteredItems:j,filteredRenderItems:X,selectedKeys:o}));let he;return ne?he=f.createElement("div",{className:`${t}-body-customize-wrapper`},J):he=j.length?J:f.createElement("div",{className:`${t}-body-not-found`},V),f.createElement("div",{className:F(a?`${t}-body ${t}-body-with-search`:`${t}-body`)},q,he)},[a,t,l,M,i,o,j,X,V]),U=f.createElement(Jh,{disabled:n.length===0||i,checked:K==="all",indeterminate:K==="part",className:`${t}-checkbox`,onChange:()=>{O==null||O(j.filter(q=>!q.disabled).map(q=>{let{key:ne}=q;return ne}),K!=="all");}}),Y=(q,ne)=>{if(C)return typeof C=="function"?C({selectedCount:q,totalCount:ne}):C;const J=ne>1?S:E;return f.createElement(f.Fragment,null,(q>0?`${q}/`:"")+ne," ",J)},re=x&&(x.length<2?x(e):x(e,{direction:y})),de=F(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!re}),ve=re?f.createElement("div",{className:`${t}-footer`},re):null,te=!p&&!b&&U;let oe;p?oe=[b?{key:"removeCurrent",label:g,onClick(){var q;const ne=va((((q=T.current)===null||q===void 0?void 0:q.items)||[]).map(J=>J.item));_==null||_(ne);}}:null,{key:"removeAll",label:h,onClick(){_==null||_(va(j));}}].filter(Boolean):oe=[{key:"selectAll",label:u,onClick(){const q=va(j);O==null||O(q,q.length!==o.length);}},b?{key:"selectCurrent",label:d,onClick(){var q;const ne=((q=T.current)===null||q===void 0?void 0:q.items)||[];O==null||O(va(ne.map(J=>J.item)),!0);}}:null,{key:"selectInvert",label:m,onClick(){var q;const ne=va(b?(((q=T.current)===null||q===void 0?void 0:q.items)||[]).map(me=>me.item):j),J=new Set(o),he=[];ne.forEach(me=>{J.has(me)||he.push(me);}),O==null||O(he,"replace");}}];const ce=f.createElement(gg,{className:`${t}-header-dropdown`,menu:{items:oe},disabled:i},MU($)?$:f.createElement(gh,null));return f.createElement("div",{className:de,style:s},f.createElement("div",{className:`${t}-header`},v?f.createElement(f.Fragment,null,te,ce):null,f.createElement("span",{className:`${t}-header-selected`},Y(o.length,j.length)),f.createElement("span",{className:`${t}-header-title`},r)),G,ve)},tm=NU,kU=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:i="",leftActive:a,rightActive:s,className:l,style:c,direction:u,oneWay:d}=e;return f__namespace.createElement("div",{className:l,style:c},f__namespace.createElement(Xt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?f__namespace.createElement(zi,null):f__namespace.createElement(Ql,null)},i),!d&&f__namespace.createElement(Xt,{type:"primary",size:"small",disabled:t||!a,onClick:n,icon:u!=="rtl"?f__namespace.createElement(Ql,null):f__namespace.createElement(zi,null)},o))},Cx=kU,AU=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:i,margin:a}=e,s=`${t}-table`,l=`${t}-input`;return {[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r},[`${s}-wrapper`]:{[`${s}-small`]:{border:0,borderRadius:0,[`${s}-selection-column`]:{width:o,minWidth:o}},[`${s}-pagination${s}-pagination`]:{margin:`${a}px 0 ${i}px`}},[`${l}[disabled]`]:{backgroundColor:"transparent"}}}},s0=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},LU=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},s0(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},s0(e,e.colorWarning))}},DU=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,listHeight:d,listWidth:m,listWidthLG:h,fontSizeIcon:g,marginXS:v,paddingSM:p,lineType:b,antCls:y,iconCls:S,motionDurationSlow:E,controlItemBgHover:C,borderRadiusLG:$,colorBgContainer:x,colorText:w,controlItemBgActiveHover:O}=e;return {display:"flex",flexDirection:"column",width:m,height:d,border:`${o}px ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:h,height:"auto"},"&-search":{[`${S}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${s-o}px ${p}px ${s}px`,color:w,background:x,borderBottom:`${o}px ${b} ${r}`,borderRadius:`${$}px ${$}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},Do),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},Go()),{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:`${l}px ${p}px`,transition:`all ${E}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},Do),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${E}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",inset:`-${l}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:C,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:O}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${o}px ${b} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${o}px ${b} ${r}`}}},zU=e=>{const{antCls:t,iconCls:n,componentCls:r,headerHeight:o,marginXS:i,marginXXS:a,fontSizeIcon:s,fontSize:l,lineHeight:c,colorBgContainerDisabled:u}=e;return {[r]:Object.assign(Object.assign({},Rt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:u}},[`${r}-list`]:DU(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:s}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(l*c)}})}},jU=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},BU=Bt("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,i=Math.round(t*n),a=ct(e,{transferHeaderVerticalPadding:Math.ceil((o-r-i)/2)});return [zU(a),AU(a),LU(a),jU(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}}),wu=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:o=[],operations:i=[],style:a={},listStyle:s={},locale:l={},titles:c,disabled:u,showSearch:d=!1,operationStyle:m,showSelectAll:h,oneWay:g,pagination:v,status:p,prefixCls:b,className:y,rootClassName:S,selectionsIcon:E,filterOption:C,render:$,footer:x,children:w,rowKey:O,onScroll:_,onChange:A,onSearch:R,onSelectChange:I}=e,{getPrefixCls:P,renderEmpty:M,direction:N,transfer:T}=f.useContext(Je),L=P("transfer",b),[z,H]=BU(L),[W,B,V]=GV(t,O,n),[j,X,K,G]=XV(B,V,r),U=f.useCallback((ge,Ce)=>{if(ge==="left"){const fe=typeof Ce=="function"?Ce(j||[]):Ce;K(fe);}else {const fe=typeof Ce=="function"?Ce(X||[]):Ce;G(fe);}},[j,X]),Y=f.useCallback((ge,Ce)=>{ge==="left"?I==null||I(Ce,X):I==null||I(j,Ce);},[j,X]),re=ge=>{var Ce;return (Ce=c??ge.titles)!==null&&Ce!==void 0?Ce:[]},de=ge=>{_==null||_("left",ge);},ve=ge=>{_==null||_("right",ge);},te=ge=>{const Ce=ge==="right"?j:X,fe=UV(W),Pe=Ce.filter(se=>!fe.has(se)),Fe=tc(Pe),Te=ge==="right"?Pe.concat(n):n.filter(se=>!Fe.has(se)),xe=ge==="right"?"left":"right";U(xe,[]),Y(xe,[]),A==null||A(Te,ge,Pe);},oe=()=>{te("left");},ce=()=>{te("right");},q=(ge,Ce,fe)=>{U(ge,Pe=>{let Fe=[];if(fe==="replace")Fe=Ce;else if(fe)Fe=Array.from(new Set([].concat(Qe(Pe),Qe(Ce))));else {const Te=tc(Ce);Fe=Pe.filter(xe=>!Te.has(xe));}return Y(ge,Fe),Fe});},ne=(ge,Ce)=>{q("left",ge,Ce);},J=(ge,Ce)=>{q("right",ge,Ce);},he=ge=>R==null?void 0:R("left",ge.target.value),me=ge=>R==null?void 0:R("right",ge.target.value),pe=()=>R==null?void 0:R("left",""),_e=()=>R==null?void 0:R("right",""),Be=(ge,Ce,fe)=>{const Pe=Qe(ge==="left"?j:X),Fe=Pe.indexOf(Ce);Fe>-1&&Pe.splice(Fe,1),fe&&Pe.push(Ce),Y(ge,Pe),e.selectedKeys||U(ge,Pe);},Ne=(ge,Ce)=>{Be("left",ge,Ce);},ae=(ge,Ce)=>{Be("right",ge,Ce);},ue=ge=>{U("right",[]),A==null||A(n.filter(Ce=>!ge.includes(Ce)),"left",Qe(ge));},be=ge=>typeof s=="function"?s({direction:ge}):s||{},we=f.useContext(nr),{hasFeedback:ze,status:Le}=we,Oe=ge=>Object.assign(Object.assign(Object.assign({},ge),{notFoundContent:(M==null?void 0:M("Transfer"))||f.createElement(kS,{componentName:"Transfer"})}),l),Ie=hs(Le,p),We=!w&&v,$e=X.length>0,ke=j.length>0,tt=F(L,{[`${L}-disabled`]:u,[`${L}-customize-list`]:!!w,[`${L}-rtl`]:N==="rtl"},dr(L,Ie,ze),T==null?void 0:T.className,y,S,H),[ut]=Zi("Transfer",Br.Transfer),qe=Oe(ut),[dt,Re]=re(qe);return z(f.createElement("div",{className:tt,style:Object.assign(Object.assign({},T==null?void 0:T.style),a)},f.createElement(tm,Object.assign({prefixCls:`${L}-list`,titleText:dt,dataSource:B,filterOption:C,style:be("left"),checkedKeys:j,handleFilter:he,handleClear:pe,onItemSelect:Ne,onItemSelectAll:ne,render:$,showSearch:d,renderList:w,footer:x,onScroll:de,disabled:u,direction:N==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:o[0],pagination:We,selectionsIcon:E},qe)),f.createElement(Cx,{className:`${L}-operation`,rightActive:ke,rightArrowText:i[0],moveToRight:ce,leftActive:$e,leftArrowText:i[1],moveToLeft:oe,style:m,disabled:u,direction:N,oneWay:g}),f.createElement(tm,Object.assign({prefixCls:`${L}-list`,titleText:Re,dataSource:V,filterOption:C,style:be("right"),checkedKeys:X,handleFilter:me,handleClear:_e,onItemSelect:ae,onItemSelectAll:J,onItemRemove:ue,render:$,showSearch:d,renderList:w,footer:x,onScroll:ve,disabled:u,direction:N==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:o[1],showRemove:g,pagination:We,selectionsIcon:E},qe))))};wu.List=tm;wu.Search=yx;wu.Operation=Cx;const HU=wu;function Sx(e){return `https://space.bilibili.com/${vu()}/favlist?fid=${e}`}const wi=class wi{constructor(){wt(this,"useShuffle");wt(this,"allFolderServices",[]);wt(this,"folderServices",[]);wt(this,"bufferQueue",[]);wt(this,"total",0);wt(this,"returnedItems",[]);wt(this,"foldersLoaded",!1);this.useShuffle=yt.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(VU,{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,wi.PAGE_SIZE);return this.bufferQueue=this.bufferQueue.slice(wi.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.lengthi.hasMore),r=Jf(n).slice(0,5),o=(await Promise.all(r.map(async i=>await i.loadMore()||[]))).flat();this.bufferQueue=[...this.bufferQueue,...o];}this.bufferQueue=Jf(this.bufferQueue);}return t()}async getAllFolders(){const r=(await $n.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:vu()}})).data.data.list;this.foldersLoaded=!0,this.allFolderServices=r.map(o=>new FU(o)),this.folderServices=this.allFolderServices.filter(o=>!yt.excludeFavFolderIds.includes(o.entry.id.toString())),this.total=this.folderServices.reduce((o,i)=>o+i.entry.media_count,0);}};wt(wi,"PAGE_SIZE",20);let Za=wi;class FU{constructor(t){wt(this,"entry");wt(this,"hasMore");wt(this,"info");wt(this,"page",0);this.entry=t,this.hasMore=t.media_count>0;}async loadMore(){if(!this.hasMore)return;const n=(await $n.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(!Yo(n)){vt(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 WU={name:"1uu99zq",styles:"margin-left:15px;cursor:pointer;font-size:12px"};function VU({allFavFolderServices:e}){const{excludeFavFolderIds:t,shuffleForFav:n}=_n(),r=pg(),[o,i]=f.useState(!1),a=ot((u,d,m)=>{i(!0),Ir({excludeFavFolderIds:u});}),s=e.length-t.length,l=f.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).reduce((u,d)=>u+d.entry.media_count,0),[e,t]),c=ot(u=>{u?i(!1):o&&(r==null||r());});return ye(St,{children:[D(Fc,{trigger:"click",placement:"bottom",onOpenChange:c,getPopupContainer:u=>u.parentElement||document.body,content:D(St,{children:D(HU,{dataSource:e,rowKey:u=>u.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:a,render:u=>u.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:ye(oo,{color:"success",css:WU,children:["收藏夹(",s,") 收藏(",l,")"]})}),D(hx,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序",checked:n,onChange:u=>{Ir({shuffleForFav:u}),setTimeout(()=>{r==null||r();});}})]})}var UU=1,GU=2;function KU(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return !i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return !1}for(;++o-1}function cG(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=hG){var c=t?null:mG(e);if(c)return ag(c);a=!1,o=Ew,l=new Ya;}else l=t?[]:s;e:for(;++r{r=(await Promise.all(new Array(t).fill(0).map(()=>this.getRecommend(n)))).flat();})(),r=xu(r,i=>i.id),r.forEach(i=>{var a,s;((a=i.rcmd_reason)==null?void 0:a.reason_type)===1&&((s=i.rcmd_reason).content||(s.content="已关注"));}),r.map(i=>({...i,uniqId:i.id+"-"+crypto.randomUUID(),api:"pc"}))}};wt(sc,"PAGE_SIZE",14);let Qa=sc;var vG=1,pG=4;function bG(e){return xa(e,vG|pG)}const Oi=rr({updatedAt:0,bvidSet:fg()});function yG(e){return or(Oi).bvidSet.has(e)}Os()&&setTimeout(()=>{new Ja().loadMore();});const Ar=class Ar{constructor(t){wt(this,"loaded",!1);wt(this,"page",-1);wt(this,"hasMore",!0);wt(this,"count",0);wt(this,"items",[]);wt(this,"keepOrder");this.keepOrder=t??!1;}async fetch(){const n=(await $n.get("/x/v2/history/toview/web")).data;let r=n.data.list.map(a=>({...a,api:"watchlater",uniqId:`watchlater-${a.bvid}`}));Date.now()>Oi.updatedAt&&(Oi.updatedAt=Date.now(),Oi.bvidSet=fg(r.map(a=>a.bvid)));const o=qo().subtract(2,"days").unix(),i=r.findIndex(a=>a.add_at({item:l,index:Ar.LAST_ITEMS.findIndex(c=>c.bvid===l.bvid)})).sort((l,c)=>l.index-c.index).map(l=>l.item),r=[...a,...s]):yt.shuffleForWatchLater&&(r=[...a,...Jf(s)]);}this.count=n.data.count,this.items=r,Ar.LAST_ITEMS=r;}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return D(CG,{count:t})}async loadMore(){if(!this.hasMore)return;this.loaded||(await this.fetch(),this.loaded=!0),this.page++;const t=this.page*Ar.PAGE_SIZE,n=t+Ar.PAGE_SIZE,r=bG(this.items.slice(t,n));return this.hasMore=n<=this.count-1,r}};wt(Ar,"PAGE_SIZE",15),wt(Ar,"LAST_ITEMS",[]);let Ja=Ar;function CG({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=_n(),o=pg();return ye(St,{children:[ye(oo,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{vt(`稍后再看: ${n}`);},children:[e," / 100"]}),D(hx,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:i=>{Ir({shuffleForWatchLater:i}),setTimeout(()=>{o==null||o();});}})]})}const vg=f.createContext(void 0);function pg(){return f.useContext(vg)}function $x({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:i,setUpperRefreshing:a}){const s=gW(),l=RV(()=>({})),[c,u]=f.useState(!0),[d,m]=f.useState([]),[h,g]=f.useState(()=>new Qa),[v,p]=f.useState(()=>new nm(yr.upMid)),[b,y]=f.useState(()=>new Ja),[S,E]=f.useState(()=>new Za),[C,$]=f.useState(!1),[x,w,O]=Iw(()=>Date.now()),[_,A]=f.useState(s),[R,I]=f.useState(()=>new AbortController),[P,M]=f.useState(!1),[N,T]=f.useState(void 0),L=ot(async(z=!1,H)=>{var ne;const W=performance.now();if(C)if(s===_){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",s);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",_,s),R.abort();else e("refresh(): [start] tab = %s",s);await(i==null?void 0:i());const B=J=>{$(J),a==null||a(J);};B(!0),w(Date.now()),A(s),m([]),T(void 0),u(!0),await(r==null?void 0:r());let V=[],j;const X=!!(z&&((ne=l.current[s])!=null&&ne.length)),K=!!(X&&(Xb[s].swr||s==="fav"));M(K);const G=X&&(K||s==="fav"),U=async()=>{try{V=await n(ce);}catch(J){j=J;}},Y=t?new Qa:h;t&&g(Y);let re=v;s==="dynamic"&&(re=new nm(yr.upMid),p(re));let de=b;s==="watchlater"&&(de=new Ja(H==null?void 0:H.watchlaterKeepOrder),y(de));let ve=S;s==="fav"&&(X?ve.restore():(ve=new Za,E(ve)));const te=new AbortController,oe=te.signal;I(te);const ce={tab:s,pcRecService:Y,dynamicFeedService:re,watchLaterService:de,favService:ve,abortSignal:oe};if(e("refresh(): shouldReuse=%s swr=%s",X,K),X?(V=l.current[s]||[],m(V),G&&await U()):(l.current[s]=[],await U()),oe.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}if(B(!1),j){console.error(j),T(j);return}m(V),Xb[s].swr?l.current[s]=V.slice(0,30):l.current[s]=V,s==="dynamic"&&u(re.hasMore),s==="dynamic"&&u(re.hasMore),s==="fav"&&u(ve.hasMore),await(o==null?void 0:o());const q=performance.now()-W;e("refresh(): [success] cost %s ms",q.toFixed(0));});return {items:d,itemsCache:l,setItems:m,error:N,refreshedAt:x,setRefreshedAt:w,getRefreshedAt:O,refreshing:C,setRefreshing:$,refreshFor:_,setRefreshFor:A,refreshAbortController:R,setRefreshAbortController:I,hasMore:c,setHasMore:u,swr:P,setSwr:M,pcRecService:h,dynamicFeedService:v,watchLaterService:b,favService:S,setPcRecService:g,setDynamicFeedService:p,setWatchLaterService:y,setFavService:E,refresh:L}}async function SG(){const t=(await $n.get("/x/polymer/web-dynamic/v1/portal")).data;return (t==null?void 0:t.data.up_list)||[]}class nm{constructor(t){wt(this,"offset","");wt(this,"page",0);wt(this,"hasMore",!0);wt(this,"upMid");this.upMid=t;}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),this.upMid&&(n.host_mid=this.upMid);const o=(await $n.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.filter(s=>s.type==="DYNAMIC_TYPE_AV").map(s=>({...s,api:"dynamic",uniqId:s.id_str||crypto.randomUUID()}))}get usageInfo(){return D(EG,{})}}wt(nm,"PAGE_SIZE",15);const yr=rr({upMid:void 0,upName:void 0,upList:[],upListUpdatedAt:0});async function wG(e=!1){if(!e&&yr.upList.length&&yr.upListUpdatedAt&&yr.upListUpdatedAt-Date.now()n.mid===e.upMid);t&&(t.has_update=!1);}}var xG={name:"dhit8z",styles:"margin-left:15px"},$G={name:"1mkc8b8",styles:"display:block;max-width:130px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden"};function EG(){const e=pg(),{upName:t,upList:n}=or(yr);$s(()=>{wG();});const r=ot(async i=>{Ex(i),await Ur(100),e==null||e();}),o=f.useMemo(()=>{const i={key:"all",icon:D(n0,{size:"small",children:"全"}),label:"全部",onClick(){r({upMid:void 0,upName:void 0});}},a=n.map(s=>{let l=D(n0,{size:"small",src:s.face});return s.has_update&&(l=D(vV,{dot:!0,children:l})),{key:s.mid,icon:l,label:D("span",{title:s.uname,css:$G,children:s.uname}),onClick(){r({upMid:s.mid,upName:s.uname});}}});return [i,...a]},[n,n.map(i=>!!i.has_update)]);return D("div",{css:xG,children:D(gg,{placement:"bottomLeft",menu:{items:o,style:{maxHeight:"50vh",overflowY:"scroll"}},children:D(Xt,{children:t?`UP: ${t}`:"全部"})})})}const zd={removeFav:OG,addFav:RG,getVideoFavState:IG};async function OG(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:Es()}),o=(await $n.post("/x/v3/fav/resource/batch-del",n)).data,i=Yo(o);return i||vt(o.message||mw),i}async function IG(e){if(!Os())return;const r=(await $n.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:vu(),type:2,rid:e}})).data.data.list.filter(a=>a.fav_state>0),o=r.map(a=>a.title),i=r.map(a=>Sx(a.id));return {favFolders:r,favFolderNames:o,favFolderUrls:i}}async function PG({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:Es()}),i=(await $n.post("/x/v3/fav/resource/deal",r)).data,a=Yo(i);return a||vt((i==null?void 0:i.message)||"fav deal api fail"),a}let jd=0,rm="";async function RG(e){if(!jd||!rm){const t=new Za;await t.getAllFolders(),jd=t.folderServices[0].entry.id,rm=t.folderServices[0].entry.title;}return await PG({avid:e,add_media_ids:jd.toString()})}async function Ox(e,t){const n=vu(),r=Es(),o=new URLSearchParams({fid:e,act:String(t),re_src:"11",gaia_source:"web_main",spmid:"333.999.0.0",extend_content:JSON.stringify({entity:"user",entity_id:n,fp:_G()}),csrf:r}),a=(await $n.post("/x/relation/modify",o)).data,s=Yo(a);return s||vt(a.message||"未知错误"),s}function _G(){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 TG=Px("follow"),MG=Px("remove"),Ix={add:TG,remove:MG},om=fg();function NG(e){const t=or(om);return e&&t.has(e)}function Px(e){const t=e==="follow"?5:6;return async function(r){const o=await Ox(r,t);return o&&(e==="follow"?om.add(r):e==="remove"&&om.delete(r)),o}}const kG=Rx("follow"),AG=Rx("unfollow"),LG={follow:kG,unfollow:AG};function Rx(e){const t=e==="follow"?1:2;return async function(r){return await Ox(r,t)}}function _x(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 DG="_bili-video-card_mnvtu_1",zG="_preview-card-wrapper_mnvtu_4",jG="_preview-card-inner_mnvtu_17",BG="_watch-later_mnvtu_21",HG="_badge_mnvtu_24",FG="_recommend-reason_mnvtu_33",WG="_bangumi-desc_mnvtu_48",VG="_btn-dislike_mnvtu_51",UG="_btn-dislike-icon_mnvtu_66",GG="_btn-dislike-tip_mnvtu_73",KG="_disliked-wrapper_mnvtu_88",XG="_dislike-content-cover_mnvtu_102",qG="_dislike-content-cover-inner_mnvtu_108",YG="_dislike-icon_mnvtu_119",ZG="_dislike-reason_mnvtu_122",QG="_dislike-desc_mnvtu_126",JG="_dislike-content-action_mnvtu_130",eK="_skeleton-active_mnvtu_147",tK="_ant-skeleton-loading_mnvtu_1",jt={biliVideoCard:DG,previewCardWrapper:zG,previewCardInner:jG,watchLater:BG,badge:HG,recommendReason:FG,bangumiDesc:WG,btnDislike:VG,btnDislikeIcon:UG,btnDislikeTip:GG,dislikedWrapper:KG,dislikeContentCover:XG,dislikeContentCoverInner:qG,dislikeIcon:YG,dislikeReason:ZG,dislikeDesc:QG,dislikeContentAction:JG,skeletonActive:eK,antSkeletonLoading:tK};function nK(...e){for(const t of e)if(!isNaN(t))return t;return 0}function rK({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const i=f.useRef(null),a=SF(i),[s,l]=f.useState(()=>({width:0,height:0}));$s(()=>{var m;const d=(m=i.current)==null?void 0:m.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof o=="number")c=o;else {const d=nK(a.elementX,r||0);s.width&&d&&!isNaN(d)&&(c=d/s.width,c<0&&(c=0),c>1&&(c=1));}const u={videoDuration:t,pvideo:n,elWidth:s.width,elHeight:s.height,progress:c};return D("div",{ref:i,className:F(jt.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&D(oK,{...u})})}function oK({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var C;const i=Math.floor((e||0)*o);let a=f.useMemo(()=>{const $=(t==null?void 0:t.index)||[];let x=aK($,i);return x!==-1?x:i>$[$.length-1]?(x=Math.floor($.length*o)-1,x<0&&(x=0),x):0},[t,i]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:u}=t,d=l*s;a=a+1;const m=Math.floor(a/d),h=a-m*d,g=((C=t.image)==null?void 0:C[m])||"",v=Math.floor(h/s)+1,p=h-(v-1)*s,b=n*s,y=r*l,S=(v-1)*r,E=(p-1)*n;return D("div",{className:jt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${g})`,backgroundPosition:`-${E}px -${S}px`,backgroundSize:`${b}px ${y}px`},children:D(iK,{progress:o})})}function iK({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:Vr,height:"100%",width:`${e*100}%`}})})}function aK(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const s=Math.floor((n+r)/2),l=e[s];if(t===l)return s;l{const t=es[e]||es[1];return Sa[t]},cK=e=>{const t=es[e];if(t)return sK[t]};function l0(e){return {iconSvgName:lK(e),iconSvgScale:cK(e)}}var zr=class{static av2bv(t){const n=(t^this.XOR)+this.ADD,r=["B","V","1",,,"4",,"1",,"7"];for(let o=0;o<6;o++)r[this.S[o]]=this.TABEL[Math.floor(n/58**o)%58];return r.join("")}static bv2av(t){let n=0;for(let r=0;r<6;r++)n+=this.TR[t[this.S[r]]]*58**r;return n-this.ADD^this.XOR}};zr.TABEL="fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF";zr.TR={};zr.S=[11,10,3,8,4,6];zr.XOR=177451812;zr.ADD=8728348608;(()=>{const e=zr.TABEL.length;for(let t=0;t{const{cover_left_icon_1:c,cover_left_text_1:u,cover_left_icon_2:d,cover_left_text_2:m}=e;if(c&&es[c]===l)return ql(u);if(d&&es[d]===l)return ql(m)},n=e.param,r=ts.av2bv(Number(e.param)),o=(()=>{var l;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(`[${fn}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const c=(l=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:l[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:bu((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:((s=e.desc_button)==null?void 0:s.text)||e.desc||""}}function fK(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=qo().subtract(2,"days").unix(),o=(()=>{const i=n.pub_ts;return i>r?n.pub_time:co(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:o7(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:ql(t.stat.play),danmaku:ql(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function mK(e){const t=s7(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?D(Ul,{title:ye(St,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:ye("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:co(e.pubdate),pubdateDisplayTitle:`${co(e.pubdate,!0)} 发布, ${co(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:bu(e.duration),recommendReason:`${co(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 hK(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:ye(St,{children:["【",D(Tt,{name:"Star",size:16,theme:"two-tone",fill:["currentColor",Vr],style:{display:"inline-block",verticalAlign:"middle",marginLeft:10,marginRight:4,marginTop:-4}}),e.folder.title,"】· ",e.title]}),coverRaw:e.cover,pubts:e.pubtime,pubdateDisplay:co(e.pubtime),duration:e.duration,durationStr:bu(e.duration),recommendReason:`${co(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 gK=e=>(e||"").replace(/^http:\/\//,"https://");function c0(e){GM.setClipboard(e),vt(`已复制: ${e}`);}const Nx=_x(),vK="--video-card-border-radius",kx=`var(${vK})`,Ax={borderRadius:kx},nc=f.memo(function({style:t,className:n,item:r,loading:o,active:i,onRemoveCurrent:a,onMoveToFirst:s,onRefresh:l,emitter:c,...u}){o=o??!r;const d=ye("div",{className:F("bili-video-card__skeleton",{hide:!o,[jt.skeletonActive]:o}),children:[D("div",{className:"bili-video-card__skeleton--cover",style:Ax}),D("div",{className:"bili-video-card__skeleton--info",children:ye("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"})]})})]}),m=X7((r==null?void 0:r.api)==="app"&&r.param),h=f.useMemo(()=>r&&Mx(r),[r]),g=NG(h==null?void 0:h.authorMid);return ye("div",{style:t,className:F("bili-video-card",jt.biliVideoCard,n),...u,children:[d,!o&&r&&h&&(m?D(pK,{item:r,emitter:c,dislikedReason:m}):g?D(bK,{cardData:h}):D(yK,{item:r,cardData:h,active:i,emitter:c,onRemoveCurrent:a,onMoveToFirst:s,onRefresh:l}))]})}),pK=f.memo(function({dislikedReason:t,item:n,emitter:r=Nx}){const o=ot(async()=>{if(!(t!=null&&t.id))return;let i=!1,a;try{i=await z7(n,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),hw();i?vt("已撤销"):gw(),i&&Cu.delete(n.param);});return pi(r,"cancel-dislike",o),ye("div",{className:F(jt.dislikedWrapper),children:[D("div",{className:jt.dislikeContentCover,children:ye("div",{className:jt.dislikeContentCoverInner,children:[D(Tt,{name:"DistraughtFace",size:32,className:jt.dislikeIcon}),D("div",{className:jt.dislikeReason,children:t==null?void 0:t.name}),D("div",{className:jt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),D("div",{className:jt.dislikeContentAction,children:ye("button",{onClick:o,children:[D(Tt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),bK=f.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,i=ot(async()=>{if(!n)return;await Ix.remove(n)&&vt(`已移出黑名单: ${o}`);});return ye("div",{className:F(jt.dislikedWrapper),children:[D("div",{className:jt.dislikeContentCover,children:ye("div",{className:jt.dislikeContentCoverInner,children:[D(Tt,{name:"PeopleDelete",size:32,className:jt.dislikeIcon}),D("div",{className:jt.dislikeReason,children:"已拉黑"}),ye("div",{className:jt.dislikeDesc,children:["UP: ",o]})]})}),D("div",{className:jt.dislikeContentAction,children:ye("button",{onClick:i,children:[D(Tt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),yK=f.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:i,onRefresh:a,emitter:s=Nx}){var Pe,Fe;const l=t.api==="pc",c=t.api==="app";t.api,t.api,t.api;const{avid:u,bvid:d,goto:m,href:h,title:g,titleRender:v,coverRaw:p,pubdateDisplay:b,pubdateDisplayTitle:y,duration:S,durationStr:E,recommendReason:C,invalidReason:$,play:x,like:w,coin:O,danmaku:_,favorite:A,authorName:R,authorFace:I,authorMid:P,appBadge:M,appBadgeDesc:N}=n,T=m==="av";["av","bangumi","picture"].includes(m)||console.warn(`[${fn}]: none (av,bangumi,picture) goto type %s`,m,t);const L=f.useMemo(()=>gK(p),[p]),[z,H]=f.useState(null),W=f.useRef(!1),B=ot(async()=>{if(!z&&!W.current)try{W.current=!0,H(await L7(u));}finally{W.current=!1;}}),V=f.useRef(null),[j,X]=f.useState(void 0);fo("mouseenter",Te=>{var Me;const xe=(Me=V.current)==null?void 0:Me.getBoundingClientRect();if(!xe)return;const{x:se}=xe,Se=Te.pageX-window.pageXOffset-se;X(Se);},{target:V});const K=Td(V),{autoPreviewWhenHover:G}=_n(),{onStartPreviewAnimation:U,onHotkeyPreviewAnimation:Y,previewAnimationProgress:re}=CK({bvid:d,title:g,autoPreviewWhenHover:G,active:r,tryFetchVideoData:B,videoPreviewWrapperRef:V});Xl(()=>{if(r){try{unsafeWindow[`${gR}_activeItem`]=t;}catch(Te){console.warn("set unsafeWindow activeItem error"),console.warn(Te.stack||Te);}yt.autoPreviewWhenKeyboardSelect&&U();}},[r]);const de=f.useRef(null),ve=Td(de),te=yG(d),{accessKey:oe}=_n(),ce=!!oe;f.useEffect(()=>{K&&B();},[K]);const q=f.useRef(!1),ne=ot(async(Te,xe)=>{if(Te==null||Te.preventDefault(),xe??(xe=te?Vb:Qs),xe!==Qs&&xe!==Vb)throw new Error("unexpected usingAction provided");if(q.current)return;q.current=!0;let se=!1;try{se=await xe(u);}finally{q.current=!1;}if(se){const Se=xe===Qs;Se?Oi.bvidSet.add(d):Oi.bvidSet.delete(d),t.api==="watchlater"&&Se===!1&&(await Ur(100),o==null||o(t,n));}return se}),J=f.useRef(null),he=Td(J),me=ot(Te=>{if(Te==null||Te.stopPropagation(),Te==null||Te.preventDefault(),!Ie)return t.api!=="app"?vt("当前视频不支持提交「我不想看」"):ce?void 0:vt("请先获取 access_key");Q7(t);}),pe=f.useMemo(()=>Ad(x),[x]),_e=f.useMemo(()=>Ad(w),[w]),Be=f.useMemo(()=>Ad(A),[A]),Ne=l?_e:Be,ae=({text:Te,iconSvgName:xe,iconSvgScale:se})=>ye("span",{className:"bili-video-card__stats--item",children:[D("svg",{className:"bili-video-card__stats--icon",style:{transform:se?`scale(${se})`:void 0},children:D("use",{href:xe})}),D("span",{className:"bili-video-card__stats--text",children:Te})]}),[ue,be]=f.useState(void 0),[we,ze]=f.useState(void 0),Le=ot(async()=>{if(t.api!=="watchlater")return;const Te=await zd.getVideoFavState(u);if(Te){const{favFolderNames:xe,favFolderUrls:se}=Te;be(xe),ze(se);}}),Oe=ot(()=>{window.open(h,"_blank");});pi(s,"open",Oe),pi(s,"toggle-watch-later",()=>ne()),pi(s,"trigger-dislike",()=>me()),pi(s,"start-preview-animation",U),pi(s,"hotkey-preview-animation",Y);const Ie=c&&ce&&((Fe=(Pe=t.three_point)==null?void 0:Pe.dislike_reasons)==null?void 0:Fe.length),We=ot(()=>{let Te=h;h.startsWith("/")&&(Te=new URL(h,location.href).href),c0(Te);}),$e=ot(()=>{let Te=h;t.api==="watchlater"&&(Te=`/video/${t.bvid}`);const xe=new URL(Te,location.href).href,se=`iina://open?url=${encodeURIComponent(xe)}`;window.open(se,"_self");}),ke=Is(),tt=ke==="recommend-app"||ke==="recommend-pc",ut=ot(async()=>{if(!P)return vt("UP mid 为空!");await Ix.add(P)&&vt(`已加入黑名单: ${R}`);}),qe=t.api==="dynamic"||(t.api==="app"||t.api==="pc")&&C==="已关注",dt=ot(async()=>{if(!P)return;await LG.unfollow(P)&&vt("已取消关注");}),Re=t.api==="dynamic"&&!!a,ge=ot(async()=>{!P||!R||(Ex({upMid:Number(P),upName:R}),await Ur(100),await(a==null?void 0:a()));}),Ce=f.useMemo(()=>{const Te=te?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:D(Tt,{name:"EfferentFour",size:15}),onClick:Oe},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:D(Tt,{name:"Copy",size:15}),onClick:We},{key:"copy-bvid",label:"复制 BVID",icon:D(Tt,{name:"Copy",size:15}),onClick(){c0(d);}},{type:"divider"},Ie&&{key:"dislike",label:"我不想看",icon:D(Tt,{name:"DislikeTwo",size:15}),onClick(){me();}},Re&&{key:"dymamic-feed-filter-select-up",label:"查看 UP 的动态",icon:D(Tt,{name:"PeopleSearch",size:15}),onClick:ge},qe&&{key:"unfollow-up",label:"取消关注",icon:D(Tt,{name:"PeopleMinus",size:15}),onClick:dt},tt&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:D(Tt,{name:"PeopleDelete",size:15}),onClick:ut},t.api==="watchlater"&&{key:"add-fav",icon:D(Tt,{name:"Star",size:15,...ue!=null&&ue.length?{theme:"two-tone",fill:["currentColor",Vr]}:void 0}),label:ue!=null&&ue.length?`已收藏 ${ue.map(xe=>`「${xe}」`).join("")}`:"快速收藏",async onClick(){!!(ue!=null&&ue.length)?we==null||we.forEach(se=>{window.open(se,"_blank");}):await zd.addFav(u)&&vt(`已加入收藏夹「${rm}」`);}},{key:"watchlater",label:Te,icon:D(Tt,{name:te?"Delete":"FileCabinet",size:15}),onClick(){ne();}},t.api==="watchlater"&&te&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:D(Tt,{name:"AddTwo",size:15}),async onClick(){await ne(void 0,Qs)&&(i==null||i(t,n));}},...t.api==="fav"?[{type:"divider"},{key:"open-fav-folder",label:"浏览收藏夹",icon:D(Tt,{name:"EfferentFour",size:15}),onClick(){const{id:xe}=t.folder,se=Sx(xe);window.open(se,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:D(Tt,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await zd.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...dH?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:D(Tt,{name:"PlayTwo",size:15}),onClick:$e}]:[]].filter(Boolean)},[t,te,Ie,qe,tt,Re,ue,we]),fe=ot(Te=>{Te&&Le();});return ye("div",{className:"bili-video-card__wrap __scale-wrap",children:[D(gg,{menu:{items:Ce},trigger:["contextMenu"],onOpenChange:fe,children:D("a",{href:h,target:"_blank",children:ye("div",{className:"bili-video-card__image __scale-player-wrap",ref:V,style:{...Ax,aspectRatio:"16 / 9"},children:[ye("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[ye("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!rg&&D("source",{srcSet:`${L}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),D("source",{srcSet:`${L}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),D("img",{src:`${L}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(K||typeof re=="number")&&D(rK,{videoDuration:S,pvideo:z==null?void 0:z.pvideoData,mouseEnterRelativeX:j,previewAnimationProgress:re}),ye("div",{className:`bili-watch-later ${jt.watchLater}`,style:{display:K||r?"flex":"none"},ref:de,onClick:ne,children:[D("svg",{className:"bili-watch-later__icon",children:D("use",{href:te?"#widget-watch-save":"#widget-watch-later"})}),D("span",{className:"bili-watch-later__tip",style:{display:ve?"block":"none"},children:te?"移除稍后再看":"稍后再看"})]}),Ie&&ye("div",{ref:J,className:jt.btnDislike,onClick:me,style:{display:K?"flex":"none"},children:[D("svg",{className:jt.btnDislikeIcon,children:D("use",{href:"#widget-close"})}),D("span",{className:jt.btnDislikeTip,style:{display:he?"block":"none"},children:"我不想看"})]})]}),D("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:ye("div",{className:"bili-video-card__stats",children:[D("div",{className:"bili-video-card__stats--left",children:l?ye(St,{children:[ae({text:pe,iconSvgName:Sa.play}),ae({text:m==="av"?_e:Ne,iconSvgName:Sa.like})]}):c?ye(St,{children:[t.cover_left_text_1&&ae({...l0(t.cover_left_icon_1),text:m==="picture"?t.cover_left_text_1+(t.cover_left_1_content_description||""):t.cover_left_text_1}),t.cover_left_text_2&&ae({...l0(t.cover_left_icon_2),text:m==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]}):ye(St,{children:[ae({text:pe,iconSvgName:Sa.play}),ae({text:(_||0).toString(),iconSvgName:Sa.danmaku})]})}),D("span",{className:"bili-video-card__stats__duration",children:T&&E})]})})]})})}),D("div",{className:"bili-video-card__info __scale-disable",children:ye("div",{className:"bili-video-card__info--right",children:[D("a",{href:h,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:D("h3",{className:"bili-video-card__info--tit",title:g,children:v??g})}),D("p",{className:"bili-video-card__info--bottom",children:T?ye("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${P}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",title:`${R} ${y||b}`,children:[C?D("span",{className:jt.recommendReason,children:C}):D("svg",{className:"bili-video-card__info--owner__up",children:D("use",{href:"#widget-up"})}),D("span",{className:"bili-video-card__info--author",children:R}),b&&ye("span",{className:"bili-video-card__info--date",children:["· ",b]})]}):M||N?ye("a",{className:"bili-video-card__info--owner",href:h,target:"_blank",children:[D("span",{className:jt.badge,children:M||""}),D("span",{className:jt.bangumiDesc,children:N||""})]}):null})]})})]})});function CK({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:i}){const[s,l]=Rw(void 0),[c,u]=f.useState(!1),d=f.useRef(!1),m=f.useRef(!1);fo("mouseenter",w=>{d.current=!0,n&&!g.current&&x(!0);},{target:i}),fo("mouseleave",w=>{d.current=!1;},{target:i}),fo("mousemove",w=>{u(!0),n||p();},{target:i});const h=xF(),g=f.useRef(void 0),v=ot(()=>{if(h.current)return !0;if(n){if(m.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),p=ot((w=!1)=>{g.current&&cancelAnimationFrame(g.current),g.current=void 0,l(void 0),y(!1);}),[b,y,S]=Iw(!1),E=f.useRef(),C=ot(()=>{var w;if(!g.current){x();return}y(O=>!O),b&&((w=E.current)==null||w.call(E,s||0));}),$=ot(()=>s||0),x=ot((w=!1)=>{m.current=w,u(!1),y(!1),o(),p(!0),l(P=>typeof P>"u"?0:P);const O=8e3,_=()=>typeof yt.autoPreviewUpdateInterval=="number"?yt.autoPreviewUpdateInterval:400;let A=performance.now(),R=0;E.current=()=>{A=performance.now()-$()*O;};function I(P){if(v()){p();return}const M=()=>{const N=performance.now()-A,T=Math.min(N%O/O,1);l(T);};S()||(_()?(!R||performance.now()-R>=_())&&(R=performance.now(),M()):M()),g.current=requestAnimationFrame(I);}g.current=requestAnimationFrame(I);});return {onHotkeyPreviewAnimation:C,onStartPreviewAnimation:x,previewAnimationProgress:s}}const u0=()=>document.querySelector(".bili-header__bar");function SK(){return !!(u0()&&window.getComputedStyle(u0()).display==="none")}function im(){if(!SK())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 rc=rr({value:im()});function wK(){return or(rc).value}function Lx(){return rc.value}setTimeout(()=>{rc.value=im();const e=new MutationObserver(()=>{rc.value=im();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);const bg="_video-grid_t2sr7_9",Dx="_video-grid-new-homepage_t2sr7_17",xK="_limit-two-lines_t2sr7_20",zx="_video-grid-internal-testing_t2sr7_52";const d0="_video-grid-container_t2sr7_80",$K="_video-grid-youtube-like_t2sr7_84",EK="_narrow-mode_t2sr7_112";function OK({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:i,changeScrollY:a,videoCardEmitters:s}){const[l,c]=f.useState(void 0),u=ot(()=>!(!e||pu())),d=ot(()=>{var x;if(typeof l!="number"||!o.current)return !1;const C=i(),$=(x=o.current.querySelector(`.${Pi.card}.${Pi.cardActive}`))==null?void 0:x.getBoundingClientRect();return !(!C||!$||$.top-C.top<-(C.height+$.height)||$.top-C.top>C.height*2+$.height)}),m=C=>$=>{if(!u())return;$==null||$.preventDefault();let x=typeof C=="number"?C:C();const w=d()?l+x:p();if(wr){E(r);return}c(w),E(w);};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=()=>yg(o.current);Qt("uparrow",m(()=>-h()),{exactMatch:!0}),Qt("downarrow",m(h),{exactMatch:!0});const g=()=>{u()&&c(void 0);},v=()=>{if(!(!u()||typeof l!="number"))return s[l]};Qt("esc",g),Qt("enter",()=>{var C;!u()||typeof l!="number"||(C=v())==null||C.emit("open");}),Qt("backspace",()=>{var C;!u()||typeof l!="number"||(C=v())==null||C.emit("trigger-dislike");}),Qt(["s","w"],()=>{var C;!u()||typeof l!="number"||(C=v())==null||C.emit("toggle-watch-later");},{exactMatch:!0}),Qt(["period","p"],()=>{var C;!u()||typeof l!="number"||(C=v())==null||C.emit("hotkey-preview-animation");},{exactMatch:!0});function p(){const C=i();if(!C)return 0;const $=y();for(let x=0;x<$.length;x++)if($[x].getBoundingClientRect().top>=C.top)return x;return 0}const b=`.${Pi.card}`;function y(){var C;return [...((C=o.current)==null?void 0:C.querySelectorAll(b))||[]]}function S(C){return y()[C]}function E(C){var O;const $=S(C);(O=$==null?void 0:$.scrollIntoViewIfNeeded)==null||O.call($,!1);const x=i(),w=$.getBoundingClientRect();if(!(!x||!w)){if(w.top<=x.top){const _=-(x.top-w.top+10);a==null||a({offset:_});return}if(x.bottom-w.bottom<10){const _=10-(x.bottom-w.bottom);a==null||a({offset:_});return}}}return {activeIndex:l,clearActiveIndex:g}}const IK=new Map,PK=new Map;function yg(e,t=!0){if(t&&yt.useNarrowMode)return 2;const n=yt.styleUseYoutubeLikeCard?IK:PK;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${bg}`)),!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 jx(e){return e==="onlyFollow"||yt.filterMinDurationEnabled||yt.filterMinPlayCountEnabled||yt.filterOutGotoTypePicture}function Bx(e,t){return jx(t)?e.filter(n=>{const{play:r,duration:o,recommendReason:i,goto:a}=Mx(n),s=i==="已关注"||(i==null?void 0:i.includes("关注"));if(t==="onlyFollow"&&!s)return !1;const l=a==="av",c=a==="picture";if(l)return u();if(c)return d();return !0;function u(){return s&&!yt.enableFilterForFollowedVideo?!0:!(yt.filterMinPlayCountEnabled&&yt.filterMinPlayCount&&typeof r=="number"&&r1)for(var n=1;n=o)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return "[Circular]"}default:return s}}),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Eu(t)?n.showHidden=t:t&&Eg(n,t),Cr(n.showHidden)&&(n.showHidden=!1),Cr(n.depth)&&(n.depth=2),Cr(n.colors)&&(n.colors=!1),Cr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=NK),oc(n,e,n.depth)}Er.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]};Er.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function NK(e,t){var n=Er.styles[t];return n?"\x1B["+Er.colors[n][0]+"m"+e+"\x1B["+Er.colors[n][1]+"m":e}function kK(e,t){return e}function AK(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function oc(e,t,n){if(e.customInspect&&t&&ka(t.inspect)&&t.inspect!==Er&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return _s(r)||(r=oc(e,r,n)),r}var o=LK(e,t);if(o)return o;var i=Object.keys(t),a=AK(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),Na(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Fd(t);if(i.length===0){if(ka(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Ma(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(ic(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Na(t))return Fd(t)}var l="",c=!1,u=["{","}"];if(wg(t)&&(c=!0,u=["[","]"]),ka(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(Ma(t)&&(l=" "+RegExp.prototype.toString.call(t)),ic(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Na(t)&&(l=" "+Fd(t)),i.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return Ma(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var m;return c?m=DK(e,t,n,a,i):m=i.map(function(h){return cm(e,t,n,a,h,c)}),e.seen.pop(),zK(m,l,u)}function LK(e,t){if(Cr(t))return e.stylize("undefined","undefined");if(_s(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(xg(t))return e.stylize(""+t,"number");if(Eu(t))return e.stylize(""+t,"boolean");if(Rs(t))return e.stylize("null","null")}function Fd(e){return "["+Error.prototype.toString.call(e)+"]"}function DK(e,t,n,r,o){for(var i=[],a=0,s=t.length;a-1&&(i?s=s.split(` `).map(function(c){return " "+c}).join(` `).substr(2):s=` `+s.split(` `).map(function(c){return " "+c}).join(` `))):s=e.stylize("[Circular]","special")),Cr(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"));}return a+": "+s}function zK(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 wg(e){return Array.isArray(e)}function Eu(e){return typeof e=="boolean"}function Rs(e){return e===null}function Kx(e){return e==null}function xg(e){return typeof e=="number"}function _s(e){return typeof e=="string"}function Xx(e){return typeof e=="symbol"}function Cr(e){return e===void 0}function Ma(e){return Zo(e)&&$g(e)==="[object RegExp]"}function Zo(e){return typeof e=="object"&&e!==null}function ic(e){return Zo(e)&&$g(e)==="[object Date]"}function Na(e){return Zo(e)&&($g(e)==="[object Error]"||e instanceof Error)}function ka(e){return typeof e=="function"}function qx(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function Yx(e){return Buffer.isBuffer(e)}function $g(e){return Object.prototype.toString.call(e)}function Wd(e){return e<10?"0"+e.toString(10):e.toString(10)}var jK=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function BK(){var e=new Date,t=[Wd(e.getHours()),Wd(e.getMinutes()),Wd(e.getSeconds())].join(":");return [e.getDate(),jK[e.getMonth()],t].join(" ")}function Zx(){console.log("%s - %s",BK(),Ui.apply(null,arguments));}function Eg(e,t){if(!t||!Zo(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Qx(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const HK={inherits:Ux,_extend:Eg,log:Zx,isBuffer:Yx,isPrimitive:qx,isFunction:ka,isError:Na,isDate:ic,isObject:Zo,isRegExp:Ma,isUndefined:Cr,isSymbol:Xx,isString:_s,isNumber:xg,isNullOrUndefined:Kx,isNull:Rs,isBoolean:Eu,isArray:wg,inspect:Er,deprecate:Sg,format:Ui,debuglog:Gx},FK=Object.freeze(Object.defineProperty({__proto__:null,_extend:Eg,debuglog:Gx,default:HK,deprecate:Sg,format:Ui,inherits:Ux,inspect:Er,isArray:wg,isBoolean:Eu,isBuffer:Yx,isDate:ic,isError:Na,isFunction:ka,isNull:Rs,isNullOrUndefined:Kx,isNumber:xg,isObject:Zo,isPrimitive:qx,isRegExp:Ma,isString:_s,isSymbol:Xx,isUndefined:Cr,log:Zx},Symbol.toStringTag,{value:"Module"})),WK=g$(FK);var VK=WK.format;function UK(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function GK(e,t){return function(){var n=this,r=[].slice.call(arguments);UK();var o=new AbortController;return r.push(o.signal),new Promise(function(i,a){var s=setTimeout(function(){var l=new Jx(t);a(l),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(l){clearTimeout(s),i(l);},function(l){clearTimeout(s),a(l);});})}}let Jx=class e$ extends Error{constructor(t){super(),this.timeout=t,this.message=VK("timeout of %sms exceed",t),Error.captureStackTrace(this,e$);}};Cg.exports=GK;Cg.exports.TimeoutError=Jx;var KK=Cg.exports;const t$=KK,XK=t$.TimeoutError;$u.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,i=n.timeout;i&&(t=t$(t,i));const a=n.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(o);for(let u=0;u"} ${this.times} times`,this.timeout&&(this.message+=` with timeout = ${this.timeout}ms`),Error.captureStackTrace(this,this.constructor);}}class qK 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 YK=$u.exports.RetryError=n$;$u.exports.TimeoutError=XK;var ZK=$u.exports;const QK=an(ZK);class Og extends Error{constructor(n){super();wt(this,"json");Error.captureStackTrace(this,Og),this.json=n,this.message=n.message||JSON.stringify(n);}}async function JK(){var r;const t=(await gu.get(yy+"/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 Og(t);return vt(`${fn}: 未知错误, 请联系开发者 code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const eX=QK(JK,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",fn,t,e);}});async function tX(){try{return await eX()}catch(e){if(e instanceof YK){console.error(e.errors);const t=[Ui("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>Ui(" %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(` `);vt(t,5e3);}throw e}}class ac{constructor(){wt(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(()=>tX()))).flat();})(),n=xu(n,o=>o.param),n.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}}wt(ac,"PAGE_SIZE",10);const el=qi.extend("service"),Cl=e=>Tx(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 nX(e,t){const n=e.map(Cl);return t=xu(t,Cl),e.concat(t.filter(r=>!n.includes(Cl(r))))}const um=e=>e==="onlyFollow"||e==="recommend-pc";async function r$(e,t,n=5){const{pcRecService:r,dynamicFeedService:o,watchLaterService:i,favService:a,tab:s,abortSignal:l}=t,c=new ac;let u=[],d=!0;const m=async h=>{let g=[];if(s==="dynamic"){g=await o.loadMore(l)||[],d=o.hasMore,u=u.concat(g);return}if(s==="watchlater"){g=await i.loadMore()||[],d=i.hasMore,u=u.concat(g);return}if(s==="fav"){g=await a.loadMore()||[],d=a.hasMore,u=u.concat(g);return}let v;if(s==="onlyFollow")v=8,el("getMinCount: addMore(restCount = %s) times=%s",h,v);else {const p=um(s)?Qa.PAGE_SIZE:ac.PAGE_SIZE,b=jx(s)?n:1.2;v=Math.ceil(h*b/p),el("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",h,b,p,v);}g=um(s)?await r.getRecommendTimes(v,l):await c.getRecommendTimes(v),g=Bx(g,s),u=u.concat(g),u=xu(u,Cl);};for(await m(e);;){if(l!=null&&l.aborted){el("getMinCount: break for abortSignal");break}if(!d){el("getMinCount: break for tab=%s hasMore=false",s);break}if(u.length>=e)break;await m(e-u.length);}return u}async function rX(e){let t=await r$(yg(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function oX(e){return r$(yg()*3+1,e,5)}async function iX(e,t,n){let r=um(t)?await n.getRecommendTimes(e):await new ac().getRecommendTimes(e);return r=Bx(r,t),r}var dm=new Map,tl=new WeakMap,f0=0,aX=void 0;function sX(e){return e?(tl.has(e)||(f0+=1,tl.set(e,f0.toString())),tl.get(e)):"0"}function lX(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?sX(e.root):e[t]}`).toString()}function cX(e){let t=lX(e),n=dm.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(s=>{var l;const c=s.isIntersecting&&o.some(u=>s.intersectionRatio>=u);e.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=c),(l=r.get(s.target))==null||l.forEach(u=>{u(c,s);});});},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},dm.set(t,n);}return n}function uX(e,t,n={},r=aX){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:o,observer:i,elements:a}=cX(n);let s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),i.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),dm.delete(o));}}function dX({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:s,fallbackInView:l,onChange:c}={}){var u;const[d,m]=f__namespace.useState(null),h=f__namespace.useRef(),[g,v]=f__namespace.useState({inView:!!s,entry:void 0});h.current=c,f__namespace.useEffect(()=>{if(a||!d)return;let S;return S=uX(d,(E,C)=>{v({inView:E,entry:C}),h.current&&h.current(E,C),C.isIntersecting&&i&&S&&(S(),S=void 0);},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{S&&S();}},[Array.isArray(e)?e.toString():e,d,o,r,i,a,n,l,t]);const p=(u=g.entry)==null?void 0:u.target,b=f__namespace.useRef();!d&&p&&!i&&!a&&b.current!==p&&(b.current=p,v({inView:!!s,entry:void 0}));const y=[m,g.inView,g.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const pa=qi.extend("components:RecGrid"),Pi={card:Bb({name:"pqxyg1",styles:"border:2px solid transparent;.bili-video-card__info{padding-left:2px;padding-bottom:1px;margin-top:calc(var(--info-margin-top) - 1px);}"}),cardActive:Bb("border-color:",Vr,";border-radius:",kx,";overflow:hidden;","")};var fX={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const o$=f.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:i,setExtraInfo:a},s)=>{const{useNarrowMode:l,styleUseYoutubeLikeCard:c}=_n(),u=Is(),[d,m]=f.useState(0),h=ot(async()=>{V(),a==null||a();}),g=ot(()=>{V(),m(1),u==="watchlater"&&(a==null||a(A.usageInfo)),u==="fav"&&(a==null||a(R.usageInfo)),u==="dynamic"&&(a==null||a(_.usageInfo)),N();}),{refresh:v,items:p,setItems:b,error:y,refreshing:S,refreshedAt:E,getRefreshedAt:C,swr:$,hasMore:x,setHasMore:w,pcRecService:O,dynamicFeedService:_,watchLaterService:A,favService:R}=$x({tab:u,debug:pa,fetcher:oX,recreateService:!0,preAction:h,postAction:g,onScrollToTop:n,setUpperRefreshing:i});$s(v),f.useImperativeHandle(s,()=>({refresh:v}),[]);const I=f.useRef();fo("visibilitychange",te=>{if(!(document.visibilityState==="visible")){I.current=Date.now();return}S||P.current[E]||u==="watchlater"&&I.current&&Date.now()-I.current>hu("1h")&&v(!0,{watchlaterKeepOrder:!0});},{target:document});const P=f.useRef({}),M=ot(async()=>{if(!x||S)return;const te=E;if(P.current[te])return;P.current={[te]:!0};let oe=p,ce=!0;try{if(u==="dynamic")oe=oe.concat(await _.loadMore()||[]),ce=_.hasMore;else if(u==="watchlater")oe=oe.concat(await A.loadMore()||[]),ce=A.hasMore;else if(u==="fav")oe=oe.concat(await R.loadMore()||[]),ce=R.hasMore;else for(;!(oe.length>p.length);){const ne=await iX(u==="onlyFollow"?5:2,u,O);oe=nX(oe,ne);}}catch(q){throw P.current[te]=!1,q}if(te!==C()){pa("loadMore: skip update for mismatch refreshedAt, %s != %s",te,C());return}pa("loadMore: seq(%s) len %s -> %s",d+1,p.length,oe.length),w(ce),b(oe),m(q=>q+1),P.current[te]=!1,N();}),N=ot(async()=>{await Ur(rg?100:50),pa("checkShouldLoadMore(): footerInView = %s",Y.current),Y.current&&M();}),T=f.useRef(null),L=ot(()=>{var te;if(e){const oe=Lx()+50;return new DOMRect(0,oe,window.innerWidth,window.innerHeight-oe)}else return (te=o==null?void 0:o.current)==null?void 0:te.getBoundingClientRect()}),z=Y7(),H=f.useMemo(()=>new Map,[E]),W=f.useMemo(()=>p.map(({uniqId:te})=>H.get(te)||(()=>{const oe=_x();return H.set(te,oe),oe})()),[p]),{activeIndex:B,clearActiveIndex:V}=OK({enabled:t&&!z,refresh:v,maxIndex:p.length-1,containerRef:T,getScrollerRect:L,videoCardEmitters:W,changeScrollY:e?function({offset:te,absolute:oe}){const ce=document.documentElement;if(typeof te=="number"){ce.scrollTop+=te;return}if(typeof oe=="number"){ce.scrollTop=oe;return}}:void 0}),j=Bi(),X=ot((te,oe)=>{b(ce=>{const q=ce.findIndex(J=>J.uniqId===te.uniqId);if(q===-1)return ce;let ne=ce.slice();return ne.splice(q,1),vt(`已移除: ${oe.title}`,4e3),u==="watchlater"&&(A.count--,a==null||a(A.usageInfo)),u==="fav"&&(R.total--,a==null||a(R.usageInfo)),ne});}),K=ot((te,oe)=>{b(ce=>{const q=ce.find(he=>he.uniqId===te.uniqId);if(!q)return ce;const ne=ce.indexOf(q),J=ce.slice();return J.splice(ne,1),J.unshift(q),J});}),{ref:G,inView:U}=dX({root:e?null:(o==null?void 0:o.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(te){te&&(pa("footerInView change to visible",te),M());}}),Y=Hi(U),re=D("div",{ref:G,css:fX,children:!S&&D(St,{children:x?ye(St,{children:[D(Tt,{name:"Loading",fill:Vr,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),de=F(`${fn}-video-grid`,bg,c?$K:j?zx:Dx,l&&EK,r);return !p.length||y||S&&!$?D("div",{className:d0,children:D("div",{className:de,children:new Array(28).fill(void 0).map((te,oe)=>D(nc,{loading:!0,className:Pi.card},oe))})}):ye("div",{style:{minHeight:"100%"},className:d0,children:[D("div",{ref:T,className:de,children:p.map((te,oe)=>{const ce=oe===B;return D(nc,{className:F(Pi.card,{[Pi.cardActive]:ce}),item:te,active:ce,onRemoveCurrent:X,onMoveToFirst:K,onRefresh:v,emitter:W[oe]},te.uniqId)})}),re]})});function mX(){const e=f.useRef(null),[t,n]=f.useState(!1);return f.useEffect(()=>{function r(){if(!e.current)return;const o=Math.trunc(e.current.getBoundingClientRect().top*10)/10,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 hX="_expand-btn_wdzp9_1",gX="_expanded_wdzp9_12",m0={expandBtn:hX,expanded:gX},vX=f.forwardRef(function({children:t},n){const[r,o]=ww(!1);f.useImperativeHandle(n,()=>o,[o]);const i=D("button",{className:F("primary-btn",m0.expandBtn),onClick:o.toggle,children:D("svg",{className:F({[m0.expanded]:r}),children:D("use",{href:"#widget-arrow"})})});return ye(St,{children:[i,r&&t]})}),pX="_modal-mask_7bwzz_1",bX="_narrow-mode_7bwzz_1",yX="_modal_7bwzz_1",CX="_modal-header_7bwzz_18",SX="_modal-body_7bwzz_19",wX="_btn-refresh_7bwzz_22",ba={modalMask:pX,narrowMode:bX,modal:yX,modalHeader:CX,modalBody:SX,btnRefresh:wX};var xX={name:"1q4vxyr",styles:"margin-left:8px"};const $X=f.memo(function({show:t,onHide:n}){const r=f.useRef(null),o=f.useRef(null),{useNarrowMode:i}=_n(),a=f.useMemo(()=>({[ba.narrowMode]:i}),[i]),s=ot((...v)=>{var p;return (p=o.current)==null?void 0:p.refresh(...v)}),[l,c]=f.useState(null),u=ot(()=>{r.current&&(r.current.scrollTop=0);}),d=ng(),m=f.useMemo(()=>d?{border:`1px solid ${Vr}`}:void 0,[d]),[h,g]=f.useState(!1);return D(sg,{show:t,onHide:n,clsModalMask:F(a),clsModal:F(ba.modal,a),styleModal:{...m},children:ye(vg.Provider,{value:s,children:[ye("div",{className:F($r.modalHeader,ba.modalHeader),children:[D(qw,{onRefresh:s}),l,D("div",{className:"space",style:{flex:1}}),D(vX,{children:D(NH,{})}),D(a$,{css:xX,refreshing:h,onRefresh:s,className:ba.btnRefresh,refreshHotkeyEnabled:t}),D(lg,{onClick:n})]}),D("div",{className:F($r.modalBody,ba.modalBody),ref:r,children:D(o$,{ref:o,shortcutEnabled:t,onScrollToTop:u,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:g,setExtraInfo:c})})]})})}),EX=qi.extend("RecHeader"),Ig=Yn` display: flex; align-items: center; justify-content: center; `,h0={btn:Yn` padding: 0; width: 32px; height: 32px; border-radius: 50%; ${Ig} `,icon:Yn` svg { width: 14px; height: 14px; } `},mo=rr({modalFeedVisible:yt.initialShowMore,modalConfigVisible:!1}),OX=function(){return or(mo)},IX=()=>{mo.modalFeedVisible=!0;},PX=()=>{mo.modalFeedVisible=!1;},RX=()=>{mo.modalConfigVisible=!0;},_X=()=>{mo.modalConfigVisible=!1;},i$=f.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},i){const{accessKey:a,pureRecommend:s}=_n(),{modalFeedVisible:l,modalConfigVisible:c}=or(mo);Qt(["shift.comma"],g=>{pu()||(mo.modalConfigVisible=!mo.modalConfigVisible);},{exactMatch:!0});const[u,d]=mX(),m=ot(()=>{var b;if(!s)return;const g=(b=u.current)==null?void 0:b.parentElement;if(!g)return;const v=g.getBoundingClientRect(),p=Lx();if(v.top({scroll:m}));const h=wK();return D(St,{children:ye(vg.Provider,{value:t,children:[ye("div",{ref:u,className:"area-header",css:[Yn` margin-bottom: 0; height: 50px; `,s&&Yn` position: sticky; top: ${h-1}px; // 有缝隙, 故 -1 px z-index: 1000; `,s&&d&&Yn` background-color: var(--bg1_float); box-shadow: 0 2px 4px rgb(0 0 0 / 8%); `,"",""],children:[ye("div",{className:"left",children:[D("svg",{className:"icon",children:D("use",{href:"#channel-cinephile"})}),D(qw,{onRefresh:t}),r]}),D("div",{className:"right",children:ye(Xc,{size:"small",children:[o,!a&&D(_w,{style:{marginLeft:5}}),D(Xt,{onClick:RX,css:h0.btn,children:D(Tt,{name:"Config",css:h0.icon})}),D(a$,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(c||l)}),!s&&ye(Xt,{css:Ig,onClick:IX,children:[D("span",{children:"查看更多"}),D("svg",{css:Yn` width: 12px; height: 12px; margin-left: 2px; `,children:D("use",{href:"#widget-arrow"})})]})]})})]}),D($X,{show:l,onHide:PX}),D(w7,{show:c,onHide:_X})]})})}),a$=f.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},i){r??(r=!0);const[a,s]=f.useState(0),l=f.useRef(null),c=ot(()=>{l.current&&(l.current.disabled||l.current.click());});f.useImperativeHandle(i,()=>({click:c}),[]),Qt("r",()=>{pu()||r&&c();},{exactMatch:!0});const u=Is(),{shuffleForFav:d,shuffleForWatchLater:m}=_n(),h=u==="dynamic"||u==="watchlater"&&!m||u==="fav"&&!d?"刷新":"换一换",g=ot(v=>(s(p=>p+360),e==null?void 0:e()));return ye(Xt,{disabled:o,className:t,style:n,css:Yn` ${Ig} &.ant-btn:not(:disabled):focus-visible { outline: none; } `,ref:l,onClick:g,children:[D("svg",{style:{transform:`rotate(${a}deg)`,width:"11px",height:"11px",marginRight:5,transition:a===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{s(0);},children:D("use",{href:"#widget-roll"})}),D("span",{children:h})]})}),TX={grid:Yn` /* card=360 col-gap=16 */ width: ${360*2+20}px; margin: 0 auto; `};function MX(){const{useNarrowMode:e}=_n(),{modalFeedVisible:t,modalConfigVisible:n}=OX(),r=f.useRef(null),o=f.useRef(null),i=ot((...d)=>{var m;return (m=o.current)==null?void 0:m.refresh(...d)}),a=ot(()=>{var d;return (d=r.current)==null?void 0:d.scroll()}),[s,l]=f.useState(!1),[c,u]=f.useState(null);return ye("section",{"data-area":"推荐",children:[D(i$,{ref:r,refreshing:s,onRefresh:i,leftSlot:c}),D(o$,{ref:o,css:[e&&TX.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:a,setRefreshing:l,setExtraInfo:u})]})}const NX=qi.extend("components:SectionRecommend");function kX(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=Bi(),n=Is(),{refreshing:r,items:o,refresh:i,error:a,swr:s}=$x({tab:n,debug:NX,fetcher:rX,recreateService:!1});$s(i);const l=!o.length||a||r&&!s;return ye("section",{"data-area":"推荐",children:[D(i$,{refreshing:r,onRefresh:i}),D("div",{className:F(bg,xK,t?zx:Dx),style:{marginBottom:t?30:0},children:l?e.map(c=>D(nc,{},c)):o.map(c=>D(nc,{item:c},c.uniqId))})]})}qo.extend(T7);(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 AX()})();async function AX(){return Ta(".adblock-tips"),_a("html.gray",e=>e.classList.remove("gray")),yt.pureRecommend?DX():LX()}async function LX(){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(Bi()&&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 Ur(200);}if(!n){console.error(`[${fn}]: init fail`);return}const r=document.createElement("section");n(r),yu(r).render(D(sw,{children:D(kX,{})})),Bi()&&Ta(".bili-feed4 .header-channel");}async function DX(){var o,i;rg&&await Ur(500),Bi()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),Ta(".bili-feed4 .header-channel"),_a(".palette-button-wrap .storage-box",a=>a.classList.remove("hidden")),_a(".palette-button-wrap .top-btn-wrap .top-btn",a=>a.classList.add("visible")),_a(".palette-button-wrap",a=>{a.style.position="absolute";})):((i=document.querySelector(".bili-layout"))==null||i.remove(),Ta(".bili-footer"),Ta(".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(Bi()?"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),yu(n).render(D(sw,{children:D(MX,{})}));} })(React, ReactDOM);