您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
为 B 站首页添加像 App 一样的推荐
当前为
// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.17.6 // @author magicdawn // @description 为 B 站首页添加像 App 一样的推荐 // @license MIT // @icon https://www.bilibili.com/favicon.ico // @homepageURL http://greasyfork.icu/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 // ==/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}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._modal-mask_7bwzz_1._narrow-mode_7bwzz_1{background-color:#000000e6}._modal_7bwzz_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}._modal_7bwzz_1._narrow-mode_7bwzz_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_7bwzz_1._narrow-mode_7bwzz_1{border:none}._modal-header_7bwzz_18,._modal-body_7bwzz_19{padding-right:15px}body.dark ._btn-refresh_7bwzz_22{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._bili-video-card_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} "); (async function (m, s0) { '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 m__namespace = /*#__PURE__*/_interopNamespaceDefault(m); const s0__namespace = /*#__PURE__*/_interopNamespaceDefault(s0); var qx=Object.defineProperty;var Yx=(e,t,n)=>t in e?qx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var wt=(e,t,n)=>(Yx(e,typeof t!="symbol"?t+"":t,n),n);var Eo=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 r$(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 u0={exports:{}},ic={};/** * @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 o$=m,i$=Symbol.for("react.element"),a$=Symbol.for("react.fragment"),s$=Object.prototype.hasOwnProperty,l$=o$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c$={key:!0,ref:!0,__self:!0,__source:!0};function d0(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)s$.call(t,r)&&!c$.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:i$,type:e,key:i,ref:a,props:o,_owner:l$.current}}ic.Fragment=a$;ic.jsx=d0;ic.jsxs=d0;u0.exports=ic;var ka=u0.exports;function u$(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function d$(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var f$=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o);},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag);},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(d$(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=u$(o);try{i.insertRule(r,i.cssRules.length);}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++;},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0;},e}(),vn="-ms-",yl="-moz-",xt="-webkit-",f0="comm",sm="rule",lm="decl",m$="@import",m0="@keyframes",h$="@layer",v$=Math.abs,ac=String.fromCharCode,g$=Object.assign;function p$(e,t){return dn(e,0)^45?(((t<<2^dn(e,0))<<2^dn(e,1))<<2^dn(e,2))<<2^dn(e,3):0}function h0(e){return e.trim()}function b$(e,t){return (e=t.exec(e))?e[0]:e}function $t(e,t,n){return e.replace(t,n)}function jd(e,t){return e.indexOf(t)}function dn(e,t){return e.charCodeAt(t)|0}function Aa(e,t,n){return e.slice(t,n)}function pr(e){return e.length}function cm(e){return e.length}function Ms(e,t){return t.push(e),e}function y$(e,t){return e.map(t).join("")}var sc=1,Pi=1,v0=0,Nn=0,nn=0,Ui="";function lc(e,t,n,r,o,i,a){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:sc,column:Pi,length:a,return:""}}function ia(e,t){return g$(lc("",null,null,"",null,null,0),e,{length:-e.length},t)}function C$(){return nn}function S$(){return nn=Nn>0?dn(Ui,--Nn):0,Pi--,nn===10&&(Pi=1,sc--),nn}function Bn(){return nn=Nn<v0?dn(Ui,Nn++):0,Pi++,nn===10&&(Pi=1,sc++),nn}function Cr(){return dn(Ui,Nn)}function el(){return Nn}function ns(e,t){return Aa(Ui,e,t)}function La(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function g0(e){return sc=Pi=1,v0=pr(Ui=e),Nn=0,[]}function p0(e){return Ui="",e}function tl(e){return h0(ns(Nn-1,Bd(e===91?e+2:e===40?e+1:e)))}function w$(e){for(;(nn=Cr())&&nn<33;)Bn();return La(e)>2||La(nn)>3?"":" "}function x$(e,t){for(;--t&&Bn()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return ns(e,el()+(t<6&&Cr()==32&&Bn()==32))}function Bd(e){for(;Bn();)switch(nn){case e:return Nn;case 34:case 39:e!==34&&e!==39&&Bd(nn);break;case 40:e===41&&Bd(e);break;case 92:Bn();break}return Nn}function $$(e,t){for(;Bn()&&e+nn!==47+10;)if(e+nn===42+42&&Cr()===47)break;return "/*"+ns(t,Nn-1)+"*"+ac(e===47?e:Bn())}function E$(e){for(;!La(Cr());)Bn();return ns(e,Nn)}function b0(e){return p0(nl("",null,null,null,[""],e=g0(e),0,[0],e))}function nl(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,v=0,g=1,p=1,b=1,y=0,S="",E=o,C=i,$=r,x=S;p;)switch(v=y,y=Bn()){case 40:if(v!=108&&dn(x,d-1)==58){jd(x+=$t(tl(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:x+=tl(y);break;case 9:case 10:case 13:case 32:x+=w$(v);break;case 92:x+=x$(el()-1,7);continue;case 47:switch(Cr()){case 42:case 47:Ms(O$($$(Bn(),el()),t,n),l);break;default:x+="/";}break;case 123*g:s[c++]=pr(x)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(x=$t(x,/\f/g,"")),h>0&&pr(x)-d&&Ms(h>32?$v(x+";",r,n,d-1):$v($t(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(Ms($=xv(x,t,n,c,u,o,s,S,E=[],C=[],d),i),y===123)if(u===0)nl(x,t,$,$,E,i,d,s,C);else switch(f===99&&dn(x,3)===110?100:f){case 100:case 108:case 109:case 115:nl(e,$,$,r&&Ms(xv(e,$,$,0,0,o,s,S,o,E=[],d),C),o,C,d,s,r?E:C);break;default:nl(x,$,$,$,[""],C,0,s,C);}}c=u=h=0,g=b=1,S=x="",d=a;break;case 58:d=1+pr(x),h=v;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&S$()==125)continue}switch(x+=ac(y),y*g){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(pr(x)-1)*b,b=1;break;case 64:Cr()===45&&(x+=tl(Bn())),f=Cr(),u=d=pr(S=x+=E$(el())),y++;break;case 45:v===45&&pr(x)==2&&(g=0);}}return i}function xv(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],h=cm(f),v=0,g=0,p=0;v<r;++v)for(var b=0,y=Aa(e,d+1,d=v$(g=a[v])),S=e;b<h;++b)(S=h0(g>0?f[b]+" "+y:$t(y,/&\f/g,f[b])))&&(l[p++]=S);return lc(e,t,n,o===0?sm:s,l,c,u)}function O$(e,t,n){return lc(e,t,n,f0,ac(C$()),Aa(e,2,-2),0)}function $v(e,t,n,r){return lc(e,t,n,lm,Aa(e,0,r),Aa(e,r+1,-1),r)}function Po(e,t){for(var n="",r=cm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function y0(e,t,n,r){switch(e.type){case h$:if(e.children.length)break;case m$:case lm:return e.return=e.return||e.value;case f0:return "";case m0:return e.return=e.value+"{"+Po(e.children,r)+"}";case sm:e.value=e.props.join(",");}return pr(n=Po(e.children,r))?e.return=e.value+"{"+n+"}":""}function I$(e){var t=cm(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function P$(e){return function(t){t.root||(t=t.return)&&e(t);}}function R$(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var _$=function(t,n,r){for(var o=0,i=0;o=i,i=Cr(),o===38&&i===12&&(n[r]=1),!La(i);)Bn();return ns(t,Nn)},T$=function(t,n){var r=-1,o=44;do switch(La(o)){case 0:o===38&&Cr()===12&&(n[r]=1),t[r]+=_$(Nn-1,n,r);break;case 2:t[r]+=tl(o);break;case 4:if(o===44){t[++r]=Cr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ac(o);}while(o=Bn());return t},M$=function(t,n){return p0(T$(g0(t),n))},Ev=new WeakMap,N$=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ev.get(r))&&!o){Ev.set(t,!0);for(var i=[],a=M$(n,i),s=r.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l];}}},k$=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function C0(e,t){switch(p$(e,t)){case 5103:return xt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xt+e+yl+e+vn+e+e;case 6828:case 4268:return xt+e+vn+e+e;case 6165:return xt+e+vn+"flex-"+e+e;case 5187:return xt+e+$t(e,/(\w+).+(:[^]+)/,xt+"box-$1$2"+vn+"flex-$1$2")+e;case 5443:return xt+e+vn+"flex-item-"+$t(e,/flex-|-self/,"")+e;case 4675:return xt+e+vn+"flex-line-pack"+$t(e,/align-content|flex-|-self/,"")+e;case 5548:return xt+e+vn+$t(e,"shrink","negative")+e;case 5292:return xt+e+vn+$t(e,"basis","preferred-size")+e;case 6060:return xt+"box-"+$t(e,"-grow","")+xt+e+vn+$t(e,"grow","positive")+e;case 4554:return xt+$t(e,/([^-])(transform)/g,"$1"+xt+"$2")+e;case 6187:return $t($t($t(e,/(zoom-|grab)/,xt+"$1"),/(image-set)/,xt+"$1"),e,"")+e;case 5495:case 3959:return $t(e,/(image-set\([^]*)/,xt+"$1$`$1");case 4968:return $t($t(e,/(.+:)(flex-)?(.*)/,xt+"box-pack:$3"+vn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xt+e+e;case 4095:case 3583:case 4068:case 2532:return $t(e,/(.+)-inline(.+)/,xt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(pr(e)-1-t>6)switch(dn(e,t+1)){case 109:if(dn(e,t+4)!==45)break;case 102:return $t(e,/(.+:)(.+)-([^]+)/,"$1"+xt+"$2-$3$1"+yl+(dn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~jd(e,"stretch")?C0($t(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-(~jd(e,"!important")&&10))){case 107:return $t(e,":",":"+xt)+e;case 101:return $t(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xt+(dn(e,14)===45?"inline-":"")+"box$3$1"+xt+"$2$3$1"+vn+"$2box$3")+e}break;case 5936:switch(dn(e,t+11)){case 114:return xt+e+vn+$t(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xt+e+vn+$t(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xt+e+vn+$t(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xt+e+vn+e+e}return e}var A$=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case lm:t.return=C0(t.value,t.length);break;case m0:return Po([ia(t,{value:$t(t.value,"@","@"+xt)})],o);case sm:if(t.length)return y$(t.props,function(i){switch(b$(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Po([ia(t,{props:[$t(i,/:(read-\w+)/,":"+yl+"$1")]})],o);case"::placeholder":return Po([ia(t,{props:[$t(i,/:(plac\w+)/,":"+xt+"input-$1")]}),ia(t,{props:[$t(i,/:(plac\w+)/,":"+yl+"$1")]}),ia(t,{props:[$t(i,/:(plac\w+)/,vn+"input-$1")]})],o)}return ""})}},L$=[A$],S0=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(g){var p=g.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""));});}var o=t.stylisPlugins||L$,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var p=g.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)i[p[b]]=!0;s.push(g);});var l,c=[N$,k$];{var u,d=[y0,P$(function(g){u.insert(g);})],f=I$(c.concat(o,d)),h=function(p){return Po(b0(p),f)};l=function(p,b,y,S){u=y,h(p?p+"{"+b.styles+"}":b.styles),S&&(v.inserted[b.name]=!0);};}var v={key:n,sheet:new f$({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(s),v},w0={exports:{}},Pt={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var sn=typeof Symbol=="function"&&Symbol.for,um=sn?Symbol.for("react.element"):60103,dm=sn?Symbol.for("react.portal"):60106,cc=sn?Symbol.for("react.fragment"):60107,uc=sn?Symbol.for("react.strict_mode"):60108,dc=sn?Symbol.for("react.profiler"):60114,fc=sn?Symbol.for("react.provider"):60109,mc=sn?Symbol.for("react.context"):60110,fm=sn?Symbol.for("react.async_mode"):60111,hc=sn?Symbol.for("react.concurrent_mode"):60111,vc=sn?Symbol.for("react.forward_ref"):60112,gc=sn?Symbol.for("react.suspense"):60113,D$=sn?Symbol.for("react.suspense_list"):60120,pc=sn?Symbol.for("react.memo"):60115,bc=sn?Symbol.for("react.lazy"):60116,z$=sn?Symbol.for("react.block"):60121,j$=sn?Symbol.for("react.fundamental"):60117,B$=sn?Symbol.for("react.responder"):60118,H$=sn?Symbol.for("react.scope"):60119;function Fn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case um:switch(e=e.type,e){case fm:case hc:case cc:case dc:case uc:case gc:return e;default:switch(e=e&&e.$$typeof,e){case mc:case vc:case bc:case pc:case fc:return e;default:return t}}case dm:return t}}}function x0(e){return Fn(e)===hc}Pt.AsyncMode=fm;Pt.ConcurrentMode=hc;Pt.ContextConsumer=mc;Pt.ContextProvider=fc;Pt.Element=um;Pt.ForwardRef=vc;Pt.Fragment=cc;Pt.Lazy=bc;Pt.Memo=pc;Pt.Portal=dm;Pt.Profiler=dc;Pt.StrictMode=uc;Pt.Suspense=gc;Pt.isAsyncMode=function(e){return x0(e)||Fn(e)===fm};Pt.isConcurrentMode=x0;Pt.isContextConsumer=function(e){return Fn(e)===mc};Pt.isContextProvider=function(e){return Fn(e)===fc};Pt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===um};Pt.isForwardRef=function(e){return Fn(e)===vc};Pt.isFragment=function(e){return Fn(e)===cc};Pt.isLazy=function(e){return Fn(e)===bc};Pt.isMemo=function(e){return Fn(e)===pc};Pt.isPortal=function(e){return Fn(e)===dm};Pt.isProfiler=function(e){return Fn(e)===dc};Pt.isStrictMode=function(e){return Fn(e)===uc};Pt.isSuspense=function(e){return Fn(e)===gc};Pt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===cc||e===hc||e===dc||e===uc||e===gc||e===D$||typeof e=="object"&&e!==null&&(e.$$typeof===bc||e.$$typeof===pc||e.$$typeof===fc||e.$$typeof===mc||e.$$typeof===vc||e.$$typeof===j$||e.$$typeof===B$||e.$$typeof===H$||e.$$typeof===z$)};Pt.typeOf=Fn;w0.exports=Pt;var mm=w0.exports,$0=mm,F$={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},W$={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},E0={};E0[$0.ForwardRef]=F$;E0[$0.Memo]=W$;var V$=!0;function hm(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var O0=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||V$===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},vm=function(t,n,r){O0(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function U$(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var K$={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},G$=/[A-Z]|^ms/g,X$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,I0=function(t){return t.charCodeAt(1)===45},Ov=function(t){return t!=null&&typeof t!="boolean"},Eu=R$(function(e){return I0(e)?e:e.replace(G$,"-$&").toLowerCase()}),Iv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(X$,function(r,o,i){return br={name:o,styles:i,next:br},o})}return K$[t]!==1&&!I0(t)&&typeof n=="number"&&n!==0?n+"px":n};function Da(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 q$(e,t,n)}case"function":{if(e!==void 0){var i=br,a=n(e);return br=i,Da(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function q$(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Da(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":Ov(a)&&(r+=Eu(i)+":"+Iv(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Ov(a[s])&&(r+=Eu(i)+":"+Iv(i,a[s])+";");else {var l=Da(e,t,a);switch(i){case"animation":case"animationName":{r+=Eu(i)+":"+l+";";break}default:r+=i+"{"+l+"}";}}}return r}var Pv=/label:\s*([^\s;\n{]+)\s*(;|$)/g,br,wi=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";br=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=Da(r,n,a)):i+=a[0];for(var s=1;s<t.length;s++)i+=Da(r,n,t[s]),o&&(i+=a[s]);Pv.lastIndex=0;for(var l="",c;(c=Pv.exec(i))!==null;)l+="-"+c[1];var u=U$(i)+l;return {name:u,styles:i,next:br}},Y$=function(t){return t()},P0=m__namespace["useInsertionEffect"]?m__namespace["useInsertionEffect"]:!1,Z$=P0||Y$,Rv=P0||m__namespace.useLayoutEffect,yc={}.hasOwnProperty,R0=m__namespace.createContext(typeof HTMLElement<"u"?S0({key:"css"}):null);R0.Provider;var _0=function(t){return m.forwardRef(function(n,r){var o=m.useContext(R0);return t(n,o,r)})},T0=m__namespace.createContext({}),Hd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",M0=function(t,n){var r={};for(var o in n)yc.call(n,o)&&(r[o]=n[o]);return r[Hd]=t,r},Q$=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return O0(n,r,o),Z$(function(){return vm(n,r,o)}),null},J$=_0(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Hd],i=[r],a="";typeof e.className=="string"?a=hm(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=wi(i,void 0,m__namespace.useContext(T0));a+=t.key+"-"+s.name;var l={};for(var c in e)yc.call(e,c)&&c!=="css"&&c!==Hd&&(l[c]=e[c]);return l.ref=n,l.className=a,m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(Q$,{cache:t,serialized:s,isStringTag:typeof o=="string"}),m__namespace.createElement(o,l))}),N0=J$,Ct=ka.Fragment;function D(e,t,n){return yc.call(t,"css")?ka.jsx(N0,M0(e,t),n):ka.jsx(e,t,n)}function Ce(e,t,n){return yc.call(t,"css")?ka.jsxs(N0,M0(e,t),n):ka.jsxs(e,t,n)}function gm(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function eE(){this.__data__=[],this.size=0;}function pm(e,t){return e===t||e!==e&&t!==t}function Cc(e,t){for(var n=e.length;n--;)if(pm(e[n][0],t))return n;return -1}var tE=Array.prototype,nE=tE.splice;function rE(e){var t=this.__data__,n=Cc(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():nE.call(t,n,1),--this.size,!0}function oE(e){var t=this.__data__,n=Cc(t,e);return n<0?void 0:t[n][1]}function iE(e){return Cc(this.__data__,e)>-1}function aE(e,t){var n=this.__data__,r=Cc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Vr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1]);}}Vr.prototype.clear=eE;Vr.prototype.delete=rE;Vr.prototype.get=oE;Vr.prototype.has=iE;Vr.prototype.set=aE;function sE(){this.__data__=new Vr,this.size=0;}function lE(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function cE(e){return this.__data__.get(e)}function uE(e){return this.__data__.has(e)}var dE=typeof global=="object"&&global&&global.Object===Object&&global;const k0=dE;var fE=typeof self=="object"&&self&&self.Object===Object&&self,mE=k0||fE||Function("return this")();const fr=mE;var hE=fr.Symbol;const Zn=hE;var A0=Object.prototype,vE=A0.hasOwnProperty,gE=A0.toString,aa=Zn?Zn.toStringTag:void 0;function pE(e){var t=vE.call(e,aa),n=e[aa];try{e[aa]=void 0;var r=!0;}catch{}var o=gE.call(e);return r&&(t?e[aa]=n:delete e[aa]),o}var bE=Object.prototype,yE=bE.toString;function CE(e){return yE.call(e)}var SE="[object Null]",wE="[object Undefined]",_v=Zn?Zn.toStringTag:void 0;function Bo(e){return e==null?e===void 0?wE:SE:_v&&_v in Object(e)?pE(e):CE(e)}function Qn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xE="[object AsyncFunction]",$E="[object Function]",EE="[object GeneratorFunction]",OE="[object Proxy]";function L0(e){if(!Qn(e))return !1;var t=Bo(e);return t==$E||t==EE||t==xE||t==OE}var IE=fr["__core-js_shared__"];const Ou=IE;var Tv=function(){var e=/[^.]+$/.exec(Ou&&Ou.keys&&Ou.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function PE(e){return !!Tv&&Tv in e}var RE=Function.prototype,_E=RE.toString;function Ho(e){if(e!=null){try{return _E.call(e)}catch{}try{return e+""}catch{}}return ""}var TE=/[\\^$.*+?()[\]{}|]/g,ME=/^\[object .+?Constructor\]$/,NE=Function.prototype,kE=Object.prototype,AE=NE.toString,LE=kE.hasOwnProperty,DE=RegExp("^"+AE.call(LE).replace(TE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zE(e){if(!Qn(e)||PE(e))return !1;var t=L0(e)?DE:ME;return t.test(Ho(e))}function jE(e,t){return e==null?void 0:e[t]}function Fo(e,t){var n=jE(e,t);return zE(n)?n:void 0}var BE=Fo(fr,"Map");const za=BE;var HE=Fo(Object,"create");const ja=HE;function FE(){this.__data__=ja?ja(null):{},this.size=0;}function WE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var VE="__lodash_hash_undefined__",UE=Object.prototype,KE=UE.hasOwnProperty;function GE(e){var t=this.__data__;if(ja){var n=t[e];return n===VE?void 0:n}return KE.call(t,e)?t[e]:void 0}var XE=Object.prototype,qE=XE.hasOwnProperty;function YE(e){var t=this.__data__;return ja?t[e]!==void 0:qE.call(t,e)}var ZE="__lodash_hash_undefined__";function QE(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ja&&t===void 0?ZE:t,this}function ko(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1]);}}ko.prototype.clear=FE;ko.prototype.delete=WE;ko.prototype.get=GE;ko.prototype.has=YE;ko.prototype.set=QE;function JE(){this.size=0,this.__data__={hash:new ko,map:new(za||Vr),string:new ko};}function e2(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Sc(e,t){var n=e.__data__;return e2(t)?n[typeof t=="string"?"string":"hash"]:n.map}function t2(e){var t=Sc(this,e).delete(e);return this.size-=t?1:0,t}function n2(e){return Sc(this,e).get(e)}function r2(e){return Sc(this,e).has(e)}function o2(e,t){var n=Sc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ur(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1]);}}Ur.prototype.clear=JE;Ur.prototype.delete=t2;Ur.prototype.get=n2;Ur.prototype.has=r2;Ur.prototype.set=o2;var i2=200;function a2(e,t){var n=this.__data__;if(n instanceof Vr){var r=n.__data__;if(!za||r.length<i2-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ur(r);}return n.set(e,t),this.size=n.size,this}function Sr(e){var t=this.__data__=new Vr(e);this.size=t.size;}Sr.prototype.clear=sE;Sr.prototype.delete=lE;Sr.prototype.get=cE;Sr.prototype.has=uE;Sr.prototype.set=a2;function s2(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var l2=function(){try{var e=Fo(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Cl=l2;function D0(e,t,n){t=="__proto__"&&Cl?Cl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}var c2=Object.prototype,u2=c2.hasOwnProperty;function bm(e,t,n){var r=e[t];(!(u2.call(e,t)&&pm(r,n))||n===void 0&&!(t in e))&&D0(e,t,n);}function rs(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?D0(n,s,l):bm(n,s,l);}return n}function d2(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Dr(e){return e!=null&&typeof e=="object"}var f2="[object Arguments]";function Mv(e){return Dr(e)&&Bo(e)==f2}var z0=Object.prototype,m2=z0.hasOwnProperty,h2=z0.propertyIsEnumerable,v2=Mv(function(){return arguments}())?Mv:function(e){return Dr(e)&&m2.call(e,"callee")&&!h2.call(e,"callee")};const ym=v2;var g2=Array.isArray;const Jn=g2;function p2(){return !1}var j0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Nv=j0&&typeof module=="object"&&module&&!module.nodeType&&module,b2=Nv&&Nv.exports===j0,kv=b2?fr.Buffer:void 0,y2=kv?kv.isBuffer:void 0,C2=y2||p2;const Sl=C2;var S2=9007199254740991,w2=/^(?:0|[1-9]\d*)$/;function Cm(e,t){var n=typeof e;return t=t??S2,!!t&&(n=="number"||n!="symbol"&&w2.test(e))&&e>-1&&e%1==0&&e<t}var x2=9007199254740991;function Sm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=x2}var $2="[object Arguments]",E2="[object Array]",O2="[object Boolean]",I2="[object Date]",P2="[object Error]",R2="[object Function]",_2="[object Map]",T2="[object Number]",M2="[object Object]",N2="[object RegExp]",k2="[object Set]",A2="[object String]",L2="[object WeakMap]",D2="[object ArrayBuffer]",z2="[object DataView]",j2="[object Float32Array]",B2="[object Float64Array]",H2="[object Int8Array]",F2="[object Int16Array]",W2="[object Int32Array]",V2="[object Uint8Array]",U2="[object Uint8ClampedArray]",K2="[object Uint16Array]",G2="[object Uint32Array]",zt={};zt[j2]=zt[B2]=zt[H2]=zt[F2]=zt[W2]=zt[V2]=zt[U2]=zt[K2]=zt[G2]=!0;zt[$2]=zt[E2]=zt[D2]=zt[O2]=zt[z2]=zt[I2]=zt[P2]=zt[R2]=zt[_2]=zt[T2]=zt[M2]=zt[N2]=zt[k2]=zt[A2]=zt[L2]=!1;function X2(e){return Dr(e)&&Sm(e.length)&&!!zt[Bo(e)]}function wm(e){return function(t){return e(t)}}var B0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sa=B0&&typeof module=="object"&&module&&!module.nodeType&&module,q2=Sa&&Sa.exports===B0,Iu=q2&&k0.process,Y2=function(){try{var e=Sa&&Sa.require&&Sa.require("util").types;return e||Iu&&Iu.binding&&Iu.binding("util")}catch{}}();const Ri=Y2;var Av=Ri&&Ri.isTypedArray,Z2=Av?wm(Av):X2;const H0=Z2;var Q2=Object.prototype,J2=Q2.hasOwnProperty;function F0(e,t){var n=Jn(e),r=!n&&ym(e),o=!n&&!r&&Sl(e),i=!n&&!r&&!o&&H0(e),a=n||r||o||i,s=a?d2(e.length,String):[],l=s.length;for(var c in e)(t||J2.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Cm(c,l)))&&s.push(c);return s}var eO=Object.prototype;function xm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||eO;return e===n}function W0(e,t){return function(n){return e(t(n))}}var tO=W0(Object.keys,Object);const nO=tO;var rO=Object.prototype,oO=rO.hasOwnProperty;function iO(e){if(!xm(e))return nO(e);var t=[];for(var n in Object(e))oO.call(e,n)&&n!="constructor"&&t.push(n);return t}function V0(e){return e!=null&&Sm(e.length)&&!L0(e)}function os(e){return V0(e)?F0(e):iO(e)}function aO(e,t){return e&&rs(t,os(t),e)}function sO(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var lO=Object.prototype,cO=lO.hasOwnProperty;function uO(e){if(!Qn(e))return sO(e);var t=xm(e),n=[];for(var r in e)r=="constructor"&&(t||!cO.call(e,r))||n.push(r);return n}function $m(e){return V0(e)?F0(e,!0):uO(e)}function dO(e,t){return e&&rs(t,$m(t),e)}var U0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Lv=U0&&typeof module=="object"&&module&&!module.nodeType&&module,fO=Lv&&Lv.exports===U0,Dv=fO?fr.Buffer:void 0,zv=Dv?Dv.allocUnsafe:void 0;function mO(e,t){if(t)return e.slice();var n=e.length,r=zv?zv(n):new e.constructor(n);return e.copy(r),r}function K0(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function hO(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a);}return i}function G0(){return []}var vO=Object.prototype,gO=vO.propertyIsEnumerable,jv=Object.getOwnPropertySymbols,pO=jv?function(e){return e==null?[]:(e=Object(e),hO(jv(e),function(t){return gO.call(e,t)}))}:G0;const Em=pO;function bO(e,t){return rs(e,Em(e),t)}function Om(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var yO=W0(Object.getPrototypeOf,Object);const Im=yO;var CO=Object.getOwnPropertySymbols,SO=CO?function(e){for(var t=[];e;)Om(t,Em(e)),e=Im(e);return t}:G0;const X0=SO;function wO(e,t){return rs(e,X0(e),t)}function q0(e,t,n){var r=t(e);return Jn(e)?r:Om(r,n(e))}function Fd(e){return q0(e,os,Em)}function Y0(e){return q0(e,$m,X0)}var xO=Fo(fr,"DataView");const Wd=xO;var $O=Fo(fr,"Promise");const Vd=$O;var EO=Fo(fr,"Set");const xi=EO;var OO=Fo(fr,"WeakMap");const Ud=OO;var Bv="[object Map]",IO="[object Object]",Hv="[object Promise]",Fv="[object Set]",Wv="[object WeakMap]",Vv="[object DataView]",PO=Ho(Wd),RO=Ho(za),_O=Ho(Vd),TO=Ho(xi),MO=Ho(Ud),yo=Bo;(Wd&&yo(new Wd(new ArrayBuffer(1)))!=Vv||za&&yo(new za)!=Bv||Vd&&yo(Vd.resolve())!=Hv||xi&&yo(new xi)!=Fv||Ud&&yo(new Ud)!=Wv)&&(yo=function(e){var t=Bo(e),n=t==IO?e.constructor:void 0,r=n?Ho(n):"";if(r)switch(r){case PO:return Vv;case RO:return Bv;case _O:return Hv;case TO:return Fv;case MO:return Wv}return t});const Ba=yo;var NO=Object.prototype,kO=NO.hasOwnProperty;function AO(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&kO.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var LO=fr.Uint8Array;const wl=LO;function Pm(e){var t=new e.constructor(e.byteLength);return new wl(t).set(new wl(e)),t}function DO(e,t){var n=t?Pm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var zO=/\w*$/;function jO(e){var t=new e.constructor(e.source,zO.exec(e));return t.lastIndex=e.lastIndex,t}var Uv=Zn?Zn.prototype:void 0,Kv=Uv?Uv.valueOf:void 0;function BO(e){return Kv?Object(Kv.call(e)):{}}function HO(e,t){var n=t?Pm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var FO="[object Boolean]",WO="[object Date]",VO="[object Map]",UO="[object Number]",KO="[object RegExp]",GO="[object Set]",XO="[object String]",qO="[object Symbol]",YO="[object ArrayBuffer]",ZO="[object DataView]",QO="[object Float32Array]",JO="[object Float64Array]",eI="[object Int8Array]",tI="[object Int16Array]",nI="[object Int32Array]",rI="[object Uint8Array]",oI="[object Uint8ClampedArray]",iI="[object Uint16Array]",aI="[object Uint32Array]";function sI(e,t,n){var r=e.constructor;switch(t){case YO:return Pm(e);case FO:case WO:return new r(+e);case ZO:return DO(e,n);case QO:case JO:case eI:case tI:case nI:case rI:case oI:case iI:case aI:return HO(e,n);case VO:return new r;case UO:case XO:return new r(e);case KO:return jO(e);case GO:return new r;case qO:return BO(e)}}var Gv=Object.create,lI=function(){function e(){}return function(t){if(!Qn(t))return {};if(Gv)return Gv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const cI=lI;function uI(e){return typeof e.constructor=="function"&&!xm(e)?cI(Im(e)):{}}var dI="[object Map]";function fI(e){return Dr(e)&&Ba(e)==dI}var Xv=Ri&&Ri.isMap,mI=Xv?wm(Xv):fI;const hI=mI;var vI="[object Set]";function gI(e){return Dr(e)&&Ba(e)==vI}var qv=Ri&&Ri.isSet,pI=qv?wm(qv):gI;const bI=pI;var yI=1,CI=2,SI=4,Z0="[object Arguments]",wI="[object Array]",xI="[object Boolean]",$I="[object Date]",EI="[object Error]",Q0="[object Function]",OI="[object GeneratorFunction]",II="[object Map]",PI="[object Number]",J0="[object Object]",RI="[object RegExp]",_I="[object Set]",TI="[object String]",MI="[object Symbol]",NI="[object WeakMap]",kI="[object ArrayBuffer]",AI="[object DataView]",LI="[object Float32Array]",DI="[object Float64Array]",zI="[object Int8Array]",jI="[object Int16Array]",BI="[object Int32Array]",HI="[object Uint8Array]",FI="[object Uint8ClampedArray]",WI="[object Uint16Array]",VI="[object Uint32Array]",Lt={};Lt[Z0]=Lt[wI]=Lt[kI]=Lt[AI]=Lt[xI]=Lt[$I]=Lt[LI]=Lt[DI]=Lt[zI]=Lt[jI]=Lt[BI]=Lt[II]=Lt[PI]=Lt[J0]=Lt[RI]=Lt[_I]=Lt[TI]=Lt[MI]=Lt[HI]=Lt[FI]=Lt[WI]=Lt[VI]=!0;Lt[EI]=Lt[Q0]=Lt[NI]=!1;function wa(e,t,n,r,o,i){var a,s=t&yI,l=t&CI,c=t&SI;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!Qn(e))return e;var u=Jn(e);if(u){if(a=AO(e),!s)return K0(e,a)}else {var d=Ba(e),f=d==Q0||d==OI;if(Sl(e))return mO(e,s);if(d==J0||d==Z0||f&&!o){if(a=l||f?{}:uI(e),!s)return l?wO(e,dO(a,e)):bO(e,aO(a,e))}else {if(!Lt[d])return o?e:{};a=sI(e,d,s);}}i||(i=new Sr);var h=i.get(e);if(h)return h;i.set(e,a),bI(e)?e.forEach(function(p){a.add(wa(p,t,n,p,e,i));}):hI(e)&&e.forEach(function(p,b){a.set(b,wa(p,t,n,b,e,i));});var v=c?l?Y0:Fd:l?$m:os,g=u?void 0:v(e);return s2(g||e,function(p,b){g&&(b=p,p=e[b]),bm(a,b,wa(p,t,n,b,e,i));}),a}var UI="[object Symbol]";function wc(e){return typeof e=="symbol"||Dr(e)&&Bo(e)==UI}var KI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,GI=/^\w*$/;function Rm(e,t){if(Jn(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||wc(e)?!0:GI.test(e)||!KI.test(e)||t!=null&&e in Object(t)}var XI="Expected a function";function _m(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(XI);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(_m.Cache||Ur),n}_m.Cache=Ur;var qI=500;function YI(e){var t=_m(e,function(r){return n.size===qI&&n.clear(),r}),n=t.cache;return t}var ZI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,QI=/\\(\\)?/g,JI=YI(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ZI,function(n,r,o,i){t.push(o?i.replace(QI,"$1"):r||n);}),t});const eP=JI;var tP=1/0,Yv=Zn?Zn.prototype:void 0,Zv=Yv?Yv.toString:void 0;function ey(e){if(typeof e=="string")return e;if(Jn(e))return gm(e,ey)+"";if(wc(e))return Zv?Zv.call(e):"";var t=e+"";return t=="0"&&1/e==-tP?"-0":t}function nP(e){return e==null?"":ey(e)}function Ki(e,t){return Jn(e)?e:Rm(e,t)?[e]:eP(nP(e))}function rP(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var oP=1/0;function Gi(e){if(typeof e=="string"||wc(e))return e;var t=e+"";return t=="0"&&1/e==-oP?"-0":t}function xc(e,t){t=Ki(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Gi(t[n++])];return n&&n==r?e:void 0}function iP(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function aP(e,t){return t.length<2?e:xc(e,iP(t,0,-1))}function sP(e,t){return t=Ki(t,e),e=aP(e,t),e==null||delete e[Gi(rP(t))]}var lP="[object Object]",cP=Function.prototype,uP=Object.prototype,ty=cP.toString,dP=uP.hasOwnProperty,fP=ty.call(Object);function mP(e){if(!Dr(e)||Bo(e)!=lP)return !1;var t=Im(e);if(t===null)return !0;var n=dP.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ty.call(n)==fP}function hP(e){return mP(e)?void 0:e}var Qv=Zn?Zn.isConcatSpreadable:void 0;function vP(e){return Jn(e)||ym(e)||!!(Qv&&e&&e[Qv])}function ny(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=vP),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?ny(s,t-1,n,r,o):Om(o,s):r||(o[o.length]=s);}return o}function gP(e){var t=e==null?0:e.length;return t?ny(e,1):[]}function pP(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 Jv=Math.max;function bP(e,t,n){return t=Jv(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Jv(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),pP(e,this,s)}}function yP(e){return function(){return e}}function ry(e){return e}var CP=Cl?function(e,t){return Cl(e,"toString",{configurable:!0,enumerable:!1,value:yP(t),writable:!0})}:ry;const SP=CP;var wP=800,xP=16,$P=Date.now;function EP(e){var t=0,n=0;return function(){var r=$P(),o=xP-(r-n);if(n=r,o>0){if(++t>=wP)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var OP=EP(SP);const IP=OP;function oy(e){return IP(bP(e,void 0,gP),e+"")}var PP=1,RP=2,_P=4,TP=oy(function(e,t){var n={};if(e==null)return n;var r=!1;t=gm(t,function(i){return i=Ki(i,e),r||(r=i.length>1),i}),rs(e,Y0(e),n),r&&(n=wa(n,PP|RP|_P,hP));for(var o=t.length;o--;)sP(n,t[o]);return n});const MP=TP;var NP=function(){return fr.Date.now()};const Pu=NP;var kP=/\s/;function AP(e){for(var t=e.length;t--&&kP.test(e.charAt(t)););return t}var LP=/^\s+/;function DP(e){return e&&e.slice(0,AP(e)+1).replace(LP,"")}var eg=0/0,zP=/^[-+]0x[0-9a-f]+$/i,jP=/^0b[01]+$/i,BP=/^0o[0-7]+$/i,HP=parseInt;function Kd(e){if(typeof e=="number")return e;if(wc(e))return eg;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=DP(e);var n=jP.test(e);return n||BP.test(e)?HP(e.slice(2),n?2:8):zP.test(e)?eg:+e}var FP="Expected a function",WP=Math.max,VP=Math.min;function iy(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(FP);t=Kd(t)||0,Qn(n)&&(u=!!n.leading,d="maxWait"in n,i=d?WP(Kd(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function h($){var x=r,w=o;return r=o=void 0,c=$,a=e.apply(w,x),a}function v($){return c=$,s=setTimeout(b,t),u?h($):a}function g($){var x=$-l,w=$-c,O=t-x;return d?VP(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 $=Pu();if(p($))return y($);s=setTimeout(b,g($));}function y($){return s=void 0,f&&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(Pu())}function C(){var $=Pu(),x=p($);if(r=arguments,o=this,l=$,x){if(s===void 0)return v(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 UP="Expected a function";function ay(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(UP);return Qn(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),iy(e,t,{leading:r,maxWait:t,trailing:o})}function KP(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&&++o<i;){var l=Gi(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=Qn(u)?u:Cm(t[o+1])?[]:{});}bm(s,l,c),s=s[l];}return e}function GP(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=xc(e,a);n(s,a)&&KP(i,Ki(a,e),s);}return i}function XP(e,t){return e!=null&&t in Object(e)}function qP(e,t,n){t=Ki(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Gi(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a];}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Sm(o)&&Cm(a,o)&&(Jn(e)||ym(e)))}function sy(e,t){return e!=null&&qP(e,t,XP)}function YP(e,t){return GP(e,t,function(n,r){return sy(e,r)})}var ZP=oy(function(e,t){return e==null?{}:YP(e,t)});const Tm=ZP;var Gd={exports:{}},Ru,tg;function QP(){if(tg)return Ru;tg=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;Ru=function(u,d){d=d||{};var f=typeof u;if(f==="string"&&u.length>0)return a(u);if(f==="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 f=parseFloat(d[1]),h=(d[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return f*i;case"weeks":case"week":case"w":return f*o;case"days":case"day":case"d":return f*r;case"hours":case"hour":case"hrs":case"hr":case"h":return f*n;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;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,f,h){var v=d>=f*1.5;return Math.round(u/f)+" "+h+(v?"s":"")}return Ru}function JP(e){n.debug=n,n.default=n,n.coerce=l,n.disable=i,n.enable=o,n.enabled=a,n.humanize=QP(),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 f=0;f<u.length;f++)d=(d<<5)-d+u.charCodeAt(f),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,f=null,h,v;function g(...p){if(!g.enabled)return;const b=g,y=Number(new Date),S=y-(d||y);b.diff=S,b.prev=d,b.curr=y,d=y,p[0]=n.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let E=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,($,x)=>{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 g.namespace=u,g.useColors=n.useColors(),g.color=n.selectColor(u),g.extend=r,g.destroy=n.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(h!==n.namespaces&&(h=n.namespaces,v=n.enabled(u)),v),set:p=>{f=p;}}),typeof n.init=="function"&&n.init(g),g}function r(u,d){const f=n(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const f=(typeof u=="string"?u:"").split(/[\s,]+/),h=f.length;for(d=0;d<h;d++)f[d]&&(u=f[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")));}function i(){const u=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),u}function a(u){if(u[u.length-1]==="*")return !0;let d,f;for(d=0,f=n.skips.length;d<f;d++)if(n.skips[d].test(u))return !1;for(d=0,f=n.names.length;d<f;d++)if(n.names[d].test(u))return !0;return !1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");}return n.enable(n.load()),n}var eR=JP;(function(e,t){t.formatArgs=r,t.save=o,t.load=i,t.useColors=n,t.storage=a(),t.destroy=(()=>{let l=!1;return ()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%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=eR(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Gd,Gd.exports);var tR=Gd.exports;const nR=an(tR),fn="bilibili-app-recommend",rR="bilibili_app_recommend",Xi=nR(fn),ly="https://api.bilibili.com",cy="https://app.bilibili.com";var uy={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var s=n.apply(null,i);s&&r.push(s);}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&r.push(l);}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n;})();})(uy);var oR=uy.exports;const F=an(oR);function at(e){"@babel/helpers - typeof";return at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},at(e)}function iR(e,t){if(at(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(at(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function dy(e){var t=iR(e,"string");return at(t)==="symbol"?t:String(t)}function Z(e,t,n){return t=dy(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aR(e){if(Array.isArray(e))return Xd(e)}function fy(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mm(e,t){if(e){if(typeof e=="string")return Xd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xd(e,t)}}function sR(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qe(e){return aR(e)||fy(e)||Mm(e)||sR()}function my(e){if(Array.isArray(e))return e}function lR(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1;}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u;}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function hy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(e,t){return my(e)||lR(e,t)||Mm(e,t)||hy()}var qd={},cR=function(t){};function uR(e,t){}function dR(e,t){}function fR(){qd={};}function vy(e,t,n){!t&&!qd[n]&&(e(!1,n),qd[n]=!0);}function Ir(e,t){vy(uR,e,t);}function mR(e,t){vy(dR,e,t);}Ir.preMessage=cR;Ir.resetWarned=fR;Ir.noteOnce=mR;function $c(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(Ir(!l,"Warning: There may be circular references"),l)return !1;if(i===a)return !0;if(n&&s>1)return !1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return !1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return !1;return !0}if(i&&a&&at(i)==="object"&&at(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(f){return o(i[f],a[f],c)})}return !1}return o(e,t)}function Mn(e){var t=m__namespace.useRef();t.current=e;var n=m__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function er(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}var ng=er()?m__namespace.useLayoutEffect:m__namespace.useEffect,Ft=function(t,n){var r=m__namespace.useRef(!0);ng(function(){return t(r.current)},n),ng(function(){return r.current=!1,function(){r.current=!0;}},[]);},$i=function(t,n){Ft(function(r){if(!r)return t()},n);};function Ro(e){var t=m__namespace.useRef(!1),n=m__namespace.useState(e),r=G(n,2),o=r[0],i=r[1];m__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function a(s,l){l&&t.current||i(s);}return [o,a]}function _u(e){return e!==void 0}function Dt(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Ro(function(){return _u(o)?o:_u(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=G(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,f=a?a(d):d,h=Mn(i),v=Ro([d]),g=G(v,2),p=g[0],b=g[1];$i(function(){var S=p[0];c!==S&&h(c,S);},[p]),$i(function(){_u(o)||u(o);},[o]);var y=Mn(function(S,E){u(S,E),b([d],E);});return [f,y]}function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Oe.apply(this,arguments)}function hR(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Je(e,t){if(e==null)return {};var n=hR(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function rg(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 Q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rg(Object(n),!0).forEach(function(r){Z(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}var le={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=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}}},Wo=m__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function Yd(e,t,n){return (e-t)/(n-t)}function Nm(e,t,n,r){var o=Yd(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 pi(e,t){return Array.isArray(e)?e[t]:e}var vR=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],gR=m__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,f=Je(e,vR),h=m__namespace.useContext(Wo),v=h.min,g=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);},R=function(P){if(!b&&y){var T=null;switch(P.which||P.keyCode){case le.LEFT:T=p==="ltr"||p==="btt"?-1:1;break;case le.RIGHT:T=p==="ltr"||p==="btt"?1:-1;break;case le.UP:T=p!=="ttb"?1:-1;break;case le.DOWN:T=p!=="ttb"?-1:1;break;case le.HOME:T="min";break;case le.END:T="max";break;case le.PAGE_UP:T=2;break;case le.PAGE_DOWN:T=-2;break}T!==null&&(P.preventDefault(),d(T,a));}},A=Nm(p,i,v,g),_=m__namespace.createElement("div",Oe({ref:t,className:F(w,(n={},Z(n,"".concat(w,"-").concat(a+1),S),Z(n,"".concat(w,"-dragging"),u),n)),style:Q(Q({},A),l),onMouseDown:O,onTouchStart:O,onKeyDown:R,tabIndex:b?null:pi(E,a),role:"slider","aria-valuemin":v,"aria-valuemax":g,"aria-valuenow":i,"aria-disabled":b,"aria-label":pi(C,a),"aria-labelledby":pi($,a),"aria-valuetext":(r=pi(x,a))===null||r===void 0?void 0:r(i)},f));return c&&(_=c(_,{index:a,prefixCls:o,value:i,dragging:u})),_}),pR=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],bR=m__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=Je(e,pR),u=m__namespace.useRef({});return m__namespace.useImperativeHandle(t,function(){return {focus:function(f){var h;(h=u.current[f])===null||h===void 0||h.focus();}}}),m__namespace.createElement(m__namespace.Fragment,null,a.map(function(d,f){return m__namespace.createElement(gR,Oe({ref:function(v){v?u.current[f]=v:delete u.current[f];},dragging:l===f,prefixCls:n,style:pi(r,f),key:f,value:d,valueIndex:f,onStartMove:o,onOffsetChange:i,render:s},c))}))});function og(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function yR(e,t,n,r,o,i,a,s,l){var c=m__namespace.useState(null),u=G(c,2),d=u[0],f=u[1],h=m__namespace.useState(-1),v=G(h,2),g=v[0],p=v[1],b=m__namespace.useState(n),y=G(b,2),S=y[0],E=y[1],C=m__namespace.useState(n),$=G(C,2),x=$[0],w=$[1],O=m__namespace.useRef(null),R=m__namespace.useRef(null);m__namespace.useEffect(function(){g===-1&&E(n);},[n,g]),m__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",O.current),document.removeEventListener("mouseup",R.current),document.removeEventListener("touchmove",O.current),document.removeEventListener("touchend",R.current);}},[]);var A=function(M,L){S.some(function(z,H){return z!==M[H]})&&(L!==void 0&&f(L),E(M),a(M));},_=function(M,L){if(M===-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 K=x.map(function(X){return X+V});A(K);}else {var te=(o-r)*L,q=Qe(S);q[M]=x[M];var U=l(q,te,M,"dist");A(U.values,U.value);}},I=m__namespace.useRef(_);I.current=_;var P=function(M,L){M.stopPropagation();var z=n[L];p(L),f(z),w(n);var H=og(M),W=H.pageX,B=H.pageY,V=function(te){te.preventDefault();var q=og(te),U=q.pageX,X=q.pageY,oe=U-W,ue=X-B,ve=e.current.getBoundingClientRect(),re=ve.width,ae=ve.height,ce;switch(t){case"btt":ce=-ue/ae;break;case"ttb":ce=ue/ae;break;case"rtl":ce=-oe/re;break;default:ce=oe/re;}I.current(L,ce);},j=function K(te){te.preventDefault(),document.removeEventListener("mouseup",K),document.removeEventListener("mousemove",V),document.removeEventListener("touchend",K),document.removeEventListener("touchmove",V),O.current=null,R.current=null,p(-1),s();};document.addEventListener("mouseup",j),document.addEventListener("mousemove",V),document.addEventListener("touchend",j),document.addEventListener("touchmove",V),O.current=V,R.current=j;},T=m__namespace.useMemo(function(){var N=Qe(n).sort(function(L,z){return L-z}),M=Qe(S).sort(function(L,z){return L-z});return N.every(function(L,z){return L===M[z]})?S:n},[n,S]);return [g,d,T,P]}function CR(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,s=m__namespace.useContext(Wo),l=s.direction,c=s.min,u=s.max,d=s.disabled,f=s.range,h="".concat(t,"-track"),v=Yd(r,c,u),g=Yd(o,c,u),p=function(S){!d&&a&&a(S,-1);},b={};switch(l){case"rtl":b.right="".concat(v*100,"%"),b.width="".concat(g*100-v*100,"%");break;case"btt":b.bottom="".concat(v*100,"%"),b.height="".concat(g*100-v*100,"%");break;case"ttb":b.top="".concat(v*100,"%"),b.height="".concat(g*100-v*100,"%");break;default:b.left="".concat(v*100,"%"),b.width="".concat(g*100-v*100,"%");}return m__namespace.createElement("div",{className:F(h,f&&"".concat(h,"-").concat(i+1)),style:Q(Q({},b),n),onMouseDown:p,onTouchStart:p})}function SR(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=m__namespace.useContext(Wo),s=a.included,l=a.range,c=a.min,u=m__namespace.useMemo(function(){if(!l){if(r.length===0)return [];var d=o??c,f=r[0];return [{start:Math.min(d,f),end:Math.max(d,f)}]}for(var h=[],v=0;v<r.length-1;v+=1)h.push({start:r[v],end:r[v+1]});return h},[r,l,o,c]);return s?u.map(function(d,f){var h=d.start,v=d.end;return m__namespace.createElement(CR,{index:f,prefixCls:t,style:pi(n,f),start:h,end:v,key:f,onStartMove:i})}):null}function wR(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=m__namespace.useContext(Wo),s=a.min,l=a.max,c=a.direction,u=a.includedStart,d=a.includedEnd,f=a.included,h="".concat(t,"-text"),v=Nm(c,o,s,l);return m__namespace.createElement("span",{className:F(h,Z({},"".concat(h,"-active"),f&&u<=o&&o<=d)),style:Q(Q({},v),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){i(o);}},r)}function xR(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?m__namespace.createElement("div",{className:o},n.map(function(i){var a=i.value,s=i.style,l=i.label;return m__namespace.createElement(wR,{key:a,prefixCls:o,style:s,value:a,onClick:r},l)})):null}function $R(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=m__namespace.useContext(Wo),a=i.min,s=i.max,l=i.direction,c=i.included,u=i.includedStart,d=i.includedEnd,f="".concat(t,"-dot"),h=c&&u<=n&&n<=d,v=Q(Q({},Nm(l,n,a,s)),typeof r=="function"?r(n):r);return h&&(v=Q(Q({},v),typeof o=="function"?o(n):o)),m__namespace.createElement("span",{className:F(f,Z({},"".concat(f,"-active"),h)),style:v})}function ER(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=m__namespace.useContext(Wo),s=a.min,l=a.max,c=a.step,u=m__namespace.useMemo(function(){var d=new Set;if(n.forEach(function(h){d.add(h.value);}),r&&c!==null)for(var f=s;f<=l;)d.add(f),f+=c;return Array.from(d)},[s,l,c,r,n]);return m__namespace.createElement("div",{className:"".concat(t,"-step")},u.map(function(d){return m__namespace.createElement($R,{prefixCls:t,key:d,value:d,style:o,activeStyle:i})}))}function OR(e,t,n,r,o,i){var a=m__namespace.useCallback(function(h){var v=isFinite(h)?h:e;return v=Math.min(t,h),v=Math.max(e,v),v},[e,t]),s=m__namespace.useCallback(function(h){if(n!==null){var v=e+Math.round((a(h)-e)/n)*n,g=function(S){return (String(S).split(".")[1]||"").length},p=Math.max(g(n),g(t),g(e)),b=Number(v.toFixed(p));return e<=b&&b<=t?b:null}return null},[n,e,t,a]),l=m__namespace.useCallback(function(h){var v=a(h),g=r.map(function(y){return y.value});n!==null&&g.push(s(h)),g.push(e,t);var p=g[0],b=t-e;return g.forEach(function(y){var S=Math.abs(v-y);S<=b&&(p=y,b=S);}),p},[e,t,r,n,a,s]),c=function h(v,g,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var y,S=v[p],E=S+g,C=[];r.forEach(function(R){C.push(R.value);}),C.push(e,t),C.push(s(S));var $=g>0?1:-1;b==="unit"?C.push(s(S+$*n)):C.push(s(E)),C=C.filter(function(R){return R!==null}).filter(function(R){return g<0?R<=S:R>=S}),b==="unit"&&(C=C.filter(function(R){return R!==S}));var x=b==="unit"?S:E;y=C[0];var w=Math.abs(y-x);if(C.forEach(function(R){var A=Math.abs(R-x);A<w&&(y=R,w=A);}),y===void 0)return g<0?e:t;if(b==="dist")return y;if(Math.abs(g)>1){var O=Qe(v);return O[p]=y,h(O,g-$,p,b)}return y}else {if(g==="min")return e;if(g==="max")return t}},u=function(v,g,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=v[p],S=c(v,g,p,b);return {value:S,changed:S!==y}},d=function(v){return i===null&&v===0||typeof i=="number"&&v<i},f=function(v,g,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=v.map(l),S=y[p],E=c(y,g,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)),p<y.length-1&&y[p+1]!==S&&(y[p]=Math.min(y[p],y[p+1]-C));}else if(typeof i=="number"||i===null){for(var $=p+1;$<y.length;$+=1)for(var x=!0;d(y[$]-y[$-1])&&x;){var w=u(y,1,$);y[$]=w.value,x=w.changed;}for(var O=p;O>0;O-=1)for(var R=!0;d(y[O]-y[O-1])&&R;){var A=u(y,-1,O-1);y[O-1]=A.value,R=A.changed;}for(var _=y.length-1;_>0;_-=1)for(var I=!0;d(y[_]-y[_-1])&&I;){var P=u(y,-1,_-1);y[_-1]=P.value,I=P.changed;}for(var T=0;T<y.length-1;T+=1)for(var N=!0;d(y[T+1]-y[T])&&N;){var M=u(y,1,T+1);y[T+1]=M.value,N=M.changed;}}return {value:y[p],values:y}};return [l,f]}var IR=m__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-slider":r,i=e.className,a=e.style,s=e.disabled,l=s===void 0?!1:s,c=e.keyboard,u=c===void 0?!0:c,d=e.autoFocus,f=e.onFocus,h=e.onBlur,v=e.min,g=v===void 0?0:v,p=e.max,b=p===void 0?100:p,y=e.step,S=y===void 0?1:y,E=e.value,C=e.defaultValue,$=e.range,x=e.count,w=e.onChange,O=e.onBeforeChange,R=e.onAfterChange,A=e.allowCross,_=A===void 0?!0:A,I=e.pushable,P=I===void 0?!1:I,T=e.draggableTrack,N=e.reverse,M=e.vertical,L=e.included,z=L===void 0?!0:L,H=e.startPoint,W=e.trackStyle,B=e.handleStyle,V=e.railStyle,j=e.dotStyle,K=e.activeDotStyle,te=e.marks,q=e.dots,U=e.handleRender,X=e.tabIndex,oe=X===void 0?0:X,ue=e.ariaLabelForHandle,ve=e.ariaLabelledByForHandle,re=e.ariaValueTextFormatterForHandle,ae=m__namespace.useRef(),ce=m__namespace.useRef(),Y=m__namespace.useMemo(function(){return M?N?"ttb":"btt":N?"rtl":"ltr"},[N,M]),ne=m__namespace.useMemo(function(){return isFinite(g)?g:0},[g]),J=m__namespace.useMemo(function(){return isFinite(b)?b:100},[b]),fe=m__namespace.useMemo(function(){return S!==null&&S<=0?1:S},[S]),me=m__namespace.useMemo(function(){return P===!0?fe:P>=0?P:!1},[P,fe]),ye=m__namespace.useMemo(function(){var Ge=Object.keys(te||{});return Ge.map(function(Ze){var Ue=te[Ze],mt={value:Number(Ze)};return Ue&&at(Ue)==="object"&&!m__namespace.isValidElement(Ue)&&("label"in Ue||"style"in Ue)?(mt.style=Ue.style,mt.label=Ue.label):mt.label=Ue,mt}).filter(function(Ze){var Ue=Ze.label;return Ue||typeof Ue=="number"}).sort(function(Ze,Ue){return Ze.value-Ue.value})},[te]),Re=OR(ne,J,fe,ye,_,me),He=G(Re,2),Te=He[0],ie=He[1],he=Dt(C,{value:E}),pe=G(he,2),we=pe[0],De=pe[1],Ae=m__namespace.useMemo(function(){var Ge=we==null?[]:Array.isArray(we)?we:[we],Ze=G(Ge,1),Ue=Ze[0],mt=Ue===void 0?ne:Ue,ht=we===null?[]:[mt];if($){if(ht=Qe(Ge),x||we===void 0){var _t=x>=0?x+1:2;for(ht=ht.slice(0,_t);ht.length<_t;){var Xe;ht.push((Xe=ht[ht.length-1])!==null&&Xe!==void 0?Xe:ne);}}ht.sort(function(We,dt){return We-dt});}return ht.forEach(function(We,dt){ht[dt]=Te(We);}),ht},[we,$,ne,x,Te]),xe=m__namespace.useRef(Ae);xe.current=Ae;var Ie=function(Ze){return $?Ze:Ze[0]},Fe=function(Ze){var Ue=Qe(Ze).sort(function(mt,ht){return mt-ht});w&&!$c(Ue,xe.current,!0)&&w(Ie(Ue)),De(Ue);},$e=function(Ze){if(!l){var Ue=0,mt=J-ne;Ae.forEach(function(_t,Xe){var We=Math.abs(Ze-_t);We<=mt&&(mt=We,Ue=Xe);});var ht=Qe(Ae);ht[Ue]=Ze,$&&!Ae.length&&x===void 0&&ht.push(Ze),O==null||O(Ie(ht)),Fe(ht),R==null||R(Ie(ht));}},Ne=function(Ze){Ze.preventDefault();var Ue=ce.current.getBoundingClientRect(),mt=Ue.width,ht=Ue.height,_t=Ue.left,Xe=Ue.top,We=Ue.bottom,dt=Ue.right,Et=Ze.clientX,en=Ze.clientY,Nt;switch(Y){case"btt":Nt=(We-en)/ht;break;case"ttb":Nt=(en-Xe)/ht;break;case"rtl":Nt=(dt-Et)/mt;break;default:Nt=(Et-_t)/mt;}var cn=ne+Nt*(J-ne);$e(Te(cn));},tt=m__namespace.useState(null),ct=G(tt,2),qe=ct[0],ut=ct[1],Pe=function(Ze,Ue){if(!l){var mt=ie(Ae,Ze,Ue);O==null||O(Ie(Ae)),Fe(mt.values),R==null||R(Ie(mt.values)),ut(mt.value);}};m__namespace.useEffect(function(){if(qe!==null){var Ge=Ae.indexOf(qe);Ge>=0&&ae.current.focus(Ge);}ut(null);},[qe]);var de=m__namespace.useMemo(function(){return T&&fe===null?!1:T},[T,fe]),Se=function(){R==null||R(Ie(xe.current));},ee=yR(ce,Y,Ae,ne,J,Te,Fe,Se,ie),be=G(ee,4),_e=be[0],Ye=be[1],Le=be[2],ge=be[3],Ee=function(Ze,Ue){ge(Ze,Ue),O==null||O(Ie(xe.current));},Me=_e!==-1;m__namespace.useEffect(function(){if(!Me){var Ge=Ae.lastIndexOf(Ye);ae.current.focus(Ge);}},[Me]);var ke=m__namespace.useMemo(function(){return Qe(Le).sort(function(Ge,Ze){return Ge-Ze})},[Le]),st=m__namespace.useMemo(function(){return $?[ke[0],ke[ke.length-1]]:[ne,ke[0]]},[ke,$,ne]),et=G(st,2),St=et[0],Bt=et[1];m__namespace.useImperativeHandle(t,function(){return {focus:function(){ae.current.focus(0);},blur:function(){var Ze=document,Ue=Ze.activeElement;ce.current.contains(Ue)&&(Ue==null||Ue.blur());}}}),m__namespace.useEffect(function(){d&&ae.current.focus(0);},[]);var Ht=m__namespace.useMemo(function(){return {min:ne,max:J,direction:Y,disabled:l,keyboard:u,step:fe,included:z,includedStart:St,includedEnd:Bt,range:$,tabIndex:oe,ariaLabelForHandle:ue,ariaLabelledByForHandle:ve,ariaValueTextFormatterForHandle:re}},[ne,J,Y,l,u,fe,z,St,Bt,$,oe,ue,ve,re]);return m__namespace.createElement(Wo.Provider,{value:Ht},m__namespace.createElement("div",{ref:ce,className:F(o,i,(n={},Z(n,"".concat(o,"-disabled"),l),Z(n,"".concat(o,"-vertical"),M),Z(n,"".concat(o,"-horizontal"),!M),Z(n,"".concat(o,"-with-marks"),ye.length),n)),style:a,onMouseDown:Ne},m__namespace.createElement("div",{className:"".concat(o,"-rail"),style:V}),m__namespace.createElement(SR,{prefixCls:o,style:W,values:ke,startPoint:H,onStartMove:de?Ee:null}),m__namespace.createElement(ER,{prefixCls:o,marks:ye,dots:q,style:j,activeStyle:K}),m__namespace.createElement(bR,{ref:ae,prefixCls:o,style:B,values:Le,draggingIndex:_e,onStartMove:Ee,onOffsetChange:Pe,onFocus:f,onBlur:h,handleRender:U}),m__namespace.createElement(xR,{prefixCls:o,marks:ye,onClick:$e})))});function km(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 Cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ig(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dy(r.key),r);}}function Sn(e,t,n){return t&&ig(e.prototype,t),n&&ig(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ag="%",PR=function(){function e(t){Cn(this,e),Z(this,"instanceId",void 0),Z(this,"cache",new Map),this.instanceId=t;}return Sn(e,[{key:"get",value:function(n){return this.cache.get(n.join(ag))||null}},{key:"update",value:function(n,r){var o=n.join(ag),i=this.cache.get(o),a=r(i);a===null?this.cache.delete(o):this.cache.set(o,a);}}]),e}(),Zd="data-token-hash",_o="data-css-hash",bi="__cssinjs_instance__";function RR(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(_o,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[bi]=o[bi]||e,o[bi]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(_o,"]"))).forEach(function(o){var i=o.getAttribute(_o);if(r[i]){if(o[bi]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o);}}else r[i]=!0;});}return new PR(e)}var _R=m__namespace.createContext({hashPriority:"low",cache:RR(),defaultCache:!0});const Am=_R;function qi(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}function TR(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 sg="data-rc-order",lg="data-rc-priority",MR="rc-util-key",Qd=new Map;function gy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):MR}function Ec(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function NR(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function py(e){return Array.from((Qd.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function by(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!qi())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=NR(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(sg,a),s&&i&&l.setAttribute(lg,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Ec(t),u=c.firstChild;if(r){if(s){var d=py(c).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(sg)))return !1;var h=Number(f.getAttribute(lg)||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 yy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ec(t);return py(n).find(function(r){return r.getAttribute(gy(t))===e})}function Cy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=yy(e,t);if(n){var r=Ec(t);r.removeChild(n);}}function kR(e,t){var n=Qd.get(e);if(!n||!TR(document,n)){var r=by("",t),o=r.parentNode;Qd.set(e,o),e.removeChild(r);}}function Jd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ec(n);kR(r,n);var o=yy(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=by(e,n);return l.setAttribute(gy(n),t),l}function AR(e,t){if(e.length!==t.length)return !1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return !1;return !0}var Lm=function(){function e(){Cn(this,e),Z(this,"cache",void 0),Z(this,"keys",void 0),Z(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return Sn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else {var l,c;a=(l=a)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s);}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return (r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return !!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var d=G(c,2),f=d[1];return o.internalGet(u)[1]<f?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=G(i,1),s=a[0];this.delete(s);}this.keys.push(n);}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else {var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map;}});}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return (!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return !AR(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();Z(Lm,"MAX_CACHE_SIZE",20);Z(Lm,"MAX_CACHE_OFFSET",5);var cg=0,Sy=function(){function e(t){Cn(this,e),Z(this,"derivatives",void 0),Z(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=cg,t.length===0&&(t.length>0,void 0),cg+=1;}return Sn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Tu=new Lm;function Ha(e){var t=Array.isArray(e)?e:[e];return Tu.has(t)||Tu.set(t,new Sy(t)),Tu.get(t)}function xl(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Sy?t+=r.id:r&&at(r)==="object"?t+=xl(r):t+=r;}),t}function LR(e,t){return km("".concat(t,"_").concat(xl(e)))}var xa="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),wy="_bAmBoO_";function DR(e,t,n){if(qi()){var r,o;Jd(e,xa);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(wy);return (o=i.parentNode)===null||o===void 0||o.removeChild(i),Cy(xa),a}return !1}var Mu=void 0;function zR(){return Mu===void 0&&(Mu=DR("@layer ".concat(xa," { .").concat(xa,' { content: "').concat(wy,'"!important; } }'),function(e){e.className=xa;})),Mu}var ug=qi()?m__namespace.useLayoutEffect:m__namespace.useEffect,jR=function(t,n){var r=m__namespace.useRef(!0);ug(function(){return t(r.current)},n),ug(function(){return r.current=!1,function(){r.current=!0;}},[]);},BR=Q({},m__namespace),dg=BR.useInsertionEffect,HR=function(t,n,r){m__namespace.useMemo(t,r),jR(function(){return n(!0)},r);},FR=dg?function(e,t,n){return dg(function(){return e(),t()},n)}:HR;const WR=FR;var VR=Q({},m__namespace),UR=VR.useInsertionEffect,KR=function(t){var n=[],r=!1;function o(i){r||n.push(i);}return m__namespace.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()});}},t),o},GR=function(){return function(t){t();}},XR=typeof UR<"u"?KR:GR;const qR=XR;function xy(e,t,n,r,o){var i=m__namespace.useContext(Am),a=i.cache,s=[e].concat(Qe(t)),l=s.join("_"),c=qR([l]),u=function(v){a.update(s,function(g){var p=g||[],b=G(p,2),y=b[0],S=y===void 0?0:y,E=b[1],C=E,$=C||n(),x=[S,$];return v?v(x):x});};m__namespace.useMemo(function(){u();},[l]);var d=a.get(s),f=d[1];return WR(function(){o==null||o(f);},function(h){return u(function(v){var g=G(v,2),p=g[0],b=g[1];return h&&p===0&&(o==null||o(f)),[p+1,b]}),function(){a.update(s,function(v){var g=v||[],p=G(g,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]),f}var YR={},ZR="css",wo=new Map;function QR(e){wo.set(e,(wo.get(e)||0)+1);}function JR(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Zd,'="').concat(e,'"]'));n.forEach(function(r){if(r[bi]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}var e_=0;function t_(e,t){wo.set(e,(wo.get(e)||0)-1);var n=Array.from(wo.keys()),r=n.filter(function(o){var i=wo.get(o)||0;return i<=0});n.length-r.length>e_&&r.forEach(function(o){JR(o,t),wo.delete(o);});}var $y=function(t,n,r,o){var i=r.getDerivativeToken(t),a=Q(Q({},i),n);return o&&(a=o(a)),a};function n_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=m.useContext(Am),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,s=n.override,l=s===void 0?YR:s,c=n.formatToken,u=n.getComputedToken,d=m__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(Qe(t)))},[t]),f=m__namespace.useMemo(function(){return xl(d)},[d]),h=m__namespace.useMemo(function(){return xl(l)},[l]),v=xy("token",[a,e.id,f,h],function(){var g=u?u(d,l,e):$y(d,l,e,c),p=LR(g,a);g._tokenKey=p,QR(p);var b="".concat(ZR,"-").concat(km(p));return g._hashId=b,[g,b]},function(g){t_(g[0]._tokenKey,o);});return v}var r_={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},fg="data-ant-cssinjs-cache-path",Ey="_FILE_STYLE__",To,Oy=!0;function o_(){if(!To&&(To={},qi())){var e=document.createElement("div");e.className=fg,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=G(i,2),s=a[0],l=a[1];To[s]=l;});var n=document.querySelector("style[".concat(fg,"]"));if(n){var r;Oy=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n);}document.body.removeChild(e);}}function i_(e){return o_(),!!To[e]}function a_(e){var t=To[e],n=null;if(t&&qi())if(Oy)n=Ey;else {var r=document.querySelector("style[".concat(_o,'="').concat(To[e],'"]'));r?n=r.innerHTML:delete To[e];}return [n,t]}var mg=qi(),s_="_skip_check_",Iy="_multi_value_";function hg(e){var t=Po(b0(e),y0);return t.replace(/\{%%%\:[^;];}/g,";")}function l_(e){return at(e)==="object"&&e&&(s_ in e||Iy in e)}function c_(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 u_=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 f="",h={};function v(S){var E=S.getName(s);if(!h[E]){var C=e(S.style,n,{root:!1,parentSelectors:a}),$=G(C,1),x=$[0];h[E]="@keyframes ".concat(S.getName(s)).concat(x);}}function g(S){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(C){Array.isArray(C)?g(C,E):C&&E.push(C);}),E}var p=g(Array.isArray(t)?t:[t]);if(p.forEach(function(S){var E=typeof S=="string"&&!o?{}:S;if(typeof E=="string")f+="".concat(E,` `);else if(E._keyframe)v(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)&&!l_(x)){var w=!1,O=$.trim(),R=!1;(o||i)&&s?O.startsWith("@")?w=!0:O=c_($,s,c):o&&!s&&(O==="&"||O==="")&&(O="",R=!0);var A=e(x,n,{root:R,injectHash:w,parentSelectors:[].concat(Qe(a),[O])}),_=G(A,2),I=_[0],P=_[1];h=Q(Q({},h),P),f+="".concat(O).concat(I);}else {let M=function(L,z){var H=L.replace(/[A-Z]/g,function(B){return "-".concat(B.toLowerCase())}),W=z;!r_[L]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),L==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(v(z),W=z.getName(s)),f+="".concat(H,":").concat(W,";");};var T,N=(T=x==null?void 0:x.value)!==null&&T!==void 0?T:x;at(x)==="object"&&x!==null&&x!==void 0&&x[Iy]&&Array.isArray(N)?N.forEach(function(L){M($,L);}):M($,N);}});}}),!o)f="{".concat(f,"}");else if(l&&zR()){var b=l.split(","),y=b[b.length-1].trim();f="@layer ".concat(y," {").concat(f,"}"),b.length>1&&(f="@layer ".concat(l,"{%%%:%}").concat(f));}return [f,h]};function d_(e,t){return km("".concat(e.join("%")).concat(t))}function f_(){return null}function ef(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=m__namespace.useContext(Am),d=u.autoClear;u.mock;var f=u.defaultCache,h=u.hashPriority,v=u.container,g=u.ssrInline,p=u.transformers,b=u.linters,y=u.cache,S=n._tokenKey,E=[S].concat(Qe(r)),C=mg,$=xy("style",E,function(){var A=E.join("|");if(i_(A)){var _=a_(A),I=G(_,2),P=I[0],T=I[1];if(P)return [P,S,T,{},s,c]}var N=t(),M=u_(N,{hashId:o,hashPriority:h,layer:i,path:r.join("-"),transformers:p,linters:b}),L=G(M,2),z=L[0],H=L[1],W=hg(z),B=d_(E,W);return [W,S,B,H,s,c]},function(A,_){var I=G(A,3),P=I[2];(_||d)&&mg&&Cy(P,{mark:_o});},function(A){var _=G(A,4),I=_[0];_[1];var P=_[2],T=_[3];if(C&&I!==Ey){var N={mark:_o,prepend:"queue",attachTo:v,priority:c},M=typeof a=="function"?a():a;M&&(N.csp={nonce:M});var L=Jd(I,P,N);L[bi]=y.instanceId,L.setAttribute(Zd,S),Object.keys(T).forEach(function(z){Jd(hg(T[z]),"_effect-".concat(z),N);});}}),x=G($,3),w=x[0],O=x[1],R=x[2];return function(A){var _;if(!g||C||!f)_=m__namespace.createElement(f_,null);else {var I;_=m__namespace.createElement("style",Oe({},(I={},Z(I,Zd,O),Z(I,_o,R),I),{dangerouslySetInnerHTML:{__html:w}}));}return m__namespace.createElement(m__namespace.Fragment,null,_,A)}}var Rt=function(){function e(t,n){Cn(this,e),Z(this,"name",void 0),Z(this,"style",void 0),Z(this,"_keyframe",!0),this.name=t,this.style=n;}return Sn(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 Qo(e){return e.notSplit=!0,e}Qo(["borderTop","borderBottom"]),Qo(["borderTop"]),Qo(["borderBottom"]),Qo(["borderLeft","borderRight"]),Qo(["borderLeft"]),Qo(["borderRight"]);var m_=m.createContext({});const Dm=m_;function is(e,t,n){var r=m__namespace.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Py(e){return my(e)||fy(e)||Mm(e)||hy()}function tf(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function Ry(e,t,n,r){if(!t.length)return n;var o=Py(t),i=o[0],a=o.slice(1),s;return !e&&typeof i=="number"?s=[]:Array.isArray(e)?s=Qe(e):s=Q({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=Ry(s[i],a,n,r),s}function Nu(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!tf(e,t.slice(0,-1))?e:Ry(e,t,n,r)}function h_(e){return at(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function vg(e){return Array.isArray(e)?[]:{}}var v_=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function g_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=vg(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),c=tf(o,a),u=Array.isArray(c);if(u||h_(c)){if(!l.has(c)){l.add(c);var d=tf(r,a);u?r=Nu(r,a,[]):(!d||at(d)!=="object")&&(r=Nu(r,a,vg(c))),v_(c).forEach(function(f){i([].concat(Qe(a),[f]),l);});}}else r=Nu(r,a,c);}i([]);}),r}const p_=m.createContext(void 0),_y={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var b_={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const y_={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ty=y_,C_={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},b_),timePickerLocale:Object.assign({},Ty)},gg=C_,Ln="${label} is not a valid ${type}",S_={locale:"en",Pagination:_y,DatePicker:gg,TimePicker:Ty,Calendar:gg,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ln,method:Ln,array:Ln,object:Ln,number:Ln,date:Ln,boolean:Ln,integer:Ln,float:Ln,regexp:Ln,email:Ln,url:Ln,hex:Ln},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}},zr=S_;Object.assign({},zr.Modal);let rl=[];const pg=()=>rl.reduce((e,t)=>Object.assign(Object.assign({},e),t),zr.Modal);function w_(e){if(e){const t=Object.assign({},e);return rl.push(t),pg(),()=>{rl=rl.filter(n=>n!==t),pg();}}Object.assign({},zr.Modal);}const x_=m.createContext(void 0),zm=x_,$_=(e,t)=>{const n=m__namespace.useContext(zm),r=m__namespace.useMemo(()=>{var i;const a=t||zr[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=m__namespace.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?zr.locale:i},[n]);return [r,o]},Yi=$_,E_="internalMark",O_=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;m__namespace.useEffect(()=>w_(t&&t.Modal),[t]);const o=m__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return m__namespace.createElement(zm.Provider,{value:o},n)},I_=O_,Fa=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],P_="5.8.4";function mn(e,t){R_(e)&&(e="100%");var n=__(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 Ns(e){return Math.min(1,Math.max(0,e))}function R_(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function __(e){return typeof e=="string"&&e.indexOf("%")!==-1}function My(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ks(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Oo(e){return e.length===1?"0"+e:String(e)}function T_(e,t,n){return {r:mn(e,255)*255,g:mn(t,255)*255,b:mn(n,255)*255}}function bg(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+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6;}return {h:i,s:a,l:s}}function ku(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function M_(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=ku(s,a,e+1/3),o=ku(s,a,e),i=ku(s,a,e-1/3);}return {r:r*255,g:o*255,b:i*255}}function nf(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<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6;}return {h:i,s:l,v:a}}function N_(e,t,n){e=mn(e,360)*6,t=mn(t,100),n=mn(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,a,i,i,s,n][l],u=[s,n,n,a,i,i][l],d=[i,i,s,n,n,a][l];return {r:c*255,g:u*255,b:d*255}}function rf(e,t,n,r){var o=[Oo(Math.round(e).toString(16)),Oo(Math.round(t).toString(16)),Oo(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function k_(e,t,n,r,o){var i=[Oo(Math.round(e).toString(16)),Oo(Math.round(t).toString(16)),Oo(Math.round(n).toString(16)),Oo(A_(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function A_(e){return Math.round(parseFloat(e)*255).toString(16)}function yg(e){return jn(e)/255}function jn(e){return parseInt(e,16)}function L_(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var of={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 mi(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=j_(e)),typeof e=="object"&&(Tr(e.r)&&Tr(e.g)&&Tr(e.b)?(t=T_(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Tr(e.h)&&Tr(e.s)&&Tr(e.v)?(r=ks(e.s),o=ks(e.v),t=N_(e.h,r,o),a=!0,s="hsv"):Tr(e.h)&&Tr(e.s)&&Tr(e.l)&&(r=ks(e.s),i=ks(e.l),t=M_(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=My(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 D_="[-\\+]?\\d+%?",z_="[-\\+]?\\d*\\.\\d+%?",oo="(?:".concat(z_,")|(?:").concat(D_,")"),Au="[\\s|\\(]+(".concat(oo,")[,|\\s]+(").concat(oo,")[,|\\s]+(").concat(oo,")\\s*\\)?"),Lu="[\\s|\\(]+(".concat(oo,")[,|\\s]+(").concat(oo,")[,|\\s]+(").concat(oo,")[,|\\s]+(").concat(oo,")\\s*\\)?"),or={CSS_UNIT:new RegExp(oo),rgb:new RegExp("rgb"+Au),rgba:new RegExp("rgba"+Lu),hsl:new RegExp("hsl"+Au),hsla:new RegExp("hsla"+Lu),hsv:new RegExp("hsv"+Au),hsva:new RegExp("hsva"+Lu),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 j_(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(of[e])e=of[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=or.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=or.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=or.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=or.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=or.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=or.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=or.hex8.exec(e),n?{r:jn(n[1]),g:jn(n[2]),b:jn(n[3]),a:yg(n[4]),format:t?"name":"hex8"}:(n=or.hex6.exec(e),n?{r:jn(n[1]),g:jn(n[2]),b:jn(n[3]),format:t?"name":"hex"}:(n=or.hex4.exec(e),n?{r:jn(n[1]+n[1]),g:jn(n[2]+n[2]),b:jn(n[3]+n[3]),a:yg(n[4]+n[4]),format:t?"name":"hex8"}:(n=or.hex3.exec(e),n?{r:jn(n[1]+n[1]),g:jn(n[2]+n[2]),b:jn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Tr(e){return !!or.CSS_UNIT.exec(String(e))}var Wt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=L_(t)),this.originalInput=t;var o=mi(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=My(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=nf(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=nf(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=bg(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=bg(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),rf(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),k_(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="#"+rf(this.r,this.g,this.b,!1),n=0,r=Object.entries(of);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return !1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return (Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Ns(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=Ns(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=Ns(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=Ns(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return [this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),As=2,Cg=.16,B_=.05,H_=.05,F_=.15,Ny=5,ky=4,W_=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Sg(e){var t=e.r,n=e.g,r=e.b,o=nf(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function Ls(e){var t=e.r,n=e.g,r=e.b;return "#".concat(rf(t,n,r,!1))}function V_(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function wg(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-As*t:Math.round(e.h)+As*t:r=n?Math.round(e.h)+As*t:Math.round(e.h)-As*t,r<0?r+=360:r>=360&&(r-=360),r}function xg(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Cg*t:t===ky?r=e.s+Cg:r=e.s+B_*t,r>1&&(r=1),n&&t===Ny&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function $g(e,t,n){var r;return n?r=e.v+H_*t:r=e.v-F_*t,r>1&&(r=1),Number(r.toFixed(2))}function jr(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=mi(e),o=Ny;o>0;o-=1){var i=Sg(r),a=Ls(mi({h:wg(i,o,!0),s:xg(i,o,!0),v:$g(i,o,!0)}));n.push(a);}n.push(Ls(r));for(var s=1;s<=ky;s+=1){var l=Sg(r),c=Ls(mi({h:wg(l,s),s:xg(l,s),v:$g(l,s)}));n.push(c);}return t.theme==="dark"?W_.map(function(u){var d=u.index,f=u.opacity,h=Ls(V_(mi(t.backgroundColor||"#141414"),mi(n[d]),f*100));return h}):n}var Du={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"},ol={},zu={};Object.keys(Du).forEach(function(e){ol[e]=jr(Du[e]),ol[e].primary=ol[e][5],zu[e]=jr(Du[e],{theme:"dark",backgroundColor:"#141414"}),zu[e].primary=zu[e][5];});var U_=ol.blue;const K_=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Ay=K_;function G_(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 jm={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"},X_=Object.assign(Object.assign({},jm),{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}),as=X_;function Ly(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),f=n(o),h=n(i),v=n(a),g=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:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg: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:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Wt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const q_=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}},Y_=q_;function Z_(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},Y_(r))}const Mr=(e,t)=>new Wt(e).setAlpha(t).toRgbString(),sa=(e,t)=>new Wt(e).darken(t).toHexString(),Q_=e=>{const t=jr(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]}},J_=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:Mr(r,.88),colorTextSecondary:Mr(r,.65),colorTextTertiary:Mr(r,.45),colorTextQuaternary:Mr(r,.25),colorFill:Mr(r,.15),colorFillSecondary:Mr(r,.06),colorFillTertiary:Mr(r,.04),colorFillQuaternary:Mr(r,.02),colorBgLayout:sa(n,4),colorBgContainer:sa(n,0),colorBgElevated:sa(n,0),colorBgSpotlight:Mr(r,.85),colorBorder:sa(n,15),colorBorderSecondary:sa(n,6)}};function eT(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 tT=e=>{const t=eT(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]}},Dy=tT;function ss(e){const t=Object.keys(jm).map(n=>{const r=jr(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),Ly(e,{generateColorPalettes:Q_,generateNeutralColorPalettes:J_})),Dy(e.fontSize)),G_(e)),Ay(e)),Z_(e))}const zy=Ha(ss),$l={token:as,hashed:!0},jy=m.createContext($l);function ju(e){return e>=0&&e<=255}function Ds(e,t){const{r:n,g:r,b:o,a:i}=new Wt(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Wt(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),f=Math.round((o-l*(1-c))/c);if(ju(u)&&ju(d)&&ju(f))return new Wt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new Wt({r:n,g:r,b:o,a:1}).toRgbString()}var nT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Bm(e){const{override:t}=e,n=nT(e,["override"]),r=Object.assign({},t);Object.keys(as).forEach(f=>{delete r[f];});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 f="0s";o.motionDurationFast=f,o.motionDurationMid=f,o.motionDurationSlow=f;}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ds(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:Ds(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ds(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:Ds(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 Wt("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new Wt("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new Wt("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerLeft:` 6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerUp:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerDown:` 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Eg=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const By=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Eg(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Bm(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Eg(c,["theme"]);let f=d;u&&(f=By(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=f;}),a};function Kr(){const{token:e,hashed:t,theme:n,components:r}=m.useContext(jy),o=`${P_}-${t||""}`,i=n||zy,[a,s]=n_(i,[as,e],{salt:o,override:Object.assign({override:e},r),getComputedToken:By,formatToken:Bm});return [i,a,t?s:""]}const Hy="anticon",rT=(e,t)=>t||(e?`ant-${e}`:"ant"),nt=m__namespace.createContext({getPrefixCls:rT,iconPrefixCls:Hy}),oT=(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)),f=2*i-u,h=d,v=2*i-l,g=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 ${f} ${h} L ${v} ${g} 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"}}},Ao={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Mt=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Vo=()=>({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"}}),af=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),iT=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"}}}),aT=(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"}}}}},Lo=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Do=e=>({"&:focus-visible":Object.assign({},Lo(e))}),Fy=typeof CSSINJS_STATISTIC<"u";let sf=!0;function ft(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Fy)return Object.assign.apply(Object,[{}].concat(t));sf=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]});});}),sf=!0,r}function sT(){}function lT(e){let t,n=e,r=sT;return Fy&&(t=new Set,n=new Proxy(e,{get(o,i){return sf&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t);}),{token:n,keys:t,flush:r}}function Ut(e,t,n,r){return o=>{const[i,a,s]=Kr(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=m.useContext(nt),d=l(),f={theme:i,token:a,hashId:s,nonce:()=>u==null?void 0:u.nonce,clientOnly:r==null?void 0:r.clientOnly,order:-999};return ef(Object.assign(Object.assign({},f),{clientOnly:!1,path:["Shared",d]}),()=>[{"&":iT(a)}]),[ef(Object.assign(Object.assign({},f),{path:[e,o,c]}),()=>{const{token:h,flush:v}=lT(a),g=Object.assign({},a[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:C}=r;C.forEach($=>{let[x,w]=$;var O;(g!=null&&g[x]||g!=null&&g[w])&&((O=g[w])!==null&&O!==void 0||(g[w]=g==null?void 0:g[x]));});}const p=typeof n=="function"?n(ft(h,g??{})):n,b=Object.assign(Object.assign({},p),g),y=`.${o}`,S=ft(h,{componentCls:y,prefixCls:o,iconCls:`.${c}`,antCls:`.${d}`},b),E=t(S,{hashId:s,prefixCls:o,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:g});return v(e,b),[(r==null?void 0:r.resetStyle)===!1?null:aT(a,o),E]}),s]}}function Wy(e,t){return Fa.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 cT(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 Og="data-rc-order",uT="rc-util-key",lf=new Map;function Vy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):uT}function Oc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function dT(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Uy(e){return Array.from((lf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Ky(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(Og,dT(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=Oc(t),a=i.firstChild;if(r){if(r==="queue"){var s=Uy(i).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(Og))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,a);}else i.appendChild(o);return o}function Gy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Oc(t);return Uy(n).find(function(r){return r.getAttribute(Vy(t))===e})}function Ig(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Gy(e,t);if(n){var r=Oc(t);r.removeChild(n);}}function fT(e,t){var n=lf.get(e);if(!n||!cT(document,n)){var r=Ky("",t),o=r.parentNode;lf.set(e,o),e.removeChild(r);}}function Hm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Oc(n);fT(r,n);var o=Gy(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=Ky(e,n);return l.setAttribute(Vy(n),t),l}const mT=`-ant-${Date.now()}-${Math.random()}`;function hT(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 Wt(a),c=jr(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 Wt(t.primaryColor),s=jr(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 Wt(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 vT(e,t){const n=hT(e,t);er()&&Hm(n,`${mT}-dynamic-theme`);}const cf=m__namespace.createContext(!1),gT=e=>{let{children:t,disabled:n}=e;const r=m__namespace.useContext(cf);return m__namespace.createElement(cf.Provider,{value:n??r},t)},Pr=cf,uf=m__namespace.createContext(void 0),pT=e=>{let{children:t,size:n}=e;const r=m__namespace.useContext(uf);return m__namespace.createElement(uf.Provider,{value:n||r},t)},Ic=uf;function bT(){const e=m.useContext(Pr),t=m.useContext(Ic);return {componentDisabled:e,componentSize:t}}function yT(e,t){const n=e||{},r=n.inherit===!1||!t?$l:t;return is(()=>{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 !$c(a,l,!0)}))}function El(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ol(e){return El(e)?e:e instanceof m.Component?s0.findDOMNode(e):null}function Fm(e,t){typeof e=="function"?e(t):at(e)==="object"&&e&&"current"in e&&(e.current=t);}function Pn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(i){Fm(i,o);});}}function ls(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return is(function(){return Pn.apply(void 0,t)},t,function(r,o){return r.length===o.length&&r.every(function(i,a){return i===o[a]})})}function Uo(e){var t,n,r=mm.isMemo(e)?e.type.type:e.type;return !(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}var CT=["children"],Xy=m__namespace.createContext({});function ST(e){var t=e.children,n=Je(e,CT);return m__namespace.createElement(Xy.Provider,{value:n},t)}function df(e,t){return df=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},df(e,t)}function fo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&df(e,t);}function Il(e){return Il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Il(e)}function wT(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function ff(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xT(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 ff(e)}function mo(e){var t=wT();return function(){var r=Il(e),o;if(t){var i=Il(this).constructor;o=Reflect.construct(r,arguments,i);}else o=r.apply(this,arguments);return xT(this,o)}}var $T=function(e){fo(n,e);var t=mo(n);function n(){return Cn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(m__namespace.Component),Co="none",zs="appear",js="enter",Bs="leave",Pg="none",ar="prepare",yi="start",Ci="active",Wm="end",qy="prepared";function Rg(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 ET(e,t){var n={animationend:Rg("Animation","AnimationEnd"),transitionend:Rg("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var OT=ET(er(),typeof window<"u"?window:{}),Yy={};if(er()){var IT=document.createElement("div");Yy=IT.style;}var Hs={};function Zy(e){if(Hs[e])return Hs[e];var t=OT[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Yy)return Hs[e]=t[i],Hs[e]}return ""}var Qy=Zy("animationend"),Jy=Zy("transitionend"),e1=!!(Qy&&Jy),_g=Qy||"animationend",Tg=Jy||"transitionend";function Mg(e,t){if(!e)return null;if(at(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const PT=function(e){var t=m.useRef(),n=m.useRef(e);n.current=e;var r=m__namespace.useCallback(function(a){n.current(a);},[]);function o(a){a&&(a.removeEventListener(Tg,r),a.removeEventListener(_g,r));}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(Tg,r),a.addEventListener(_g,r),t.current=a);}return m__namespace.useEffect(function(){return function(){o(t.current);}},[]),[i,o]};var t1=er()?m.useLayoutEffect:m.useEffect,n1=function(t){return +setTimeout(t,16)},r1=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(n1=function(t){return window.requestAnimationFrame(t)},r1=function(t){return window.cancelAnimationFrame(t)});var Ng=0,Vm=new Map;function o1(e){Vm.delete(e);}var pt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ng+=1;var r=Ng;function o(i){if(i===0)o1(r),t();else {var a=n1(function(){o(i-1);});Vm.set(r,a);}}return o(n),r};pt.cancel=function(e){var t=Vm.get(e);return o1(t),r1(t)};const RT=function(){var e=m__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 m__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var _T=[ar,yi,Ci,Wm],TT=[ar,qy],i1=!1,MT=!0;function a1(e){return e===Ci||e===Wm}const NT=function(e,t,n){var r=Ro(Pg),o=G(r,2),i=o[0],a=o[1],s=RT(),l=G(s,2),c=l[0],u=l[1];function d(){a(ar,!0);}var f=t?TT:_T;return t1(function(){if(i!==Pg&&i!==Wm){var h=f.indexOf(i),v=f[h+1],g=n(i);g===i1?a(v,!0):v&&c(function(p){function b(){p.isCanceled()||a(v,!0);}g===!0?b():Promise.resolve(g).then(b);});}},[e,i]),m__namespace.useEffect(function(){return function(){u();}},[]),[d,i]};function kT(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,f=r.onAppearPrepare,h=r.onEnterPrepare,v=r.onLeavePrepare,g=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=Ro(),R=G(O,2),A=R[0],_=R[1],I=Ro(Co),P=G(I,2),T=P[0],N=P[1],M=Ro(null),L=G(M,2),z=L[0],H=L[1],W=m.useRef(!1),B=m.useRef(null);function V(){return n()}var j=m.useRef(!1);function K(){N(Co,!0),H(null,!0);}function te(fe){var me=V();if(!(fe&&!fe.deadline&&fe.target!==me)){var ye=j.current,Re;T===zs&&ye?Re=C==null?void 0:C(me,fe):T===js&&ye?Re=$==null?void 0:$(me,fe):T===Bs&&ye&&(Re=x==null?void 0:x(me,fe)),T!==Co&&ye&&Re!==!1&&K();}}var q=PT(te),U=G(q,1),X=U[0],oe=function(me){var ye,Re,He;switch(me){case zs:return ye={},Z(ye,ar,f),Z(ye,yi,g),Z(ye,Ci,y),ye;case js:return Re={},Z(Re,ar,h),Z(Re,yi,p),Z(Re,Ci,S),Re;case Bs:return He={},Z(He,ar,v),Z(He,yi,b),Z(He,Ci,E),He;default:return {}}},ue=m__namespace.useMemo(function(){return oe(T)},[T]),ve=NT(T,!e,function(fe){if(fe===ar){var me=ue[ar];return me?me(V()):i1}if(ce in ue){var ye;H(((ye=ue[ce])===null||ye===void 0?void 0:ye.call(ue,V(),null))||null);}return ce===Ci&&(X(V()),u>0&&(clearTimeout(B.current),B.current=setTimeout(function(){te({deadline:!0});},u))),ce===qy&&K(),MT}),re=G(ve,2),ae=re[0],ce=re[1],Y=a1(ce);j.current=Y,t1(function(){_(t);var fe=W.current;W.current=!0;var me;!fe&&t&&s&&(me=zs),fe&&t&&i&&(me=js),(fe&&!t&&c||!fe&&d&&!t&&c)&&(me=Bs);var ye=oe(me);me&&(e||ye[ar])?(N(me),ae()):N(Co);},[t]),m.useEffect(function(){(T===zs&&!s||T===js&&!i||T===Bs&&!c)&&N(Co);},[s,i,c]),m.useEffect(function(){return function(){W.current=!1,clearTimeout(B.current);}},[]);var ne=m__namespace.useRef(!1);m.useEffect(function(){A&&(ne.current=!0),A!==void 0&&T===Co&&((ne.current||A)&&(w==null||w(A)),ne.current=!0);},[A,T]);var J=z;return ue[ar]&&ce===yi&&(J=Q({transition:"none"},J)),[T,ce,J,A??t]}function AT(e){var t=e;at(e)==="object"&&(t=e.transitionSupport);function n(o,i){return !!(o.motionName&&t&&i!==!1)}var r=m__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,f=o.motionName,h=o.leavedClassName,v=o.eventProps,g=m__namespace.useContext(Xy),p=g.motion,b=n(o,p),y=m.useRef(),S=m.useRef();function E(){try{return y.current instanceof HTMLElement?y.current:Ol(S.current)}catch{return null}}var C=kT(b,s,E,o),$=G(C,4),x=$[0],w=$[1],O=$[2],R=$[3],A=m__namespace.useRef(R);R&&(A.current=!0);var _=m__namespace.useCallback(function(H){y.current=H,Fm(i,H);},[i]),I,P=Q(Q({},v),{},{visible:s});if(!d)I=null;else if(x===Co)R?I=d(Q({},P),_):!c&&A.current&&h?I=d(Q(Q({},P),{},{className:h}),_):u||!c&&!h?I=d(Q(Q({},P),{},{style:{display:"none"}}),_):I=null;else {var T,N;w===ar?N="prepare":a1(w)?N="active":w===yi&&(N="start");var M=Mg(f,"".concat(x,"-").concat(N));I=d(Q(Q({},P),{},{className:F(Mg(f,x),(T={},Z(T,M,M&&N),Z(T,f,typeof f=="string"),T)),style:O}),_);}if(m__namespace.isValidElement(I)&&Uo(I)){var L=I,z=L.ref;z||(I=m__namespace.cloneElement(I,{ref:_}));}return m__namespace.createElement($T,{ref:S},I)});return r.displayName="CSSMotion",r}const ho=AT(e1);var mf="add",hf="keep",vf="remove",Bu="removed";function LT(e){var t;return e&&at(e)==="object"&&"key"in e?t=e:t={key:e},Q(Q({},t),{},{key:String(t.key)})}function gf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(LT)}function DT(){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=gf(e),a=gf(t);i.forEach(function(c){for(var u=!1,d=r;d<o;d+=1){var f=a[d];if(f.key===c.key){r<d&&(n=n.concat(a.slice(r,d).map(function(h){return Q(Q({},h),{},{status:mf})})),r=d),n.push(Q(Q({},f),{},{status:hf})),r+=1,u=!0;break}}u||n.push(Q(Q({},c),{},{status:vf}));}),r<o&&(n=n.concat(a.slice(r).map(function(c){return Q(Q({},c),{},{status:mf})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1;});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==vf}),n.forEach(function(u){u.key===c&&(u.status=hf);});}),n}var zT=["component","children","onVisibleChanged","onAllRemoved"],jT=["status"],BT=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function HT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ho,n=function(r){fo(i,r);var o=mo(i);function i(){var a;Cn(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),Z(ff(a),"state",{keyEntities:[]}),Z(ff(a),"removeKey",function(u){var d=a.state.keyEntities,f=d.map(function(h){return h.key!==u?h:Q(Q({},h),{},{status:Bu})});return a.setState({keyEntities:f}),f.filter(function(h){var v=h.status;return v!==Bu}).length}),a}return Sn(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged,h=c.onAllRemoved,v=Je(c,zT),g=u||m__namespace.Fragment,p={};return BT.forEach(function(b){p[b]=v[b],delete v[b];}),delete v.keys,m__namespace.createElement(g,v,l.map(function(b){var y=b.status,S=Je(b,jT),E=y===mf||y===hf;return m__namespace.createElement(t,Oe({},p,{key:S.key,visible:E,eventProps:S,onVisibleChanged:function($){if(f==null||f($,{key:S.key}),!$){var x=s.removeKey(S.key);x===0&&h&&h();}}}),d)}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=gf(c),f=DT(u,d);return {keyEntities:f.filter(function(h){var v=u.find(function(g){var p=g.key;return h.key===p});return !(v&&v.status===Bu&&h.status===vf)})}}}]),i}(m__namespace.Component);return Z(n,"defaultProps",{component:"div"}),n}HT(e1);function FT(e){const{children:t}=e,[,n]=Kr(),{motion:r}=n,o=m__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?m__namespace.createElement(ST,{motion:r},t):t}const WT=(e,t)=>{const[n,r]=Kr();return ef({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Vo()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},VT=WT;var UT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const KT=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],GT="ant";let s1;function XT(){return s1||GT}function qT(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const YT=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(s1=t),r&&qT(r)&&vT(XT(),r);},ZT=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:f,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:g,parentContext:p,iconPrefixCls:b,theme:y,componentDisabled:S,segmented:E,statistic:C,spin:$,calendar:x,carousel:w,cascader:O,collapse:R,typography:A,checkbox:_,descriptions:I,divider:P,drawer:T,skeleton:N,steps:M,image:L,layout:z,list:H,mentions:W,modal:B,progress:V,result:j,slider:K,breadcrumb:te,menu:q,pagination:U,input:X,empty:oe,badge:ue,radio:ve,rate:re,switch:ae,transfer:ce,avatar:Y,message:ne,tag:J,table:fe,card:me,tabs:ye,timeline:Re,timePicker:He,upload:Te,notification:ie,tree:he,colorPicker:pe,datePicker:we,wave:De}=e,Ae=m__namespace.useCallback((ee,be)=>{const{prefixCls:_e}=e;if(be)return be;const Ye=_e||p.getPrefixCls("");return ee?`${Ye}-${ee}`:Ye},[p.getPrefixCls,e.prefixCls]),xe=b||p.iconPrefixCls||Hy,Ie=xe!==p.iconPrefixCls,Fe=n||p.csp,$e=VT(xe,Fe),Ne=yT(y,p.theme),tt={csp:Fe,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:h??f,popupOverflow:v,getPrefixCls:Ae,iconPrefixCls:xe,theme:Ne,segmented:E,statistic:C,spin:$,calendar:x,carousel:w,cascader:O,collapse:R,typography:A,checkbox:_,descriptions:I,divider:P,drawer:T,skeleton:N,steps:M,image:L,input:X,layout:z,list:H,mentions:W,modal:B,progress:V,result:j,slider:K,breadcrumb:te,menu:q,pagination:U,empty:oe,badge:ue,radio:ve,rate:re,switch:ae,transfer:ce,avatar:Y,message:ne,tag:J,table:fe,card:me,tabs:ye,timeline:Re,timePicker:He,upload:Te,notification:ie,tree:he,colorPicker:pe,datePicker:we,wave:De},ct=Object.assign({},p);Object.keys(tt).forEach(ee=>{tt[ee]!==void 0&&(ct[ee]=tt[ee]);}),KT.forEach(ee=>{const be=e[ee];be&&(ct[ee]=be);});const qe=is(()=>ct,ct,(ee,be)=>{const _e=Object.keys(ee),Ye=Object.keys(be);return _e.length!==Ye.length||_e.some(Le=>ee[Le]!==be[Le])}),ut=m__namespace.useMemo(()=>({prefixCls:xe,csp:Fe}),[xe,Fe]);let Pe=Ie?$e(t):t;const de=m__namespace.useMemo(()=>{var ee,be,_e,Ye;return g_(((ee=zr.Form)===null||ee===void 0?void 0:ee.defaultValidateMessages)||{},((_e=(be=qe.locale)===null||be===void 0?void 0:be.Form)===null||_e===void 0?void 0:_e.defaultValidateMessages)||{},((Ye=qe.form)===null||Ye===void 0?void 0:Ye.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[qe,a==null?void 0:a.validateMessages]);Object.keys(de).length>0&&(Pe=m__namespace.createElement(p_.Provider,{value:de},t)),s&&(Pe=m__namespace.createElement(I_,{locale:s,_ANT_MARK__:E_},Pe)),(xe||Fe)&&(Pe=m__namespace.createElement(Dm.Provider,{value:ut},Pe)),l&&(Pe=m__namespace.createElement(pT,{size:l},Pe)),Pe=m__namespace.createElement(FT,null,Pe);const Se=m__namespace.useMemo(()=>{const ee=Ne||{},{algorithm:be,token:_e,components:Ye}=ee,Le=UT(ee,["algorithm","token","components"]),ge=be&&(!Array.isArray(be)||be.length>0)?Ha(be):zy,Ee={};return Object.entries(Ye||{}).forEach(Me=>{let[ke,st]=Me;const et=Object.assign({},st);"algorithm"in et&&(et.algorithm===!0?et.theme=ge:(Array.isArray(et.algorithm)||typeof et.algorithm=="function")&&(et.theme=Ha(et.algorithm)),delete et.algorithm),Ee[ke]=et;}),Object.assign(Object.assign({},Le),{theme:ge,token:Object.assign(Object.assign({},as),_e),components:Ee})},[Ne]);return y&&(Pe=m__namespace.createElement(jy.Provider,{value:Se},Pe)),S!==void 0&&(Pe=m__namespace.createElement(gT,{disabled:S},Pe)),m__namespace.createElement(nt.Provider,{value:qe},Pe)},Zi=e=>{const t=m__namespace.useContext(nt),n=m__namespace.useContext(zm);return m__namespace.createElement(ZT,Object.assign({parentContext:t,legacyLocale:n},e))};Zi.ConfigContext=nt;Zi.SizeContext=Ic;Zi.config=YT;Zi.useConfig=bT;Object.defineProperty(Zi,"SizeContext",{get:()=>Ic});const Um=Zi;var l1=m__namespace.createContext(null),kg=[];function QT(e,t){var n=m__namespace.useState(function(){if(!er())return null;var v=document.createElement("div");return v}),r=G(n,1),o=r[0],i=m__namespace.useRef(!1),a=m__namespace.useContext(l1),s=m__namespace.useState(kg),l=G(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(v){u(function(g){var p=[v].concat(Qe(g));return p});});function f(){o.parentElement||document.body.appendChild(o),i.current=!0;}function h(){var v;(v=o.parentElement)===null||v===void 0||v.removeChild(o),i.current=!1;}return Ft(function(){return e?a?a(f):f():h(),h},[e]),Ft(function(){c.length&&(c.forEach(function(v){return v()}),u(kg));},[c]),[o,d]}var Hu;function JT(e){if(typeof document>"u")return 0;if(e||Hu===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),Hu=o-i;}return Hu}function eM(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var tM="rc-util-locker-".concat(Date.now()),Ag=0;function nM(e){var t=!!e,n=m__namespace.useState(function(){return Ag+=1,"".concat(tM,"_").concat(Ag)}),r=G(n,1),o=r[0];Ft(function(){if(t){var i=JT(),a=eM();Hm(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o);}else Ig(o);return function(){Ig(o);}},[t,o]);}var Lg=!1;function rM(e){return typeof e=="boolean"&&(Lg=e),Lg}var Dg=function(t){return t===!1?!1:!er()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},c1=m__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=m__namespace.useState(n),c=G(l,2),u=c[0],d=c[1],f=u||n;m__namespace.useEffect(function(){(a||n)&&d(n);},[n,a]);var h=m__namespace.useState(function(){return Dg(o)}),v=G(h,2),g=v[0],p=v[1];m__namespace.useEffect(function(){var A=Dg(o);p(A??null);});var b=QT(f&&!g),y=G(b,2),S=y[0],E=y[1],C=g??S;nM(r&&n&&er()&&(C===S||C===document.body));var $=null;if(s&&Uo(s)&&t){var x=s;$=x.ref;}var w=ls($,t);if(!f||!er()||g===void 0)return null;var O=C===!1||rM(),R=s;return t&&(R=m__namespace.cloneElement(s,{ref:w})),m__namespace.createElement(l1.Provider,{value:E},O?R:s0.createPortal(R,C))});function cr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return m.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(cr(r)):mm.isFragment(r)&&r.props?n=n.concat(cr(r.props.children,t)):n.push(r));}),n}var u1=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[];}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r]);},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1);},t.prototype.has=function(n){return !!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0);},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0]);}},t}()}(),pf=typeof window<"u"&&typeof document<"u"&&window.document===document,Pl=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),oM=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Pl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),iM=2;function aM(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s();}function a(){oM(i);}function s(){var l=Date.now();if(n){if(l-o<iM)return;r=!0;}else n=!0,r=!1,setTimeout(a,t);o=l;}return s}var sM=20,lM=["top","right","bottom","left","width","height","size","weight"],cM=typeof MutationObserver<"u",uM=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=aM(this.refresh.bind(this),sM);}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_();},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_();},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh();},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!pf||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),cM?(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(){!pf||!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=lM.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}(),d1=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0});}return e},_i=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Pl},f1=Pc(0,0,0,0);function Rl(e){return parseFloat(e)||0}function zg(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Rl(i)},0)}function dM(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Rl(a);}return n}function fM(e){var t=e.getBBox();return Pc(0,0,t.width,t.height)}function mM(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f1;var r=_i(e).getComputedStyle(e),o=dM(r),i=o.left+o.right,a=o.top+o.bottom,s=Rl(r.width),l=Rl(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=zg(r,"left","right")+i),Math.round(l+a)!==n&&(l-=zg(r,"top","bottom")+a)),!vM(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u);}return Pc(o.left,o.top,s,l)}var hM=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof _i(e).SVGGraphicsElement}:function(e){return e instanceof _i(e).SVGElement&&typeof e.getBBox=="function"}}();function vM(e){return e===_i(e).document.documentElement}function gM(e){return pf?hM(e)?fM(e):mM(e):f1}function pM(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return d1(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function Pc(e,t,n,r){return {x:e,y:t,width:n,height:r}}var bM=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Pc(0,0,0,0),this.target=t;}return e.prototype.isActive=function(){var t=gM(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),yM=function(){function e(t,n){var r=pM(n);d1(this,{target:t,contentRect:r});}return e}(),CM=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new u1,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r;}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof _i(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new bM(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 _i(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 yM(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}(),m1=typeof WeakMap<"u"?new WeakMap:new u1,h1=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=uM.getInstance(),r=new CM(t,n,this);m1.set(this,r);}return e}();["observe","unobserve","disconnect"].forEach(function(e){h1.prototype[e]=function(){var t;return (t=m1.get(this))[e].apply(t,arguments)};});var SM=function(){return typeof Pl.ResizeObserver<"u"?Pl.ResizeObserver:h1}(),io=new Map;function wM(e){e.forEach(function(t){var n,r=t.target;(n=io.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var v1=new SM(wM);function xM(e,t){io.has(e)||(io.set(e,new Set),v1.observe(e)),io.get(e).add(t);}function $M(e,t){io.has(e)&&(io.get(e).delete(t),io.get(e).size||(v1.unobserve(e),io.delete(e)));}var EM=function(e){fo(n,e);var t=mo(n);function n(){return Cn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(m__namespace.Component),bf=m__namespace.createContext(null);function OM(e){var t=e.children,n=e.onBatchResize,r=m__namespace.useRef(0),o=m__namespace.useRef([]),i=m__namespace.useContext(bf),a=m__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 m__namespace.createElement(bf.Provider,{value:a},t)}function IM(e,t){var n=e.children,r=e.disabled,o=m__namespace.useRef(null),i=m__namespace.useRef(null),a=m__namespace.useContext(bf),s=typeof n=="function",l=s?n(o):n,c=m__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&m__namespace.isValidElement(l)&&Uo(l),d=u?l.ref:null,f=m__namespace.useMemo(function(){return Pn(d,o)},[d,o]),h=function(){return Ol(o.current)||Ol(i.current)};m__namespace.useImperativeHandle(t,function(){return h()});var v=m__namespace.useRef(e);v.current=e;var g=m__namespace.useCallback(function(p){var b=v.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),R=Math.floor($);if(c.current.width!==O||c.current.height!==R||c.current.offsetWidth!==x||c.current.offsetHeight!==w){var A={width:O,height:R,offsetWidth:x,offsetHeight:w};c.current=A;var _=x===Math.round(C)?C:x,I=w===Math.round($)?$:w,P=Q(Q({},A),{},{offsetWidth:_,offsetHeight:I});a==null||a(P,p,S),y&&Promise.resolve().then(function(){y(P,p);});}},[]);return m__namespace.useEffect(function(){var p=h();return p&&!r&&xM(p,g),function(){return $M(p,g)}},[o.current,r]),m__namespace.createElement(EM,{ref:i},u?m__namespace.cloneElement(l,{ref:f}):l)}var PM=m__namespace.forwardRef(IM),RM="rc-observer-key";function _M(e,t){var n=e.children,r=typeof n=="function"?[n]:cr(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(RM,"-").concat(i);return m__namespace.createElement(PM,Oe({},e,{key:a,ref:i===0?t:void 0}),o)})}var Br=m__namespace.forwardRef(_M);Br.Collection=OM;function g1(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function TM(e){return g1(e)!==(e==null?void 0:e.ownerDocument)}function _l(e){return TM(e)?g1(e):null}function MM(){var e=Q({},m__namespace);return e.useId}var jg=0;function NM(e){var t=m__namespace.useState("ssr-id"),n=G(t,2),r=n[0],o=n[1],i=MM(),a=i==null?void 0:i();return m__namespace.useEffect(function(){if(!i){var s=jg;jg+=1,o("rc_unique_".concat(s));}},[]),e||a||r}const Rc=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 Bg=m__namespace.createContext(null);function Hg(e){return e?Array.isArray(e)?e:[e]:[]}function kM(e,t,n,r){return m__namespace.useMemo(function(){var o=Hg(n??t),i=Hg(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 Km=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 AM(){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 LM(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(AM((s=e[l])===null||s===void 0?void 0:s.points,o,r))return "".concat(t,"-placement-").concat(l)}return ""}function Fg(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function cs(e){return e.ownerDocument.defaultView}function yf(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=cs(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement;}return t}function Wa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function la(e){return Wa(parseFloat(e),0)}function Wg(e,t){var n=Q({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=cs(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,h=r.clientHeight,v=r.offsetWidth,g=r.clientWidth,p=la(s),b=la(l),y=la(c),S=la(u),E=Wa(Math.round(d.width/v*1e3)/1e3),C=Wa(Math.round(d.height/f*1e3)/1e3),$=(v-g-y-S)*E,x=(f-h-p-b)*C,w=p*C,O=b*C,R=y*E,A=S*E,_=0,I=0;if(i==="clip"){var P=la(a);_=P*E,I=P*C;}var T=d.x+R-_,N=d.y+w-I,M=T+d.width+2*_-R-A-$,L=N+d.height+2*I-w-O-x;n.left=Math.max(n.left,T),n.top=Math.max(n.top,N),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,L);}}),n}function Vg(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 Ug(e,t){var n=t||[],r=G(n,2),o=r[0],i=r[1];return [Vg(e.width,o),Vg(e.height,i)]}function Kg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function Jo(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 Qr(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 DM(e,t,n,r,o,i,a){var s=m__namespace.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=G(s,2),c=l[0],u=l[1],d=m__namespace.useRef(0),f=m__namespace.useMemo(function(){return t?yf(t):[]},[t]),h=m__namespace.useRef({}),v=function(){h.current={};};e||v();var g=Mn(function(){if(t&&n&&e){let Yt=function(Zo,Yr){var Zr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fe,oa=z.x+Zo,Rs=z.y+Yr,Su=oa+U,wu=Rs+q,xu=Math.max(oa,Zr.left),Ve=Math.max(Rs,Zr.top),lt=Math.min(Su,Zr.right),At=Math.min(wu,Zr.bottom);return Math.max(0,(lt-xu)*(At-Ve))},bo=function(){Ge=z.y+be,Ze=Ge+q,Ue=z.x+ee,mt=Ue+U;};var y,S,E=t,C=E.ownerDocument,$=cs(E),x=$.getComputedStyle(E),w=x.width,O=x.height,R=x.position,A=E.style.left,_=E.style.top,I=E.style.right,P=E.style.bottom,T=Q(Q({},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=R,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 M;if(Array.isArray(n))M={x:n[0],y:n[1],width:0,height:0};else {var L=n.getBoundingClientRect();M={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,K=H.scrollTop,te=H.scrollLeft,q=z.height,U=z.width,X=M.height,oe=M.width,ue={left:0,top:0,right:W,bottom:B},ve={left:-te,top:-K,right:V-te,bottom:j-K},re=T.htmlRegion,ae="visible",ce="visibleFirst";re!=="scroll"&&re!==ce&&(re=ae);var Y=re===ce,ne=Wg(ve,f),J=Wg(ue,f),fe=re===ae?J:ne,me=Y?J:fe;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var ye=E.getBoundingClientRect();E.style.left=A,E.style.top=_,E.style.right=I,E.style.bottom=P,(S=E.parentElement)===null||S===void 0||S.removeChild(N);var Re=Wa(Math.round(U/parseFloat(w)*1e3)/1e3),He=Wa(Math.round(q/parseFloat(O)*1e3)/1e3);if(Re===0||He===0||El(n)&&!Km(n))return;var Te=T.offset,ie=T.targetOffset,he=Ug(z,Te),pe=G(he,2),we=pe[0],De=pe[1],Ae=Ug(M,ie),xe=G(Ae,2),Ie=xe[0],Fe=xe[1];M.x-=Ie,M.y-=Fe;var $e=T.points||[],Ne=G($e,2),tt=Ne[0],ct=Ne[1],qe=Kg(ct),ut=Kg(tt),Pe=Jo(M,qe),de=Jo(z,ut),Se=Q({},T),ee=Pe.x-de.x+we,be=Pe.y-de.y+De,_e=Yt(ee,be),Ye=Yt(ee,be,J),Le=Jo(M,["t","l"]),ge=Jo(z,["t","l"]),Ee=Jo(M,["b","r"]),Me=Jo(z,["b","r"]),ke=T.overflow||{},st=ke.adjustX,et=ke.adjustY,St=ke.shiftX,Bt=ke.shiftY,Ht=function(Yr){return typeof Yr=="boolean"?Yr:Yr>=0},Ge,Ze,Ue,mt;bo();var ht=Ht(et),_t=ut[0]===qe[0];if(ht&&ut[0]==="t"&&(Ze>me.bottom||h.current.bt)){var Xe=be;_t?Xe-=q-X:Xe=Le.y-Me.y-De;var We=Yt(ee,Xe),dt=Yt(ee,Xe,J);We>_e||We===_e&&(!Y||dt>=Ye)?(h.current.bt=!0,be=Xe,De=-De,Se.points=[Qr(ut,0),Qr(qe,0)]):h.current.bt=!1;}if(ht&&ut[0]==="b"&&(Ge<me.top||h.current.tb)){var Et=be;_t?Et+=q-X:Et=Ee.y-ge.y-De;var en=Yt(ee,Et),Nt=Yt(ee,Et,J);en>_e||en===_e&&(!Y||Nt>=Ye)?(h.current.tb=!0,be=Et,De=-De,Se.points=[Qr(ut,0),Qr(qe,0)]):h.current.tb=!1;}var cn=Ht(st),hr=ut[1]===qe[1];if(cn&&ut[1]==="l"&&(mt>me.right||h.current.rl)){var nr=ee;hr?nr-=U-oe:nr=Le.x-Me.x-we;var Xr=Yt(nr,be),vo=Yt(nr,be,J);Xr>_e||Xr===_e&&(!Y||vo>=Ye)?(h.current.rl=!0,ee=nr,we=-we,Se.points=[Qr(ut,1),Qr(qe,1)]):h.current.rl=!1;}if(cn&&ut[1]==="r"&&(Ue<me.left||h.current.lr)){var wn=ee;hr?wn+=U-oe:wn=Ee.x-ge.x-we;var _n=Yt(wn,be),go=Yt(wn,be,J);_n>_e||_n===_e&&(!Y||go>=Ye)?(h.current.lr=!0,ee=wn,we=-we,Se.points=[Qr(ut,1),Qr(qe,1)]):h.current.lr=!1;}bo();var An=St===!0?0:St;typeof An=="number"&&(Ue<J.left&&(ee-=Ue-J.left-we,M.x+oe<J.left+An&&(ee+=M.x-J.left+oe-An)),mt>J.right&&(ee-=mt-J.right-we,M.x>J.right-An&&(ee+=M.x-J.right+An)));var xn=Bt===!0?0:Bt;typeof xn=="number"&&(Ge<J.top&&(be-=Ge-J.top-De,M.y+X<J.top+xn&&(be+=M.y-J.top+X-xn)),Ze>J.bottom&&(be-=Ze-J.bottom-De,M.y>J.bottom-xn&&(be+=M.y-J.bottom+xn)));var Tn=z.x+ee,Rr=Tn+U,Vn=z.y+be,Un=Vn+q,qr=M.x,po=qr+oe,Ot=M.y,vt=Ot+X,je=Math.max(Tn,qr),Be=Math.min(Rr,po),bt=(je+Be)/2,kt=bt-Tn,It=Math.max(Vn,Ot),tn=Math.min(Un,vt),$n=(It+tn)/2,_r=$n-Vn;a==null||a(t,Se);var Kn=ye.right-z.x-(ee+z.width),En=ye.bottom-z.y-(be+z.height);u({ready:!0,offsetX:ee/Re,offsetY:be/He,offsetR:Kn/Re,offsetB:En/He,arrowX:kt/Re,arrowY:_r/He,scaleX:Re,scaleY:He,align:Se});}}),p=function(){d.current+=1;var S=d.current;Promise.resolve().then(function(){d.current===S&&g();});},b=function(){u(function(S){return Q(Q({},S),{},{ready:!1})});};return Ft(b,[r]),Ft(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){Ft(function(){if(e&&t&&n){let d=function(){r(),o();};var i=t,a=n,s=yf(i),l=yf(a),c=cs(a),u=new Set([c].concat(Qe(s),Qe(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0});}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d);});}}},[e,t,n]);}function jM(e,t,n,r,o,i,a,s){var l=m__namespace.useRef(e),c=m__namespace.useRef(!1);l.current!==e&&(c.current=!0,l.current=e),m__namespace.useEffect(function(){var u=pt(function(){c.current=!1;});return function(){pt.cancel(u);}},[e]),m__namespace.useEffect(function(){if(t&&r&&(!o||i)){var u=function(){var $=!1,x=function(R){var A=R.target;$=a(A);},w=function(R){var A=R.target;!c.current&&l.current&&!$&&!a(A)&&s(!1);};return [x,w]},d=u(),f=G(d,2),h=f[0],v=f[1],g=u(),p=G(g,2),b=p[0],y=p[1],S=cs(r);S.addEventListener("mousedown",h,!0),S.addEventListener("click",v,!0),S.addEventListener("contextmenu",v,!0);var E=_l(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",v,!0),S.removeEventListener("contextmenu",v,!0),E&&(E.removeEventListener("mousedown",b,!0),E.removeEventListener("click",y,!0),E.removeEventListener("contextmenu",y,!0));}}},[t,n,r,o,i]);}function BM(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,f=m__namespace.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var v=n.points[0],g=n.points[1],p=v[0],b=v[1],y=g[0],S=g[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 m__namespace.createElement("div",{ref:f,className:F("".concat(t,"-arrow"),a),style:h},s)}function HM(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?m__namespace.createElement(ho,Oe({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return m__namespace.createElement("div",{style:{zIndex:r},className:F("".concat(t,"-mask"),s)})}):null}var FM=m__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),WM=m__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,f=e.arrow,h=e.arrowPos,v=e.align,g=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,R=e.offsetX,A=e.offsetY,_=e.offsetR,I=e.offsetB,P=e.onAlign,T=e.onPrepare,N=e.stretch,M=e.targetWidth,L=e.targetHeight,z=typeof n=="function"?n():n,H=l||c,W=(y==null?void 0:y.length)>0,B=m__namespace.useState(!y||!W),V=G(B,2),j=V[0],K=V[1];if(Ft(function(){!j&&W&&a&&K(!0);},[j,W,a]),!j)return null;var te="auto",q={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(O||!l){var U=v.points,X=v._experimental,oe=X==null?void 0:X.dynamicInset,ue=oe&&U[0][1]==="r",ve=oe&&U[0][0]==="b";ue?(q.right=_,q.left=te):(q.left=R,q.right=te),ve?(q.bottom=I,q.top=te):(q.top=A,q.bottom=te);}var re={};return N&&(N.includes("height")&&L?re.height=L:N.includes("minHeight")&&L&&(re.minHeight=L),N.includes("width")&&M?re.width=M:N.includes("minWidth")&&M&&(re.minWidth=M)),l||(re.pointerEvents="none"),m__namespace.createElement(E,{open:b||H,getContainer:y&&function(){return y(a)},autoDestroy:S},m__namespace.createElement(HM,{prefixCls:o,open:l,zIndex:C,mask:d,motion:p}),m__namespace.createElement(Br,{onResize:P,disabled:!l},function(ae){return m__namespace.createElement(ho,Oe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:T,onEnterPrepare:T,visible:l,onVisibleChanged:function(Y){var ne;g==null||(ne=g.onVisibleChanged)===null||ne===void 0||ne.call(g,Y),s(Y);}}),function(ce,Y){var ne=ce.className,J=ce.style,fe=F(o,ne,r);return m__namespace.createElement("div",{ref:Pn(ae,t,Y),className:fe,style:Q(Q(Q(Q({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},q),re),J),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:$,onMouseLeave:x,onPointerEnter:w,onClick:u},f&&m__namespace.createElement(BM,{prefixCls:o,arrow:f,arrowPos:h,align:v}),m__namespace.createElement(FM,{cache:!l},z))})}))}),VM=m__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Uo(n),i=m__namespace.useCallback(function(s){Fm(t,r?r(s):s);},[r]),a=ls(i,n.ref);return o?m__namespace.cloneElement(n,{ref:a}):n}),UM=["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 KM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c1,t=m__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,f=n.defaultPopupVisible,h=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,g=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,R=n.destroyPopupOnHide,A=n.popup,_=n.popupClassName,I=n.popupStyle,P=n.popupPlacement,T=n.builtinPlacements,N=T===void 0?{}:T,M=n.popupAlign,L=n.zIndex,z=n.stretch,H=n.getPopupClassNameFromAlign,W=n.alignPoint,B=n.onPopupClick,V=n.onPopupAlign,j=n.arrow,K=n.popupMotion,te=n.maskMotion,q=n.popupTransitionName,U=n.popupAnimation,X=n.maskTransitionName,oe=n.maskAnimation,ue=n.className,ve=n.getTriggerDOMNode,re=Je(n,UM),ae=O||R||!1,ce=m__namespace.useState(!1),Y=G(ce,2),ne=Y[0],J=Y[1];Ft(function(){J(Rc());},[]);var fe=m__namespace.useRef({}),me=m__namespace.useContext(Bg),ye=m__namespace.useMemo(function(){return {registerSubPopup:function(lt,At){fe.current[lt]=At,me==null||me.registerSubPopup(lt,At);}}},[me]),Re=NM(),He=m__namespace.useState(null),Te=G(He,2),ie=Te[0],he=Te[1],pe=Mn(function(Ve){El(Ve)&&ie!==Ve&&he(Ve),me==null||me.registerSubPopup(Re,Ve);}),we=m__namespace.useState(null),De=G(we,2),Ae=De[0],xe=De[1],Ie=Mn(function(Ve){El(Ve)&&Ae!==Ve&&xe(Ve);}),Fe=m__namespace.Children.only(a),$e=(Fe==null?void 0:Fe.props)||{},Ne={},tt=Mn(function(Ve){var lt,At,Kt=Ae;return (Kt==null?void 0:Kt.contains(Ve))||((lt=_l(Kt))===null||lt===void 0?void 0:lt.host)===Ve||Ve===Kt||(ie==null?void 0:ie.contains(Ve))||((At=_l(ie))===null||At===void 0?void 0:At.host)===Ve||Ve===ie||Object.values(fe.current).some(function(Gt){return (Gt==null?void 0:Gt.contains(Ve))||Ve===Gt})}),ct=Fg(i,K,U,q),qe=Fg(i,te,oe,X),ut=m__namespace.useState(f||!1),Pe=G(ut,2),de=Pe[0],Se=Pe[1],ee=d??de,be=Mn(function(Ve){d===void 0&&Se(Ve);});Ft(function(){Se(d||!1);},[d]);var _e=m__namespace.useRef(ee);_e.current=ee;var Ye=Mn(function(Ve){s0.flushSync(function(){ee!==Ve&&(be(Ve),h==null||h(Ve));});}),Le=m__namespace.useRef(),ge=function(){clearTimeout(Le.current);},Ee=function(lt){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ge(),At===0?Ye(lt):Le.current=setTimeout(function(){Ye(lt);},At*1e3);};m__namespace.useEffect(function(){return ge},[]);var Me=m__namespace.useState(!1),ke=G(Me,2),st=ke[0],et=ke[1];Ft(function(Ve){(!Ve||ee)&&et(!0);},[ee]);var St=m__namespace.useState(null),Bt=G(St,2),Ht=Bt[0],Ge=Bt[1],Ze=m__namespace.useState([0,0]),Ue=G(Ze,2),mt=Ue[0],ht=Ue[1],_t=function(lt){ht([lt.clientX,lt.clientY]);},Xe=DM(ee,ie,W?mt:Ae,P,N,M,V),We=G(Xe,11),dt=We[0],Et=We[1],en=We[2],Nt=We[3],cn=We[4],hr=We[5],nr=We[6],Xr=We[7],vo=We[8],wn=We[9],_n=We[10],go=kM(ne,l,c,u),An=G(go,2),xn=An[0],Tn=An[1],Rr=xn.has("click"),Vn=Tn.has("click")||Tn.has("contextMenu"),Un=Mn(function(){st||_n();}),qr=function(){_e.current&&W&&Vn&&Ee(!1);};zM(ee,Ae,ie,Un,qr),Ft(function(){Un();},[mt,P]),Ft(function(){ee&&!(N!=null&&N[P])&&Un();},[JSON.stringify(M)]);var po=m__namespace.useMemo(function(){var Ve=LM(N,i,wn,W);return F(Ve,H==null?void 0:H(wn))},[wn,H,N,i,W]);m__namespace.useImperativeHandle(r,function(){return {forceAlign:Un}});var Ot=function(lt){et(!1),_n(),v==null||v(lt);},vt=function(){return new Promise(function(lt){Ge(function(){return lt});})};Ft(function(){Ht&&(_n(),Ht(),Ge(null));},[Ht]);var je=m__namespace.useState(0),Be=G(je,2),bt=Be[0],kt=Be[1],It=m__namespace.useState(0),tn=G(It,2),$n=tn[0],_r=tn[1],Kn=function(lt,At){if(Un(),z){var Kt=At.getBoundingClientRect();kt(Kt.width),_r(Kt.height);}};function En(Ve,lt,At,Kt){Ne[Ve]=function(Gt){var _s;Kt==null||Kt(Gt),Ee(lt,At);for(var $u=arguments.length,Sv=new Array($u>1?$u-1:0),Ts=1;Ts<$u;Ts++)Sv[Ts-1]=arguments[Ts];(_s=$e[Ve])===null||_s===void 0||_s.call.apply(_s,[$e,Gt].concat(Sv));};}(Rr||Vn)&&(Ne.onClick=function(Ve){var lt;_e.current&&Vn?Ee(!1):!_e.current&&Rr&&(_t(Ve),Ee(!0));for(var At=arguments.length,Kt=new Array(At>1?At-1:0),Gt=1;Gt<At;Gt++)Kt[Gt-1]=arguments[Gt];(lt=$e.onClick)===null||lt===void 0||lt.call.apply(lt,[$e,Ve].concat(Kt));}),jM(ee,Vn,Ae,ie,E,$,tt,Ee);var Yt=xn.has("hover"),bo=Tn.has("hover"),Zo,Yr;Yt&&(En("onMouseEnter",!0,g,function(Ve){_t(Ve);}),En("onPointerEnter",!0,g,function(Ve){_t(Ve);}),Zo=function(){(ee||st)&&Ee(!0,g);},W&&(Ne.onMouseMove=function(Ve){var lt;(lt=$e.onMouseMove)===null||lt===void 0||lt.call($e,Ve);})),bo&&(En("onMouseLeave",!1,b),En("onPointerLeave",!1,b),Yr=function(){Ee(!1,b);}),xn.has("focus")&&En("onFocus",!0,y),Tn.has("focus")&&En("onBlur",!1,S),xn.has("contextMenu")&&(Ne.onContextMenu=function(Ve){var lt;_e.current&&Tn.has("contextMenu")?Ee(!1):(_t(Ve),Ee(!0)),Ve.preventDefault();for(var At=arguments.length,Kt=new Array(At>1?At-1:0),Gt=1;Gt<At;Gt++)Kt[Gt-1]=arguments[Gt];(lt=$e.onContextMenu)===null||lt===void 0||lt.call.apply(lt,[$e,Ve].concat(Kt));}),ue&&(Ne.className=F($e.className,ue));var Zr=Q(Q({},$e),Ne),oa={},Rs=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Rs.forEach(function(Ve){re[Ve]&&(oa[Ve]=function(){for(var lt,At=arguments.length,Kt=new Array(At),Gt=0;Gt<At;Gt++)Kt[Gt]=arguments[Gt];(lt=Zr[Ve])===null||lt===void 0||lt.call.apply(lt,[Zr].concat(Kt)),re[Ve].apply(re,Kt);});});var Su=m__namespace.cloneElement(Fe,Q(Q({},Zr),oa)),wu={x:hr,y:nr},xu=j?Q({},j!==!0?j:{}):null;return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(Br,{disabled:!ee,ref:Ie,onResize:Kn},m__namespace.createElement(VM,{getTriggerDOMNode:ve},Su)),m__namespace.createElement(Bg.Provider,{value:ye},m__namespace.createElement(WM,{portal:e,ref:pe,prefixCls:i,popup:A,className:F(_,po),style:I,target:Ae,onMouseEnter:Zo,onMouseLeave:Yr,onPointerEnter:Zo,zIndex:L,open:ee,keepDom:st,onClick:B,mask:E,motion:ct,maskMotion:qe,onVisibleChanged:Ot,onPrepare:vt,forceRender:w,autoDestroy:ae,getPopupContainer:x,align:wn,arrow:xu,arrowPos:wu,ready:dt,offsetX:Et,offsetY:en,offsetR:Nt,offsetB:cn,onAlign:Un,stretch:z,targetWidth:bt/Xr,targetHeight:$n/vo})))});return t}const _c=KM(c1);var ei={shiftX:64,adjustY:1},ti={adjustX:1,shiftY:!0},Gn=[0,0],XM={left:{points:["cr","cl"],overflow:ti,offset:[-4,0],targetOffset:Gn},right:{points:["cl","cr"],overflow:ti,offset:[4,0],targetOffset:Gn},top:{points:["bc","tc"],overflow:ei,offset:[0,-4],targetOffset:Gn},bottom:{points:["tc","bc"],overflow:ei,offset:[0,4],targetOffset:Gn},topLeft:{points:["bl","tl"],overflow:ei,offset:[0,-4],targetOffset:Gn},leftTop:{points:["tr","tl"],overflow:ti,offset:[-4,0],targetOffset:Gn},topRight:{points:["br","tr"],overflow:ei,offset:[0,-4],targetOffset:Gn},rightTop:{points:["tl","tr"],overflow:ti,offset:[4,0],targetOffset:Gn},bottomRight:{points:["tr","br"],overflow:ei,offset:[0,4],targetOffset:Gn},rightBottom:{points:["bl","br"],overflow:ti,offset:[4,0],targetOffset:Gn},bottomLeft:{points:["tl","bl"],overflow:ei,offset:[0,4],targetOffset:Gn},leftBottom:{points:["br","bl"],overflow:ti,offset:[-4,0],targetOffset:Gn}};function Gm(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return m__namespace.createElement("div",{className:F("".concat(n,"-content"),i),style:a},m__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var qM=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],YM=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,h=t.children,v=t.onVisibleChange,g=t.afterVisibleChange,p=t.transitionName,b=t.animation,y=t.motion,S=t.placement,E=S===void 0?"right":S,C=t.align,$=C===void 0?{}:C,x=t.destroyTooltipOnHide,w=x===void 0?!1:x,O=t.defaultVisible,R=t.getTooltipContainer,A=t.overlayInnerStyle;t.arrowContent;var _=t.overlay,I=t.id,P=t.showArrow,T=P===void 0?!0:P,N=Je(t,qM),M=m.useRef(null);m.useImperativeHandle(n,function(){return M.current});var L=Q({},N);"visible"in t&&(L.popupVisible=t.visible);var z=function(){return m__namespace.createElement(Gm,{key:"content",prefixCls:f,id:I,overlayInnerStyle:A},_)};return m__namespace.createElement(_c,Oe({popupClassName:r,prefixCls:f,popup:z,action:i,builtinPlacements:XM,popupPlacement:E,ref:M,popupAlign:$,getPopupContainer:R,onPopupVisibleChange:v,afterPopupVisibleChange:g,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:O,autoDestroy:w,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:T},L),h)};const ZM=m.forwardRef(YM),Fu=()=>({height:0,opacity:0}),Gg=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},QM=e=>({height:e?e.offsetHeight:0}),Wu=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",p1=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Fu,onEnterStart:Fu,onAppearActive:Gg,onEnterActive:Gg,onLeaveStart:QM,onLeaveActive:Fu,onAppearEnd:Wu,onEnterEnd:Wu,onLeaveEnd:Wu,motionDeadline:500}},Tc=(e,t,n)=>n!==void 0?n:`${e}-${t}`,b1=8;function Xm(e){const t=b1,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function Fs(e,t){return e?t:{}}function qm(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:f,dropdownArrowOffset:h}=Xm({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"},oT(r,o,i,s,a)),{"&:before":{background:s}})]},Fs(!!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}}})),Fs(!!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}}})),Fs(!!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:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f}})),Fs(!!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:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f}}))}}function JM(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 Xg={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"]}},eN={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"]}},tN=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function y1(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(Xg).forEach(c=>{const u=r&&eN[c]||Xg[c],d=Object.assign(Object.assign({},u),{offset:[0,0]});switch(l[c]=d,tN.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 f=Xm({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-f.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":d.offset[0]=f.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":d.offset[1]=-f.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":d.offset[1]=f.dropdownArrowOffset+s;break}d.overflow=JM(c,f,t,n),a&&(d.htmlRegion="visibleFirst");}),l}const{isValidElement:Hr}=m__namespace;function C1(e){return e&&Hr(e)&&e.type===m__namespace.Fragment}function nN(e,t,n){return Hr(e)?m__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Hn(e,t){return nN(e,e,t)}const rN=e=>{const t=m.useContext(Ic);return m.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Wn=rN,oN=e=>{const{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},iN=oN,aN=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"}}}},S1=Ut("Space",e=>[aN(e),iN(e)],()=>({}),{resetStyle:!1});var w1=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Mc=m__namespace.createContext(null),Qi=(e,t)=>{const n=m__namespace.useContext(Mc),r=m__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}},Ti=e=>{let{children:t}=e;return m__namespace.createElement(Mc.Provider,{value:null},t)},sN=e=>{var{children:t}=e,n=w1(e,["children"]);return m__namespace.createElement(Mc.Provider,{value:n},t)},lN=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(nt),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=w1(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Wn(S=>r??S),f=t("space-compact",a),[h,v]=S1(f),g=F(f,v,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:i,[`${f}-vertical`]:o==="vertical"},s,l),p=m__namespace.useContext(Mc),b=cr(c),y=m__namespace.useMemo(()=>b.map((S,E)=>{const C=S&&S.key||`${f}-item-${E}`;return m__namespace.createElement(sN,{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(m__namespace.createElement("div",Object.assign({className:g},u),y))},cN=lN,uN=e=>{const t=e!=null&&e.algorithm?Ha(e.algorithm):Ha(ss),n=Object.assign(Object.assign({},as),e==null?void 0:e.token);return $y(n,{override:e==null?void 0:e.token},t,Bm)},dN=uN;function fN(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 mN=(e,t)=>{const n=t??ss(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),fN(t??e)),Dy(r)),{controlHeight:o}),Ay(Object.assign(Object.assign({},n),{controlHeight:o})))},hN=mN,Jr=(e,t)=>new Wt(e).setAlpha(t).toRgbString(),ni=(e,t)=>new Wt(e).lighten(t).toHexString(),vN=e=>{const t=jr(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]}},gN=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:Jr(r,.85),colorTextSecondary:Jr(r,.65),colorTextTertiary:Jr(r,.45),colorTextQuaternary:Jr(r,.25),colorFill:Jr(r,.18),colorFillSecondary:Jr(r,.12),colorFillTertiary:Jr(r,.08),colorFillQuaternary:Jr(r,.04),colorBgElevated:ni(n,12),colorBgContainer:ni(n,8),colorBgLayout:ni(n,0),colorBgSpotlight:ni(n,26),colorBorder:ni(n,26),colorBorderSecondary:ni(n,19)}},pN=(e,t)=>{const n=Object.keys(jm).map(o=>{const i=jr(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??ss(e);return Object.assign(Object.assign(Object.assign({},r),n),Ly(e,{generateColorPalettes:vN,generateNeutralColorPalettes:gN}))},bN=pN;function yN(){const[e,t,n]=Kr();return {theme:e,token:t,hashId:n}}const Mi={defaultConfig:$l,defaultSeed:$l.token,useToken:yN,defaultAlgorithm:ss,darkAlgorithm:bN,compactAlgorithm:hN,getDesignToken:dN},CN=e=>({animationDuration:e,animationFillMode:"both"}),SN=e=>({animationDuration:e,animationFillMode:"both"}),Ym=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({},CN(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},SN(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"}}},wN=new Rt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xN=new Rt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),$N=new Rt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),EN=new Rt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ON=new Rt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),IN=new Rt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),PN=new Rt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),RN=new Rt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),_N={"move-up":{inKeyframes:PN,outKeyframes:RN},"move-down":{inKeyframes:wN,outKeyframes:xN},"move-left":{inKeyframes:$N,outKeyframes:EN},"move-right":{inKeyframes:ON,outKeyframes:IN}},Tl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=_N[t];return [Ym(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Zm=new Rt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Qm=new Rt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Jm=new Rt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),eh=new Rt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),TN=new Rt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),MN=new Rt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),NN=new Rt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),kN=new Rt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),AN={"slide-up":{inKeyframes:Zm,outKeyframes:Qm},"slide-down":{inKeyframes:Jm,outKeyframes:eh},"slide-left":{inKeyframes:TN,outKeyframes:MN},"slide-right":{inKeyframes:NN,outKeyframes:kN}},uo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=AN[t];return [Ym(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}}]},LN=new Rt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),DN=new Rt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),qg=new Rt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Yg=new Rt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),zN=new Rt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),jN=new Rt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),BN=new Rt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),HN=new Rt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),FN=new Rt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),WN=new Rt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),VN=new Rt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),UN=new Rt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),KN={zoom:{inKeyframes:LN,outKeyframes:DN},"zoom-big":{inKeyframes:qg,outKeyframes:Yg},"zoom-big-fast":{inKeyframes:qg,outKeyframes:Yg},"zoom-left":{inKeyframes:BN,outKeyframes:HN},"zoom-right":{inKeyframes:FN,outKeyframes:WN},"zoom-up":{inKeyframes:zN,outKeyframes:jN},"zoom-down":{inKeyframes:VN,outKeyframes:UN}},Nc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=KN[t];return [Ym(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}}]},GN=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`}}}),x1=GN,XN=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({},Mt(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,b1)}},[`${t}-content`]:{position:"relative"}}),Wy(e,(f,h)=>{let{darkColor:v}=h;return {[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},qm(ft(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},$1=(e,t)=>Ut("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:s}=r,l=ft(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return [XN(l),Nc(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return {zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),qN=Fa.map(e=>`${e}-inverse`),YN=["success","processing","error","default","warning"];function E1(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Qe(qN),Qe(Fa)).includes(e):Fa.includes(e)}function ZN(e){return YN.includes(e)}function O1(e,t){const n=E1(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 QN=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=m__namespace.useContext(nt),l=s("tooltip",t),[c,u]=$1(l,!0),d=O1(l,i),f=d.arrowStyle,h=Object.assign(Object.assign({},a),d.overlayStyle),v=F(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(m__namespace.createElement("div",{className:v,style:f},m__namespace.createElement("div",{className:`${l}-arrow`}),m__namespace.createElement(Gm,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))},JN=QN;var e3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const{useToken:t3}=Mi,n3=(e,t)=>{const n={},r=Object.assign({},e);return t.forEach(o=>{e&&o in e&&(n[o]=e[o],delete r[o]);}),{picked:n,omitted:r}};function r3(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}=n3(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=Hn(e,{style:a,className:null});return m__namespace.createElement("span",{style:i,className:F(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const I1=m__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:f,destroyTooltipOnHide:h,arrow:v=!0,title:g,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:S=!0}=e,E=!!v,{token:C}=t3(),{getPopupContainer:$,getPrefixCls:x,direction:w}=m__namespace.useContext(nt),O=m__namespace.useRef(null),R=()=>{var J;(J=O.current)===null||J===void 0||J.forceAlign();};m__namespace.useImperativeHandle(t,()=>({forceAlign:R,forcePopupAlign:()=>{R();}}));const[A,_]=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=!g&&!p&&g!==0,P=J=>{var fe,me;_(I?!1:J),I||((fe=e.onOpenChange)===null||fe===void 0||fe.call(e,J),(me=e.onVisibleChange)===null||me===void 0||me.call(e,J));},T=m__namespace.useMemo(()=>{var J,fe;let me=y;return typeof v=="object"&&(me=(fe=(J=v.pointAtCenter)!==null&&J!==void 0?J:v.arrowPointAtCenter)!==null&&fe!==void 0?fe:y),b||y1({arrowPointAtCenter:me,autoAdjustOverflow:S,arrowWidth:E?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[y,v,b,C]),N=m__namespace.useMemo(()=>g===0?g:p||g||"",[p,g]),M=m__namespace.createElement(Ti,null,typeof N=="function"?N():N),{getPopupContainer:L,placement:z="top",mouseEnterDelay:H=.1,mouseLeaveDelay:W=.1,overlayStyle:B,rootClassName:V}=e,j=e3(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),K=x("tooltip",o),te=x(),q=e["data-popover-inject"];let U=A;!("open"in e)&&!("visible"in e)&&I&&(U=!1);const X=r3(Hr(u)&&!C1(u)?u:m__namespace.createElement("span",null,u),K),oe=X.props,ue=!oe.className||typeof oe.className=="string"?F(oe.className,i||`${K}-open`):oe.className,[ve,re]=$1(K,!q),ae=O1(K,l),ce=ae.arrowStyle,Y=Object.assign(Object.assign({},c),ae.overlayStyle),ne=F(s,{[`${K}-rtl`]:w==="rtl"},ae.className,V,re);return ve(m__namespace.createElement(ZM,Object.assign({},j,{showArrow:E,placement:z,mouseEnterDelay:H,mouseLeaveDelay:W,prefixCls:K,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ce),B),getTooltipContainer:L||a||$,ref:O,builtinPlacements:T,overlay:M,visible:U,onVisibleChange:P,afterVisibleChange:d??f,overlayInnerStyle:Y,arrowContent:m__namespace.createElement("span",{className:`${K}-arrow-content`}),motion:{motionName:Tc(te,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),U?Hn(X,{className:ue}):X))});I1._InternalPanelDoNotUseOrYouWillBeFired=JN;const us=I1,o3=m__namespace.forwardRef((e,t)=>{const{open:n}=e,r=m.useRef(null),o=m.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 m__namespace.useEffect(()=>(n?a():i(),i),[n,e.title]),m__namespace.createElement(us,Object.assign({ref:Pn(r,t)},e))}),i3=o3,a3=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s}=e;return {[t]:Object.assign(Object.assign({},Mt(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 Wt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},P1=(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}}},s3=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},P1(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},l3=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},P1(e,!1)),{height:"100%"})}},c3=Ut("Slider",e=>{const t=ft(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [a3(t),s3(t),l3(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 u3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const d3=e=>typeof e=="number"?e.toString():"",f3=m.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:f}=e,h=u3(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:v,slider:g,getPrefixCls:p,getPopupContainer:b}=m.useContext(nt),y=m.useContext(Pr),S=s??y,[E,C]=m.useState({}),$=(N,M)=>{C(L=>Object.assign(Object.assign({},L),{[N]:M}));},x=(N,M)=>N||(M?v==="rtl"?"left":"right":"top"),w=p("slider",n),[O,R]=c3(w),A=F(o,g==null?void 0:g.className,i,{[`${w}-rtl`]:v==="rtl"},R);v==="rtl"&&!h.vertical&&(h.reverse=!h.reverse);const[_,I]=m.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),P=(N,M)=>{var L;const{index:z,dragging:H}=M,{tooltip:W={},vertical:B}=e,V=Object.assign({},W),{open:j,placement:K,getPopupContainer:te,prefixCls:q,formatter:U}=V;let X;U||U===null?X=U:c||c===null?X=c:X=d3;const oe=X?E[z]||H:!1,ue=(L=j??u)!==null&&L!==void 0?L:j===void 0&&oe,ve=Object.assign(Object.assign({},N.props),{onMouseEnter:()=>$(z,!0),onMouseLeave:()=>$(z,!1)}),re=p("tooltip",q??l);return m.createElement(i3,Object.assign({},V,{prefixCls:re,title:X?X(M.value):"",open:ue,placement:x(K??f,B),key:z,overlayClassName:`${w}-tooltip`,getPopupContainer:te||d||b}),m.cloneElement(N,ve))},T=Object.assign(Object.assign({},g==null?void 0:g.style),a);return O(m.createElement(IR,Object.assign({},h,{step:h.step,range:_,draggableTrack:I,className:A,style:T,disabled:S,ref:t,prefixCls:w,handleRender:P})))}),m3=f3;var h3={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 v3=h3;var g3=1/0,p3="[object Symbol]",b3=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,y3=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kc="\\ud800-\\udfff",R1="\\u0300-\\u036f\\ufe20-\\ufe23",_1="\\u20d0-\\u20f0",T1="\\u2700-\\u27bf",M1="a-z\\xdf-\\xf6\\xf8-\\xff",C3="\\xac\\xb1\\xd7\\xf7",S3="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",w3="\\u2000-\\u206f",x3=" \\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",N1="A-Z\\xc0-\\xd6\\xd8-\\xde",k1="\\ufe0e\\ufe0f",A1=C3+S3+w3+x3,th="['’]",$3="["+kc+"]",Zg="["+A1+"]",Ml="["+R1+_1+"]",L1="\\d+",E3="["+T1+"]",D1="["+M1+"]",z1="[^"+kc+A1+L1+T1+M1+N1+"]",Cf="\\ud83c[\\udffb-\\udfff]",O3="(?:"+Ml+"|"+Cf+")",j1="[^"+kc+"]",nh="(?:\\ud83c[\\udde6-\\uddff]){2}",rh="[\\ud800-\\udbff][\\udc00-\\udfff]",hi="["+N1+"]",B1="\\u200d",Qg="(?:"+D1+"|"+z1+")",I3="(?:"+hi+"|"+z1+")",Jg="(?:"+th+"(?:d|ll|m|re|s|t|ve))?",ep="(?:"+th+"(?:D|LL|M|RE|S|T|VE))?",H1=O3+"?",F1="["+k1+"]?",P3="(?:"+B1+"(?:"+[j1,nh,rh].join("|")+")"+F1+H1+")*",W1=F1+H1+P3,R3="(?:"+[E3,nh,rh].join("|")+")"+W1,_3="(?:"+[j1+Ml+"?",Ml,nh,rh,$3].join("|")+")",T3=RegExp(th,"g"),M3=RegExp(Ml,"g"),N3=RegExp(Cf+"(?="+Cf+")|"+_3+W1,"g"),k3=RegExp([hi+"?"+D1+"+"+Jg+"(?="+[Zg,hi,"$"].join("|")+")",I3+"+"+ep+"(?="+[Zg,hi+Qg,"$"].join("|")+")",hi+"?"+Qg+"+"+Jg,hi+"+"+ep,L1,R3].join("|"),"g"),A3=RegExp("["+B1+kc+R1+_1+k1+"]"),L3=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,D3={À:"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"},z3=typeof Eo=="object"&&Eo&&Eo.Object===Object&&Eo,j3=typeof self=="object"&&self&&self.Object===Object&&self,B3=z3||j3||Function("return this")();function H3(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function F3(e){return e.split("")}function W3(e){return e.match(b3)||[]}function V3(e){return function(t){return e==null?void 0:e[t]}}var U3=V3(D3);function V1(e){return A3.test(e)}function K3(e){return L3.test(e)}function G3(e){return V1(e)?X3(e):F3(e)}function X3(e){return e.match(N3)||[]}function q3(e){return e.match(k3)||[]}var Y3=Object.prototype,Z3=Y3.toString,tp=B3.Symbol,np=tp?tp.prototype:void 0,rp=np?np.toString:void 0;function Q3(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function J3(e){if(typeof e=="string")return e;if(ok(e))return rp?rp.call(e):"";var t=e+"";return t=="0"&&1/e==-g3?"-0":t}function ek(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Q3(e,t,n)}function tk(e){return function(t){t=Ac(t);var n=V1(t)?G3(t):void 0,r=n?n[0]:t.charAt(0),o=n?ek(n,1).join(""):t.slice(1);return r[e]()+o}}function nk(e){return function(t){return H3(ck(sk(t).replace(T3,"")),e,"")}}function rk(e){return !!e&&typeof e=="object"}function ok(e){return typeof e=="symbol"||rk(e)&&Z3.call(e)==p3}function Ac(e){return e==null?"":J3(e)}var ik=nk(function(e,t,n){return t=t.toLowerCase(),e+(n?ak(t):t)});function ak(e){return lk(Ac(e).toLowerCase())}function sk(e){return e=Ac(e),e&&e.replace(y3,U3).replace(M3,"")}var lk=tk("toUpperCase");function ck(e,t,n){return e=Ac(e),t=n?void 0:t,t===void 0?K3(e)?q3(e):W3(e):e.match(t)||[]}var uk=ik;const dk=an(uk);function fk(e,t){Ir(e,"[@ant-design/icons] ".concat(t));}function op(e){return at(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(at(e.icon)==="object"||typeof e.icon=="function")}function ip(){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[dk(n)]=r;}return t},{})}function Sf(e,t,n){return n?m.createElement(e.tag,Q(Q({key:t},ip(e.attrs)),n),(e.children||[]).map(function(r,o){return Sf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):m.createElement(e.tag,Q({key:t},ip(e.attrs)),(e.children||[]).map(function(r,o){return Sf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function U1(e){return jr(e)[0]}function K1(e){return e?Array.isArray(e)?e:[e]:[]}var mk=` .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); } } `,hk=function(t){var n=m.useContext(Dm),r=n.csp,o=n.prefixCls,i=mk;o&&(i=i.replace(/anticon/g,o)),m.useEffect(function(){var a=t.current,s=_l(a);Hm(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},vk=["icon","className","onClick","style","primaryColor","secondaryColor"],$a={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function gk(e){var t=e.primaryColor,n=e.secondaryColor;$a.primaryColor=t,$a.secondaryColor=n||U1(t),$a.calculated=!!n;}function pk(){return Q({},$a)}var Lc=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Je(t,vk),c=m__namespace.useRef(),u=$a;if(a&&(u={primaryColor:a,secondaryColor:s||U1(a)}),hk(c),fk(op(n),"icon should be icon definiton, but got ".concat(n)),!op(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=Q(Q({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Sf(d.icon,"svg-".concat(d.name),Q(Q({className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Lc.displayName="IconReact";Lc.getTwoToneColors=pk;Lc.setTwoToneColors=gk;const oh=Lc;function G1(e){var t=K1(e),n=G(t,2),r=n[0],o=n[1];return oh.setTwoToneColors({primaryColor:r,secondaryColor:o})}function bk(){var e=oh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var yk=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];G1(U_.primary);var Dc=m__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=Je(e,yk),d=m__namespace.useContext(Dm),f=d.prefixCls,h=f===void 0?"anticon":f,v=d.rootClassName,g=F(v,h,(n={},Z(n,"".concat(h,"-").concat(o.name),!!o.name),Z(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=K1(c),S=G(y,2),E=S[0],C=S[1];return m__namespace.createElement("span",Oe({role:"img","aria-label":o.name},u,{ref:t,tabIndex:p,onClick:l,className:g}),m__namespace.createElement(oh,{icon:o,primaryColor:E,secondaryColor:C,style:b}))});Dc.displayName="AntdIcon";Dc.getTwoToneColor=bk;Dc.setTwoToneColor=G1;const hn=Dc;var Ck=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:v3}))};const X1=m__namespace.forwardRef(Ck);function yn(e,t){var n=Q({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}const Ni=e=>e?typeof e=="function"?e():e:null,Sk=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:f}=e;return [{[t]:Object.assign(Object.assign({},Mt(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:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},qm(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},wk=e=>{const{componentCls:t}=e;return {[t]:Fa.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},xk=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,f=u/2-n,h=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${h}px ${f}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${h}px`}}}},q1=Ut("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=ft(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [Sk(o),wk(o),r&&xk(o),Nc(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]});var $k=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ek=(e,t,n)=>{if(!(!t&&!n))return m__namespace.createElement(m__namespace.Fragment,null,t&&m__namespace.createElement("div",{className:`${e}-title`},Ni(t)),m__namespace.createElement("div",{className:`${e}-inner-content`},Ni(n)))},Ok=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e;return m__namespace.createElement("div",{className:F(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},m__namespace.createElement("div",{className:`${n}-arrow`}),m__namespace.createElement(Gm,Object.assign({},e,{className:t,prefixCls:n}),l||Ek(n,a,s)))},Ik=e=>{const{prefixCls:t}=e,n=$k(e,["prefixCls"]),{getPrefixCls:r}=m__namespace.useContext(nt),o=r("popover",t),[i,a]=q1(o);return i(m__namespace.createElement(Ok,Object.assign({},n,{prefixCls:o,hashId:a})))},Y1=Ik;var Pk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Rk=e=>{let{title:t,content:n,prefixCls:r}=e;return m__namespace.createElement(m__namespace.Fragment,null,t&&m__namespace.createElement("div",{className:`${r}-title`},Ni(t)),m__namespace.createElement("div",{className:`${r}-inner-content`},Ni(n)))},Z1=m__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=Pk(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=m__namespace.useContext(nt),h=f("popover",n),[v,g]=q1(h),p=f(),b=F(i,g);return v(m__namespace.createElement(us,Object.assign({placement:a,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:h,overlayClassName:b,ref:t,overlay:r||o?m__namespace.createElement(Rk,{prefixCls:h,title:r,content:o}):null,transitionName:Tc(p,"zoom-big",d.transitionName),"data-popover-inject":!0})))});Z1._InternalPanelDoNotUseOrYouWillBeFired=Y1;const ih=Z1,_k=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(",")}}}}},Tk=Ut("Wave",e=>[_k(e)]);function Va(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Va=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(_,I,P){_[I]=P.value;},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(_,I,P){return Object.defineProperty(_,I,{value:P,enumerable:!0,configurable:!0,writable:!0}),_[I]}try{l({},"");}catch{l=function(P,T,N){return P[T]=N};}function c(_,I,P,T){var N=I&&I.prototype instanceof f?I:f,M=Object.create(N.prototype),L=new O(T||[]);return r(M,"_invoke",{value:C(_,P,L)}),M}function u(_,I,P){try{return {type:"normal",arg:_.call(I,P)}}catch(T){return {type:"throw",arg:T}}}e.wrap=c;var d={};function f(){}function h(){}function v(){}var g={};l(g,i,function(){return this});var p=Object.getPrototypeOf,b=p&&p(p(R([])));b&&b!==t&&n.call(b,i)&&(g=b);var y=v.prototype=f.prototype=Object.create(g);function S(_){["next","throw","return"].forEach(function(I){l(_,I,function(P){return this._invoke(I,P)});});}function E(_,I){function P(N,M,L,z){var H=u(_[N],_,M);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 T;r(this,"_invoke",{value:function(M,L){function z(){return new I(function(H,W){P(M,L,H,W);})}return T=T?T.then(z,z):z()}});}function C(_,I,P){var T="suspendedStart";return function(N,M){if(T==="executing")throw new Error("Generator is already running");if(T==="completed"){if(N==="throw")throw M;return A()}for(P.method=N,P.arg=M;;){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(T==="suspendedStart")throw T="completed",P.arg;P.dispatchException(P.arg);}else P.method==="return"&&P.abrupt("return",P.arg);T="executing";var H=u(_,I,P);if(H.type==="normal"){if(T=P.done?"completed":"suspendedYield",H.arg===d)continue;return {value:H.arg,done:P.done}}H.type==="throw"&&(T="completed",P.method="throw",P.arg=H.arg);}}}function $(_,I){var P=I.method,T=_.iterator[P];if(T===void 0)return I.delegate=null,P==="throw"&&_.iterator.return&&(I.method="return",I.arg=void 0,$(_,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(T,_.iterator,I.arg);if(N.type==="throw")return I.method="throw",I.arg=N.arg,I.delegate=null,d;var M=N.arg;return M?M.done?(I[_.resultName]=M.value,I.next=_.nextLoc,I.method!=="return"&&(I.method="next",I.arg=void 0),I.delegate=null,d):M:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,d)}function x(_){var I={tryLoc:_[0]};1 in _&&(I.catchLoc=_[1]),2 in _&&(I.finallyLoc=_[2],I.afterLoc=_[3]),this.tryEntries.push(I);}function w(_){var I=_.completion||{};I.type="normal",delete I.arg,_.completion=I;}function O(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(x,this),this.reset(!0);}function R(_){if(_){var I=_[i];if(I)return I.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var P=-1,T=function N(){for(;++P<_.length;)if(n.call(_,P))return N.value=_[P],N.done=!1,N;return N.value=void 0,N.done=!0,N};return T.next=T}}return {next:A}}function A(){return {value:void 0,done:!0}}return h.prototype=v,r(y,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(_){var I=typeof _=="function"&&_.constructor;return !!I&&(I===h||(I.displayName||I.name)==="GeneratorFunction")},e.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,v):(_.__proto__=v,l(_,s,"GeneratorFunction")),_.prototype=Object.create(y),_},e.awrap=function(_){return {__await:_}},S(E.prototype),l(E.prototype,a,function(){return this}),e.AsyncIterator=E,e.async=function(_,I,P,T,N){N===void 0&&(N=Promise);var M=new E(c(_,I,P,T),N);return e.isGeneratorFunction(I)?M:M.next().then(function(L){return L.done?L.value:M.next()})},S(y),l(y,s,"Generator"),l(y,i,function(){return this}),l(y,"toString",function(){return "[object Generator]"}),e.keys=function(_){var I=Object(_),P=[];for(var T in I)P.push(T);return P.reverse(),function N(){for(;P.length;){var M=P.pop();if(M in I)return N.value=M,N.done=!1,N}return N.done=!0,N}},e.values=R,O.prototype={constructor:O,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!I)for(var P in this)P.charAt(0)==="t"&&n.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=void 0);},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var P=this;function T(W,B){return L.type="throw",L.arg=I,P.next=W,B&&(P.method="next",P.arg=void 0),!!B}for(var N=this.tryEntries.length-1;N>=0;--N){var M=this.tryEntries[N],L=M.completion;if(M.tryLoc==="root")return T("end");if(M.tryLoc<=this.prev){var z=n.call(M,"catchLoc"),H=n.call(M,"finallyLoc");if(z&&H){if(this.prev<M.catchLoc)return T(M.catchLoc,!0);if(this.prev<M.finallyLoc)return T(M.finallyLoc)}else if(z){if(this.prev<M.catchLoc)return T(M.catchLoc,!0)}else {if(!H)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return T(M.finallyLoc)}}}},abrupt:function(I,P){for(var T=this.tryEntries.length-1;T>=0;--T){var N=this.tryEntries[T];if(N.tryLoc<=this.prev&&n.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var M=N;break}}M&&(I==="break"||I==="continue")&&M.tryLoc<=P&&P<=M.finallyLoc&&(M=null);var L=M?M.completion:{};return L.type=I,L.arg=P,M?(this.method="next",this.next=M.finallyLoc,d):this.complete(L)},complete:function(I,P){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&P&&(this.next=P),d},finish:function(I){for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P];if(T.finallyLoc===I)return this.complete(T.completion,T.afterLoc),w(T),d}},catch:function(I){for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P];if(T.tryLoc===I){var N=T.completion;if(N.type==="throw"){var M=N.arg;w(T);}return M}}throw new Error("illegal catch attempt")},delegateYield:function(I,P,T){return this.delegate={iterator:R(I),resultName:P,nextLoc:T},this.method==="next"&&(this.arg=void 0),d}},e}function ap(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 Q1(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){ap(i,r,o,a,s,"next",l);}function s(l){ap(i,r,o,a,s,"throw",l);}a(void 0);})}}var ds=Q({},s0__namespace),Mk=ds.version,Nk=ds.render,kk=ds.unmountComponentAtNode,zc;try{var Ak=Number((Mk||"").split(".")[0]);Ak>=18&&(zc=ds.createRoot);}catch{}function sp(e){var t=ds.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&at(t)==="object"&&(t.usingClientEntryPoint=e);}var Nl="__rc_react_root__";function Lk(e,t){sp(!0);var n=t[Nl]||zc(t);sp(!1),n.render(e),t[Nl]=n;}function Dk(e,t){Nk(e,t);}function zk(e,t){if(zc){Lk(e,t);return}Dk(e,t);}function jk(e){return wf.apply(this,arguments)}function wf(){return wf=Q1(Va().mark(function e(t){return Va().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Nl])===null||o===void 0||o.unmount(),delete t[Nl];}));case 1:case"end":return r.stop()}},e)})),wf.apply(this,arguments)}function Bk(e){kk(e);}function Hk(e){return xf.apply(this,arguments)}function xf(){return xf=Q1(Va().mark(function e(t){return Va().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(zc===void 0){r.next=2;break}return r.abrupt("return",jk(t));case 2:Bk(t);case 3:case"end":return r.stop()}},e)})),xf.apply(this,arguments)}function Fk(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 Vu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Fk(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Wk(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Vu(t)?t:Vu(n)?n:Vu(r)?r:null}const jc="ant-wave-target";function Uu(e){return Number.isNaN(e)?0:e}const Vk=e=>{const{className:t,target:n,component:r}=e,o=m__namespace.useRef(null),[i,a]=m__namespace.useState(null),[s,l]=m__namespace.useState([]),[c,u]=m__namespace.useState(0),[d,f]=m__namespace.useState(0),[h,v]=m__namespace.useState(0),[g,p]=m__namespace.useState(0),[b,y]=m__namespace.useState(!1),S={left:c,top:d,width:h,height:g,borderRadius:s.map($=>`${$}px`).join(" ")};i&&(S["--wave-color"]=i);function E(){const $=getComputedStyle(n);a(Wk(n));const x=$.position==="static",{borderLeftWidth:w,borderTopWidth:O}=$;u(x?n.offsetLeft:Uu(-parseFloat(w))),f(x?n.offsetTop:Uu(-parseFloat(O))),v(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:A,borderBottomLeftRadius:_,borderBottomRightRadius:I}=$;l([R,A,I,_].map(P=>Uu(parseFloat(P))));}if(m__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(jc));return m__namespace.createElement(ho,{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;Hk(O).then(()=>{O==null||O.remove();});}return !1}},$=>{let{className:x}=$;return m__namespace.createElement("div",{ref:o,className:F(t,{"wave-quick":C},x),style:S})})},Uk=(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),zk(m__namespace.createElement(Vk,Object.assign({},t,{target:e})),o);},Kk=Uk;function Gk(e,t,n){const{wave:r}=m__namespace.useContext(nt),[,o,i]=Kr(),a=Mn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${jc}`)||u,{showEffect:f}=r||{};(f||Kk)(d,{className:t,token:o,component:n,event:c,hashId:i});}),s=m__namespace.useRef();return c=>{pt.cancel(s.current),s.current=pt(()=>{a(c);});}}const Xk=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=m.useContext(nt),i=m.useRef(null),a=o("wave"),[,s]=Tk(a),l=Gk(i,F(a,s),r);if(m.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const d=f=>{!Km(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f);};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0);}},[n]),!m.isValidElement(t))return t??null;const c=Uo(t)?Pn(t.ref,i):i;return Hn(t,{ref:c})},fs=Xk,qk=m.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=F(`${i}-icon`,n);return m.createElement("span",{ref:t,className:a,style:r},o)}),J1=qk;var Yk={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 Zk=Yk;var Qk=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:Zk}))};const ah=m__namespace.forwardRef(Qk),lp=m.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=F(`${n}-loading-icon`,r);return m.createElement(J1,{prefixCls:n,className:a,style:o,ref:t},m.createElement(ah,{className:i}))}),Ku=()=>({width:0,opacity:0,transform:"scale(0)"}),Gu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Jk=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?m.createElement(lp,{prefixCls:t,className:o,style:i}):m.createElement(ho,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:Ku,onAppearActive:Gu,onEnterStart:Ku,onEnterActive:Gu,onLeaveStart:Gu,onLeaveActive:Ku},(s,l)=>{let{className:c,style:u}=s;return m.createElement(lp,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:l,iconClassName:c})})},e4=Jk;var t4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const eC=m__namespace.createContext(void 0),n4=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(nt),{prefixCls:r,size:o,className:i}=e,a=t4(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Kr();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 m__namespace.createElement(eC.Provider,{value:o},m__namespace.createElement("div",Object.assign({},a,{className:u})))},r4=n4,cp=/^[\u4e00-\u9fa5]{2}$/,$f=cp.test.bind(cp);function up(e){return typeof e=="string"}function Xu(e){return e==="text"||e==="link"}function o4(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&up(e.type)&&$f(e.props.children)?Hn(e,{children:e.props.children.split("").join(n)}):up(e)?$f(e)?m.createElement("span",null,e.split("").join(n)):m.createElement("span",null,e):C1(e)?m.createElement("span",null,e):e}function i4(e,t){let n=!1;const r=[];return m.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;}),m.Children.map(r,o=>o4(o,t))}function a4(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 s4(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 Bc(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({},a4(e,r,t)),s4(n,r,t))}}function l4(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function c4(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 u4(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},l4(e,t)),c4(e.componentCls,t))}}const dp=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),d4=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}},dp(`${t}-primary`,o),dp(`${t}-danger`,i)]}},f4=d4,m4=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({},Do(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:'""'}}}}}}},Fr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),h4=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),v4=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),g4=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Ua=(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"},Fr(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),sh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},g4(e))}),tC=e=>Object.assign({},sh(e)),kl=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),nC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tC(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Fr(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Ua(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},Fr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ua(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),sh(e))}),p4=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tC(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Fr(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Ua(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}`},Fr(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Ua(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),sh(e))}),b4=e=>Object.assign(Object.assign({},nC(e)),{borderStyle:"dashed"}),y4=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Fr(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),kl(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Fr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),kl(e))}),C4=e=>Object.assign(Object.assign(Object.assign({},Fr(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),kl(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},kl(e)),Fr(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),S4=e=>{const{componentCls:t}=e;return {[`${t}-default`]:nC(e),[`${t}-primary`]:p4(e),[`${t}-dashed`]:b4(e),[`${t}-link`]:y4(e),[`${t}-text`]:C4(e),[`${t}-ghost`]:Ua(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},lh=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,f=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${u}px ${d}px`,borderRadius:s,[`&${f}`]:{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}`]:h4(e)},{[`${n}${n}-round${t}`]:v4(e)}]},w4=e=>lh(e),x4=e=>{const t=ft(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return lh(t,`${e.componentCls}-sm`)},$4=e=>{const t=ft(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return lh(t,`${e.componentCls}-lg`)},E4=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},O4=Ut("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=ft(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return [m4(r),x4(r),w4(r),$4(r),E4(r),S4(r),f4(r),Bc(e),u4(e)]});var I4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function rC(e){return e==="danger"?{danger:!0}:{type:e}}function P4(e){if(typeof e=="object"&&e){const t=e==null?void 0:e.delay;return {loading:!1,delay:!Number.isNaN(t)&&typeof t=="number"?t:0}}return {loading:!!e,delay:0}}const R4=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:f,rootClassName:h,children:v,icon:g,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:S,style:E={}}=e,C=I4(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}=m.useContext(nt),R=$("btn",i),[A,_]=O4(R),I=m.useContext(Pr),P=d??I,T=m.useContext(eC),N=m.useMemo(()=>P4(o),[o]),[M,L]=m.useState(N.loading),[z,H]=m.useState(!1),B=Pn(t,m.createRef()),V=m.Children.count(v)===1&&!g&&!Xu(a);m.useEffect(()=>{let me=null;N.delay>0?me=setTimeout(()=>{me=null,L(!0);},N.delay):L(N.loading);function ye(){me&&(clearTimeout(me),me=null);}return ye},[N]),m.useEffect(()=>{if(!B||!B.current||x===!1)return;const me=B.current.textContent;V&&$f(me)?z||H(!0):z&&H(!1);},[B]);const j=me=>{const{onClick:ye}=e;if(M||P){me.preventDefault();return}ye==null||ye(me);},K=x!==!1,{compactSize:te,compactItemClassnames:q}=Qi(R,w),U={large:"lg",small:"sm",middle:void 0},X=Wn(me=>{var ye,Re;return (Re=(ye=c??te)!==null&&ye!==void 0?ye:T)!==null&&Re!==void 0?Re:me}),oe=X&&U[X]||"",ue=M?"loading":g,ve=yn(C,["navigate"]),re=F(R,_,{[`${R}-${l}`]:l!=="default"&&l,[`${R}-${a}`]:a,[`${R}-${oe}`]:oe,[`${R}-icon-only`]:!v&&v!==0&&!!ue,[`${R}-background-ghost`]:p&&!Xu(a),[`${R}-loading`]:M,[`${R}-two-chinese-chars`]:z&&K&&!M,[`${R}-block`]:b,[`${R}-dangerous`]:!!s,[`${R}-rtl`]:w==="rtl"},q,f,h,O==null?void 0:O.className),ae=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),Y=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=g&&!M?m.createElement(J1,{prefixCls:R,className:ce,style:Y},g):m.createElement(e4,{existIcon:!!g,prefixCls:R,loading:!!M}),J=v||v===0?i4(v,V&&K):null;if(ve.href!==void 0)return A(m.createElement("a",Object.assign({},ve,{className:F(re,{[`${R}-disabled`]:P}),style:ae,onClick:j,ref:B}),ne,J));let fe=m.createElement("button",Object.assign({},C,{type:y,className:re,style:ae,onClick:j,disabled:P,ref:B}),ne,J);return Xu(a)||(fe=m.createElement(fs,{component:"Button",disabled:!!M},fe)),A(fe)},ch=m.forwardRef(R4);ch.Group=r4;ch.__ANT_BUTTON=!0;const Qt=ch;function fp(e){return !!(e&&e.then)}const _4=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=m__namespace.useRef(!1),f=m__namespace.useRef(null),[h,v]=Ro(!1),g=function(){i==null||i.apply(void 0,arguments);};m__namespace.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{var S;(S=f.current)===null||S===void 0||S.focus();})),()=>{y&&clearTimeout(y);}},[]);const p=y=>{fp(y)&&(v(!0),y.then(function(){v(!1,!0),g.apply(void 0,arguments),d.current=!1;},S=>{if(v(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(S)}));},b=y=>{if(d.current)return;if(d.current=!0,!u){g();return}let S;if(s){if(S=u(y),c&&!fp(S)){d.current=!1,g(y);return}}else if(u.length)S=u(i),d.current=!1;else if(S=u(),!S){g();return}p(S);};return m__namespace.createElement(Qt,Object.assign({},rC(t),{onClick:b,loading:h,prefixCls:r},o,{ref:f}),n)},T4=_4,M4=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}}}}},oC=Ut("Popconfirm",e=>M4(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}});var N4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const iC=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=m__namespace.createElement(X1,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:h,onPopupClick:v}=e,{getPrefixCls:g}=m__namespace.useContext(nt),[p]=Yi("Popconfirm",zr.Popconfirm),b=Ni(o),y=Ni(i);return m__namespace.createElement("div",{className:`${t}-inner-content`,onClick:v},m__namespace.createElement("div",{className:`${t}-message`},c&&m__namespace.createElement("span",{className:`${t}-message-icon`},c),m__namespace.createElement("div",{className:`${t}-message-text`},b&&m__namespace.createElement("div",{className:F(`${t}-title`)},b),y&&m__namespace.createElement("div",{className:`${t}-description`},y))),m__namespace.createElement("div",{className:`${t}-buttons`},u&&m__namespace.createElement(Qt,Object.assign({onClick:h,size:"small"},r),a??(p==null?void 0:p.cancelText)),m__namespace.createElement(T4,{buttonProps:Object.assign(Object.assign({size:"small"},rC(l)),n),actionFn:f,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))},k4=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=N4(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=m__namespace.useContext(nt),s=a("popconfirm",t),[l]=oC(s);return l(m__namespace.createElement(Y1,{placement:n,className:F(s,r),style:o,content:m__namespace.createElement(iC,Object.assign({prefixCls:s},i))}))},A4=k4;var L4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const aC=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o="click",okType:i="primary",icon:a=m__namespace.createElement(X1,null),children:s,overlayClassName:l,onOpenChange:c,onVisibleChange:u}=e,d=L4(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:f}=m__namespace.useContext(nt),[h,v]=Dt(!1,{value:e.open,defaultValue:e.defaultOpen}),g=(w,O)=>{v(w,!0),u==null||u(w),c==null||c(w,O);},p=w=>{g(!1,w);},b=w=>{var O;return (O=e.onConfirm)===null||O===void 0?void 0:O.call(globalThis,w)},y=w=>{var O;g(!1,w),(O=e.onCancel)===null||O===void 0||O.call(globalThis,w);},S=w=>{w.keyCode===le.ESC&&h&&g(!1,w);},E=w=>{const{disabled:O=!1}=e;O||g(w);},C=f("popconfirm",n),$=F(C,l),[x]=oC(C);return x(m__namespace.createElement(ih,Object.assign({},yn(d,["title"]),{trigger:o,placement:r,onOpenChange:E,open:h,ref:t,overlayClassName:$,content:m__namespace.createElement(iC,Object.assign({okType:i,icon:a},e,{prefixCls:C,close:p,onConfirm:b,onCancel:y})),"data-popover-inject":!0}),Hn(s,{onKeyDown:w=>{var O,R;m__namespace.isValidElement(s)&&((R=s==null?void 0:(O=s.props).onKeyDown)===null||R===void 0||R.call(O,w)),S(w);}})))});aC._InternalPanelDoNotUseOrYouWillBeFired=A4;const mp=aC;var D4={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 z4=D4;var j4=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:z4}))};const uh=m__namespace.forwardRef(j4);var B4={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 H4=B4;var F4=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:H4}))};const W4=m__namespace.forwardRef(F4);function Ef(){return typeof BigInt=="function"}function Mo(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 dh(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function Ka(e){var t=String(e);if(dh(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(".")&&fh(t)?t.length-t.indexOf(".")-1:0}function Hc(e){var t=String(e);if(dh(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Ef()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Ef()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Ka(t));}return Mo(t).fullStr}function fh(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}function sC(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var V4=function(){function e(t){if(Cn(this,e),Z(this,"origin",""),Z(this,"number",void 0),Z(this,"empty",void 0),sC(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return Sn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(Ka(this.number),Ka(r));return new e(o.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Hc(this.number):this.origin}}]),e}(),U4=function(){function e(t){if(Cn(this,e),Z(this,"origin",""),Z(this,"negative",void 0),Z(this,"integer",void 0),Z(this,"decimal",void 0),Z(this,"decimalLen",void 0),Z(this,"empty",void 0),Z(this,"nan",void 0),sC(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(dh(n)&&(n=Number(n)),n=typeof n=="string"?n:Hc(n),fh(n)){var r=Mo(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 Sn(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=Mo(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()?"":Mo("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function ir(e){return Ef()?new U4(e):new V4(e)}function il(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=Mo(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=ir(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return il(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function ri(e){return !!(e.addonBefore||e.addonAfter)}function qu(e){return !!(e.prefix||e.suffix||e.allowClear)}function Ea(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 lC(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 Of(e){return typeof e>"u"||e===null?"":String(e)}var mh=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,f=t.disabled,h=t.readOnly,v=t.focused,g=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",R=(w==null?void 0:w.groupWrapper)||"span",A=(w==null?void 0:w.wrapper)||"span",_=(w==null?void 0:w.groupAddon)||"span",I=m.useRef(null),P=function(te){var q;(q=I.current)!==null&&q!==void 0&&q.contains(te.target)&&(g==null||g());},T=function(){var te;if(!p)return null;var q=!f&&!h&&b,U="".concat(i,"-clear-icon"),X=at(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return m.createElement("span",{onClick:y,onMouseDown:function(ue){return ue.preventDefault()},className:F(U,(te={},Z(te,"".concat(U,"-hidden"),!q),Z(te,"".concat(U,"-has-suffix"),!!s),te)),role:"button",tabIndex:-1},X)},N=m.cloneElement(o,{value:b,hidden:S,className:F((n=o.props)===null||n===void 0?void 0:n.className,!qu(t)&&!ri(t)&&u)||null,style:Q(Q({},(r=o.props)===null||r===void 0?void 0:r.style),!qu(t)&&!ri(t)?d:{})});if(qu(t)){var M,L="".concat(i,"-affix-wrapper"),z=F(L,(M={},Z(M,"".concat(L,"-disabled"),f),Z(M,"".concat(L,"-focused"),v),Z(M,"".concat(L,"-readonly"),h),Z(M,"".concat(L,"-input-with-clear-btn"),s&&p&&b),M),!ri(t)&&u,E==null?void 0:E.affixWrapper,C==null?void 0:C.affixWrapper),H=(s||p)&&m.createElement("span",{className:F("".concat(i,"-suffix"),C==null?void 0:C.suffix),style:x==null?void 0:x.suffix},T(),s);N=m.createElement(O,Oe({className:z,style:ri(t)?void 0:d,hidden:!ri(t)&&S,onClick:P},$==null?void 0:$.affixWrapper,{ref:I}),a&&m.createElement("span",{className:F("".concat(i,"-prefix"),C==null?void 0:C.prefix),style:x==null?void 0:x.prefix},a),m.cloneElement(o,{value:b,hidden:null}),H);}if(ri(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 m.createElement(R,{className:j,style:d,hidden:S},m.createElement(A,{className:V},l&&m.createElement(_,{className:B},l),m.cloneElement(N,{hidden:null}),c&&m.createElement(_,{className:B},c)))}return N},K4=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],G4=m.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,f=e.className,h=e.maxLength,v=e.suffix,g=e.showCount,p=e.type,b=p===void 0?"text":p,y=e.classes,S=e.classNames,E=e.styles,C=Je(e,K4),$=Dt(e.defaultValue,{value:e.value}),x=G($,2),w=x[0],O=x[1],R=m.useState(!1),A=G(R,2),_=A[0],I=A[1],P=m.useRef(null),T=function(j){P.current&&lC(P.current,j);};m.useImperativeHandle(t,function(){return {focus:T,blur:function(){var j;(j=P.current)===null||j===void 0||j.blur();},setSelectionRange:function(j,K,te){var q;(q=P.current)===null||q===void 0||q.setSelectionRange(j,K,te);},select:function(){var j;(j=P.current)===null||j===void 0||j.select();},input:P.current}}),m.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&&Ea(P.current,j,r);},M=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(""),T(),P.current&&Ea(P.current,j,r);},W=function(){var j=yn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return m.createElement("input",Oe({autoComplete:n},j,{onChange:N,onFocus:L,onBlur:z,onKeyDown:M,className:F(c,Z({},"".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(v||g){var K=Of(w),te=Qe(K).length,q=at(g)==="object"?g.formatter({value:K,count:te,maxLength:h}):"".concat(te).concat(j?" / ".concat(h):"");return m.createElement(m.Fragment,null,!!g&&m.createElement("span",{className:F("".concat(c,"-show-count-suffix"),Z({},"".concat(c,"-show-count-has-suffix"),!!v),S==null?void 0:S.count),style:Q({},E==null?void 0:E.count)},q),v)}return null};return m.createElement(mh,Oe({},C,{prefixCls:c,className:f,inputElement:W(),handleReset:H,value:Of(w),focused:_,triggerFocus:T,suffix:B(),disabled:u,classes:y,classNames:S,styles:E}))});function X4(e,t){var n=m.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],f=i.indexOf(d,c-1);f!==-1&&(u=f+1);}e.setSelectionRange(u,u);}catch(h){Ir(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message));}}return [r,o]}var q4=function(){var t=m.useState(!1),n=G(t,2),r=n[0],o=n[1];return Ft(function(){o(Rc());},[]),r},Y4=200,Z4=600;function Q4(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=m__namespace.useRef(),l=m__namespace.useRef([]),c=m__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,Y4);}s.current=setTimeout(C,Z4);};m__namespace.useEffect(function(){return function(){u(),l.current.forEach(function(y){return pt.cancel(y)});}},[]);var f=q4();if(f)return null;var h="".concat(t,"-handler"),v=F(h,"".concat(h,"-up"),Z({},"".concat(h,"-up-disabled"),o)),g=F(h,"".concat(h,"-down"),Z({},"".concat(h,"-down-disabled"),i)),p=function(){return l.current.push(pt(u))},b={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return m__namespace.createElement("div",{className:"".concat(h,"-wrap")},m__namespace.createElement("span",Oe({},b,{onMouseDown:function(S){d(S,!0);},"aria-label":"Increase Value","aria-disabled":o,className:v}),n||m__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),m__namespace.createElement("span",Oe({},b,{onMouseDown:function(S){d(S,!1);},"aria-label":"Decrease Value","aria-disabled":i,className:g}),r||m__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function hp(e){var t=typeof e=="number"?Hc(e):Mo(e).fullStr,n=t.includes(".");return n?Mo(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const J4=function(){var e=m.useRef(0),t=function(){pt.cancel(e.current);};return m.useEffect(function(){return t},[]),function(n){t(),e.current=pt(function(){n();});}};var eA=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],tA=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],vp=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},gp=function(t){var n=ir(t);return n.isInvalidate()?null:n},nA=m__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,f=e.value,h=e.disabled,v=e.readOnly,g=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,R=e.onChange,A=e.onInput,_=e.onPressEnter,I=e.onStep,P=Je(e,eA),T="".concat(o,"-input"),N=m__namespace.useRef(null),M=m__namespace.useState(!1),L=G(M,2),z=L[0],H=L[1],W=m__namespace.useRef(!1),B=m__namespace.useRef(!1),V=m__namespace.useRef(!1),j=m__namespace.useState(function(){return ir(f??d)}),K=G(j,2),te=K[0],q=K[1];function U(Pe){f===void 0&&q(Pe);}var X=m__namespace.useCallback(function(Pe,de){if(!de)return w>=0?w:Math.max(Ka(Pe),Ka(u))},[w,u]),oe=m__namespace.useCallback(function(Pe){var de=String(Pe);if($)return $(de);var Se=de;return O&&(Se=Se.replace(O,".")),Se.replace(/[^\w.-]+/g,"")},[$,O]),ue=m__namespace.useRef(""),ve=m__namespace.useCallback(function(Pe,de){if(x)return x(Pe,{userTyping:de,input:String(ue.current)});var Se=typeof Pe=="number"?Hc(Pe):Pe;if(!de){var ee=X(Se,de);if(fh(Se)&&(O||ee>=0)){var be=O||".";Se=il(Se,be,ee);}}return Se},[x,X,O]),re=m__namespace.useState(function(){var Pe=d??f;return te.isInvalidate()&&["string","number"].includes(at(Pe))?Number.isNaN(Pe)?"":Pe:ve(te.toString(),!1)}),ae=G(re,2),ce=ae[0],Y=ae[1];ue.current=ce;function ne(Pe,de){Y(ve(Pe.isInvalidate()?Pe.toString(!1):Pe.toString(!de),de));}var J=m__namespace.useMemo(function(){return gp(l)},[l,w]),fe=m__namespace.useMemo(function(){return gp(s)},[s,w]),me=m__namespace.useMemo(function(){return !J||!te||te.isInvalidate()?!1:J.lessEquals(te)},[J,te]),ye=m__namespace.useMemo(function(){return !fe||!te||te.isInvalidate()?!1:te.lessEquals(fe)},[fe,te]),Re=X4(N.current,z),He=G(Re,2),Te=He[0],ie=He[1],he=function(de){return J&&!de.lessEquals(J)?J:fe&&!fe.lessEquals(de)?fe:null},pe=function(de){return !he(de)},we=function(de,Se){var ee=de,be=pe(ee)||ee.isEmpty();if(!ee.isEmpty()&&!Se&&(ee=he(ee)||ee,be=!0),!v&&!h&&be){var _e=ee.toString(),Ye=X(_e,Se);return Ye>=0&&(ee=ir(il(_e,".",Ye)),pe(ee)||(ee=ir(il(_e,".",Ye,!0)))),ee.equals(te)||(U(ee),R==null||R(ee.isEmpty()?null:vp(C,ee)),f===void 0&&ne(ee,Se)),ee}return te},De=J4(),Ae=function Pe(de){if(Te(),ue.current=de,Y(de),!B.current){var Se=oe(de),ee=ir(Se);ee.isNaN()||we(ee,!0);}A==null||A(de),De(function(){var be=de;$||(be=de.replace(/。/g,".")),be!==de&&Pe(be);});},xe=function(){B.current=!0;},Ie=function(){B.current=!1,Ae(N.current.value);},Fe=function(de){Ae(de.target.value);},$e=function(de){var Se;if(!(de&&me||!de&&ye)){W.current=!1;var ee=ir(V.current?hp(u):u);de||(ee=ee.negate());var be=(te||ir(0)).add(ee.toString()),_e=we(be,!1);I==null||I(vp(C,_e),{offset:V.current?hp(u):u,type:de?"up":"down"}),(Se=N.current)===null||Se===void 0||Se.focus();}},Ne=function(de){var Se=ir(oe(ce)),ee=Se;Se.isNaN()?ee=te:ee=we(Se,de),f!==void 0?ne(te,!1):ee.isNaN()||ne(ee,!1);},tt=function(){W.current=!0;},ct=function(de){var Se=de.key,ee=de.shiftKey;W.current=!0,V.current=ee,Se==="Enter"&&(B.current||(W.current=!1),Ne(!1),_==null||_(de)),b!==!1&&!B.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Se)&&($e(Se==="Up"||Se==="ArrowUp"),de.preventDefault());},qe=function(){W.current=!1,V.current=!1;},ut=function(){Ne(!1),H(!1),W.current=!1;};return $i(function(){te.isInvalidate()||ne(te,!1);},[w]),$i(function(){var Pe=ir(f);q(Pe);var de=ir(oe(ce));(!Pe.equals(de)||!W.current||x)&&ne(Pe,W.current);},[f]),$i(function(){x&&ie();},[ce]),m__namespace.createElement("div",{className:F(o,E==null?void 0:E.input,i,(n={},Z(n,"".concat(o,"-focused"),z),Z(n,"".concat(o,"-disabled"),h),Z(n,"".concat(o,"-readonly"),v),Z(n,"".concat(o,"-not-a-number"),te.isNaN()),Z(n,"".concat(o,"-out-of-range"),!te.isInvalidate()&&!pe(te)),n)),style:a,onFocus:function(){H(!0);},onBlur:ut,onKeyDown:ct,onKeyUp:qe,onCompositionStart:xe,onCompositionEnd:Ie,onBeforeInput:tt},S&&m__namespace.createElement(Q4,{prefixCls:o,upNode:g,downNode:p,upDisabled:me,downDisabled:ye,onStep:$e}),m__namespace.createElement("div",{className:"".concat(T,"-wrap")},m__namespace.createElement("input",Oe({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":te.isInvalidate()?null:te.toString(),step:u},P,{ref:Pn(N,t),className:T,value:ce,onChange:Fe,disabled:h,readOnly:v}))))}),cC=m__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,f=e.classNames,h=Je(e,tA),v=m__namespace.useRef(null),g=function(b){v.current&&lC(v.current,b);};return m__namespace.createElement(mh,{inputElement:m__namespace.createElement(nA,Oe({prefixCls:o,disabled:n,classNames:f,ref:Pn(v,t)},h)),className:d,triggerFocus:g,prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});cC.displayName="InputNumber";function lr(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 ms=(e,t)=>t||e,tr=m__namespace.createContext({}),Ga=e=>{let{children:t,status:n,override:r}=e;const o=m.useContext(tr),i=m.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 m__namespace.createElement(tr.Provider,{value:i},t)},uC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),hs=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),Al=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),hh=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},hs(ft(e,{inputBorderHoverColor:e.colorBorder})))}),dC=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}},vh=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Fc=(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({},Al(ft(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},Al(ft(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}`},uC(e.colorTextPlaceholder)),{"&:hover":Object.assign({},hs(e)),"&:focus, &-focused":Object.assign({},Al(e)),"&-disabled, &[disabled]":Object.assign({},hh(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({},dC(e)),"&-sm":Object.assign({},vh(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),fC=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({},dC(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},vh(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"},af()),{[`${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}}}})}},rA=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({},Mt(e)),vs(e)),Fc(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"}})}},oA=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`}}}},iA=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({},hs(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}}}),oA(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),Fc(e,`${t}-affix-wrapper`))}},aA=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Mt(e)),fC(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({},hh(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}}}})}},sA=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 gh(e){return ft(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const lA=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"}}}}}},ph=Ut("Input",e=>{const t=gh(e);return [rA(t),lA(t),iA(t),aA(t),sA(t),Bc(t)]}),pp=(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}}}},cA=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:f,colorPrimary:h,inputPaddingHorizontal:v,inputPaddingVertical:g,colorBgContainer:p,colorTextDisabled:b,borderRadiusSM:y,borderRadiusLG:S,controlWidth:E,handleVisible:C}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),vs(e)),Fc(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({},hs(e)),"&-focused":Object.assign({},Al(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Mt(e)),fC(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({},hh(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),{width:"100%",padding:`${g}px ${v}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${f} linear`,appearance:"textfield",fontSize:"inherit"}),uC(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 ${f} linear ${f}`,[`${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 ${f} 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({},Vo()),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i}},pp(e,"lg")),pp(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}}}]},uA=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)),Fc(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({},hs(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}}})}},dA=Ut("InputNumber",e=>{const t=gh(e);return [cA(t),uA(t),Bc(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var fA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mC=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m__namespace.useContext(nt),o=m__namespace.useRef(null);m__namespace.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,bordered:h=!0,readOnly:v,status:g,controls:p}=e,b=fA(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[S,E]=dA(y),{compactSize:C,compactItemClassnames:$}=Qi(y,r);let x=m__namespace.createElement(W4,{className:`${y}-handler-up-inner`}),w=m__namespace.createElement(uh,{className:`${y}-handler-down-inner`});const O=typeof p=="boolean"?p:void 0;typeof p=="object"&&(x=typeof p.upIcon>"u"?x:m__namespace.createElement("span",{className:`${y}-handler-up-inner`},p.upIcon),w=typeof p.downIcon>"u"?w:m__namespace.createElement("span",{className:`${y}-handler-down-inner`},p.downIcon));const{hasFeedback:R,status:A,isFormItemInput:_,feedbackIcon:I}=m__namespace.useContext(tr),P=ms(A,g),T=Wn(W=>{var B;return (B=s??C)!==null&&B!==void 0?B:W}),N=m__namespace.useContext(Pr),M=l??N,L=F({[`${y}-lg`]:T==="large",[`${y}-sm`]:T==="small",[`${y}-rtl`]:r==="rtl",[`${y}-borderless`]:!h,[`${y}-in-form-item`]:_},lr(y,P),$,E),z=`${y}-group`,H=m__namespace.createElement(cC,Object.assign({ref:o,disabled:M,className:F(i,a),upHandler:x,downHandler:w,prefixCls:y,readOnly:v,controls:O,prefix:f,suffix:R&&I,addonAfter:d&&m__namespace.createElement(Ti,null,m__namespace.createElement(Ga,{override:!0,status:!0},d)),addonBefore:u&&m__namespace.createElement(Ti,null,m__namespace.createElement(Ga,{override:!0,status:!0},u)),classNames:{input:L},classes:{affixWrapper:F(lr(`${y}-affix-wrapper`,P,R),{[`${y}-affix-wrapper-sm`]:T==="small",[`${y}-affix-wrapper-lg`]:T==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl",[`${y}-affix-wrapper-borderless`]:!h},E),wrapper:F({[`${z}-rtl`]:r==="rtl",[`${y}-wrapper-disabled`]:M},E),group:F({[`${y}-group-wrapper-sm`]:T==="small",[`${y}-group-wrapper-lg`]:T==="large",[`${y}-group-wrapper-rtl`]:r==="rtl"},lr(`${y}-group-wrapper`,P,R),E)}},b));return S(H)}),hC=mC,mA=e=>m__namespace.createElement(Um,{theme:{components:{InputNumber:{handleVisible:!0}}}},m__namespace.createElement(mC,Object.assign({},e)));hC._InternalPanelDoNotUseOrYouWillBeFired=mA;const If=hC,hA=()=>er()&&window.document.documentElement;let Ws;const vA=()=>{if(!hA())return !1;if(Ws!==void 0)return Ws;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),Ws=e.scrollHeight===1,document.body.removeChild(t),Ws},gA=()=>{const[e,t]=m__namespace.useState(!1);return m__namespace.useEffect(()=>{t(vA());},[]),e},vC=m.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),pA=vC.Provider,bA=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:f}=m__namespace.useContext(vC);let h={};return f||(n==="vertical"?r<d&&(h={marginBottom:c/(a?2:1)}):h=Object.assign(Object.assign({},r<d&&{[o]:c/(a?2:1)}),s&&{paddingBottom:u})),i==null?null:m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("div",{className:t,style:Object.assign(Object.assign({},h),l)},i),r<d&&a&&m__namespace.createElement("span",{className:`${t}-split`,style:h},a))},yA=bA;var CA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const SA={small:8,middle:16,large:24};function wA(e){return typeof e=="string"?SA[e]:e||0}const xA=m__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=m__namespace.useContext(nt),{size:s=(i==null?void 0:i.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:f="horizontal",prefixCls:h,split:v,style:g,wrap:p=!1,classNames:b,styles:y}=e,S=CA(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),E=gA(),[C,$]=m__namespace.useMemo(()=>(Array.isArray(s)?s:[s,s]).map(z=>wA(z)),[s]),x=cr(d,{keepEmpty:!0}),w=l===void 0&&f==="horizontal"?"center":l,O=o("space",h),[R,A]=S1(O),_=F(O,i==null?void 0:i.className,A,`${O}-${f}`,{[`${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 T=0;const N=x.map((z,H)=>{var W,B;z!=null&&(T=H);const V=z&&z.key||`${I}-${H}`;return m__namespace.createElement(yA,{className:I,key:V,direction:f,index:H,marginDirection:P,split:v,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)}),M=m__namespace.useMemo(()=>({horizontalSize:C,verticalSize:$,latestIndex:T,supportFlexGap:E}),[C,$,T,E]);if(x.length===0)return null;const L={};return p&&(L.flexWrap="wrap",E||(L.marginBottom=-$)),E&&(L.columnGap=C,L.rowGap=$),R(m__namespace.createElement("div",Object.assign({ref:t,className:_,style:Object.assign(Object.assign(Object.assign({},L),i==null?void 0:i.style),g)},S),m__namespace.createElement(pA,{value:M},N)))}),gC=xA;gC.Compact=cN;const Wc=gC;var $A={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 EA=$A;var OA=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:EA}))};const Vc=m__namespace.forwardRef(OA);function IA(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function PA(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:m.createElement(Vc,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!IA(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 RA(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Vs=(e,t,n)=>{const r=RA(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},_A=e=>Wy(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"}}}}),TA=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return {[o]:Object.assign(Object.assign({},Mt(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}}},pC=Ut("Tag",e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`,i=ft(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [TA(i),_A(i),Vs(i,"success","Success"),Vs(i,"processing","Info"),Vs(i,"error","Error"),Vs(i,"warning","Warning")]},e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}));var MA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const NA=e=>{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=MA(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=m__namespace.useContext(nt),l=h=>{o==null||o(!r),i==null||i(h);},c=s("tag",t),[u,d]=pC(c),f=F(c,`${c}-checkable`,{[`${c}-checkable-checked`]:r},n,d);return u(m__namespace.createElement("span",Object.assign({},a,{className:f,onClick:l})))},kA=NA;var AA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const LA=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:f=!0}=e,h=AA(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:v,direction:g,tag:p}=m__namespace.useContext(nt),[b,y]=m__namespace.useState(!0);m__namespace.useEffect(()=>{"visible"in h&&y(h.visible);},[h.visible]);const S=E1(l)||ZN(l),E=Object.assign(Object.assign({backgroundColor:l&&!S?l:void 0},p==null?void 0:p.style),i),C=v("tag",n),[$,x]=pC(C),w=F(C,p==null?void 0:p.className,{[`${C}-${l}`]:S,[`${C}-has-color`]:l&&!S,[`${C}-hidden`]:!b,[`${C}-rtl`]:g==="rtl",[`${C}-borderless`]:!f},r,o,x),O=T=>{T.stopPropagation(),c==null||c(T),!T.defaultPrevented&&y(!1);},[,R]=PA(d,u,T=>T===null?m__namespace.createElement(Vc,{className:`${C}-close-icon`,onClick:O}):m__namespace.createElement("span",{className:`${C}-close-icon`,onClick:O},T),null,!1),A=typeof h.onClick=="function"||a&&a.type==="a",_=s||null,I=_?m__namespace.createElement(m__namespace.Fragment,null,_,a&&m__namespace.createElement("span",null,a)):a,P=m__namespace.createElement("span",Object.assign({},h,{ref:t,className:w,style:E}),I,R);return $(A?m__namespace.createElement(fs,{component:"Tag"},P):P)},bC=m__namespace.forwardRef(LA);bC.CheckableTag=kA;const to=bC;var DA={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 zA=DA;var jA=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:zA}))};const bh=m__namespace.forwardRef(jA);var BA={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 HA=BA;var FA=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:HA}))};const WA=m__namespace.forwardRef(FA),Uc=m.createContext(null);var yC=m__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 m__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)}),VA=["key","forceRender","style","className"];function UA(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=m__namespace.useContext(Uc),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return m__namespace.createElement("div",{className:F("".concat(s,"-content-holder"))},m__namespace.createElement("div",{className:F("".concat(s,"-content"),"".concat(s,"-content-").concat(o),Z({},"".concat(s,"-content-animated"),c))},l.map(function(d){var f=d.key,h=d.forceRender,v=d.style,g=d.className,p=Je(d,VA),b=f===n;return m__namespace.createElement(ho,Oe({key:f,visible:b,forceRender:h,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(y,S){var E=y.style,C=y.className;return m__namespace.createElement(yC,Oe({},p,{prefixCls:u,id:t,tabKey:f,animated:c,active:b,style:Q(Q({},v),E),className:F(g,C),ref:S}))})})))}var bp={width:0,height:0,left:0,top:0};function KA(e,t,n){return m.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||bp,a=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||bp;}var d=o.get(l)||Q({},c);d.right=a-d.left-d.width,o.set(l,d);}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function yp(e,t){var n=m__namespace.useRef(e),r=m__namespace.useState({}),o=G(r,2),i=o[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,i({});}return [n.current,a]}var GA=.1,Cp=.01,al=20,Sp=Math.pow(.995,al);function XA(e,t){var n=m.useState(),r=G(n,2),o=r[0],i=r[1],a=m.useState(0),s=G(a,2),l=s[0],c=s[1],u=m.useState(0),d=G(u,2),f=d[0],h=d[1],v=m.useState(),g=G(v,2),p=g[0],b=g[1],y=m.useRef();function S(O){var R=O.touches[0],A=R.screenX,_=R.screenY;i({x:A,y:_}),window.clearInterval(y.current);}function E(O){if(o){O.preventDefault();var R=O.touches[0],A=R.screenX,_=R.screenY;i({x:A,y:_});var I=A-o.x,P=_-o.y;t(I,P);var T=Date.now();c(T),h(T-l),b({x:I,y:P});}}function C(){if(o&&(i(null),b(null),p)){var O=p.x/f,R=p.y/f,A=Math.abs(O),_=Math.abs(R);if(Math.max(A,_)<GA)return;var I=O,P=R;y.current=window.setInterval(function(){if(Math.abs(I)<Cp&&Math.abs(P)<Cp){window.clearInterval(y.current);return}I*=Sp,P*=Sp,t(I*al,P*al);},al);}}var $=m.useRef();function x(O){var R=O.deltaX,A=O.deltaY,_=0,I=Math.abs(R),P=Math.abs(A);I===P?_=$.current==="x"?R:A:I>P?(_=R,$.current="x"):(_=A,$.current="y"),t(-_,-_)&&O.preventDefault();}var w=m.useRef(null);w.current={onTouchStart:S,onTouchMove:E,onTouchEnd:C,onWheel:x},m__namespace.useEffect(function(){function O(I){w.current.onTouchStart(I);}function R(I){w.current.onTouchMove(I);}function A(I){w.current.onTouchEnd(I);}function _(I){w.current.onWheel(I);}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",A,{passive:!1}),e.current.addEventListener("touchstart",O,{passive:!1}),e.current.addEventListener("wheel",_),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",A);}},[]);}function CC(e){var t=m.useState(0),n=G(t,2),r=n[0],o=n[1],i=m.useRef(0),a=m.useRef();return a.current=e,$i(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 qA(e){var t=m.useRef([]),n=m.useState({}),r=G(n,2),o=r[1],i=m.useRef(typeof e=="function"?e():e),a=CC(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 wp={width:0,height:0,left:0,top:0,right:0};function YA(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,f;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",f=Math.abs(n)):(u="height",d="top",f=-n),m.useMemo(function(){if(!s.length)return [0,0];for(var h=s.length,v=h,g=0;g<h;g+=1){var p=e.get(s[g].key)||wp;if(p[d]+p[u]>f+t){v=g-1;break}}for(var b=0,y=h-1;y>=0;y-=1){var S=e.get(s[y].key)||wp;if(S[d]<f){b=y+1;break}}return b>=v?[0,0]:[b,v]},[e,t,r,o,i,f,l,s.map(function(h){return h.key}).join("_"),c])}function xp(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var ZA="TABS_DQ";function SC(e){return String(e).replace(/"/g,ZA)}function wC(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function QA(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return !r||r.showAdd===!1?null:m__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 xC=m__namespace.forwardRef(QA);var $p=m__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"&&!m__namespace.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?m__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),JA=le.ESC,eL=le.TAB;function tL(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=m__namespace.useRef(!1),s=function(){if(t){var d,f;(d=n.current)===null||d===void 0||(f=d.focus)===null||f===void 0||f.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 JA:s();break;case eL:{var f=!1;a.current||(f=l()),f?d.preventDefault():s();break}}};m__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 nL=m.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=m.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Pn(t,i==null?void 0:i.ref);return m.createElement(m.Fragment,null,r&&m.createElement("div",{className:"".concat(o,"-arrow")}),m.cloneElement(i,{ref:Uo(i)?a:void 0}))}),oi={adjustX:1,adjustY:1},ii=[0,0],rL={topLeft:{points:["bl","tl"],overflow:oi,offset:[0,-4],targetOffset:ii},top:{points:["bc","tc"],overflow:oi,offset:[0,-4],targetOffset:ii},topRight:{points:["br","tr"],overflow:oi,offset:[0,-4],targetOffset:ii},bottomLeft:{points:["tl","bl"],overflow:oi,offset:[0,4],targetOffset:ii},bottom:{points:["tc","bc"],overflow:oi,offset:[0,4],targetOffset:ii},bottomRight:{points:["tr","br"],overflow:oi,offset:[0,4],targetOffset:ii}},oL=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function iL(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,f=e.placements,h=f===void 0?rL:f,v=e.getPopupContainer,g=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,R=Je(e,oL),A=m.useState(),_=G(A,2),I=_[0],P=_[1],T="visible"in e?S:I,N=m.useRef(null),M=m.useRef(null),L=m.useRef(null);m.useImperativeHandle(t,function(){return N.current});var z=function(U){P(U),O==null||O(U);};tL({visible:T,triggerRef:L,onVisibleChange:z,autoFocus:$,overlayRef:M});var H=function(U){var X=e.onOverlayClick;P(!1),X&&X(U);},W=function(){return m.createElement(nL,{ref:M,overlay:x,prefixCls:a,arrow:o})},B=function(){return typeof x=="function"?W:W()},V=function(){var U=e.minOverlayWidthMatchTrigger,X=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?U:!X},j=function(){var U=e.openClassName;return U!==void 0?U:"".concat(a,"-open")},K=m.cloneElement(w,{className:F((n=w.props)===null||n===void 0?void 0:n.className,T&&j()),ref:Uo(w)?Pn(L,w.ref):void 0}),te=p;return !te&&C.indexOf("contextMenu")!==-1&&(te=["click"]),m.createElement(_c,Oe({builtinPlacements:h},R,{prefixCls:a,ref:N,popupClassName:F(b,Z({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:C,showAction:g,hideAction:te,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:T,stretch:V()?"minWidth":"",popup:B(),onPopupVisibleChange:z,onPopupClick:H,getPopupContainer:v}),K)}const $C=m.forwardRef(iL);var aL=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ai=void 0;function sL(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,f=e.children,h=e.display,v=e.order,g=e.component,p=g===void 0?"div":g,b=Je(e,aL),y=a&&!h;function S(w){l(c,w);}m__namespace.useEffect(function(){return function(){S(null);}},[]);var E=i&&o!==ai?i(o):f,C;r||(C={opacity:y?0:1,height:y?0:ai,overflowY:y?"hidden":ai,order:a?v:ai,pointerEvents:y?"none":ai,position:y?"absolute":ai});var $={};y&&($["aria-hidden"]=!0);var x=m__namespace.createElement(p,Oe({className:F(!r&&n,u),style:Q(Q({},C),d)},$,b,{ref:t}),E);return a&&(x=m__namespace.createElement(Br,{onResize:function(O){var R=O.offsetWidth;S(R);},disabled:s},x)),x}var Oa=m__namespace.forwardRef(sL);Oa.displayName="Item";function lL(e){if(typeof MessageChannel>"u")pt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function cL(){var e=m__namespace.useRef(null),t=function(r){e.current||(e.current=[],lL(function(){s0.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function ca(e,t){var n=m__namespace.useState(t),r=G(n,2),o=r[0],i=r[1],a=Mn(function(s){e(function(){i(s);});});return [o,a]}var Ll=m.createContext(null),uL=["component"],dL=["className"],fL=["className"],mL=function(t,n){var r=m__namespace.useContext(Ll);if(!r){var o=t.component,i=o===void 0?"div":o,a=Je(t,uL);return m__namespace.createElement(i,Oe({},a,{ref:n}))}var s=r.className,l=Je(r,dL),c=t.className,u=Je(t,fL);return m__namespace.createElement(Ll.Provider,{value:null},m__namespace.createElement(Oa,Oe({ref:n,className:F(s,c)},l,u)))},EC=m__namespace.forwardRef(mL);EC.displayName="RawItem";var hL=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],OC="responsive",IC="invalidate";function vL(e){return "+ ".concat(e.length," ...")}function gL(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,f=e.style,h=e.className,v=e.maxCount,g=e.renderRest,p=e.renderRawRest,b=e.suffix,y=e.component,S=y===void 0?"div":y,E=e.itemComponent,C=e.onVisibleChange,$=Je(e,hL),x=d==="full",w=cL(),O=ca(w,null),R=G(O,2),A=R[0],_=R[1],I=A||0,P=ca(w,new Map),T=G(P,2),N=T[0],M=T[1],L=ca(w,0),z=G(L,2),H=z[0],W=z[1],B=ca(w,0),V=G(B,2),j=V[0],K=V[1],te=ca(w,0),q=G(te,2),U=q[0],X=q[1],oe=m.useState(null),ue=G(oe,2),ve=ue[0],re=ue[1],ae=m.useState(null),ce=G(ae,2),Y=ce[0],ne=ce[1],J=m__namespace.useMemo(function(){return Y===null&&x?Number.MAX_SAFE_INTEGER:Y||0},[Y,A]),fe=m.useState(!1),me=G(fe,2),ye=me[0],Re=me[1],He="".concat(r,"-item"),Te=Math.max(H,j),ie=v===OC,he=i.length&&ie,pe=v===IC,we=he||typeof v=="number"&&i.length>v,De=m.useMemo(function(){var Le=i;return he?A===null&&x?Le=i:Le=i.slice(0,Math.min(i.length,I/u)):typeof v=="number"&&(Le=i.slice(0,v)),Le},[i,u,A,v,he]),Ae=m.useMemo(function(){return he?i.slice(J+1):i.slice(De.length)},[i,De,he,J]),xe=m.useCallback(function(Le,ge){var Ee;return typeof l=="function"?l(Le):(Ee=l&&(Le==null?void 0:Le[l]))!==null&&Ee!==void 0?Ee:ge},[l]),Ie=m.useCallback(a||function(Le){return Le},[a]);function Fe(Le,ge,Ee){Y===Le&&(ge===void 0||ge===ve)||(ne(Le),Ee||(Re(Le<i.length-1),C==null||C(Le)),ge!==void 0&&re(ge));}function $e(Le,ge){_(ge.clientWidth);}function Ne(Le,ge){M(function(Ee){var Me=new Map(Ee);return ge===null?Me.delete(Le):Me.set(Le,ge),Me});}function tt(Le,ge){K(ge),W(j);}function ct(Le,ge){X(ge);}function qe(Le){return N.get(xe(De[Le],Le))}Ft(function(){if(I&&typeof Te=="number"&&De){var Le=U,ge=De.length,Ee=ge-1;if(!ge){Fe(0,null);return}for(var Me=0;Me<ge;Me+=1){var ke=qe(Me);if(x&&(ke=ke||0),ke===void 0){Fe(Me-1,void 0,!0);break}if(Le+=ke,Ee===0&&Le<=I||Me===Ee-1&&Le+qe(Ee)<=I){Fe(Ee,null);break}else if(Le+Te>I){Fe(Me-1,Le-ke-U+j);break}}b&&qe(0)+U>I&&re(null);}},[I,N,j,U,xe,De]);var ut=ye&&!!Ae.length,Pe={};ve!==null&&he&&(Pe={position:"absolute",left:ve,top:0});var de={prefixCls:He,responsive:he,component:E,invalidate:pe},Se=s?function(Le,ge){var Ee=xe(Le,ge);return m__namespace.createElement(Ll.Provider,{key:Ee,value:Q(Q({},de),{},{order:ge,item:Le,itemKey:Ee,registerSize:Ne,display:ge<=J})},s(Le,ge))}:function(Le,ge){var Ee=xe(Le,ge);return m__namespace.createElement(Oa,Oe({},de,{order:ge,key:Ee,item:Le,renderItem:Ie,itemKey:Ee,registerSize:Ne,display:ge<=J}))},ee,be={order:ut?J:Number.MAX_SAFE_INTEGER,className:"".concat(He,"-rest"),registerSize:tt,display:ut};if(p)p&&(ee=m__namespace.createElement(Ll.Provider,{value:Q(Q({},de),be)},p(Ae)));else {var _e=g||vL;ee=m__namespace.createElement(Oa,Oe({},de,be),typeof _e=="function"?_e(Ae):_e);}var Ye=m__namespace.createElement(S,Oe({className:F(!pe&&r,h),style:f,ref:t},$),De.map(Se),we?ee:null,b&&m__namespace.createElement(Oa,Oe({},de,{responsive:ie,responsiveDisabled:!he,order:J,className:"".concat(He,"-suffix"),registerSize:ct,display:!0,style:Pe}),b));return ie&&(Ye=m__namespace.createElement(Br,{onResize:$e,disabled:!he},Ye)),Ye}var wr=m__namespace.forwardRef(gL);wr.displayName="Overflow";wr.Item=EC;wr.RESPONSIVE=OC;wr.INVALIDATE=IC;var PC=m__namespace.createContext(null);function yh(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function RC(e){var t=m__namespace.useContext(PC);return yh(t,e)}var pL=["children","locked"],ur=m__namespace.createContext(null);function bL(e,t){var n=Q({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function Xa(e){var t=e.children,n=e.locked,r=Je(e,pL),o=m__namespace.useContext(ur),i=is(function(){return bL(o,r)},[o,r],function(a,s){return !n&&(a[0]!==s[0]||!$c(a[1],s[1],!0))});return m__namespace.createElement(ur.Provider,{value:i},t)}var yL=[],_C=m__namespace.createContext(null);function Kc(){return m__namespace.useContext(_C)}var TC=m__namespace.createContext(yL);function Ji(e){var t=m__namespace.useContext(TC);return m__namespace.useMemo(function(){return e!==void 0?[].concat(Qe(t),[e]):t},[t,e])}var MC=m__namespace.createContext(null),Ch=m__namespace.createContext({});function Ep(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Km(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 CL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Qe(e.querySelectorAll("*")).filter(function(r){return Ep(r,t)});return Ep(e,t)&&n.unshift(e),n}var Pf=le.LEFT,Rf=le.RIGHT,_f=le.UP,sl=le.DOWN,ll=le.ENTER,NC=le.ESC,ua=le.HOME,da=le.END,Op=[_f,sl,Pf,Rf];function SL(e,t,n,r){var o,i,a,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===ll)return {inlineTrigger:!0};var f=(o={},Z(o,_f,l),Z(o,sl,c),o),h=(i={},Z(i,Pf,n?c:l),Z(i,Rf,n?l:c),Z(i,sl,u),Z(i,ll,u),i),v=(a={},Z(a,_f,l),Z(a,sl,c),Z(a,ll,u),Z(a,NC,d),Z(a,Pf,n?u:d),Z(a,Rf,n?d:u),a),g={inline:f,horizontal:h,vertical:v,inlineSub:f,horizontalSub:v,verticalSub:v},p=(s=g["".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 wL(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function xL(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function kC(e,t){var n=CL(e,!0);return n.filter(function(r){return t.has(r)})}function Ip(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=kC(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 $L(e,t,n,r,o,i,a,s,l,c){var u=m__namespace.useRef(),d=m__namespace.useRef();d.current=t;var f=function(){pt.cancel(u.current);};return m__namespace.useEffect(function(){return function(){f();}},[]),function(h){var v=h.which;if([].concat(Op,[ll,NC,ua,da]).includes(v)){var g,p,b,y=function(){g=new Set,p=new Map,b=new Map;var T=i();return T.forEach(function(N){var M=document.querySelector("[data-menu-id='".concat(yh(r,N),"']"));M&&(g.add(M),b.set(M,N),p.set(N,M));}),g};y();var S=p.get(t),E=xL(S,g),C=b.get(E),$=SL(e,a(C,!0).length===1,n,v);if(!$&&v!==ua&&v!==da)return;(Op.includes(v)||[ua,da].includes(v))&&h.preventDefault();var x=function(T){if(T){var N=T,M=T.querySelector("a");M!=null&&M.getAttribute("href")&&(N=M);var L=b.get(T);s(L),f(),u.current=pt(function(){d.current===L&&N.focus();});}};if([ua,da].includes(v)||$.sibling||!E){var w;!E||e==="inline"?w=o.current:w=wL(E);var O,R=kC(w,g);v===ua?O=R[0]:v===da?O=R[R.length-1]:O=Ip(w,g,E,$.offset),x(O);}else if($.inlineTrigger)l(C);else if($.offset>0)l(C,!0),f(),u.current=pt(function(){y();var P=E.getAttribute("aria-controls"),T=document.getElementById(P),N=Ip(T,g);x(N);},5);else if($.offset<0){var A=a(C,!0),_=A[A.length-2],I=p.get(_);l(_,!1),x(I);}}c==null||c(h);}}function EL(e){Promise.resolve().then(e);}var Sh="__RC_UTIL_PATH_SPLIT__",Pp=function(t){return t.join(Sh)},OL=function(t){return t.split(Sh)},Tf="rc-menu-more";function IL(){var e=m__namespace.useState({}),t=G(e,2),n=t[1],r=m.useRef(new Map),o=m.useRef(new Map),i=m__namespace.useState([]),a=G(i,2),s=a[0],l=a[1],c=m.useRef(0),u=m.useRef(!1),d=function(){u.current||n({});},f=m.useCallback(function(S,E){var C=Pp(E);o.current.set(C,S),r.current.set(S,C),c.current+=1;var $=c.current;EL(function(){$===c.current&&d();});},[]),h=m.useCallback(function(S,E){var C=Pp(E);o.current.delete(C),r.current.delete(S);},[]),v=m.useCallback(function(S){l(S);},[]),g=m.useCallback(function(S,E){var C=r.current.get(S)||"",$=OL(C);return E&&s.includes($[0])&&$.unshift(Tf),$},[s]),p=m.useCallback(function(S,E){return S.some(function(C){var $=g(C,!0);return $.includes(E)})},[g]),b=function(){var E=Qe(r.current.keys());return s.length&&E.push(Tf),E},y=m.useCallback(function(S){var E="".concat(r.current.get(S)).concat(Sh),C=new Set;return Qe(o.current.keys()).forEach(function($){$.startsWith(E)&&C.add(o.current.get($));}),C},[]);return m__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:f,unregisterPath:h,refreshOverflowKeys:v,isSubPathKey:p,getKeyPath:g,getKeys:b,getSubPathKeys:y}}function ba(e){var t=m__namespace.useRef(e);t.current=e;var n=m__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var PL=Math.random().toFixed(5).toString().slice(2),Rp=0;function RL(e){var t=Dt(e,{value:e}),n=G(t,2),r=n[0],o=n[1];return m__namespace.useEffect(function(){Rp+=1;var i="".concat(PL,"-").concat(Rp);o("rc-menu-uuid-".concat(i));},[]),r}function AC(e,t,n,r){var o=m__namespace.useContext(ur),i=o.activeKey,a=o.onActive,s=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e);},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e);}),l}function LC(e){var t=m__namespace.useContext(ur),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function DC(e){var t=e.icon,n=e.props,r=e.children,o;return typeof t=="function"?o=m__namespace.createElement(t,Q({},n)):o=t,o||r||null}var _L=["item"];function Dl(e){var t=e.item,n=Je(e,_L);return Object.defineProperty(n,"item",{get:function(){return Ir(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var TL=["title","attribute","elementRef"],ML=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],NL=["active"],kL=function(e){fo(n,e);var t=mo(n);function n(){return Cn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,s=o.elementRef,l=Je(o,TL),c=yn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ir(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m__namespace.createElement(wr.Item,Oe({},a,{title:typeof i=="string"?i:void 0},c,{ref:s}))}}]),n}(m__namespace.Component),AL=m__namespace.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey;e.warnKey;var a=e.disabled,s=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,h=e.onKeyDown,v=e.onFocus,g=Je(e,ML),p=RC(i),b=m__namespace.useContext(ur),y=b.prefixCls,S=b.onItemClick,E=b.disabled,C=b.overflowDisabled,$=b.itemIcon,x=b.selectedKeys,w=b.onActive,O=m__namespace.useContext(Ch),R=O._internalRenderMenuItem,A="".concat(y,"-item"),_=m__namespace.useRef(),I=m__namespace.useRef(),P=E||a,T=ls(t,I),N=Ji(i),M=function(oe){return {key:i,keyPath:Qe(N).reverse(),item:_.current,domEvent:oe}},L=s||$,z=AC(i,P,u,d),H=z.active,W=Je(z,NL),B=x.includes(i),V=LC(N.length),j=function(oe){if(!P){var ue=M(oe);f==null||f(Dl(ue)),S(ue);}},K=function(oe){if(h==null||h(oe),oe.which===le.ENTER){var ue=M(oe);f==null||f(Dl(ue)),S(ue);}},te=function(oe){w(i),v==null||v(oe);},q={};e.role==="option"&&(q["aria-selected"]=B);var U=m__namespace.createElement(kL,Oe({ref:_,elementRef:T,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":C&&p?null:p},g,W,q,{component:"li","aria-disabled":a,style:Q(Q({},V),r),className:F(A,(n={},Z(n,"".concat(A,"-active"),H),Z(n,"".concat(A,"-selected"),B),Z(n,"".concat(A,"-disabled"),P),n),o),onClick:j,onKeyDown:K,onFocus:te}),l,m__namespace.createElement(DC,{props:Q(Q({},e),{},{isSelected:B}),icon:L}));return R&&(U=R(U,e,{selected:B})),U});function LL(e,t){var n=e.eventKey,r=Kc(),o=Ji(n);return m__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:m__namespace.createElement(AL,Oe({},e,{ref:t}))}const gs=m__namespace.forwardRef(LL);var DL=["className","children"],zL=function(t,n){var r=t.className,o=t.children,i=Je(t,DL),a=m__namespace.useContext(ur),s=a.prefixCls,l=a.mode,c=a.rtl;return m__namespace.createElement("ul",Oe({className:F(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},wh=m__namespace.forwardRef(zL);wh.displayName="SubMenuList";function xh(e,t){return cr(e).map(function(n,r){if(m__namespace.isValidElement(n)){var o,i,a=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,l=s==null;l&&(s="tmp_key-".concat([].concat(Qe(t),[r]).join("-")));var c={key:s,eventKey:s};return m__namespace.cloneElement(n,c)}return n})}var gn={adjustX:1,adjustY:1},jL={topLeft:{points:["bl","tl"],overflow:gn},topRight:{points:["br","tr"],overflow:gn},bottomLeft:{points:["tl","bl"],overflow:gn},bottomRight:{points:["tr","br"],overflow:gn},leftTop:{points:["tr","tl"],overflow:gn},leftBottom:{points:["br","bl"],overflow:gn},rightTop:{points:["tl","tr"],overflow:gn},rightBottom:{points:["bl","br"],overflow:gn}},BL={topLeft:{points:["bl","tl"],overflow:gn},topRight:{points:["br","tr"],overflow:gn},bottomLeft:{points:["tl","bl"],overflow:gn},bottomRight:{points:["tr","br"],overflow:gn},rightTop:{points:["tr","tl"],overflow:gn},rightBottom:{points:["br","bl"],overflow:gn},leftTop:{points:["tl","tr"],overflow:gn},leftBottom:{points:["bl","br"],overflow:gn}};function zC(e,t,n){if(t)return t;if(n)return n[e]||n.other}var HL={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function FL(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupClassName,a=e.popupOffset,s=e.disabled,l=e.mode,c=e.onVisibleChange,u=m__namespace.useContext(ur),d=u.getPopupContainer,f=u.rtl,h=u.subMenuOpenDelay,v=u.subMenuCloseDelay,g=u.builtinPlacements,p=u.triggerSubMenuAction,b=u.forceSubMenuRender,y=u.rootClassName,S=u.motion,E=u.defaultMotions,C=m__namespace.useState(!1),$=G(C,2),x=$[0],w=$[1],O=Q(f?Q({},BL):Q({},jL),g),R=HL[l],A=zC(l,S,E),_=m__namespace.useRef(A);l!=="inline"&&(_.current=A);var I=Q(Q({},_.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=m__namespace.useRef();return m__namespace.useEffect(function(){return P.current=pt(function(){w(n);}),function(){pt.cancel(P.current);}},[n]),m__namespace.createElement(_c,{prefixCls:t,popupClassName:F("".concat(t,"-popup"),Z({},"".concat(t,"-rtl"),f),i,y),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:O,popupPlacement:R,popupVisible:x,popup:o,popupAlign:a&&{offset:a},action:s?[]:[p],mouseEnterDelay:h,mouseLeaveDelay:v,onPopupVisibleChange:c,forceRender:b,popupMotion:I},r)}function WL(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=m__namespace.useContext(ur),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,f=m__namespace.useRef(!1);f.current=d===i;var h=m__namespace.useState(!f.current),v=G(h,2),g=v[0],p=v[1],b=f.current?n:!1;m__namespace.useEffect(function(){f.current&&p(!1);},[d]);var y=Q({},zC(i,c,u));r.length>1&&(y.motionAppear=!1);var S=y.onVisibleChanged;return y.onVisibleChanged=function(E){return !f.current&&!E&&p(!0),S==null?void 0:S(E)},g?null:m__namespace.createElement(Xa,{mode:i,locked:!f.current},m__namespace.createElement(ho,Oe({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(E){var C=E.className,$=E.style;return m__namespace.createElement(wh,{id:t,className:C,style:$},o)}))}var VL=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],UL=["active"],KL=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,f=t.popupClassName,h=t.popupOffset,v=t.onClick,g=t.onMouseEnter,p=t.onMouseLeave,b=t.onTitleClick,y=t.onTitleMouseEnter,S=t.onTitleMouseLeave,E=Je(t,VL),C=RC(a),$=m__namespace.useContext(ur),x=$.prefixCls,w=$.mode,O=$.openKeys,R=$.disabled,A=$.overflowDisabled,_=$.activeKey,I=$.selectedKeys,P=$.itemIcon,T=$.expandIcon,N=$.onItemClick,M=$.onOpenChange,L=$.onActive,z=m__namespace.useContext(Ch),H=z._internalRenderSubMenuItem,W=m__namespace.useContext(MC),B=W.isSubPathKey,V=Ji(),j="".concat(x,"-submenu"),K=R||s,te=m__namespace.useRef(),q=m__namespace.useRef(),U=u||P,X=d||T,oe=O.includes(a),ue=!A&&oe,ve=B(I,a),re=AC(a,K,y,S),ae=re.active,ce=Je(re,UL),Y=m__namespace.useState(!1),ne=G(Y,2),J=ne[0],fe=ne[1],me=function(Ne){K||fe(Ne);},ye=function(Ne){me(!0),g==null||g({key:a,domEvent:Ne});},Re=function(Ne){me(!1),p==null||p({key:a,domEvent:Ne});},He=m__namespace.useMemo(function(){return ae||(w!=="inline"?J||B([_],a):!1)},[w,ae,_,J,a,B]),Te=LC(V.length),ie=function(Ne){K||(b==null||b({key:a,domEvent:Ne}),w==="inline"&&M(a,!oe));},he=ba(function($e){v==null||v(Dl($e)),N($e);}),pe=function(Ne){w!=="inline"&&M(a,Ne);},we=function(){L(a);},De=C&&"".concat(C,"-popup"),Ae=m__namespace.createElement("div",Oe({role:"menuitem",style:Te,className:"".concat(j,"-title"),tabIndex:K?null:-1,ref:te,title:typeof i=="string"?i:null,"data-menu-id":A&&C?null:C,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":De,"aria-disabled":K,onClick:ie,onFocus:we},ce),i,m__namespace.createElement(DC,{icon:w!=="horizontal"?X:null,props:Q(Q({},t),{},{isOpen:ue,isSubMenu:!0})},m__namespace.createElement("i",{className:"".concat(j,"-arrow")}))),xe=m__namespace.useRef(w);if(w!=="inline"&&V.length>1?xe.current="vertical":xe.current=w,!A){var Ie=xe.current;Ae=m__namespace.createElement(FL,{mode:Ie,prefixCls:j,visible:!l&&ue&&w!=="inline",popupClassName:f,popupOffset:h,popup:m__namespace.createElement(Xa,{mode:Ie==="horizontal"?"vertical":Ie},m__namespace.createElement(wh,{id:De,ref:q},c)),disabled:K,onVisibleChange:pe},Ae);}var Fe=m__namespace.createElement(wr.Item,Oe({role:"none"},E,{component:"li",style:r,className:F(j,"".concat(j,"-").concat(w),o,(n={},Z(n,"".concat(j,"-open"),ue),Z(n,"".concat(j,"-active"),He),Z(n,"".concat(j,"-selected"),ve),Z(n,"".concat(j,"-disabled"),K),n)),onMouseEnter:ye,onMouseLeave:Re}),Ae,!A&&m__namespace.createElement(WL,{id:De,open:ue,keyPath:V},c));return H&&(Fe=H(Fe,t,{selected:ve,active:He,open:ue,disabled:K})),m__namespace.createElement(Xa,{onItemClick:he,mode:w==="horizontal"?"vertical":w,itemIcon:U,expandIcon:X},Fe)};function Gc(e){var t=e.eventKey,n=e.children,r=Ji(t),o=xh(n,r),i=Kc();m__namespace.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r);}},[r]);var a;return i?a=o:a=m__namespace.createElement(KL,e,o),m__namespace.createElement(TC.Provider,{value:r},a)}var GL=["className","title","eventKey","children"],XL=["children"],qL=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=Je(t,GL),a=m__namespace.useContext(ur),s=a.prefixCls,l="".concat(s,"-item-group");return m__namespace.createElement("li",Oe({role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:F(l,n)}),m__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),m__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function Xc(e){var t=e.children,n=Je(e,XL),r=Ji(n.eventKey),o=xh(t,r),i=Kc();return i?o:m__namespace.createElement(qL,yn(n,["warnKey"]),o)}function $h(e){var t=e.className,n=e.style,r=m__namespace.useContext(ur),o=r.prefixCls,i=Kc();return i?null:m__namespace.createElement("li",{className:F("".concat(o,"-item-divider"),t),style:n})}var YL=["label","children","key","type"];function Mf(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=Je(r,YL),c=a??"tmp-".concat(n);return i||s==="group"?s==="group"?m__namespace.createElement(Xc,Oe({key:c},l,{title:o}),Mf(i)):m__namespace.createElement(Gc,Oe({key:c},l,{title:o}),Mf(i)):s==="divider"?m__namespace.createElement($h,Oe({key:c},l)):m__namespace.createElement(gs,Oe({key:c},l),o)}return null}).filter(function(t){return t})}function ZL(e,t,n){var r=e;return t&&(r=Mf(t)),xh(r,n)}var QL=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],si=[],JL=m__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,f=o.items,h=o.children,v=o.direction,g=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,R=o.defaultOpenKeys,A=o.openKeys,_=o.activeKey,I=o.defaultActiveFirst,P=o.selectable,T=P===void 0?!0:P,N=o.multiple,M=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,K=o.defaultMotions,te=o.triggerSubMenuAction,q=te===void 0?"hover":te,U=o.builtinPlacements,X=o.itemIcon,oe=o.expandIcon,ue=o.overflowedIndicator,ve=ue===void 0?"...":ue,re=o.overflowedIndicatorPopupClassName,ae=o.getPopupContainer,ce=o.onClick,Y=o.onOpenChange,ne=o.onKeyDown;o.openAnimation,o.openTransitionName;var J=o._internalRenderMenuItem,fe=o._internalRenderSubMenuItem,me=Je(o,QL),ye=m__namespace.useMemo(function(){return ZL(h,f,si)},[h,f]),Re=m__namespace.useState(!1),He=G(Re,2),Te=He[0],ie=He[1],he=m__namespace.useRef(),pe=RL(g),we=v==="rtl",De=Dt(R,{value:A,postState:function(vt){return vt||si}}),Ae=G(De,2),xe=Ae[0],Ie=Ae[1],Fe=function(vt){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Be(){Ie(vt),Y==null||Y(vt);}je?s0.flushSync(Be):Be();},$e=m__namespace.useState(xe),Ne=G($e,2),tt=Ne[0],ct=Ne[1],qe=m__namespace.useRef(!1),ut=m__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),Pe=G(ut,2),de=Pe[0],Se=Pe[1],ee=de==="inline",be=m__namespace.useState(de),_e=G(be,2),Ye=_e[0],Le=_e[1],ge=m__namespace.useState(Se),Ee=G(ge,2),Me=Ee[0],ke=Ee[1];m__namespace.useEffect(function(){Le(de),ke(Se),qe.current&&(ee?Ie(tt):Fe(si));},[de,Se]);var st=m__namespace.useState(0),et=G(st,2),St=et[0],Bt=et[1],Ht=St>=ye.length-1||Ye!=="horizontal"||E;m__namespace.useEffect(function(){ee&&ct(xe);},[xe]),m__namespace.useEffect(function(){return qe.current=!0,function(){qe.current=!1;}},[]);var Ge=IL(),Ze=Ge.registerPath,Ue=Ge.unregisterPath,mt=Ge.refreshOverflowKeys,ht=Ge.isSubPathKey,_t=Ge.getKeyPath,Xe=Ge.getKeys,We=Ge.getSubPathKeys,dt=m__namespace.useMemo(function(){return {registerPath:Ze,unregisterPath:Ue}},[Ze,Ue]),Et=m__namespace.useMemo(function(){return {isSubPathKey:ht}},[ht]);m__namespace.useEffect(function(){mt(Ht?si:ye.slice(St+1).map(function(Ot){return Ot.key}));},[St,Ht]);var en=Dt(_||I&&((n=ye[0])===null||n===void 0?void 0:n.key),{value:_}),Nt=G(en,2),cn=Nt[0],hr=Nt[1],nr=ba(function(Ot){hr(Ot);}),Xr=ba(function(){hr(void 0);});m.useImperativeHandle(t,function(){return {list:he.current,focus:function(vt){var je,Be=cn??((je=ye.find(function(tn){return !tn.props.disabled}))===null||je===void 0?void 0:je.key);if(Be){var bt,kt,It;(bt=he.current)===null||bt===void 0||(kt=bt.querySelector("li[data-menu-id='".concat(yh(pe,Be),"']")))===null||kt===void 0||(It=kt.focus)===null||It===void 0||It.call(kt,vt);}}}});var vo=Dt(L||[],{value:z,postState:function(vt){return Array.isArray(vt)?vt:vt==null?si:[vt]}}),wn=G(vo,2),_n=wn[0],go=wn[1],An=function(vt){if(T){var je=vt.key,Be=_n.includes(je),bt;M?Be?bt=_n.filter(function(It){return It!==je}):bt=[].concat(Qe(_n),[je]):bt=[je],go(bt);var kt=Q(Q({},vt),{},{selectedKeys:bt});Be?W==null||W(kt):H==null||H(kt);}!M&&xe.length&&Ye!=="inline"&&Fe(si);},xn=ba(function(Ot){ce==null||ce(Dl(Ot)),An(Ot);}),Tn=ba(function(Ot,vt){var je=xe.filter(function(bt){return bt!==Ot});if(vt)je.push(Ot);else if(Ye!=="inline"){var Be=We(Ot);je=je.filter(function(bt){return !Be.has(bt)});}$c(xe,je,!0)||Fe(je,!0);}),Rr=function(vt,je){var Be=je??!xe.includes(vt);Tn(vt,Be);},Vn=$L(Ye,cn,we,pe,he,Xe,_t,hr,Rr,ne);m__namespace.useEffect(function(){ie(!0);},[]);var Un=m__namespace.useMemo(function(){return {_internalRenderMenuItem:J,_internalRenderSubMenuItem:fe}},[J,fe]),qr=Ye!=="horizontal"||E?ye:ye.map(function(Ot,vt){return m__namespace.createElement(Xa,{key:Ot.key,overflowDisabled:vt>St},Ot)}),po=m__namespace.createElement(wr,Oe({id:g,ref:he,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:gs,className:F(a,"".concat(a,"-root"),"".concat(a,"-").concat(Ye),c,(r={},Z(r,"".concat(a,"-inline-collapsed"),Me),Z(r,"".concat(a,"-rtl"),we),r),s),dir:v,style:l,role:"menu",tabIndex:d,data:qr,renderRawItem:function(vt){return vt},renderRawRest:function(vt){var je=vt.length,Be=je?ye.slice(-je):null;return m__namespace.createElement(Gc,{eventKey:Tf,title:ve,disabled:Ht,internalPopupClose:je===0,popupClassName:re},Be)},maxCount:Ye!=="horizontal"||E?wr.INVALIDATE:wr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(vt){Bt(vt);},onKeyDown:Vn},me));return m__namespace.createElement(Ch.Provider,{value:Un},m__namespace.createElement(PC.Provider,{value:pe},m__namespace.createElement(Xa,{prefixCls:a,rootClassName:s,mode:Ye,openKeys:xe,rtl:we,disabled:S,motion:Te?j:null,defaultMotions:Te?K:null,activeKey:cn,onActive:nr,onInactive:Xr,selectedKeys:_n,inlineIndent:V,subMenuOpenDelay:$,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:U,triggerSubMenuAction:q,getPopupContainer:ae,itemIcon:X,expandIcon:oe,onItemClick:xn,onOpenChange:Tn},m__namespace.createElement(MC.Provider,{value:Et},po),m__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},m__namespace.createElement(_C.Provider,{value:dt},ye)))))}),ea=JL;ea.Item=gs;ea.SubMenu=Gc;ea.ItemGroup=Xc;ea.Divider=$h;function e5(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,f=e.editable,h=e.tabBarGutter,v=e.rtl,g=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,S=m.useState(!1),E=G(S,2),C=E[0],$=E[1],x=m.useState(null),w=G(x,2),O=w[0],R=w[1],A="".concat(r,"-more-popup"),_="".concat(n,"-dropdown"),I=O!==null?"".concat(A,"-").concat(O):null,P=i==null?void 0:i.dropdownAriaLabel;function T(B,V){B.preventDefault(),B.stopPropagation(),f.onEdit("remove",{key:V,event:B});}var N=m__namespace.createElement(ea,{onClick:function(V){var j=V.key,K=V.domEvent;p(j,K),$(!1);},prefixCls:"".concat(_,"-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,K=B.closeIcon,te=B.key,q=B.label,U=wC(V,K,f,j);return m__namespace.createElement(gs,{key:te,id:"".concat(A,"-").concat(te),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(te),disabled:j},m__namespace.createElement("span",null,q),U&&m__namespace.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(_,"-menu-item-remove"),onClick:function(oe){oe.stopPropagation(),T(oe,te);}},K||f.removeIcon||"×"))}));function M(B){for(var V=o.filter(function(U){return !U.disabled}),j=V.findIndex(function(U){return U.key===O})||0,K=V.length,te=0;te<K;te+=1){j=(j+B+K)%K;var q=V[j];if(!q.disabled){R(q.key);return}}}function L(B){var V=B.which;if(!C){[le.DOWN,le.SPACE,le.ENTER].includes(V)&&($(!0),B.preventDefault());return}switch(V){case le.UP:M(-1),B.preventDefault();break;case le.DOWN:M(1),B.preventDefault();break;case le.ESC:$(!1);break;case le.SPACE:case le.ENTER:O!==null&&p(O,B);break}}m.useEffect(function(){var B=document.getElementById(I);B&&B.scrollIntoView&&B.scrollIntoView(!1);},[O]),m.useEffect(function(){C||R(null);},[C]);var z=Z({},v?"marginRight":"marginLeft",h);o.length||(z.visibility="hidden",z.order=1);var H=F(Z({},"".concat(_,"-rtl"),v)),W=a?null:m__namespace.createElement($C,{prefixCls:_,overlay:N,trigger:["hover"],visible:o.length?C:!1,transitionName:c,onVisibleChange:$,overlayClassName:F(H,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},m__namespace.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:z,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":A,id:"".concat(r,"-more"),"aria-expanded":C,onKeyDown:L},l));return m__namespace.createElement("div",{className:F("".concat(n,"-nav-operations"),d),style:u,ref:t},W,m__namespace.createElement(xC,{prefixCls:n,locale:i,editable:f}))}const t5=m__namespace.memo(m__namespace.forwardRef(e5),function(e,t){return t.tabMoving});function n5(e){var t,n=e.prefixCls,r=e.id,o=e.active,i=e.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=e.closable,d=e.renderWrapper,f=e.removeAriaLabel,h=e.editable,v=e.onClick,g=e.onFocus,p=e.style,b="".concat(n,"-tab"),y=wC(u,c,h,l);function S($){l||v($);}function E($){$.preventDefault(),$.stopPropagation(),h.onEdit("remove",{key:a,event:$});}var C=m__namespace.createElement("div",{key:a,"data-node-key":SC(a),className:F(b,(t={},Z(t,"".concat(b,"-with-remove"),y),Z(t,"".concat(b,"-active"),o),Z(t,"".concat(b,"-disabled"),l),t)),style:p,onClick:S},m__namespace.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(x){x.stopPropagation(),S(x);},onKeyDown:function(x){[le.SPACE,le.ENTER].includes(x.which)&&(x.preventDefault(),S(x));},onFocus:g},s),y&&m__namespace.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(x){x.stopPropagation(),E(x);}},c||h.removeIcon||"×"));return d?d(C):C}var li=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;return [o,a]},Us=function(t,n){return t[n?0:1]};function r5(e,t){var n,r=m__namespace.useContext(Uc),o=r.prefixCls,i=r.tabs,a=e.className,s=e.style,l=e.id,c=e.animated,u=e.activeKey,d=e.rtl,f=e.extra,h=e.editable,v=e.locale,g=e.tabPosition,p=e.tabBarGutter,b=e.children,y=e.onTabClick,S=e.onTabScroll,E=m.useRef(),C=m.useRef(),$=m.useRef(),x=m.useRef(),w=m.useRef(),O=m.useRef(),R=m.useRef(),A=g==="top"||g==="bottom",_=yp(0,function(Xe,We){A&&S&&S({direction:Xe>We?"left":"right"});}),I=G(_,2),P=I[0],T=I[1],N=yp(0,function(Xe,We){!A&&S&&S({direction:Xe>We?"top":"bottom"});}),M=G(N,2),L=M[0],z=M[1],H=m.useState([0,0]),W=G(H,2),B=W[0],V=W[1],j=m.useState([0,0]),K=G(j,2),te=K[0],q=K[1],U=m.useState([0,0]),X=G(U,2),oe=X[0],ue=X[1],ve=m.useState([0,0]),re=G(ve,2),ae=re[0],ce=re[1],Y=qA(new Map),ne=G(Y,2),J=ne[0],fe=ne[1],me=KA(i,J,te[0]),ye=Us(B,A),Re=Us(te,A),He=Us(oe,A),Te=Us(ae,A),ie=ye<Re+He,he=ie?ye-Te:ye-He,pe="".concat(o,"-nav-operations-hidden"),we=0,De=0;A&&d?(we=0,De=Math.max(0,Re-he)):(we=Math.min(0,he-Re),De=0);function Ae(Xe){return Xe<we?we:Xe>De?De:Xe}var xe=m.useRef(),Ie=m.useState(),Fe=G(Ie,2),$e=Fe[0],Ne=Fe[1];function tt(){Ne(Date.now());}function ct(){window.clearTimeout(xe.current);}XA(x,function(Xe,We){function dt(Et,en){Et(function(Nt){var cn=Ae(Nt+en);return cn});}return ie?(A?dt(T,Xe):dt(z,We),ct(),tt(),!0):!1}),m.useEffect(function(){return ct(),$e&&(xe.current=window.setTimeout(function(){Ne(0);},100)),ct},[$e]);var qe=YA(me,he,A?P:L,Re,He,Te,Q(Q({},e),{},{tabs:i})),ut=G(qe,2),Pe=ut[0],de=ut[1],Se=Mn(function(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,We=me.get(Xe)||{width:0,height:0,left:0,right:0,top:0};if(A){var dt=P;d?We.right<P?dt=We.right:We.right+We.width>P+he&&(dt=We.right+We.width-he):We.left<-P?dt=-We.left:We.left+We.width>-P+he&&(dt=-(We.left+We.width-he)),z(0),T(Ae(dt));}else {var Et=L;We.top<-L?Et=-We.top:We.top+We.height>-L+he&&(Et=-(We.top+We.height-he)),T(0),z(Ae(Et));}}),ee={};g==="top"||g==="bottom"?ee[d?"marginRight":"marginLeft"]=p:ee.marginTop=p;var be=i.map(function(Xe,We){var dt=Xe.key;return m__namespace.createElement(n5,{id:l,prefixCls:o,key:dt,tab:Xe,style:We===0?void 0:ee,closable:Xe.closable,editable:h,active:dt===u,renderWrapper:b,removeAriaLabel:v==null?void 0:v.removeAriaLabel,onClick:function(en){y(dt,en);},onFocus:function(){Se(dt),tt(),x.current&&(d||(x.current.scrollLeft=0),x.current.scrollTop=0);}})}),_e=function(){return fe(function(){var We=new Map;return i.forEach(function(dt){var Et,en=dt.key,Nt=(Et=w.current)===null||Et===void 0?void 0:Et.querySelector('[data-node-key="'.concat(SC(en),'"]'));Nt&&We.set(en,{width:Nt.offsetWidth,height:Nt.offsetHeight,left:Nt.offsetLeft,top:Nt.offsetTop});}),We})};m.useEffect(function(){_e();},[i.map(function(Xe){return Xe.key}).join("_")]);var Ye=CC(function(){var Xe=li(E),We=li(C),dt=li($);V([Xe[0]-We[0]-dt[0],Xe[1]-We[1]-dt[1]]);var Et=li(R);ue(Et);var en=li(O);ce(en);var Nt=li(w);q([Nt[0]-Et[0],Nt[1]-Et[1]]),_e();}),Le=i.slice(0,Pe),ge=i.slice(de+1),Ee=[].concat(Qe(Le),Qe(ge)),Me=m.useState(),ke=G(Me,2),st=ke[0],et=ke[1],St=me.get(u),Bt=m.useRef();function Ht(){pt.cancel(Bt.current);}m.useEffect(function(){var Xe={};return St&&(A?(d?Xe.right=St.right:Xe.left=St.left,Xe.width=St.width):(Xe.top=St.top,Xe.height=St.height)),Ht(),Bt.current=pt(function(){et(Xe);}),Ht},[St,A,d]),m.useEffect(function(){Se();},[u,we,De,xp(St),xp(me),A]),m.useEffect(function(){Ye();},[d]);var Ge=!!Ee.length,Ze="".concat(o,"-nav-wrap"),Ue,mt,ht,_t;return A?d?(mt=P>0,Ue=P!==De):(Ue=P<0,mt=P!==we):(ht=L<0,_t=L!==we),m__namespace.createElement(Br,{onResize:Ye},m__namespace.createElement("div",{ref:ls(t,E),role:"tablist",className:F("".concat(o,"-nav"),a),style:s,onKeyDown:function(){tt();}},m__namespace.createElement($p,{ref:C,position:"left",extra:f,prefixCls:o}),m__namespace.createElement("div",{className:F(Ze,(n={},Z(n,"".concat(Ze,"-ping-left"),Ue),Z(n,"".concat(Ze,"-ping-right"),mt),Z(n,"".concat(Ze,"-ping-top"),ht),Z(n,"".concat(Ze,"-ping-bottom"),_t),n)),ref:x},m__namespace.createElement(Br,{onResize:Ye},m__namespace.createElement("div",{ref:w,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(P,"px, ").concat(L,"px)"),transition:$e?"none":void 0}},be,m__namespace.createElement(xC,{ref:R,prefixCls:o,locale:v,editable:h,style:Q(Q({},be.length===0?void 0:ee),{},{visibility:Ge?"hidden":null})}),m__namespace.createElement("div",{className:F("".concat(o,"-ink-bar"),Z({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:st})))),m__namespace.createElement(t5,Oe({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:O,prefixCls:o,tabs:Ee,className:!Ge&&pe,tabMoving:!!$e})),m__namespace.createElement($p,{ref:$,position:"right",extra:f,prefixCls:o})))}const _p=m__namespace.forwardRef(r5);var o5=["renderTabBar"],i5=["label","key"];function a5(e){var t=e.renderTabBar,n=Je(e,o5),r=m__namespace.useContext(Uc),o=r.tabs;if(t){var i=Q(Q({},n),{},{panes:o.map(function(a){var s=a.label,l=a.key,c=Je(a,i5);return m__namespace.createElement(yC,Oe({tab:s,key:l,tabKey:l},c))})});return t(i,_p)}return m__namespace.createElement(_p,n)}function s5(){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=Q({inkBar:!0},at(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var l5=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],Tp=0;function c5(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,f=e.animated,h=e.tabPosition,v=h===void 0?"top":h,g=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,R=e.getPopupContainer,A=e.popupClassName,_=Je(e,l5),I=m__namespace.useMemo(function(){return (s||[]).filter(function(Y){return Y&&at(Y)==="object"&&"key"in Y})},[s]),P=l==="rtl",T=s5(f),N=m.useState(!1),M=G(N,2),L=M[0],z=M[1];m.useEffect(function(){z(Rc());},[]);var H=Dt(function(){var Y;return (Y=I[0])===null||Y===void 0?void 0:Y.key},{value:c,defaultValue:u}),W=G(H,2),B=W[0],V=W[1],j=m.useState(function(){return I.findIndex(function(Y){return Y.key===B})}),K=G(j,2),te=K[0],q=K[1];m.useEffect(function(){var Y=I.findIndex(function(J){return J.key===B});if(Y===-1){var ne;Y=Math.max(0,Math.min(te,I.length-1)),V((ne=I[Y])===null||ne===void 0?void 0:ne.key);}q(Y);},[I.map(function(Y){return Y.key}).join("_"),B,te]);var U=Dt(null,{value:r}),X=G(U,2),oe=X[0],ue=X[1];m.useEffect(function(){r||(ue("rc-tabs-".concat(Tp)),Tp+=1);},[]);function ve(Y,ne){w==null||w(Y,ne);var J=Y!==B;V(Y),J&&(x==null||x(Y));}var re={id:oe,activeKey:B,animated:T,tabPosition:v,rtl:P,mobile:L},ae,ce=Q(Q({},re),{},{editable:d,locale:y,moreIcon:S,moreTransitionName:E,tabBarGutter:g,onTabClick:ve,onTabScroll:O,extra:b,style:p,panes:null,getPopupContainer:R,popupClassName:A});return m__namespace.createElement(Uc.Provider,{value:{tabs:I,prefixCls:i}},m__namespace.createElement("div",Oe({ref:t,id:r,className:F(i,"".concat(i,"-").concat(v),(n={},Z(n,"".concat(i,"-mobile"),L),Z(n,"".concat(i,"-editable"),d),Z(n,"".concat(i,"-rtl"),P),n),a)},_),ae,m__namespace.createElement(a5,Oe({},ce,{renderTabBar:$})),m__namespace.createElement(UA,Oe({destroyInactiveTabPane:C},re,{animated:T}))))}var u5=m__namespace.forwardRef(c5);const d5=()=>null,f5=d5,m5={motionAppear:!1,motionEnter:!0,motionLeave:!0};function h5(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({},m5),{motionName:Tc(e,"switch")})),n}var v5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function g5(e){return e.filter(t=>t)}function p5(e,t){if(e)return e;const n=cr(t).map(r=>{if(m__namespace.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=v5(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return g5(n)}const b5=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}`}}}}},[uo(e,"slide-up"),uo(e,"slide-down")]]},y5=b5,C5=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}}}}}}},S5=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},Mt(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({},Ao),{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"}}})}})}},w5=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}}}}}},x5=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}}}}}},$5=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}},Do(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}}}},E5=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"}}}}},O5=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({},Mt(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}},Do(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),$5(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"}}}}}},I5=Ut("Tabs",e=>{const t=ft(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 [x5(t),E5(t),w5(t),S5(t),C5(t),O5(t),y5(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 P5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const jC=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:f,style:h}=e,v=P5(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:g,moreIcon:p=m__namespace.createElement(bh,null)}=v,{direction:b,tabs:y,getPrefixCls:S,getPopupContainer:E}=m__namespace.useContext(nt),C=S("tabs",g),[$,x]=I5(C);let w;t==="editable-card"&&(w={onEdit:(P,T)=>{let{key:N,event:M}=T;i==null||i(P==="add"?M:N,P);},removeIcon:m__namespace.createElement(Vc,null),addIcon:l||m__namespace.createElement(WA,null),showAdd:a!==!0});const O=S(),R=p5(d,u),A=h5(C,f),_=Wn(o),I=Object.assign(Object.assign({},y==null?void 0:y.style),h);return $(m__namespace.createElement(u5,Object.assign({direction:b,getPopupContainer:E,moreTransitionName:`${O}-slide-up`},v,{items:R,className:F({[`${C}-${_}`]:_,[`${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})))};jC.TabPane=f5;const R5=jC;var Eh={exports:{}},BC=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return t.apply(n,o)}},_5=BC,Oh=Object.prototype.toString,Ih=function(e){return function(t){var n=Oh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function Ko(e){return e=e.toLowerCase(),function(n){return Ih(n)===e}}function Ph(e){return Array.isArray(e)}function zl(e){return typeof e>"u"}function T5(e){return e!==null&&!zl(e)&&e.constructor!==null&&!zl(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var HC=Ko("ArrayBuffer");function M5(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&HC(e.buffer),t}function N5(e){return typeof e=="string"}function k5(e){return typeof e=="number"}function FC(e){return e!==null&&typeof e=="object"}function cl(e){if(Ih(e)!=="object")return !1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var A5=Ko("Date"),L5=Ko("File"),D5=Ko("Blob"),z5=Ko("FileList");function Rh(e){return Oh.call(e)==="[object Function]"}function j5(e){return FC(e)&&Rh(e.pipe)}function B5(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Oh.call(e)===t||Rh(e.toString)&&e.toString()===t)}var H5=Ko("URLSearchParams");function F5(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function W5(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function _h(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Ph(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e);}function Nf(){var e={};function t(o,i){cl(e[i])&&cl(o)?e[i]=Nf(e[i],o):cl(o)?e[i]=Nf({},o):Ph(o)?e[i]=o.slice():e[i]=o;}for(var n=0,r=arguments.length;n<r;n++)_h(arguments[n],t);return e}function V5(e,t,n){return _h(t,function(o,i){n&&typeof o=="function"?e[i]=_5(o,n):e[i]=o;}),e}function U5(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function K5(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n);}function G5(e,t,n){var r,o,i,a={};t=t||{};do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)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 X5(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 q5(e){if(!e)return null;var t=e.length;if(zl(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var Y5=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),ln={isArray:Ph,isArrayBuffer:HC,isBuffer:T5,isFormData:B5,isArrayBufferView:M5,isString:N5,isNumber:k5,isObject:FC,isPlainObject:cl,isUndefined:zl,isDate:A5,isFile:L5,isBlob:D5,isFunction:Rh,isStream:j5,isURLSearchParams:H5,isStandardBrowserEnv:W5,forEach:_h,merge:Nf,extend:V5,trim:F5,stripBOM:U5,inherits:K5,toFlatObject:G5,kindOf:Ih,kindOfTest:Ko,endsWith:X5,toArray:q5,isTypedArray:Y5,isFileList:z5};const Mp=an(ln);var ci=ln;function Np(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Th=function(t,n,r){if(!n)return t;var o;if(r)o=r(n);else if(ci.isURLSearchParams(n))o=n.toString();else {var i=[];ci.forEach(n,function(l,c){l===null||typeof l>"u"||(ci.isArray(l)?c=c+"[]":l=[l],ci.forEach(l,function(d){ci.isDate(d)?d=d.toISOString():ci.isObject(d)&&(d=JSON.stringify(d)),i.push(Np(c)+"="+Np(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 Z5=an(Th);var Q5=ln;function qc(){this.handlers=[];}qc.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};qc.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null);};qc.prototype.forEach=function(t){Q5.forEach(this.handlers,function(r){r!==null&&t(r);});};var J5=qc,e6=ln,t6=function(t,n){e6.forEach(t,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[i]);});},WC=ln;function ki(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);}WC.inherits(ki,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 VC=ki.prototype,UC={};["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){UC[e]={value:e};});Object.defineProperties(ki,UC);Object.defineProperty(VC,"isAxiosError",{value:!0});ki.from=function(e,t,n,r,o,i){var a=Object.create(VC);return WC.toFlatObject(e,a,function(l){return l!==Error.prototype}),ki.call(a,e.message,t,n,r,o),a.name=e.name,i&&Object.assign(a,i),a};var ta=ki,KC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rr=ln;function n6(e,t){t=t||new FormData;var n=[];function r(i){return i===null?"":rr.isDate(i)?i.toISOString():rr.isArrayBuffer(i)||rr.isTypedArray(i)?typeof Blob=="function"?new Blob([i]):Buffer.from(i):i}function o(i,a){if(rr.isPlainObject(i)||rr.isArray(i)){if(n.indexOf(i)!==-1)throw Error("Circular reference detected in "+a);n.push(i),rr.forEach(i,function(l,c){if(!rr.isUndefined(l)){var u=a?a+"."+c:c,d;if(l&&!a&&typeof l=="object"){if(rr.endsWith(c,"{}"))l=JSON.stringify(l);else if(rr.endsWith(c,"[]")&&(d=rr.toArray(l))){d.forEach(function(f){!rr.isUndefined(f)&&t.append(u,r(f));});return}}o(l,u);}}),n.pop();}else t.append(a,r(i));}return o(e),t}var GC=n6,Yu=ta,XC=function(t,n,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?t(r):n(new Yu("Request failed with status code "+r.status,[Yu.ERR_BAD_REQUEST,Yu.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r));};const r6=an(XC);var Zu,kp;function o6(){if(kp)return Zu;kp=1;var e=ln;return Zu=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(){}}}(),Zu}var i6=function(t){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},a6=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},s6=i6,l6=a6,Mh=function(t,n){return t&&!s6(n)?l6(t,n):n};const c6=an(Mh);var Qu=ln,u6=["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"],qC=function(t){var n={},r,o,i;return t&&Qu.forEach(t.split(` `),function(s){if(i=s.indexOf(":"),r=Qu.trim(s.substr(0,i)).toLowerCase(),o=Qu.trim(s.substr(i+1)),r){if(n[r]&&u6.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 d6=an(qC);var Ju,Ap;function f6(){if(Ap)return Ju;Ap=1;var e=ln;return Ju=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}}(),Ju}var ed,Lp;function Yc(){if(Lp)return ed;Lp=1;var e=ta,t=ln;function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError";}return t.inherits(n,e,{__CANCEL__:!0}),ed=n,ed}var td,Dp;function m6(){return Dp||(Dp=1,td=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),td}var nd,zp;function jp(){if(zp)return nd;zp=1;var e=ln,t=XC,n=o6(),r=Th,o=Mh,i=qC,a=f6(),s=KC,l=ta,c=Yc(),u=m6();return nd=function(f){return new Promise(function(v,g){var p=f.data,b=f.headers,y=f.responseType,S;function E(){f.cancelToken&&f.cancelToken.unsubscribe(S),f.signal&&f.signal.removeEventListener("abort",S);}e.isFormData(p)&&e.isStandardBrowserEnv()&&delete b["Content-Type"];var C=new XMLHttpRequest;if(f.auth){var $=f.auth.username||"",x=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";b.Authorization="Basic "+btoa($+":"+x);}var w=o(f.baseURL,f.url);C.open(f.method.toUpperCase(),r(w,f.params,f.paramsSerializer),!0),C.timeout=f.timeout;function O(){if(C){var _="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:_,config:f,request:C};t(function(N){v(N),E();},function(N){g(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&&(g(new l("Request aborted",l.ECONNABORTED,f,C)),C=null);},C.onerror=function(){g(new l("Network Error",l.ERR_NETWORK,f,C,C)),C=null;},C.ontimeout=function(){var I=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",P=f.transitional||s;f.timeoutErrorMessage&&(I=f.timeoutErrorMessage),g(new l(I,P.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,f,C)),C=null;},e.isStandardBrowserEnv()){var R=(f.withCredentials||a(w))&&f.xsrfCookieName?n.read(f.xsrfCookieName):void 0;R&&(b[f.xsrfHeaderName]=R);}"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(f.withCredentials)||(C.withCredentials=!!f.withCredentials),y&&y!=="json"&&(C.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&C.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&C.upload&&C.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(S=function(_){C&&(g(!_||_&&_.type?new c:_),C.abort(),C=null);},f.cancelToken&&f.cancelToken.subscribe(S),f.signal&&(f.signal.aborted?S():f.signal.addEventListener("abort",S))),p||(p=null);var A=u(w);if(A&&["http","https","file"].indexOf(A)===-1){g(new l("Unsupported protocol "+A+":",l.ERR_BAD_REQUEST,f));return}C.send(p);})},nd}var rd,Bp;function h6(){return Bp||(Bp=1,rd=null),rd}var on=ln,Hp=t6,Fp=ta,v6=KC,g6=GC,p6={"Content-Type":"application/x-www-form-urlencoded"};function Wp(e,t){!on.isUndefined(e)&&on.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t);}function b6(){var e;return (typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=jp()),e}function y6(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 Zc={transitional:v6,adapter:b6(),transformRequest:[function(t,n){if(Hp(n,"Accept"),Hp(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 Wp(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 g6(i?{"files[]":t}:t,a&&new a)}else if(r||o==="application/json")return Wp(n,"application/json"),y6(t);return t}],transformResponse:[function(t){var n=this.transitional||Zc.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"?Fp.from(a,Fp.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:h6()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};on.forEach(["delete","get","head"],function(t){Zc.headers[t]={};});on.forEach(["post","put","patch"],function(t){Zc.headers[t]=on.merge(p6);});var Nh=Zc,C6=ln,S6=Nh,w6=function(t,n,r){var o=this||S6;return C6.forEach(r,function(a){t=a.call(o,t,n);}),t},od,Vp;function YC(){return Vp||(Vp=1,od=function(t){return !!(t&&t.__CANCEL__)}),od}var Up=ln,id=w6,x6=YC(),$6=Nh,E6=Yc();function ad(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new E6}var O6=function(t){ad(t),t.headers=t.headers||{},t.data=id.call(t,t.data,t.headers,t.transformRequest),t.headers=Up.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Up.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o];});var n=t.adapter||$6.adapter;return n(t).then(function(o){return ad(t),o.data=id.call(t,o.data,o.headers,t.transformResponse),o},function(o){return x6(o)||(ad(t),o&&o.response&&(o.response.data=id.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},Dn=ln,ZC=function(t,n){n=n||{};var r={};function o(u,d){return Dn.isPlainObject(u)&&Dn.isPlainObject(d)?Dn.merge(u,d):Dn.isPlainObject(d)?Dn.merge({},d):Dn.isArray(d)?d.slice():d}function i(u){if(Dn.isUndefined(n[u])){if(!Dn.isUndefined(t[u]))return o(void 0,t[u])}else return o(t[u],n[u])}function a(u){if(!Dn.isUndefined(n[u]))return o(void 0,n[u])}function s(u){if(Dn.isUndefined(n[u])){if(!Dn.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 Dn.forEach(Object.keys(t).concat(Object.keys(n)),function(d){var f=c[d]||i,h=f(d);Dn.isUndefined(h)&&f!==l||(r[d]=h);}),r},sd,Kp;function QC(){return Kp||(Kp=1,sd={version:"0.27.2"}),sd}var I6=QC().version,no=ta,kh={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){kh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e};});var Gp={};kh.transitional=function(t,n,r){function o(i,a){return "[Axios v"+I6+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return function(i,a,s){if(t===!1)throw new no(o(a," has been removed"+(n?" in "+n:"")),no.ERR_DEPRECATED);return n&&!Gp[a]&&(Gp[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 P6(e,t,n){if(typeof e!="object")throw new no("options must be an object",no.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 no("option "+i+" must be "+l,no.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new no("Unknown option "+i,no.ERR_BAD_OPTION)}}var R6={assertOptions:P6,validators:kh},JC=ln,_6=Th,Xp=J5,qp=O6,Qc=ZC,T6=Mh,eS=R6,ui=eS.validators;function Ai(e){this.defaults=e,this.interceptors={request:new Xp,response:new Xp};}Ai.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Qc(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&&eS.assertOptions(r,{silentJSONParsing:ui.transitional(ui.boolean),forcedJSONParsing:ui.transitional(ui.boolean),clarifyTimeoutError:ui.transitional(ui.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=[qp,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(f){d(f);break}}try{s=qp(c);}catch(f){return Promise.reject(f)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};Ai.prototype.getUri=function(t){t=Qc(this.defaults,t);var n=T6(t.baseURL,t.url);return _6(n,t.params,t.paramsSerializer)};JC.forEach(["delete","get","head","options"],function(t){Ai.prototype[t]=function(n,r){return this.request(Qc(r||{},{method:t,url:n,data:(r||{}).data}))};});JC.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(Qc(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ai.prototype[t]=n(),Ai.prototype[t+"Form"]=n(!0);});var M6=Ai,ld,Yp;function N6(){if(Yp)return ld;Yp=1;var e=Yc();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<s;a++)o._listeners[a](i);o._listeners=null;}}),this.promise.then=function(i){var a,s=new Promise(function(l){o.subscribe(l),a=l;}).then(i);return s.cancel=function(){o.unsubscribe(a);},s},n(function(a){o.reason||(o.reason=new e(a),r(o.reason));});}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r];},t.prototype.unsubscribe=function(r){if(this._listeners){var o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1);}},t.source=function(){var r,o=new t(function(a){r=a;});return {token:o,cancel:r}},ld=t,ld}var cd,Zp;function k6(){return Zp||(Zp=1,cd=function(t){return function(r){return t.apply(null,r)}}),cd}var ud,Qp;function A6(){if(Qp)return ud;Qp=1;var e=ln;return ud=function(n){return e.isObject(n)&&n.isAxiosError===!0},ud}var Jp=ln,L6=BC,ul=M6,D6=ZC,z6=Nh;function tS(e){var t=new ul(e),n=L6(ul.prototype.request,t);return Jp.extend(n,ul.prototype,t),Jp.extend(n,t),n.create=function(o){return tS(D6(e,o))},n}var kn=tS(z6);kn.Axios=ul;kn.CanceledError=Yc();kn.CancelToken=N6();kn.isCancel=YC();kn.VERSION=QC().version;kn.toFormData=GC;kn.AxiosError=ta;kn.Cancel=kn.CanceledError;kn.all=function(t){return Promise.all(t)};kn.spread=k6();kn.isAxiosError=A6();Eh.exports=kn;Eh.exports.default=kn;var j6=Eh.exports,vi=j6;const Jc=an(vi);function B6(e){return function(n){return m__namespace.createElement(Um,{theme:{token:{motion:!1,zIndexPopupBase:0}}},m__namespace.createElement(e,Object.assign({},n)))}}function Ah(e,t,n,r){function o(i){const{prefixCls:a,style:s}=i,l=m__namespace.useRef(null),[c,u]=m__namespace.useState(0),[d,f]=m__namespace.useState(0),[h,v]=Dt(!1,{value:i.open}),{getPrefixCls:g}=m__namespace.useContext(nt),p=g(t||"select",a);m__namespace.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(E=>{const C=E[0].target;u(C.offsetHeight+8),f(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)),m__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},m__namespace.createElement(e,Object.assign({},b)))}return B6(o)}const H6=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return {[t]:Object.assign(Object.assign({},Mt(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}}})}},F6=Ut("Divider",e=>{const t=ft(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return [H6(t)]},{sizePaddingEdgeHorizontal:0});var W6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const V6=e=>{const{getPrefixCls:t,direction:n,divider:r}=m__namespace.useContext(nt),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:f,style:h}=e,v=W6(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=t("divider",o),[p,b]=F6(g),y=a.length>0?`-${a}`:a,S=!!u,E=a==="left"&&s!=null,C=a==="right"&&s!=null,$=F(g,r==null?void 0:r.className,b,`${g}-${i}`,{[`${g}-with-text`]:S,[`${g}-with-text${y}`]:S,[`${g}-dashed`]:!!d,[`${g}-plain`]:!!f,[`${g}-rtl`]:n==="rtl",[`${g}-no-default-orientation-margin-left`]:E,[`${g}-no-default-orientation-margin-right`]:C},l,c),x=m__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(m__namespace.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},v,{role:"separator"}),u&&i!=="vertical"&&m__namespace.createElement("span",{className:`${g}-inner-text`,style:w},u)))},U6=V6;var K6=["b"],G6=["v"],dd=function(t){return Math.round(Number(t||0))},X6=function(t){if(t&&at(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Je(n,K6);return Q(Q({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},jl=function(e){fo(n,e);var t=mo(n);function n(r){return Cn(this,n),t.call(this,X6(r))}return Sn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=dd(o.s*100),a=dd(o.b*100),s=dd(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=Je(i,G6);return Q(Q({},a),{},{b:o.v})}}]),n}(Wt),q6="rc-color-picker",so=function(t){return t instanceof jl?t:new jl(t)},Y6=so("#1677ff"),nS=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,f=u.height,h=d/2,v=f/2,g=(n.x+h)/l,p=1-(n.y+v)/c,b=i.toHsb(),y=g,S=(n.x+h)/l*360;if(a)switch(a){case"hue":return so(Q(Q({},b),{},{h:S<=0?0:S}));case"alpha":return so(Q(Q({},b),{},{a:y<=0?0:y}))}return so({h:b.h,s:g<=0?0:g,b:p>=1?1:p,a:b.a})},rS=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,f=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:-f/3};case"alpha":return {x:h.a/1*a-d,y:-f/3}}return {x:h.s*a-d,y:(1-h.b)*s-f}}},Lh=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(r,"-color-block");return m.createElement("div",{className:F(s,o),style:i,onClick:a},m.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function Z6(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 oS(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=m.useState(t||{x:0,y:0}),d=G(u,2),f=d[0],h=d[1],v=m.useRef(null),g=m.useRef(null),p=m.useRef({flag:!1});m.useEffect(function(){if(p.current.flag===!1){var C=s==null?void 0:s(r);C&&h(C);}},[l,r]),m.useEffect(function(){return function(){document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",g.current),v.current=null,g.current=null;}},[]);var b=function($){var x=Z6($),w=x.pageX,O=x.pageY,R=r.current.getBoundingClientRect(),A=R.x,_=R.y,I=R.width,P=R.height,T=n.current.getBoundingClientRect(),N=T.width,M=T.height,L=N/2,z=M/2,H=Math.max(0,Math.min(w-A,I))-L,W=Math.max(0,Math.min(O-_,P))-z,B={x:H,y:o==="x"?f.y:W};if(N===0&&M===0||N!==M)return !1;h(B),i==null||i(B);},y=function($){$.preventDefault(),b($);},S=function($){$.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",g.current),v.current=null,g.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),v.current=y,g.current=S);};return [f,E]}var iS=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return m.createElement("div",{className:F("".concat(i,"-handler"),Z({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},aS=function(t){var n=t.children,r=t.style,o=t.prefixCls;return m.createElement("div",{className:"".concat(o,"-palette"),style:Q({position:"relative"},r)},n)},sS=m.forwardRef(function(e,t){var n=e.children,r=e.offset;return m.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),Q6=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=m.useRef(),l=m.useRef(),c=m.useRef(n),u=oS({color:n,containerRef:s,targetRef:l,calculate:function(g){return rS(g,l,n)},onDragChange:function(g){var p=nS({offset:g,targetRef:l,containerRef:s,color:n});c.current=p,r(p);},onDragChangeComplete:function(){return i==null?void 0:i(c.current)},disabledDrag:a}),d=G(u,2),f=d[0],h=d[1];return m.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},m.createElement(aS,{prefixCls:o},m.createElement(sS,{offset:f,ref:l},m.createElement(iS,{color:n.toRgbString(),prefixCls:o})),m.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))"}})))},J6=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=m.useMemo(function(){return n.map(function(c,u){var d=so(c);return a==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,a]);return m.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},r)},eb=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,f=m.useRef(),h=m.useRef(),v=m.useRef(a),g=oS({color:a,targetRef:h,containerRef:f,calculate:function(E){return rS(E,h,a,i)},onDragChange:function(E){var C=nS({offset:E,targetRef:h,containerRef:f,color:a,type:i});v.current=C,l(C);},onDragChangeComplete:function(){c==null||c(v.current,i);},direction:"x",disabledDrag:u}),p=G(g,2),b=p[0],y=p[1];return m.createElement("div",{ref:f,className:F("".concat(d,"-slider"),"".concat(d,"-slider-").concat(i)),onMouseDown:y,onTouchStart:y},m.createElement(aS,{prefixCls:d},m.createElement(sS,{offset:b,ref:h},m.createElement(iS,{size:"small",color:s,prefixCls:d})),m.createElement(J6,{colors:n,direction:r,type:i,prefixCls:d})))};function tb(e){return e!==void 0}var eD=function(t,n){var r=n.defaultValue,o=n.value,i=m.useState(function(){var c;return tb(o)?c=o:tb(r)?c=r:c=t,so(c)}),a=G(i,2),s=a[0],l=a[1];return m.useEffect(function(){o&&l(so(o));},[o]),[s,l]},tD=["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 nD=m.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?q6:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=d===void 0?!1:d,h=e.disabled,v=h===void 0?!1:h,g=eD(Y6,{value:n,defaultValue:r}),p=G(g,2),b=p[0],y=p[1],S=m.useMemo(function(){var w=so(b.toRgbString());return w.setAlpha(1),w.toRgbString()},[b]),E=F("".concat(i,"-panel"),l,Z({},"".concat(i,"-panel-disabled"),v)),C={prefixCls:i,onChangeComplete:s,disabled:v},$=function(O,R){n||y(O),a==null||a(O,R);},x=m.createElement(m.Fragment,null,m.createElement(Q6,Oe({color:b,onChange:$},C)),m.createElement("div",{className:"".concat(i,"-slider-container")},m.createElement("div",{className:F("".concat(i,"-slider-group"),Z({},"".concat(i,"-slider-group-disabled-alpha"),f))},m.createElement(eb,Oe({gradientColors:tD,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(O){return $(O,"hue")}},C)),!f&&m.createElement(eb,Oe({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",S],color:b,value:b.toRgbString(),onChange:function(O){return $(O,"alpha")}},C))),m.createElement(Lh,{color:b.toRgbString(),prefixCls:i})));return m.createElement("div",{className:E,style:c,ref:t},typeof u=="function"?u(x):x)}),lS=m.createContext({}),cS=m.createContext({}),{Provider:rD}=lS,{Provider:oD}=cS,dl=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",iD=(e,t)=>e?dl(e,t):"";let nb=function(){function e(t){Cn(this,e),this.metaColor=new jl(t),t||this.metaColor.setAlpha(0);}return Sn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return iD(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 aD="ant-color-picker",bn=e=>e instanceof nb?e:new nb(e),fl=e=>Math.round(Number(e||0)),Bl=e=>fl(e.toHsb().a*100),fd=(e,t)=>{const n=e.toHsb();return n.a=t||1,bn(n)},sD=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 m.createElement("div",{className:`${t}-clear`,onClick:i})},uS=sD;var dS=m__namespace.createContext(null);function lD(){return m__namespace.useContext(dS)}function cD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=m__namespace.useState(!1),n=G(t,2),r=n[0],o=n[1],i=m__namespace.useRef(null),a=function(){window.clearTimeout(i.current);};m__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 fS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=m__namespace.useRef(null),n=m__namespace.useRef(null);m__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 uD(e,t,n,r){var o=m__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},m__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 dD=`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`,fD=`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`,mD="".concat(dD," ").concat(fD).split(/[\s\n]+/),hD="aria-",vD="data-";function rb(e,t){return e.indexOf(t)===0}function Li(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=Q({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||rb(o,hD))||n.data&&rb(o,vD)||n.attr&&mD.includes(o))&&(r[o]=e[o]);}),r}var eu=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,m__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:m__namespace.createElement("span",{className:F(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))},gD=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,f=t.editable,h=t.activeDescendantId,v=t.value,g=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||m__namespace.createElement("input",null),O=w,R=O.ref,A=O.props,_=A.onKeyDown,I=A.onChange,P=A.onMouseDown,T=A.onCompositionStart,N=A.onCompositionEnd,M=A.style;return "maxLength"in w.props,w=m__namespace.cloneElement(w,Q(Q(Q({type:"search"},A),{},{id:a,ref:Pn(n,R),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:f?v:"",maxLength:g,readOnly:!f,unselectable:f?null:"on",style:Q(Q({},M),{},{opacity:f?null:0}),onKeyDown:function(z){p(z),_&&_(z);},onMouseDown:function(z){b(z),P&&P(z);},onChange:function(z){y(z),I&&I(z);},onCompositionStart:function(z){E(z),T&&T(z);},onCompositionEnd:function(z){C(z),N&&N(z);},onPaste:S})),w},Dh=m__namespace.forwardRef(gD);Dh.displayName="Input";function mS(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var pD=typeof window<"u"&&window.document&&window.document.documentElement,bD=pD;function yD(e){return e!=null}function CD(e){return !e&&e!==0}function ob(e){return ["string","number"].includes(at(e))}function hS(e){var t=void 0;return e&&(ob(e.title)?t=e.title.toString():ob(e.label)&&(t=e.label.toString())),t}function SD(e,t){bD?m__namespace.useLayoutEffect(e,t):m__namespace.useEffect(e,t);}function wD(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var ib=function(t){t.preventDefault(),t.stopPropagation();},xD=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,f=t.showSearch,h=t.autoFocus,v=t.autoComplete,g=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,S=t.maxTagTextLength,E=t.maxTagPlaceholder,C=E===void 0?function(re){return "+ ".concat(re.length," ...")}:E,$=t.tagRender,x=t.onToggleOpen,w=t.onRemove,O=t.onInputChange,R=t.onInputPaste,A=t.onInputKeyDown,_=t.onInputMouseDown,I=t.onInputCompositionStart,P=t.onInputCompositionEnd,T=m__namespace.useRef(null),N=m.useState(0),M=G(N,2),L=M[0],z=M[1],H=m.useState(!1),W=G(H,2),B=W[0],V=W[1],j="".concat(r,"-selection"),K=i||d==="multiple"&&s===!1||d==="tags"?a:"",te=d==="tags"||d==="multiple"&&s===!1||f&&(i||B);SD(function(){z(T.current.scrollWidth);},[K]);function q(re,ae,ce,Y,ne){return m__namespace.createElement("span",{className:F("".concat(j,"-item"),Z({},"".concat(j,"-item-disabled"),ce)),title:hS(re)},m__namespace.createElement("span",{className:"".concat(j,"-item-content")},ae),Y&&m__namespace.createElement(eu,{className:"".concat(j,"-item-remove"),onMouseDown:ib,onClick:ne,customizeIcon:b},"×"))}function U(re,ae,ce,Y,ne){var J=function(me){ib(me),x(!i);};return m__namespace.createElement("span",{onMouseDown:J},$({label:ae,value:re,disabled:ce,closable:Y,onClose:ne}))}function X(re){var ae=re.disabled,ce=re.label,Y=re.value,ne=!u&&!ae,J=ce;if(typeof S=="number"&&(typeof ce=="string"||typeof ce=="number")){var fe=String(J);fe.length>S&&(J="".concat(fe.slice(0,S),"..."));}var me=function(Re){Re&&Re.stopPropagation(),w(re);};return typeof $=="function"?U(Y,J,ae,ne,me):q(re,J,ae,ne,me)}function oe(re){var ae=typeof C=="function"?C(re):C;return q({title:ae},ae,!1)}var ue=m__namespace.createElement("div",{className:"".concat(j,"-search"),style:{width:L},onFocus:function(){V(!0);},onBlur:function(){V(!1);}},m__namespace.createElement(Dh,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:v,editable:te,activeDescendantId:g,value:K,onKeyDown:A,onMouseDown:_,onChange:O,onPaste:R,onCompositionStart:I,onCompositionEnd:P,tabIndex:p,attrs:Li(t,!0)}),m__namespace.createElement("span",{ref:T,className:"".concat(j,"-search-mirror"),"aria-hidden":!0},K," ")),ve=m__namespace.createElement(wr,{prefixCls:"".concat(j,"-overflow"),data:o,renderItem:X,renderRest:oe,suffix:ue,itemKey:wD,maxCount:y});return m__namespace.createElement(m__namespace.Fragment,null,ve,!o.length&&!K&&m__namespace.createElement("span",{className:"".concat(j,"-placeholder")},c))},$D=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,f=t.values,h=t.placeholder,v=t.tabIndex,g=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,R=m__namespace.useState(!1),A=G(R,2),_=A[0],I=A[1],P=u==="combobox",T=P||g,N=f[0],M=p||"";P&&b&&!_&&(M=b),m__namespace.useEffect(function(){P&&I(!1);},[P,b]);var L=u!=="combobox"&&!d&&!g?!1:!!M,z=O===void 0?hS(N):O,H=function(){if(N)return null;var B=L?{visibility:"hidden"}:void 0;return m__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:B},h)};return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("span",{className:"".concat(r,"-selection-search")},m__namespace.createElement(Dh,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:T,activeDescendantId:c,value:M,onKeyDown:S,onMouseDown:E,onChange:function(B){I(!0),C(B);},onPaste:$,onCompositionStart:x,onCompositionEnd:w,tabIndex:v,attrs:Li(t,!0),maxLength:P?y:void 0})),!P&&N?m__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:L?{visibility:"hidden"}:void 0},N.label):null,H())};function ED(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 OD=function(t,n){var r=m.useRef(null),o=m.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,f=t.onSearchSubmit,h=t.onToggleOpen,v=t.onInputKeyDown,g=t.domRef;m__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=fS(0),b=G(p,2),y=b[0],S=b[1],E=function(M){var L=M.which;(L===le.UP||L===le.DOWN)&&M.preventDefault(),v&&v(M),L===le.ENTER&&s==="tags"&&!o.current&&!a&&(f==null||f(M.target.value)),ED(L)&&h(!0);},C=function(){S(!0);},$=m.useRef(null),x=function(M){d(M,!0,o.current)!==!1&&h(!0);},w=function(){o.current=!0;},O=function(M){o.current=!1,s!=="combobox"&&x(M.target.value);},R=function(M){var L=M.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(M){var L=M.clipboardData,z=L.getData("text");$.current=z;},_=function(M){var L=M.target;if(L!==r.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){r.current.focus();}):r.current.focus();}},I=function(M){var L=y();M.target!==r.current&&!L&&s!=="combobox"&&M.preventDefault(),(s!=="combobox"&&(!l||!L)||!a)&&(a&&u!==!1&&d("",!0,!1),h());},P={inputRef:r,onInputKeyDown:E,onInputMouseDown:C,onInputChange:R,onInputPaste:A,onInputCompositionStart:w,onInputCompositionEnd:O},T=s==="multiple"||s==="tags"?m__namespace.createElement(xD,Oe({},t,P)):m__namespace.createElement($D,Oe({},t,P));return m__namespace.createElement("div",{ref:g,className:"".concat(i,"-selector"),onClick:_,onMouseDown:I},T)},vS=m__namespace.forwardRef(OD);vS.displayName="Selector";var ID=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],PD=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"}}},RD=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,f=t.direction,h=f===void 0?"ltr":f,v=t.placement,g=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=Je(t,ID),O="".concat(r,"-dropdown"),R=a;b&&(R=b(a));var A=m__namespace.useMemo(function(){return g||PD(p)},[g,p]),_=l?"".concat(O,"-").concat(l):c,I=m__namespace.useRef(null);m__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return I.current}}});var P=Q({minWidth:s},u);return typeof p=="number"?P.width=p:p&&(P.width=s),m__namespace.createElement(_c,Oe({},w,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:v||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:A,prefixCls:O,popupTransitionName:_,popup:m__namespace.createElement("div",{ref:I,onMouseEnter:x},R),popupAlign:y,popupVisible:o,getPopupContainer:S,popupClassName:F(d,Z({},"".concat(O,"-empty"),E)),popupStyle:P,getTriggerDOMNode:C,onPopupVisibleChange:$}),i)},gS=m__namespace.forwardRef(RD);gS.displayName="SelectTrigger";function ab(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 pS(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 _D(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=pS(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(d,f){d.forEach(function(h){if(f||!(l in h)){var v=h[s];o.push({key:ab(h,o.length),groupOption:f,data:h,label:h[a],value:v});}else {var g=h[c];g===void 0&&r&&(g=h.label),o.push({key:ab(h,o.length),group:!0,data:h,label:g}),u(h[l],!0);}});}return u(e,!1),o}function kf(e){var t=Q({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return Ir(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function TD(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var s=Py(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,f){return [].concat(Qe(d),Qe(r(f,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}function MD(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=m.useMemo(function(){if(at(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=m.useMemo(function(){return !!(!i&&r&&(n.length||a)&&!(s==="combobox"&&a===""))},[r,i,n.length,a,s]);return {allowClear:c,clearIcon:m.createElement(eu,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}var ND=["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"],kD=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Af(e){return e==="tags"||e==="multiple"}var AD=m__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,f=e.onDisplayValuesChange,h=e.emptyOptions,v=e.notFoundContent,g=v===void 0?"Not Found":v,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,R=e.onActiveValueChange,A=e.activeDescendantId,_=e.searchValue,I=e.autoClearSearchValue,P=e.onSearch,T=e.onSearchSplit,N=e.tokenSeparators,M=e.allowClear,L=e.suffixIcon,z=e.clearIcon,H=e.OptionList,W=e.animation,B=e.transitionName,V=e.dropdownStyle,j=e.dropdownClassName,K=e.dropdownMatchSelectWidth,te=e.dropdownRender,q=e.dropdownAlign,U=e.placement,X=e.builtinPlacements,oe=e.getPopupContainer,ue=e.showAction,ve=ue===void 0?[]:ue,re=e.onFocus,ae=e.onBlur,ce=e.onKeyUp,Y=e.onKeyDown,ne=e.onMouseDown,J=Je(e,ND),fe=Af(b),me=(s!==void 0?s:fe)||b==="combobox",ye=Q({},J);kD.forEach(function(je){delete ye[je];}),u==null||u.forEach(function(je){delete ye[je];});var Re=m__namespace.useState(!1),He=G(Re,2),Te=He[0],ie=He[1];m__namespace.useEffect(function(){ie(Rc());},[]);var he=m__namespace.useRef(null),pe=m__namespace.useRef(null),we=m__namespace.useRef(null),De=m__namespace.useRef(null),Ae=m__namespace.useRef(null),xe=cD(),Ie=G(xe,3),Fe=Ie[0],$e=Ie[1],Ne=Ie[2];m__namespace.useImperativeHandle(t,function(){var je,Be;return {focus:(je=De.current)===null||je===void 0?void 0:je.focus,blur:(Be=De.current)===null||Be===void 0?void 0:Be.blur,scrollTo:function(kt){var It;return (It=Ae.current)===null||It===void 0?void 0:It.scrollTo(kt)}}});var tt=m__namespace.useMemo(function(){var je;if(b!=="combobox")return _;var Be=(je=d[0])===null||je===void 0?void 0:je.value;return typeof Be=="string"||typeof Be=="number"?String(Be):""},[_,b,d]),ct=b==="combobox"&&typeof E=="function"&&E()||null,qe=typeof C=="function"&&C(),ut=ls(pe,qe==null||(n=qe.props)===null||n===void 0?void 0:n.ref),Pe=m__namespace.useState(!1),de=G(Pe,2),Se=de[0],ee=de[1];Ft(function(){ee(!0);},[]);var be=Dt(!1,{defaultValue:x,value:$}),_e=G(be,2),Ye=_e[0],Le=_e[1],ge=Se?Ye:!1,Ee=!g&&h;(y||Ee&&ge&&b==="combobox")&&(ge=!1);var Me=Ee?!1:ge,ke=m__namespace.useCallback(function(je){var Be=je!==void 0?je:!ge;y||(Le(Be),ge!==Be&&(w==null||w(Be)));},[y,ge,Le,w]),st=m__namespace.useMemo(function(){return (N||[]).some(function(je){return [` `,`\r `].includes(je)})},[N]),et=function(Be,bt,kt){var It=!0,tn=Be;R==null||R(null);var $n=kt?null:TD(Be,N);return b!=="combobox"&&$n&&(tn="",T==null||T($n),ke(!1),It=!1),P&&tt!==tn&&P(tn,{source:bt?"typing":"effect"}),It},St=function(Be){!Be||!Be.trim()||P(Be,{source:"submit"});};m__namespace.useEffect(function(){!ge&&!fe&&b!=="combobox"&&et("",!1,!1);},[ge]),m__namespace.useEffect(function(){Ye&&y&&Le(!1),y&&$e(!1);},[y]);var Bt=fS(),Ht=G(Bt,2),Ge=Ht[0],Ze=Ht[1],Ue=function(Be){var bt=Ge(),kt=Be.which;if(kt===le.ENTER&&(b!=="combobox"&&Be.preventDefault(),ge||ke(!0)),Ze(!!tt),kt===le.BACKSPACE&&!bt&&fe&&!tt&&d.length){for(var It=Qe(d),tn=null,$n=It.length-1;$n>=0;$n-=1){var _r=It[$n];if(!_r.disabled){It.splice($n,1),tn=_r;break}}tn&&f(It,{type:"remove",values:[tn]});}for(var Kn=arguments.length,En=new Array(Kn>1?Kn-1:0),Yt=1;Yt<Kn;Yt++)En[Yt-1]=arguments[Yt];if(ge&&Ae.current){var bo;(bo=Ae.current).onKeyDown.apply(bo,[Be].concat(En));}Y==null||Y.apply(void 0,[Be].concat(En));},mt=function(Be){for(var bt=arguments.length,kt=new Array(bt>1?bt-1:0),It=1;It<bt;It++)kt[It-1]=arguments[It];if(ge&&Ae.current){var tn;(tn=Ae.current).onKeyUp.apply(tn,[Be].concat(kt));}ce==null||ce.apply(void 0,[Be].concat(kt));},ht=function(Be){var bt=d.filter(function(kt){return kt!==Be});f(bt,{type:"remove",values:[Be]});},_t=m__namespace.useRef(!1),Xe=function(){$e(!0),y||(re&&!_t.current&&re.apply(void 0,arguments),ve.includes("focus")&&ke(!0)),_t.current=!0;},We=function(){$e(!1,function(){_t.current=!1,ke(!1);}),!y&&(tt&&(b==="tags"?P(tt,{source:"submit"}):b==="multiple"&&P("",{source:"blur"})),ae&&ae.apply(void 0,arguments));},dt=[];m__namespace.useEffect(function(){return function(){dt.forEach(function(je){return clearTimeout(je)}),dt.splice(0,dt.length);}},[]);var Et=function(Be){var bt,kt=Be.target,It=(bt=we.current)===null||bt===void 0?void 0:bt.getPopupElement();if(It&&It.contains(kt)){var tn=setTimeout(function(){var En=dt.indexOf(tn);if(En!==-1&&dt.splice(En,1),Ne(),!Te&&!It.contains(document.activeElement)){var Yt;(Yt=De.current)===null||Yt===void 0||Yt.focus();}});dt.push(tn);}for(var $n=arguments.length,_r=new Array($n>1?$n-1:0),Kn=1;Kn<$n;Kn++)_r[Kn-1]=arguments[Kn];ne==null||ne.apply(void 0,[Be].concat(_r));},en=m__namespace.useState(null),Nt=G(en,2),cn=Nt[0],hr=Nt[1],nr=m__namespace.useState({}),Xr=G(nr,2),vo=Xr[1];function wn(){vo({});}Ft(function(){if(Me){var je,Be=Math.ceil((je=he.current)===null||je===void 0?void 0:je.getBoundingClientRect().width);cn!==Be&&!Number.isNaN(Be)&&hr(Be);}},[Me]);var _n;qe&&(_n=function(Be){ke(Be);}),uD(function(){var je;return [he.current,(je=we.current)===null||je===void 0?void 0:je.getPopupElement()]},Me,ke,!!qe);var go=m__namespace.useMemo(function(){return Q(Q({},e),{},{notFoundContent:g,open:ge,triggerOpen:Me,id:o,showSearch:me,multiple:fe,toggleOpen:ke})},[e,g,Me,ge,o,me,fe,ke]),An=!!L||S,xn;An&&(xn=m__namespace.createElement(eu,{className:F("".concat(i,"-arrow"),Z({},"".concat(i,"-arrow-loading"),S)),customizeIcon:L,customizeIconProps:{loading:S,searchValue:tt,open:ge,focused:Fe,showSearch:me}}));var Tn=function(){var Be;p==null||p(),(Be=De.current)===null||Be===void 0||Be.focus(),f([],{type:"clear",values:d}),et("",!1,!1);},Rr=MD(i,Tn,d,M,z,y,tt,b),Vn=Rr.allowClear,Un=Rr.clearIcon,qr=m__namespace.createElement(H,{ref:Ae}),po=F(i,a,(r={},Z(r,"".concat(i,"-focused"),Fe),Z(r,"".concat(i,"-multiple"),fe),Z(r,"".concat(i,"-single"),!fe),Z(r,"".concat(i,"-allow-clear"),M),Z(r,"".concat(i,"-show-arrow"),An),Z(r,"".concat(i,"-disabled"),y),Z(r,"".concat(i,"-loading"),S),Z(r,"".concat(i,"-open"),ge),Z(r,"".concat(i,"-customize-input"),ct),Z(r,"".concat(i,"-show-search"),me),r)),Ot=m__namespace.createElement(gS,{ref:we,disabled:y,prefixCls:i,visible:Me,popupElement:qr,containerWidth:cn,animation:W,transitionName:B,dropdownStyle:V,dropdownClassName:j,direction:c,dropdownMatchSelectWidth:K,dropdownRender:te,dropdownAlign:q,placement:U,builtinPlacements:X,getPopupContainer:oe,empty:h,getTriggerDOMNode:function(){return pe.current},onPopupVisibleChange:_n,onPopupMouseEnter:wn},qe?m__namespace.cloneElement(qe,{ref:ut}):m__namespace.createElement(vS,Oe({},e,{domRef:pe,prefixCls:i,inputElement:ct,ref:De,id:o,showSearch:me,autoClearSearchValue:I,mode:b,activeDescendantId:A,tagRender:l,values:d,open:ge,onToggleOpen:ke,activeValue:O,searchValue:tt,onSearch:et,onSearchSubmit:St,onRemove:ht,tokenWithEnter:st}))),vt;return qe?vt=Ot:vt=m__namespace.createElement("div",Oe({className:po},ye,{ref:he,onMouseDown:Et,onKeyDown:Ue,onKeyUp:mt,onFocus:Xe,onBlur:We}),Fe&&!ge&&m__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map(function(je){var Be=je.label,bt=je.value;return ["number","string"].includes(at(Be))?Be:bt}).join(", "))),Ot,xn,Vn&&Un),m__namespace.createElement(dS.Provider,{value:go},vt)});const LD=function(e,t){var n=m__namespace.useRef({values:new Map,options:new Map}),r=m__namespace.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=e.map(function(d){if(d.label===void 0){var f;return Q(Q({},d),{},{label:(f=a.get(d.value))===null||f===void 0?void 0:f.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value));}),n.current.values=c,n.current.options=u,l},[e,t]),o=m__namespace.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return [r,o]};function md(e,t){return mS(e).join("").toUpperCase().includes(t)}const DD=function(e,t,n,r,o){return m__namespace.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(h,v){return o?md(v[o],u):v[i]?md(v[a!=="children"?a:"label"],u):md(v[s],u)},f=c?function(h){return kf(h)}:function(h){return h};return e.forEach(function(h){if(h[i]){var v=d(n,f(h));if(v)l.push(h);else {var g=h[i].filter(function(p){return d(n,f(p))});g.length&&l.push(Q(Q({},h),{},Z({},i,g)));}return}d(n,f(h))&&l.push(h);}),l},[e,r,o,n,t])};var sb=0,zD=er();function jD(){var e;return zD?(e=sb,sb+=1):e="TEST_OR_SSR",e}function BD(e){var t=m__namespace.useState(),n=G(t,2),r=n[0],o=n[1];return m__namespace.useEffect(function(){o("rc_select_".concat(jD()));},[]),e||r}var HD=["children","value"],FD=["children"];function WD(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=Je(r,HD);return Q({key:n,value:i!==void 0?i:n,children:o},a)}function bS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return cr(e).map(function(n,r){if(!m__namespace.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=Je(s,FD);return t||!i?WD(n):Q(Q({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:bS(l)})}).filter(function(n){return n})}function VD(e,t,n,r,o){return m__namespace.useMemo(function(){var i=e,a=!e;a&&(i=bS(t));var s=new Map,l=new Map,c=function(f,h,v){v&&typeof v=="string"&&f.set(h[v],h);};function u(d){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<d.length;h+=1){var v=d[h];!v[n.options]||f?(s.set(v[n.value],v),c(l,v,n.label),c(l,v,r),c(l,v,o)):u(v[n.options],!0);}}return u(i),{options:i,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function lb(e){var t=m__namespace.useRef();t.current=e;var n=m__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var zh=function(){return null};zh.isSelectOptGroup=!0;var jh=function(){return null};jh.isSelectOption=!0;var yS=m__namespace.forwardRef(function(e,t){var n=e.height,r=e.offset,o=e.children,i=e.prefixCls,a=e.onInnerResize,s=e.innerProps,l={},c={display:"flex",flexDirection:"column"};return r!==void 0&&(l={height:n,position:"relative",overflow:"hidden"},c=Q(Q({},c),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),m__namespace.createElement("div",{style:l},m__namespace.createElement(Br,{onResize:function(d){var f=d.offsetHeight;f&&a&&a();}},m__namespace.createElement("div",Oe({style:c,className:F(Z({},"".concat(i,"-holder-inner"),i)),ref:t},s),o)))});yS.displayName="Filler";var UD=20;function cb(e){return "touches"in e?e.touches[0].pageY:e.pageY}var KD=function(e){fo(n,e);var t=mo(n);function n(){var r;Cn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.moveRaf=null,r.scrollbarRef=m__namespace.createRef(),r.thumbRef=m__namespace.createRef(),r.visibleTimeout=null,r.state={dragging:!1,pageY:null,startTop:null,visible:!1},r.delayHidden=function(){clearTimeout(r.visibleTimeout),r.setState({visible:!0}),r.visibleTimeout=setTimeout(function(){r.setState({visible:!1});},2e3);},r.onScrollbarTouchStart=function(s){s.preventDefault();},r.onContainerMouseDown=function(s){s.stopPropagation(),s.preventDefault();},r.patchEvents=function(){window.addEventListener("mousemove",r.onMouseMove),window.addEventListener("mouseup",r.onMouseUp),r.thumbRef.current.addEventListener("touchmove",r.onMouseMove),r.thumbRef.current.addEventListener("touchend",r.onMouseUp);},r.removeEvents=function(){var s;window.removeEventListener("mousemove",r.onMouseMove),window.removeEventListener("mouseup",r.onMouseUp),(s=r.scrollbarRef.current)===null||s===void 0||s.removeEventListener("touchstart",r.onScrollbarTouchStart),r.thumbRef.current&&(r.thumbRef.current.removeEventListener("touchstart",r.onMouseDown),r.thumbRef.current.removeEventListener("touchmove",r.onMouseMove),r.thumbRef.current.removeEventListener("touchend",r.onMouseUp)),pt.cancel(r.moveRaf);},r.onMouseDown=function(s){var l=r.props.onStartMove;r.setState({dragging:!0,pageY:cb(s),startTop:r.getTop()}),l(),r.patchEvents(),s.stopPropagation(),s.preventDefault();},r.onMouseMove=function(s){var l=r.state,c=l.dragging,u=l.pageY,d=l.startTop,f=r.props.onScroll;if(pt.cancel(r.moveRaf),c){var h=cb(s)-u,v=d+h,g=r.getEnableScrollRange(),p=r.getEnableHeightRange(),b=p?v/p:0,y=Math.ceil(b*g);r.moveRaf=pt(function(){f(y);});}},r.onMouseUp=function(){var s=r.props.onStopMove;r.setState({dragging:!1}),s(),r.removeEvents();},r.getSpinHeight=function(){var s=r.props,l=s.height,c=s.count,u=l/c*10;return u=Math.max(u,UD),u=Math.min(u,l/2),Math.floor(u)},r.getEnableScrollRange=function(){var s=r.props,l=s.scrollHeight,c=s.height;return l-c||0},r.getEnableHeightRange=function(){var s=r.props.height,l=r.getSpinHeight();return s-l||0},r.getTop=function(){var s=r.props.scrollTop,l=r.getEnableScrollRange(),c=r.getEnableHeightRange();if(s===0||l===0)return 0;var u=s/l;return u*c},r.showScroll=function(){var s=r.props,l=s.height,c=s.scrollHeight;return c>l},r}return Sn(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(),f=this.showScroll(),h=f&&a,v=c==="rtl"?{left:0}:{right:0};return m__namespace.createElement("div",{ref:this.scrollbarRef,className:F("".concat(l,"-scrollbar"),Z({},"".concat(l,"-scrollbar-show"),f)),style:Q(Q({width:8,top:0,bottom:0},v),{},{position:"absolute",display:h?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},m__namespace.createElement("div",{ref:this.thumbRef,className:F("".concat(l,"-scrollbar-thumb"),Z({},"".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}(m__namespace.Component);function GD(e){var t=e.children,n=e.setRef,r=m__namespace.useCallback(function(o){n(o);},[]);return m__namespace.cloneElement(t,{ref:r})}function XD(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 m__namespace.createElement(GD,{key:d,setRef:function(h){return r(s,h)}},u)})}var qD=function(){function e(){Cn(this,e),this.maps=void 0,this.maps=Object.create(null);}return Sn(e,[{key:"set",value:function(n,r){this.maps[n]=r;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function YD(e,t,n){var r=m__namespace.useState(0),o=G(r,2),i=o[0],a=o[1],s=m.useRef(new Map),l=m.useRef(new qD),c=m.useRef();function u(){pt.cancel(c.current);}function d(){u(),c.current=pt(function(){s.current.forEach(function(h,v){if(h&&h.offsetParent){var g=Ol(h),p=g.offsetHeight;l.current.get(v)!==p&&l.current.set(v,g.offsetHeight);}}),a(function(h){return h+1});});}function f(h,v){var g=e(h),p=s.current.get(g);v?(s.current.set(g,v),d()):s.current.delete(g),!p!=!v&&(v?t==null||t(h):n==null||n(h));}return m.useEffect(function(){return u},[]),[f,d,l.current,i]}function ZD(e,t,n,r,o,i,a,s){var l=m__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(g){return o(g)===c.key});var f=c.offset,h=f===void 0?0:f,v=function g(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),R=0;R<=O;R+=1){var A=o(t[R]);x=$;var _=n.get(A);w=x+(_===void 0?r:_),$=w,R===u&&_===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,T=P+y;x<P?E="top":w>T&&(E="bottom");}}I!==null&&I!==e.current.scrollTop&&a(I);}l.current=pt(function(){S&&i(),g(p-1,E);},2);}};v(3);}}}function QD(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var s={__EMPTY_ITEM__:!0};function l(v){return v!==void 0?n(v):s}for(var c=null,u=Math.abs(r-o)!==1,d=0;d<a.length;d+=1){var f=l(i[d]),h=l(a[d]);if(f!==h){c=d,u=u||f!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:u}}function JD(e,t,n){var r=m__namespace.useState(e),o=G(r,2),i=o[0],a=o[1],s=m__namespace.useState(null),l=G(s,2),c=l[0],u=l[1];return m__namespace.useEffect(function(){var d=QD(i||[],e||[],t);(d==null?void 0:d.index)!==void 0&&(n==null||n(d.index),u(e[d.index])),a(e);},[e]),[c]}var ez=(typeof navigator>"u"?"undefined":at(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const CS=function(e,t){var n=m.useRef(!1),r=m.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1;},50);}var i=m.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 tz(e,t,n,r){var o=m.useRef(0),i=m.useRef(null),a=m.useRef(null),s=m.useRef(!1),l=CS(t,n);function c(d){if(e){pt.cancel(i.current);var f=d.deltaY;o.current+=f,a.current=f,!l(f)&&(ez||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 nz=14/15;function rz(e,t,n){var r=m.useRef(!1),o=m.useRef(0),i=m.useRef(null),a=m.useRef(null),s,l=function(f){if(r.current){var h=Math.ceil(f.touches[0].pageY),v=o.current-h;o.current=h,n(v)&&f.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){v*=nz,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(a.current);},16);}},c=function(){r.current=!1,s();},u=function(f){s(),f.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(f.touches[0].pageY),i.current=f.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));},Ft(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 oz=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],iz=[],az={overflowY:"auto",overflowAnchor:"none"};function sz(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,f=e.itemKey,h=e.virtual,v=e.direction,g=e.component,p=g===void 0?"div":g,b=e.onScroll,y=e.onVisibleChange,S=e.innerProps,E=Je(e,oz),C=!!(h!==!1&&i&&a),$=C&&u&&a*u.length>i,x=m.useState(0),w=G(x,2),O=w[0],R=w[1],A=m.useState(!1),_=G(A,2),I=_[0],P=_[1],T=F(r,Z({},"".concat(r,"-rtl"),v==="rtl"),o),N=u||iz,M=m.useRef(),L=m.useRef(),z=m.useRef(),H=m__namespace.useCallback(function($e){return typeof f=="function"?f($e):$e==null?void 0:$e[f]},[f]),W={getKey:H};function B($e){R(function(Ne){var tt;typeof $e=="function"?tt=$e(Ne):tt=$e;var ct=ye(tt);return M.current.scrollTop=ct,ct});}var V=m.useRef({start:0,end:N.length}),j=m.useRef(),K=JD(N,H),te=G(K,1),q=te[0];j.current=q;var U=YD(H,null,null),X=G(U,4),oe=X[0],ue=X[1],ve=X[2],re=X[3],ae=m__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 Ne=0,tt,ct,qe,ut=N.length,Pe=0;Pe<ut;Pe+=1){var de=N[Pe],Se=H(de),ee=ve.get(Se),be=Ne+(ee===void 0?a:ee);be>=O&&tt===void 0&&(tt=Pe,ct=Ne),be>O+i&&qe===void 0&&(qe=Pe),Ne=be;}return tt===void 0&&(tt=0,ct=0,qe=Math.ceil(i/a)),qe===void 0&&(qe=N.length-1),qe=Math.min(qe+1,N.length),{scrollHeight:Ne,start:tt,end:qe,offset:ct}},[$,C,O,N,re,i]),ce=ae.scrollHeight,Y=ae.start,ne=ae.end,J=ae.offset;V.current.start=Y,V.current.end=ne;var fe=ce-i,me=m.useRef(fe);me.current=fe;function ye($e){var Ne=$e;return Number.isNaN(me.current)||(Ne=Math.min(Ne,me.current)),Ne=Math.max(Ne,0),Ne}var Re=O<=0,He=O>=fe,Te=CS(Re,He);function ie($e){var Ne=$e;B(Ne);}function he($e){var Ne=$e.currentTarget.scrollTop;Ne!==O&&B(Ne),b==null||b($e);}var pe=tz(C,Re,He,function($e){B(function(Ne){var tt=Ne+$e;return tt});}),we=G(pe,2),De=we[0],Ae=we[1];rz(C,M,function($e,Ne){return Te($e,Ne)?!1:(De({preventDefault:function(){},deltaY:$e}),!0)}),Ft(function(){function $e(Ne){C&&Ne.preventDefault();}return M.current.addEventListener("wheel",De),M.current.addEventListener("DOMMouseScroll",Ae),M.current.addEventListener("MozMousePixelScroll",$e),function(){M.current&&(M.current.removeEventListener("wheel",De),M.current.removeEventListener("DOMMouseScroll",Ae),M.current.removeEventListener("MozMousePixelScroll",$e));}},[C]);var xe=ZD(M,N,ve,a,H,ue,B,function(){var $e;($e=z.current)===null||$e===void 0||$e.delayHidden();});m__namespace.useImperativeHandle(t,function(){return {scrollTo:xe}}),Ft(function(){if(y){var $e=N.slice(Y,ne+1);y($e,N);}},[Y,ne,N]);var Ie=XD(N,Y,ne,oe,d,W),Fe=null;return i&&(Fe=Q(Z({},l?"height":"maxHeight",i),az),C&&(Fe.overflowY="hidden",I&&(Fe.pointerEvents="none"))),m__namespace.createElement("div",Oe({style:Q(Q({},c),{},{position:"relative"}),className:T},E),m__namespace.createElement(p,{className:"".concat(r,"-holder"),style:Fe,ref:M,onScroll:he},m__namespace.createElement(yS,{prefixCls:r,height:ce,offset:J,onInnerResize:ue,ref:L,innerProps:S},Ie)),C&&m__namespace.createElement(KD,{ref:z,prefixCls:r,scrollTop:O,height:i,scrollHeight:ce,count:N.length,direction:v,onScroll:ie,onStartMove:function(){P(!0);},onStopMove:function(){P(!1);}}))}var SS=m__namespace.forwardRef(sz);SS.displayName="List";var wS=m__namespace.createContext(null);function lz(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var cz=["disabled","title","children","style","className"];function ub(e){return typeof e=="string"||typeof e=="number"}var uz=function(t,n){var r=lD(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,h=m__namespace.useContext(wS),v=h.flattenOptions,g=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"),R=is(function(){return v},[a,v],function(q,U){return U[0]&&q[1]!==U[1]}),A=m__namespace.useRef(null),_=function(U){U.preventDefault();},I=function(U){A.current&&A.current.scrollTo(typeof U=="number"?{index:U}:U);},P=function(U){for(var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,oe=R.length,ue=0;ue<oe;ue+=1){var ve=(U+ue*X+oe)%oe,re=R[ve],ae=re.group,ce=re.data;if(!ae&&!ce.disabled)return ve}return -1},T=m__namespace.useState(function(){return P(0)}),N=G(T,2),M=N[0],L=N[1],z=function(U){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;L(U);var oe={source:X?"keyboard":"mouse"},ue=R[U];if(!ue){g(null,-1,oe);return}g(ue.value,U,oe);};m.useEffect(function(){z(p!==!1?P(0):-1);},[R.length,c]);var H=m__namespace.useCallback(function(q){return S.has(q)&&l!=="combobox"},[l,Qe(S).toString(),S.size]);m.useEffect(function(){var q=setTimeout(function(){if(!s&&a&&S.size===1){var X=Array.from(S)[0],oe=R.findIndex(function(ue){var ve=ue.data;return ve.value===X});oe!==-1&&(z(oe),I(oe));}});if(a){var U;(U=A.current)===null||U===void 0||U.scrollTo(void 0);}return function(){return clearTimeout(q)}},[a,c,v.length]);var W=function(U){U!==void 0&&b(U,{selected:!S.has(U)}),s||u(!1);};if(m__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(U){var X=U.which,oe=U.ctrlKey;switch(X){case le.N:case le.P:case le.UP:case le.DOWN:{var ue=0;if(X===le.UP?ue=-1:X===le.DOWN?ue=1:lz()&&oe&&(X===le.N?ue=1:X===le.P&&(ue=-1)),ue!==0){var ve=P(M+ue,ue);I(ve),z(ve,!0);}break}case le.ENTER:{var re=R[M];re&&!re.data.disabled?W(re.value):W(void 0),a&&U.preventDefault();break}case le.ESC:u(!1),a&&U.stopPropagation();}},onKeyUp:function(){},scrollTo:function(U){I(U);}}}),R.length===0)return m__namespace.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(O,"-empty"),onMouseDown:_},d);var B=Object.keys(E).map(function(q){return E[q]}),V=function(U){return U.label};function j(q,U){var X=q.group;return {role:X?"presentation":"option",id:"".concat(i,"_list_").concat(U)}}var K=function(U){var X=R[U];if(!X)return null;var oe=X.data||{},ue=oe.value,ve=X.group,re=Li(oe,!0),ae=V(X);return X?m__namespace.createElement("div",Oe({"aria-label":typeof ae=="string"&&!ve?ae:null},re,{key:U},j(X,U),{"aria-selected":H(ue)}),ue):null},te={role:"listbox",id:"".concat(i,"_list")};return m__namespace.createElement(m__namespace.Fragment,null,C&&m__namespace.createElement("div",Oe({},te,{style:{height:0,width:0,overflow:"hidden"}}),K(M-1),K(M),K(M+1)),m__namespace.createElement(SS,{itemKey:"key",ref:A,data:R,height:x,itemHeight:w,fullHeight:!1,onMouseDown:_,onScroll:f,virtual:C,direction:$,innerProps:C?null:te},function(q,U){var X,oe=q.group,ue=q.groupOption,ve=q.data,re=q.label,ae=q.value,ce=ve.key;if(oe){var Y,ne=(Y=ve.title)!==null&&Y!==void 0?Y:ub(re)?re.toString():void 0;return m__namespace.createElement("div",{className:F(O,"".concat(O,"-group")),title:ne},re!==void 0?re:ce)}var J=ve.disabled,fe=ve.title;ve.children;var me=ve.style,ye=ve.className,Re=Je(ve,cz),He=yn(Re,B),Te=H(ae),ie="".concat(O,"-option"),he=F(O,ie,ye,(X={},Z(X,"".concat(ie,"-grouped"),ue),Z(X,"".concat(ie,"-active"),M===U&&!J),Z(X,"".concat(ie,"-disabled"),J),Z(X,"".concat(ie,"-selected"),Te),X)),pe=V(q),we=!y||typeof y=="function"||Te,De=typeof pe=="number"?pe:pe||ae,Ae=ub(De)?De.toString():void 0;return fe!==void 0&&(Ae=fe),m__namespace.createElement("div",Oe({},Li(He),C?{}:j(q,U),{"aria-selected":Te,className:he,title:Ae,onMouseMove:function(){M===U||J||z(U);},onClick:function(){J||W(ae);},style:me}),m__namespace.createElement("div",{className:"".concat(ie,"-content")},De),m__namespace.isValidElement(y)||Te,we&&m__namespace.createElement(eu,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:Te}},Te?"✓":null))}))},xS=m__namespace.forwardRef(uz);xS.displayName="OptionList";var dz=["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"],fz=["inputValue"];function mz(e){return !e||at(e)!=="object"}var hz=m__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,f=d===void 0?!0:d,h=e.onSelect,v=e.onDeselect,g=e.dropdownMatchSelectWidth,p=g===void 0?!0:g,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,R=e.direction,A=e.listHeight,_=A===void 0?200:A,I=e.listItemHeight,P=I===void 0?20:I,T=e.value,N=e.defaultValue,M=e.labelInValue,L=e.onChange,z=Je(e,dz),H=BD(n),W=Af(r),B=!!(!C&&$),V=m__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),j=m__namespace.useMemo(function(){return pS(s,B)},[JSON.stringify(s),B]),K=Dt("",{value:c!==void 0?c:l,postState:function(Ee){return Ee||""}}),te=G(K,2),q=te[0],U=te[1],X=VD(C,$,j,S,E),oe=X.valueOptions,ue=X.labelOptions,ve=X.options,re=m__namespace.useCallback(function(ge){var Ee=mS(ge);return Ee.map(function(Me){var ke,st,et,St,Bt;if(mz(Me))ke=Me;else {var Ht;et=Me.key,st=Me.label,ke=(Ht=Me.value)!==null&&Ht!==void 0?Ht:et;}var Ge=oe.get(ke);if(Ge){var Ze;st===void 0&&(st=Ge==null?void 0:Ge[E||j.label]),et===void 0&&(et=(Ze=Ge==null?void 0:Ge.key)!==null&&Ze!==void 0?Ze:ke),St=Ge==null?void 0:Ge.disabled,Bt=Ge==null?void 0:Ge.title;}return {label:st,value:ke,key:et,disabled:St,title:Bt}})},[j,E,oe]),ae=Dt(N,{value:T}),ce=G(ae,2),Y=ce[0],ne=ce[1],J=m__namespace.useMemo(function(){var ge,Ee=re(Y);return r==="combobox"&&CD((ge=Ee[0])===null||ge===void 0?void 0:ge.value)?[]:Ee},[Y,re,r]),fe=LD(J,oe),me=G(fe,2),ye=me[0],Re=me[1],He=m__namespace.useMemo(function(){if(!r&&ye.length===1){var ge=ye[0];if(ge.value===null&&(ge.label===null||ge.label===void 0))return []}return ye.map(function(Ee){var Me;return Q(Q({},Ee),{},{label:(Me=Ee.label)!==null&&Me!==void 0?Me:Ee.value})})},[r,ye]),Te=m__namespace.useMemo(function(){return new Set(ye.map(function(ge){return ge.value}))},[ye]);m__namespace.useEffect(function(){if(r==="combobox"){var ge,Ee=(ge=ye[0])===null||ge===void 0?void 0:ge.value;U(yD(Ee)?String(Ee):"");}},[ye]);var ie=lb(function(ge,Ee){var Me,ke=Ee??ge;return Me={},Z(Me,j.value,ge),Z(Me,j.label,ke),Me}),he=m__namespace.useMemo(function(){if(r!=="tags")return ve;var ge=Qe(ve),Ee=function(ke){return oe.has(ke)};return Qe(ye).sort(function(Me,ke){return Me.value<ke.value?-1:1}).forEach(function(Me){var ke=Me.value;Ee(ke)||ge.push(ie(ke,Me.label));}),ge},[ie,ve,oe,ye,r]),pe=DD(he,j,q,V,S),we=m__namespace.useMemo(function(){return r!=="tags"||!q||pe.some(function(ge){return ge[S||"value"]===q})||pe.some(function(ge){return ge[j.value]===q})?pe:[ie(q)].concat(Qe(pe))},[ie,S,r,pe,q,j]),De=m__namespace.useMemo(function(){return y?Qe(we).sort(function(ge,Ee){return y(ge,Ee)}):we},[we,y]),Ae=m__namespace.useMemo(function(){return _D(De,{fieldNames:j,childrenAsData:B})},[De,j,B]),xe=function(Ee){var Me=re(Ee);if(ne(Me),L&&(Me.length!==ye.length||Me.some(function(et,St){var Bt;return ((Bt=ye[St])===null||Bt===void 0?void 0:Bt.value)!==(et==null?void 0:et.value)}))){var ke=M?Me:Me.map(function(et){return et.value}),st=Me.map(function(et){return kf(Re(et.value))});L(W?ke:ke[0],W?st:st[0]);}},Ie=m__namespace.useState(null),Fe=G(Ie,2),$e=Fe[0],Ne=Fe[1],tt=m__namespace.useState(0),ct=G(tt,2),qe=ct[0],ut=ct[1],Pe=x!==void 0?x:r!=="combobox",de=m__namespace.useCallback(function(ge,Ee){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ke=Me.source,st=ke===void 0?"keyboard":ke;ut(Ee),a&&r==="combobox"&&ge!==null&&st==="keyboard"&&Ne(String(ge));},[a,r]),Se=function(Ee,Me,ke){var st=function(){var _t,Xe=Re(Ee);return [M?{label:Xe==null?void 0:Xe[j.label],value:Ee,key:(_t=Xe==null?void 0:Xe.key)!==null&&_t!==void 0?_t:Ee}:Ee,kf(Xe)]};if(Me&&h){var et=st(),St=G(et,2),Bt=St[0],Ht=St[1];h(Bt,Ht);}else if(!Me&&v&&ke!=="clear"){var Ge=st(),Ze=G(Ge,2),Ue=Ze[0],mt=Ze[1];v(Ue,mt);}},ee=lb(function(ge,Ee){var Me,ke=W?Ee.selected:!0;ke?Me=W?[].concat(Qe(ye),[ge]):[ge]:Me=ye.filter(function(st){return st.value!==ge}),xe(Me),Se(ge,ke),r==="combobox"?Ne(""):(!Af||f)&&(U(""),Ne(""));}),be=function(Ee,Me){xe(Ee);var ke=Me.type,st=Me.values;(ke==="remove"||ke==="clear")&&st.forEach(function(et){Se(et.value,!1,ke);});},_e=function(Ee,Me){if(U(Ee),Ne(null),Me.source==="submit"){var ke=(Ee||"").trim();if(ke){var st=Array.from(new Set([].concat(Qe(Te),[ke])));xe(st),Se(ke,!0),U("");}return}Me.source!=="blur"&&(r==="combobox"&&xe(Ee),u==null||u(Ee));},Ye=function(Ee){var Me=Ee;r!=="tags"&&(Me=Ee.map(function(st){var et=ue.get(st);return et==null?void 0:et.value}).filter(function(st){return st!==void 0}));var ke=Array.from(new Set([].concat(Qe(Te),Qe(Me))));xe(ke),ke.forEach(function(st){Se(st,!0);});},Le=m__namespace.useMemo(function(){var ge=O!==!1&&p!==!1;return Q(Q({},X),{},{flattenOptions:Ae,onActiveValue:de,defaultActiveFirstOption:Pe,onSelect:ee,menuItemSelectedIcon:w,rawValues:Te,fieldNames:j,virtual:ge,direction:R,listHeight:_,listItemHeight:P,childrenAsData:B})},[X,Ae,de,Pe,ee,w,Te,j,O,p,_,P,B]);return m__namespace.createElement(wS.Provider,{value:Le},m__namespace.createElement(AD,Oe({},z,{id:H,prefixCls:i,ref:t,omitDomProps:fz,mode:r,displayValues:He,onDisplayValuesChange:be,direction:R,searchValue:q,onSearch:_e,autoClearSearchValue:f,onSearchSplit:Ye,dropdownMatchSelectWidth:p,OptionList:xS,emptyOptions:!Ae.length,activeValue:$e,activeDescendantId:"".concat(H,"_list_").concat(qe)})))}),Bh=hz;Bh.Option=jh;Bh.OptGroup=zh;const vz=()=>{const[,e]=Kr(),n=new Wt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return m__namespace.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},m__namespace.createElement("g",{transform:"translate(24 31.67)"},m__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m__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"}),m__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)"}),m__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"}),m__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"})),m__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"}),m__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},m__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},gz=vz,pz=()=>{const[,e]=Kr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=m.useMemo(()=>({borderColor:new Wt(t).onBackground(o).toHexShortString(),shadowColor:new Wt(n).onBackground(o).toHexShortString(),contentColor:new Wt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return m__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m__namespace.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),m__namespace.createElement("g",{fillRule:"nonzero",stroke:i},m__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"}),m__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}))))},bz=pz,yz=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}}}}},Cz=Ut("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=ft(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [yz(r)]});var Sz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $S=m__namespace.createElement(gz,null),ES=m__namespace.createElement(bz,null),Hh=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=$S,description:i,children:a,imageStyle:s,style:l}=e,c=Sz(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=m__namespace.useContext(nt),h=u("empty",r),[v,g]=Cz(h),[p]=Yi("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=m__namespace.createElement("img",{alt:y,src:o}):S=o,v(m__namespace.createElement("div",Object.assign({className:F(g,h,f==null?void 0:f.className,{[`${h}-normal`]:o===ES,[`${h}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},f==null?void 0:f.style),l)},c),m__namespace.createElement("div",{className:`${h}-image`,style:s},S),b&&m__namespace.createElement("div",{className:`${h}-description`},b),a&&m__namespace.createElement("div",{className:`${h}-footer`},a)))};Hh.PRESENTED_IMAGE_DEFAULT=$S;Hh.PRESENTED_IMAGE_SIMPLE=ES;const fa=Hh,wz=e=>{const{componentName:t}=e,{getPrefixCls:n}=m.useContext(nt),r=n("empty");switch(t){case"Table":case"List":return m.createElement(fa,{image:fa.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return m.createElement(fa,{image:fa.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return m.createElement(fa,null)}},OS=wz,xz=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"}},$z=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({},Mt(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:Zm},[` ${o}${s}topLeft, ${i}${s}topLeft, ${o}${s}topRight, ${i}${s}topRight `]:{animationName:Jm},[`${a}${s}bottomLeft`]:{animationName:Qm},[` ${a}${s}topLeft, ${a}${s}topRight `]:{animationName:eh},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},xz(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"},Ao),"&-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"}})},uo(e,"slide-up"),uo(e,"slide-down"),Tl(e,"move-up"),Tl(e,"move-down")]},Ez=$z,di=2,IS=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return [o,i]};function hd(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=IS(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-di}px ${di*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:`${di}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:di,marginBottom:di,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:di*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({},Vo()),{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 Oz=e=>{const{componentCls:t}=e,n=ft(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=ft(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=IS(e);return [hd(e),hd(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},hd(r,"lg")]},Iz=Oz;function vd(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({},Mt(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 Pz(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [vd(e),vd(ft(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder `]:{paddingInlineEnd:e.fontSize*1.5}}}},vd(ft(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Rz=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"}}}},gd=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}})}}},_z=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"}}}},Tz=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return {[t]:Object.assign(Object.assign({},Mt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},Rz(e)),_z(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Ao),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},Ao),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},Vo()),{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}}}},Mz=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%"}}},Tz(e),Pz(e),Iz(e),Ez(e),{[`${t}-rtl`]:{direction:"rtl"}},gd(t,ft(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),gd(`${t}-status-error`,ft(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),gd(`${t}-status-warning`,ft(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Bc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Nz=Ut("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=ft(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return [Mz(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),kz=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 Az(e,t){return e||kz(t)}function Lz(e,t){return t!==void 0?t:e!==null}var Dz={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 zz=Dz;var jz=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:zz}))};const Bz=m__namespace.forwardRef(jz);var Hz={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 Fz=Hz;var Wz=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:Fz}))};const Fh=m__namespace.forwardRef(Wz);var Vz={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 Uz=Vz;var Kz=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:Uz}))};const Wh=m__namespace.forwardRef(Kz);function Gz(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:f}=e;const h=n??m__namespace.createElement(Fh,null),v=y=>t===null&&!s&&!d?null:m__namespace.createElement(m__namespace.Fragment,null,c!==!1&&y,s&&u);let g=null;if(t!==void 0)g=v(t);else if(i)g=v(m__namespace.createElement(ah,{spin:!0}));else {const y=`${l}-suffix`;g=S=>{let{open:E,showSearch:C}=S;return v(E&&C?m__namespace.createElement(Wh,{className:y}):m__namespace.createElement(uh,{className:y}))};}let p=null;r!==void 0?p=r:a?p=m__namespace.createElement(Bz,null):p=null;let b=null;return o!==void 0?b=o:b=m__namespace.createElement(Vc,null),{clearIcon:h,suffixIcon:g,itemIcon:p,removeIcon:b}}var Xz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const PS="SECRET_COMBOBOX_MODE_DO_NOT_USE",qz=(e,t)=>{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:f=24,size:h,disabled:v,notFoundContent:g,status:p,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:S,direction:E,style:C,allowClear:$}=e,x=Xz(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:R,direction:A,virtual:_,popupMatchSelectWidth:I,popupOverflow:P,select:T}=m__namespace.useContext(nt),N=O("select",r),M=O(),L=E??A,{compactSize:z,compactItemClassnames:H}=Qi(N,L),[W,B]=Nz(N),V=m__namespace.useMemo(()=>{const{mode:he}=x;if(he!=="combobox")return he===PS?"combobox":he},[x.mode]),j=V==="multiple"||V==="tags",K=Lz(x.suffixIcon,x.showArrow),te=(n=S??y)!==null&&n!==void 0?n:I,{status:q,hasFeedback:U,isFormItemInput:X,feedbackIcon:oe}=m__namespace.useContext(tr),ue=ms(q,p);let ve;g!==void 0?ve=g:V==="combobox"?ve=null:ve=(R==null?void 0:R("Select"))||m__namespace.createElement(OS,{componentName:"Select"});const{suffixIcon:re,itemIcon:ae,removeIcon:ce,clearIcon:Y}=Gz(Object.assign(Object.assign({},x),{multiple:j,hasFeedback:U,feedbackIcon:oe,showSuffixIcon:K,prefixCls:N,showArrow:x.showArrow,componentName:"Select"})),ne=$===!0?{clearIcon:Y}:$,J=yn(x,["suffixIcon","itemIcon"]),fe=F(l||c,{[`${N}-dropdown-${L}`]:L==="rtl"},a,B),me=Wn(he=>{var pe;return (pe=h??z)!==null&&pe!==void 0?pe:he}),ye=m__namespace.useContext(Pr),Re=v??ye,He=F({[`${N}-lg`]:me==="large",[`${N}-sm`]:me==="small",[`${N}-rtl`]:L==="rtl",[`${N}-borderless`]:!o,[`${N}-in-form-item`]:X},lr(N,ue,U),H,T==null?void 0:T.className,i,a,B),Te=m__namespace.useMemo(()=>d!==void 0?d:L==="rtl"?"bottomRight":"bottomLeft",[d,L]),ie=Az(b,P);return W(m__namespace.createElement(Bh,Object.assign({ref:t,virtual:_,showSearch:T==null?void 0:T.showSearch},J,{style:Object.assign(Object.assign({},T==null?void 0:T.style),C),dropdownMatchSelectWidth:te,builtinPlacements:ie,transitionName:Tc(M,"slide-up",x.transitionName),listHeight:u,listItemHeight:f,mode:V,prefixCls:N,placement:Te,direction:L,suffixIcon:re,menuItemSelectedIcon:ae,removeIcon:ce,allowClear:ne,notFoundContent:ve,className:He,getPopupContainer:s||w,dropdownClassName:fe,disabled:Re})))},na=m__namespace.forwardRef(qz),Yz=Ah(na);na.SECRET_COMBOBOX_MODE_DO_NOT_USE=PS;na.Option=jh;na.OptGroup=zh;na._InternalPanelDoNotUseOrYouWillBeFired=Yz;const ps=na;var kr;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(kr||(kr={}));const Zz=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]=m.useState(o);return m.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),m.createElement(If,{className:F(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),i==null||i(d);}})},No=Zz,Qz=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=m.useState(bn(n||"#000"));m.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 m.createElement(No,{value:Bl(i),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},Jz=Qz,ej=e=>{const{getPrefixCls:t,direction:n}=m.useContext(nt),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=ph(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=m.useContext(tr),d=m.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(m__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},m__namespace.createElement(tr.Provider,{value:d},e.children)))},tj=ej;function RS(e,t){const n=m.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 m.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function nj(e){return !!(e.prefix||e.suffix||e.allowClear)}var rj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function oj(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);break}}}const ij=m.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:h,className:v,style:g,styles:p,rootClassName:b,onChange:y,classNames:S}=e,E=rj(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:C,direction:$,input:x}=m.useContext(nt),w=C("input",r),O=m.useRef(null),[R,A]=ph(w),{compactSize:_,compactItemClassnames:I}=Qi(w,$),P=Wn(X=>{var oe;return (oe=a??_)!==null&&oe!==void 0?oe:X}),T=m.useContext(Pr),N=s??T,{status:M,hasFeedback:L,feedbackIcon:z}=m.useContext(tr),H=ms(M,i),W=nj(e)||!!L,B=m.useRef(W);m.useEffect(()=>{W&&B.current,B.current=W;},[W]);const V=RS(O,!0),j=X=>{V(),l==null||l(X);},K=X=>{V(),c==null||c(X);},te=X=>{V(),y==null||y(X);},q=(L||u)&&m.createElement(m.Fragment,null,u,L&&z);let U;return typeof d=="object"&&(d!=null&&d.clearIcon)?U=d:d&&(U={clearIcon:m.createElement(Fh,null)}),R(m.createElement(G4,Object.assign({ref:Pn(t,O),prefixCls:w,autoComplete:x==null?void 0:x.autoComplete},E,{disabled:N,onBlur:j,onFocus:K,style:Object.assign(Object.assign({},x==null?void 0:x.style),g),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),p),suffix:q,allowClear:U,className:F(v,b,I,x==null?void 0:x.className),onChange:te,addonAfter:f&&m.createElement(Ti,null,m.createElement(Ga,{override:!0,status:!0},f)),addonBefore:h&&m.createElement(Ti,null,m.createElement(Ga,{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&&lr(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},lr(`${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},lr(`${w}-group-wrapper`,H,L),A)}})))}),Vh=ij;var aj={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 sj=aj;var lj=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:sj}))};const cj=m__namespace.forwardRef(lj);var uj={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 dj=uj;var fj=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:dj}))};const mj=m__namespace.forwardRef(fj);var hj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vj=e=>e?m__namespace.createElement(mj,null):m__namespace.createElement(cj,null),gj={click:"onClick",hover:"onMouseOver"},pj=m__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=m.useState(()=>r?n.visible:!1),a=m.useRef(null);m__namespace.useEffect(()=>{r&&i(n.visible);},[r,n]);const s=RS(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=vj}=e,w=gj[$]||"",O=x(o),R={[w]:l,className:`${C}-icon`,key:"passwordIcon",onMouseDown:A=>{A.preventDefault();},onMouseUp:A=>{A.preventDefault();}};return m__namespace.cloneElement(m__namespace.isValidElement(O)?O:m__namespace.createElement("span",null,O),R)},{className:u,prefixCls:d,inputPrefixCls:f,size:h}=e,v=hj(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=m__namespace.useContext(nt),p=g("input",f),b=g("input-password",d),y=n&&c(b),S=F(b,u,{[`${b}-${h}`]:!!h}),E=Object.assign(Object.assign({},yn(v,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:S,prefixCls:p,suffix:y});return h&&(E.size=h),m__namespace.createElement(Vh,Object.assign({ref:Pn(t,a)},E))}),bj=pj;var yj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Cj=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:h,onCompositionEnd:v}=e,g=yj(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=m__namespace.useContext(nt),y=m__namespace.useRef(!1),S=p("input-search",n),E=p("input",r),{compactSize:C}=Qi(S,b),$=Wn(H=>{var W;return (W=i??C)!==null&&W!==void 0?W:H}),x=m__namespace.useRef(null),w=H=>{H&&H.target&&H.type==="click"&&d&&d(H.target.value,H),f&&f(H);},O=H=>{var W;document.activeElement===((W=x.current)===null||W===void 0?void 0:W.input)&&H.preventDefault();},R=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||R(H);},_=typeof s=="boolean"?m__namespace.createElement(Wh,null):null,I=`${S}-button`;let P;const T=s||{},N=T.type&&T.type.__ANT_BUTTON===!0;N||T.type==="button"?P=Hn(T,Object.assign({onMouseDown:O,onClick:H=>{var W,B;(B=(W=T==null?void 0:T.props)===null||W===void 0?void 0:W.onClick)===null||B===void 0||B.call(W,H),R(H);},key:"enterButton"},N?{className:I,size:$}:{})):P=m__namespace.createElement(Qt,{className:I,type:s?"primary":void 0,size:$,disabled:u,key:"enterButton",onMouseDown:O,onClick:R,loading:c,icon:_},s),l&&(P=[P,Hn(l,{key:"addonAfter"})]);const M=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,v==null||v(H);};return m__namespace.createElement(Vh,Object.assign({ref:Pn(x,t),onPressEnter:A},g,{size:$,onCompositionStart:L,onCompositionEnd:z,prefixCls:E,addonAfter:P,suffix:a,onChange:w,className:M,disabled:u}))}),Sj=Cj;var wj=` 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; `,xj=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],pd={},Xn;function $j(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&pd[n])return pd[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=xj.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(pd[n]=l),l}function Ej(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=$j(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Xn.setAttribute("style","".concat(l,";").concat(wj)),Xn.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=Xn.scrollHeight;if(s==="border-box"?f+=a:s==="content-box"&&(f-=i),n!==null||r!==null){Xn.value=" ";var h=Xn.scrollHeight-i;n!==null&&(c=h*n,s==="border-box"&&(c=c+i+a),f=Math.max(c,f)),r!==null&&(u=h*r,s==="border-box"&&(u=u+i+a),d=f>u?"":"hidden",f=Math.min(u,f));}var v={height:f,overflowY:d,resize:"none"};return c&&(v.minHeight=c),u&&(v.maxHeight=u),v}var Oj=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],bd=0,yd=1,Cd=2,Ij=m__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 f=Je(n,Oj),h=Dt(o,{value:i,postState:function(j){return j??""}}),v=G(h,2),g=v[0],p=v[1],b=function(j){p(j.target.value),d==null||d(j);},y=m__namespace.useRef();m__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var S=m__namespace.useMemo(function(){return a&&at(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),E=G(S,2),C=E[0],$=E[1],x=!!a,w=function(){try{if(document.activeElement===y.current){var j=y.current,K=j.selectionStart,te=j.selectionEnd,q=j.scrollTop;y.current.setSelectionRange(K,te),y.current.scrollTop=q;}}catch{}},O=m__namespace.useState(Cd),R=G(O,2),A=R[0],_=R[1],I=m__namespace.useState(),P=G(I,2),T=P[0],N=P[1],M=function(){_(bd);};Ft(function(){x&&M();},[i,C,$,x]),Ft(function(){if(A===bd)_(yd);else if(A===yd){var V=Ej(y.current,!1,C,$);_(Cd),N(V);}else w();},[A]);var L=m__namespace.useRef(),z=function(){pt.cancel(L.current);},H=function(j){A===Cd&&(s==null||s(j),a&&(z(),L.current=pt(function(){M();})));};m__namespace.useEffect(function(){return z},[]);var W=x?T:null,B=Q(Q({},c),W);return (A===bd||A===yd)&&(B.overflowY="hidden",B.overflowX="hidden"),m__namespace.createElement(Br,{onResize:H,disabled:!(a||s)},m__namespace.createElement("textarea",Oe({},f,{ref:y,style:B,className:F(r,l,Z({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:b})))}),Pj=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function _S(e,t){return Qe(e||"").slice(0,t).join("")}function db(e,t,n,r){var o=n;return e?o=_S(n,r):Qe(t||"").length<n.length&&Qe(n||"").length>r&&(o=t),o}var Rj=m.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,f=e.suffix,h=e.prefixCls,v=h===void 0?"rc-textarea":h,g=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=Je(e,Pj),O=Dt(r,{value:o,defaultValue:r}),R=G(O,2),A=R[0],_=R[1],I=m.useRef(null),P=m.useState(!1),T=G(P,2),N=T[0],M=T[1],L=m.useState(!1),z=G(L,2),H=z[0],W=z[1],B=m.useRef(),V=m.useRef(0),j=m.useState(null),K=G(j,2),te=K[0],q=K[1],U=function(){var ie;(ie=I.current)===null||ie===void 0||ie.textArea.focus();};m.useImperativeHandle(t,function(){return {resizableTextArea:I.current,focus:U,blur:function(){var ie;(ie=I.current)===null||ie===void 0||ie.textArea.blur();}}}),m.useEffect(function(){M(function(Te){return !S&&Te});},[S]);var X=Number(c)>0,oe=function(ie){W(!0),B.current=A,V.current=ie.currentTarget.selectionStart,u==null||u(ie);},ue=function(ie){W(!1);var he=ie.currentTarget.value;if(X){var pe,we=V.current>=c+1||V.current===((pe=B.current)===null||pe===void 0?void 0:pe.length);he=db(we,B.current,he,c);}he!==A&&(_(he),Ea(ie.currentTarget,ie,s,he)),d==null||d(ie);},ve=function(ie){var he=ie.target.value;if(!H&&X){var pe=ie.target.selectionStart>=c+1||ie.target.selectionStart===he.length||!ie.target.selectionStart;he=db(pe,A,he,c);}_(he),Ea(ie.currentTarget,ie,s,he);},re=function(ie){var he=w.onPressEnter,pe=w.onKeyDown;ie.key==="Enter"&&he&&he(ie),pe==null||pe(ie);},ae=function(ie){M(!0),i==null||i(ie);},ce=function(ie){M(!1),a==null||a(ie);},Y=function(ie){var he;_(""),U(),Ea((he=I.current)===null||he===void 0?void 0:he.textArea,ie,s);},ne=Of(A);!H&&X&&o==null&&(ne=_S(ne,c));var J=f,fe;if(p){var me=Qe(ne).length;at(p)==="object"?fe=p.formatter({value:ne,count:me,maxLength:c}):fe="".concat(me).concat(X?" / ".concat(c):""),J=m.createElement(m.Fragment,null,J,m.createElement("span",{className:F("".concat(v,"-data-count"),C==null?void 0:C.count),style:$==null?void 0:$.count},fe));}var ye=function(ie){var he;x==null||x(ie),(he=I.current)!==null&&he!==void 0&&he.textArea.style.height&&q(!0);},Re=!w.autoSize&&!p&&!l,He=m.createElement(mh,{value:ne,allowClear:l,handleReset:Y,suffix:J,prefixCls:v,classes:{affixWrapper:F(g==null?void 0:g.affixWrapper,(n={},Z(n,"".concat(v,"-show-count"),p),Z(n,"".concat(v,"-textarea-allow-clear"),l),n))},disabled:S,focused:N,className:b,style:Q(Q({},y),te&&!Re?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof fe=="string"?fe:void 0}},hidden:E,inputElement:m.createElement(Ij,Oe({},w,{onKeyDown:re,onChange:ve,onFocus:ae,onBlur:ce,onCompositionStart:oe,onCompositionEnd:ue,className:C==null?void 0:C.textarea,style:Q(Q({},$==null?void 0:$.textarea),{},{resize:y==null?void 0:y.resize}),disabled:S,prefixCls:v,onResize:ye,ref:I}))});return He}),_j=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Tj=m.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c}=e,u=_j(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:d,direction:f}=m__namespace.useContext(nt),h=Wn(o),v=m__namespace.useContext(Pr),g=i??v,{status:p,hasFeedback:b,feedbackIcon:y}=m__namespace.useContext(tr),S=ms(p,a),E=m__namespace.useRef(null);m__namespace.useImperativeHandle(t,()=>{var O;return {resizableTextArea:(O=E.current)===null||O===void 0?void 0:O.resizableTextArea,focus:R=>{var A,_;oj((_=(A=E.current)===null||A===void 0?void 0:A.resizableTextArea)===null||_===void 0?void 0:_.textArea,R);},blur:()=>{var R;return (R=E.current)===null||R===void 0?void 0:R.blur()}}});const C=d("input",n);let $;typeof s=="object"&&(s!=null&&s.clearIcon)?$=s:s&&($={clearIcon:m__namespace.createElement(Fh,null)});const[x,w]=ph(C);return x(m__namespace.createElement(Rj,Object.assign({},u,{disabled:g,allowClear:$,classes:{affixWrapper:F(`${C}-textarea-affix-wrapper`,{[`${C}-affix-wrapper-rtl`]:f==="rtl",[`${C}-affix-wrapper-borderless`]:!r,[`${C}-affix-wrapper-sm`]:h==="small",[`${C}-affix-wrapper-lg`]:h==="large",[`${C}-textarea-show-count`]:l},lr(`${C}-affix-wrapper`,S),w)},classNames:Object.assign(Object.assign({},c),{textarea:F({[`${C}-borderless`]:!r,[`${C}-sm`]:h==="small",[`${C}-lg`]:h==="large"},lr(C,S),w,c==null?void 0:c.textarea)}),prefixCls:C,suffix:b&&m__namespace.createElement("span",{className:`${C}-textarea-suffix`},y),showCount:l,ref:E})))}),Mj=Tj,bs=Vh;bs.Group=tj;bs.Search=Sj;bs.TextArea=Mj;bs.Password=bj;const TS=bs,Nj=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,fb=e=>Nj.test(`#${e}`),kj=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[i,a]=m.useState(n==null?void 0:n.toHex());m.useEffect(()=>{const l=n==null?void 0:n.toHex();fb(l)&&n&&a(dl(l));},[n]);const s=l=>{const c=l.target.value;a(dl(c)),fb(dl(c,!0))&&(r==null||r(bn(c)));};return m.createElement(TS,{className:o,value:i,prefix:"#",onChange:s,size:"small"})},Aj=kj,Lj=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=m.useState(bn(n||"#000"));m.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 m.createElement("div",{className:o},m.createElement(No,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:l=>fl(l||0).toString(),onChange:l=>s(Number(l),"h")}),m.createElement(No,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${fl(l||0)}%`,onChange:l=>s(Number(l),"s")}),m.createElement(No,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${fl(l||0)}%`,onChange:l=>s(Number(l),"b")}))},Dj=Lj,zj=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=m.useState(bn(n||"#000"));m.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 m.createElement("div",{className:o},m.createElement(No,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),m.createElement(No,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),m.createElement(No,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},jj=zj,Bj=[kr.hex,kr.hsb,kr.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),Hj=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:i,onChange:a}=e,[s,l]=Dt(kr.hex,{value:n,onChange:i}),c=`${t}-input`,u=f=>{l(f);},d=m.useMemo(()=>{const f={value:r,prefixCls:t,onChange:a};switch(s){case kr.hsb:return m.createElement(Dj,Object.assign({},f));case kr.rgb:return m.createElement(jj,Object.assign({},f));case kr.hex:default:return m.createElement(Aj,Object.assign({},f))}},[s,t,r,a]);return m.createElement("div",{className:`${c}-container`},m.createElement(ps,{value:s,bordered:!1,getPopupContainer:f=>f,popupMatchSelectWidth:68,placement:"bottomRight",onChange:u,className:`${t}-format-select`,size:"small",options:Bj}),m.createElement("div",{className:c},d),!o&&m.createElement(Jz,{prefixCls:t,value:r,onChange:a}))},Fj=Hj;var Wj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vj=()=>{const e=m.useContext(lS),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:i,onChange:a,onClear:s,onChangeComplete:l}=e,c=Wj(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return m.createElement(m.Fragment,null,r&&m.createElement(uS,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:u=>{a==null||a(u),s==null||s();}},c)),m.createElement(nD,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:i,onChange:(u,d)=>a==null?void 0:a(u,d,!0),onChangeComplete:l}),m.createElement(Fj,Object.assign({value:o,onChange:a,prefixCls:t,disabledAlpha:i},c)))},mb=Vj;var Uj={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 Kj=Uj;var Gj=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:Kj}))};const Di=m__namespace.forwardRef(Gj);var MS=m.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=m.useState(l||o),d=G(u,2),f=d[0],h=d[1];return m.useEffect(function(){(o||l)&&h(!0);},[o,l]),f?m.createElement("div",{ref:t,className:F("".concat(r,"-content"),(n={},Z(n,"".concat(r,"-content-active"),l),Z(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},m.createElement("div",{className:"".concat(r,"-content-box")},s)):null});MS.displayName="PanelContent";var Xj=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],NS=m.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,f=e.collapsible,h=e.accordion,v=e.panelKey,g=e.extra,p=e.header,b=e.expandIcon,y=e.openMotion,S=e.destroyInactivePanel,E=e.children,C=Je(e,Xj),$=f==="disabled",x=f==="header",w=f==="icon",O=g!=null&&typeof g!="boolean",R=function(){l==null||l(v);},A=function(M){(M.key==="Enter"||M.keyCode===le.ENTER||M.which===le.ENTER)&&R();},_=typeof b=="function"?b(e):m.createElement("i",{className:"arrow"});_&&(_=m.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(f)?R:void 0},_));var I=F((n={},Z(n,"".concat(d,"-item"),!0),Z(n,"".concat(d,"-item-active"),s),Z(n,"".concat(d,"-item-disabled"),$),n),u),P=F((r={},Z(r,"".concat(d,"-header"),!0),Z(r,"headerClass",a),Z(r,"".concat(d,"-header-collapsible-only"),x),Z(r,"".concat(d,"-icon-collapsible-only"),w),r)),T={className:P,"aria-expanded":s,"aria-disabled":$,onKeyDown:A};return !x&&!w&&(T.onClick=R,T.role=h?"tab":"button",T.tabIndex=$?-1:0),m.createElement("div",Oe({},C,{ref:t,className:I}),m.createElement("div",T,i&&_,m.createElement("span",{className:"".concat(d,"-header-text"),onClick:f==="header"?R:void 0},p),O&&m.createElement("div",{className:"".concat(d,"-extra")},g)),m.createElement(ho,Oe({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:S}),function(N,M){var L=N.className,z=N.style;return m.createElement(MS,{ref:M,prefixCls:d,className:L,style:z,isActive:s,forceRender:c,role:h?"tabpanel":void 0},E)}))}),qj=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Yj=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,f){var h=d.children,v=d.label,g=d.key,p=d.collapsible,b=d.onItemClick,y=d.destroyInactivePanel,S=Je(d,qj),E=String(g??f),C=p??i,$=y??a,x=function(R){C!=="disabled"&&(s(R),b==null||b(R));},w=!1;return o?w=l[0]===E:w=l.indexOf(E)>-1,m.createElement(NS,Oe({},S,{prefixCls:r,key:E,panelKey:E,isActive:w,accordion:o,openMotion:c,expandIcon:u,header:v,collapsible:C,onItemClick:x,destroyInactivePanel:$}),h)})},Zj=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,f=t.key||String(n),h=t.props,v=h.header,g=h.headerClass,p=h.destroyInactivePanel,b=h.collapsible,y=h.onItemClick,S=!1;i?S=c[0]===f:S=c.indexOf(f)>-1;var E=b??a,C=function(w){E!=="disabled"&&(l(w),y==null||y(w));},$={key:f,panelKey:f,header:v,headerClass:g,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];}),m.cloneElement(t,$))};function Qj(e,t,n){return Array.isArray(e)?Yj(e,n):cr(t).map(function(r,o){return Zj(r,o,n)})}function Jj(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 e8=m.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,f=e.expandIcon,h=e.activeKey,v=e.defaultActiveKey,g=e.onChange,p=e.items,b=F(r,l),y=Dt([],{value:h,onChange:function(O){return g==null?void 0:g(O)},defaultValue:v,postState:Jj}),S=G(y,2),E=S[0],C=S[1],$=function(O){return C(function(){if(s)return E[0]===O?[]:[O];var R=E.indexOf(O),A=R>-1;return A?E.filter(function(_){return _!==O}):[].concat(Qe(E),[O])})};Ir(!c,"`children` will be removed in next major version. Please use `items` instead.");var x=Qj(p,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:i,onItemClick:$,activeKey:E});return m.createElement("div",{ref:t,className:b,style:a,role:s?"tablist":void 0},x)});const Uh=Object.assign(e8,{Panel:NS});Uh.Panel;const t8=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=m__namespace.useContext(nt),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=F({[`${a}-no-arrow`]:!i},o);return m__namespace.createElement(Uh.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),n8=t8,r8=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:f,colorText:h,colorTextHeading:v,colorTextDisabled:g,fontSize:p,fontSizeLG:b,lineHeight:y,marginSM:S,paddingSM:E,paddingLG:C,paddingXS:$,motionDurationSlow:x,fontSizeIcon:w}=e,O=`${u}px ${d} ${f}`;return {[t]:Object.assign(Object.assign({},Mt(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:v,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({},Vo()),{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:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:S}}}}})}},o8=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},i8=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}}}},a8=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}}}}}},s8=Ut("Collapse",e=>{const t=ft(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return [r8(t),i8(t),a8(t),o8(t),x1(t)]}),l8=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=m__namespace.useContext(nt),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:h,expandIcon:v}=e,g=Wn(O=>{var R;return (R=d??O)!==null&&R!==void 0?R:"middle"}),p=n("collapse",i),b=n(),[y,S]=s8(p),E=m__namespace.useMemo(()=>f==="left"?"start":f==="right"?"end":f,[f]),C=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const R=v?v(O):m__namespace.createElement(Di,{rotate:O.isActive?90:void 0});return Hn(R,()=>({className:F(R.props.className,`${p}-arrow`)}))},$=F(`${p}-icon-position-${E}`,{[`${p}-borderless`]:!c,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!u,[`${p}-${g}`]:g!=="middle"},o==null?void 0:o.className,a,s,S),x=Object.assign(Object.assign({},p1(b)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),w=m__namespace.useMemo(()=>h?cr(h).map((O,R)=>{var A,_;if(!((A=O.props)===null||A===void 0)&&A.disabled){const I=(_=O.key)!==null&&_!==void 0?_:String(R),{disabled:P,collapsible:T}=O.props,N=Object.assign(Object.assign({},yn(O.props,["disabled"])),{key:I,collapsible:T??(P?"disabled":void 0)});return Hn(O,N)}return O}):null,[h]);return y(m__namespace.createElement(Uh,Object.assign({ref:t,openMotion:x},yn(e,["rootClassName"]),{expandIcon:C,prefixCls:p,className:$,style:Object.assign(Object.assign({},o==null?void 0:o.style),l)}),w))}),c8=Object.assign(l8,{Panel:n8}),Sd=e=>e.map(t=>(t.colors=t.colors.map(bn),t)),u8=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new jl(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},d8=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=Yi("ColorPicker"),{token:{colorBgElevated:a}}=Mi.useToken(),[s]=Dt(Sd(n),{value:Sd(n),postState:Sd}),l=`${t}-presets`,c=m.useMemo(()=>s.map(f=>`panel-${f.label}`),[s]),u=f=>{o==null||o(f);},d=s.map(f=>{var h;return {key:`panel-${f.label}`,label:m.createElement("div",{className:`${l}-label`},f==null?void 0:f.label),children:m.createElement("div",{className:`${l}-items`},Array.isArray(f==null?void 0:f.colors)&&((h=f.colors)===null||h===void 0?void 0:h.length)>0?f.colors.map(v=>m.createElement(Lh,{key:`preset-${v.toHexString()}`,color:bn(v).toRgbString(),prefixCls:t,className:F(`${l}-color`,{[`${l}-color-checked`]:v.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:u8(v,a)}),onClick:()=>u(v)})):m.createElement("span",{className:`${l}-empty`},i.presetEmpty))}});return m.createElement("div",{className:l},m.createElement(c8,{defaultActiveKey:c,ghost:!0,items:d}))},f8=d8,m8=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=m.useContext(cS);return Array.isArray(n)?m.createElement(f8,{value:t,presets:n,prefixCls:e,onChange:r}):null},hb=m8;var h8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const v8=e=>{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:i,onClear:a}=e,s=h8(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),l=`${t}-inner-content`,c=Object.assign({prefixCls:t,value:o,onChange:i,onClear:a},s),u=m.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:i}),[t,o,n,i]),d=m.createElement(m.Fragment,null,m.createElement(mb,null),Array.isArray(n)&&m.createElement(U6,{className:`${l}-divider`}),m.createElement(hb,null));return m.createElement(rD,{value:c},m.createElement(oD,{value:u},m.createElement("div",{className:l},typeof r=="function"?r(d,{components:{Picker:mb,Presets:hb}}):d)))},g8=v8;var p8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const b8=m.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:i,disabled:a,format:s,className:l,showText:c}=e,u=p8(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),d=`${r}-trigger`,f=m.useMemo(()=>i?m.createElement(uS,{prefixCls:r}):m.createElement(Lh,{prefixCls:r,color:n.toRgbString()}),[n,i,r]),h=()=>{const g=n.toHexString().toUpperCase(),p=Bl(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${g.slice(0,7)},${p}%`:g}},v=()=>{if(typeof c=="function")return c(n);if(c)return h()};return m.createElement("div",Object.assign({ref:t,className:F(d,l,{[`${d}-active`]:o,[`${d}-disabled`]:a})},u),f,c&&m.createElement("div",{className:`${d}-text`},v()))}),y8=b8;function vb(e){return e!==void 0}const C8=(e,t)=>{const{defaultValue:n,value:r}=t,[o,i]=m.useState(()=>{let a;return vb(r)?a=r:vb(n)?a=n:a=e,bn(a||"")});return m.useEffect(()=>{r&&i(bn(r));},[r]),[o,i]},S8=C8,kS=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),w8=(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},kS("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${i}px solid ${a}`,borderRadius:"inherit"}})}},gb=w8,x8=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:f,colorPickerInputNumberHandleWidth:h,lineWidth:v}=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*v}px`},[`${n}-input-prefix`]:{color:f}}}}}},$8=x8,E8=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":kS(`${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}}}}}},O8=E8,I8=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:f,marginXXS:h,paddingXS:v}=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:`${v}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:f,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}}}},P8=I8,Lf=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),R8=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},pb=(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}})}},_8=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({},Lf(ft(e,{controlOutline:a})))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},Lf(ft(e,{controlOutline:s})))}}},T8=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}}}},M8=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:f,controlHeightSM:h,colorBgTextActive:v,colorPickerPresetColorSize:g,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({},O8(e))},gb(e,p)),$8(e)),P8(e)),pb(e,g,{marginInlineStart:"auto",marginBottom:u})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:f,height:f,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({},Lf(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:a,background:l,cursor:"not-allowed","&:hover":{borderColor:v},[`${t}-trigger-text`]:{color:a}}},pb(e,h)),gb(e,h)),_8(e)),T8(e))},R8(e))}]},N8=Ut("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=ft(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:r*2+n});return [M8(o)]}),Kh=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:f,showText:h,style:v,className:g,size:p,rootClassName:b,styles:y,disabledAlpha:S=!1,onFormatChange:E,onChange:C,onClear:$,onOpenChange:x,onChangeComplete:w,getPopupContainer:O,autoAdjustOverflow:R=!0,destroyTooltipOnHide:A}=e,{getPrefixCls:_,direction:I,colorPicker:P}=m.useContext(nt),{token:T}=Mi.useToken(),[N,M]=S8(T.colorPrimary,{value:t,defaultValue:n}),[L,z]=Dt(!1,{value:l,postState:ye=>!c&&ye,onChange:x}),[H,W]=Dt(r,{value:r,onChange:E}),[B,V]=m.useState(!1),j=_("color-picker",aD),K=m.useMemo(()=>Bl(N)<100,[N]),{status:te}=m.useContext(tr),q=Wn(p),[U,X]=N8(j),oe={[`${j}-rtl`]:I},ue=F(b,oe),ve=F(lr(j,te),{[`${j}-sm`]:q==="small",[`${j}-lg`]:q==="large"},P==null?void 0:P.className,ue,g,X),re=F(j,oe),ae=m.useRef(!0),ce=(ye,Re,He)=>{let Te=bn(ye);(B||(t===null||!t&&n===null))&&(V(!1),Bl(N)===0&&Re!=="alpha"&&(Te=fd(Te))),S&&K&&(Te=fd(Te)),He?ae.current=!1:w==null||w(Te),M(Te),C==null||C(Te,Te.toHexString());},Y=()=>{V(!0),$==null||$();},ne=ye=>{ae.current=!0;let Re=bn(ye);S&&K&&(Re=fd(ye)),w==null||w(Re);},J={open:L,trigger:s,placement:u,arrow:d,rootClassName:b,getPopupContainer:O,autoAdjustOverflow:R,destroyTooltipOnHide:A},fe={prefixCls:j,color:N,allowClear:o,colorCleared:B,disabled:c,disabledAlpha:S,presets:i,panelRender:f,format:H,onFormatChange:W,onChangeComplete:ne},me=Object.assign(Object.assign({},P==null?void 0:P.style),v);return U(m.createElement(ih,Object.assign({style:y==null?void 0:y.popup,overlayInnerStyle:y==null?void 0:y.popupOverlayInner,onOpenChange:ye=>{ae.current&&z(ye);},content:m.createElement(Ga,{override:!0,status:!0},m.createElement(g8,Object.assign({},fe,{onChange:ce,onChangeComplete:ne,onClear:Y}))),overlayClassName:re},J),a||m.createElement(y8,{open:L,className:ve,style:me,color:t?bn(t):N,prefixCls:j,disabled:c,colorCleared:B,showText:h,format:H})))},k8=Ah(Kh,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));Kh._InternalPanelDoNotUseOrYouWillBeFired=k8;const A8=Kh;var L8=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],AS=m.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,f=d===void 0?"checkbox":d,h=e.title,v=e.onChange,g=Je(e,L8),p=m.useRef(null),b=Dt(u,{value:s}),y=G(b,2),S=y[0],E=y[1];m.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={},Z(n,"".concat(o,"-checked"),S),Z(n,"".concat(o,"-disabled"),l),n)),$=function(w){l||("checked"in e||E(w.target.checked),v==null||v({target:Q(Q({},e),{},{type:f,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation();},preventDefault:function(){w.preventDefault();},nativeEvent:w.nativeEvent}));};return m__namespace.createElement("span",{className:C,title:h,style:a},m__namespace.createElement("input",Oe({},g,{className:"".concat(o,"-input"),ref:p,onChange:$,disabled:l,checked:!!S,type:f})),m__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const D8=m.createContext(null),LS=D8,z8=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Mt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Mt(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({},Mt(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({},Lo(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 j8(e,t){const n=ft(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [z8(n)]}const DS=Ut("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [j8(n,e)]});var B8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const H8=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,h=B8(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:g,checkbox:p}=m__namespace.useContext(nt),b=m__namespace.useContext(LS),{isFormItemInput:y}=m__namespace.useContext(tr),S=m__namespace.useContext(Pr),E=(n=(b==null?void 0:b.disabled)||f)!==null&&n!==void 0?n:S,C=m__namespace.useRef(h.value);m__namespace.useEffect(()=>{b==null||b.registerValue(h.value);},[]),m__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 $=v("checkbox",r),[x,w]=DS($),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 R=F(`${$}-wrapper`,{[`${$}-rtl`]:g==="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},jc,w),_=s?"mixed":void 0;return x(m__namespace.createElement(fs,{component:"Checkbox",disabled:E},m__namespace.createElement("label",{className:R,style:Object.assign(Object.assign({},p==null?void 0:p.style),l),onMouseEnter:c,onMouseLeave:u},m__namespace.createElement(AS,Object.assign({"aria-checked":_},O,{prefixCls:$,className:A,disabled:E,ref:t})),a!==void 0&&m__namespace.createElement("span",null,a))))},F8=m__namespace.forwardRef(H8),zS=F8;var W8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const V8=(e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=W8(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=m__namespace.useContext(nt),[h,v]=m__namespace.useState(u.value||n||[]),[g,p]=m__namespace.useState([]);m__namespace.useEffect(()=>{"value"in u&&v(u.value||[]);},[u.value]);const b=m__namespace.useMemo(()=>o.map(I=>typeof I=="string"||typeof I=="number"?{label:I,value:I}:I),[o]),y=I=>{p(P=>P.filter(T=>T!==I));},S=I=>{p(P=>[].concat(Qe(P),[I]));},E=I=>{const P=h.indexOf(I.value),T=Qe(h);P===-1?T.push(I.value):T.splice(P,1),"value"in u||v(T),c==null||c(T.filter(N=>g.includes(N)).sort((N,M)=>{const L=b.findIndex(H=>H.value===N),z=b.findIndex(H=>H.value===M);return L-z}));},C=d("checkbox",i),$=`${C}-group`,[x,w]=DS(C),O=yn(u,["value","disabled"]),R=o.length?b.map(I=>m__namespace.createElement(zS,{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},_=F($,{[`${$}-rtl`]:f==="rtl"},a,s,w);return x(m__namespace.createElement("div",Object.assign({className:_,style:l},O,{ref:t}),m__namespace.createElement(LS.Provider,{value:A},R)))},U8=m__namespace.forwardRef(V8),K8=m__namespace.memo(U8),Gh=zS;Gh.Group=K8;Gh.__ANT_CHECKBOX=!0;const Xh=Gh;var G8=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function bb(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 yb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bb(Object(n),!0).forEach(function(r){X8(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function X8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q8(e,t){if(e==null)return {};var n=Y8(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function Y8(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Z8={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 Q8(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function J8(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 jS=m.createContext(Z8);jS.Provider;function Vt(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,f=q8(r,G8),h=m.useContext(jS),v=m.useMemo(Q8,[]),g=J8(v,{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),m.createElement("span",yb(yb({},f),{},{className:p.join(" ")}),n(g))}}const eB=Vt("people-minus",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 35H42H30Z",fill:e.colors[1]}),m.createElement("path",{d:"M30 35H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.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}))}),tB=Vt("people-delete",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M33 31L41 39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M33 39L41 31",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.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}))}),nB=Vt("delete",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M9 10V44H39V10H9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M20 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M28 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M4 10H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),rB=Vt("add-two",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M31 30L43 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15 22L22 29L41 11",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M37 24V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),oB=Vt("play-two",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),iB=Vt("unlike",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M34.959 27L41.8375 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M41.8375 27L34.959 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),aB=Vt("dislike-two",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 20L20 28L28 20Z",fill:e.colors[1]}),m.createElement("path",{d:"M28 20L20 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 20.0001L28 28L20 20.0001Z",fill:e.colors[1]}),m.createElement("path",{d:"M20 20.0001L28 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),sB=Vt("copy",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),lB=Vt("efferent-four",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M28 5H40V17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21.0001 23.9998L39 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),cB=Vt("star",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}))}),uB=Vt("file-cabinet",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M42 4H6V14H42V4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M42 19H6V29H42V19Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M42 34H6V44H42V34Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21 9H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M21 24H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M21 39H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),dB=Vt("tumblr",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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]}))}),fB=Vt("concern",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.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}),m.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}),m.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}))}),mB=Vt("iphone",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("rect",{x:"11",y:"4",width:"26",height:"40",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),m.createElement("path",{d:"M22 10L26 10",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M20 38H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),hB=Vt("computer",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("rect",{x:"19",y:"32",width:"10",height:"9",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("rect",{x:"5",y:"8",width:"38",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),m.createElement("path",{d:"M22 27H26",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M14 41L34 41",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),vB=Vt("tips",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.createElement("path",{d:"M18 17V23L24 20L30 23V17",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),gB=Vt("return",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.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}))}),pB=Vt("loading-three",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),bB=Vt("loading",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),yB=Vt("info",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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]}),m.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),CB=Vt("help",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.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]}))}),SB=Vt("distraught-face",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),wB=Vt("config",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),xB=Vt("close",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),$B={Close:xB,Config:wB,DistraughtFace:SB,Help:CB,Info:yB,Loading:bB,LoadingThree:pB,Return:gB,Tips:vB,Computer:hB,Iphone:mB,Concern:fB,Tumblr:dB,FileCabinet:uB,Star:cB,EfferentFour:lB,Copy:sB,DislikeTwo:aB,Unlike:iB,PlayTwo:oB,AddTwo:rB,Delete:nB,PeopleDelete:tB,PeopleMinus:eB};function Tt({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const i=$B[e];return D(i,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}var Cb=1/0,EB=17976931348623157e292;function OB(e){if(!e)return e===0?e:0;if(e=Kd(e),e===Cb||e===-Cb){var t=e<0?-1:1;return t*EB}return e===e?e:0}function IB(e){var t=OB(e),n=t%1;return t===t?n?t-n:t:0}var PB="Expected a function";function RB(e,t){var n;if(typeof t!="function")throw new TypeError(PB);return e=IB(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function _B(e){return RB(2,e)}var Df={exports:{}};(function(e,t){(function(n,r){var o="1.0.35",i="",a="?",s="function",l="undefined",c="object",u="string",d="major",f="model",h="name",v="type",g="vendor",p="version",b="architecture",y="console",S="mobile",E="tablet",C="smarttv",$="wearable",x="embedded",w=350,O="Amazon",R="Apple",A="ASUS",_="BlackBerry",I="Browser",P="Chrome",T="Edge",N="Firefox",M="Google",L="Huawei",z="LG",H="Microsoft",W="Motorola",B="Opera",V="Samsung",j="Sharp",K="Sony",te="Xiaomi",q="Zebra",U="Facebook",X="Chromium OS",oe="Mac OS",ue=function(ie,he){var pe={};for(var we in ie)he[we]&&he[we].length%2===0?pe[we]=he[we].concat(ie[we]):pe[we]=ie[we];return pe},ve=function(ie){for(var he={},pe=0;pe<ie.length;pe++)he[ie[pe].toUpperCase()]=ie[pe];return he},re=function(ie,he){return typeof ie===u?ae(he).indexOf(ae(ie))!==-1:!1},ae=function(ie){return ie.toLowerCase()},ce=function(ie){return typeof ie===u?ie.replace(/[^\d\.]/g,i).split(".")[0]:r},Y=function(ie,he){if(typeof ie===u)return ie=ie.replace(/^\s\s*/,i),typeof he===l?ie:ie.substring(0,w)},ne=function(ie,he){for(var pe=0,we,De,Ae,xe,Ie,Fe;pe<he.length&&!Ie;){var $e=he[pe],Ne=he[pe+1];for(we=De=0;we<$e.length&&!Ie&&$e[we];)if(Ie=$e[we++].exec(ie),Ie)for(Ae=0;Ae<Ne.length;Ae++)Fe=Ie[++De],xe=Ne[Ae],typeof xe===c&&xe.length>0?xe.length===2?typeof xe[1]==s?this[xe[0]]=xe[1].call(this,Fe):this[xe[0]]=xe[1]:xe.length===3?typeof xe[1]===s&&!(xe[1].exec&&xe[1].test)?this[xe[0]]=Fe?xe[1].call(this,Fe,xe[2]):r:this[xe[0]]=Fe?Fe.replace(xe[1],xe[2]):r:xe.length===4&&(this[xe[0]]=Fe?xe[3].call(this,Fe.replace(xe[1],xe[2])):r):this[xe]=Fe||r;pe+=2;}},J=function(ie,he){for(var pe in he)if(typeof he[pe]===c&&he[pe].length>0){for(var we=0;we<he[pe].length;we++)if(re(he[pe][we],ie))return pe===a?r:pe}else if(re(he[pe],ie))return pe===a?r:pe;return ie},fe={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},me={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ye={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,p],[/opios[\/ ]+([\w\.]+)/i],[p,[h,B+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[h,B]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[h,"UC"+I]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+I],p],[/\bfocus\/([\w\.]+)/i],[p,[h,N+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[h,B+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[h,B+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[h,"MIUI "+I]],[/fxios\/([-\w\.]+)/i],[p,[h,N]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+I]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+I],p],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,U],p],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[h,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,P+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[h,"Android "+I]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[p,J,fe]],[/(webkit|khtml)\/([\w\.]+)/i],[h,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[h,N+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,p],[/(cobalt)\/([\w\.]+)/i],[h,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,ae]],[/((?:i[346]|x)86)[;\)]/i],[[b,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/windows (ce|mobile); ppc;/i],[[b,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[b,/ower/,i,ae]],[/(sun4\w)[;\)]/i],[[b,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[b,ae]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[g,V],[v,E]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[g,V],[v,S]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[g,R],[v,S]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[g,R],[v,E]],[/(macintosh);/i],[f,[g,R]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[g,j],[v,S]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[g,L],[v,E]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[g,L],[v,S]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[g,te],[v,S]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[g,te],[v,E]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[g,"OPPO"],[v,S]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[g,"Vivo"],[v,S]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[g,"Realme"],[v,S]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[g,W],[v,S]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[g,W],[v,E]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[g,z],[v,E]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[g,z],[v,S]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[g,"Lenovo"],[v,E]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[g,"Nokia"],[v,S]],[/(pixel c)\b/i],[f,[g,M],[v,E]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[g,M],[v,S]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[g,K],[v,S]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[g,K],[v,E]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[g,"OnePlus"],[v,S]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[g,O],[v,E]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[g,O],[v,S]],[/(playbook);[-\w\),; ]+(rim)/i],[f,g,[v,E]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[g,_],[v,S]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[g,A],[v,E]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[g,A],[v,S]],[/(nexus 9)/i],[f,[g,"HTC"],[v,E]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[f,/_/g," "],[v,S]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[g,"Acer"],[v,E]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[g,"Meizu"],[v,S]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,f,[v,S]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,f,[v,E]],[/(surface duo)/i],[f,[g,H],[v,E]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[g,"Fairphone"],[v,S]],[/(u304aa)/i],[f,[g,"AT&T"],[v,S]],[/\bsie-(\w*)/i],[f,[g,"Siemens"],[v,S]],[/\b(rct\w+) b/i],[f,[g,"RCA"],[v,E]],[/\b(venue[\d ]{2,7}) b/i],[f,[g,"Dell"],[v,E]],[/\b(q(?:mv|ta)\w+) b/i],[f,[g,"Verizon"],[v,E]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[g,"Barnes & Noble"],[v,E]],[/\b(tm\d{3}\w+) b/i],[f,[g,"NuVision"],[v,E]],[/\b(k88) b/i],[f,[g,"ZTE"],[v,E]],[/\b(nx\d{3}j) b/i],[f,[g,"ZTE"],[v,S]],[/\b(gen\d{3}) b.+49h/i],[f,[g,"Swiss"],[v,S]],[/\b(zur\d{3}) b/i],[f,[g,"Swiss"],[v,E]],[/\b((zeki)?tb.*\b) b/i],[f,[g,"Zeki"],[v,E]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],f,[v,E]],[/\b(ns-?\w{0,9}) b/i],[f,[g,"Insignia"],[v,E]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[g,"NextBook"],[v,E]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],f,[v,S]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],f,[v,S]],[/\b(ph-1) /i],[f,[g,"Essential"],[v,S]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[g,"Envizen"],[v,E]],[/\b(trio[-\w\. ]+) b/i],[f,[g,"MachSpeed"],[v,E]],[/\btu_(1491) b/i],[f,[g,"Rotor"],[v,E]],[/(shield[\w ]+) b/i],[f,[g,"Nvidia"],[v,E]],[/(sprint) (\w+)/i],[g,f,[v,S]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[g,H],[v,S]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[g,q],[v,E]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[g,q],[v,S]],[/smart-tv.+(samsung)/i],[g,[v,C]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[g,V],[v,C]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,z],[v,C]],[/(apple) ?tv/i],[g,[f,R+" TV"],[v,C]],[/crkey/i],[[f,P+"cast"],[g,M],[v,C]],[/droid.+aft(\w)( bui|\))/i],[f,[g,O],[v,C]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[g,j],[v,C]],[/(bravia[\w ]+)( bui|\))/i],[f,[g,K],[v,C]],[/(mitv-\w{5}) bui/i],[f,[g,te],[v,C]],[/Hbbtv.*(technisat) (.*);/i],[g,f,[v,C]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,Y],[f,Y],[v,C]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,C]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,f,[v,y]],[/droid.+; (shield) bui/i],[f,[g,"Nvidia"],[v,y]],[/(playstation [345portablevi]+)/i],[f,[g,K],[v,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[g,H],[v,y]],[/((pebble))app/i],[g,f,[v,$]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[g,R],[v,$]],[/droid.+; (glass) \d/i],[f,[g,M],[v,$]],[/droid.+; (wt63?0{2,3})\)/i],[f,[g,q],[v,$]],[/(quest( 2| pro)?)/i],[f,[g,U],[v,$]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[v,x]],[/(aeobc)\b/i],[f,[g,O],[v,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[v,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[v,E]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,E]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,S]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[h,T+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[p,J,me]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[p,J,me]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,oe],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,p],[/\(bb(10);/i],[p,[h,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[h,N+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[h,P+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,X],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,p],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,p]]},Re=function(ie,he){if(typeof ie===c&&(he=ie,ie=r),!(this instanceof Re))return new Re(ie,he).getResult();var pe=typeof n!==l&&n.navigator?n.navigator:r,we=ie||(pe&&pe.userAgent?pe.userAgent:i),De=pe&&pe.userAgentData?pe.userAgentData:r,Ae=he?ue(ye,he):ye,xe=pe&&pe.userAgent==we;return this.getBrowser=function(){var Ie={};return Ie[h]=r,Ie[p]=r,ne.call(Ie,we,Ae.browser),Ie[d]=ce(Ie[p]),xe&&pe&&pe.brave&&typeof pe.brave.isBrave==s&&(Ie[h]="Brave"),Ie},this.getCPU=function(){var Ie={};return Ie[b]=r,ne.call(Ie,we,Ae.cpu),Ie},this.getDevice=function(){var Ie={};return Ie[g]=r,Ie[f]=r,Ie[v]=r,ne.call(Ie,we,Ae.device),xe&&!Ie[v]&&De&&De.mobile&&(Ie[v]=S),xe&&Ie[f]=="Macintosh"&&pe&&typeof pe.standalone!==l&&pe.maxTouchPoints&&pe.maxTouchPoints>2&&(Ie[f]="iPad",Ie[v]=E),Ie},this.getEngine=function(){var Ie={};return Ie[h]=r,Ie[p]=r,ne.call(Ie,we,Ae.engine),Ie},this.getOS=function(){var Ie={};return Ie[h]=r,Ie[p]=r,ne.call(Ie,we,Ae.os),xe&&!Ie[h]&&De&&De.platform!="Unknown"&&(Ie[h]=De.platform.replace(/chrome os/i,X).replace(/macos/i,oe)),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?Y(Ie,w):Ie,this},this.setUA(we),this};Re.VERSION=o,Re.BROWSER=ve([h,p,d]),Re.CPU=ve([b]),Re.DEVICE=ve([f,g,v,y,S,C,E,$,x]),Re.ENGINE=Re.OS=ve([h,p]),e.exports&&(t=e.exports=Re),t.UAParser=Re;var He=typeof n!==l&&(n.jQuery||n.Zepto);if(He&&!He.ua){var Te=new Re;He.ua=Te.getResult(),He.ua.get=function(){return Te.getUA()},He.ua.set=function(ie){Te.setUA(ie);var he=Te.getResult();for(var pe in he)He.ua[pe]=he[pe];};}})(typeof window=="object"?window:Eo);})(Df,Df.exports);var TB=Df.exports;const MB=an(TB),NB=Symbol(),qh=Symbol(),ma="a",ml="w";let kB=(e,t)=>new Proxy(e,t);const zf=Object.getPrototypeOf,jf=new WeakMap,BS=e=>e&&(jf.has(e)?jf.get(e):zf(e)===Object.prototype||zf(e)===Array.prototype),Sb=e=>typeof e=="object"&&e!==null,AB=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(zf(e),t)},HS=e=>e[qh]||e,FS=(e,t,n,r)=>{if(!BS(e))return e;let o=r&&r.get(e);if(!o){const l=HS(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,AB(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 f=(v,g)=>{if(!d){let p=u[ma].get(l);if(p||(p={},u[ma].set(l,p)),v===ml)p[ml]=!0;else {let b=p[v];b||(b=new Set,p[v]=b),b.add(g);}}},h={get:(v,g)=>g===qh?l:(f("k",g),FS(Reflect.get(v,g),u[ma],u.c,u.t)),has:(v,g)=>g===NB?(d=!0,u[ma].delete(l),!0):(f("h",g),Reflect.has(v,g)),getOwnPropertyDescriptor:(v,g)=>(f("o",g),Reflect.getOwnPropertyDescriptor(v,g)),ownKeys:v=>(f(ml),Reflect.ownKeys(v))};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][ma]=t,s[1].c=n,s[1].t=r,s[1].p},WS=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!Sb(e)||!Sb(t))return !0;const o=n.get(HS(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[ml]===!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=WS(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i});}},LB=e=>BS(e)&&e[qh]||null,wb=(e,t=!0)=>{jf.set(e,t);};const wd=e=>typeof e=="object"&&e!==null,ro=new WeakMap,Ks=new WeakSet,DB=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>wd(c)&&!Ks.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 f=o.get(c);if((f==null?void 0:f[0])===u)return f[1];const h=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return wb(h,!0),o.set(c,[u,h]),Reflect.ownKeys(c).forEach(v=>{if(Object.getOwnPropertyDescriptor(h,v))return;const g=Reflect.get(c,v),p={value:g,enumerable:!0,configurable:!0};if(Ks.has(g))wb(g,!1);else if(g instanceof Promise)delete p.value,p.get=()=>d(g);else if(ro.has(g)){const[b,y]=ro.get(g);p.value=i(b,y(),d);}Object.defineProperty(h,v,p);}),Object.preventExtensions(h)},a=new WeakMap,s=[1,1],l=c=>{if(!wd(c))throw new Error("object required");const u=a.get(c);if(u)return u;let d=s[0];const f=new Set,h=(O,R=++s[0])=>{d!==R&&(d=R,f.forEach(A=>A(O,R)));};let v=s[1];const g=(O=++s[1])=>(v!==O&&!f.size&&(v=O,b.forEach(([R])=>{const A=R[1](O);A>d&&(d=A);})),d),p=O=>(R,A)=>{const _=[...R];_[1]=[O,..._[1]],h(_,A);},b=new Map,y=(O,R)=>{if(f.size){const A=R[3](p(O));b.set(O,[R,A]);}else b.set(O,[R]);},S=O=>{var R;const A=b.get(O);A&&(b.delete(O),(R=A[1])==null||R.call(A));},E=O=>(f.add(O),f.size===1&&b.forEach(([A,_],I)=>{const P=A[3](p(I));b.set(I,[A,P]);}),()=>{f.delete(O),f.size===0&&b.forEach(([A,_],I)=>{_&&(_(),b.set(I,[A]));});}),C=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),x=t(C,{deleteProperty(O,R){const A=Reflect.get(O,R);S(R);const _=Reflect.deleteProperty(O,R);return _&&h(["delete",[R],A]),_},set(O,R,A,_){const I=Reflect.has(O,R),P=Reflect.get(O,R,_);if(I&&(e(P,A)||a.has(A)&&e(P,a.get(A))))return !0;S(R),wd(A)&&(A=LB(A)||A);let T=A;if(A instanceof Promise)A.then(N=>{A.status="fulfilled",A.value=N,h(["resolve",[R],N]);}).catch(N=>{A.status="rejected",A.reason=N,h(["reject",[R],N]);});else {!ro.has(A)&&n(A)&&(T=l(A));const N=!Ks.has(T)&&ro.get(T);N&&y(R,N);}return Reflect.set(O,R,T,_),h(["set",[R],A,P]),!0}});a.set(c,x);const w=[C,g,i,E];return ro.set(x,w),Reflect.ownKeys(c).forEach(O=>{const R=Object.getOwnPropertyDescriptor(c,O);"value"in R&&(x[O]=c[O],delete R.value,delete R.writable),Object.defineProperty(C,O,R);}),x})=>[l,ro,Ks,e,t,n,r,o,i,a,s],[zB]=DB();function dr(e={}){return zB(e)}function Yh(e,t,n){const r=ro.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 Hl(e,t){const n=ro.get(e),[r,o,i]=n;return i(r,o(),t)}var VS={exports:{}},US={};/** * @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 zi=m;function jB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var BB=typeof Object.is=="function"?Object.is:jB,HB=zi.useState,FB=zi.useEffect,WB=zi.useLayoutEffect,VB=zi.useDebugValue;function UB(e,t){var n=t(),r=HB({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return WB(function(){o.value=n,o.getSnapshot=t,xd(o)&&i({inst:o});},[e,n,t]),FB(function(){return xd(o)&&i({inst:o}),e(function(){xd(o)&&i({inst:o});})},[e]),VB(n),n}function xd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !BB(e,n)}catch{return !0}}function KB(e,t){return t()}var GB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?KB:UB;US.useSyncExternalStore=zi.useSyncExternalStore!==void 0?zi.useSyncExternalStore:GB;VS.exports=US;var XB=VS.exports;const qB=an(XB),{use:xb}=m,{useSyncExternalStore:YB}=qB;const ZB=new WeakMap;function mr(e,t){const n=t==null?void 0:t.sync,r=m.useRef(),o=m.useRef();let i=!0;const a=YB(m.useCallback(c=>{const u=Yh(e,c,n);return c(),u},[e,n]),()=>{const c=Hl(e,xb);try{if(!i&&r.current&&o.current&&!WS(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>Hl(e,xb));i=!1;const s=new WeakMap;m.useEffect(()=>{r.current=a,o.current=s;});const l=m.useMemo(()=>new WeakMap,[]);return FS(a,s,l,ZB)}const ji=_B(()=>!!document.querySelectorAll(".bili-feed4").length),KS=()=>document.body.classList.contains("dark"),GS=dr({value:KS()});function Zh(){return mr(GS).value}const XS=new MutationObserver(function(){GS.value=KS();});XS.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{XS.disconnect();});const qS=MB();var i0;const QB=((i0=qS.os.name)==null?void 0:i0.toLowerCase())==="mac os";var a0;const Qh=((a0=qS.browser.name)==null?void 0:a0.toLowerCase())==="safari";var JB=_0(function(e,t){var n=e.styles,r=wi([n],void 0,m__namespace.useContext(T0)),o=m__namespace.useRef();return Rv(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]),Rv(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(r.next!==void 0&&vm(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<e;n++)t[n]=arguments[n];return wi(t)}var tu={},YS={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports;})(YS);var Jh=YS.exports,nu={};Object.defineProperty(nu,"__esModule",{value:!0});nu.default=void 0;var eH={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:"页码"};nu.default=eH;var ru={},ys={},ou={};Object.defineProperty(ou,"__esModule",{value:!0});ou.default=void 0;var tH={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},nH=tH;ou.default=nH;var Cs={};Object.defineProperty(Cs,"__esModule",{value:!0});Cs.default=void 0;const rH={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var oH=rH;Cs.default=oH;var ZS=Jh.default;Object.defineProperty(ys,"__esModule",{value:!0});ys.default=void 0;var iH=ZS(ou),aH=ZS(Cs);const QS={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},iH.default),timePickerLocale:Object.assign({},aH.default)};QS.lang.ok="确定";var sH=QS;ys.default=sH;var lH=Jh.default;Object.defineProperty(ru,"__esModule",{value:!0});ru.default=void 0;var cH=lH(ys),uH=cH.default;ru.default=uH;var iu=Jh.default;Object.defineProperty(tu,"__esModule",{value:!0});tu.default=void 0;var dH=iu(nu),fH=iu(ru),mH=iu(ys),hH=iu(Cs);const zn="${label}不是一个有效的${type}",vH={locale:"zh-cn",Pagination:dH.default,DatePicker:mH.default,TimePicker:hH.default,Calendar:fH.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:zn,method:zn,array:zn,object:zn,number:zn,date:zn,boolean:zn,integer:zn,float:zn,regexp:zn,email:zn,url:zn,hex:zn},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新"},ColorPicker:{presetEmpty:"暂无"}};var gH=vH;tu.default=gH;var pH=tu;const bH=an(pH);function JS({children:e}){const t=Zh(),{colorPrimary:n}=rw();return Ce(Um,{locale:bH,theme:{algorithm:t?Mi.darkAlgorithm:Mi.defaultAlgorithm,token:{colorPrimary:n,colorBgSpotlight:n,zIndexPopupBase:11e3,fontFamily:"inherit"}},children:[D(JB,{styles:Yn(":root{",ow,":",n,";}","")}),e]})}function Fl(e){return D(us,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}function un({configKey:e,label:t,extraAction:n,tooltip:r,...o}){const a=!!In()[e],s=m.useCallback(c=>{const u=c.target.checked;Er({[e]:u}),n==null||n(u);},[]);let l=D("span",{style:{userSelect:"none"},children:t||e});return r&&(l=D(us,{title:r,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),D(Xh,{...o,checked:a,onChange:s,children:l})}var yH={name:"1qkltea",styles:"margin-left:5px"};const CH=function(){const e=yH;return Ce(Ct,{children:[D(un,{configKey:"initialShowMore",label:"自动查看更多",css:e}),D(un,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function Wl({tooltip:e,iconProps:t,tooltipProps:n}){return D(Ct,{children:e&&D(Fl,{...n,title:e,children:D(Tt,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const SH=[{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)"}],Vl={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},ew={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function wH(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 tw="UP长期洗涤",xH=wH(tw,` #0545b2 理想之蓝 #f4cd00 柠檬黄 #ef2729 石榴红 #f89c00 鹿箭 #233728 黛绿 #f2b9b7 和熙粉 #f3cc91 芝士黄 #6b4c68 葡萄紫 #ff7227 落日橙 #004d62 碧海天 #23909b 洗碧空 #aeb400 芥丝绿 #425a17 箬叶青 #002FA7 克莱因蓝 #003153 普鲁士蓝 #01847F 马尔斯绿 #FBD26A 申布伦黄 #470024 勃艮第红 #492D22 凡戴克棕 `),nw=[{name:"预设",themes:[Vl,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},ew]},{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:SH,tooltip:Ce(Ct,{children:["提取自"," ",D("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),D("br",{}),"Apache License 2.0"]})},{name:tw,themes:xH,tooltip:Ce(Ct,{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"})]})}],$H=nw.map(e=>e.themes).flat();function rw(){let{theme:e,colorPickerThemeSelectedColor:t}=In();return e||(e=Vl.id),m.useMemo(()=>{const n=$H.find(r=>r.id===e)||Vl;return n.id===ew.id&&t&&(n.colorPrimary=t),n},[e,t])}const ow=`--${fn}-color-primary`,Wr=`var(${ow})`;var EH={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},OH={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},IH={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function PH(){const e=rw().id,{colorPickerThemeSelectedColor:t}=In(),[n,r]=m.useState(t||Vl.colorPrimary),o=m.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return D("div",{children:nw.map(({name:i,themes:a,tooltip:s})=>Ce(m.Fragment,{children:[Ce("div",{css:IH,children:[i,D(Wl,{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 f=D("div",{className:"preview-wrapper",css:[OH,c&&Yn("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(f=D(A8,{value:n,onChange:h=>r(h),onOpenChange:h=>{h||Er({colorPickerThemeSelectedColor:o});},children:f})),Ce("div",{css:EH,onClick:h=>{Er({theme:l.id});},children:[f,l.name]},l.id)})})]},i))})}const RH="_toast-container_185m9_1",_H="_single-line_185m9_17";function gt(e,t=2e3){const n=document.createElement("div");n.className=RH,n.innerText=e,n.style.backgroundColor=Wr,!e.includes(` `)&&!e.includes("<br")&&n.classList.add(_H),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const TH="请求失败, 请重试 !!!",iw="操作失败, 请重试 !!!";function aw(){return gt(TH)}function sw(){return gt(iw)}const lw="27eb53fc9058f8c3";async function MH(){var c,u;const t=(await Jc.get("https://passport.bilibili.com/login/app/third",{params:{appkey:lw,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)){gt("你必须登录B站之后才能使用授权");return}if(!((u=t==null?void 0:t.data)!=null&&u.confirm_uri)){gt("无法获得授权网址");return}const n=t.data.confirm_uri;let r,o;const i=new Promise(d=>{const f=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 g=new URL(h.data).searchParams.get("access_key");return g?d(g):(gt("没有获得匹配的密钥"),d(void 0))};window.addEventListener("message",f),o=()=>window.removeEventListener("message",f),r=setTimeout(()=>{gt("获取授权超时"),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 NH(){const e=await MH();if(e)return yt.accessKey=e,gt("获取成功"),e}function kH(){yt.accessKey="",gt("已删除 access_key");}var cw=function(e){return function(t,n){var r=m.useRef(!1);e(function(){return function(){r.current=!1;}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n);}},sr=function(){return sr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);}return t},sr.apply(this,arguments)};function uw(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function AH(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i);})}return new(n||(n=Promise))(function(i,a){function s(u){try{c(r.next(u));}catch(d){a(d);}}function l(u){try{c(r.throw(u));}catch(d){a(d);}}function c(u){u.done?i(u.value):o(u.value).then(s,l);}c((r=r.apply(e,t||[])).next());})}function LH(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n);}catch(u){c=[6,u],o=0;}finally{r=i=0;}if(c[0]&5)throw c[1];return {value:c[0]?c[1]:void 0,done:!0}}}function Bf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xt(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<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ra=function(e){return typeof e=="function"},DH=function(e){return typeof e=="string"},dw=function(e){return typeof e=="number"};function ot(e){var t=m.useRef(e);t.current=m.useMemo(function(){return e},[e]);var n=m.useRef();return n.current||(n.current=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.current.apply(this,r)}),n.current}const Ul=cw(m.useEffect);var fw=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?!0:r,i=t.defaultParams,a=i===void 0?[]:i,s=t.refreshDeps,l=s===void 0?[]:s,c=t.refreshDepsAction,u=m.useRef(!1);return u.current=!1,Ul(function(){!n&&o&&(u.current=!0,e.run.apply(e,pn([],Xt(a),!1)));},[o]),Ul(function(){u.current||n||(u.current=!0,c?c():e.refresh());},pn([],Xt(l),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};fw.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const jH=fw;function Hf(e,t){if(e===t)return !0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return !1;return !0}function mw(e,t){var n=m.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!Hf(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function Bi(e){var t=m.useRef(e);return t.current=e,t}var BH=function(e){var t=Bi(e);m.useEffect(function(){return function(){t.current();}},[]);};const Ss=BH;var hl=new Map,HH=function(e,t,n){var r=hl.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){hl.delete(e);},t)),hl.set(e,sr(sr({},n),{timer:o}));},FH=function(e){return hl.get(e)},vl=new Map,WH=function(e){return vl.get(e)},VH=function(e,t){vl.set(e,t),t.then(function(n){return vl.delete(e),n}).catch(function(){vl.delete(e);});},xo={},UH=function(e,t){xo[e]&&xo[e].forEach(function(n){return n(t)});},$d=function(e,t){return xo[e]||(xo[e]=[]),xo[e].push(t),function(){var r=xo[e].indexOf(t);xo[e].splice(r,1);}},KH=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=m.useRef(),u=m.useRef(),d=function(h,v){s?s(v):HH(h,o,v),UH(h,v.data);},f=function(h,v){return v===void 0&&(v=[]),l?l(v):FH(h)};return mw(function(){if(n){var h=f(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=$d(n,function(v){e.setState({data:v});});}},[]),Ss(function(){var h;(h=c.current)===null||h===void 0||h.call(c);}),n?{onBefore:function(h){var v=f(n,h);return !v||!Object.hasOwnProperty.call(v,"data")?{}:a===-1||new Date().getTime()-v.time<=a?{loading:!1,data:v==null?void 0:v.data,error:void 0,returnNow:!0}:{data:v==null?void 0:v.data,error:void 0}},onRequest:function(h,v){var g=WH(n);return g&&g!==u.current?{servicePromise:g}:(g=h.apply(void 0,pn([],Xt(v),!1)),u.current=g,VH(n,g),{servicePromise:g})},onSuccess:function(h,v){var g;n&&((g=c.current)===null||g===void 0||g.call(c),d(n,{data:h,params:v,time:new Date().getTime()}),c.current=$d(n,function(p){e.setState({data:p});}));},onMutate:function(h){var v;n&&((v=c.current)===null||v===void 0||v.call(c),d(n,{data:h,params:e.state.params,time:new Date().getTime()}),c.current=$d(n,function(g){e.setState({data:g});}));}}:{}};const GH=KH;var XH=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,a=m.useRef(),s=m.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 m.useEffect(function(){if(n){var l=e.runAsync.bind(e);return a.current=iy(function(c){c();},n,s),e.runAsync=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new Promise(function(d,f){var h;(h=a.current)===null||h===void 0||h.call(a,function(){l.apply(void 0,pn([],Xt(c),!1)).then(d).catch(f);});})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=l;}}},[n,s]),n?{onCancel:function(){var l;(l=a.current)===null||l===void 0||l.cancel();}}:{}};const qH=XH;var YH=function(e,t){var n=t.loadingDelay,r=t.ready,o=m.useRef();if(!n)return {};var i=function(){o.current&&clearTimeout(o.current);};return {onBefore:function(){return i(),r!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0});},n)),{loading:!1}},onFinally:function(){i();},onCancel:function(){i();}}};const ZH=YH;var QH=!!(typeof window<"u"&&window.document&&window.document.createElement);const ws=QH;function ev(){return ws?document.visibilityState!=="hidden":!0}var Ia=[];function JH(e){return Ia.push(e),function(){var n=Ia.indexOf(e);Ia.splice(n,1);}}if(ws){var e9=function(){if(ev())for(var e=0;e<Ia.length;e++){var t=Ia[e];t();}};window.addEventListener("visibilitychange",e9,!1);}var t9=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,o=r===void 0?!0:r,i=t.pollingErrorRetryCount,a=i===void 0?-1:i,s=m.useRef(),l=m.useRef(),c=m.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l);};return Ul(function(){n||u();},[n]),n?{onBefore:function(){u();},onError:function(){c.current+=1;},onSuccess:function(){c.current=0;},onFinally:function(){a===-1||a!==-1&&c.current<=a?s.current=setTimeout(function(){!o&&!ev()?l.current=JH(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){u();}}:{}};const n9=t9;function r9(e,t){var n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n||(n=!0,e.apply(void 0,pn([],Xt(r),!1)),setTimeout(function(){n=!1;},t));}}function o9(){return ws&&typeof navigator.onLine<"u"?navigator.onLine:!0}var Pa=[];function i9(e){return Pa.push(e),function(){var n=Pa.indexOf(e);n>-1&&Pa.splice(n,1);}}if(ws){var $b=function(){if(!(!ev()||!o9()))for(var e=0;e<Pa.length;e++){var t=Pa[e];t();}};window.addEventListener("visibilitychange",$b,!1),window.addEventListener("focus",$b,!1);}var a9=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,i=m.useRef(),a=function(){var s;(s=i.current)===null||s===void 0||s.call(i);};return m.useEffect(function(){if(n){var s=r9(e.refresh.bind(e),o);i.current=i9(function(){s();});}return function(){a();}},[n,o]),Ss(function(){a();}),{}};const s9=a9;var l9=function(e,t){var n=t.retryInterval,r=t.retryCount,o=m.useRef(),i=m.useRef(0),a=m.useRef(!1);return r?{onBefore:function(){a.current||(i.current=0),a.current=!1,o.current&&clearTimeout(o.current);},onSuccess:function(){i.current=0;},onError:function(){if(i.current+=1,r===-1||i.current<=r){var s=n??Math.min(1e3*Math.pow(2,i.current),3e4);o.current=setTimeout(function(){a.current=!0,e.refresh();},s);}else i.current=0;},onCancel:function(){i.current=0,o.current&&clearTimeout(o.current);}}:{}};const c9=l9;var u9=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,i=m.useRef(),a={};return r!==void 0&&(a.leading=r),o!==void 0&&(a.trailing=o),m.useEffect(function(){if(n){var s=e.runAsync.bind(e);return i.current=ay(function(l){l();},n,a),e.runAsync=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new Promise(function(u,d){var f;(f=i.current)===null||f===void 0||f.call(i,function(){s.apply(void 0,pn([],Xt(l),!1)).then(u).catch(d);});})},function(){var l;e.runAsync=s,(l=i.current)===null||l===void 0||l.cancel();}}},[n,r,o]),n?{onCancel:function(){var s;(s=i.current)===null||s===void 0||s.cancel();}}:{}};const d9=u9;var f9=function(e){m.useEffect(function(){e==null||e();},[]);};const su=f9;var m9=function(){var e=Xt(m.useState({}),2),t=e[1];return m.useCallback(function(){return t({})},[])};const h9=m9;var v9=function(){function e(t,n,r,o){o===void 0&&(o={}),this.serviceRef=t,this.options=n,this.subscribe=r,this.initState=o,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=sr(sr(sr({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=sr(sr({},this.state),t),this.subscribe();},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.pluginImpls.map(function(i){var a;return (a=i[t])===null||a===void 0?void 0:a.call.apply(a,pn([i],Xt(n),!1))}).filter(Boolean);return Object.assign.apply(Object,pn([{}],Xt(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,i,a,s,l,c,u,d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return AH(this,void 0,void 0,function(){var h,v,g,p,b,y,S,E,C,$,x;return LH(this,function(w){switch(w.label){case 0:if(this.count+=1,h=this.count,v=this.runPluginHandler("onBefore",d),g=v.stopNow,p=g===void 0?!1:g,b=v.returnNow,y=b===void 0?!1:b,S=uw(v,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState(sr({loading:!0,params:d},S)),y)return [2,Promise.resolve(S.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),w.label=1;case 1:return w.trys.push([1,3,,4]),E=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,E||(E=(x=this.serviceRef).current.apply(x,pn([],Xt(d),!1))),[4,E];case 2:return C=w.sent(),h!==this.count?[2,new Promise(function(){})]:(this.setState({data:C,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,C,d),this.runPluginHandler("onSuccess",C,d),(a=(i=this.options).onFinally)===null||a===void 0||a.call(i,d,C,void 0),h===this.count&&this.runPluginHandler("onFinally",d,C,void 0),[2,C]);case 3:if($=w.sent(),h!==this.count)return [2,new Promise(function(){})];throw this.setState({error:$,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,$,d),this.runPluginHandler("onError",$,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,$),h===this.count&&this.runPluginHandler("onFinally",d,void 0,$),$;case 4:return [2]}})})},e.prototype.run=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.runAsync.apply(this,pn([],Xt(n),!1)).catch(function(o){t.options.onError||console.error(o);});},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel");},e.prototype.refresh=function(){this.run.apply(this,pn([],Xt(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,pn([],Xt(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=ra(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const g9=v9;function p9(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,i=uw(t,["manual"]);var a=sr({manual:o},i),s=Bi(e),l=h9(),c=mw(function(){var u=n.map(function(d){var f;return (f=d==null?void 0:d.onInit)===null||f===void 0?void 0:f.call(d,a)}).filter(Boolean);return new g9(s,a,l,Object.assign.apply(Object,pn([{}],Xt(u),!1)))},[]);return c.options=a,c.pluginImpls=n.map(function(u){return u(c,a)}),su(function(){if(!o){var u=c.state.params||t.defaultParams||[];c.run.apply(c,pn([],Xt(u),!1));}}),Ss(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:ot(c.cancel.bind(c)),refresh:ot(c.refresh.bind(c)),refreshAsync:ot(c.refreshAsync.bind(c)),run:ot(c.run.bind(c)),runAsync:ot(c.runAsync.bind(c)),mutate:ot(c.mutate.bind(c))}}function b9(e,t,n){return p9(e,t,pn(pn([],Xt(n||[]),!1),[qH,ZH,n9,s9,d9,jH,GH,c9],!1))}function hw(e,t){e===void 0&&(e=!1);var n=Xt(m.useState(e),2),r=n[0],o=n[1],i=m.useMemo(function(){var a=t===void 0?!e:t,s=function(){return o(function(d){return d===e?a:e})},l=function(d){return o(d)},c=function(){return o(e)},u=function(){return o(a)};return {toggle:s,set:l,setLeft:c,setRight:u}},[]);return [r,i]}function y9(e){e===void 0&&(e=!1);var t=Xt(hw(!!e),2),n=t[0],r=t[1],o=r.toggle,i=r.set,a=m.useMemo(function(){var s=function(){return i(!0)},l=function(){return i(!1)};return {toggle:o,set:function(c){return i(!!c)},setTrue:s,setFalse:l}},[]);return [n,a]}function lu(e,t){if(ws){if(!e)return t;var n;return ra(e)?n=e():"current"in e?n=e.current:n=e,n}}var C9=function(e){var t=function(n,r,o){var i=m.useRef(!1),a=m.useRef([]),s=m.useRef([]),l=m.useRef();e(function(){var c,u=Array.isArray(o)?o:[o],d=u.map(function(f){return lu(f)});if(!i.current){i.current=!0,a.current=d,s.current=r,l.current=n();return}(d.length!==a.current.length||!Hf(d,a.current)||!Hf(r,s.current))&&((c=l.current)===null||c===void 0||c.call(l),a.current=d,s.current=r,l.current=n());}),Ss(function(){var c;(c=l.current)===null||c===void 0||c.call(l),i.current=!1;});};return t};const S9=C9;var w9=S9(m.useEffect);const vw=w9;var gw={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Eo,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",v="date",g="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var P=["th","st","nd","rd"],T=I%100;return "["+I+(P[(T-20)%10]||P[T]||P[0])+"]"}},S=function(I,P,T){var N=String(I);return !N||N.length>=P?I:""+Array(P+1-N.length).join(T)+I},E={s:S,z:function(I){var P=-I.utcOffset(),T=Math.abs(P),N=Math.floor(T/60),M=T%60;return (P<=0?"+":"-")+S(N,2,"0")+":"+S(M,2,"0")},m:function I(P,T){if(P.date()<T.date())return -I(T,P);var N=12*(T.year()-P.year())+(T.month()-P.month()),M=P.clone().add(N,d),L=T-M<0,z=P.clone().add(N+(L?-1:1),d);return +(-(N+(T-M)/(L?M-z:z-M))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return {M:d,y:h,w:u,d:c,D:v,h:l,m:s,s:a,ms:i,Q:f}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},C="en",$={};$[C]=y;var x=function(I){return I instanceof A},w=function I(P,T,N){var M;if(!P)return C;if(typeof P=="string"){var L=P.toLowerCase();$[L]&&(M=L),T&&($[L]=T,M=L);var z=P.split("-");if(!M&&z.length>1)return I(z[0])}else {var H=P.name;$[H]=P,M=H;}return !N&&M&&(C=M),M||!N&&C},O=function(I,P){if(x(I))return I.clone();var T=typeof P=="object"?P:{};return T.date=I,T.args=arguments,new A(T)},R=E;R.l=w,R.i=x,R.w=function(I,P){return O(I,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var A=function(){function I(T){this.$L=w(T.locale,null,!0),this.parse(T);}var P=I.prototype;return P.parse=function(T){this.$d=function(N){var M=N.date,L=N.utc;if(M===null)return new Date(NaN);if(R.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var z=M.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(M)}(T),this.$x=T.x||{},this.init();},P.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds();},P.$utils=function(){return R},P.isValid=function(){return this.$d.toString()!==g},P.isSame=function(T,N){var M=O(T);return this.startOf(N)<=M&&M<=this.endOf(N)},P.isAfter=function(T,N){return O(T)<this.startOf(N)},P.isBefore=function(T,N){return this.endOf(N)<O(T)},P.$g=function(T,N,M){return R.u(T)?this[N]:this.set(M,T)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(T,N){var M=this,L=!!R.u(N)||N,z=R.p(T),H=function(U,X){var oe=R.w(M.$u?Date.UTC(M.$y,X,U):new Date(M.$y,X,U),M);return L?oe:oe.endOf(c)},W=function(U,X){return R.w(M.toDate()[U].apply(M.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(X)),M)},B=this.$W,V=this.$M,j=this.$D,K="set"+(this.$u?"UTC":"");switch(z){case h:return L?H(1,0):H(31,11);case d:return L?H(1,V):H(0,V+1);case u:var te=this.$locale().weekStart||0,q=(B<te?B+7:B)-te;return H(L?j-q:j+(6-q),V);case c:case v:return W(K+"Hours",0);case l:return W(K+"Minutes",1);case s:return W(K+"Seconds",2);case a:return W(K+"Milliseconds",3);default:return this.clone()}},P.endOf=function(T){return this.startOf(T,!1)},P.$set=function(T,N){var M,L=R.p(T),z="set"+(this.$u?"UTC":""),H=(M={},M[c]=z+"Date",M[v]=z+"Date",M[d]=z+"Month",M[h]=z+"FullYear",M[l]=z+"Hours",M[s]=z+"Minutes",M[a]=z+"Seconds",M[i]=z+"Milliseconds",M)[L],W=L===c?this.$D+(N-this.$W):N;if(L===d||L===h){var B=this.clone().set(v,1);B.$d[H](W),B.init(),this.$d=B.set(v,Math.min(this.$D,B.daysInMonth())).$d;}else H&&this.$d[H](W);return this.init(),this},P.set=function(T,N){return this.clone().$set(T,N)},P.get=function(T){return this[R.p(T)]()},P.add=function(T,N){var M,L=this;T=Number(T);var z=R.p(N),H=function(V){var j=O(L);return R.w(j.date(j.date()+Math.round(V*T)),L)};if(z===d)return this.set(d,this.$M+T);if(z===h)return this.set(h,this.$y+T);if(z===c)return H(1);if(z===u)return H(7);var W=(M={},M[s]=r,M[l]=o,M[a]=n,M)[z]||1,B=this.$d.getTime()+T*W;return R.w(B,this)},P.subtract=function(T,N){return this.add(-1*T,N)},P.format=function(T){var N=this,M=this.$locale();if(!this.isValid())return M.invalidDate||g;var L=T||"YYYY-MM-DDTHH:mm:ssZ",z=R.z(this),H=this.$H,W=this.$m,B=this.$M,V=M.weekdays,j=M.months,K=M.meridiem,te=function(X,oe,ue,ve){return X&&(X[oe]||X(N,L))||ue[oe].slice(0,ve)},q=function(X){return R.s(H%12||12,X,"0")},U=K||function(X,oe,ue){var ve=X<12?"AM":"PM";return ue?ve.toLowerCase():ve};return L.replace(b,function(X,oe){return oe||function(ue){switch(ue){case"YY":return String(N.$y).slice(-2);case"YYYY":return R.s(N.$y,4,"0");case"M":return B+1;case"MM":return R.s(B+1,2,"0");case"MMM":return te(M.monthsShort,B,j,3);case"MMMM":return te(j,B);case"D":return N.$D;case"DD":return R.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return te(M.weekdaysMin,N.$W,V,2);case"ddd":return te(M.weekdaysShort,N.$W,V,3);case"dddd":return V[N.$W];case"H":return String(H);case"HH":return R.s(H,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return U(H,W,!0);case"A":return U(H,W,!1);case"m":return String(W);case"mm":return R.s(W,2,"0");case"s":return String(N.$s);case"ss":return R.s(N.$s,2,"0");case"SSS":return R.s(N.$ms,3,"0");case"Z":return z}return null}(X)||z.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(T,N,M){var L,z=this,H=R.p(N),W=O(T),B=(W.utcOffset()-this.utcOffset())*r,V=this-W,j=function(){return R.m(z,W)};switch(H){case h:L=j()/12;break;case d:L=j();break;case f:L=j()/3;break;case u:L=(V-B)/6048e5;break;case c:L=(V-B)/864e5;break;case l:L=V/o;break;case s:L=V/r;break;case a:L=V/n;break;default:L=V;}return M?L:R.a(L)},P.daysInMonth=function(){return this.endOf(d).$D},P.$locale=function(){return $[this.$L]},P.locale=function(T,N){if(!T)return this.$L;var M=this.clone(),L=w(T,N,!0);return L&&(M.$L=L),M},P.clone=function(){return R.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},I}(),_=A.prototype;return O.prototype=_,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",c],["$M",d],["$y",h],["$D",v]].forEach(function(I){_[I[1]]=function(P){return this.$g(P,I[0],I[1])};}),O.extend=function(I,P){return I.$i||(I(P,A,O),I.$i=!0),O},O.locale=w,O.isDayjs=x,O.unix=function(I){return O(1e3*I)},O.en=$[C],O.Ls=$,O.p={},O});})(gw);var x9=gw.exports;const Go=an(x9);var $9="__lodash_hash_undefined__";function E9(e){return this.__data__.set(e,$9),this}function O9(e){return this.__data__.has(e)}function qa(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ur;++t<n;)this.add(e[t]);}qa.prototype.add=qa.prototype.push=E9;qa.prototype.has=O9;function I9(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return !0;return !1}function pw(e,t){return e.has(t)}var P9=1,R9=2;function bw(e,t,n,r,o,i){var a=n&P9,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return !1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&R9?new qa:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var v=e[d],g=t[d];if(r)var p=a?r(g,v,d,t,e,i):r(v,g,d,e,t,i);if(p!==void 0){if(p)continue;f=!1;break}if(h){if(!I9(t,function(b,y){if(!pw(h,y)&&(v===b||o(v,b,n,r,i)))return h.push(y)})){f=!1;break}}else if(!(v===g||o(v,g,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function _9(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}function tv(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var T9=1,M9=2,N9="[object Boolean]",k9="[object Date]",A9="[object Error]",L9="[object Map]",D9="[object Number]",z9="[object RegExp]",j9="[object Set]",B9="[object String]",H9="[object Symbol]",F9="[object ArrayBuffer]",W9="[object DataView]",Eb=Zn?Zn.prototype:void 0,Ed=Eb?Eb.valueOf:void 0;function V9(e,t,n,r,o,i,a){switch(n){case W9:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case F9:return !(e.byteLength!=t.byteLength||!i(new wl(e),new wl(t)));case N9:case k9:case D9:return pm(+e,+t);case A9:return e.name==t.name&&e.message==t.message;case z9:case B9:return e==t+"";case L9:var s=_9;case j9:var l=r&T9;if(s||(s=tv),e.size!=t.size&&!l)return !1;var c=a.get(e);if(c)return c==t;r|=M9,a.set(e,t);var u=bw(s(e),s(t),r,o,i,a);return a.delete(e),u;case H9:if(Ed)return Ed.call(e)==Ed.call(t)}return !1}var U9=1,K9=Object.prototype,G9=K9.hasOwnProperty;function X9(e,t,n,r,o,i){var a=n&U9,s=Fd(e),l=s.length,c=Fd(t),u=c.length;if(l!=u&&!a)return !1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:G9.call(t,f)))return !1}var h=i.get(e),v=i.get(t);if(h&&v)return h==t&&v==e;var g=!0;i.set(e,t),i.set(t,e);for(var p=a;++d<l;){f=s[d];var b=e[f],y=t[f];if(r)var S=a?r(y,b,f,t,e,i):r(b,y,f,e,t,i);if(!(S===void 0?b===y||o(b,y,n,r,i):S)){g=!1;break}p||(p=f=="constructor");}if(g&&!p){var E=e.constructor,C=t.constructor;E!=C&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof C=="function"&&C instanceof C)&&(g=!1);}return i.delete(e),i.delete(t),g}var q9=1,Ob="[object Arguments]",Ib="[object Array]",Gs="[object Object]",Y9=Object.prototype,Pb=Y9.hasOwnProperty;function Z9(e,t,n,r,o,i){var a=Jn(e),s=Jn(t),l=a?Ib:Ba(e),c=s?Ib:Ba(t);l=l==Ob?Gs:l,c=c==Ob?Gs:c;var u=l==Gs,d=c==Gs,f=l==c;if(f&&Sl(e)){if(!Sl(t))return !1;a=!0,u=!1;}if(f&&!u)return i||(i=new Sr),a||H0(e)?bw(e,t,n,r,o,i):V9(e,t,l,n,r,o,i);if(!(n&q9)){var h=u&&Pb.call(e,"__wrapped__"),v=d&&Pb.call(t,"__wrapped__");if(h||v){var g=h?e.value():e,p=v?t.value():t;return i||(i=new Sr),o(g,p,n,r,i)}}return f?(i||(i=new Sr),X9(e,t,n,r,o,i)):!1}function cu(e,t,n,r,o){return e===t?!0:e==null||t==null||!Dr(e)&&!Dr(t)?e!==e&&t!==t:Z9(e,t,n,r,cu,o)}function Q9(e,t){return cu(e,t)}var J9=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),Q9(e,t)};function lo(e,t,n){n===void 0&&(n={});var r=Bi(t);vw(function(){var o=lu(n.target,window);if(o!=null&&o.addEventListener){var i=function(a){return r.current(a)};return o.addEventListener(e,i,{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,i,{capture:n.capture});}}},[e,n.capture,n.once,n.passive],n.target);}function yw(e){var t=Xt(m.useState(e),2),n=t[0],r=t[1],o=m.useRef(n);o.current=n;var i=m.useCallback(function(){return o.current},[]);return [n,r,i]}const Od=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,i=n.onChange,a=Xt(y9(!1),2),s=a[0],l=a[1],c=l.setTrue,u=l.setFalse;return lo("mouseenter",function(){r==null||r(),c(),i==null||i(!0);},{target:e}),lo("mouseleave",function(){o==null||o(),u(),i==null||i(!1);},{target:e}),s};var eF=function(e,t,n){var r=m.useRef(),o=m.useRef(0);J9(t,r.current)||(r.current=t,o.current+=1),vw(e,[o.current],n);};const tF=eF;var nF=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const rF=nF;var Cw={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:rF?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},Ff={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?Cw.meta.includes(e.keyCode):e.metaKey}};function oF(e){var t=Object.keys(Ff).reduce(function(n,r){return Ff[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function Rb(e,t,n){var r,o;if(!e.key)return !1;if(dw(t))return e.keyCode===t;var i=t.split("."),a=0;try{for(var s=Bf(i),l=s.next();!l.done;l=s.next()){var c=l.value,u=Ff[c],d=Cw[c.toLowerCase()];(u&&u(e)||d&&d===e.keyCode)&&a++;}}catch(f){r={error:f};}finally{try{l&&!l.done&&(o=s.return)&&o.call(s);}finally{if(r)throw r.error}}return n?a===i.length&&oF(e)===i.length:a===i.length}function iF(e,t){return ra(e)?e:DH(e)||dw(e)?function(n){return Rb(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return Rb(n,r,t)})}:function(){return !!e}}var aF=["keydown"];function Zt(e,t,n){var r=n||{},o=r.events,i=o===void 0?aF:o,a=r.target,s=r.exactMatch,l=s===void 0?!1:s,c=r.useCapture,u=c===void 0?!1:c,d=Bi(t),f=Bi(e);tF(function(){var h,v,g,p=lu(a,window);if(p){var b=function(C){var $,x=iF(f.current,l);if(x(C))return ($=d.current)===null||$===void 0?void 0:$.call(d,C)};try{for(var y=Bf(i),S=y.next();!S.done;S=y.next()){var E=S.value;(g=p==null?void 0:p.addEventListener)===null||g===void 0||g.call(p,E,b,u);}}catch(C){h={error:C};}finally{try{S&&!S.done&&(v=y.return)&&v.call(y);}finally{if(h)throw h.error}}return function(){var C,$,x;try{for(var w=Bf(i),O=w.next();!O.done;O=w.next()){var R=O.value;(x=p==null?void 0:p.removeEventListener)===null||x===void 0||x.call(p,R,b,u);}}catch(A){C={error:A};}finally{try{O&&!O.done&&($=w.return)&&$.call(w);}finally{if(C)throw C.error}}}}},[i],a);}function Sw(e){var t=m.useRef(0),n=Xt(m.useState(e),2),r=n[0],o=n[1],i=m.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(a);});},[]);return Ss(function(){cancelAnimationFrame(t.current);}),[r,i]}var sF={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN};const lF=function(e){var t=Xt(Sw(sF),2),n=t[0],r=t[1];return lo("mousemove",function(o){var i=o.screenX,a=o.screenY,s=o.clientX,l=o.clientY,c=o.pageX,u=o.pageY,d={screenX:i,screenY:a,clientX:s,clientY:l,pageX:c,pageY:u,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},f=lu(e);if(f){var h=f.getBoundingClientRect(),v=h.left,g=h.top,p=h.width,b=h.height;d.elementPosX=v+window.pageXOffset,d.elementPosY=g+window.pageYOffset,d.elementX=c-d.elementPosX,d.elementY=u-d.elementPosY,d.elementW=p,d.elementH=b;}r(d);},{target:function(){return document}}),n};var cF=function(){var e=m.useRef(!1);return m.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const uF=cF,dF=cw(m.useLayoutEffect),_b=D(Qt,{target:"_blank",href:"https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E",children:"access_key 说明"});function ww({style:e,className:t}){const{runAsync:n,loading:r}=b9(NH,{manual:!0}),{accessKey:o}=In(),i=kH,a="请允许弹出窗口并等待窗口自动关闭";return D(Wc,{size:"small",style:e,className:t,children:o?Ce(Ct,{children:[D(Fl,{title:a,children:D(Qt,{onClick:n,disabled:r,children:D("span",{children:"重新获取 access_key"})})}),D(Qt,{onClick:i,children:D("span",{children:"删除 access_key"})}),_b]}):Ce(Ct,{children:[D(Fl,{title:a,children:D(Qt,{onClick:n,disabled:r,size:"middle",children:D("span",{children:"获取 access_key"})})}),_b]})})}function Tb(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Mb(e,t,n){var r=[],o=hm(e,r,n);return r.length<2?n:o+t(r)}var fF=function(t){var n=S0(t);n.sheet.speedy=function(s){this.isSpeedy=s;},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=wi(c,n.registered,void 0);return vm(n,d,!1),n.key+"-"+d.name},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=wi(c,n.registered),f="animation-"+d.name;return Tb(n,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=wi(c,n.registered);Tb(n,d);},a=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return Mb(n.registered,r,mF(c))};return {css:r,cx:a,injectGlobal:i,keyframes:o,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0;});},flush:function(){n.registered={},n.inserted={},n.sheet.flush();},sheet:n.sheet,cache:n,getRegisteredStyles:hm.bind(null,n.registered),merge:Mb.bind(null,n.registered,r)}},mF=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else {i="";for(var a in o)o[a]&&a&&(i&&(i+=" "),i+=a);}break}default:i=o;}i&&(n&&(n+=" "),n+=i);}}return n},hF=fF({key:"css"}),Nb=hF.css;const vF="_modal-mask_1j5wc_1",gF="_modal_1j5wc_1",pF="_modal-header_1j5wc_23",bF="_modal-body_1j5wc_30",yF="_modal-title_1j5wc_35",CF="_btn-close_1j5wc_42",xr={modalMask:vF,modal:gF,modalHeader:pF,modalBody:bF,modalTitle:yF,btnClose:CF};let ya=0;const SF=()=>{ya++,document.body.style.overflow="hidden";},wF=()=>{ya--,ya<0&&(ya=0),ya===0&&(document.body.style.overflow="");};function nv({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:i,clsModal:a,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){m.useLayoutEffect(()=>{e?SF():wF();},[e]);const u=m.useRef(null),d=Zh(),{bg:f,c:h}=m.useMemo(()=>{const y=window.getComputedStyle(document.body).backgroundColor,S=window.getComputedStyle(document.body).color;return {bg:y,c:S}},[d]),v=m.useMemo(()=>d?{"--bg":f,"--c":h,backgroundColor:f,color:h}:{},[f,h,d]),g=m.useId(),p=m.useMemo(()=>{const y=document.createElement("div");return y.setAttribute("data-id","base-modal-"+g),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 Zt("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?s0.createPortal(D("div",{className:F(xr.modalMask,o),style:r,onClick:b,children:D("div",{className:F(xr.modal,a),style:{...v,width:s,...i},ref:u,children:n})}),p):null}const rv=e=>D(Tt,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});var xw={exports:{}},$w={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],o=0,i=0;o<n.length;o++,i+=8)r[i>>>5]|=n[o]<<24-i%32;return r},wordsToBytes:function(n){for(var r=[],o=0;o<n.length*32;o+=8)r.push(n[o>>>5]>>>24-o%32&255);return r},bytesToHex:function(n){for(var r=[],o=0;o<n.length;o++)r.push((n[o]>>>4).toString(16)),r.push((n[o]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],o=0;o<n.length;o+=2)r.push(parseInt(n.substr(o,2),16));return r},bytesToBase64:function(n){for(var r=[],o=0;o<n.length;o+=3)for(var i=n[o]<<16|n[o+1]<<8|n[o+2],a=0;a<4;a++)o*8+a*6<=n.length*8?r.push(e.charAt(i>>>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<n.length;i=++o%4)i!=0&&r.push((e.indexOf(n.charAt(o-1))&Math.pow(2,-2*i+8)-1)<<i*2|e.indexOf(n.charAt(o))>>>6-i*2);return r}};$w.exports=t;})();var xF=$w.exports,Wf={utf8:{stringToBytes:function(e){return Wf.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Wf.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},kb=Wf;/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */var $F=function(e){return e!=null&&(Ew(e)||EF(e)||!!e._isBuffer)};function Ew(e){return !!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function EF(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Ew(e.slice(0,0))}(function(){var e=xF,t=kb.utf8,n=$F,r=kb.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,f=271733878,h=0;h<s.length;h++)s[h]=(s[h]<<8|s[h]>>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360;s[l>>>5]|=128<<l%32,s[(l+64>>>9<<4)+14]=l;for(var v=o._ff,g=o._gg,p=o._hh,b=o._ii,h=0;h<s.length;h+=16){var y=c,S=u,E=d,C=f;c=v(c,u,d,f,s[h+0],7,-680876936),f=v(f,c,u,d,s[h+1],12,-389564586),d=v(d,f,c,u,s[h+2],17,606105819),u=v(u,d,f,c,s[h+3],22,-1044525330),c=v(c,u,d,f,s[h+4],7,-176418897),f=v(f,c,u,d,s[h+5],12,1200080426),d=v(d,f,c,u,s[h+6],17,-1473231341),u=v(u,d,f,c,s[h+7],22,-45705983),c=v(c,u,d,f,s[h+8],7,1770035416),f=v(f,c,u,d,s[h+9],12,-1958414417),d=v(d,f,c,u,s[h+10],17,-42063),u=v(u,d,f,c,s[h+11],22,-1990404162),c=v(c,u,d,f,s[h+12],7,1804603682),f=v(f,c,u,d,s[h+13],12,-40341101),d=v(d,f,c,u,s[h+14],17,-1502002290),u=v(u,d,f,c,s[h+15],22,1236535329),c=g(c,u,d,f,s[h+1],5,-165796510),f=g(f,c,u,d,s[h+6],9,-1069501632),d=g(d,f,c,u,s[h+11],14,643717713),u=g(u,d,f,c,s[h+0],20,-373897302),c=g(c,u,d,f,s[h+5],5,-701558691),f=g(f,c,u,d,s[h+10],9,38016083),d=g(d,f,c,u,s[h+15],14,-660478335),u=g(u,d,f,c,s[h+4],20,-405537848),c=g(c,u,d,f,s[h+9],5,568446438),f=g(f,c,u,d,s[h+14],9,-1019803690),d=g(d,f,c,u,s[h+3],14,-187363961),u=g(u,d,f,c,s[h+8],20,1163531501),c=g(c,u,d,f,s[h+13],5,-1444681467),f=g(f,c,u,d,s[h+2],9,-51403784),d=g(d,f,c,u,s[h+7],14,1735328473),u=g(u,d,f,c,s[h+12],20,-1926607734),c=p(c,u,d,f,s[h+5],4,-378558),f=p(f,c,u,d,s[h+8],11,-2022574463),d=p(d,f,c,u,s[h+11],16,1839030562),u=p(u,d,f,c,s[h+14],23,-35309556),c=p(c,u,d,f,s[h+1],4,-1530992060),f=p(f,c,u,d,s[h+4],11,1272893353),d=p(d,f,c,u,s[h+7],16,-155497632),u=p(u,d,f,c,s[h+10],23,-1094730640),c=p(c,u,d,f,s[h+13],4,681279174),f=p(f,c,u,d,s[h+0],11,-358537222),d=p(d,f,c,u,s[h+3],16,-722521979),u=p(u,d,f,c,s[h+6],23,76029189),c=p(c,u,d,f,s[h+9],4,-640364487),f=p(f,c,u,d,s[h+12],11,-421815835),d=p(d,f,c,u,s[h+15],16,530742520),u=p(u,d,f,c,s[h+2],23,-995338651),c=b(c,u,d,f,s[h+0],6,-198630844),f=b(f,c,u,d,s[h+7],10,1126891415),d=b(d,f,c,u,s[h+14],15,-1416354905),u=b(u,d,f,c,s[h+5],21,-57434055),c=b(c,u,d,f,s[h+12],6,1700485571),f=b(f,c,u,d,s[h+3],10,-1894986606),d=b(d,f,c,u,s[h+10],15,-1051523),u=b(u,d,f,c,s[h+1],21,-2054922799),c=b(c,u,d,f,s[h+8],6,1873313359),f=b(f,c,u,d,s[h+15],10,-30611744),d=b(d,f,c,u,s[h+6],15,-1560198380),u=b(u,d,f,c,s[h+13],21,1309151649),c=b(c,u,d,f,s[h+4],6,-145523070),f=b(f,c,u,d,s[h+11],10,-1120210379),d=b(d,f,c,u,s[h+2],15,718787259),u=b(u,d,f,c,s[h+9],21,-343485551),c=c+y>>>0,u=u+S>>>0,d=d+E>>>0,f=f+C>>>0;}return e.endian([c,u,d,f])};o._ff=function(i,a,s,l,c,u,d){var f=i+(a&s|~a&l)+(c>>>0)+d;return (f<<u|f>>>32-u)+a},o._gg=function(i,a,s,l,c,u,d){var f=i+(a&l|s&~l)+(c>>>0)+d;return (f<<u|f>>>32-u)+a},o._hh=function(i,a,s,l,c,u,d){var f=i+(a^s^l)+(c>>>0)+d;return (f<<u|f>>>32-u)+a},o._ii=function(i,a,s,l,c,u,d){var f=i+(s^(a|~l))+(c>>>0)+d;return (f<<u|f>>>32-u)+a},o._blocksize=16,o._digestsize=16,xw.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 OF=xw.exports;const IF=an(OF);var Hi=1e3,Fi=Hi*60,Wi=Fi*60,zo=Wi*24,PF=zo*7,RF=zo*365.25,_F=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return TF(e);if(n==="number"&&isFinite(e))return t.long?NF(e):MF(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function TF(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*RF;case"weeks":case"week":case"w":return n*PF;case"days":case"day":case"d":return n*zo;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Wi;case"minutes":case"minute":case"mins":case"min":case"m":return n*Fi;case"seconds":case"second":case"secs":case"sec":case"s":return n*Hi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function MF(e){var t=Math.abs(e);return t>=zo?Math.round(e/zo)+"d":t>=Wi?Math.round(e/Wi)+"h":t>=Fi?Math.round(e/Fi)+"m":t>=Hi?Math.round(e/Hi)+"s":e+"ms"}function NF(e){var t=Math.abs(e);return t>=zo?Xs(e,t,zo,"day"):t>=Wi?Xs(e,t,Wi,"hour"):t>=Fi?Xs(e,t,Fi,"minute"):t>=Hi?Xs(e,t,Hi,"second"):e+" ms"}function Xs(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const ov=an(_F),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 AF(e){let t="";return kF.forEach(n=>{t+=e[n];}),t.slice(0,32)}async function LF(e){const{img_key:t,sub_key:n}=await DF(),r=AF(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=IF(s+r);return {wts:o,w_rid:l}}let Id,Pd,Rd;async function DF(){const e=()=>Go().format("YYYYMMDD");if(Id&&Pd&&Rd&&Rd===e()&&Date.now()-Pd<=ov("6h"))return Id;const r=(await Jc.get("/x/web-interface/nav",{baseURL:ly})).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 Id=a,Rd=e(),Pd=Date.now(),a}function zF(e){return new Promise((t,n)=>{let r=e.data;const o=e.headers??{};if(Mp.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));};Mp.forEach(o,function(d,f){typeof r>"u"&&f.toLowerCase()==="content-type"&&delete o[f];}),r===void 0&&(r=null);const s=function(d){const f="responseHeaders"in d?d6(d.responseHeaders):{},v={data:!e.responseType||e.responseType==="text"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:f,config:e,request:{responseURL:d.finalUrl,status:d.status,statusText:d.statusText,responseXML:null}};r6(t,n,v);};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:Z5(c6(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 Rn=Jc.create({baseURL:ly,withCredentials:!0});Rn.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 LF(e.params)}),e});function Xo(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const uu=Jc.create({adapter:zF});uu.interceptors.request.use(function(e){return e.params={appkey:lw,access_key:yt.accessKey||"",...e.params},e});uu.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 iv(){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 xs(){const e=iv().bili_jct;if(!e)throw gt("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}function du(){return iv().DedeUserID}function $s(){return !!iv().DedeUserID}const Vf=dr({cookie:document.cookie,logined:$s()});function jF(){return Object.assign(Vf,{cookie:document.cookie,logined:$s()}),Vf.logined}function Ow(){return mr(Vf).logined}const Ab=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},BF=new WeakMap;function HF({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(Ab());let i,a,s;const l=e??clearTimeout,c=()=>{l(i),s(Ab());},u=()=>{o&&o.removeEventListener("abort",c);},d=new Promise((f,h)=>{a=()=>{u(),f(r);},s=h,i=(t??setTimeout)(a,n);});return o&&o.addEventListener("abort",c,{once:!0}),BF.set(d,()=>{l(i),i=null,a();}),d}}const qo=HF(),FF=Xi.extend("utility:dom"),WF=10*1e3,VF=200;async function Ra(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const a=performance.now()+WF;for(;!r.length&&performance.now()<a;)await qo(VF),o();if(!r.length){console.warn(`[${fn}]: tryAction timeout, selector = %s`,e);return}FF("tryAction: selector=%s count=%s",e,r.length);for(const s of r)await Promise.resolve(t(s));}async function _a(e,t,n){return typeof n=="number"&&await qo(n),Ra(e,r=>r.remove(),t)}function fu(){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 UF(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 mu(e){return e||(e=0),Go.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function _d(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function Kl(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 KF=Go().format("YYYY");function ao(e,t=!1){if(!e)return "";const n=Go.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===KF?n.format("M-D"+r):n.format("YY-M-D"+r)}const GF={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function XF(e){if(!(typeof e>"u")&&!(e>=0))return GF[e]}async function Iw(){var n;return ((n=(await Rn.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function Uf(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:xs(),...e}),n=(await Rn.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=Xo(n);return o||gt(n.message||"addupdate error"),{success:o,aid:r}}async function qF(e){var n;const t=(await Rn.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 YF(){const t=(await Iw()).find(a=>a.title===fn);if(!t){await Uf({title:fn});return}const n=await qF(t.id),i=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(i)try{return JSON.parse(i)}catch{return}}async function ZF(e){const n=(await Iw()).find(a=>a.title===fn);let r="";if(n)r=n.id.toString();else {const{success:a,aid:s}=await Uf({title:fn});if(!a)return !1;r=s;}const o=JSON.stringify(e),{success:i}=await Uf({aid:r,title:fn,content:`<p>${o}</p>`,words:o.length.toString()});return i}const QF="_config-icon_1xtyf_1",JF="_settings-group_1xtyf_6",e7="_settings-group-title_1xtyf_9",t7="_settings-group-sub-title_1xtyf_14",n7="_settings-group-content_1xtyf_20",r7="_row_1xtyf_26",o7="_check_1xtyf_34",i7="_setting-tabs_1xtyf_39",a7="_tab-pane_1xtyf_42",Ke={configIcon:QF,settingsGroup:JF,settingsGroupTitle:e7,settingsGroupSubTitle:t7,settingsGroupContent:n7,row:r7,check:o7,settingTabs:i7,tabPane:a7};async function av(){gt("即将刷新网页"),await qo(500),location.reload();}function s7(){return g7(),av()}let Pw=!1;async function l7(){const e=await YF(),t=Tm(e||{},Rw);return Object.keys(t).length?(Pw=!0,Er({...t}),av()):gt("备份不存在或没有有效的配置")}function qs(e,t,n){return Zt(e,r=>{if(fu())return;yt[t]=!yt[t];const o=!yt[t];gt(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function c7({show:e,onHide:t}){const{autoPreviewUpdateInterval:n,filterMinPlayCount:r,filterMinPlayCountEnabled:o,filterMinDuration:i,filterMinDurationEnabled:a,filterOutGotoTypePicture:s}=In();return qs(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),qs(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),qs(["shift.c"],"useNarrowMode","居中模式"),qs(["shift.y"],"styleUseYoutubeLikeCard","大卡片样式"),Ce(nv,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[Ce("div",{className:xr.modalHeader,children:[Ce("div",{className:xr.modalTitle,children:[D(Tt,{name:"Config",className:Ke.configIcon}),"设置项"]}),D("div",{className:"space",style:{flex:1}}),D(rv,{onClick:t})]}),D("main",{className:xr.modalBody,style:{overflow:"hidden"},children:D(R5,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:Ke.settingTabs,items:[{label:"常规设置",key:"normal",children:Ce("div",{className:Ke.tabPane,children:[Ce("div",{className:Ke.settingsGroup,children:[Ce("div",{className:Ke.settingsGroupTitle,children:["access_key",D(Wl,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:Ce(Ct,{children:["用于「推荐」Tab",D("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),D("div",{className:F(Ke.settingsGroupContent),children:D("div",{className:Ke.row,style:{marginTop:5},children:D(ww,{})})})]}),Ce("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"开关"}),Ce("div",{className:F(Ke.settingsGroupContent,Ke.row),children:[D(un,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:Ce(Ct,{children:["首页只保留推荐",D("br",{}),"P.S 需要刷新网页~"]}),className:Ke.check,extraAction:av}),D(un,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",className:Ke.check,extraAction:l=>{l&>("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),D(un,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:Ce(Ct,{children:["居中两列",D("br",{}),"切换设置快捷键: ",D(to,{color:"green",children:"shift+c"})]}),className:Ke.check})]})]}),Ce("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"预览"}),Ce("div",{className:F(Ke.settingsGroupContent,Ke.row),children:[D(un,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Ke.check,tooltip:Ce(Ct,{children:["手动预览快捷键: ",D(to,{color:"green",children:"."})," or ",D(to,{color:"green",children:"p"}),D("br",{}),"切换设置快捷键: ",D(to,{color:"green",children:"shift+p"})]})}),D(un,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Ke.check,tooltip:Ce(Ct,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",D("br",{}),"切换设置快捷键: ",D(to,{color:"green",children:"shift+m"})]})})]})]}),Ce("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"帮助"}),D("div",{className:F(Ke.settingsGroupContent),children:D("div",{className:Ke.row,children:Ce(Wc,{size:"small",children:[D(Qt,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),D(Qt,{href:"http://greasyfork.icu/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),D(Qt,{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(Qt,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),D(Qt,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})},{label:"内容过滤",key:"filter",children:D("div",{className:Ke.tabPane,children:Ce("div",{className:Ke.settingsGroup,children:[Ce("div",{className:Ke.settingsGroupTitle,children:["内容过滤",D(Wl,{iconProps:{name:"Tips"},tooltip:Ce(Ct,{children:["启用过滤会大幅降低加载速度, 谨慎开启! ",D("br",{}),"仅推荐类 Tab 生效"]})})]}),Ce("div",{className:F(Ke.settingsGroupContent),children:[D("div",{className:Ke.settingsGroupSubTitle,children:"视频"}),Ce("div",{className:Ke.row,children:[D(un,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:D(Ct,{children:"不显示播放量很少的视频"})}),D(If,{size:"small",min:1,step:1e3,value:r,onChange:l=>l&&Er({filterMinPlayCount:l}),disabled:!o})]}),Ce("div",{className:Ke.row,style:{marginTop:3},children:[D(un,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:D(Ct,{children:"不显示短视频"})}),D(If,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:i,onChange:l=>l&&Er({filterMinDuration:l}),disabled:!a})]}),D(un,{className:Ke.row,style:{marginTop:3},configKey:"enableFilterForFollowedVideo",label:"对「已关注」的视频启用过滤",tooltip:D(Ct,{children:"默认不过滤「已关注」"})}),D("div",{className:Ke.settingsGroupSubTitle,children:"图文"}),D(un,{className:Ke.row,configKey:"filterOutGotoTypePicture",label:"启用图文(动态 & 专栏)过滤",tooltip:D(Ct,{children:"过滤掉图文推荐"})}),D(un,{className:Ke.row,disabled:!s,configKey:"enableFilterForFollowedPicture",label:"对「已关注」的图文启用过滤",tooltip:D(Ct,{children:"默认不过滤「已关注」"})})]})]})})},{label:"外观设置",key:"ui",children:D("div",{className:Ke.tabPane,children:Ce("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),Ce("div",{className:F(Ke.settingsGroupContent),children:[D("div",{className:Ke.row,children:D(un,{configKey:"styleUseYoutubeLikeCard",label:"视频卡片: 使用类似 YouTube 大卡片",tooltip:Ce(Ct,{children:["增加卡片大小, 增大卡片间距",D("br",{}),"仅「查看更多」弹窗 & 纯推荐模式可用",D("br",{}),"切换设置快捷键: ",D(to,{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:Ce("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),D("div",{className:F(Ke.settingsGroupContent),children:D(PH,{})})]})})},{label:"高级设置",key:"advance",children:D("div",{className:Ke.tabPane,children:Ce("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(mp,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:s7,children:D(Qt,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),D("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),Ce("div",{className:F(Ke.settingsGroupContent),children:[Ce("div",{className:Ke.row,children:[D(un,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${fn}`}),Ce("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(mp,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:l7,children:D(Qt,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),D("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"稍后再看 & 收藏"}),Ce("div",{className:F(Ke.settingsGroupContent),children:[D("div",{className:Ke.row,children:D(un,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:D(Ct,{children:"不包括最近添加的「稍后再看」"})})}),D("div",{className:Ke.row,children:D(un,{configKey:"shuffleForFav",label:"对「收藏」Tab 使用随机顺序"})})]}),D("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"预览"}),Ce("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",D(m3,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>yt.autoPreviewUpdateInterval=l,value:n}),Ce("span",{style:{width:"65px"},children:["(",n,"ms)"]})]})]})})}]})})]})}const u7=Xi.extend("settings"),sv={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=dr({...sv}),Rw=Object.keys(sv);function In(){return mr(yt)}const d7=fn,_w=`${d7}.settings`;async function f7(){const e=await GM.getValue(_w);e&&typeof e=="object"&&Object.assign(yt,Tm(e,Rw)),Yh(yt,()=>{h7();});}const m7=ay(ZF,ov("5s"));async function h7(){const e=Hl(yt);await GM.setValue(_w,e),await v7(e);}async function v7(e){if(!e.backupSettingsToArticleDraft||Pw)return;const t=MP(e,["accessKey"]);try{await m7(t),u7("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function Er(e){Object.assign(yt,e);}function g7(){return Er(sv)}await( f7());var Tw={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Eo,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)?)?$/,f={years:c,months:u,days:s,hours:a,minutes:i,seconds:o,milliseconds:1,weeks:6048e5},h=function($){return $ instanceof E},v=function($,x,w){return new E($,w,x.$l)},g=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,R){var A=this;if(this.$d={},this.$l=R,w===void 0&&(this.$ms=0,this.parseFromMilliseconds()),O)return v(w*f[g(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[g(P)]=w[P];}),this.calMilliseconds(),this;if(typeof w=="string"){var _=w.match(d);if(_){var I=_.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,R){return O+(w.$d[R]||0)*f[R]},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"),R=+this.$d.days||0;this.$d.weeks&&(R+=7*this.$d.weeks);var A=S(R,"D"),_=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 T=S(P,"S"),N=w.negative||O.negative||A.negative||_.negative||I.negative||T.negative,M=_.format||I.format||T.format?"T":"",L=(N?"-":"")+"P"+w.format+O.format+A.format+M+_.format+I.format+T.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",R={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,_){return _||String(R[A])})},x.as=function(w){return this.$ms/f[g(w)]},x.get=function(w){var O=this.$ms,R=g(w);return R==="milliseconds"?O%=1e3:O=R==="weeks"?b(O/f[R]):this.$d[R],O===0?0:O},x.add=function(w,O,R){var A;return A=O?w*f[g(O)]:h(w)?w.$ms:v(w,this).$ms,v(this.$ms+A*(R?-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 v(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,_){var I=w.locale();return v(A,{$l:I},_)},w.isDuration=h;var O=x.prototype.add,R=x.prototype.subtract;x.prototype.add=function(A,_){return h(A)?C(this,A,1):O.bind(this)(A,_)},x.prototype.subtract=function(A,_){return h(A)?C(this,A,-1):R.bind(this)(A,_)};}});})(Tw);var p7=Tw.exports;const b7=an(p7);var hu,Lb=s0;hu=Lb.createRoot,Lb.hydrateRoot;function lv(e){const t=dr({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(dr(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 y7(e){const t=dr({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 C7 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 S7(e){return (await Rn.get("/x/player/videoshot",{params:{aid:e,index:"1"}})).data.data}async function w7(e){return []}const Td=new C7({maxSize:1e3});async function x7(e){if(Td.has(e))return Td.get(e);const[t,n]=await Promise.all([S7(e),w7()]);return Td.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function Mw(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:xs()}),i=(await Rn.post("/x/v2/history/toview/"+e,r)).data,a=Xo(i);return a||gt((i==null?void 0:i.message)||"出错了"),a}}const Ys=Mw("add"),Db=Mw("del"),Nw=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const i=(await uu.get(cy+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return Xo(i)}},$7=Nw("dislike"),E7=Nw("cancel"),O7="_modal_1rloz_1",I7="_title-desc_1rloz_4",P7="_reason-list_1rloz_8",R7="_reason_1rloz_8",_7="_active_1rloz_29",T7="_reason-no_1rloz_33",M7="_tips-container_1rloz_47",N7="_tips_1rloz_47",qn={modal:O7,titleDesc:I7,reasonList:P7,reason:R7,active:_7,reasonNo:T7,tipsContainer:M7,tips:N7},vu=y7();function k7(){return mr(vu)}function A7(e){const t=k7();if(e)return t.get(e)}function L7({show:e,onHide:t,item:n}){const[r,o]=m.useState(!1),i=ot(async h=>{if(!n)return;let v=!1,g;try{o(!0),v=await $7(n,h.id);}catch(p){g=p;}finally{o(!1);}if(g)return console.error(g.stack||g),aw();v?gt("已标记不想看"):sw(),v&&(vu.set(n.param,{...h}),t());}),a=m.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"];Zt(l,h=>{if(!s()||!l.includes(h.key))return;const v=Number(h.key)-1;u(v);const g=document.querySelectorAll(`.${qn.reason}`)[v]||null;g==null||g.click();});const[c,u]=m.useState(a.length-1);dF(()=>{u(a.length-1);},[a]);const d=h=>()=>{if(!s())return;const v=c+h;v<0||v>a.length-1||u(v);};Zt("leftarrow",d(-1)),Zt("rightarrow",d(1)),Zt("uparrow",d(-2)),Zt("downarrow",d(2)),Zt("enter",h=>{var v;s()&&(c<0||c>a.length-1||(h.preventDefault(),h.stopImmediatePropagation(),(v=document.querySelector(`.${qn.reason}.${qn.active}`))==null||v.click()));});const f=m.useMemo(()=>{var h;return ((h=a[c])==null?void 0:h.name)||""},[a,c]);return Ce(nv,{show:e,onHide:t,clsModal:qn.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[Ce("div",{className:xr.modalHeader,children:[Ce("div",{className:xr.modalTitle,children:["我不想看",D("span",{className:qn.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),D("div",{className:"space",style:{flex:1}}),D(rv,{onClick:t})]}),Ce("div",{className:xr.modalBody,children:[D("div",{className:qn.reasonList,children:a.map((h,v)=>Ce("button",{className:F(qn.reason,{[qn.active]:v===c}),style:{...v===c&&{borderColor:Wr}},"data-id":h.id,onClick:()=>{u(v),i(h);},disabled:r,children:[D("span",{className:qn.reasonNo,style:{backgroundColor:Wr},children:v+1}),h.name]},h.id))}),Ce("div",{className:qn.tipsContainer,children:[Ce("div",{className:qn.tips,children:[D(Tt,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),f&&Ce("div",{className:qn.tips,children:[D(Tt,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",f,"」, 回车键提交"]})]})]})]})}const gl={show:!1,onHide:Aw,item:null},kw=dr({value:gl.show}),D7=function(){return mr(kw).value};function Aw(){setTimeout(()=>{Lw({show:!1,item:null});});}function Lw(e){Object.assign(gl,e),kw.value=gl.show,z7().render(D(L7,{...gl,onHide:Aw}));}let Md;function z7(){if(!Md){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),Md=hu(e);}return Md}function j7(e){e!=null&&e.param&&vu.has(e.param)||Lw({show:!0,item:e});}const Dw=m__namespace.createContext(null),B7=Dw.Provider,zw=m__namespace.createContext(null),H7=zw.Provider,F7=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},Mt(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"}})}},W7=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:f,colorTextDisabled:h,paddingXS:v,dotColorDisabled:g,lineType:p,radioDotDisabledSize:b,wireframe:y,colorWhite:S}=e,E=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},Mt(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({},Mt(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({},Lo(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:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[E]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},V7=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:f,controlHeightLG:h,controlHeightSM:v,paddingXS:g,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:S,buttonSolidCheckedColor:E,colorTextDisabled:C,colorBgContainerDisabled:$,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:w,colorPrimary:O,colorPrimaryHover:R,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:f,lineHeight:`${h-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:v,paddingInline:g-o,paddingBlock:0,lineHeight:`${v-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({},Lo(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:R,borderColor:R,"&::before":{backgroundColor:R}},"&: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:R,borderColor:R},"&: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"}}}},zb=e=>e-4*2,jw=Ut("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,i=o,a=zb(r),s=ft(e,{radioDotDisabledSize:a,radioFocusShadow:o,radioButtonFocusShadow:i});return [F7(s),W7(s),V7(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,f=i,h=t?zb(f):f-(d+o)*2;return {radioSize:f,dotSize:h,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var U7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const K7=(e,t)=>{var n,r;const o=m__namespace.useContext(Dw),i=m__namespace.useContext(zw),{getPrefixCls:a,direction:s,radio:l}=m__namespace.useContext(nt),c=m__namespace.useRef(null),u=Pn(t,c),{isFormItemInput:d}=m__namespace.useContext(tr),f=A=>{var _,I;(_=e.onChange)===null||_===void 0||_.call(e,A),(I=o==null?void 0:o.onChange)===null||I===void 0||I.call(o,A);},{prefixCls:h,className:v,rootClassName:g,children:p,style:b}=e,y=U7(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]=jw(S),w=Object.assign({},y),O=m__namespace.useContext(Pr);o&&(w.name=o.name,w.onChange=f,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 R=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,v,g,x);return $(m__namespace.createElement(fs,{component:"Radio",disabled:w.disabled},m__namespace.createElement("label",{className:R,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},m__namespace.createElement(AS,Object.assign({},w,{className:F(w.className,!E&&jc),type:"radio",prefixCls:C,ref:u})),p!==void 0?m__namespace.createElement("span",null,p):null)))},G7=m__namespace.forwardRef(K7),Gl=G7,X7=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m__namespace.useContext(nt),[o,i]=Dt(e.defaultValue,{value:e.value}),a=_=>{const I=o,P=_.target.value;"value"in e||i(P);const{onChange:T}=e;T&&P!==I&&T(_);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:h,size:v,style:g,id:p,onMouseEnter:b,onMouseLeave:y,onFocus:S,onBlur:E}=e,C=n("radio",s),$=`${C}-group`,[x,w]=jw(C);let O=h;u&&u.length>0&&(O=u.map(_=>typeof _=="string"||typeof _=="number"?m__namespace.createElement(Gl,{key:_.toString(),prefixCls:C,disabled:f,value:_,checked:o===_},_):m__namespace.createElement(Gl,{key:`radio-group-value-options-${_.value}`,prefixCls:C,disabled:_.disabled||f,value:_.value,checked:o===_.value,title:_.title,style:_.style},_.label)));const R=Wn(v),A=F($,`${$}-${d}`,{[`${$}-${R}`]:R,[`${$}-rtl`]:r==="rtl"},l,c,w);return x(m__namespace.createElement("div",Object.assign({},Li(e,{aria:!0,data:!0}),{className:A,style:g,onMouseEnter:b,onMouseLeave:y,onFocus:S,onBlur:E,id:p,ref:t}),m__namespace.createElement(B7,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},O)))}),q7=m__namespace.memo(X7);var Y7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Z7=(e,t)=>{const{getPrefixCls:n}=m__namespace.useContext(nt),{prefixCls:r}=e,o=Y7(e,["prefixCls"]),i=n("radio",r);return m__namespace.createElement(H7,{value:"button"},m__namespace.createElement(Gl,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},Q7=m__namespace.forwardRef(Z7),gu=Gl;gu.Button=Q7;gu.Group=q7;gu.__ANT_RADIO=!0;const jb=gu;function J7(e,t){const n=Object.keys(e),r=Tm(JSON.parse(localStorage.getItem(t)||"{}"),n),o=dr({...e,...r});return Yh(o,()=>{const i=Hl(o);localStorage.setItem(t,JSON.stringify(i));}),o}const eW=`${fn}-video-source-tab`,cv=J7({value:"recommend-app"},eW),Bb={name:"qamjgr",styles:"margin-right:4px"},Xl=[{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}],Hb=Xl.reduce((e,t)=>({...e,[t.key]:t}),{}),tW=Xl.map(e=>e.key);function Bw(e,t){return tW.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function Es(){return Bw(mr(cv).value,Ow())}function nW(){return Bw(cv.value,$s())}function rW(){return gt("你需要登录B站后使用该功能! 如已完成登录, 请刷新网页重试~")}const oW={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},iW={name:"s0vnfv",styles:"height:32px"};var aW={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},sW={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function Hw({onRefresh:e}){const t=Ow(),n=Es(),{styleUseStandardVideoSourceTab:r}=In();return Ce(Ct,{children:[D(jb.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&&!jF())return rW();cv.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:Xl.map(({key:o,label:i,icon:a,iconProps:s})=>D(jb.Button,{css:[oW,r&&iW,"",""],className:"video-source-tab",tabIndex:-1,value:o,children:Ce("span",{css:sW,children:[D(Tt,{name:a,...s,size:(s==null?void 0:s.size)||18,css:Bb}),i]})},o))}),D(Wl,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:D(Ct,{children:Xl.map(({key:o,label:i,icon:a,iconProps:s,desc:l})=>Ce("div",{css:aW,children:[D(Tt,{name:a,...s,size:(s==null?void 0:s.size)||18,css:Bb}),i,": ",l]},o))})})]})}var lW={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 cW=lW;var uW=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:cW}))};const ql=m__namespace.forwardRef(uW);const Fw=m__namespace.createContext({});var dW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const fW=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=dW(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=m__namespace.useContext(nt),a=i("menu",t),s=F({[`${a}-item-divider-dashed`]:!!r},n);return m__namespace.createElement($h,Object.assign({className:s},o))},Ww=fW,mW=m.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Yl=mW,hW=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}=m__namespace.useContext(Yl),f=y=>{const S=m__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||Hr(r)&&r.type==="span")&&r&&y&&l&&typeof r=="string"?m__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):S},{siderCollapsed:h}=m__namespace.useContext(Fw);let v=i;typeof i>"u"?v=l?r:"":i===!1&&(v="");const g={title:v};!h&&!d&&(g.title=null,g.open=!1);const p=cr(r).length;let b=m__namespace.createElement(gs,Object.assign({},yn(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}),Hn(o,{className:F(Hr(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),f(d));return u||(b=m__namespace.createElement(us,Object.assign({},g,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},Vw=hW,vW=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=m__namespace.useContext(Yl),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=Ji();let d;if(!r)d=l&&!u.length&&o&&typeof o=="string"?m__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):m__namespace.createElement("span",{className:`${s}-title-content`},o);else {const h=Hr(o)&&o.type==="span";d=m__namespace.createElement(m__namespace.Fragment,null,Hn(r,{className:F(Hr(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?o:m__namespace.createElement("span",{className:`${s}-title-content`},o));}const f=m__namespace.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]);return m__namespace.createElement(Yl.Provider,{value:f},m__namespace.createElement(Gc,Object.assign({},yn(e,["icon"]),{title:d,popupClassName:F(s,n,`${s}-${i||c}`)})))},Uw=vW;var gW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Zl=m__namespace.createContext(null),pW=m__namespace.forwardRef((e,t)=>{const{children:n}=e,r=gW(e,["children"]),o=m__namespace.useContext(Zl),i=m__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]);return m__namespace.createElement(Zl.Provider,{value:i},m__namespace.createElement(Ti,null,m__namespace.cloneElement(n,{ref:t})))});var bW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Kf(e){return (e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:s}=r,l=bW(r,["label","children","key","type"]),c=a??`tmp-${n}`;return i||s==="group"?s==="group"?m__namespace.createElement(Xc,Object.assign({key:c},l,{title:o}),Kf(i)):m__namespace.createElement(Uw,Object.assign({key:c},l,{title:o}),Kf(i)):s==="divider"?m__namespace.createElement(Ww,Object.assign({key:c},l)):m__namespace.createElement(Vw,Object.assign({key:c},l),o)}return null}).filter(t=>t)}function yW(e){return m__namespace.useMemo(()=>e&&Kf(e),[e])}const CW=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"}}}},SW=CW,wW=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})`}}}}},xW=wW,Fb=e=>Object.assign({},Lo(e)),$W=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:h,motionEaseOut:v,itemPaddingInline:g,motionDurationMid:p,itemHoverColor:b,lineType:y,colorSplit:S,itemDisabledColor:E,dangerItemColor:C,dangerItemHoverColor:$,dangerItemSelectedColor:x,dangerItemActiveBg:w,dangerItemSelectedBg:O,itemHoverBg:R,itemActiveBg:A,menuSubMenuBg:_,horizontalItemSelectedColor:I,horizontalItemSelectedBg:P,horizontalItemBorderRadius:T,horizontalItemHoverBg:N,popupBg:M}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Fb(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:R},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:R},"&: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({},Fb(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:T,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${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} ${v}`,`opacity ${p} ${v}`].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(",")}}}}}},Wb=$W,Vb=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}}},EW=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:f,paddingXS:h,boxShadowSecondary:v,collapsedWidth:g,collapsedIconSize:p}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Vb(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Vb(e)),{boxShadow:v})}},{[`${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 ${f}`,`background ${f}`,`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:g,[`&${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({},Ao),{paddingInline:h})}}]},OW=EW,Ub=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({},Vo()),[`&${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"}}}},Kb=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})`}}}}},IW=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:f,subMenuItemBorderRadius:h,menuArrowSize:v,menuArrowOffset:g,lineType:p,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:S}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},af()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt(e)),af()),{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"}}}),Ub(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:f,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:f},Ub(e)),Kb(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),Kb(e)),{[`&-inline-collapsed ${n}-submenu-arrow, &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${v*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},PW=(e,t)=>Ut("Menu",r=>{if(t===!1)return [];const{colorBgElevated:o,colorPrimary:i,colorTextLightSolid:a,controlHeightLG:s,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:h,darkItemSelectedBg:v,darkDangerItemSelectedBg:g,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:S,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:$}=r,x=l/7*5,w=ft(r,{menuArrowSize:x,menuHorizontalHeight:s*1.15,menuArrowOffset:`${x*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),O=ft(w,{itemColor:c,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:h,itemBg:d,popupBg:d,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:S,dangerItemColor:u,dangerItemHoverColor:E,dangerItemSelectedColor:C,dangerItemActiveBg:$,dangerItemSelectedBg:g,menuSubMenuBg:f,horizontalItemSelectedColor:a,horizontalItemSelectedBg:i});return [IW(w),SW(w),OW(w),Wb(w,"light"),Wb(O,"dark"),xW(w),x1(w),uo(w,"slide-up"),uo(w,"slide-down"),Nc(w,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:h,lineWidthBold:v,controlItemBgActive:g,colorBgTextHover:p,controlHeightLG:b,lineHeight:y,colorBgElevated:S,marginXXS:E,padding:C,fontSize:$,controlHeightSM:x,fontSizeLG:w,colorTextLightSolid:O,colorErrorHover:R}=r,A=new Wt(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:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:v,activeBarHeight:v,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 Wt(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:R,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 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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _W=m.forwardRef((e,t)=>{var n,r;const o=m__namespace.useContext(Zl),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=m__namespace.useContext(nt),u=a(),{prefixCls:d,className:f,style:h,theme:v="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:y,items:S,children:E,rootClassName:C,mode:$,selectable:x,onClick:w,overflowedIndicatorPopupClassName:O}=e,R=RW(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),A=yn(R,["collapsedWidth"]),_=yW(S)||E;(n=i.validator)===null||n===void 0||n.call(i,{mode:$});const I=Mn(function(){var j;w==null||w.apply(void 0,arguments),(j=i.onClick)===null||j===void 0||j.call(i);}),P=i.mode||$,T=x??i.selectable,N=m__namespace.useMemo(()=>y!==void 0?y:b,[b,y]),M={horizontal:{motionName:`${u}-slide-up`},inline:p1(u),other:{motionName:`${u}-zoom-big`}},L=a("menu",d||i.prefixCls),[z,H]=PW(L,!o),W=F(`${L}-${v}`,c==null?void 0:c.className,f);let B;if(typeof g=="function")B=g;else {const j=g||i.expandIcon;B=Hn(j,{className:F(`${L}-submenu-expand-icon`,Hr(j)?(r=j.props)===null||r===void 0?void 0:r.className:"")});}const V=m__namespace.useMemo(()=>({prefixCls:L,inlineCollapsed:N||!1,direction:l,firstLevel:!0,theme:v,mode:P,disableMenuItemTitleTooltip:p}),[L,N,l,p,v]);return z(m__namespace.createElement(Zl.Provider,{value:null},m__namespace.createElement(Yl.Provider,{value:V},m__namespace.createElement(ea,Object.assign({getPopupContainer:s,overflowedIndicator:m__namespace.createElement(bh,null),overflowedIndicatorPopupClassName:F(L,`${L}-${v}`,O),mode:P,selectable:T,onClick:I},A,{inlineCollapsed:N,style:Object.assign(Object.assign({},c==null?void 0:c.style),h),className:W,prefixCls:L,direction:l,defaultMotions:M,expandIcon:B,ref:t,rootClassName:F(C,H)}),_))))}),TW=_W,Os=m.forwardRef((e,t)=>{const n=m.useRef(null),r=m__namespace.useContext(Fw);return m.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o);}})),m__namespace.createElement(TW,Object.assign({ref:n},e,r))});Os.Item=Vw;Os.SubMenu=Uw;Os.Divider=Ww;Os.ItemGroup=Xc;const MW=Os,NW=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=NW,AW=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:f,fontSizeIcon:h,controlPaddingHorizontal:v,colorBgElevated:g}=e;return [{[t]:Object.assign(Object.assign({},Mt(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:Zm},[`&${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:Jm},[`&${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:Qm},[`&${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:eh}})},qm(e,{colorBg:g,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:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Do(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${v}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 ${v}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Do(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,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:v+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[uo(e,"slide-up"),uo(e,"slide-down"),Tl(e,"move-up"),Tl(e,"move-down"),Nc(e,"zoom-big")]]},Kw=Ut("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:f}=Xm({contentRadius:u}),h=ft(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:f,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return [AW(h),kW(h)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),uv=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:f,visible:h,onVisibleChange:v,mouseEnterDelay:g=.15,mouseLeaveDelay:p=.1,autoAdjustOverflow:b=!0,placement:y="",overlay:S,transitionName:E}=e,{getPopupContainer:C,getPrefixCls:$,direction:x}=m__namespace.useContext(nt),w=m__namespace.useMemo(()=>{const K=$();return E!==void 0?E:y.includes("top")?`${K}-slide-down`:`${K}-slide-up`},[$,y,E]),O=m__namespace.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:x==="rtl"?"bottomRight":"bottomLeft",[y,x]),R=$("dropdown",r),[A,_]=Kw(R),{token:I}=Mi.useToken(),P=m__namespace.Children.only(o),T=Hn(P,{className:F(`${R}-trigger`,{[`${R}-rtl`]:x==="rtl"},P.props.className),disabled:a}),N=a?[]:i;let M;N&&N.includes("contextMenu")&&(M=!0);const[L,z]=Dt(!1,{value:d??h}),H=Mn(K=>{f==null||f(K),v==null||v(K),z(K);}),W=F(c,u,_,{[`${R}-rtl`]:x==="rtl"}),B=y1({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:b,offset:I.marginXXS,arrowWidth:n?I.sizePopupArrow:0,borderRadius:I.borderRadius}),V=m__namespace.useCallback(()=>{z(!1);},[]),j=()=>{let K;return t!=null&&t.items?K=m__namespace.createElement(MW,Object.assign({},t)):typeof S=="function"?K=S():K=S,s&&(K=s(K)),K=m__namespace.Children.only(typeof K=="string"?m__namespace.createElement("span",null,K):K),m__namespace.createElement(pW,{prefixCls:`${R}-menu`,expandIcon:m__namespace.createElement("span",{className:`${R}-menu-submenu-arrow`},m__namespace.createElement(Di,{className:`${R}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:V,validator:te=>{}},K)};return A(m__namespace.createElement($C,Object.assign({alignPoint:M},yn(e,["rootClassName"]),{mouseEnterDelay:g,mouseLeaveDelay:p,visible:L,builtinPlacements:B,arrow:!!n,overlayClassName:W,prefixCls:R,getPopupContainer:l||C,transitionName:w,trigger:N,overlay:j,placement:O,onVisibleChange:H}),T))};function LW(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const DW=Ah(uv,"dropdown",e=>e,LW),zW=e=>m__namespace.createElement(DW,Object.assign({},e),m__namespace.createElement("span",null));uv._InternalPanelDoNotUseOrYouWillBeFired=zW;const Gw=uv;var jW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Xw=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=m__namespace.useContext(nt),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:h,arrow:v,autoFocus:g,overlay:p,trigger:b,align:y,open:S,onOpenChange:E,placement:C,getPopupContainer:$,href:x,icon:w=m__namespace.createElement(bh,null),title:O,buttonsRender:R=oe=>oe,mouseEnterDelay:A,mouseLeaveDelay:_,overlayClassName:I,overlayStyle:P,destroyPopupOnHide:T,dropdownRender:N}=e,M=jW(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]=Kw(L),B={menu:h,arrow:v,autoFocus:g,align:y,disabled:s,trigger:s?[]:b,onOpenChange:E,getPopupContainer:$||t,mouseEnterDelay:A,mouseLeaveDelay:_,overlayClassName:I,overlayStyle:P,destroyPopupOnHide:T,dropdownRender:N},{compactSize:V,compactItemClassnames:j}=Qi(L,r),K=F(z,j,f,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 te=m__namespace.createElement(Qt,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:x,title:O},d),q=m__namespace.createElement(Qt,{type:i,danger:a,icon:w}),[U,X]=R([te,q]);return H(m__namespace.createElement(Wc.Compact,Object.assign({className:K,size:V,block:!0},M),U,m__namespace.createElement(Gw,Object.assign({},B),X)))};Xw.__ANT_BUTTON=!0;const BW=Xw,qw=Gw;qw.Button=BW;const Yw=qw;function gi(e,t,n){const r=ot(n);m.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}var HW=Math.floor,FW=Math.random;function WW(e,t){return e+HW(FW()*(t-e+1))}function Zw(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var i=WW(n,o),a=e[i];e[i]=e[n],e[n]=a;}return e.length=t,e}function VW(e){return Zw(K0(e))}function UW(e,t){return gm(t,function(n){return e[n]})}function KW(e){return e==null?[]:UW(e,os(e))}function GW(e){return Zw(KW(e))}function Gf(e){var t=Jn(e)?VW:GW;return t(e)}var XW=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Qw=m__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,h=e.onChange,v=e.onKeyDown,g=Je(e,XW),p=Dt(!1,{value:a,defaultValue:s}),b=G(p,2),y=b[0],S=b[1];function E(w,O){var R=y;return l||(R=w,S(R),h==null||h(R,O)),R}function C(w){w.which===le.LEFT?E(!1,w):w.which===le.RIGHT&&E(!0,w),v==null||v(w);}function $(w){var O=E(!y,w);f==null||f(O,w);}var x=F(o,i,(n={},Z(n,"".concat(o,"-checked"),y),Z(n,"".concat(o,"-disabled"),l),n));return m__namespace.createElement("button",Oe({},g,{type:"button",role:"switch","aria-checked":y,disabled:l,className:x,ref:t,onKeyDown:C,onClick:$}),c,m__namespace.createElement("span",{className:"".concat(o,"-inner")},m__namespace.createElement("span",{className:"".concat(o,"-inner-checked")},u),m__namespace.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))});Qw.displayName="Switch";const qW=e=>{const{componentCls:t}=e,n=`${t}-inner`;return {[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},YW=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}}}},ZW=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}}:{}}}},QW=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}}}}}},JW=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Mt(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}}),Do(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"}})}},eV=Ut("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=2,o=t-r*2,i=n-r*2,a=ft(e,{switchMinWidth:o*2+r*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:o/2,switchInnerMarginMax:o+r+r*2,switchPadding:r,switchPinSize:o,switchBg:e.colorBgContainer,switchMinWidthSM:i*2+r*2,switchHeightSM:n,switchInnerMarginMinSM:i/2,switchInnerMarginMaxSM:i+r+r*2,switchPinSizeSM:i,switchHandleShadow:`0 2px 4px 0 ${new Wt("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [JW(a),QW(a),ZW(a),YW(a),qW(a)]});var tV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Jw=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l}=e,c=tV(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:f}=m__namespace.useContext(nt),h=m__namespace.useContext(Pr),v=(o??h)||i,g=u("switch",n),p=m__namespace.createElement("div",{className:`${g}-handle`},i&&m__namespace.createElement(ah,{className:`${g}-loading-icon`})),[b,y]=eV(g),S=Wn(r),E=F(f==null?void 0:f.className,{[`${g}-small`]:S==="small",[`${g}-loading`]:i,[`${g}-rtl`]:d==="rtl"},a,s,y),C=Object.assign(Object.assign({},f==null?void 0:f.style),l);return b(m__namespace.createElement(fs,{component:"Switch"},m__namespace.createElement(Qw,Object.assign({},c,{prefixCls:g,className:E,style:C,disabled:v,ref:t,loadingIcon:p}))))});Jw.__ANT_SWITCH=!0;const ex=Jw,Ql=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},nV=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:i}=n;o&&t.set(i,r);}),t};function rV(e,t,n){const r=m__namespace.useMemo(()=>(e||[]).map(a=>(t&&(a=Object.assign(Object.assign({},a),{key:t(a)})),a)),[e,t]),[o,i]=m__namespace.useMemo(()=>{const a=[],s=new Array((n||[]).length),l=Ql(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 oV=[];function fi(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function Gb(e){return Array.from(e).join(";")}function iV(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oV;const[r,o]=m__namespace.useMemo(()=>[new Set(e.map(c=>c.key)),new Set(t.map(c=>c.key))],[e,t]),[i,a]=m__namespace.useState(()=>fi(n,r)),[s,l]=m__namespace.useState(()=>fi(n,o));return m__namespace.useEffect(()=>{a(fi(n,r)),l(fi(n,o));},[n]),m__namespace.useEffect(()=>{a(fi(i,r)),l(fi(s,o));},[Gb(r),Gb(o)]),[i,s,a,l]}var aV={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 sV=aV;var lV=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:sV}))};const Xb=m__namespace.forwardRef(lV);var cV={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 uV=cV;var dV=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:uV}))};const qb=m__namespace.forwardRef(dV);var So={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const fV={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 tx=function(e){fo(n,e);var t=mo(n);function n(){var r;Cn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.state={goInputText:""},r.getValidValue=function(){var s=r.state.goInputText;return !s||Number.isNaN(s)?void 0:Number(s)},r.buildOptionText=function(s){return "".concat(s," ").concat(r.props.locale.items_per_page)},r.changeSize=function(s){r.props.changeSize(Number(s));},r.handleChange=function(s){r.setState({goInputText:s.target.value});},r.handleBlur=function(s){var l=r.props,c=l.goButton,u=l.quickGo,d=l.rootPrefixCls,f=r.state.goInputText;c||f===""||(r.setState({goInputText:""}),!(s.relatedTarget&&(s.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||s.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&u(r.getValidValue()));},r.go=function(s){var l=r.state.goInputText;l!==""&&(s.keyCode===So.ENTER||s.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()));},r}return Sn(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,f=i.selectComponentClass,h=i.buildOptionText,v=i.selectPrefixCls,g=i.disabled,p=this.state.goInputText,b="".concat(l,"-options"),y=f,S=null,E=null,C=null;if(!c&&!u)return null;var $=this.getPageSizeOptions();if(c&&y){var x=$.map(function(w,O){return m.createElement(y.Option,{key:O,value:w.toString()},(h||o.buildOptionText)(w))});S=m.createElement(y,{disabled:g,prefixCls:v,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"?m.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:g,className:"".concat(b,"-quick-jumper-button")},s.jump_to_confirm):m.createElement("span",{onClick:this.go,onKeyUp:this.go},d)),E=m.createElement("div",{className:"".concat(b,"-quick-jumper")},s.jump_to,m.createElement("input",{disabled:g,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,C)),m.createElement("li",{className:"".concat(b)},S,E)}}]),n}(m.Component);tx.defaultProps={pageSizeOptions:["10","20","50","100"]};var ha=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"),f=F(d,"".concat(d,"-").concat(o),(n={},Z(n,"".concat(d,"-active"),i),Z(n,"".concat(d,"-disabled"),!o),Z(n,t.className,a),n)),h=function(){l(o);},v=function(b){c(b,l,o);},g=u(o,"page",m.createElement("a",{rel:"nofollow"},o));return g?m.createElement("li",{title:s?o.toString():null,className:f,onClick:h,onKeyPress:v,tabIndex:0},g):null};function Xf(){}function Yb(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var mV=function(t,n,r){return r};function eo(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var nx=function(e){fo(n,e);var t=mo(n);function n(r){var o;Cn(this,n),o=t.call(this,r),o.paginationNode=m.createRef(),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(eo(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(c,u){var d=o.props.prefixCls,f=c||m.createElement("button",{type:"button","aria-label":u,className:"".concat(d,"-item-link")});return typeof c=="function"&&(f=m.createElement(c,Q({},o.props))),f},o.isValid=function(c){var u=o.props.total;return Yb(c)&&c!==o.state.current&&Yb(u)&&u>0},o.shouldDisplayQuickJumper=function(){var c=o.props,u=c.showQuickJumper,d=c.total,f=o.state.pageSize;return d<=f?!1:u},o.handleKeyDown=function(c){(c.keyCode===So.ARROW_UP||c.keyCode===So.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===So.ENTER?o.handleChange(u):c.keyCode===So.ARROW_UP?o.handleChange(u-1):c.keyCode===So.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=eo(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,f=u.onChange,h=o.state,v=h.pageSize,g=h.current,p=h.currentInputValue;if(o.isValid(c)&&!d){var b=eo(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}),f(y,v),y}return g},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1);},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1);},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage());},o.jumpNext=function(){o.handleChange(o.getJumpNextPage());},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current<eo(void 0,o.state,o.props)},o.runIfEnter=function(c,u){if(c.key==="Enter"||c.charCode===13){for(var d=arguments.length,f=new Array(d>2?d-2:0),h=2;h<d;h++)f[h-2]=arguments[h];u.apply(void 0,f);}},o.runIfEnterPrev=function(c){o.runIfEnter(c,o.prev);},o.runIfEnterNext=function(c){o.runIfEnter(c,o.next);},o.runIfEnterJumpPrev=function(c){o.runIfEnter(c,o.jumpPrev);},o.runIfEnterJumpNext=function(c){o.runIfEnter(c,o.jumpNext);},o.handleGoTO=function(c){(c.keyCode===So.ENTER||c.type==="click")&&o.handleChange(o.state.currentInputValue);},o.renderPrev=function(c){var u=o.props,d=u.prevIcon,f=u.itemRender,h=f(c,"prev",o.getItemIcon(d,"prev page")),v=!o.hasPrev();return m.isValidElement(h)?m.cloneElement(h,{disabled:v}):h},o.renderNext=function(c){var u=o.props,d=u.nextIcon,f=u.itemRender,h=f(c,"next",o.getItemIcon(d,"next page")),v=!o.hasNext();return m.isValidElement(h)?m.cloneElement(h,{disabled:v}):h};var i=r.onChange!==Xf,a="current"in r;a&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var s=r.defaultCurrent;"current"in r&&(s=r.current);var l=r.defaultPageSize;return "pageSize"in r&&(l=r.pageSize),s=Math.min(s,eo(l,void 0,r)),o.state={current:s,currentInputValue:s,pageSize:l},o}return Sn(n,[{key:"componentDidUpdate",value:function(o,i){var a=this.props.prefixCls;if(i.current!==this.state.current&&this.paginationNode.current){var s=this.paginationNode.current.querySelector(".".concat(a,"-item-").concat(i.current));if(s&&document.activeElement===s){var l;s==null||(l=s.blur)===null||l===void 0||l.call(s);}}}},{key:"getValidValue",value:function(o){var i=o.target.value,a=eo(void 0,this.state,this.props),s=this.state.currentInputValue,l;return i===""?l=i:Number.isNaN(Number(i))?l=s:i>=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,f=o.showQuickJumper,h=o.showLessItems,v=o.showTitle,g=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,R=w.pageSize,A=w.currentInputValue;if(c===!0&&u<=R)return null;var _=eo(void 0,this.state,this.props),I=[],P=null,T=null,N=null,M=null,L=null,z=f&&f.goButton,H=h?1:2,W=O-1>0?O-1:0,B=O+1<_?O+1:_,V=Li(this.props,{aria:!0,data:!0}),j=g&&m.createElement("li",{className:"".concat(i,"-total-text")},g(u,[u===0?0:(O-1)*R+1,O*R>u?u:O*R]));if(p){z&&(typeof z=="boolean"?L=m.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):L=m.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z),L=m.createElement("li",{title:v?"".concat(d.jump_to).concat(O,"/").concat(_):null,className:"".concat(i,"-simple-pager")},L));var K=this.renderPrev(W);return m.createElement("ul",Oe({className:F(i,"".concat(i,"-simple"),Z({},"".concat(i,"-disabled"),l),a),style:s,ref:this.paginationNode},V),j,K?m.createElement("li",{title:v?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:F("".concat(i,"-prev"),Z({},"".concat(i,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},K):null,m.createElement("li",{title:v?"".concat(O,"/").concat(_):null,className:"".concat(i,"-simple-pager")},m.createElement("input",{type:"text",value:A,disabled:l,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),m.createElement("span",{className:"".concat(i,"-slash")},"/"),_),m.createElement("li",{title:v?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:F("".concat(i,"-next"),Z({},"".concat(i,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(B)),L)}if(_<=3+H*2){var te={locale:d,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:v,itemRender:b};_||I.push(m.createElement(ha,Oe({},te,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var q=1;q<=_;q+=1){var U=O===q;I.push(m.createElement(ha,Oe({},te,{key:q,page:q,active:U})));}}else {var X=h?d.prev_3:d.prev_5,oe=h?d.next_3:d.next_5,ue=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(S,"prev page")),ve=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(E,"next page"));y&&(P=ue?m.createElement("li",{title:v?X:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:F("".concat(i,"-jump-prev"),Z({},"".concat(i,"-jump-prev-custom-icon"),!!S))},ue):null,T=ve?m.createElement("li",{title:v?oe:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:F("".concat(i,"-jump-next"),Z({},"".concat(i,"-jump-next-custom-icon"),!!E))},ve):null),M=m.createElement(ha,{locale:d,last:!0,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_,page:_,active:!1,showTitle:v,itemRender:b}),N=m.createElement(ha,{locale:d,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:v,itemRender:b});var re=Math.max(1,O-H),ae=Math.min(O+H,_);O-1<=H&&(ae=1+H*2),_-O<=H&&(re=_-H*2);for(var ce=re;ce<=ae;ce+=1){var Y=O===ce;I.push(m.createElement(ha,{locale:d,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ce,page:ce,active:Y,showTitle:v,itemRender:b}));}O-1>=H*2&&O!==1+2&&(I[0]=m.cloneElement(I[0],{className:"".concat(i,"-item-after-jump-prev")}),I.unshift(P)),_-O>=H*2&&O!==_-2&&(I[I.length-1]=m.cloneElement(I[I.length-1],{className:"".concat(i,"-item-before-jump-next")}),I.push(T)),re!==1&&I.unshift(N),ae!==_&&I.push(M);}var ne=!this.hasPrev()||!_,J=!this.hasNext()||!_,fe=this.renderPrev(W),me=this.renderNext(B);return m.createElement("ul",Oe({className:F(i,a,Z({},"".concat(i,"-disabled"),l)),style:s,ref:this.paginationNode},V),j,fe?m.createElement("li",{title:v?d.prev_page:null,onClick:this.prev,tabIndex:ne?null:0,onKeyPress:this.runIfEnterPrev,className:F("".concat(i,"-prev"),Z({},"".concat(i,"-disabled"),ne)),"aria-disabled":ne},fe):null,I,me?m.createElement("li",{title:v?d.next_page:null,onClick:this.next,tabIndex:J?null:0,onKeyPress:this.runIfEnterNext,className:F("".concat(i,"-next"),Z({},"".concat(i,"-disabled"),J)),"aria-disabled":J},me):null,m.createElement(tx,{disabled:l,locale:d,rootPrefixCls:i,selectComponentClass:C,selectPrefixCls:$,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:O,pageSize:R,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=eo(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}(m.Component);nx.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Xf,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Xf,locale:fV,style:{},itemRender:mV,totalBoundaryShowSizeChanger:50};function hV(){const[,e]=m__namespace.useReducer(t=>t+1,0);return e}const vV=["xxl","xl","lg","md","sm","xs"],gV=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)`}),pV=e=>{const t=e,n=[].concat(vV).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<n.length-1){const l=`screen${i}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function bV(){const[,e]=Kr(),t=gV(pV(e));return m.useMemo(()=>{const n=new Map;let r=-1,o={};return {matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister();},unregister(){Object.keys(t).forEach(i=>{const a=t[i],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 yV(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=m.useRef({}),n=hV(),r=bV();return Ft(()=>{const o=r.subscribe(i=>{t.current=i,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const rx=e=>m__namespace.createElement(ps,Object.assign({},e,{showSearch:!0,size:"small"})),ox=e=>m__namespace.createElement(ps,Object.assign({},e,{showSearch:!0,size:"middle"}));rx.Option=ps.Option;ox.Option=ps.Option;const CV=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"}}}}}},SV=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({},vh(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},wV=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"}}}}},xV=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})}}}},$V=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}}}}},EV=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt(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"}}),$V(e)),xV(e)),wV(e)),SV(e)),CV(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"}}},OV=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}}}}},IV=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Do(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Lo(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Lo(e))}}}},PV=Ut("Pagination",e=>{const t=ft(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"},gh(e));return [EV(t),IV(t),e.wireframe&&OV(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 RV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _V=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:i,size:a,locale:s,selectComponentClass:l,responsive:c,showSizeChanger:u}=e,d=RV(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=yV(c),{getPrefixCls:h,direction:v,pagination:g={}}=m__namespace.useContext(nt),p=h("pagination",t),[b,y]=PV(p),S=u??g.showSizeChanger,E=m__namespace.useMemo(()=>{const _=m__namespace.createElement("span",{className:`${p}-item-ellipsis`},"•••"),I=m__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},v==="rtl"?m__namespace.createElement(Di,null):m__namespace.createElement(ql,null)),P=m__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},v==="rtl"?m__namespace.createElement(ql,null):m__namespace.createElement(Di,null)),T=m__namespace.createElement("a",{className:`${p}-item-link`},m__namespace.createElement("div",{className:`${p}-item-container`},v==="rtl"?m__namespace.createElement(qb,{className:`${p}-item-link-icon`}):m__namespace.createElement(Xb,{className:`${p}-item-link-icon`}),_)),N=m__namespace.createElement("a",{className:`${p}-item-link`},m__namespace.createElement("div",{className:`${p}-item-container`},v==="rtl"?m__namespace.createElement(Xb,{className:`${p}-item-link-icon`}):m__namespace.createElement(qb,{className:`${p}-item-link-icon`}),_));return {prevIcon:I,nextIcon:P,jumpPrevIcon:T,jumpNextIcon:N}},[v,p]),[C]=Yi("Pagination",_y),$=Object.assign(Object.assign({},C),s),x=Wn(a),w=x==="small"||!!(f&&!x&&c),O=h("select",n),R=F({[`${p}-mini`]:w,[`${p}-rtl`]:v==="rtl"},g==null?void 0:g.className,r,o,y),A=Object.assign(Object.assign({},g==null?void 0:g.style),i);return b(m__namespace.createElement(nx,Object.assign({},E,d,{style:A,prefixCls:p,selectPrefixCls:O,className:R,selectComponentClass:l||(w?rx:ox),locale:$,showSizeChanger:S})))},TV=_V;var MV={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 NV=MV;var kV=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:NV}))};const AV=m__namespace.forwardRef(kV);var LV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const DV={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},zV=m__namespace.forwardRef((e,t)=>{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=LV(e,["style","noStyle","disabled"]);let l={};return i||(l=Object.assign({},DV)),a&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),o),m__namespace.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},s,{onKeyDown:n,onKeyUp:r,style:l}))}),jV=zV,BV=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[f]=Yi("Transfer",zr.Transfer),h={className:u,title:d},v=m__namespace.createElement("span",{className:`${a}-content-item-text`},n);return c?m__namespace.createElement("li",Object.assign({},h),v,m__namespace.createElement(jV,{disabled:i||r.disabled,className:`${a}-content-item-remove`,"aria-label":f==null?void 0:f.remove,onClick:()=>{l==null||l(r);}},m__namespace.createElement(AV,null))):(h.onClick=i||r.disabled?void 0:()=>s(r),m__namespace.createElement("li",Object.assign({},h),m__namespace.createElement(Xh,{className:`${a}-checkbox`,checked:o,disabled:i||r.disabled}),v))},HV=m__namespace.memo(BV),FV=["handleFilter","handleClear","checkedKeys"],WV=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),VV=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:i,showRemove:a,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[d,f]=m__namespace.useState(1),h=m__namespace.useMemo(()=>s?WV(typeof s=="object"?s:{}):null,[s]),[v,g]=Dt(10,{value:h==null?void 0:h.pageSize});m__namespace.useEffect(()=>{if(h){const x=Math.ceil(r.length/v);f(Math.min(d,x));}},[r,h,v]);const p=x=>{c==null||c(x.key,!o.includes(x.key));},b=x=>{u==null||u([x.key]);},y=x=>{f(x);},S=(x,w)=>{f(x),g(w);},E=m__namespace.useMemo(()=>h?r.slice((d-1)*v,d*v):r,[d,r,h,v]);m__namespace.useImperativeHandle(t,()=>({items:E}));const C=h?m__namespace.createElement(TV,{size:"small",disabled:i,simple:h.simple,pageSize:v,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 m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("ul",{className:$,onScroll:l},(E||[]).map(x=>{let{renderedEl:w,renderedText:O,item:R}=x;return m__namespace.createElement(HV,{key:R.key,item:R,renderedText:O,renderedEl:w,prefixCls:n,showRemove:a,onClick:p,onRemove:b,checked:o.includes(R.key),disabled:i||R.disabled})})),C)},UV=m__namespace.forwardRef(VV),KV=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:i,handleClear:a}=e,s=m__namespace.useCallback(l=>{i==null||i(l),l.target.value===""&&(a==null||a());},[i]);return m__namespace.createElement(TS,{placeholder:t,className:r,value:n,onChange:s,disabled:o,allowClear:!0,prefix:m__namespace.createElement(Wh,null)})},ix=KV,GV=()=>null;function XV(e){return !!(e&&!Hr(e)&&Object.prototype.toString.call(e)==="[object Object]")}function va(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const qV=e=>e!==void 0,YV=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:f,removeAll:h,removeCurrent:v,showSelectAll:g=!0,showRemove:p,pagination:b,direction:y,itemsUnit:S,itemUnit:E,selectAllLabel:C,selectionsIcon:$,footer:x,renderList:w,onItemSelectAll:O,onItemRemove:R,handleFilter:A,handleClear:_,filterOption:I,render:P=GV}=e,[T,N]=m.useState(""),M=m.useRef({}),L=Y=>{N(Y.target.value),A(Y);},z=()=>{N(""),_();},H=(Y,ne)=>I?I(T,ne):Y.includes(T),W=Y=>{let ne=w?w(Y):null;const J=!!ne;return J||(ne=m.createElement(UV,Object.assign({ref:M},Y))),{customize:J,bodyContent:ne}},B=Y=>{const ne=P(Y),J=XV(ne);return {item:Y,renderedEl:J?ne.label:ne,renderedText:J?ne.value:ne}},V=m.useMemo(()=>Array.isArray(c)?c[y==="left"?0:1]:c,[c,y]),[j,K]=m.useMemo(()=>{const Y=[],ne=[];return n.forEach(J=>{const fe=B(J);T&&!H(fe.renderedText,J)||(Y.push(J),ne.push(fe));}),[Y,ne]},[n,T]),te=m.useMemo(()=>{if(o.length===0)return "none";const Y=Ql(o);return j.every(ne=>Y.has(ne.key)||!!ne.disabled)?"all":"part"},[o,j]),q=m.useMemo(()=>{const Y=a?m.createElement("div",{className:`${t}-body-search-wrapper`},m.createElement(ix,{prefixCls:`${t}-search`,onChange:L,handleClear:z,placeholder:l,value:T,disabled:i})):null,{customize:ne,bodyContent:J}=W(Object.assign(Object.assign({},yn(e,FV)),{filteredItems:j,filteredRenderItems:K,selectedKeys:o}));let fe;return ne?fe=m.createElement("div",{className:`${t}-body-customize-wrapper`},J):fe=j.length?J:m.createElement("div",{className:`${t}-body-not-found`},V),m.createElement("div",{className:F(a?`${t}-body ${t}-body-with-search`:`${t}-body`)},Y,fe)},[a,t,l,T,i,o,j,K,V]),U=m.createElement(Xh,{disabled:n.length===0||i,checked:te==="all",indeterminate:te==="part",className:`${t}-checkbox`,onChange:()=>{O==null||O(j.filter(Y=>!Y.disabled).map(Y=>{let{key:ne}=Y;return ne}),te!=="all");}}),X=(Y,ne)=>{if(C)return typeof C=="function"?C({selectedCount:Y,totalCount:ne}):C;const J=ne>1?S:E;return m.createElement(m.Fragment,null,(Y>0?`${Y}/`:"")+ne," ",J)},oe=x&&(x.length<2?x(e):x(e,{direction:y})),ue=F(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!oe}),ve=oe?m.createElement("div",{className:`${t}-footer`},oe):null,re=!p&&!b&&U;let ae;p?ae=[b?{key:"removeCurrent",label:v,onClick(){var Y;const ne=va((((Y=M.current)===null||Y===void 0?void 0:Y.items)||[]).map(J=>J.item));R==null||R(ne);}}:null,{key:"removeAll",label:h,onClick(){R==null||R(va(j));}}].filter(Boolean):ae=[{key:"selectAll",label:u,onClick(){const Y=va(j);O==null||O(Y,Y.length!==o.length);}},b?{key:"selectCurrent",label:d,onClick(){var Y;const ne=((Y=M.current)===null||Y===void 0?void 0:Y.items)||[];O==null||O(va(ne.map(J=>J.item)),!0);}}:null,{key:"selectInvert",label:f,onClick(){var Y;const ne=va(b?(((Y=M.current)===null||Y===void 0?void 0:Y.items)||[]).map(me=>me.item):j),J=new Set(o),fe=[];ne.forEach(me=>{J.has(me)||fe.push(me);}),O==null||O(fe,"replace");}}];const ce=m.createElement(Yw,{className:`${t}-header-dropdown`,menu:{items:ae},disabled:i},qV($)?$:m.createElement(uh,null));return m.createElement("div",{className:ue,style:s},m.createElement("div",{className:`${t}-header`},g?m.createElement(m.Fragment,null,re,ce):null,m.createElement("span",{className:`${t}-header-selected`},X(o.length,j.length)),m.createElement("span",{className:`${t}-header-title`},r)),q,ve)},qf=YV,ZV=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 m__namespace.createElement("div",{className:l,style:c},m__namespace.createElement(Qt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?m__namespace.createElement(Di,null):m__namespace.createElement(ql,null)},i),!d&&m__namespace.createElement(Qt,{type:"primary",size:"small",disabled:t||!a,onClick:n,icon:u!=="rtl"?m__namespace.createElement(ql,null):m__namespace.createElement(Di,null)},o))},ax=ZV,QV=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"}}}},Zb=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},JV=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},Zb(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},Zb(e,e.colorWarning))}},eU=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:f,listWidthLG:h,fontSizeIcon:v,marginXS:g,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:f,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({},Ao),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},Vo()),{fontSize:v,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:p}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${l}px ${p}px`,transition:`all ${E}`,"> *:not(:last-child)":{marginInlineEnd:g},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},Ao),{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}`}}},tU=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({},Mt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:u}},[`${r}-list`]:eU(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)}})}},nU=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},rU=Ut("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,i=Math.round(t*n),a=ft(e,{transferHeaderVerticalPadding:Math.ceil((o-r-i)/2)});return [tU(a),QV(a),JV(a),nU(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}}),pu=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:f,showSelectAll:h,oneWay:v,pagination:g,status:p,prefixCls:b,className:y,rootClassName:S,selectionsIcon:E,filterOption:C,render:$,footer:x,children:w,rowKey:O,onScroll:R,onChange:A,onSearch:_,onSelectChange:I}=e,{getPrefixCls:P,renderEmpty:T,direction:N,transfer:M}=m.useContext(nt),L=P("transfer",b),[z,H]=rU(L),[W,B,V]=rV(t,O,n),[j,K,te,q]=iV(B,V,r),U=m.useCallback((de,Se)=>{if(de==="left"){const ee=typeof Se=="function"?Se(j||[]):Se;te(ee);}else {const ee=typeof Se=="function"?Se(K||[]):Se;q(ee);}},[j,K]),X=m.useCallback((de,Se)=>{de==="left"?I==null||I(Se,K):I==null||I(j,Se);},[j,K]),oe=de=>{var Se;return (Se=c??de.titles)!==null&&Se!==void 0?Se:[]},ue=de=>{R==null||R("left",de);},ve=de=>{R==null||R("right",de);},re=de=>{const Se=de==="right"?j:K,ee=nV(W),be=Se.filter(ge=>!ee.has(ge)),_e=Ql(be),Ye=de==="right"?be.concat(n):n.filter(ge=>!_e.has(ge)),Le=de==="right"?"left":"right";U(Le,[]),X(Le,[]),A==null||A(Ye,de,be);},ae=()=>{re("left");},ce=()=>{re("right");},Y=(de,Se,ee)=>{U(de,be=>{let _e=[];if(ee==="replace")_e=Se;else if(ee)_e=Array.from(new Set([].concat(Qe(be),Qe(Se))));else {const Ye=Ql(Se);_e=be.filter(Le=>!Ye.has(Le));}return X(de,_e),_e});},ne=(de,Se)=>{Y("left",de,Se);},J=(de,Se)=>{Y("right",de,Se);},fe=de=>_==null?void 0:_("left",de.target.value),me=de=>_==null?void 0:_("right",de.target.value),ye=()=>_==null?void 0:_("left",""),Re=()=>_==null?void 0:_("right",""),He=(de,Se,ee)=>{const be=Qe(de==="left"?j:K),_e=be.indexOf(Se);_e>-1&&be.splice(_e,1),ee&&be.push(Se),X(de,be),e.selectedKeys||U(de,be);},Te=(de,Se)=>{He("left",de,Se);},ie=(de,Se)=>{He("right",de,Se);},he=de=>{U("right",[]),A==null||A(n.filter(Se=>!de.includes(Se)),"left",Qe(de));},pe=de=>typeof s=="function"?s({direction:de}):s||{},we=m.useContext(tr),{hasFeedback:De,status:Ae}=we,xe=de=>Object.assign(Object.assign(Object.assign({},de),{notFoundContent:(T==null?void 0:T("Transfer"))||m.createElement(OS,{componentName:"Transfer"})}),l),Ie=ms(Ae,p),Fe=!w&&g,$e=K.length>0,Ne=j.length>0,tt=F(L,{[`${L}-disabled`]:u,[`${L}-customize-list`]:!!w,[`${L}-rtl`]:N==="rtl"},lr(L,Ie,De),M==null?void 0:M.className,y,S,H),[ct]=Yi("Transfer",zr.Transfer),qe=xe(ct),[ut,Pe]=oe(qe);return z(m.createElement("div",{className:tt,style:Object.assign(Object.assign({},M==null?void 0:M.style),a)},m.createElement(qf,Object.assign({prefixCls:`${L}-list`,titleText:ut,dataSource:B,filterOption:C,style:pe("left"),checkedKeys:j,handleFilter:fe,handleClear:ye,onItemSelect:Te,onItemSelectAll:ne,render:$,showSearch:d,renderList:w,footer:x,onScroll:ue,disabled:u,direction:N==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:o[0],pagination:Fe,selectionsIcon:E},qe)),m.createElement(ax,{className:`${L}-operation`,rightActive:Ne,rightArrowText:i[0],moveToRight:ce,leftActive:$e,leftArrowText:i[1],moveToLeft:ae,style:f,disabled:u,direction:N,oneWay:v}),m.createElement(qf,Object.assign({prefixCls:`${L}-list`,titleText:Pe,dataSource:V,filterOption:C,style:pe("right"),checkedKeys:K,handleFilter:me,handleClear:Re,onItemSelect:ie,onItemSelectAll:J,onItemRemove:he,render:$,showSearch:d,renderList:w,footer:x,onScroll:ve,disabled:u,direction:N==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:o[1],showRemove:v,pagination:Fe,selectionsIcon:E},qe))))};pu.List=qf;pu.Search=ix;pu.Operation=ax;const oU=pu;function sx(){}const Qb=()=>document.querySelector(".bili-header__bar");function iU(){return !!(Qb()&&window.getComputedStyle(Qb()).display==="none")}function Yf(){if(!iU())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 Jl=dr({value:Yf()});function aU(){return mr(Jl).value}function lx(){return Jl.value}setTimeout(()=>{Jl.value=Yf();const e=new MutationObserver(()=>{Jl.value=Yf();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);function sU(){const e=m.useRef(null),[t,n]=m.useState(!1);return m.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 lU="_expand-btn_wdzp9_1",cU="_expanded_wdzp9_12",Jb={expandBtn:lU,expanded:cU},uU=m.forwardRef(function({children:t},n){const[r,o]=hw(!1);m.useImperativeHandle(n,()=>o,[o]);const i=D("button",{className:F("primary-btn",Jb.expandBtn),onClick:o.toggle,children:D("svg",{className:F({[Jb.expanded]:r}),children:D("use",{href:"#widget-arrow"})})});return Ce(Ct,{children:[i,r&&t]})}),dU="_modal-mask_7bwzz_1",fU="_narrow-mode_7bwzz_1",mU="_modal_7bwzz_1",hU="_modal-header_7bwzz_18",vU="_modal-body_7bwzz_19",gU="_btn-refresh_7bwzz_22",ga={modalMask:dU,narrowMode:fU,modal:mU,modalHeader:hU,modalBody:vU,btnRefresh:gU};var pU={name:"1q4vxyr",styles:"margin-left:8px"};const bU=m.memo(function({show:t,onHide:n}){const r=m.useRef(null),o=m.useRef(null),{useNarrowMode:i}=In(),a=m.useMemo(()=>({[ga.narrowMode]:i}),[i]),s=ot((...h)=>{var v;return (v=o.current)==null?void 0:v.refresh(...h)}),l=ot(()=>{r.current&&(r.current.scrollTop=0);}),c=Zh(),u=m.useMemo(()=>c?{border:`1px solid ${Wr}`}:void 0,[c]),[d,f]=m.useState(!1);return Ce(nv,{show:t,onHide:n,clsModalMask:F(a),clsModal:F(ga.modal,a),styleModal:{...u},children:[Ce("div",{className:F(xr.modalHeader,ga.modalHeader),children:[D(Hw,{onRefresh:s}),D("div",{className:"space",style:{flex:1}}),D(uU,{children:D(CH,{})}),D(fx,{css:pU,refreshing:d,onRefresh:s,className:ga.btnRefresh,refreshHotkeyEnabled:t}),D(rv,{onClick:n})]}),D("div",{className:F(xr.modalBody,ga.modalBody),ref:r,children:D(Xx,{ref:o,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:f})})]})}),yU=Xi.extend("RecHeader"),dv=Yn` display: flex; align-items: center; justify-content: center; `,e0={btn:Yn` padding: 0; width: 32px; height: 32px; border-radius: 50%; ${dv} `,icon:Yn` svg { width: 14px; height: 14px; } `},co=dr({modalFeedVisible:yt.initialShowMore,modalConfigVisible:!1}),CU=function(){return mr(co)},SU=()=>{co.modalFeedVisible=!0;},wU=()=>{co.modalFeedVisible=!1;},xU=()=>{co.modalConfigVisible=!0;},$U=()=>{co.modalConfigVisible=!1;},cx=m.createContext({onRefresh:sx});function ux(){return m.useContext(cx)}const dx=m.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},i){const{accessKey:a,pureRecommend:s}=In(),{modalFeedVisible:l,modalConfigVisible:c}=mr(co);Zt(["shift.comma"],v=>{fu()||(co.modalConfigVisible=!co.modalConfigVisible);},{exactMatch:!0});const[u,d]=sU(),f=ot(()=>{var b;if(!s)return;const v=(b=u.current)==null?void 0:b.parentElement;if(!v)return;const g=v.getBoundingClientRect(),p=lx();if(g.top<p){const y=p-g.top+1;yU("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",g.top,p,y),document.documentElement.scrollTop-=y;}});m.useImperativeHandle(i,()=>({scroll:f}));const h=aU();return D(Ct,{children:Ce(cx.Provider,{value:{onRefresh:t},children:[Ce("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:[Ce("div",{className:"left",children:[D("svg",{className:"icon",children:D("use",{href:"#channel-cinephile"})}),D(Hw,{onRefresh:t}),r]}),D("div",{className:"right",children:Ce(Wc,{size:"small",children:[o,!a&&D(ww,{style:{marginLeft:5}}),D(Qt,{onClick:xU,css:e0.btn,children:D(Tt,{name:"Config",css:e0.icon})}),D(fx,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(c||l)}),!s&&Ce(Qt,{css:dv,onClick:SU,children:[D("span",{children:"查看更多"}),D("svg",{css:Yn` width: 12px; height: 12px; margin-left: 2px; `,children:D("use",{href:"#widget-arrow"})})]})]})})]}),D(bU,{show:l,onHide:wU}),D(c7,{show:c,onHide:$U})]})})}),fx=m.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},i){r??(r=!0);const[a,s]=m.useState(0),l=m.useRef(null),c=ot(()=>{l.current&&(l.current.disabled||l.current.click());});m.useImperativeHandle(i,()=>({click:c}),[]),Zt("r",()=>{fu()||r&&c();},{exactMatch:!0});const u=Es(),{shuffleForFav:d,shuffleForWatchLater:f}=In(),h=u==="dynamic"||u==="watchlater"&&!f||u==="fav"&&!d?"刷新":"换一换",v=ot(g=>(s(p=>p+360),e==null?void 0:e()));return Ce(Qt,{disabled:o,className:t,style:n,css:Yn` ${dv} &.ant-btn:not(:disabled):focus-visible { outline: none; } `,ref:l,onClick:v,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})]})});function mx(e){return `https://space.bilibili.com/${du()}/favlist?fid=${e}`}const Si=class Si{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(IU,{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,Si.PAGE_SIZE);return this.bufferQueue=this.bufferQueue.slice(Si.PAGE_SIZE),this.doReturnItems(n)}};if(!this.useShuffle){if(this.bufferQueue.length)return t();const n=this.folderServices.find(o=>o.hasMore);if(!n)return;const r=await n.loadMore();return this.doReturnItems(r)}if(this.bufferQueue.length<Si.PAGE_SIZE){for(;this.folderHasMore&&this.bufferQueue.length<100;){const n=this.folderServices.filter(i=>i.hasMore),r=Gf(n).slice(0,5),o=(await Promise.all(r.map(async i=>await i.loadMore()||[]))).flat();this.bufferQueue=[...this.bufferQueue,...o];}this.bufferQueue=Gf(this.bufferQueue);}return t()}async getAllFolders(){const r=(await Rn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:du()}})).data.data.list;this.foldersLoaded=!0,this.allFolderServices=r.map(o=>new EU(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(Si,"PAGE_SIZE",20);let Ya=Si;class EU{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 Rn.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(!Xo(n)){gt(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 OU={name:"1uu99zq",styles:"margin-left:15px;cursor:pointer;font-size:12px"};function IU({allFavFolderServices:e}){const{excludeFavFolderIds:t,shuffleForFav:n}=In(),{onRefresh:r}=ux(),[o,i]=m.useState(!1),a=ot((u,d,f)=>{i(!0),Er({excludeFavFolderIds:u});}),s=e.length-t.length,l=m.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();});return Ce(Ct,{children:[D(ih,{trigger:"click",placement:"bottom",onOpenChange:c,content:D(Ct,{children:D(oU,{dataSource:e,rowKey:u=>u.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:a,render:u=>u.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:Ce(to,{color:"success",css:OU,children:["收藏夹(",s,") 收藏(",l,")"]})}),D(ex,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序",checked:n,onChange:u=>{Er({shuffleForFav:u}),setTimeout(()=>{r();});}})]})}const Nd={removeFav:PU,addFav:TU,getVideoFavState:RU};async function PU(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:xs()}),o=(await Rn.post("/x/v3/fav/resource/batch-del",n)).data,i=Xo(o);return i||gt(o.message||iw),i}async function RU(e){if(!$s())return;const r=(await Rn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:du(),type:2,rid:e}})).data.data.list.filter(a=>a.fav_state>0),o=r.map(a=>a.title),i=r.map(a=>mx(a.id));return {favFolders:r,favFolderNames:o,favFolderUrls:i}}async function _U({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:xs()}),i=(await Rn.post("/x/v3/fav/resource/deal",r)).data,a=Xo(i);return a||gt((i==null?void 0:i.message)||"fav deal api fail"),a}let kd=0,Zf="";async function TU(e){if(!kd||!Zf){const t=new Ya;await t.getAllFolders(),kd=t.folderServices[0].entry.id,Zf=t.folderServices[0].entry.title;}return await _U({avid:e,add_media_ids:kd.toString()})}async function hx(e,t){const n=du(),r=xs(),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:MU()}),csrf:r}),a=(await Rn.post("/x/relation/modify",o)).data,s=Xo(a);return s||gt(a.message||"未知错误"),s}function MU(){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 NU=gx("follow"),kU=gx("remove"),vx={add:NU,remove:kU},Qf=lv();function AU(e){const t=mr(Qf);return e&&t.has(e)}function gx(e){const t=e==="follow"?5:6;return async function(r){const o=await hx(r,t);return o&&(e==="follow"?Qf.add(r):e==="remove"&&Qf.delete(r)),o}}const LU=px("follow"),DU=px("unfollow"),zU={follow:LU,unfollow:DU};function px(e){const t=e==="follow"?1:2;return async function(r){return await hx(r,t)}}var jU=1,BU=4;function HU(e){return wa(e,jU|BU)}const Ei=dr({updatedAt:0,bvidSet:lv()});function FU(e){return mr(Ei).bvidSet.has(e)}$s()&&setTimeout(()=>{new Za().loadMore();});const Nr=class Nr{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 Rn.get("/x/v2/history/toview/web")).data;let r=n.data.list.map(a=>({...a,api:"watchlater",uniqId:`watchlater-${a.bvid}`}));Date.now()>Ei.updatedAt&&(Ei.updatedAt=Date.now(),Ei.bvidSet=lv(r.map(a=>a.bvid)));const o=Go().subtract(2,"days").unix(),i=r.findIndex(a=>a.add_at<o);if(i!==-1){const a=r.slice(0,i);let s=r.slice(i);this.keepOrder&&Nr.LAST_ITEMS.length?(s=s.map(l=>({item:l,index:Nr.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,...Gf(s)]);}this.count=n.data.count,this.items=r,Nr.LAST_ITEMS=r;}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return D(WU,{count:t})}async loadMore(){if(!this.hasMore)return;this.loaded||(await this.fetch(),this.loaded=!0),this.page++;const t=this.page*Nr.PAGE_SIZE,n=t+Nr.PAGE_SIZE,r=HU(this.items.slice(t,n));return this.hasMore=n<=this.count-1,r}};wt(Nr,"PAGE_SIZE",15),wt(Nr,"LAST_ITEMS",[]);let Za=Nr;function WU({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=In(),{onRefresh:o}=ux();return Ce(Ct,{children:[Ce(to,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{gt(`稍后再看: ${n}`);},children:[e," / 100"]}),D(ex,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:i=>{Er({shuffleForWatchLater:i}),setTimeout(()=>{o();});}})]})}function bx(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 VU="_bili-video-card_mnvtu_1",UU="_preview-card-wrapper_mnvtu_4",KU="_preview-card-inner_mnvtu_17",GU="_watch-later_mnvtu_21",XU="_badge_mnvtu_24",qU="_recommend-reason_mnvtu_33",YU="_bangumi-desc_mnvtu_48",ZU="_btn-dislike_mnvtu_51",QU="_btn-dislike-icon_mnvtu_66",JU="_btn-dislike-tip_mnvtu_73",eK="_disliked-wrapper_mnvtu_88",tK="_dislike-content-cover_mnvtu_102",nK="_dislike-content-cover-inner_mnvtu_108",rK="_dislike-icon_mnvtu_119",oK="_dislike-reason_mnvtu_122",iK="_dislike-desc_mnvtu_126",aK="_dislike-content-action_mnvtu_130",sK="_skeleton-active_mnvtu_147",lK="_ant-skeleton-loading_mnvtu_1",jt={biliVideoCard:VU,previewCardWrapper:UU,previewCardInner:KU,watchLater:GU,badge:XU,recommendReason:qU,bangumiDesc:YU,btnDislike:ZU,btnDislikeIcon:QU,btnDislikeTip:JU,dislikedWrapper:eK,dislikeContentCover:tK,dislikeContentCoverInner:nK,dislikeIcon:rK,dislikeReason:oK,dislikeDesc:iK,dislikeContentAction:aK,skeletonActive:sK,antSkeletonLoading:lK};function cK(...e){for(const t of e)if(!isNaN(t))return t;return 0}function uK({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const i=m.useRef(null),a=lF(i),[s,l]=m.useState(()=>({width:0,height:0}));su(()=>{var f;const d=(f=i.current)==null?void 0:f.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof o=="number")c=o;else {const d=cK(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(dK,{...u})})}function dK({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var C;const i=Math.floor((e||0)*o);let a=m.useMemo(()=>{const $=(t==null?void 0:t.index)||[];let x=mK($,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 f=Math.floor(a/d),h=a-f*d,v=((C=t.image)==null?void 0:C[f])||"",g=Math.floor(h/s)+1,p=h-(g-1)*s,b=n*s,y=r*l,S=(g-1)*r,E=(p-1)*n;return D("div",{className:jt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${v})`,backgroundPosition:`-${E}px -${S}px`,backgroundSize:`${b}px ${y}px`},children:D(fK,{progress:o})})}function fK({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:Wr,height:"100%",width:`${e*100}%`}})})}function mK(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const s=Math.floor((n+r)/2),l=e[s];if(t===l)return s;l<t?(n=s+1,o=s):r=s-1;}if(o===-1)return -1;const i=e[o],a=e[o+1]??0;return i<t&&t<a?o:-1}const Ca={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},Qa={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},hK={bangumiFollow:1.3},vK=e=>{const t=Qa[e]||Qa[1];return Ca[t]},gK=e=>{const t=Qa[e];if(t)return hK[t]};function t0(e){return {iconSvgName:vK(e),iconSvgScale:gK(e)}}var Lr=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}};Lr.TABEL="fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF";Lr.TR={};Lr.S=[11,10,3,8,4,6];Lr.XOR=177451812;Lr.ADD=8728348608;(()=>{const e=Lr.TABEL.length;for(let t=0;t<e;t++)Lr.TR[Lr.TABEL[t]]=t;})();var Ja=Lr;Ja.av2bv.bind(Ja);Ja.bv2av.bind(Ja);function yx(e,t){const n=e.api==="pc",r=e.api==="app",o=e.api==="dynamic",i=e.api==="watchlater";return e.api,n?t.pc(e):r?t.app(e):o?t.dynamic(e):i?t.watchlater(e):t.fav(e)}function Cx(e){return yx(e,{pc:pK,app:bK,dynamic:yK,watchlater:CK,fav:SK})}function pK(e){var t;return {avid:String(e.id),bvid:e.bvid,goto:e.goto,href:e.goto==="av"?`/video/${e.bvid}/`:e.uri,title:e.title,coverRaw:e.pic,pubts:e.pubdate,pubdateDisplay:ao(e.pubdate),duration:e.duration,durationStr:mu(e.duration),recommendReason:(t=e.rcmd_reason)==null?void 0:t.content,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function bK(e){var i,a,s;const t=l=>{const{cover_left_icon_1:c,cover_left_text_1:u,cover_left_icon_2:d,cover_left_text_2:f}=e;if(c&&Qa[c]===l)return Kl(u);if(d&&Qa[d]===l)return Kl(f)},n=e.param,r=Ja.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:mu((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 yK(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=Go().subtract(2,"days").unix(),o=(()=>{const i=n.pub_ts;return i>r?n.pub_time:ao(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:UF(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:Kl(t.stat.play),danmaku:Kl(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function CK(e){const t=XF(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?D(Fl,{title:Ce(Ct,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:Ce("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:ao(e.pubdate),pubdateDisplayTitle:`${ao(e.pubdate,!0)} 发布, ${ao(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:mu(e.duration),recommendReason:`${ao(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 SK(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:Ce(Ct,{children:["【",D(Tt,{name:"Star",size:16,theme:"two-tone",fill:["currentColor",Wr],style:{display:"inline-block",verticalAlign:"middle",marginLeft:10,marginRight:4,marginTop:-4}}),e.folder.title,"】· ",e.title]}),coverRaw:e.cover,pubts:e.pubtime,pubdateDisplay:ao(e.pubtime),duration:e.duration,durationStr:mu(e.duration),recommendReason:`${ao(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 wK=e=>(e||"").replace(/^http:\/\//,"https://");function n0(e){GM.setClipboard(e),gt(`已复制: ${e}`);}const Sx=bx(),xK="--video-card-border-radius",wx=`var(${xK})`,xx={borderRadius:wx},ec=m.memo(function({style:t,className:n,item:r,loading:o,active:i,onRemoveCurrent:a,onMoveToFirst:s,emitter:l,...c}){o=o??!r;const u=Ce("div",{className:F("bili-video-card__skeleton",{hide:!o,[jt.skeletonActive]:o}),children:[D("div",{className:"bili-video-card__skeleton--cover",style:xx}),D("div",{className:"bili-video-card__skeleton--info",children:Ce("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"})]})})]}),d=A7((r==null?void 0:r.api)==="app"&&r.param),f=m.useMemo(()=>r&&Cx(r),[r]),h=AU(f==null?void 0:f.authorMid);return Ce("div",{style:t,className:F("bili-video-card",jt.biliVideoCard,n),...c,children:[u,!o&&r&&f&&(d?D($K,{item:r,emitter:l,dislikedReason:d}):h?D(EK,{cardData:f}):D(OK,{item:r,cardData:f,active:i,emitter:l,onRemoveCurrent:a,onMoveToFirst:s}))]})}),$K=m.memo(function({dislikedReason:t,item:n,emitter:r=Sx}){const o=ot(async()=>{if(!(t!=null&&t.id))return;let i=!1,a;try{i=await E7(n,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),aw();i?gt("已撤销"):sw(),i&&vu.delete(n.param);});return gi(r,"cancel-dislike",o),Ce("div",{className:F(jt.dislikedWrapper),children:[D("div",{className:jt.dislikeContentCover,children:Ce("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:Ce("button",{onClick:o,children:[D(Tt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),EK=m.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,i=ot(async()=>{if(!n)return;await vx.remove(n)&>(`已移出黑名单: ${o}`);});return Ce("div",{className:F(jt.dislikedWrapper),children:[D("div",{className:jt.dislikeContentCover,children:Ce("div",{className:jt.dislikeContentCoverInner,children:[D(Tt,{name:"PeopleDelete",size:32,className:jt.dislikeIcon}),D("div",{className:jt.dislikeReason,children:"已拉黑"}),Ce("div",{className:jt.dislikeDesc,children:["UP: ",o]})]})}),D("div",{className:jt.dislikeContentAction,children:Ce("button",{onClick:i,children:[D(Tt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),OK=m.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:i,emitter:a=Sx}){var de,Se;const s=t.api==="pc",l=t.api==="app";t.api,t.api,t.api;const{avid:c,bvid:u,goto:d,href:f,title:h,titleRender:v,coverRaw:g,pubdateDisplay:p,pubdateDisplayTitle:b,duration:y,durationStr:S,recommendReason:E,invalidReason:C,play:$,like:x,coin:w,danmaku:O,favorite:R,authorName:A,authorFace:_,authorMid:I,appBadge:P,appBadgeDesc:T}=n,N=d==="av";["av","bangumi","picture"].includes(d)||console.warn(`[${fn}]: none (av,bangumi,picture) goto type %s`,d,t);const M=m.useMemo(()=>wK(g),[g]),[L,z]=m.useState(null),H=m.useRef(!1),W=ot(async()=>{if(!L&&!H.current)try{H.current=!0,z(await x7(c));}finally{H.current=!1;}}),B=m.useRef(null),[V,j]=m.useState(void 0);lo("mouseenter",ee=>{var Le;const be=(Le=B.current)==null?void 0:Le.getBoundingClientRect();if(!be)return;const{x:_e}=be,Ye=ee.pageX-window.pageXOffset-_e;j(Ye);},{target:B});const K=Od(B),{autoPreviewWhenHover:te}=In(),{onStartPreviewAnimation:q,onHotkeyPreviewAnimation:U,previewAnimationProgress:X}=IK({bvid:u,title:h,autoPreviewWhenHover:te,active:r,tryFetchVideoData:W,videoPreviewWrapperRef:B});Ul(()=>{if(r){try{unsafeWindow[`${rR}_activeItem`]=t;}catch(ee){console.warn("set unsafeWindow activeItem error"),console.warn(ee.stack||ee);}yt.autoPreviewWhenKeyboardSelect&&q();}},[r]);const oe=m.useRef(null),ue=Od(oe),ve=FU(u),{accessKey:re}=In(),ae=!!re;m.useEffect(()=>{K&&W();},[K]);const ce=m.useRef(!1),Y=ot(async(ee,be)=>{if(ee==null||ee.preventDefault(),be??(be=ve?Db:Ys),be!==Ys&&be!==Db)throw new Error("unexpected usingAction provided");if(ce.current)return;ce.current=!0;let _e=!1;try{_e=await be(c);}finally{ce.current=!1;}if(_e){const Ye=be===Ys;Ye?Ei.bvidSet.add(u):Ei.bvidSet.delete(u),t.api==="watchlater"&&Ye===!1&&(await qo(100),o==null||o(t,n));}return _e}),ne=m.useRef(null),J=Od(ne),fe=ot(ee=>{if(ee==null||ee.stopPropagation(),ee==null||ee.preventDefault(),!xe)return t.api!=="app"?gt("当前视频不支持提交「我不想看」"):ae?void 0:gt("请先获取 access_key");j7(t);}),me=m.useMemo(()=>_d($),[$]),ye=m.useMemo(()=>_d(x),[x]),Re=m.useMemo(()=>_d(R),[R]),He=s?ye:Re,Te=({text:ee,iconSvgName:be,iconSvgScale:_e})=>Ce("span",{className:"bili-video-card__stats--item",children:[D("svg",{className:"bili-video-card__stats--icon",style:{transform:_e?`scale(${_e})`:void 0},children:D("use",{href:be})}),D("span",{className:"bili-video-card__stats--text",children:ee})]}),[ie,he]=m.useState(void 0),[pe,we]=m.useState(void 0),De=ot(async()=>{if(t.api!=="watchlater")return;const ee=await Nd.getVideoFavState(c);if(ee){const{favFolderNames:be,favFolderUrls:_e}=ee;he(be),we(_e);}}),Ae=ot(()=>{window.open(f,"_blank");});gi(a,"open",Ae),gi(a,"toggle-watch-later",()=>Y()),gi(a,"trigger-dislike",()=>fe()),gi(a,"start-preview-animation",q),gi(a,"hotkey-preview-animation",U);const xe=l&&ae&&((Se=(de=t.three_point)==null?void 0:de.dislike_reasons)==null?void 0:Se.length),Ie=ot(()=>{let ee=f;f.startsWith("/")&&(ee=new URL(f,location.href).href),n0(ee);}),Fe=ot(()=>{let ee=f;t.api==="watchlater"&&(ee=`/video/${t.bvid}`);const be=new URL(ee,location.href).href,_e=`iina://open?url=${encodeURIComponent(be)}`;window.open(_e,"_self");}),$e=Es(),Ne=$e==="recommend-app"||$e==="recommend-pc",tt=ot(async()=>{if(!I)return gt("UP mid 为空!");await vx.add(I)&>(`已加入黑名单: ${A}`);}),ct=t.api==="dynamic"||(t.api==="app"||t.api==="pc")&&E==="已关注",qe=ot(async()=>{if(!I)return;await zU.unfollow(I)&>("已取消关注");}),ut=m.useMemo(()=>{const ee=ve?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:D(Tt,{name:"EfferentFour",size:15}),onClick:Ae},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:D(Tt,{name:"Copy",size:15}),onClick:Ie},{key:"copy-bvid",label:"复制 BVID",icon:D(Tt,{name:"Copy",size:15}),onClick(){n0(u);}},{type:"divider"},xe&&{key:"dislike",label:"我不想看",icon:D(Tt,{name:"DislikeTwo",size:15}),onClick(){fe();}},ct&&{key:"unfollow-up",label:"取消关注",icon:D(Tt,{name:"PeopleMinus",size:15}),onClick(){qe();}},Ne&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:D(Tt,{name:"PeopleDelete",size:15}),onClick(){tt();}},t.api==="watchlater"&&{key:"add-fav",icon:D(Tt,{name:"Star",size:15,...ie!=null&&ie.length?{theme:"two-tone",fill:["currentColor",Wr]}:void 0}),label:ie!=null&&ie.length?`已收藏 ${ie.map(be=>`「${be}」`).join("")}`:"快速收藏",async onClick(){!!(ie!=null&&ie.length)?pe==null||pe.forEach(_e=>{window.open(_e,"_blank");}):await Nd.addFav(c)&>(`已加入收藏夹「${Zf}」`);}},{key:"watchlater",label:ee,icon:D(Tt,{name:ve?"Delete":"FileCabinet",size:15}),onClick(){Y();}},t.api==="watchlater"&&ve&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:D(Tt,{name:"AddTwo",size:15}),async onClick(){await Y(void 0,Ys)&&(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:be}=t.folder,_e=mx(be);window.open(_e,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:D(Tt,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await Nd.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...QB?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:D(Tt,{name:"PlayTwo",size:15}),onClick:Fe}]:[]].filter(Boolean)},[t,ve,xe,ct,Ne,ie,pe]),Pe=ot(ee=>{ee&&De();});return Ce("div",{className:"bili-video-card__wrap __scale-wrap",children:[D(Yw,{menu:{items:ut},trigger:["contextMenu"],onOpenChange:Pe,children:D("a",{href:f,target:"_blank",children:Ce("div",{className:"bili-video-card__image __scale-player-wrap",ref:B,style:{...xx,aspectRatio:"16 / 9"},children:[Ce("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[Ce("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!Qh&&D("source",{srcSet:`${M}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),D("source",{srcSet:`${M}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),D("img",{src:`${M}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(K||typeof X=="number")&&D(uK,{videoDuration:y,pvideo:L==null?void 0:L.pvideoData,mouseEnterRelativeX:V,previewAnimationProgress:X}),Ce("div",{className:`bili-watch-later ${jt.watchLater}`,style:{display:K||r?"flex":"none"},ref:oe,onClick:Y,children:[D("svg",{className:"bili-watch-later__icon",children:D("use",{href:ve?"#widget-watch-save":"#widget-watch-later"})}),D("span",{className:"bili-watch-later__tip",style:{display:ue?"block":"none"},children:ve?"移除稍后再看":"稍后再看"})]}),xe&&Ce("div",{ref:ne,className:jt.btnDislike,onClick:fe,style:{display:K?"flex":"none"},children:[D("svg",{className:jt.btnDislikeIcon,children:D("use",{href:"#widget-close"})}),D("span",{className:jt.btnDislikeTip,style:{display:J?"block":"none"},children:"我不想看"})]})]}),D("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:Ce("div",{className:"bili-video-card__stats",children:[D("div",{className:"bili-video-card__stats--left",children:s?Ce(Ct,{children:[Te({text:me,iconSvgName:Ca.play}),Te({text:d==="av"?ye:He,iconSvgName:Ca.like})]}):l?Ce(Ct,{children:[t.cover_left_text_1&&Te({...t0(t.cover_left_icon_1),text:d==="picture"?t.cover_left_text_1+(t.cover_left_1_content_description||""):t.cover_left_text_1}),t.cover_left_text_2&&Te({...t0(t.cover_left_icon_2),text:d==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]}):Ce(Ct,{children:[Te({text:me,iconSvgName:Ca.play}),Te({text:(O||0).toString(),iconSvgName:Ca.danmaku})]})}),D("span",{className:"bili-video-card__stats__duration",children:N&&S})]})})]})})}),D("div",{className:"bili-video-card__info __scale-disable",children:Ce("div",{className:"bili-video-card__info--right",children:[D("a",{href:f,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:D("h3",{className:"bili-video-card__info--tit",title:h,children:v??h})}),D("p",{className:"bili-video-card__info--bottom",children:N?Ce("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${I}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",title:`${A} ${b||p}`,children:[E?D("span",{className:jt.recommendReason,children:E}):D("svg",{className:"bili-video-card__info--owner__up",children:D("use",{href:"#widget-up"})}),D("span",{className:"bili-video-card__info--author",children:A}),p&&Ce("span",{className:"bili-video-card__info--date",children:["· ",p]})]}):P||T?Ce("a",{className:"bili-video-card__info--owner",href:f,target:"_blank",children:[D("span",{className:jt.badge,children:P||""}),D("span",{className:jt.bangumiDesc,children:T||""})]}):null})]})})]})});function IK({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:i}){const[s,l]=Sw(void 0),[c,u]=m.useState(!1),d=m.useRef(!1),f=m.useRef(!1);lo("mouseenter",w=>{d.current=!0,n&&!v.current&&x(!0);},{target:i}),lo("mouseleave",w=>{d.current=!1;},{target:i}),lo("mousemove",w=>{u(!0),n||p();},{target:i});const h=uF(),v=m.useRef(void 0),g=ot(()=>{if(h.current)return !0;if(n){if(f.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),p=ot((w=!1)=>{v.current&&cancelAnimationFrame(v.current),v.current=void 0,l(void 0),y(!1);}),[b,y,S]=yw(!1),E=m.useRef(),C=ot(()=>{var w;if(!v.current){x();return}y(O=>!O),b&&((w=E.current)==null||w.call(E,s||0));}),$=ot(()=>s||0),x=ot((w=!1)=>{f.current=w,u(!1),y(!1),o(),p(!0),l(P=>typeof P>"u"?0:P);const O=8e3,R=()=>typeof yt.autoPreviewUpdateInterval=="number"?yt.autoPreviewUpdateInterval:400;let A=performance.now(),_=0;E.current=()=>{A=performance.now()-$()*O;};function I(P){if(g()){p();return}const T=()=>{const N=performance.now()-A,M=Math.min(N%O/O,1);l(M);};S()||(R()?(!_||performance.now()-_>=R())&&(_=performance.now(),T()):T()),v.current=requestAnimationFrame(I);}v.current=requestAnimationFrame(I);});return {onHotkeyPreviewAnimation:C,onStartPreviewAnimation:x,previewAnimationProgress:s}}var PK=1,RK=2;function _K(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return !i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return !1}for(;++o<i;){s=n[o];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return !1}else {var d=new Sr;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?cu(u,c,PK|RK,r,d):f))return !1}}return !0}function $x(e){return e===e&&!Qn(e)}function TK(e){for(var t=os(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,$x(o)];}return t}function Ex(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function MK(e){var t=TK(e);return t.length==1&&t[0][2]?Ex(t[0][0],t[0][1]):function(n){return n===e||_K(n,e,t)}}function NK(e,t,n){var r=e==null?void 0:xc(e,t);return r===void 0?n:r}var kK=1,AK=2;function LK(e,t){return Rm(e)&&$x(t)?Ex(Gi(e),t):function(n){var r=NK(n,e);return r===void 0&&r===t?sy(n,e):cu(t,r,kK|AK)}}function DK(e){return function(t){return t==null?void 0:t[e]}}function zK(e){return function(t){return xc(t,e)}}function jK(e){return Rm(e)?DK(Gi(e)):zK(e)}function BK(e){return typeof e=="function"?e:e==null?ry:typeof e=="object"?Jn(e)?LK(e[0],e[1]):MK(e):jK(e)}function HK(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return -1}function FK(e){return e!==e}function WK(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}function VK(e,t,n){return t===t?WK(e,t,n):HK(e,FK,n)}function UK(e,t){var n=e==null?0:e.length;return !!n&&VK(e,t,0)>-1}function KK(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return !0;return !1}var GK=1/0,XK=xi&&1/tv(new xi([,-0]))[1]==GK?function(e){return new xi(e)}:sx;const qK=XK;var YK=200;function ZK(e,t,n){var r=-1,o=UK,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=KK;else if(i>=YK){var c=t?null:qK(e);if(c)return tv(c);a=!1,o=pw,l=new qa;}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u);}else o(l,d,n)||(l!==s&&l.push(d),s.push(u));}return s}function bu(e,t){return e&&e.length?ZK(e,BK(t)):[]}const fv="_video-grid_t2sr7_9",Ox="_video-grid-new-homepage_t2sr7_17",QK="_limit-two-lines_t2sr7_20",Ix="_video-grid-internal-testing_t2sr7_52";const r0="_video-grid-container_t2sr7_80",JK="_video-grid-youtube-like_t2sr7_84",eG="_narrow-mode_t2sr7_112";function tG({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:i,changeScrollY:a,videoCardEmitters:s}){const[l,c]=m.useState(void 0),u=ot(()=>!(!e||fu())),d=ot(()=>{var x;if(typeof l!="number"||!o.current)return !1;const C=i(),$=(x=o.current.querySelector(`.${Ii.card}.${Ii.cardActive}`))==null?void 0:x.getBoundingClientRect();return !(!C||!$||$.top-C.top<-(C.height+$.height)||$.top-C.top>C.height*2+$.height)}),f=C=>$=>{if(!u())return;$==null||$.preventDefault();let x=typeof C=="number"?C:C();const w=d()?l+x:p();if(w<n){E(n);return}if(w>r){E(r);return}c(w),E(w);};Zt("leftarrow",f(-1),{exactMatch:!0}),Zt("rightarrow",f(1),{exactMatch:!0}),Zt("tab",f(1),{exactMatch:!0}),Zt("shift.tab",f(-1),{exactMatch:!0});const h=()=>mv(o.current);Zt("uparrow",f(()=>-h()),{exactMatch:!0}),Zt("downarrow",f(h),{exactMatch:!0});const v=()=>{u()&&c(void 0);},g=()=>{if(!(!u()||typeof l!="number"))return s[l]};Zt("esc",v),Zt("enter",()=>{var C;!u()||typeof l!="number"||(C=g())==null||C.emit("open");}),Zt("backspace",()=>{var C;!u()||typeof l!="number"||(C=g())==null||C.emit("trigger-dislike");}),Zt(["s","w"],()=>{var C;!u()||typeof l!="number"||(C=g())==null||C.emit("toggle-watch-later");},{exactMatch:!0}),Zt(["period","p"],()=>{var C;!u()||typeof l!="number"||(C=g())==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=`.${Ii.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 R=-(x.top-w.top+10);a==null||a({offset:R});return}if(x.bottom-w.bottom<10){const R=10-(x.bottom-w.bottom);a==null||a({offset:R});return}}}return {activeIndex:l,clearActiveIndex:v}}const nG=new Map,rG=new Map;function mv(e,t=!0){if(t&&yt.useNarrowMode)return 2;const n=yt.styleUseYoutubeLikeCard?nG:rG;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${fv}`)),!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 Px(e){return e==="onlyFollow"||yt.filterMinDurationEnabled||yt.filterMinPlayCountEnabled||yt.filterOutGotoTypePicture}function Rx(e,t){return Px(t)?e.filter(n=>{const{play:r,duration:o,recommendReason:i,goto:a}=Cx(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"&&r<yt.filterMinPlayCount||yt.filterMinDurationEnabled&&yt.filterMinDuration&&o&&o<yt.filterMinDuration)}function d(){return yt.filterOutGotoTypePicture?!!(s&&!yt.enableFilterForFollowedPicture):!0}}):e}var yu={exports:{}},hv={exports:{}},_x={exports:{}},Jt=_x.exports={},vr,gr;function Jf(){throw new Error("setTimeout has not been defined")}function em(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?vr=setTimeout:vr=Jf;}catch{vr=Jf;}try{typeof clearTimeout=="function"?gr=clearTimeout:gr=em;}catch{gr=em;}})();function Tx(e){if(vr===setTimeout)return setTimeout(e,0);if((vr===Jf||!vr)&&setTimeout)return vr=setTimeout,setTimeout(e,0);try{return vr(e,0)}catch{try{return vr.call(null,e,0)}catch{return vr.call(this,e,0)}}}function oG(e){if(gr===clearTimeout)return clearTimeout(e);if((gr===em||!gr)&&clearTimeout)return gr=clearTimeout,clearTimeout(e);try{return gr(e)}catch{try{return gr.call(null,e)}catch{return gr.call(this,e)}}}var Ar=[],Oi=!1,Io,pl=-1;function iG(){!Oi||!Io||(Oi=!1,Io.length?Ar=Io.concat(Ar):pl=-1,Ar.length&&Mx());}function Mx(){if(!Oi){var e=Tx(iG);Oi=!0;for(var t=Ar.length;t;){for(Io=Ar,Ar=[];++pl<t;)Io&&Io[pl].run();pl=-1,t=Ar.length;}Io=null,Oi=!1,oG(e);}}Jt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ar.push(new Nx(e,t)),Ar.length===1&&!Oi&&Tx(Mx);};function Nx(e,t){this.fun=e,this.array=t;}Nx.prototype.run=function(){this.fun.apply(null,this.array);};Jt.title="browser";Jt.browser=!0;Jt.env={};Jt.argv=[];Jt.version="";Jt.versions={};function Gr(){}Jt.on=Gr;Jt.addListener=Gr;Jt.once=Gr;Jt.off=Gr;Jt.removeListener=Gr;Jt.removeAllListeners=Gr;Jt.emit=Gr;Jt.prependListener=Gr;Jt.prependOnceListener=Gr;Jt.listeners=function(e){return []};Jt.binding=function(e){throw new Error("process.binding is not supported")};Jt.cwd=function(){return "/"};Jt.chdir=function(e){throw new Error("process.chdir is not supported")};Jt.umask=function(){return 0};var aG=_x.exports;const Ad=an(aG);var tm;typeof Object.create=="function"?tm=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:tm=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const kx=tm;var sG=/%[sdj%]/g;function Vi(e){if(!Ps(e)){for(var t=[],n=0;n<arguments.length;n++)t.push($r(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,i=String(e).replace(sG,function(s){if(s==="%%")return "%";if(n>=o)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return "[Circular]"}default:return s}}),a=r[n];n<o;a=r[++n])Is(a)||!Yo(a)?i+=" "+a:i+=" "+$r(a);return i}function vv(e,t){if(yr(global.process))return function(){return vv(e,t).apply(this,arguments)};if(Ad.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(Ad.throwDeprecation)throw new Error(t);Ad.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var Zs={},Ld;function Ax(e){if(yr(Ld)&&(Ld={}.NODE_DEBUG||""),e=e.toUpperCase(),!Zs[e])if(new RegExp("\\b"+e+"\\b","i").test(Ld)){var t=0;Zs[e]=function(){var n=Vi.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else Zs[e]=function(){};return Zs[e]}function $r(e,t){var n={seen:[],stylize:cG};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Cu(t)?n.showHidden=t:t&&yv(n,t),yr(n.showHidden)&&(n.showHidden=!1),yr(n.depth)&&(n.depth=2),yr(n.colors)&&(n.colors=!1),yr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=lG),tc(n,e,n.depth)}$r.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]};$r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function lG(e,t){var n=$r.styles[t];return n?"\x1B["+$r.colors[n][0]+"m"+e+"\x1B["+$r.colors[n][1]+"m":e}function cG(e,t){return e}function uG(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function tc(e,t,n){if(e.customInspect&&t&&Na(t.inspect)&&t.inspect!==$r&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return Ps(r)||(r=tc(e,r,n)),r}var o=dG(e,t);if(o)return o;var i=Object.keys(t),a=uG(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),Ma(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Dd(t);if(i.length===0){if(Na(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Ta(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(nc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ma(t))return Dd(t)}var l="",c=!1,u=["{","}"];if(gv(t)&&(c=!0,u=["[","]"]),Na(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(Ta(t)&&(l=" "+RegExp.prototype.toString.call(t)),nc(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Ma(t)&&(l=" "+Dd(t)),i.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return Ta(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return c?f=fG(e,t,n,a,i):f=i.map(function(h){return nm(e,t,n,a,h,c)}),e.seen.pop(),mG(f,l,u)}function dG(e,t){if(yr(t))return e.stylize("undefined","undefined");if(Ps(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(pv(t))return e.stylize(""+t,"number");if(Cu(t))return e.stylize(""+t,"boolean");if(Is(t))return e.stylize("null","null")}function Dd(e){return "["+Error.prototype.toString.call(e)+"]"}function fG(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)Hx(t,String(a))?i.push(nm(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(l){l.match(/^\d+$/)||i.push(nm(e,t,n,r,l,!0));}),i}function nm(e,t,n,r,o,i){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},l.get?l.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),Hx(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(Is(n)?s=tc(e,l.value,null):s=tc(e,l.value,n-1),s.indexOf(` `)>-1&&(i?s=s.split(` `).map(function(c){return " "+c}).join(` `).substr(2):s=` `+s.split(` `).map(function(c){return " "+c}).join(` `))):s=e.stylize("[Circular]","special")),yr(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 mG(e,t,n){var r=e.reduce(function(o,i){return i.indexOf(` `)>=0,o+i.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(t===""?"":t+` `)+" "+e.join(`, `)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function gv(e){return Array.isArray(e)}function Cu(e){return typeof e=="boolean"}function Is(e){return e===null}function Lx(e){return e==null}function pv(e){return typeof e=="number"}function Ps(e){return typeof e=="string"}function Dx(e){return typeof e=="symbol"}function yr(e){return e===void 0}function Ta(e){return Yo(e)&&bv(e)==="[object RegExp]"}function Yo(e){return typeof e=="object"&&e!==null}function nc(e){return Yo(e)&&bv(e)==="[object Date]"}function Ma(e){return Yo(e)&&(bv(e)==="[object Error]"||e instanceof Error)}function Na(e){return typeof e=="function"}function zx(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function jx(e){return Buffer.isBuffer(e)}function bv(e){return Object.prototype.toString.call(e)}function zd(e){return e<10?"0"+e.toString(10):e.toString(10)}var hG=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function vG(){var e=new Date,t=[zd(e.getHours()),zd(e.getMinutes()),zd(e.getSeconds())].join(":");return [e.getDate(),hG[e.getMonth()],t].join(" ")}function Bx(){console.log("%s - %s",vG(),Vi.apply(null,arguments));}function yv(e,t){if(!t||!Yo(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Hx(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const gG={inherits:kx,_extend:yv,log:Bx,isBuffer:jx,isPrimitive:zx,isFunction:Na,isError:Ma,isDate:nc,isObject:Yo,isRegExp:Ta,isUndefined:yr,isSymbol:Dx,isString:Ps,isNumber:pv,isNullOrUndefined:Lx,isNull:Is,isBoolean:Cu,isArray:gv,inspect:$r,deprecate:vv,format:Vi,debuglog:Ax},pG=Object.freeze(Object.defineProperty({__proto__:null,_extend:yv,debuglog:Ax,default:gG,deprecate:vv,format:Vi,inherits:kx,inspect:$r,isArray:gv,isBoolean:Cu,isBuffer:jx,isDate:nc,isError:Ma,isFunction:Na,isNull:Is,isNullOrUndefined:Lx,isNumber:pv,isObject:Yo,isPrimitive:zx,isRegExp:Ta,isString:Ps,isSymbol:Dx,isUndefined:yr,log:Bx},Symbol.toStringTag,{value:"Module"})),bG=r$(pG);var yG=bG.format;function CG(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function SG(e,t){return function(){var n=this,r=[].slice.call(arguments);CG();var o=new AbortController;return r.push(o.signal),new Promise(function(i,a){var s=setTimeout(function(){var l=new Fx(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 Fx=class Wx extends Error{constructor(t){super(),this.timeout=t,this.message=yG("timeout of %sms exceed",t),Error.captureStackTrace(this,Wx);}};hv.exports=SG;hv.exports.TimeoutError=Fx;var wG=hv.exports;const Vx=wG,xG=Vx.TimeoutError;yu.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,i=n.timeout;i&&(t=Vx(t,i));const a=n.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(o);for(let u=0;u<o;u++){let d,f;try{d=await t.apply(s,l);}catch(h){f=h;}if(!f)return d;if(f instanceof TypeError)throw f;if(f instanceof $G)throw f.originalError;c[u]=f,a&&a(f,u);}throw new Ux({times:o,timeout:i,fn:r,errors:c})}};class Ux extends Error{constructor(t){super(),this.times=t.times,this.timeout=t.timeout,this.fn=t.fn,this.errors=t.errors,this.name="RetryError",this.message=`tried function ${this.fn.name||"<anonymous>"} ${this.times} times`,this.timeout&&(this.message+=` with timeout = ${this.timeout}ms`),Error.captureStackTrace(this,this.constructor);}}class $G 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 EG=yu.exports.RetryError=Ux;yu.exports.TimeoutError=xG;var OG=yu.exports;const IG=an(OG);class Cv extends Error{constructor(n){super();wt(this,"json");Error.captureStackTrace(this,Cv),this.json=n,this.message=n.message||JSON.stringify(n);}}async function PG(){var r;const t=(await uu.get(cy+"/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 Cv(t);return gt(`${fn}: 未知错误, 请联系开发者 code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const RG=IG(PG,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",fn,t,e);}});async function _G(){try{return await RG()}catch(e){if(e instanceof EG){console.error(e.errors);const t=[Vi("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>Vi(" %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(` `);gt(t,5e3);}throw e}}class rc{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(()=>_G()))).flat();})(),n=bu(n,o=>o.param),n.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}}wt(rc,"PAGE_SIZE",10);const oc=class oc{constructor(){wt(this,"page",0);wt(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommend(t=void 0){var a,s;const n=++this.page,o=(await Rn.get("/x/web-interface/wbi/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:oc.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (a=o.data)!=null&&a.item||gt(o.message||"API 请求没有返回结果"),((s=o.data)==null?void 0:s.item)||[]}async getRecommendTimes(t,n=void 0){let r=[];return await(async()=>{r=(await Promise.all(new Array(t).fill(0).map(()=>this.getRecommend(n)))).flat();})(),r=bu(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(oc,"PAGE_SIZE",14);let es=oc;const Qs=Xi.extend("service"),bl=e=>yx(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 TG(e,t){const n=e.map(bl);return t=bu(t,bl),e.concat(t.filter(r=>!n.includes(bl(r))))}const rm=e=>e==="onlyFollow"||e==="recommend-pc";async function Kx(e,t,n=5){const{pcRecService:r,dynamicFeedService:o,watchLaterService:i,favService:a,tab:s,abortSignal:l}=t,c=new rc;let u=[],d=!0;const f=async h=>{let v=[];if(s==="dynamic"){v=await o.loadMore(l)||[],d=o.hasMore,u=u.concat(v);return}if(s==="watchlater"){v=await i.loadMore()||[],d=i.hasMore,u=u.concat(v);return}if(s==="fav"){v=await a.loadMore()||[],d=a.hasMore,u=u.concat(v);return}let g;if(s==="onlyFollow")g=8,Qs("getMinCount: addMore(restCount = %s) times=%s",h,g);else {const p=rm(s)?es.PAGE_SIZE:rc.PAGE_SIZE,b=Px(s)?n:1.2;g=Math.ceil(h*b/p),Qs("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",h,b,p,g);}v=rm(s)?await r.getRecommendTimes(g,l):await c.getRecommendTimes(g),v=Rx(v,s),u=u.concat(v),u=bu(u,bl);};for(await f(e);;){if(l!=null&&l.aborted){Qs("getMinCount: break for abortSignal");break}if(!d){Qs("getMinCount: break for tab=%s hasMore=false",s);break}if(u.length>=e)break;await f(e-u.length);}return u}async function MG(e){let t=await Kx(mv(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function NG(e){return Kx(mv()*3+1,e,5)}async function kG(e,t,n){let r=rm(t)?await n.getRecommendTimes(e):await new rc().getRecommendTimes(e);return r=Rx(r,t),r}var om=new Map,Js=new WeakMap,o0=0,AG=void 0;function LG(e){return e?(Js.has(e)||(o0+=1,Js.set(e,o0.toString())),Js.get(e)):"0"}function DG(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?LG(e.root):e[t]}`).toString()}function zG(e){let t=DG(e),n=om.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},om.set(t,n);}return n}function jG(e,t,n={},r=AG){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}=zG(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(),om.delete(o));}}function BG({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:s,fallbackInView:l,onChange:c}={}){var u;const[d,f]=m__namespace.useState(null),h=m__namespace.useRef(),[v,g]=m__namespace.useState({inView:!!s,entry:void 0});h.current=c,m__namespace.useEffect(()=>{if(a||!d)return;let S;return S=jG(d,(E,C)=>{g({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=v.entry)==null?void 0:u.target,b=m__namespace.useRef();!d&&p&&!i&&!a&&b.current!==p&&(b.current=p,g({inView:!!s,entry:void 0}));const y=[f,v.inView,v.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}function HG(e){const t=m.useRef(null);return t.current||(t.current=e()),t}class im{constructor(){wt(this,"offset","");wt(this,"page",0);wt(this,"hasMore",!0);}async loadMore(t=void 0){if(!this.hasMore)return;this.page++;const n={timezone_offset:"-480",type:"video",features:"itemOpusStyle",page:this.page};this.offset&&(n.offset=this.offset);const o=(await Rn.get("/x/polymer/web-dynamic/v1/feed/all",{signal:t,params:n})).data;return this.hasMore=o.data.has_more,this.offset=o.data.offset,o.data.items.map(s=>({...s,api:"dynamic",uniqId:s.id_str||crypto.randomUUID()}))}}wt(im,"PAGE_SIZE",15);function Gx({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:i,setUpperRefreshing:a}){const s=nW(),l=HG(()=>({})),[c,u]=m.useState(!0),[d,f]=m.useState([]),[h,v]=m.useState(()=>new es),[g,p]=m.useState(()=>new im),[b,y]=m.useState(()=>new Za),[S,E]=m.useState(()=>new Ya),[C,$]=m.useState(!1),[x,w,O]=yw(()=>Date.now()),[R,A]=m.useState(s),[_,I]=m.useState(()=>new AbortController),[P,T]=m.useState(!1),[N,M]=m.useState(void 0),L=ot(async(z=!1,H)=>{var ne;const W=performance.now();if(C)if(s===R){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",s);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",R,s),_.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),f([]),M(void 0),u(!0),await(r==null?void 0:r());let V=[],j;const K=!!(z&&((ne=l.current[s])!=null&&ne.length)),te=!!(K&&(Hb[s].swr||s==="fav"));T(te);const q=K&&(te||s==="fav"),U=async()=>{try{V=await n(ce);}catch(J){j=J;}},X=t?new es:h;t&&v(X);let oe=g;s==="dynamic"&&(oe=new im,p(oe));let ue=b;s==="watchlater"&&(ue=new Za(H==null?void 0:H.watchlaterKeepOrder),y(ue));let ve=S;s==="fav"&&(K?ve.restore():(ve=new Ya,E(ve)));const re=new AbortController,ae=re.signal;I(re);const ce={tab:s,pcRecService:X,dynamicFeedService:oe,watchLaterService:ue,favService:ve,abortSignal:ae};if(e("refresh(): shouldReuse=%s swr=%s",K,te),K?(V=l.current[s]||[],f(V),q&&await U()):(l.current[s]=[],await U()),ae.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}if(B(!1),j){console.error(j),M(j);return}f(V),Hb[s].swr?l.current[s]=V.slice(0,30):l.current[s]=V,s==="dynamic"&&u(oe.hasMore),s==="dynamic"&&u(oe.hasMore),s==="fav"&&u(ve.hasMore),await(o==null?void 0:o());const Y=performance.now()-W;e("refresh(): [success] cost %s ms",Y.toFixed(0));});return {items:d,itemsCache:l,setItems:f,error:N,refreshedAt:x,setRefreshedAt:w,getRefreshedAt:O,refreshing:C,setRefreshing:$,refreshFor:R,setRefreshFor:A,refreshAbortController:_,setRefreshAbortController:I,hasMore:c,setHasMore:u,swr:P,setSwr:T,pcRecService:h,dynamicFeedService:g,watchLaterService:b,favService:S,setPcRecService:v,setDynamicFeedService:p,setWatchLaterService:y,setFavService:E,refresh:L}}const pa=Xi.extend("components:RecGrid"),Ii={card:Nb({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:Nb("border-color:",Wr,";border-radius:",wx,";overflow:hidden;","")};var FG={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const Xx=m.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:i,setExtraInfo:a},s)=>{const{useNarrowMode:l,styleUseYoutubeLikeCard:c}=In(),u=Es(),[d,f]=m.useState(0),h=ot(async()=>{V(),a==null||a();}),v=ot(()=>{V(),f(1),u==="watchlater"&&(a==null||a(A.usageInfo)),u==="fav"&&(a==null||a(_.usageInfo)),N();}),{refresh:g,items:p,setItems:b,error:y,refreshing:S,refreshedAt:E,getRefreshedAt:C,swr:$,hasMore:x,setHasMore:w,pcRecService:O,dynamicFeedService:R,watchLaterService:A,favService:_}=Gx({tab:u,debug:pa,fetcher:NG,recreateService:!0,preAction:h,postAction:v,onScrollToTop:n,setUpperRefreshing:i});su(g),m.useImperativeHandle(s,()=>({refresh:g}),[]);const I=m.useRef();lo("visibilitychange",re=>{if(!(document.visibilityState==="visible")){I.current=Date.now();return}S||P.current[E]||u==="watchlater"&&I.current&&Date.now()-I.current>ov("1h")&&g(!0,{watchlaterKeepOrder:!0});},{target:document});const P=m.useRef({}),T=ot(async()=>{if(!x||S)return;const re=E;if(P.current[re])return;P.current={[re]:!0};let ae=p,ce=!0;try{if(u==="dynamic")ae=ae.concat(await R.loadMore()||[]),ce=R.hasMore;else if(u==="watchlater")ae=ae.concat(await A.loadMore()||[]),ce=A.hasMore;else if(u==="fav")ae=ae.concat(await _.loadMore()||[]),ce=_.hasMore;else for(;!(ae.length>p.length);){const ne=await kG(u==="onlyFollow"?5:2,u,O);ae=TG(ae,ne);}}catch(Y){throw P.current[re]=!1,Y}if(re!==C()){pa("loadMore: skip update for mismatch refreshedAt, %s != %s",re,C());return}pa("loadMore: seq(%s) len %s -> %s",d+1,p.length,ae.length),w(ce),b(ae),f(Y=>Y+1),P.current[re]=!1,N();}),N=ot(async()=>{await qo(Qh?100:50),pa("checkShouldLoadMore(): footerInView = %s",X.current),X.current&&T();}),M=m.useRef(null),L=ot(()=>{var re;if(e){const ae=lx()+50;return new DOMRect(0,ae,window.innerWidth,window.innerHeight-ae)}else return (re=o==null?void 0:o.current)==null?void 0:re.getBoundingClientRect()}),z=D7(),H=m.useMemo(()=>new Map,[E]),W=m.useMemo(()=>p.map(({uniqId:re})=>H.get(re)||(()=>{const ae=bx();return H.set(re,ae),ae})()),[p]),{activeIndex:B,clearActiveIndex:V}=tG({enabled:t&&!z,refresh:g,maxIndex:p.length-1,containerRef:M,getScrollerRect:L,videoCardEmitters:W,changeScrollY:e?function({offset:re,absolute:ae}){const ce=document.documentElement;if(typeof re=="number"){ce.scrollTop+=re;return}if(typeof ae=="number"){ce.scrollTop=ae;return}}:void 0}),j=ji(),K=ot((re,ae)=>{b(ce=>{const Y=ce.findIndex(J=>J.uniqId===re.uniqId);if(Y===-1)return ce;let ne=ce.slice();return ne.splice(Y,1),gt(`已移除: ${ae.title}`,4e3),u==="watchlater"&&(A.count--,a==null||a(A.usageInfo)),u==="fav"&&(_.total--,a==null||a(_.usageInfo)),ne});}),te=ot((re,ae)=>{b(ce=>{const Y=ce.find(fe=>fe.uniqId===re.uniqId);if(!Y)return ce;const ne=ce.indexOf(Y),J=ce.slice();return J.splice(ne,1),J.unshift(Y),J});}),{ref:q,inView:U}=BG({root:e?null:(o==null?void 0:o.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(re){re&&(pa("footerInView change to visible",re),T());}}),X=Bi(U),oe=D("div",{ref:q,css:FG,children:!S&&D(Ct,{children:x?Ce(Ct,{children:[D(Tt,{name:"Loading",fill:Wr,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),ue=F(`${fn}-video-grid`,fv,c?JK:j?Ix:Ox,l&&eG,r);return !p.length||y||S&&!$?D("div",{className:r0,children:D("div",{className:ue,children:new Array(28).fill(void 0).map((re,ae)=>D(ec,{loading:!0,className:Ii.card},ae))})}):Ce("div",{style:{minHeight:"100%"},className:r0,children:[D("div",{ref:M,className:ue,children:p.map((re,ae)=>{const ce=ae===B;return D(ec,{className:F(Ii.card,{[Ii.cardActive]:ce}),item:re,active:ce,onRemoveCurrent:K,onMoveToFirst:te,emitter:W[ae]},re.uniqId)})}),oe]})}),WG={grid:Yn` /* card=360 col-gap=16 */ width: ${360*2+20}px; margin: 0 auto; `};function VG(){const{useNarrowMode:e}=In(),{modalFeedVisible:t,modalConfigVisible:n}=CU(),r=m.useRef(null),o=m.useRef(null),i=ot((...d)=>{var f;return (f=o.current)==null?void 0:f.refresh(...d)}),a=ot(()=>{var d;return (d=r.current)==null?void 0:d.scroll()}),[s,l]=m.useState(!1),[c,u]=m.useState(null);return Ce("section",{"data-area":"推荐",children:[D(dx,{ref:r,refreshing:s,onRefresh:i,leftSlot:c}),D(Xx,{ref:o,css:[e&&WG.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:a,setRefreshing:l,setExtraInfo:u})]})}const UG=Xi.extend("components:SectionRecommend");function KG(){const e=m.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=ji(),n=Es(),{refreshing:r,items:o,refresh:i,error:a,swr:s}=Gx({tab:n,debug:UG,fetcher:MG,recreateService:!1});su(i);const l=!o.length||a||r&&!s;return Ce("section",{"data-area":"推荐",children:[D(dx,{refreshing:r,onRefresh:i}),D("div",{className:F(fv,QK,t?Ix:Ox),style:{marginBottom:t?30:0},children:l?e.map(c=>D(ec,{},c)):o.map(c=>D(ec,{item:c},c.uniqId))})]})}Go.extend(b7);(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 GG()})();async function GG(){return _a(".adblock-tips"),Ra("html.gray",e=>e.classList.remove("gray")),yt.pureRecommend?qG():XG()}async function XG(){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(ji()&&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 qo(200);}if(!n){console.error(`[${fn}]: init fail`);return}const r=document.createElement("section");n(r),hu(r).render(D(JS,{children:D(KG,{})})),ji()&&_a(".bili-feed4 .header-channel");}async function qG(){var o,i;Qh&&await qo(500),ji()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),_a(".bili-feed4 .header-channel"),Ra(".palette-button-wrap .storage-box",a=>a.classList.remove("hidden")),Ra(".palette-button-wrap .top-btn-wrap .top-btn",a=>a.classList.add("visible")),Ra(".palette-button-wrap",a=>{a.style.position="absolute";})):((i=document.querySelector(".bili-layout"))==null||i.remove(),_a(".bili-footer"),_a(".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(ji()?"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),hu(n).render(D(JS,{children:D(VG,{})}));} })(React, ReactDOM);