bilibili-app-recommend

为 B 站首页添加像 App 一样的推荐

目前為 2023-11-26 提交的版本,檢視 最新版本

// ==UserScript==
// @name         bilibili-app-recommend
// @namespace    https://magicdawn.fun
// @version      0.18.5
// @author       magicdawn
// @description  为 B 站首页添加像 App 一样的推荐
// @license      MIT
// @icon         https://www.bilibili.com/favicon.ico
// @homepageURL  https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend
// @supportURL   https://github.com/magicdawn/bilibili-app-recommend/issues
// @match        https://www.bilibili.com/
// @match        https://www.bilibili.com/?*
// @match        https://www.bilibili.com/index.html
// @match        https://www.bilibili.com/index.html?*
// @require      https://registry.npmmirror.com/axios/0.27.2/files/dist/axios.min.js
// @require      https://registry.npmmirror.com/axios-userscript-adapter/0.2.0/files/dist/axiosGmxhrAdapter.min.js
// @require      https://registry.npmmirror.com/react/18.2.0/files/umd/react.production.min.js
// @require      https://registry.npmmirror.com/react-dom/18.2.0/files/umd/react-dom.production.min.js
// @require      https://registry.npmmirror.com/ua-parser-js/1.0.37/files/dist/ua-parser.min.js
// @connect      app.bilibili.com
// @connect      passport.bilibili.com
// @grant        GM.getValue
// @grant        GM.openInTab
// @grant        GM.setClipboard
// @grant        GM.setValue
// @grant        GM.xmlHttpRequest
// @grant        GM_addStyle
// @grant        unsafeWindow
// ==/UserScript==

(e=>{if(typeof GM_addStyle=="function"){GM_addStyle(e);return}const i=document.createElement("style");i.textContent=e,document.head.append(i)})(" .i-icon{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.i-icon-spin svg{animation:i-icon-spin 1s infinite linear}.i-icon-rtl{transform:scaleX(-1)}@keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px;line-height:24px}.ant-btn:disabled{cursor:wait}.ant-radio-button-wrapper-disabled{cursor:wait}body .ant-tooltip a{color:#1677ff;transition:color .3s}body .ant-tooltip a:visited{color:#1677ff}body .ant-tooltip a:hover{color:#69b1ff}body .ant-tooltip a:active{color:#0958d9}body button:where(.ant-switch):focus,body button:where(.ant-switch):active{background-color:#00000040;outline:unset}._modal-mask_1j5wc_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:10002;display:flex;align-items:center;justify-content:center}._modal_1j5wc_1{width:500px;max-height:calc(90vh - 50px);background-color:#fff;border-radius:10px;padding:0 15px 15px;display:flex;flex-direction:column;overflow:hidden}._modal-header_1j5wc_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1j5wc_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1j5wc_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1j5wc_42{margin-left:10px}._btn-close_1j5wc_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1j5wc_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._modal_1rloz_1{width:500px}._title-desc_1rloz_4{margin-left:5px;font-size:40%}._reason-list_1rloz_8{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_1rloz_8{color:inherit;width:48%;text-align:center;line-height:20px;position:relative;border:1px solid #eee;padding-top:5px;padding-bottom:5px;margin-top:5px;margin-bottom:5px}body.dark ._reason_1rloz_8{border:1px solid #333}._reason_1rloz_8._active_1rloz_29{border-color:#f69;border-radius:4px}._reason-no_1rloz_33{position:absolute;left:6px;width:20px;height:20px;border-radius:50%;top:6px;display:flex;align-items:center;justify-content:center;background-color:#6a5acd;background-color:#f69;color:#fff}._tips-container_1rloz_47{margin-top:20px}._tips_1rloz_47{display:flex;align-items:center}._bili-video-card_90sij_1{position:relative}._preview-card-wrapper_90sij_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_90sij_4 ._preview-card-inner_90sij_17{width:100%;height:100%}._watch-later_90sij_21{z-index:5}._badge_90sij_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_90sij_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_90sij_48{color:default}._btn-dislike_90sij_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_90sij_51 ._btn-dislike-icon_90sij_66{pointer-events:none;-webkit-user-select:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_90sij_51 ._btn-dislike-tip_90sij_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_90sij_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_90sij_88{border:1px solid #333}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102 ._dislike-content-cover-inner_90sij_108{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102 ._dislike-content-cover-inner_90sij_108 ._dislike-icon_90sij_119{margin-bottom:5px}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102 ._dislike-content-cover-inner_90sij_108 ._dislike-reason_90sij_122{font-size:20px;text-align:center}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102 ._dislike-content-cover-inner_90sij_108 ._dislike-desc_90sij_126{font-size:16px;text-align:center}._disliked-wrapper_90sij_88 ._dislike-content-action_90sij_130{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_90sij_88 ._dislike-content-action_90sij_130{border-top:1px solid #333}._disliked-wrapper_90sij_88 ._dislike-content-action_90sij_130 button{font-size:16px;color:inherit;display:flex;align-items:center}body .bili-video-card__skeleton--cover,body .bili-video-card__skeleton--text,body .bili-video-card__skeleton--light,body .bili-video-card__skeleton--avatar{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%)}body.dark .bili-video-card__skeleton--avatar{background-color:#444}._skeleton-active_90sij_156 .bili-video-card__skeleton--cover,._skeleton-active_90sij_156 .bili-video-card__skeleton--text,._skeleton-active_90sij_156 .bili-video-card__skeleton--light,._skeleton-active_90sij_156 .bili-video-card__skeleton--avatar{background-size:400% 100%;animation-name:_ant-skeleton-loading_90sij_1;animation-duration:2.165s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_90sij_1{0%{background-position:100% 50%}61.8%,to{background-position:0 50%}}._video-grid_a30b7_8{--video-card-border-radius: 6px;display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid-new-homepage_a30b7_16{grid-template-columns:repeat(4,1fr)}._video-grid-new-homepage_a30b7_16._limit-two-lines_a30b7_19>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid-new-homepage_a30b7_16{grid-template-columns:repeat(5,1fr)}._video-grid-new-homepage_a30b7_16._limit-two-lines_a30b7_19>*:nth-of-type(n+11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid-new-homepage_a30b7_16{grid-template-columns:repeat(6,1fr)}._video-grid-new-homepage_a30b7_16._limit-two-lines_a30b7_19>*:nth-of-type(n+13){display:none!important}}@media (min-width: 2200px){._video-grid-new-homepage_a30b7_16{grid-template-columns:repeat(7,1fr)}._video-grid-new-homepage_a30b7_16._limit-two-lines_a30b7_19>*:nth-of-type(n+15){display:none!important}}._video-grid-internal-testing_a30b7_51{grid-gap:20px 20px}@media (max-width: 1399px){._video-grid-internal-testing_a30b7_51{grid-template-columns:repeat(4,1fr)}._video-grid-internal-testing_a30b7_51._limit-one-line_a30b7_58>*:nth-of-type(n+5){display:none!important}._video-grid-internal-testing_a30b7_51._limit-two-lines_a30b7_19>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1400px){._video-grid-internal-testing_a30b7_51{grid-template-columns:repeat(5,1fr)}._video-grid-internal-testing_a30b7_51._limit-one-line_a30b7_58>*:nth-of-type(n+6){display:none!important}._video-grid-internal-testing_a30b7_51._limit-two-lines_a30b7_19>*:nth-of-type(n+11){display:none!important}}._video-grid-container_a30b7_79{container-name:video-grid-container;container-type:inline-size}._video-grid-fancy_a30b7_83{--video-card-border-radius: 15px;grid-gap:50px 20px;grid-template-columns:repeat(5,1fr)}@container video-grid-container (width >= 616px){._video-grid-fancy_a30b7_83{grid-template-columns:repeat(2,1fr)}}@container video-grid-container (width >= 932px){._video-grid-fancy_a30b7_83{grid-template-columns:repeat(3,1fr)}}@container video-grid-container (width >= 1248px){._video-grid-fancy_a30b7_83{grid-template-columns:repeat(4,1fr)}}@container video-grid-container (width >= 1564px){._video-grid-fancy_a30b7_83{grid-template-columns:repeat(5,1fr)}}._narrow-mode_a30b7_111{grid-template-columns:repeat(2,1fr)!important}._config-icon_1xtyf_1{line-height:1;margin-right:5px;font-size:0}._settings-group_1xtyf_6{margin-bottom:10px}._settings-group_1xtyf_6 ._settings-group-title_1xtyf_9{font-size:2em;display:flex;align-items:center}._settings-group_1xtyf_6 ._settings-group-sub-title_1xtyf_14{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20{color:default}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20 button:first-child{margin-left:0}._row_1xtyf_26{display:flex;align-items:center;flex-wrap:wrap}._row_1xtyf_26 .primary-btn:first-child{margin-left:0}._check_1xtyf_34{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_1xtyf_39.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_1xtyf_42{min-height:min(360px,calc(90vh - 121px));max-height:calc(90vh - 121px);overflow-y:scroll}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._modal-mask_7bwzz_1._narrow-mode_7bwzz_1{background-color:#000000e6}._modal_7bwzz_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}._modal_7bwzz_1._narrow-mode_7bwzz_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_7bwzz_1._narrow-mode_7bwzz_1{border:none}._modal-header_7bwzz_18,._modal-body_7bwzz_19{padding-right:15px}body.dark ._btn-refresh_7bwzz_22{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px} ");

(async function (m, $g, OP, IC, TP, _P) {
  '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 IC__namespace = /*#__PURE__*/_interopNamespaceDefault(IC);

  var CP=Object.defineProperty;var SP=(e,t,n)=>t in e?CP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var At=(e,t,n)=>(SP(e,typeof t!="symbol"?t+"":t,n),n),Sf=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ut=(e,t,n)=>(Sf(e,t,"read from private field"),n?n.call(e):t.get(e)),Vn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n);},Rn=(e,t,n,r)=>(Sf(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var $f=(e,t,n,r)=>({set _(o){Rn(e,t,o,n);},get _(){return ut(e,t,r)}}),en=(e,t,n)=>(Sf(e,t,"access private method"),n);var qa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function NP(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 OC={exports:{}},Fu={};/**
   * @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 kP=m,AP=Symbol.for("react.element"),LP=Symbol.for("react.fragment"),DP=Object.prototype.hasOwnProperty,FP=kP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,zP={key:!0,ref:!0,__self:!0,__source:!0};function MC(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)DP.call(t,r)&&!zP.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:AP,type:e,key:a,ref:i,props:o,_owner:FP.current}}Fu.Fragment=LP;Fu.jsx=MC;Fu.jsxs=MC;OC.exports=Fu;var Ls=OC.exports;function jP(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 BP(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 HP=function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),r.tags.push(o);},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag);},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(BP(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=jP(o);try{a.insertRule(r,a.cssRules.length);}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++;},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0;},e}(),Tn="-ms-",Hc="-moz-",Lt="-webkit-",RC="comm",wg="rule",xg="decl",VP="@import",TC="@keyframes",WP="@layer",GP=Math.abs,zu=String.fromCharCode,KP=Object.assign;function UP(e,t){return En(e,0)^45?(((t<<2^En(e,0))<<2^En(e,1))<<2^En(e,2))<<2^En(e,3):0}function _C(e){return e.trim()}function XP(e,t){return (e=t.exec(e))?e[0]:e}function Dt(e,t,n){return e.replace(t,n)}function _m(e,t){return e.indexOf(t)}function En(e,t){return e.charCodeAt(t)|0}function Ds(e,t,n){return e.slice(t,n)}function qr(e){return e.length}function Eg(e){return e.length}function Zl(e,t){return t.push(e),e}function qP(e,t){return e.map(t).join("")}var ju=1,di=1,NC=0,Zn=0,mn=0,Ti="";function Bu(e,t,n,r,o,a,i){return {value:e,root:t,parent:n,type:r,props:o,children:a,line:ju,column:di,length:i,return:""}}function es(e,t){return KP(Bu("",null,null,"",null,null,0),e,{length:-e.length},t)}function YP(){return mn}function ZP(){return mn=Zn>0?En(Ti,--Zn):0,di--,mn===10&&(di=1,ju--),mn}function sr(){return mn=Zn<NC?En(Ti,Zn++):0,di++,mn===10&&(di=1,ju++),mn}function Qr(){return En(Ti,Zn)}function $c(){return Zn}function ll(e,t){return Ds(Ti,e,t)}function Fs(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 kC(e){return ju=di=1,NC=qr(Ti=e),Zn=0,[]}function AC(e){return Ti="",e}function wc(e){return _C(ll(Zn-1,Nm(e===91?e+2:e===40?e+1:e)))}function QP(e){for(;(mn=Qr())&&mn<33;)sr();return Fs(e)>2||Fs(mn)>3?"":" "}function JP(e,t){for(;--t&&sr()&&!(mn<48||mn>102||mn>57&&mn<65||mn>70&&mn<97););return ll(e,$c()+(t<6&&Qr()==32&&sr()==32))}function Nm(e){for(;sr();)switch(mn){case e:return Zn;case 34:case 39:e!==34&&e!==39&&Nm(mn);break;case 40:e===41&&Nm(e);break;case 92:sr();break}return Zn}function eO(e,t){for(;sr()&&e+mn!==57;)if(e+mn===84&&Qr()===47)break;return "/*"+ll(t,Zn-1)+"*"+zu(e===47?e:sr())}function tO(e){for(;!Fs(Qr());)sr();return ll(e,Zn)}function LC(e){return AC(xc("",null,null,null,[""],e=kC(e),0,[0],e))}function xc(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,f=0,h=0,g=0,v=1,p=1,b=1,y=0,C="",$=o,w=a,E=r,S=C;p;)switch(g=y,y=sr()){case 40:if(g!=108&&En(S,d-1)==58){_m(S+=Dt(wc(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:S+=wc(y);break;case 9:case 10:case 13:case 32:S+=QP(g);break;case 92:S+=JP($c()-1,7);continue;case 47:switch(Qr()){case 42:case 47:Zl(nO(eO(sr(),$c()),t,n),l);break;default:S+="/";}break;case 123*v:s[c++]=qr(S)*b;case 125*v:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(S=Dt(S,/\f/g,"")),h>0&&qr(S)-d&&Zl(h>32?i0(S+";",r,n,d-1):i0(Dt(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Zl(E=a0(S,t,n,c,u,o,s,C,$=[],w=[],d),a),y===123)if(u===0)xc(S,t,E,E,$,a,d,s,w);else switch(f===99&&En(S,3)===110?100:f){case 100:case 108:case 109:case 115:xc(e,E,E,r&&Zl(a0(e,E,E,0,0,o,s,C,o,$=[],d),w),o,w,d,s,r?$:w);break;default:xc(S,E,E,E,[""],w,0,s,w);}}c=u=h=0,v=b=1,C=S="",d=i;break;case 58:d=1+qr(S),h=g;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&ZP()==125)continue}switch(S+=zu(y),y*v){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(qr(S)-1)*b,b=1;break;case 64:Qr()===45&&(S+=wc(sr())),f=Qr(),u=d=qr(C=S+=tO($c())),y++;break;case 45:g===45&&qr(S)==2&&(v=0);}}return a}function a0(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,f=o===0?a:[""],h=Eg(f),g=0,v=0,p=0;g<r;++g)for(var b=0,y=Ds(e,d+1,d=GP(v=i[g])),C=e;b<h;++b)(C=_C(v>0?f[b]+" "+y:Dt(y,/&\f/g,f[b])))&&(l[p++]=C);return Bu(e,t,n,o===0?wg:s,l,c,u)}function nO(e,t,n){return Bu(e,t,n,RC,zu(YP()),Ds(e,2,-2),0)}function i0(e,t,n,r){return Bu(e,t,n,xg,Ds(e,0,r),Ds(e,r+1,-1),r)}function oa(e,t){for(var n="",r=Eg(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function DC(e,t,n,r){switch(e.type){case WP:if(e.children.length)break;case VP:case xg:return e.return=e.return||e.value;case RC:return "";case TC:return e.return=e.value+"{"+oa(e.children,r)+"}";case wg:e.value=e.props.join(",");}return qr(n=oa(e.children,r))?e.return=e.value+"{"+n+"}":""}function rO(e){var t=Eg(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}function oO(e){return function(t){t.root||(t=t.return)&&e(t);}}function aO(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var iO=function(t,n,r){for(var o=0,a=0;o=a,a=Qr(),o===38&&a===12&&(n[r]=1),!Fs(a);)sr();return ll(t,Zn)},sO=function(t,n){var r=-1,o=44;do switch(Fs(o)){case 0:o===38&&Qr()===12&&(n[r]=1),t[r]+=iO(Zn-1,n,r);break;case 2:t[r]+=wc(o);break;case 4:if(o===44){t[++r]=Qr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=zu(o);}while(o=sr());return t},lO=function(t,n){return AC(sO(kC(t),n))},s0=new WeakMap,cO=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&&!s0.get(r))&&!o){s0.set(t,!0);for(var a=[],i=lO(n,a),s=r.props,l=0,c=0;l<i.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=a[l]?i[l].replace(/&\f/g,s[u]):s[u]+" "+i[l];}}},uO=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function FC(e,t){switch(UP(e,t)){case 5103:return Lt+"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 Lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Lt+e+Hc+e+Tn+e+e;case 6828:case 4268:return Lt+e+Tn+e+e;case 6165:return Lt+e+Tn+"flex-"+e+e;case 5187:return Lt+e+Dt(e,/(\w+).+(:[^]+)/,Lt+"box-$1$2"+Tn+"flex-$1$2")+e;case 5443:return Lt+e+Tn+"flex-item-"+Dt(e,/flex-|-self/,"")+e;case 4675:return Lt+e+Tn+"flex-line-pack"+Dt(e,/align-content|flex-|-self/,"")+e;case 5548:return Lt+e+Tn+Dt(e,"shrink","negative")+e;case 5292:return Lt+e+Tn+Dt(e,"basis","preferred-size")+e;case 6060:return Lt+"box-"+Dt(e,"-grow","")+Lt+e+Tn+Dt(e,"grow","positive")+e;case 4554:return Lt+Dt(e,/([^-])(transform)/g,"$1"+Lt+"$2")+e;case 6187:return Dt(Dt(Dt(e,/(zoom-|grab)/,Lt+"$1"),/(image-set)/,Lt+"$1"),e,"")+e;case 5495:case 3959:return Dt(e,/(image-set\([^]*)/,Lt+"$1$`$1");case 4968:return Dt(Dt(e,/(.+:)(flex-)?(.*)/,Lt+"box-pack:$3"+Tn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Lt+e+e;case 4095:case 3583:case 4068:case 2532:return Dt(e,/(.+)-inline(.+)/,Lt+"$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(qr(e)-1-t>6)switch(En(e,t+1)){case 109:if(En(e,t+4)!==45)break;case 102:return Dt(e,/(.+:)(.+)-([^]+)/,"$1"+Lt+"$2-$3$1"+Hc+(En(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~_m(e,"stretch")?FC(Dt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(En(e,t+1)!==115)break;case 6444:switch(En(e,qr(e)-3-(~_m(e,"!important")&&10))){case 107:return Dt(e,":",":"+Lt)+e;case 101:return Dt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Lt+(En(e,14)===45?"inline-":"")+"box$3$1"+Lt+"$2$3$1"+Tn+"$2box$3")+e}break;case 5936:switch(En(e,t+11)){case 114:return Lt+e+Tn+Dt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Lt+e+Tn+Dt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Lt+e+Tn+Dt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Lt+e+Tn+e+e}return e}var dO=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case xg:t.return=FC(t.value,t.length);break;case TC:return oa([es(t,{value:Dt(t.value,"@","@"+Lt)})],o);case wg:if(t.length)return qP(t.props,function(a){switch(XP(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oa([es(t,{props:[Dt(a,/:(read-\w+)/,":"+Hc+"$1")]})],o);case"::placeholder":return oa([es(t,{props:[Dt(a,/:(plac\w+)/,":"+Lt+"input-$1")]}),es(t,{props:[Dt(a,/:(plac\w+)/,":"+Hc+"$1")]}),es(t,{props:[Dt(a,/:(plac\w+)/,Tn+"input-$1")]})],o)}return ""})}},fO=[dO],zC=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var p=v.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""));});}var o=t.stylisPlugins||fO,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var p=v.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)a[p[b]]=!0;s.push(v);});var l,c=[cO,uO];{var u,d=[DC,oO(function(v){u.insert(v);})],f=rO(c.concat(o,d)),h=function(p){return oa(LC(p),f)};l=function(p,b,y,C){u=y,h(p?p+"{"+b.styles+"}":b.styles),C&&(g.inserted[b.name]=!0);};}var g={key:n,sheet:new HP({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return g.sheet.hydrate(s),g},jC={exports:{}},jt={};/** @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 $n=typeof Symbol=="function"&&Symbol.for,Ig=$n?Symbol.for("react.element"):60103,Pg=$n?Symbol.for("react.portal"):60106,Hu=$n?Symbol.for("react.fragment"):60107,Vu=$n?Symbol.for("react.strict_mode"):60108,Wu=$n?Symbol.for("react.profiler"):60114,Gu=$n?Symbol.for("react.provider"):60109,Ku=$n?Symbol.for("react.context"):60110,Og=$n?Symbol.for("react.async_mode"):60111,Uu=$n?Symbol.for("react.concurrent_mode"):60111,Xu=$n?Symbol.for("react.forward_ref"):60112,qu=$n?Symbol.for("react.suspense"):60113,mO=$n?Symbol.for("react.suspense_list"):60120,Yu=$n?Symbol.for("react.memo"):60115,Zu=$n?Symbol.for("react.lazy"):60116,hO=$n?Symbol.for("react.block"):60121,gO=$n?Symbol.for("react.fundamental"):60117,vO=$n?Symbol.for("react.responder"):60118,pO=$n?Symbol.for("react.scope"):60119;function mr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ig:switch(e=e.type,e){case Og:case Uu:case Hu:case Wu:case Vu:case qu:return e;default:switch(e=e&&e.$$typeof,e){case Ku:case Xu:case Zu:case Yu:case Gu:return e;default:return t}}case Pg:return t}}}function BC(e){return mr(e)===Uu}jt.AsyncMode=Og;jt.ConcurrentMode=Uu;jt.ContextConsumer=Ku;jt.ContextProvider=Gu;jt.Element=Ig;jt.ForwardRef=Xu;jt.Fragment=Hu;jt.Lazy=Zu;jt.Memo=Yu;jt.Portal=Pg;jt.Profiler=Wu;jt.StrictMode=Vu;jt.Suspense=qu;jt.isAsyncMode=function(e){return BC(e)||mr(e)===Og};jt.isConcurrentMode=BC;jt.isContextConsumer=function(e){return mr(e)===Ku};jt.isContextProvider=function(e){return mr(e)===Gu};jt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ig};jt.isForwardRef=function(e){return mr(e)===Xu};jt.isFragment=function(e){return mr(e)===Hu};jt.isLazy=function(e){return mr(e)===Zu};jt.isMemo=function(e){return mr(e)===Yu};jt.isPortal=function(e){return mr(e)===Pg};jt.isProfiler=function(e){return mr(e)===Wu};jt.isStrictMode=function(e){return mr(e)===Vu};jt.isSuspense=function(e){return mr(e)===qu};jt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hu||e===Uu||e===Wu||e===Vu||e===qu||e===mO||typeof e=="object"&&e!==null&&(e.$$typeof===Zu||e.$$typeof===Yu||e.$$typeof===Gu||e.$$typeof===Ku||e.$$typeof===Xu||e.$$typeof===gO||e.$$typeof===vO||e.$$typeof===pO||e.$$typeof===hO)};jt.typeOf=mr;jC.exports=jt;var bO=jC.exports,HC=bO,yO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},CO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},VC={};VC[HC.ForwardRef]=yO;VC[HC.Memo]=CO;var SO=!0;function Mg(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var WC=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||SO===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},Rg=function(t,n,r){WC(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function $O(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 wO={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},xO=/[A-Z]|^ms/g,EO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,GC=function(t){return t.charCodeAt(1)===45},l0=function(t){return t!=null&&typeof t!="boolean"},wf=aO(function(e){return GC(e)?e:e.replace(xO,"-$&").toLowerCase()}),c0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(EO,function(r,o,a){return Yr={name:o,styles:a,next:Yr},o})}return wO[t]!==1&&!GC(t)&&typeof n=="number"&&n!==0?n+"px":n};function zs(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 Yr={name:n.name,styles:n.styles,next:Yr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Yr={name:r.name,styles:r.styles,next:Yr},r=r.next;var o=n.styles+";";return o}return IO(e,t,n)}case"function":{if(e!==void 0){var a=Yr,i=n(e);return Yr=a,zs(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function IO(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=zs(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":l0(i)&&(r+=wf(a)+":"+c0(a,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)l0(i[s])&&(r+=wf(a)+":"+c0(a,i[s])+";");else {var l=zs(e,t,i);switch(a){case"animation":case"animationName":{r+=wf(a)+":"+l+";";break}default:r+=a+"{"+l+"}";}}}return r}var u0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Yr,oi=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,a="";Yr=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,a+=zs(r,n,i)):a+=i[0];for(var s=1;s<t.length;s++)a+=zs(r,n,t[s]),o&&(a+=i[s]);u0.lastIndex=0;for(var l="",c;(c=u0.exec(a))!==null;)l+="-"+c[1];var u=$O(a)+l;return {name:u,styles:a,next:Yr}},PO=function(t){return t()},KC=m__namespace.useInsertionEffect?m__namespace.useInsertionEffect:!1,OO=KC||PO,d0=KC||m__namespace.useLayoutEffect,Qu={}.hasOwnProperty,UC=m__namespace.createContext(typeof HTMLElement<"u"?zC({key:"css"}):null);UC.Provider;var XC=function(t){return m.forwardRef(function(n,r){var o=m.useContext(UC);return t(n,o,r)})},qC=m__namespace.createContext({}),km="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",YC=function(t,n){var r={};for(var o in n)Qu.call(n,o)&&(r[o]=n[o]);return r[km]=t,r},MO=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return WC(n,r,o),OO(function(){return Rg(n,r,o)}),null},RO=XC(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[km],a=[r],i="";typeof e.className=="string"?i=Mg(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=oi(a,void 0,m__namespace.useContext(qC));i+=t.key+"-"+s.name;var l={};for(var c in e)Qu.call(e,c)&&c!=="css"&&c!==km&&(l[c]=e[c]);return l.ref=n,l.className=i,m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(MO,{cache:t,serialized:s,isStringTag:typeof o=="string"}),m__namespace.createElement(o,l))}),ZC=RO,Rt=Ls.Fragment;function D(e,t,n){return Qu.call(t,"css")?Ls.jsx(ZC,YC(e,t),n):Ls.jsx(e,t,n)}function ve(e,t,n){return Qu.call(t,"css")?Ls.jsxs(ZC,YC(e,t),n):Ls.jsxs(e,t,n)}function TO(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Tg=TO;function _O(){this.__data__=[],this.size=0;}var NO=_O;function kO(e,t){return e===t||e!==e&&t!==t}var _g=kO,AO=_g;function LO(e,t){for(var n=e.length;n--;)if(AO(e[n][0],t))return n;return -1}var Ju=LO,DO=Ju,FO=Array.prototype,zO=FO.splice;function jO(e){var t=this.__data__,n=DO(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():zO.call(t,n,1),--this.size,!0}var BO=jO,HO=Ju;function VO(e){var t=this.__data__,n=HO(t,e);return n<0?void 0:t[n][1]}var WO=VO,GO=Ju;function KO(e){return GO(this.__data__,e)>-1}var UO=KO,XO=Ju;function qO(e,t){var n=this.__data__,r=XO(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var YO=qO,ZO=NO,QO=BO,JO=WO,eM=UO,tM=YO;function _i(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]);}}_i.prototype.clear=ZO;_i.prototype.delete=QO;_i.prototype.get=JO;_i.prototype.has=eM;_i.prototype.set=tM;var ed=_i,nM=ed;function rM(){this.__data__=new nM,this.size=0;}var oM=rM;function aM(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var iM=aM;function sM(e){return this.__data__.get(e)}var lM=sM;function cM(e){return this.__data__.has(e)}var uM=cM,dM=typeof qa=="object"&&qa&&qa.Object===Object&&qa,QC=dM,fM=QC,mM=typeof self=="object"&&self&&self.Object===Object&&self,hM=fM||mM||Function("return this")(),jr=hM,gM=jr,vM=gM.Symbol,Ni=vM,f0=Ni,JC=Object.prototype,pM=JC.hasOwnProperty,bM=JC.toString,ts=f0?f0.toStringTag:void 0;function yM(e){var t=pM.call(e,ts),n=e[ts];try{e[ts]=void 0;var r=!0;}catch{}var o=bM.call(e);return r&&(t?e[ts]=n:delete e[ts]),o}var CM=yM,SM=Object.prototype,$M=SM.toString;function wM(e){return $M.call(e)}var xM=wM,m0=Ni,EM=CM,IM=xM,PM="[object Null]",OM="[object Undefined]",h0=m0?m0.toStringTag:void 0;function MM(e){return e==null?e===void 0?OM:PM:h0&&h0 in Object(e)?EM(e):IM(e)}var ki=MM;function RM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ro=RM,TM=ki,_M=ro,NM="[object AsyncFunction]",kM="[object Function]",AM="[object GeneratorFunction]",LM="[object Proxy]";function DM(e){if(!_M(e))return !1;var t=TM(e);return t==kM||t==AM||t==NM||t==LM}var eS=DM,FM=jr,zM=FM["__core-js_shared__"],jM=zM,xf=jM,g0=function(){var e=/[^.]+$/.exec(xf&&xf.keys&&xf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function BM(e){return !!g0&&g0 in e}var HM=BM,VM=Function.prototype,WM=VM.toString;function KM(e){if(e!=null){try{return WM.call(e)}catch{}try{return e+""}catch{}}return ""}var tS=KM,UM=eS,XM=HM,qM=ro,YM=tS,ZM=/[\\^$.*+?()[\]{}|]/g,QM=/^\[object .+?Constructor\]$/,JM=Function.prototype,eR=Object.prototype,tR=JM.toString,nR=eR.hasOwnProperty,rR=RegExp("^"+tR.call(nR).replace(ZM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oR(e){if(!qM(e)||XM(e))return !1;var t=UM(e)?rR:QM;return t.test(YM(e))}var aR=oR;function iR(e,t){return e==null?void 0:e[t]}var sR=iR,lR=aR,cR=sR;function uR(e,t){var n=cR(e,t);return lR(n)?n:void 0}var ba=uR,dR=ba,fR=jr,mR=dR(fR,"Map"),Ng=mR,hR=ba,gR=hR(Object,"create"),td=gR,v0=td;function vR(){this.__data__=v0?v0(null):{},this.size=0;}var pR=vR;function bR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var yR=bR,CR=td,SR="__lodash_hash_undefined__",$R=Object.prototype,wR=$R.hasOwnProperty;function xR(e){var t=this.__data__;if(CR){var n=t[e];return n===SR?void 0:n}return wR.call(t,e)?t[e]:void 0}var ER=xR,IR=td,PR=Object.prototype,OR=PR.hasOwnProperty;function MR(e){var t=this.__data__;return IR?t[e]!==void 0:OR.call(t,e)}var RR=MR,TR=td,_R="__lodash_hash_undefined__";function NR(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=TR&&t===void 0?_R:t,this}var kR=NR,AR=pR,LR=yR,DR=ER,FR=RR,zR=kR;function Ai(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]);}}Ai.prototype.clear=AR;Ai.prototype.delete=LR;Ai.prototype.get=DR;Ai.prototype.has=FR;Ai.prototype.set=zR;var jR=Ai,p0=jR,BR=ed,HR=Ng;function VR(){this.size=0,this.__data__={hash:new p0,map:new(HR||BR),string:new p0};}var WR=VR;function GR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var KR=GR,UR=KR;function XR(e,t){var n=e.__data__;return UR(t)?n[typeof t=="string"?"string":"hash"]:n.map}var nd=XR,qR=nd;function YR(e){var t=qR(this,e).delete(e);return this.size-=t?1:0,t}var ZR=YR,QR=nd;function JR(e){return QR(this,e).get(e)}var eT=JR,tT=nd;function nT(e){return tT(this,e).has(e)}var rT=nT,oT=nd;function aT(e,t){var n=oT(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var iT=aT,sT=WR,lT=ZR,cT=eT,uT=rT,dT=iT;function Li(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]);}}Li.prototype.clear=sT;Li.prototype.delete=lT;Li.prototype.get=cT;Li.prototype.has=uT;Li.prototype.set=dT;var kg=Li,fT=ed,mT=Ng,hT=kg,gT=200;function vT(e,t){var n=this.__data__;if(n instanceof fT){var r=n.__data__;if(!mT||r.length<gT-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new hT(r);}return n.set(e,t),this.size=n.size,this}var pT=vT,bT=ed,yT=oM,CT=iM,ST=lM,$T=uM,wT=pT;function Di(e){var t=this.__data__=new bT(e);this.size=t.size;}Di.prototype.clear=yT;Di.prototype.delete=CT;Di.prototype.get=ST;Di.prototype.has=$T;Di.prototype.set=wT;var Ag=Di;function xT(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var ET=xT,IT=ba,PT=function(){try{var e=IT(Object,"defineProperty");return e({},"",{}),e}catch{}}(),nS=PT,b0=nS;function OT(e,t,n){t=="__proto__"&&b0?b0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}var rS=OT,MT=rS,RT=_g,TT=Object.prototype,_T=TT.hasOwnProperty;function NT(e,t,n){var r=e[t];(!(_T.call(e,t)&&RT(r,n))||n===void 0&&!(t in e))&&MT(e,t,n);}var Lg=NT,kT=Lg,AT=rS;function LT(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?AT(n,s,l):kT(n,s,l);}return n}var cl=LT;function DT(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var FT=DT;function zT(e){return e!=null&&typeof e=="object"}var Fo=zT,jT=ki,BT=Fo,HT="[object Arguments]";function VT(e){return BT(e)&&jT(e)==HT}var WT=VT,y0=WT,GT=Fo,oS=Object.prototype,KT=oS.hasOwnProperty,UT=oS.propertyIsEnumerable,XT=y0(function(){return arguments}())?y0:function(e){return GT(e)&&KT.call(e,"callee")&&!UT.call(e,"callee")},Dg=XT,qT=Array.isArray,Br=qT,Vc={exports:{}};function YT(){return !1}var ZT=YT;Vc.exports;(function(e,t){var n=jr,r=ZT,o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c;})(Vc,Vc.exports);var Fg=Vc.exports,QT=9007199254740991,JT=/^(?:0|[1-9]\d*)$/;function e_(e,t){var n=typeof e;return t=t??QT,!!t&&(n=="number"||n!="symbol"&&JT.test(e))&&e>-1&&e%1==0&&e<t}var zg=e_,t_=9007199254740991;function n_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t_}var jg=n_,r_=ki,o_=jg,a_=Fo,i_="[object Arguments]",s_="[object Array]",l_="[object Boolean]",c_="[object Date]",u_="[object Error]",d_="[object Function]",f_="[object Map]",m_="[object Number]",h_="[object Object]",g_="[object RegExp]",v_="[object Set]",p_="[object String]",b_="[object WeakMap]",y_="[object ArrayBuffer]",C_="[object DataView]",S_="[object Float32Array]",$_="[object Float64Array]",w_="[object Int8Array]",x_="[object Int16Array]",E_="[object Int32Array]",I_="[object Uint8Array]",P_="[object Uint8ClampedArray]",O_="[object Uint16Array]",M_="[object Uint32Array]",Yt={};Yt[S_]=Yt[$_]=Yt[w_]=Yt[x_]=Yt[E_]=Yt[I_]=Yt[P_]=Yt[O_]=Yt[M_]=!0;Yt[i_]=Yt[s_]=Yt[y_]=Yt[l_]=Yt[C_]=Yt[c_]=Yt[u_]=Yt[d_]=Yt[f_]=Yt[m_]=Yt[h_]=Yt[g_]=Yt[v_]=Yt[p_]=Yt[b_]=!1;function R_(e){return a_(e)&&o_(e.length)&&!!Yt[r_(e)]}var T_=R_;function __(e){return function(t){return e(t)}}var Bg=__,Wc={exports:{}};Wc.exports;(function(e,t){var n=QC,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s;})(Wc,Wc.exports);var Hg=Wc.exports,N_=T_,k_=Bg,C0=Hg,S0=C0&&C0.isTypedArray,A_=S0?k_(S0):N_,aS=A_,L_=FT,D_=Dg,F_=Br,z_=Fg,j_=zg,B_=aS,H_=Object.prototype,V_=H_.hasOwnProperty;function W_(e,t){var n=F_(e),r=!n&&D_(e),o=!n&&!r&&z_(e),a=!n&&!r&&!o&&B_(e),i=n||r||o||a,s=i?L_(e.length,String):[],l=s.length;for(var c in e)(t||V_.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||j_(c,l)))&&s.push(c);return s}var iS=W_,G_=Object.prototype;function K_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||G_;return e===n}var Vg=K_;function U_(e,t){return function(n){return e(t(n))}}var sS=U_,X_=sS,q_=X_(Object.keys,Object),Y_=q_,Z_=Vg,Q_=Y_,J_=Object.prototype,eN=J_.hasOwnProperty;function tN(e){if(!Z_(e))return Q_(e);var t=[];for(var n in Object(e))eN.call(e,n)&&n!="constructor"&&t.push(n);return t}var nN=tN,rN=eS,oN=jg;function aN(e){return e!=null&&oN(e.length)&&!rN(e)}var lS=aN,iN=iS,sN=nN,lN=lS;function cN(e){return lN(e)?iN(e):sN(e)}var ul=cN,uN=cl,dN=ul;function fN(e,t){return e&&uN(t,dN(t),e)}var mN=fN;function hN(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var gN=hN,vN=ro,pN=Vg,bN=gN,yN=Object.prototype,CN=yN.hasOwnProperty;function SN(e){if(!vN(e))return bN(e);var t=pN(e),n=[];for(var r in e)r=="constructor"&&(t||!CN.call(e,r))||n.push(r);return n}var $N=SN,wN=iS,xN=$N,EN=lS;function IN(e){return EN(e)?wN(e,!0):xN(e)}var Wg=IN,PN=cl,ON=Wg;function MN(e,t){return e&&PN(t,ON(t),e)}var RN=MN,Gc={exports:{}};Gc.exports;(function(e,t){var n=jr,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l;})(Gc,Gc.exports);var TN=Gc.exports;function _N(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var cS=_N;function NN(e,t){for(var n=-1,r=e==null?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i);}return a}var kN=NN;function AN(){return []}var uS=AN,LN=kN,DN=uS,FN=Object.prototype,zN=FN.propertyIsEnumerable,$0=Object.getOwnPropertySymbols,jN=$0?function(e){return e==null?[]:(e=Object(e),LN($0(e),function(t){return zN.call(e,t)}))}:DN,Gg=jN,BN=cl,HN=Gg;function VN(e,t){return BN(e,HN(e),t)}var WN=VN;function GN(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Kg=GN,KN=sS,UN=KN(Object.getPrototypeOf,Object),Ug=UN,XN=Kg,qN=Ug,YN=Gg,ZN=uS,QN=Object.getOwnPropertySymbols,JN=QN?function(e){for(var t=[];e;)XN(t,YN(e)),e=qN(e);return t}:ZN,dS=JN,ek=cl,tk=dS;function nk(e,t){return ek(e,tk(e),t)}var rk=nk,ok=Kg,ak=Br;function ik(e,t,n){var r=t(e);return ak(e)?r:ok(r,n(e))}var fS=ik,sk=fS,lk=Gg,ck=ul;function uk(e){return sk(e,ck,lk)}var mS=uk,dk=fS,fk=dS,mk=Wg;function hk(e){return dk(e,mk,fk)}var hS=hk,gk=ba,vk=jr,pk=gk(vk,"DataView"),bk=pk,yk=ba,Ck=jr,Sk=yk(Ck,"Promise"),$k=Sk,wk=ba,xk=jr,Ek=wk(xk,"Set"),gS=Ek,Ik=ba,Pk=jr,Ok=Ik(Pk,"WeakMap"),Mk=Ok,Am=bk,Lm=Ng,Dm=$k,Fm=gS,zm=Mk,vS=ki,Fi=tS,w0="[object Map]",Rk="[object Object]",x0="[object Promise]",E0="[object Set]",I0="[object WeakMap]",P0="[object DataView]",Tk=Fi(Am),_k=Fi(Lm),Nk=Fi(Dm),kk=Fi(Fm),Ak=Fi(zm),Wo=vS;(Am&&Wo(new Am(new ArrayBuffer(1)))!=P0||Lm&&Wo(new Lm)!=w0||Dm&&Wo(Dm.resolve())!=x0||Fm&&Wo(new Fm)!=E0||zm&&Wo(new zm)!=I0)&&(Wo=function(e){var t=vS(e),n=t==Rk?e.constructor:void 0,r=n?Fi(n):"";if(r)switch(r){case Tk:return P0;case _k:return w0;case Nk:return x0;case kk:return E0;case Ak:return I0}return t});var rd=Wo,Lk=Object.prototype,Dk=Lk.hasOwnProperty;function Fk(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Dk.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var zk=Fk,jk=jr,Bk=jk.Uint8Array,pS=Bk,O0=pS;function Hk(e){var t=new e.constructor(e.byteLength);return new O0(t).set(new O0(e)),t}var Xg=Hk,Vk=Xg;function Wk(e,t){var n=t?Vk(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Gk=Wk,Kk=/\w*$/;function Uk(e){var t=new e.constructor(e.source,Kk.exec(e));return t.lastIndex=e.lastIndex,t}var Xk=Uk,M0=Ni,R0=M0?M0.prototype:void 0,T0=R0?R0.valueOf:void 0;function qk(e){return T0?Object(T0.call(e)):{}}var Yk=qk,Zk=Xg;function Qk(e,t){var n=t?Zk(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Jk=Qk,e3=Xg,t3=Gk,n3=Xk,r3=Yk,o3=Jk,a3="[object Boolean]",i3="[object Date]",s3="[object Map]",l3="[object Number]",c3="[object RegExp]",u3="[object Set]",d3="[object String]",f3="[object Symbol]",m3="[object ArrayBuffer]",h3="[object DataView]",g3="[object Float32Array]",v3="[object Float64Array]",p3="[object Int8Array]",b3="[object Int16Array]",y3="[object Int32Array]",C3="[object Uint8Array]",S3="[object Uint8ClampedArray]",$3="[object Uint16Array]",w3="[object Uint32Array]";function x3(e,t,n){var r=e.constructor;switch(t){case m3:return e3(e);case a3:case i3:return new r(+e);case h3:return t3(e,n);case g3:case v3:case p3:case b3:case y3:case C3:case S3:case $3:case w3:return o3(e,n);case s3:return new r;case l3:case d3:return new r(e);case c3:return n3(e);case u3:return new r;case f3:return r3(e)}}var E3=x3,I3=ro,_0=Object.create,P3=function(){function e(){}return function(t){if(!I3(t))return {};if(_0)return _0(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),O3=P3,M3=O3,R3=Ug,T3=Vg;function _3(e){return typeof e.constructor=="function"&&!T3(e)?M3(R3(e)):{}}var N3=_3,k3=rd,A3=Fo,L3="[object Map]";function D3(e){return A3(e)&&k3(e)==L3}var F3=D3,z3=F3,j3=Bg,N0=Hg,k0=N0&&N0.isMap,B3=k0?j3(k0):z3,H3=B3,V3=rd,W3=Fo,G3="[object Set]";function K3(e){return W3(e)&&V3(e)==G3}var U3=K3,X3=U3,q3=Bg,A0=Hg,L0=A0&&A0.isSet,Y3=L0?q3(L0):X3,Z3=Y3,Q3=Ag,J3=ET,eA=Lg,tA=mN,nA=RN,rA=TN,oA=cS,aA=WN,iA=rk,sA=mS,lA=hS,cA=rd,uA=zk,dA=E3,fA=N3,mA=Br,hA=Fg,gA=H3,vA=ro,pA=Z3,bA=ul,yA=Wg,CA=1,SA=2,$A=4,bS="[object Arguments]",wA="[object Array]",xA="[object Boolean]",EA="[object Date]",IA="[object Error]",yS="[object Function]",PA="[object GeneratorFunction]",OA="[object Map]",MA="[object Number]",CS="[object Object]",RA="[object RegExp]",TA="[object Set]",_A="[object String]",NA="[object Symbol]",kA="[object WeakMap]",AA="[object ArrayBuffer]",LA="[object DataView]",DA="[object Float32Array]",FA="[object Float64Array]",zA="[object Int8Array]",jA="[object Int16Array]",BA="[object Int32Array]",HA="[object Uint8Array]",VA="[object Uint8ClampedArray]",WA="[object Uint16Array]",GA="[object Uint32Array]",Gt={};Gt[bS]=Gt[wA]=Gt[AA]=Gt[LA]=Gt[xA]=Gt[EA]=Gt[DA]=Gt[FA]=Gt[zA]=Gt[jA]=Gt[BA]=Gt[OA]=Gt[MA]=Gt[CS]=Gt[RA]=Gt[TA]=Gt[_A]=Gt[NA]=Gt[HA]=Gt[VA]=Gt[WA]=Gt[GA]=!0;Gt[IA]=Gt[yS]=Gt[kA]=!1;function Ec(e,t,n,r,o,a){var i,s=t&CA,l=t&SA,c=t&$A;if(n&&(i=o?n(e,r,o,a):n(e)),i!==void 0)return i;if(!vA(e))return e;var u=mA(e);if(u){if(i=uA(e),!s)return oA(e,i)}else {var d=cA(e),f=d==yS||d==PA;if(hA(e))return rA(e,s);if(d==CS||d==bS||f&&!o){if(i=l||f?{}:fA(e),!s)return l?iA(e,nA(i,e)):aA(e,tA(i,e))}else {if(!Gt[d])return o?e:{};i=dA(e,d,s);}}a||(a=new Q3);var h=a.get(e);if(h)return h;a.set(e,i),pA(e)?e.forEach(function(p){i.add(Ec(p,t,n,p,e,a));}):gA(e)&&e.forEach(function(p,b){i.set(b,Ec(p,t,n,b,e,a));});var g=c?l?lA:sA:l?yA:bA,v=u?void 0:g(e);return J3(v||e,function(p,b){v&&(b=p,p=e[b]),eA(i,b,Ec(p,t,n,b,e,a));}),i}var SS=Ec,KA=ki,UA=Fo,XA="[object Symbol]";function qA(e){return typeof e=="symbol"||UA(e)&&KA(e)==XA}var od=qA,YA=Br,ZA=od,QA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,JA=/^\w*$/;function eL(e,t){if(YA(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ZA(e)?!0:JA.test(e)||!QA.test(e)||t!=null&&e in Object(t)}var qg=eL,$S=kg,tL="Expected a function";function Yg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tL);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Yg.Cache||$S),n}Yg.Cache=$S;var nL=Yg,rL=nL,oL=500;function aL(e){var t=rL(e,function(r){return n.size===oL&&n.clear(),r}),n=t.cache;return t}var iL=aL,sL=iL,lL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cL=/\\(\\)?/g,uL=sL(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lL,function(n,r,o,a){t.push(o?a.replace(cL,"$1"):r||n);}),t}),dL=uL,D0=Ni,fL=Tg,mL=Br,hL=od,gL=1/0,F0=D0?D0.prototype:void 0,z0=F0?F0.toString:void 0;function wS(e){if(typeof e=="string")return e;if(mL(e))return fL(e,wS)+"";if(hL(e))return z0?z0.call(e):"";var t=e+"";return t=="0"&&1/e==-gL?"-0":t}var vL=wS,pL=vL;function bL(e){return e==null?"":pL(e)}var yL=bL,CL=Br,SL=qg,$L=dL,wL=yL;function xL(e,t){return CL(e)?e:SL(e,t)?[e]:$L(wL(e))}var zi=xL;function EL(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var IL=EL,PL=od,OL=1/0;function ML(e){if(typeof e=="string"||PL(e))return e;var t=e+"";return t=="0"&&1/e==-OL?"-0":t}var ji=ML,RL=zi,TL=ji;function _L(e,t){t=RL(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[TL(t[n++])];return n&&n==r?e:void 0}var ad=_L;function NL(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}var kL=NL,AL=ad,LL=kL;function DL(e,t){return t.length<2?e:AL(e,LL(t,0,-1))}var FL=DL,zL=zi,jL=IL,BL=FL,HL=ji;function VL(e,t){return t=zL(t,e),e=BL(e,t),e==null||delete e[HL(jL(t))]}var WL=VL,GL=ki,KL=Ug,UL=Fo,XL="[object Object]",qL=Function.prototype,YL=Object.prototype,xS=qL.toString,ZL=YL.hasOwnProperty,QL=xS.call(Object);function JL(e){if(!UL(e)||GL(e)!=XL)return !1;var t=KL(e);if(t===null)return !0;var n=ZL.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&xS.call(n)==QL}var e4=JL,t4=e4;function n4(e){return t4(e)?void 0:e}var r4=n4,j0=Ni,o4=Dg,a4=Br,B0=j0?j0.isConcatSpreadable:void 0;function i4(e){return a4(e)||o4(e)||!!(B0&&e&&e[B0])}var s4=i4,l4=Kg,c4=s4;function ES(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=c4),o||(o=[]);++a<i;){var s=e[a];t>0&&n(s)?t>1?ES(s,t-1,n,r,o):l4(o,s):r||(o[o.length]=s);}return o}var u4=ES,d4=u4;function f4(e){var t=e==null?0:e.length;return t?d4(e,1):[]}var m4=f4;function h4(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 g4=h4,v4=g4,H0=Math.max;function p4(e,t,n){return t=H0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=H0(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),v4(e,this,s)}}var b4=p4;function y4(e){return function(){return e}}var C4=y4;function S4(e){return e}var IS=S4,$4=C4,V0=nS,w4=IS,x4=V0?function(e,t){return V0(e,"toString",{configurable:!0,enumerable:!1,value:$4(t),writable:!0})}:w4,E4=x4,I4=800,P4=16,O4=Date.now;function M4(e){var t=0,n=0;return function(){var r=O4(),o=P4-(r-n);if(n=r,o>0){if(++t>=I4)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var R4=M4,T4=E4,_4=R4,N4=_4(T4),k4=N4,A4=m4,L4=b4,D4=k4;function F4(e){return D4(L4(e,void 0,A4),e+"")}var PS=F4,z4=Tg,j4=SS,B4=WL,H4=zi,V4=cl,W4=r4,G4=PS,K4=hS,U4=1,X4=2,q4=4,Y4=G4(function(e,t){var n={};if(e==null)return n;var r=!1;t=z4(t,function(a){return a=H4(a,e),r||(r=a.length>1),a}),V4(e,K4(e),n),r&&(n=j4(n,U4|X4|q4,W4));for(var o=t.length;o--;)B4(n,t[o]);return n}),Z4=Y4;const Q4=bn(Z4);var J4=jr,e5=function(){return J4.Date.now()},t5=e5,n5=/\s/;function r5(e){for(var t=e.length;t--&&n5.test(e.charAt(t)););return t}var o5=r5,a5=o5,i5=/^\s+/;function s5(e){return e&&e.slice(0,a5(e)+1).replace(i5,"")}var l5=s5,c5=l5,W0=ro,u5=od,G0=NaN,d5=/^[-+]0x[0-9a-f]+$/i,f5=/^0b[01]+$/i,m5=/^0o[0-7]+$/i,h5=parseInt;function g5(e){if(typeof e=="number")return e;if(u5(e))return G0;if(W0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=W0(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=c5(e);var n=f5.test(e);return n||m5.test(e)?h5(e.slice(2),n?2:8):d5.test(e)?G0:+e}var OS=g5,v5=ro,Ef=t5,K0=OS,p5="Expected a function",b5=Math.max,y5=Math.min;function C5(e,t,n){var r,o,a,i,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(p5);t=K0(t)||0,v5(n)&&(u=!!n.leading,d="maxWait"in n,a=d?b5(K0(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f);function h(E){var S=r,x=o;return r=o=void 0,c=E,i=e.apply(x,S),i}function g(E){return c=E,s=setTimeout(b,t),u?h(E):i}function v(E){var S=E-l,x=E-c,I=t-S;return d?y5(I,a-x):I}function p(E){var S=E-l,x=E-c;return l===void 0||S>=t||S<0||d&&x>=a}function b(){var E=Ef();if(p(E))return y(E);s=setTimeout(b,v(E));}function y(E){return s=void 0,f&&r?h(E):(r=o=void 0,i)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function $(){return s===void 0?i:y(Ef())}function w(){var E=Ef(),S=p(E);if(r=arguments,o=this,l=E,S){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),i}return w.cancel=C,w.flush=$,w}var MS=C5;const S5=bn(MS);var $5=MS,w5=ro,x5="Expected a function";function E5(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(x5);return w5(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),$5(e,t,{leading:r,maxWait:t,trailing:o})}var I5=E5;const RS=bn(I5);var P5=Lg,O5=zi,M5=zg,U0=ro,R5=ji;function T5(e,t,n,r){if(!U0(e))return e;t=O5(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o<a;){var l=R5(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=i){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=U0(u)?u:M5(t[o+1])?[]:{});}P5(s,l,c),s=s[l];}return e}var _5=T5,N5=ad,k5=_5,A5=zi;function L5(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],s=N5(e,i);n(s,i)&&k5(a,A5(i,e),s);}return a}var D5=L5;function F5(e,t){return e!=null&&t in Object(e)}var z5=F5,j5=zi,B5=Dg,H5=Br,V5=zg,W5=jg,G5=ji;function K5(e,t,n){t=j5(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var i=G5(t[r]);if(!(a=e!=null&&n(e,i)))break;e=e[i];}return a||++r!=o?a:(o=e==null?0:e.length,!!o&&W5(o)&&V5(i,o)&&(H5(e)||B5(e)))}var U5=K5,X5=z5,q5=U5;function Y5(e,t){return e!=null&&q5(e,t,X5)}var TS=Y5,Z5=D5,Q5=TS;function J5(e,t){return Z5(e,t,function(n,r){return Q5(e,r)})}var eD=J5,tD=eD,nD=PS,rD=nD(function(e,t){return e==null?{}:tD(e,t)}),oD=rD;const Zg=bn(oD);var jm={exports:{}},If,X0;function aD(){if(X0)return If;X0=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,a=r*365.25;If=function(u,d){d=d||{};var f=typeof u;if(f==="string"&&u.length>0)return i(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 i(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var f=parseFloat(d[1]),h=(d[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return f*a;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 g=d>=f*1.5;return Math.round(u/f)+" "+h+(g?"s":"")}return If}function iD(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=o,n.enabled=i,n.humanize=aD(),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,g;function v(...p){if(!v.enabled)return;const b=v,y=Number(new Date),C=y-(d||y);b.diff=C,b.prev=d,b.curr=y,d=y,p[0]=n.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let $=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,(E,S)=>{if(E==="%%")return "%";$++;const x=n.formatters[S];if(typeof x=="function"){const I=p[$];E=x.call(b,I),p.splice($,1),$--;}return E}),n.formatArgs.call(b,p),(b.log||n.log).apply(b,p);}return v.namespace=u,v.useColors=n.useColors(),v.color=n.selectColor(u),v.extend=r,v.destroy=n.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(h!==n.namespaces&&(h=n.namespaces,g=n.enabled(u)),g),set:p=>{f=p;}}),typeof n.init=="function"&&n.init(v),v}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 a(){const u=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),u}function i(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 sD=iD;(function(e,t){var n={};t.formatArgs=o,t.save=a,t.load=i,t.useColors=r,t.storage=s(),t.destroy=(()=>{let c=!1;return ()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;c.splice(1,0,u,"color: inherit");let d=0,f=0;c[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(d++,h==="%c"&&(f=d));}),c.splice(f,0,u);}t.log=console.debug||console.log||(()=>{});function a(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug");}catch{}}function i(){let c;try{c=t.storage.getItem("debug");}catch{}return !c&&typeof process<"u"&&"env"in process&&(c=n.DEBUG),c}function s(){try{return localStorage}catch{}}e.exports=sD(t);const{formatters:l}=e.exports;l.j=function(c){try{return JSON.stringify(c)}catch(u){return "[UnexpectedJSONParseError]: "+u.message}};})(jm,jm.exports);var lD=jm.exports;const cD=bn(lD),an="bilibili-app-recommend",uD="bilibili_app_recommend",Bi=cD(an),_S="https://api.bilibili.com",NS="https://app.bilibili.com",fi={appkey:"4409e2ce8ffd12b8",appsec:"59b43e04ad6965f34319062b478f83dd"},ya=`${an}-root`;let kS=!1;function dD(e){kS=e;}var AS={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(qa,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",g="date",v="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,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(A){var L=["th","st","nd","rd"],T=A%100;return "["+A+(L[(T-20)%10]||L[T]||L[0])+"]"}},C=function(A,L,T){var M=String(A);return !M||M.length>=L?A:""+Array(L+1-M.length).join(T)+A},$={s:C,z:function(A){var L=-A.utcOffset(),T=Math.abs(L),M=Math.floor(T/60),_=T%60;return (L<=0?"+":"-")+C(M,2,"0")+":"+C(_,2,"0")},m:function A(L,T){if(L.date()<T.date())return -A(T,L);var M=12*(T.year()-L.year())+(T.month()-L.month()),_=L.clone().add(M,d),z=T-_<0,F=L.clone().add(M+(z?-1:1),d);return +(-(M+(T-_)/(z?_-F:F-_))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return {M:d,y:h,w:u,d:c,D:g,h:l,m:s,s:i,ms:a,Q:f}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},w="en",E={};E[w]=y;var S="$isDayjsObject",x=function(A){return A instanceof O||!(!A||!A[S])},I=function A(L,T,M){var _;if(!L)return w;if(typeof L=="string"){var z=L.toLowerCase();E[z]&&(_=z),T&&(E[z]=T,_=z);var F=L.split("-");if(!_&&F.length>1)return A(F[0])}else {var B=L.name;E[B]=L,_=B;}return !M&&_&&(w=_),_||!M&&w},P=function(A,L){if(x(A))return A.clone();var T=typeof L=="object"?L:{};return T.date=A,T.args=arguments,new O(T)},R=$;R.l=I,R.i=x,R.w=function(A,L){return P(A,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var O=function(){function A(T){this.$L=I(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[S]=!0;}var L=A.prototype;return L.parse=function(T){this.$d=function(M){var _=M.date,z=M.utc;if(_===null)return new Date(NaN);if(R.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var F=_.match(p);if(F){var B=F[2]-1||0,H=(F[7]||"0").substring(0,3);return z?new Date(Date.UTC(F[1],B,F[3]||1,F[4]||0,F[5]||0,F[6]||0,H)):new Date(F[1],B,F[3]||1,F[4]||0,F[5]||0,F[6]||0,H)}}return new Date(_)}(T),this.init();},L.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();},L.$utils=function(){return R},L.isValid=function(){return this.$d.toString()!==v},L.isSame=function(T,M){var _=P(T);return this.startOf(M)<=_&&_<=this.endOf(M)},L.isAfter=function(T,M){return P(T)<this.startOf(M)},L.isBefore=function(T,M){return this.endOf(M)<P(T)},L.$g=function(T,M,_){return R.u(T)?this[M]:this.set(_,T)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(T,M){var _=this,z=!!R.u(M)||M,F=R.p(T),B=function(Q,Y){var ie=R.w(_.$u?Date.UTC(_.$y,Y,Q):new Date(_.$y,Y,Q),_);return z?ie:ie.endOf(c)},H=function(Q,Y){return R.w(_.toDate()[Q].apply(_.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(Y)),_)},V=this.$W,K=this.$M,X=this.$D,q="set"+(this.$u?"UTC":"");switch(F){case h:return z?B(1,0):B(31,11);case d:return z?B(1,K):B(0,K+1);case u:var te=this.$locale().weekStart||0,W=(V<te?V+7:V)-te;return B(z?X-W:X+(6-W),K);case c:case g:return H(q+"Hours",0);case l:return H(q+"Minutes",1);case s:return H(q+"Seconds",2);case i:return H(q+"Milliseconds",3);default:return this.clone()}},L.endOf=function(T){return this.startOf(T,!1)},L.$set=function(T,M){var _,z=R.p(T),F="set"+(this.$u?"UTC":""),B=(_={},_[c]=F+"Date",_[g]=F+"Date",_[d]=F+"Month",_[h]=F+"FullYear",_[l]=F+"Hours",_[s]=F+"Minutes",_[i]=F+"Seconds",_[a]=F+"Milliseconds",_)[z],H=z===c?this.$D+(M-this.$W):M;if(z===d||z===h){var V=this.clone().set(g,1);V.$d[B](H),V.init(),this.$d=V.set(g,Math.min(this.$D,V.daysInMonth())).$d;}else B&&this.$d[B](H);return this.init(),this},L.set=function(T,M){return this.clone().$set(T,M)},L.get=function(T){return this[R.p(T)]()},L.add=function(T,M){var _,z=this;T=Number(T);var F=R.p(M),B=function(K){var X=P(z);return R.w(X.date(X.date()+Math.round(K*T)),z)};if(F===d)return this.set(d,this.$M+T);if(F===h)return this.set(h,this.$y+T);if(F===c)return B(1);if(F===u)return B(7);var H=(_={},_[s]=r,_[l]=o,_[i]=n,_)[F]||1,V=this.$d.getTime()+T*H;return R.w(V,this)},L.subtract=function(T,M){return this.add(-1*T,M)},L.format=function(T){var M=this,_=this.$locale();if(!this.isValid())return _.invalidDate||v;var z=T||"YYYY-MM-DDTHH:mm:ssZ",F=R.z(this),B=this.$H,H=this.$m,V=this.$M,K=_.weekdays,X=_.months,q=_.meridiem,te=function(Y,ie,le,J){return Y&&(Y[ie]||Y(M,z))||le[ie].slice(0,J)},W=function(Y){return R.s(B%12||12,Y,"0")},Q=q||function(Y,ie,le){var J=Y<12?"AM":"PM";return le?J.toLowerCase():J};return z.replace(b,function(Y,ie){return ie||function(le){switch(le){case"YY":return String(M.$y).slice(-2);case"YYYY":return R.s(M.$y,4,"0");case"M":return V+1;case"MM":return R.s(V+1,2,"0");case"MMM":return te(_.monthsShort,V,X,3);case"MMMM":return te(X,V);case"D":return M.$D;case"DD":return R.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return te(_.weekdaysMin,M.$W,K,2);case"ddd":return te(_.weekdaysShort,M.$W,K,3);case"dddd":return K[M.$W];case"H":return String(B);case"HH":return R.s(B,2,"0");case"h":return W(1);case"hh":return W(2);case"a":return Q(B,H,!0);case"A":return Q(B,H,!1);case"m":return String(H);case"mm":return R.s(H,2,"0");case"s":return String(M.$s);case"ss":return R.s(M.$s,2,"0");case"SSS":return R.s(M.$ms,3,"0");case"Z":return F}return null}(Y)||F.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(T,M,_){var z,F=this,B=R.p(M),H=P(T),V=(H.utcOffset()-this.utcOffset())*r,K=this-H,X=function(){return R.m(F,H)};switch(B){case h:z=X()/12;break;case d:z=X();break;case f:z=X()/3;break;case u:z=(K-V)/6048e5;break;case c:z=(K-V)/864e5;break;case l:z=K/o;break;case s:z=K/r;break;case i:z=K/n;break;default:z=K;}return _?z:R.a(z)},L.daysInMonth=function(){return this.endOf(d).$D},L.$locale=function(){return E[this.$L]},L.locale=function(T,M){if(!T)return this.$L;var _=this.clone(),z=I(T,M,!0);return z&&(_.$L=z),_},L.clone=function(){return R.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},A}(),N=O.prototype;return P.prototype=N,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",c],["$M",d],["$y",h],["$D",g]].forEach(function(A){N[A[1]]=function(L){return this.$g(L,A[0],A[1])};}),P.extend=function(A,L){return A.$i||(A(L,O,P),A.$i=!0),P},P.locale=I,P.isDayjs=x,P.unix=function(A){return P(1e3*A)},P.en=E[w],P.Ls=E,P.p={},P});})(AS);var fD=AS.exports;const Ca=bn(fD);var LS={exports:{}},DS={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],o=0,a=0;o<n.length;o++,a+=8)r[a>>>5]|=n[o]<<24-a%32;return r},wordsToBytes:function(n){for(var r=[],o=0;o<n.length*32;o+=8)r.push(n[o>>>5]>>>24-o%32&255);return r},bytesToHex:function(n){for(var r=[],o=0;o<n.length;o++)r.push((n[o]>>>4).toString(16)),r.push((n[o]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],o=0;o<n.length;o+=2)r.push(parseInt(n.substr(o,2),16));return r},bytesToBase64:function(n){for(var r=[],o=0;o<n.length;o+=3)for(var a=n[o]<<16|n[o+1]<<8|n[o+2],i=0;i<4;i++)o*8+i*6<=n.length*8?r.push(e.charAt(a>>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],o=0,a=0;o<n.length;a=++o%4)a!=0&&r.push((e.indexOf(n.charAt(o-1))&Math.pow(2,-2*a+8)-1)<<a*2|e.indexOf(n.charAt(o))>>>6-a*2);return r}};DS.exports=t;})();var mD=DS.exports,Bm={utf8:{stringToBytes:function(e){return Bm.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Bm.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("")}}},q0=Bm;/*!
   * Determine if an object is a Buffer
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   */var hD=function(e){return e!=null&&(FS(e)||gD(e)||!!e._isBuffer)};function FS(e){return !!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function gD(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&FS(e.slice(0,0))}(function(){var e=mD,t=q0.utf8,n=hD,r=q0.bin,o=function(a,i){a.constructor==String?i&&i.encoding==="binary"?a=r.stringToBytes(a):a=t.stringToBytes(a):n(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());for(var s=e.bytesToWords(a),l=a.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 g=o._ff,v=o._gg,p=o._hh,b=o._ii,h=0;h<s.length;h+=16){var y=c,C=u,$=d,w=f;c=g(c,u,d,f,s[h+0],7,-680876936),f=g(f,c,u,d,s[h+1],12,-389564586),d=g(d,f,c,u,s[h+2],17,606105819),u=g(u,d,f,c,s[h+3],22,-1044525330),c=g(c,u,d,f,s[h+4],7,-176418897),f=g(f,c,u,d,s[h+5],12,1200080426),d=g(d,f,c,u,s[h+6],17,-1473231341),u=g(u,d,f,c,s[h+7],22,-45705983),c=g(c,u,d,f,s[h+8],7,1770035416),f=g(f,c,u,d,s[h+9],12,-1958414417),d=g(d,f,c,u,s[h+10],17,-42063),u=g(u,d,f,c,s[h+11],22,-1990404162),c=g(c,u,d,f,s[h+12],7,1804603682),f=g(f,c,u,d,s[h+13],12,-40341101),d=g(d,f,c,u,s[h+14],17,-1502002290),u=g(u,d,f,c,s[h+15],22,1236535329),c=v(c,u,d,f,s[h+1],5,-165796510),f=v(f,c,u,d,s[h+6],9,-1069501632),d=v(d,f,c,u,s[h+11],14,643717713),u=v(u,d,f,c,s[h+0],20,-373897302),c=v(c,u,d,f,s[h+5],5,-701558691),f=v(f,c,u,d,s[h+10],9,38016083),d=v(d,f,c,u,s[h+15],14,-660478335),u=v(u,d,f,c,s[h+4],20,-405537848),c=v(c,u,d,f,s[h+9],5,568446438),f=v(f,c,u,d,s[h+14],9,-1019803690),d=v(d,f,c,u,s[h+3],14,-187363961),u=v(u,d,f,c,s[h+8],20,1163531501),c=v(c,u,d,f,s[h+13],5,-1444681467),f=v(f,c,u,d,s[h+2],9,-51403784),d=v(d,f,c,u,s[h+7],14,1735328473),u=v(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+C>>>0,d=d+$>>>0,f=f+w>>>0;}return e.endian([c,u,d,f])};o._ff=function(a,i,s,l,c,u,d){var f=a+(i&s|~i&l)+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._gg=function(a,i,s,l,c,u,d){var f=a+(i&l|s&~l)+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._hh=function(a,i,s,l,c,u,d){var f=a+(i^s^l)+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._ii=function(a,i,s,l,c,u,d){var f=a+(s^(i|~l))+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._blocksize=16,o._digestsize=16,LS.exports=function(a,i){if(a==null)throw new Error("Illegal argument "+a);var s=e.wordsToBytes(o(a,i));return i&&i.asBytes?s:i&&i.asString?r.bytesToString(s):e.bytesToHex(s)};})();var vD=LS.exports;const zS=bn(vD);var mi=1e3,hi=mi*60,gi=hi*60,fa=gi*24,pD=fa*7,bD=fa*365.25,yD=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return CD(e);if(n==="number"&&isFinite(e))return t.long?$D(e):SD(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function CD(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*bD;case"weeks":case"week":case"w":return n*pD;case"days":case"day":case"d":return n*fa;case"hours":case"hour":case"hrs":case"hr":case"h":return n*gi;case"minutes":case"minute":case"mins":case"min":case"m":return n*hi;case"seconds":case"second":case"secs":case"sec":case"s":return n*mi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function SD(e){var t=Math.abs(e);return t>=fa?Math.round(e/fa)+"d":t>=gi?Math.round(e/gi)+"h":t>=hi?Math.round(e/hi)+"m":t>=mi?Math.round(e/mi)+"s":e+"ms"}function $D(e){var t=Math.abs(e);return t>=fa?Ql(e,t,fa,"day"):t>=gi?Ql(e,t,gi,"hour"):t>=hi?Ql(e,t,hi,"minute"):t>=mi?Ql(e,t,mi,"second"):e+" ms"}function Ql(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const dl=bn(yD),wD=[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 xD(e){let t="";return wD.forEach(n=>{t+=e[n];}),t.slice(0,32)}async function ED(e){const{img_key:t,sub_key:n}=await ID(),r=xD(t+n),o=Math.round(Date.now()/1e3),a=/[!'()*]/g;let i=[];e={...e,wts:o},Object.keys(e).sort().forEach(c=>{i.push(`${encodeURIComponent(c)}=${encodeURIComponent(e[c].toString().replace(a,""))}`);});const s=i.join("&"),l=zS(s+r);return {wts:o,w_rid:l}}let Pf,Of,Mf;async function ID(){const e=()=>Ca().format("YYYYMMDD");if(Pf&&Of&&Mf&&Mf===e()&&Date.now()-Of<=dl("6h"))return Pf;const r=(await $g.get("/x/web-interface/nav",{baseURL:_S})).data,o=r.data.wbi_img.img_url,a=r.data.wbi_img.sub_url,i={img_key:o.slice(o.lastIndexOf("/")+1,o.lastIndexOf(".")),sub_key:a.slice(a.lastIndexOf("/")+1,a.lastIndexOf("."))};return Pf=i,Mf=e(),Of=Date.now(),i}function jS(e,t,n){e.appkey=t;const r=new URLSearchParams(e);return r.sort(),zS(r.toString()+n)}const yn=$g.create({baseURL:_S,withCredentials:!0});yn.interceptors.request.use(async function(e){var t;return e.params||(e.params={}),(t=e.url)!=null&&t.includes("/wbi/")&&(e.params={...e.params,...await ED(e.params)}),e});function oo(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const id=$g.create({adapter:OP}),Y0=fi.appkey,PD=fi.appsec;id.interceptors.request.use(function(e){return e.params={appkey:Y0,access_key:Mt.accessKey||"",...e.params},e.params.sign=jS(e.params,Y0,PD),e});id.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){const t=new TextDecoder,n=new Uint8Array(e.data),r=t.decode(n);e.data=r;try{e.data=JSON.parse(r);}catch{}}return e});const OD=[{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)"}],BS=`--${an}-color-primary`,to=`var(${BS})`,Kc={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},HS={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function MD(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 VS="UP长期洗涤",RD=MD(VS,`
  #0545b2 理想之蓝
  #f4cd00 柠檬黄
  #ef2729 石榴红
  #f89c00 鹿箭
  #233728 黛绿
  #f2b9b7 和熙粉
  #f3cc91 芝士黄
  #6b4c68 葡萄紫
  #ff7227 落日橙
  #004d62 碧海天
  #23909b 洗碧空
  #aeb400 芥丝绿
  #425a17 箬叶青

  #002FA7 克莱因蓝
  #003153 普鲁士蓝
  #01847F 马尔斯绿
  #FBD26A 申布伦黄
  #470024 勃艮第红
  #492D22 凡戴克棕
  `),WS=[{name:"预设",themes:[Kc,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},HS]},{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:OD,tooltip:ve(Rt,{children:["提取自"," ",D("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),D("br",{}),"Apache License 2.0"]})},{name:VS,themes:RD,tooltip:ve(Rt,{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"})]})}],TD=WS.map(e=>e.themes).flat();function Qg(){let{theme:e,colorPickerThemeSelectedColor:t}=hn();return e||(e=Kc.id),m.useMemo(()=>{const n=TD.find(r=>r.id===e)||Kc;return n.id===HS.id&&t&&(n.colorPrimary=t),n},[e,t])}function Z0(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Q0(e,t,n){var r=[],o=Mg(e,r,n);return r.length<2?n:o+t(r)}var _D=function(t){var n=zC(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=oi(c,n.registered,void 0);return Rg(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=oi(c,n.registered),f="animation-"+d.name;return Z0(n,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},a=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=oi(c,n.registered);Z0(n,d);},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return Q0(n.registered,r,ND(c))};return {css:r,cx:i,injectGlobal:a,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:Mg.bind(null,n.registered),merge:Q0.bind(null,n.registered,r)}},ND=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))a=e(o);else {a="";for(var i in o)o[i]&&i&&(a&&(a+=" "),a+=i);}break}default:a=o;}a&&(n&&(n+=" "),n+=a);}}return n},kD=_D({key:"css"}),Uc=kD.css;const AD=Uc("position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);z-index:90000;padding:12px 24px;font-size:14px;min-width:200px;width:max-content;max-width:450px;color:#fff;background-color:#ffb243;background-color:",to,";border-radius:6px;white-space:pre-wrap;",""),LD=Uc({name:"1azakc",styles:"text-align:center"});function Et(e,t=2e3){const n=document.createElement("div");n.classList.add(AD,ya),n.innerText=e,!e.includes(`
`)&&!e.includes("<br")&&n.classList.add(LD),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const DD="请求失败, 请重试 !!!",GS="操作失败, 请重试 !!!";function KS(){return Et(DD)}function US(){return Et(GS)}const zD=Symbol(),Jg=Symbol(),ns="a",Ss="w";let jD=(e,t)=>new Proxy(e,t);const Hm=Object.getPrototypeOf,Vm=new WeakMap,XS=e=>e&&(Vm.has(e)?Vm.get(e):Hm(e)===Object.prototype||Hm(e)===Array.prototype),Xc=e=>typeof e=="object"&&e!==null,BD=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(Hm(e),t)},ev=e=>e[Jg]||e,qS=(e,t,n,r)=>{if(!XS(e))return e;let o=r&&r.get(e);if(!o){const l=ev(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,BD(l)]:[l],r==null||r.set(e,o);}const[a,i]=o;let s=n&&n.get(a);return s&&s[1].f===!!i||(s=((l,c)=>{const u={f:c};let d=!1;const f=(g,v)=>{if(!d){let p=u[ns].get(l);if(p||(p={},u[ns].set(l,p)),g===Ss)p[Ss]=!0;else {let b=p[g];b||(b=new Set,p[g]=b),b.add(v);}}},h={get:(g,v)=>v===Jg?l:(f("k",v),qS(Reflect.get(g,v),u[ns],u.c,u.t)),has:(g,v)=>v===zD?(d=!0,u[ns].delete(l),!0):(f("h",v),Reflect.has(g,v)),getOwnPropertyDescriptor:(g,v)=>(f("o",v),Reflect.getOwnPropertyDescriptor(g,v)),ownKeys:g=>(f(Ss),Reflect.ownKeys(g))};return c&&(h.set=h.deleteProperty=()=>!1),[h,u]})(a,!!i),s[1].p=jD(i||a,s[0]),n&&n.set(a,s)),s[1][ns]=t,s[1].c=n,s[1].t=r,s[1].p},YS=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!Xc(e)||!Xc(t))return !0;const o=n.get(ev(e));if(!o)return !0;if(r){const i=r.get(e);if(i&&i.n===t)return i.g;r.set(e,{n:t,g:!1});}let a=null;try{for(const i of o.h||[])if(a=Reflect.has(e,i)!==Reflect.has(t,i),a)return a;if(o[Ss]===!0){if(a=((i,s)=>{const l=Reflect.ownKeys(i),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((u,d)=>u!==c[d])})(e,t),a)return a}else for(const i of o.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i),a)return a;for(const i of o.k||[])if(a=YS(e[i],t[i],n,r),a)return a;return a===null&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a});}},HD=e=>XS(e)&&e[Jg]||null,J0=(e,t=!0)=>{Vm.set(e,t);},VD=(e,t,n)=>{const r=[],o=new WeakSet,a=(i,s)=>{if(o.has(i))return;Xc(i)&&o.add(i);const l=Xc(i)&&t.get(ev(i));if(l){var c,u;if((c=l.h)==null||c.forEach(f=>{const h=`:has(${String(f)})`;r.push(s?[...s,h]:[h]);}),l[Ss]===!0){const f=":ownKeys";r.push(s?[...s,f]:[f]);}else {var d;(d=l.o)==null||d.forEach(f=>{const h=`:hasOwn(${String(f)})`;r.push(s?[...s,h]:[h]);});}(u=l.k)==null||u.forEach(f=>{n&&!("value"in(Object.getOwnPropertyDescriptor(i,f)||{}))||a(i[f],s?[...s,f]:[f]);});}else s&&r.push(s);};return a(e),r};var qc={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Rf=e=>typeof e=="object"&&e!==null,Io=new WeakMap,Jl=new WeakSet,WD=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>Rf(c)&&!Jl.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),r=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},o=new WeakMap,a=(c,u,d=r)=>{const 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 J0(h,!0),o.set(c,[u,h]),Reflect.ownKeys(c).forEach(g=>{if(Object.getOwnPropertyDescriptor(h,g))return;const v=Reflect.get(c,g),{enumerable:p}=Reflect.getOwnPropertyDescriptor(c,g),b={value:v,enumerable:p,configurable:!0};if(Jl.has(v))J0(v,!1);else if(v instanceof Promise)delete b.value,b.get=()=>d(v);else if(Io.has(v)){const[y,C]=Io.get(v);b.value=a(y,C(),d);}Object.defineProperty(h,g,b);}),Object.preventExtensions(h)},i=new WeakMap,s=[1,1],l=c=>{if(!Rf(c))throw new Error("object required");const u=i.get(c);if(u)return u;let d=s[0];const f=new Set,h=(I,P=++s[0])=>{d!==P&&(d=P,f.forEach(R=>R(I,P)));};let g=s[1];const v=(I=++s[1])=>(g!==I&&!f.size&&(g=I,b.forEach(([P])=>{const R=P[1](I);R>d&&(d=R);})),d),p=I=>(P,R)=>{const O=[...P];O[1]=[I,...O[1]],h(O,R);},b=new Map,y=(I,P)=>{if((qc?"production":void 0)!=="production"&&b.has(I))throw new Error("prop listener already exists");if(f.size){const R=P[3](p(I));b.set(I,[P,R]);}else b.set(I,[P]);},C=I=>{var P;const R=b.get(I);R&&(b.delete(I),(P=R[1])==null||P.call(R));},$=I=>(f.add(I),f.size===1&&b.forEach(([R,O],N)=>{if((qc?"production":void 0)!=="production"&&O)throw new Error("remove already exists");const A=R[3](p(N));b.set(N,[R,A]);}),()=>{f.delete(I),f.size===0&&b.forEach(([R,O],N)=>{O&&(O(),b.set(N,[R]));});}),w=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),S=t(w,{deleteProperty(I,P){const R=Reflect.get(I,P);C(P);const O=Reflect.deleteProperty(I,P);return O&&h(["delete",[P],R]),O},set(I,P,R,O){const N=Reflect.has(I,P),A=Reflect.get(I,P,O);if(N&&(e(A,R)||i.has(R)&&e(A,i.get(R))))return !0;C(P),Rf(R)&&(R=HD(R)||R);let L=R;if(R instanceof Promise)R.then(T=>{R.status="fulfilled",R.value=T,h(["resolve",[P],T]);}).catch(T=>{R.status="rejected",R.reason=T,h(["reject",[P],T]);});else {!Io.has(R)&&n(R)&&(L=l(R));const T=!Jl.has(L)&&Io.get(L);T&&y(P,T);}return Reflect.set(I,P,L,O),h(["set",[P],R,A]),!0}});i.set(c,S);const x=[w,v,a,$];return Io.set(S,x),Reflect.ownKeys(c).forEach(I=>{const P=Object.getOwnPropertyDescriptor(c,I);"value"in P&&(S[I]=c[I],delete P.value,delete P.writable),Object.defineProperty(w,I,P);}),S})=>[l,Io,Jl,e,t,n,r,o,a,i,s],[GD]=WD();function ur(e={}){return GD(e)}function tv(e,t,n){const r=Io.get(e);(qc?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let o;const a=[],i=r[3];let s=!1;const c=i(u=>{if(a.push(u),n){t(a.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(a.splice(0));}));});return s=!0,()=>{s=!1,c();}}function Yc(e,t){const n=Io.get(e);(qc?"production":void 0)!=="production"&&!n&&console.warn("Please use proxy object");const[r,o,a]=n;return a(r,o(),t)}var ZS={exports:{}},QS={};/**
   * @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 vi=m;function KD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var UD=typeof Object.is=="function"?Object.is:KD,XD=vi.useState,qD=vi.useEffect,YD=vi.useLayoutEffect,ZD=vi.useDebugValue;function QD(e,t){var n=t(),r=XD({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return YD(function(){o.value=n,o.getSnapshot=t,Tf(o)&&a({inst:o});},[e,n,t]),qD(function(){return Tf(o)&&a({inst:o}),e(function(){Tf(o)&&a({inst:o});})},[e]),ZD(n),n}function Tf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !UD(e,n)}catch{return !0}}function JD(e,t){return t()}var eF=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?JD:QD;QS.useSyncExternalStore=vi.useSyncExternalStore!==void 0?vi.useSyncExternalStore:eF;ZS.exports=QS;var tF=ZS.exports;const nF=bn(tF);var rF={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{use:eb}=m,{useSyncExternalStore:oF}=nF,aF=(e,t)=>{const n=m.useRef();m.useEffect(()=>{n.current=VD(e,t,!0);}),m.useDebugValue(n.current);},iF=new WeakMap;function hr(e,t){const n=t==null?void 0:t.sync,r=m.useRef(),o=m.useRef();let a=!0;const i=oF(m.useCallback(c=>{const u=tv(e,c,n);return c(),u},[e,n]),()=>{const c=Yc(e,eb);try{if(!a&&r.current&&o.current&&!YS(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>Yc(e,eb));a=!1;const s=new WeakMap;m.useEffect(()=>{r.current=i,o.current=s;}),(rF?"production":void 0)!=="production"&&aF(i,s);const l=m.useMemo(()=>new WeakMap,[]);return qS(i,s,l,iF)}function nv(){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 Hi(){const e=nv().bili_jct;if(!e)throw Et("找不到 csrf token, 请检查是否登录(不可用)"),new Error("找不到 csrf token, 请检查是否登录(不可用)");return e}function sd(){return nv().DedeUserID}function fl(){return !!nv().DedeUserID}const Wm=ur({cookie:document.cookie,logined:fl()});function sF(){return Object.assign(Wm,{cookie:document.cookie,logined:fl()}),Wm.logined}function rv(){return hr(Wm).logined}const tb=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},lF=new WeakMap;function cF({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(tb());let a,i,s;const l=e??clearTimeout,c=()=>{l(a),s(tb());},u=()=>{o&&o.removeEventListener("abort",c);},d=new Promise((f,h)=>{i=()=>{u(),f(r);},s=h,a=(t??setTimeout)(i,n);});return o&&o.addEventListener("abort",c,{once:!0}),lF.set(d,()=>{l(a),a=null,i();}),d}}const wr=cF(),uF=Bi.extend("utility:dom"),dF=10*1e3,fF=200;async function $s(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const i=performance.now()+dF;for(;!r.length&&performance.now()<i;)await wr(fF),o();if(!r.length){console.warn(`[${an}]: tryAction timeout, selector = \`%s\``,e);return}uF("tryAction: selector=`%s` count=%s",e,r.length);for(const s of r)await Promise.resolve(t(s));}async function Ya(e,t,n){return typeof n=="number"&&await wr(n),$s(e,r=>r.remove(),t)}function ld(){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"))}const nb=e=>(e||"").replace(/^http:\/\//,"https://");function mF(e){if(!e)return 0;const t=[1,60,360];return e.split(":").map(o=>Number(o)).reverse().reduce((o,a,i)=>o+a*t[i],0)}function ml(e){return e||(e=0),Ca.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function Zo(e){if(!e)return "";if(e<=9999)return e.toString();if(e/=1e4,e<=9999){let t=e.toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}if(e/=1e4,e<=9999){let t=e.toFixed(1);return t=t.replace(/\.0$/,""),`${t}亿`}}function aa(e){if(e){if(e==="-")return 0;if(/^\d+$/.test(e))return Number(e);if(/^\d+(\.\d+?)?万$/.test(e))return Number(e.slice(0,-1))*1e4;if(/^\d+(\.\d+?)?亿$/.test(e))return Number(e.slice(0,-1))*1e8}}const hF=Ca().format("YYYY");function Ro(e,t=!1){if(!e)return "";const n=Ca.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===hF?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 vF(e){if(!(typeof e>"u")&&!(e>=0))return gF[e]}async function JS(){var n;return ((n=(await yn.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function Gm(e){var a,i;const t=new URLSearchParams({title:"",banner_url:"",content:"",summary:"",words:"0",category:"15",tid:"0",reprint:"0",tags:"",image_urls:"",origin_image_urls:"",dynamic_intro:"",media_id:"0",spoiler:"0",original:"0",top_video_bvid:"",aid:"",csrf:Hi(),...e}),n=(await yn.post("/x/article/creative/draft/addupdate",t)).data,r=(i=(a=n==null?void 0:n.data)==null?void 0:a.aid)==null?void 0:i.toString(),o=oo(n);return o||Et(n.message||"addupdate error"),{success:o,aid:r}}async function pF(e){var n;const t=(await yn.get("/x/article/creative/draft/view",{params:{aid:e}})).data;return ((n=t==null?void 0:t.data)==null?void 0:n.content)||""}async function bF(){const t=(await JS()).find(i=>i.title===an);if(!t){await Gm({title:an});return}const n=await pF(t.id),a=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(a)try{return JSON.parse(a)}catch{return}}let ec="";async function yF(e){if(!ec){const o=(await JS()).find(a=>a.title===an);if(o)ec=o.id.toString();else {const{success:a,aid:i}=await Gm({title:an});if(!a)return !1;ec=i;}}const t=JSON.stringify(e),{success:n}=await Gm({aid:ec,title:an,content:`<p>${t}</p>`,words:t.length.toString()});return n}const CF=Bi.extend("settings"),ov={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",shuffleForWatchLater:!0,shuffleForFav:!0,excludeFavFolderIds:[],filterEnabled:!0,filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowedVideo:!1,filterOutGotoTypePicture:!1,enableFilterForFollowedPicture:!1,styleFancy:!1,styleUseStandardVideoSourceTab:!1,backupSettingsToArticleDraft:!1,showingTabKeys:[]},Mt=ur({...ov}),e$=Object.keys(ov);function hn(){return hr(Mt)}const SF=an,t$=`${SF}.settings`;async function $F(){const e=await GM.getValue(t$);e&&typeof e=="object"&&Object.assign(Mt,Zg(e,e$)),tv(Mt,()=>{xF();});}const wF=RS(yF,dl("5s"));async function xF(){const e=Yc(Mt);await GM.setValue(t$,e),await EF(e);}async function EF(e){if(!e.backupSettingsToArticleDraft||kS)return;const t=Q4(e,["accessKey"]);try{await wF(t),CF("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function lr(e){Object.assign(Mt,e);}function IF(){return lr(ov)}await( $F());var n$={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(qa,function(){var n,r,o=1e3,a=6e4,i=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=2628e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:c,months:u,days:s,hours:i,minutes:a,seconds:o,milliseconds:1,weeks:6048e5},h=function(E){return E instanceof $},g=function(E,S,x){return new $(E,x,S.$l)},v=function(E){return r.p(E)+"s"},p=function(E){return E<0},b=function(E){return p(E)?Math.ceil(E):Math.floor(E)},y=function(E){return Math.abs(E)},C=function(E,S){return E?p(E)?{negative:!0,format:""+y(E)+S}:{negative:!1,format:""+E+S}:{negative:!1,format:""}},$=function(){function E(x,I,P){var R=this;if(this.$d={},this.$l=P,x===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return g(x*f[v(I)],this);if(typeof x=="number")return this.$ms=x,this.parseFromMilliseconds(),this;if(typeof x=="object")return Object.keys(x).forEach(function(A){R.$d[v(A)]=x[A];}),this.calMilliseconds(),this;if(typeof x=="string"){var O=x.match(d);if(O){var N=O.slice(2).map(function(A){return A!=null?Number(A):0});return this.$d.years=N[0],this.$d.months=N[1],this.$d.weeks=N[2],this.$d.days=N[3],this.$d.hours=N[4],this.$d.minutes=N[5],this.$d.seconds=N[6],this.calMilliseconds(),this}}return this}var S=E.prototype;return S.calMilliseconds=function(){var x=this;this.$ms=Object.keys(this.$d).reduce(function(I,P){return I+(x.$d[P]||0)*f[P]},0);},S.parseFromMilliseconds=function(){var x=this.$ms;this.$d.years=b(x/c),x%=c,this.$d.months=b(x/u),x%=u,this.$d.days=b(x/s),x%=s,this.$d.hours=b(x/i),x%=i,this.$d.minutes=b(x/a),x%=a,this.$d.seconds=b(x/o),x%=o,this.$d.milliseconds=x;},S.toISOString=function(){var x=C(this.$d.years,"Y"),I=C(this.$d.months,"M"),P=+this.$d.days||0;this.$d.weeks&&(P+=7*this.$d.weeks);var R=C(P,"D"),O=C(this.$d.hours,"H"),N=C(this.$d.minutes,"M"),A=this.$d.seconds||0;this.$d.milliseconds&&(A+=this.$d.milliseconds/1e3,A=Math.round(1e3*A)/1e3);var L=C(A,"S"),T=x.negative||I.negative||R.negative||O.negative||N.negative||L.negative,M=O.format||N.format||L.format?"T":"",_=(T?"-":"")+"P"+x.format+I.format+R.format+M+O.format+N.format+L.format;return _==="P"||_==="-P"?"P0D":_},S.toJSON=function(){return this.toISOString()},S.format=function(x){var I=x||"YYYY-MM-DDTHH:mm:ss",P={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return I.replace(l,function(R,O){return O||String(P[R])})},S.as=function(x){return this.$ms/f[v(x)]},S.get=function(x){var I=this.$ms,P=v(x);return P==="milliseconds"?I%=1e3:I=P==="weeks"?b(I/f[P]):this.$d[P],I||0},S.add=function(x,I,P){var R;return R=I?x*f[v(I)]:h(x)?x.$ms:g(x,this).$ms,g(this.$ms+R*(P?-1:1),this)},S.subtract=function(x,I){return this.add(x,I,!0)},S.locale=function(x){var I=this.clone();return I.$l=x,I},S.clone=function(){return g(this.$ms,this)},S.humanize=function(x){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!x)},S.valueOf=function(){return this.asMilliseconds()},S.milliseconds=function(){return this.get("milliseconds")},S.asMilliseconds=function(){return this.as("milliseconds")},S.seconds=function(){return this.get("seconds")},S.asSeconds=function(){return this.as("seconds")},S.minutes=function(){return this.get("minutes")},S.asMinutes=function(){return this.as("minutes")},S.hours=function(){return this.get("hours")},S.asHours=function(){return this.as("hours")},S.days=function(){return this.get("days")},S.asDays=function(){return this.as("days")},S.weeks=function(){return this.get("weeks")},S.asWeeks=function(){return this.as("weeks")},S.months=function(){return this.get("months")},S.asMonths=function(){return this.as("months")},S.years=function(){return this.get("years")},S.asYears=function(){return this.as("years")},E}(),w=function(E,S,x){return E.add(S.years()*x,"y").add(S.months()*x,"M").add(S.days()*x,"d").add(S.hours()*x,"h").add(S.minutes()*x,"m").add(S.seconds()*x,"s").add(S.milliseconds()*x,"ms")};return function(E,S,x){n=x,r=x().$utils(),x.duration=function(R,O){var N=x.locale();return g(R,{$l:N},O)},x.isDuration=h;var I=S.prototype.add,P=S.prototype.subtract;S.prototype.add=function(R,O){return h(R)?w(this,R,1):I.bind(this)(R,O)},S.prototype.subtract=function(R,O){return h(R)?w(this,R,-1):P.bind(this)(R,O)};}});})(n$);var PF=n$.exports;const OF=bn(PF);var r$={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 a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&r.push(s);}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)t.call(a,l)&&a[l]&&r.push(l);}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n;})();})(r$);var MF=r$.exports;const G=bn(MF);function av(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return m__namespace.createElement("div",{className:G("".concat(n,"-content"),a),style:i},m__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}function Ie(){return Ie=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},Ie.apply(this,arguments)}function dt(e){"@babel/helpers - typeof";return dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dt(e)}function RF(e,t){if(dt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function o$(e){var t=RF(e,"string");return dt(t)==="symbol"?t:String(t)}function j(e,t,n){return t=o$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r);}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rb(Object(n),!0).forEach(function(r){j(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function TF(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function et(e,t){if(e==null)return {};var n=TF(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function a$(e){if(Array.isArray(e))return e}function _F(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1;}else for(;!(l=(r=a.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&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function Km(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 iv(e,t){if(e){if(typeof e=="string")return Km(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 Km(e,t)}}function i$(){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 Z(e,t){return a$(e)||_F(e,t)||iv(e,t)||i$()}function Gn(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}var Um={},NF=function(t){};function kF(e,t){}function AF(e,t){}function LF(){Um={};}function s$(e,t,n){!t&&!Um[n]&&(e(!1,n),Um[n]=!0);}function Sn(e,t){s$(kF,e,t);}function DF(e,t){s$(AF,e,t);}Sn.preMessage=NF;Sn.resetWarned=LF;Sn.noteOnce=DF;var l$={exports:{}},Bt={};/**
   * @license React
   * react-is.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var sv=Symbol.for("react.element"),lv=Symbol.for("react.portal"),cd=Symbol.for("react.fragment"),ud=Symbol.for("react.strict_mode"),dd=Symbol.for("react.profiler"),fd=Symbol.for("react.provider"),md=Symbol.for("react.context"),FF=Symbol.for("react.server_context"),hd=Symbol.for("react.forward_ref"),gd=Symbol.for("react.suspense"),vd=Symbol.for("react.suspense_list"),pd=Symbol.for("react.memo"),bd=Symbol.for("react.lazy"),zF=Symbol.for("react.offscreen"),c$;c$=Symbol.for("react.module.reference");function Ir(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case sv:switch(e=e.type,e){case cd:case dd:case ud:case gd:case vd:return e;default:switch(e=e&&e.$$typeof,e){case FF:case md:case hd:case bd:case pd:case fd:return e;default:return t}}case lv:return t}}}Bt.ContextConsumer=md;Bt.ContextProvider=fd;Bt.Element=sv;Bt.ForwardRef=hd;Bt.Fragment=cd;Bt.Lazy=bd;Bt.Memo=pd;Bt.Portal=lv;Bt.Profiler=dd;Bt.StrictMode=ud;Bt.Suspense=gd;Bt.SuspenseList=vd;Bt.isAsyncMode=function(){return !1};Bt.isConcurrentMode=function(){return !1};Bt.isContextConsumer=function(e){return Ir(e)===md};Bt.isContextProvider=function(e){return Ir(e)===fd};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===sv};Bt.isForwardRef=function(e){return Ir(e)===hd};Bt.isFragment=function(e){return Ir(e)===cd};Bt.isLazy=function(e){return Ir(e)===bd};Bt.isMemo=function(e){return Ir(e)===pd};Bt.isPortal=function(e){return Ir(e)===lv};Bt.isProfiler=function(e){return Ir(e)===dd};Bt.isStrictMode=function(e){return Ir(e)===ud};Bt.isSuspense=function(e){return Ir(e)===gd};Bt.isSuspenseList=function(e){return Ir(e)===vd};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===cd||e===dd||e===ud||e===gd||e===vd||e===zF||typeof e=="object"&&e!==null&&(e.$$typeof===bd||e.$$typeof===pd||e.$$typeof===fd||e.$$typeof===md||e.$$typeof===hd||e.$$typeof===c$||e.getModuleId!==void 0)};Bt.typeOf=Ir;l$.exports=Bt;var cv=l$.exports;function hl(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 uv(e,t){typeof e=="function"?e(t):dt(e)==="object"&&e&&"current"in e&&(e.current=t);}function Xn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(a){uv(a,o);});}}function Sa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return hl(function(){return Xn.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})}function zo(e){var t,n,r=cv.isMemo(e)?e.type.type:e.type;return !(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}function jF(e){return !m.isValidElement(e)||cv.isFragment(e)?!1:zo(e)}var u$=m__namespace.createContext(null);function BF(e){if(Array.isArray(e))return Km(e)}function d$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HF(){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 Te(e){return BF(e)||d$(e)||iv(e)||HF()}var ob=Gn()?m__namespace.useLayoutEffect:m__namespace.useEffect,Kt=function(t,n){var r=m__namespace.useRef(!0);ob(function(){return t(r.current)},n),ob(function(){return r.current=!1,function(){r.current=!0;}},[]);},ai=function(t,n){Kt(function(r){if(!r)return t()},n);},ab=[];function VF(e,t){var n=m__namespace.useState(function(){if(!Gn())return null;var g=document.createElement("div");return g}),r=Z(n,1),o=r[0],a=m__namespace.useRef(!1),i=m__namespace.useContext(u$),s=m__namespace.useState(ab),l=Z(s,2),c=l[0],u=l[1],d=i||(a.current?void 0:function(g){u(function(v){var p=[g].concat(Te(v));return p});});function f(){o.parentElement||document.body.appendChild(o),a.current=!0;}function h(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),a.current=!1;}return Kt(function(){return e?i?i(f):f():h(),h},[e]),Kt(function(){c.length&&(c.forEach(function(g){return g()}),u(ab));},[c]),[o,d]}function WF(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 ib="data-rc-order",sb="data-rc-priority",GF="rc-util-key",Xm=new Map;function f$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):GF}function yd(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function KF(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function m$(e){return Array.from((Xm.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function h$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Gn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=KF(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(ib,i),s&&a&&l.setAttribute(sb,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=yd(t),u=c.firstChild;if(r){if(s){var d=m$(c).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(ib)))return !1;var h=Number(f.getAttribute(sb)||0);return a>=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 g$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=yd(t);return m$(n).find(function(r){return r.getAttribute(f$(t))===e})}function Zc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=g$(e,t);if(n){var r=yd(t);r.removeChild(n);}}function UF(e,t){var n=Xm.get(e);if(!n||!WF(document,n)){var r=h$("",t),o=r.parentNode;Xm.set(e,o),e.removeChild(r);}}function pi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=yd(n);UF(r,n);var o=g$(t,n);if(o){var a,i;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=h$(e,n);return l.setAttribute(f$(n),t),l}var _f;function XF(e){if(typeof document>"u")return 0;if(e||_f===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),_f=o-a;}return _f}function qF(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var YF="rc-util-locker-".concat(Date.now()),lb=0;function ZF(e){var t=!!e,n=m__namespace.useState(function(){return lb+=1,"".concat(YF,"_").concat(lb)}),r=Z(n,1),o=r[0];Kt(function(){if(t){var a=XF(),i=qF();pi(`
html body {
  overflow-y: hidden;
  `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
}`),o);}else Zc(o);return function(){Zc(o);}},[t,o]);}var cb=!1;function QF(e){return typeof e=="boolean"&&(cb=e),cb}var ub=function(t){return t===!1?!1:!Gn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},v$=m__namespace.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,l=m__namespace.useState(n),c=Z(l,2),u=c[0],d=c[1],f=u||n;m__namespace.useEffect(function(){(i||n)&&d(n);},[n,i]);var h=m__namespace.useState(function(){return ub(o)}),g=Z(h,2),v=g[0],p=g[1];m__namespace.useEffect(function(){var R=ub(o);p(R??null);});var b=VF(f&&!v),y=Z(b,2),C=y[0],$=y[1],w=v??C;ZF(r&&n&&Gn()&&(w===C||w===document.body));var E=null;if(s&&zo(s)&&t){var S=s;E=S.ref;}var x=Sa(E,t);if(!f||!Gn()||v===void 0)return null;var I=w===!1||QF(),P=s;return t&&(P=m__namespace.cloneElement(s,{ref:x})),m__namespace.createElement(u$.Provider,{value:$},I?P:IC.createPortal(P,w))});function dr(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(dr(r)):cv.isFragment(r)&&r.props?n=n.concat(dr(r.props.children,t)):n.push(r));}),n}function Qc(e){return e instanceof HTMLElement||e instanceof SVGElement}function ws(e){return Qc(e)?e:e instanceof m.Component?IC.findDOMNode(e):null}var qm=m__namespace.createContext(null);function JF(e){var t=e.children,n=e.onBatchResize,r=m__namespace.useRef(0),o=m__namespace.useRef([]),a=m__namespace.useContext(qm),i=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=[]);}),a==null||a(s,l,c);},[n,a]);return m__namespace.createElement(qm.Provider,{value:i},t)}var To=new Map;function e6(e){e.forEach(function(t){var n,r=t.target;(n=To.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var p$=new TP(e6);function t6(e,t){To.has(e)||(To.set(e,new Set),p$.observe(e)),To.get(e).add(t);}function n6(e,t){To.has(e)&&(To.get(e).delete(t),To.get(e).size||(p$.unobserve(e),To.delete(e)));}function wn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function db(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,o$(r.key),r);}}function xn(e,t,n){return t&&db(e.prototype,t),n&&db(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ym(e,t){return Ym=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ym(e,t)}function jo(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&&Ym(e,t);}function Jc(e){return Jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jc(e)}function r6(){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 Ge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o6(e,t){if(t&&(dt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ge(e)}function Bo(e){var t=r6();return function(){var r=Jc(e),o;if(t){var a=Jc(this).constructor;o=Reflect.construct(r,arguments,a);}else o=r.apply(this,arguments);return o6(this,o)}}var a6=function(e){jo(n,e);var t=Bo(n);function n(){return wn(this,n),t.apply(this,arguments)}return xn(n,[{key:"render",value:function(){return this.props.children}}]),n}(m__namespace.Component);function i6(e,t){var n=e.children,r=e.disabled,o=m__namespace.useRef(null),a=m__namespace.useRef(null),i=m__namespace.useContext(qm),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)&&zo(l),d=u?l.ref:null,f=Sa(d,o),h=function(){var b;return ws(o.current)||(o.current&&dt(o.current)==="object"?ws((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||ws(a.current)};m__namespace.useImperativeHandle(t,function(){return h()});var g=m__namespace.useRef(e);g.current=e;var v=m__namespace.useCallback(function(p){var b=g.current,y=b.onResize,C=b.data,$=p.getBoundingClientRect(),w=$.width,E=$.height,S=p.offsetWidth,x=p.offsetHeight,I=Math.floor(w),P=Math.floor(E);if(c.current.width!==I||c.current.height!==P||c.current.offsetWidth!==S||c.current.offsetHeight!==x){var R={width:I,height:P,offsetWidth:S,offsetHeight:x};c.current=R;var O=S===Math.round(w)?w:S,N=x===Math.round(E)?E:x,A=U(U({},R),{},{offsetWidth:O,offsetHeight:N});i==null||i(A,p,C),y&&Promise.resolve().then(function(){y(A,p);});}},[]);return m__namespace.useEffect(function(){var p=h();return p&&!r&&t6(p,v),function(){return n6(p,v)}},[o.current,r]),m__namespace.createElement(a6,{ref:a},u?m__namespace.cloneElement(l,{ref:f}):l)}var s6=m__namespace.forwardRef(i6),l6="rc-observer-key";function c6(e,t){var n=e.children,r=typeof n=="function"?[n]:dr(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(l6,"-").concat(a);return m__namespace.createElement(s6,Ie({},e,{key:i,ref:a===0?t:void 0}),o)})}var xr=m__namespace.forwardRef(c6);xr.Collection=JF;function b$(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function u6(e){return b$(e)instanceof ShadowRoot}function eu(e){return u6(e)?b$(e):null}function Nn(e){var t=m__namespace.useRef();t.current=e;var n=m__namespace.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function d6(){var e=U({},m__namespace);return e.useId}var fb=0,mb=d6();const f6=mb?function(t){var n=mb();return t||n}:function(t){var n=m__namespace.useState("ssr-id"),r=Z(n,2),o=r[0],a=r[1];return m__namespace.useEffect(function(){var i=fb;fb+=1,a("rc_unique_".concat(i));},[]),t||o},Cd=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 m6=["children"],y$=m__namespace.createContext({});function h6(e){var t=e.children,n=et(e,m6);return m__namespace.createElement(y$.Provider,{value:n},t)}var g6=function(e){jo(n,e);var t=Bo(n);function n(){return wn(this,n),t.apply(this,arguments)}return xn(n,[{key:"render",value:function(){return this.props.children}}]),n}(m__namespace.Component);function ia(e){var t=m__namespace.useRef(!1),n=m__namespace.useState(e),r=Z(n,2),o=r[0],a=r[1];m__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function i(s,l){l&&t.current||a(s);}return [o,i]}var Go="none",tc="appear",nc="enter",rc="leave",hb="none",_r="prepare",Za="start",Qa="active",dv="end",C$="prepared";function gb(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 v6(e,t){var n={animationend:gb("Animation","AnimationEnd"),transitionend:gb("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var p6=v6(Gn(),typeof window<"u"?window:{}),S$={};if(Gn()){var b6=document.createElement("div");S$=b6.style;}var oc={};function $$(e){if(oc[e])return oc[e];var t=p6[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in S$)return oc[e]=t[a],oc[e]}return ""}var w$=$$("animationend"),x$=$$("transitionend"),E$=!!(w$&&x$),vb=w$||"animationend",pb=x$||"transitionend";function bb(e,t){if(!e)return null;if(dt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const y6=function(e){var t=m.useRef(),n=m.useRef(e);n.current=e;var r=m__namespace.useCallback(function(i){n.current(i);},[]);function o(i){i&&(i.removeEventListener(pb,r),i.removeEventListener(vb,r));}function a(i){t.current&&t.current!==i&&o(t.current),i&&i!==t.current&&(i.addEventListener(pb,r),i.addEventListener(vb,r),t.current=i);}return m__namespace.useEffect(function(){return function(){o(t.current);}},[]),[a,o]};var I$=Gn()?m.useLayoutEffect:m.useEffect,P$=function(t){return +setTimeout(t,16)},O$=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(P$=function(t){return window.requestAnimationFrame(t)},O$=function(t){return window.cancelAnimationFrame(t)});var yb=0,fv=new Map;function M$(e){fv.delete(e);}var Pt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;yb+=1;var r=yb;function o(a){if(a===0)M$(r),t();else {var i=P$(function(){o(a-1);});fv.set(r,i);}}return o(n),r};Pt.cancel=function(e){var t=fv.get(e);return M$(e),O$(t)};const C6=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 a=Pt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1);});e.current=a;}return m__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var S6=[_r,Za,Qa,dv],$6=[_r,C$],R$=!1,w6=!0;function T$(e){return e===Qa||e===dv}const x6=function(e,t,n){var r=ia(hb),o=Z(r,2),a=o[0],i=o[1],s=C6(),l=Z(s,2),c=l[0],u=l[1];function d(){i(_r,!0);}var f=t?$6:S6;return I$(function(){if(a!==hb&&a!==dv){var h=f.indexOf(a),g=f[h+1],v=n(a);v===R$?i(g,!0):g&&c(function(p){function b(){p.isCanceled()||i(g,!0);}v===!0?b():Promise.resolve(v).then(b);});}},[e,a]),m__namespace.useEffect(function(){return function(){u();}},[]),[d,a]};function E6(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,h=r.onEnterPrepare,g=r.onLeavePrepare,v=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,C=r.onEnterActive,$=r.onLeaveActive,w=r.onAppearEnd,E=r.onEnterEnd,S=r.onLeaveEnd,x=r.onVisibleChanged,I=ia(),P=Z(I,2),R=P[0],O=P[1],N=ia(Go),A=Z(N,2),L=A[0],T=A[1],M=ia(null),_=Z(M,2),z=_[0],F=_[1],B=m.useRef(!1),H=m.useRef(null);function V(){return n()}var K=m.useRef(!1);function X(){T(Go,!0),F(null,!0);}function q(ne){var oe=V();if(!(ne&&!ne.deadline&&ne.target!==oe)){var me=K.current,pe;L===tc&&me?pe=w==null?void 0:w(oe,ne):L===nc&&me?pe=E==null?void 0:E(oe,ne):L===rc&&me&&(pe=S==null?void 0:S(oe,ne)),L!==Go&&me&&pe!==!1&&X();}}var te=y6(q),W=Z(te,1),Q=W[0],Y=function(oe){var me,pe,_e;switch(oe){case tc:return me={},j(me,_r,f),j(me,Za,v),j(me,Qa,y),me;case nc:return pe={},j(pe,_r,h),j(pe,Za,p),j(pe,Qa,C),pe;case rc:return _e={},j(_e,_r,g),j(_e,Za,b),j(_e,Qa,$),_e;default:return {}}},ie=m__namespace.useMemo(function(){return Y(L)},[L]),le=x6(L,!e,function(ne){if(ne===_r){var oe=ie[_r];return oe?oe(V()):R$}if(fe in ie){var me;F(((me=ie[fe])===null||me===void 0?void 0:me.call(ie,V(),null))||null);}return fe===Qa&&(Q(V()),u>0&&(clearTimeout(H.current),H.current=setTimeout(function(){q({deadline:!0});},u))),fe===C$&&X(),w6}),J=Z(le,2),re=J[0],fe=J[1],ee=T$(fe);K.current=ee,I$(function(){O(t);var ne=B.current;B.current=!0;var oe;!ne&&t&&s&&(oe=tc),ne&&t&&a&&(oe=nc),(ne&&!t&&c||!ne&&d&&!t&&c)&&(oe=rc);var me=Y(oe);oe&&(e||me[_r])?(T(oe),re()):T(Go);},[t]),m.useEffect(function(){(L===tc&&!s||L===nc&&!a||L===rc&&!c)&&T(Go);},[s,a,c]),m.useEffect(function(){return function(){B.current=!1,clearTimeout(H.current);}},[]);var ce=m__namespace.useRef(!1);m.useEffect(function(){R&&(ce.current=!0),R!==void 0&&L===Go&&((ce.current||R)&&(x==null||x(R)),ce.current=!0);},[R,L]);var he=z;return ie[_r]&&fe===Za&&(he=U({transition:"none"},he)),[L,fe,he,R??t]}function I6(e){var t=e;dt(e)==="object"&&(t=e.transitionSupport);function n(o,a){return !!(o.motionName&&t&&a!==!1)}var r=m__namespace.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,f=o.motionName,h=o.leavedClassName,g=o.eventProps,v=m__namespace.useContext(y$),p=v.motion,b=n(o,p),y=m.useRef(),C=m.useRef();function $(){try{return y.current instanceof HTMLElement?y.current:ws(C.current)}catch{return null}}var w=E6(b,s,$,o),E=Z(w,4),S=E[0],x=E[1],I=E[2],P=E[3],R=m__namespace.useRef(P);P&&(R.current=!0);var O=m__namespace.useCallback(function(F){y.current=F,uv(a,F);},[a]),N,A=U(U({},g),{},{visible:s});if(!d)N=null;else if(S===Go)P?N=d(U({},A),O):!c&&R.current&&h?N=d(U(U({},A),{},{className:h}),O):u||!c&&!h?N=d(U(U({},A),{},{style:{display:"none"}}),O):N=null;else {var L,T;x===_r?T="prepare":T$(x)?T="active":x===Za&&(T="start");var M=bb(f,"".concat(S,"-").concat(T));N=d(U(U({},A),{},{className:G(bb(f,S),(L={},j(L,M,M&&T),j(L,f,typeof f=="string"),L)),style:I}),O);}if(m__namespace.isValidElement(N)&&zo(N)){var _=N,z=_.ref;z||(N=m__namespace.cloneElement(N,{ref:O}));}return m__namespace.createElement(g6,{ref:C},N)});return r.displayName="CSSMotion",r}const Co=I6(E$);var Zm="add",Qm="keep",Jm="remove",Nf="removed";function P6(e){var t;return e&&dt(e)==="object"&&"key"in e?t=e:t={key:e},U(U({},t),{},{key:String(t.key)})}function eh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(P6)}function O6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=eh(e),i=eh(t);a.forEach(function(c){for(var u=!1,d=r;d<o;d+=1){var f=i[d];if(f.key===c.key){r<d&&(n=n.concat(i.slice(r,d).map(function(h){return U(U({},h),{},{status:Zm})})),r=d),n.push(U(U({},f),{},{status:Qm})),r+=1,u=!0;break}}u||n.push(U(U({},c),{},{status:Jm}));}),r<o&&(n=n.concat(i.slice(r).map(function(c){return U(U({},c),{},{status:Zm})})));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!==Jm}),n.forEach(function(u){u.key===c&&(u.status=Qm);});}),n}var M6=["component","children","onVisibleChanged","onAllRemoved"],R6=["status"],T6=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function _6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Co,n=function(r){jo(a,r);var o=Bo(a);function a(){var i;wn(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),j(Ge(i),"state",{keyEntities:[]}),j(Ge(i),"removeKey",function(u){var d=i.state.keyEntities,f=d.map(function(h){return h.key!==u?h:U(U({},h),{},{status:Nf})});return i.setState({keyEntities:f}),f.filter(function(h){var g=h.status;return g!==Nf}).length}),i}return xn(a,[{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,g=et(c,M6),v=u||m__namespace.Fragment,p={};return T6.forEach(function(b){p[b]=g[b],delete g[b];}),delete g.keys,m__namespace.createElement(v,g,l.map(function(b,y){var C=b.status,$=et(b,R6),w=C===Zm||C===Qm;return m__namespace.createElement(t,Ie({},p,{key:$.key,visible:w,eventProps:$,onVisibleChanged:function(S){if(f==null||f(S,{key:$.key}),!S){var x=s.removeKey($.key);x===0&&h&&h();}}}),function(E,S){return d(U(U({},E),{},{index:y}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=eh(c),f=O6(u,d);return {keyEntities:f.filter(function(h){var g=u.find(function(v){var p=v.key;return h.key===p});return !(g&&g.status===Nf&&h.status===Jm)})}}}]),a}(m__namespace.Component);return j(n,"defaultProps",{component:"div"}),n}_6(E$);function N6(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.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 g=n.points[0],v=n.points[1],p=g[0],b=g[1],y=v[0],C=v[1];p===y||!["t","b"].includes(p)?h.top=d:p==="t"?h.top=0:h.bottom=0,b===C||!["l","r"].includes(b)?h.left=c:b==="l"?h.left=0:h.right=0;}return m__namespace.createElement("div",{ref:f,className:G("".concat(t,"-arrow"),i),style:h},s)}function k6(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?m__namespace.createElement(Co,Ie({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return m__namespace.createElement("div",{style:{zIndex:r},className:G("".concat(t,"-mask"),s)})}):null}var A6=m__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),L6=m__namespace.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,h=e.arrow,g=e.arrowPos,v=e.align,p=e.motion,b=e.maskMotion,y=e.forceRender,C=e.getPopupContainer,$=e.autoDestroy,w=e.portal,E=e.zIndex,S=e.onMouseEnter,x=e.onMouseLeave,I=e.onPointerEnter,P=e.ready,R=e.offsetX,O=e.offsetY,N=e.offsetR,A=e.offsetB,L=e.onAlign,T=e.onPrepare,M=e.stretch,_=e.targetWidth,z=e.targetHeight,F=typeof n=="function"?n():n,B=l||c,H=(C==null?void 0:C.length)>0,V=m__namespace.useState(!C||!H),K=Z(V,2),X=K[0],q=K[1];if(Kt(function(){!X&&H&&i&&q(!0);},[X,H,i]),!X)return null;var te="auto",W={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(P||!l){var Q,Y=v.points,ie=v.dynamicInset||((Q=v._experimental)===null||Q===void 0?void 0:Q.dynamicInset),le=ie&&Y[0][1]==="r",J=ie&&Y[0][0]==="b";le?(W.right=N,W.left=te):(W.left=R,W.right=te),J?(W.bottom=A,W.top=te):(W.top=O,W.bottom=te);}var re={};return M&&(M.includes("height")&&z?re.height=z:M.includes("minHeight")&&z&&(re.minHeight=z),M.includes("width")&&_?re.width=_:M.includes("minWidth")&&_&&(re.minWidth=_)),l||(re.pointerEvents="none"),m__namespace.createElement(w,{open:y||B,getContainer:C&&function(){return C(i)},autoDestroy:$},m__namespace.createElement(k6,{prefixCls:o,open:l,zIndex:E,mask:f,motion:b}),m__namespace.createElement(xr,{onResize:L,disabled:!l},function(fe){return m__namespace.createElement(Co,Ie({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:T,onEnterPrepare:T,visible:l,onVisibleChanged:function(ce){var he;p==null||(he=p.onVisibleChanged)===null||he===void 0||he.call(p,ce),s(ce);}}),function(ee,ce){var he=ee.className,ne=ee.style,oe=G(o,he,r);return m__namespace.createElement("div",{ref:Xn(fe,t,ce),className:oe,style:U(U(U(U({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},W),re),ne),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:S,onMouseLeave:x,onPointerEnter:I,onClick:d},h&&m__namespace.createElement(N6,{prefixCls:o,arrow:h,arrowPos:g,align:v}),m__namespace.createElement(A6,{cache:!l&&!u},F))})}))}),D6=m__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=zo(n),a=m__namespace.useCallback(function(s){uv(t,r?r(s):s);},[r]),i=Sa(a,n.ref);return o?m__namespace.cloneElement(n,{ref:i}):n}),Cb=m__namespace.createContext(null);function Sb(e){return e?Array.isArray(e)?e:[e]:[]}function F6(e,t,n,r){return m__namespace.useMemo(function(){var o=Sb(n??t),a=Sb(r??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}const mv=function(e){if(!e)return !1;if(e instanceof Element){if(e.offsetParent)return !0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return !0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return !0}}return !1};function z6(){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 j6(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,l=a[i];if(z6((s=e[l])===null||s===void 0?void 0:s.points,o,r))return "".concat(t,"-placement-").concat(l)}return ""}function $b(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function gl(e){return e.ownerDocument.defaultView}function th(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=gl(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement;}return t}function js(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function rs(e){return js(parseFloat(e),0)}function wb(e,t){var n=U({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=gl(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,h=r.clientHeight,g=r.offsetWidth,v=r.clientWidth,p=rs(s),b=rs(l),y=rs(c),C=rs(u),$=js(Math.round(d.width/g*1e3)/1e3),w=js(Math.round(d.height/f*1e3)/1e3),E=(g-v-y-C)*$,S=(f-h-p-b)*w,x=p*w,I=b*w,P=y*$,R=C*$,O=0,N=0;if(a==="clip"){var A=rs(i);O=A*$,N=A*w;}var L=d.x+P-O,T=d.y+x-N,M=L+d.width+2*O-P-R-E,_=T+d.height+2*N-x-I-S;n.left=Math.max(n.left,L),n.top=Math.max(n.top,T),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,_);}}),n}function xb(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 Eb(e,t){var n=t||[],r=Z(n,2),o=r[0],a=r[1];return [xb(e.width,o),xb(e.height,a)]}function Ib(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function Ta(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function wo(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 B6(e,t,n,r,o,a,i){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=Z(s,2),c=l[0],u=l[1],d=m__namespace.useRef(0),f=m__namespace.useMemo(function(){return t?th(t):[]},[t]),h=m__namespace.useRef({}),g=function(){h.current={};};e||g();var v=Nn(function(){if(t&&n&&e){let pr=function(io,Ho){var Ma=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oe,Ra=F.x+io,Qi=F.y+Ho,Ji=Ra+Q,Xl=Qi+W,vf=Math.max(Ra,Ma.left),pf=Math.max(Qi,Ma.top),bf=Math.min(Ji,Ma.right),yf=Math.min(Xl,Ma.bottom);return Math.max(0,(bf-vf)*(yf-pf))},Ul=function(){ft=F.y+ge,st=ft+W,Le=F.x+Ne,Ee=Le+Q;};var y,C,$=t,w=$.ownerDocument,E=gl($),S=E.getComputedStyle($),x=S.width,I=S.height,P=S.position,R=$.style.left,O=$.style.top,N=$.style.right,A=$.style.bottom,L=$.style.overflow,T=U(U({},o[r]),a),M=w.createElement("div");(y=$.parentElement)===null||y===void 0||y.appendChild(M),M.style.left="".concat($.offsetLeft,"px"),M.style.top="".concat($.offsetTop,"px"),M.style.position=P,M.style.height="".concat($.offsetHeight,"px"),M.style.width="".concat($.offsetWidth,"px"),$.style.left="0",$.style.top="0",$.style.right="auto",$.style.bottom="auto",$.style.overflow="hidden";var _;if(Array.isArray(n))_={x:n[0],y:n[1],width:0,height:0};else {var z=n.getBoundingClientRect();_={x:z.x,y:z.y,width:z.width,height:z.height};}var F=$.getBoundingClientRect(),B=w.documentElement,H=B.clientWidth,V=B.clientHeight,K=B.scrollWidth,X=B.scrollHeight,q=B.scrollTop,te=B.scrollLeft,W=F.height,Q=F.width,Y=_.height,ie=_.width,le={left:0,top:0,right:H,bottom:V},J={left:-te,top:-q,right:K-te,bottom:X-q},re=T.htmlRegion,fe="visible",ee="visibleFirst";re!=="scroll"&&re!==ee&&(re=fe);var ce=re===ee,he=wb(J,f),ne=wb(le,f),oe=re===fe?ne:he,me=ce?ne:oe;$.style.left="auto",$.style.top="auto",$.style.right="0",$.style.bottom="0";var pe=$.getBoundingClientRect();$.style.left=R,$.style.top=O,$.style.right=N,$.style.bottom=A,$.style.overflow=L,(C=$.parentElement)===null||C===void 0||C.removeChild(M);var _e=js(Math.round(Q/parseFloat(x)*1e3)/1e3),Ve=js(Math.round(W/parseFloat(I)*1e3)/1e3);if(_e===0||Ve===0||Qc(n)&&!mv(n))return;var He=T.offset,Me=T.targetOffset,Qe=Eb(F,He),Xe=Z(Qe,2),We=Xe[0],Pe=Xe[1],Ce=Eb(_,Me),je=Z(Ce,2),it=je[0],vt=je[1];_.x-=it,_.y-=vt;var nt=T.points||[],Je=Z(nt,2),yt=Je[0],$t=Je[1],ct=Ib($t),pt=Ib(yt),xt=Ta(_,ct),Oe=Ta(F,pt),Re=U({},T),Ne=xt.x-Oe.x+We,ge=xt.y-Oe.y+Pe,Fe=pr(Ne,ge),xe=pr(Ne,ge,ne),de=Ta(_,["t","l"]),ae=Ta(F,["t","l"]),be=Ta(_,["b","r"]),Se=Ta(F,["b","r"]),we=T.overflow||{},qe=we.adjustX,Ye=we.adjustY,ke=we.shiftX,Be=we.shiftY,rt=function(Ho){return typeof Ho=="boolean"?Ho:Ho>=0},ft,st,Le,Ee;Ul();var ye=rt(Ye),$e=pt[0]===ct[0];if(ye&&pt[0]==="t"&&(st>me.bottom||h.current.bt)){var ze=ge;$e?ze-=W-Y:ze=de.y-Se.y-Pe;var ht=pr(Ne,ze),_t=pr(Ne,ze,ne);ht>Fe||ht===Fe&&(!ce||_t>=xe)?(h.current.bt=!0,ge=ze,Pe=-Pe,Re.points=[wo(pt,0),wo(ct,0)]):h.current.bt=!1;}if(ye&&pt[0]==="b"&&(ft<me.top||h.current.tb)){var Ot=ge;$e?Ot+=W-Y:Ot=be.y-ae.y-Pe;var dn=pr(Ne,Ot),sn=pr(Ne,Ot,ne);dn>Fe||dn===Fe&&(!ce||sn>=xe)?(h.current.tb=!0,ge=Ot,Pe=-Pe,Re.points=[wo(pt,0),wo(ct,0)]):h.current.tb=!1;}var fn=rt(qe),jn=pt[1]===ct[1];if(fn&&pt[1]==="l"&&(Ee>me.right||h.current.rl)){var Cn=Ne;jn?Cn-=Q-ie:Cn=de.x-Se.x-We;var Vr=pr(Cn,ge),ao=pr(Cn,ge,ne);Vr>Fe||Vr===Fe&&(!ce||ao>=xe)?(h.current.rl=!0,Ne=Cn,We=-We,Re.points=[wo(pt,1),wo(ct,1)]):h.current.rl=!1;}if(fn&&pt[1]==="r"&&(Le<me.left||h.current.lr)){var Bn=Ne;jn?Bn+=Q-ie:Bn=be.x-ae.x-We;var $o=pr(Bn,ge),Pr=pr(Bn,ge,ne);$o>Fe||$o===Fe&&(!ce||Pr>=xe)?(h.current.lr=!0,Ne=Bn,We=-We,Re.points=[wo(pt,1),wo(ct,1)]):h.current.lr=!1;}Ul();var er=ke===!0?0:ke;typeof er=="number"&&(Le<ne.left&&(Ne-=Le-ne.left-We,_.x+ie<ne.left+er&&(Ne+=_.x-ne.left+ie-er)),Ee>ne.right&&(Ne-=Ee-ne.right-We,_.x>ne.right-er&&(Ne+=_.x-ne.right+er)));var gr=Be===!0?0:Be;typeof gr=="number"&&(ft<ne.top&&(ge-=ft-ne.top-Pe,_.y+Y<ne.top+gr&&(ge+=_.y-ne.top+Y-gr)),st>ne.bottom&&(ge-=st-ne.bottom-Pe,_.y>ne.bottom-gr&&(ge+=_.y-ne.bottom+gr)));var Wr=F.x+Ne,Gr=Wr+Q,qn=F.y+ge,Kr=qn+W,gt=_.x,De=gt+ie,at=_.y,Ct=at+Y,wt=Math.max(Wr,gt),kt=Math.min(Gr,De),Jt=(wt+kt)/2,Hn=Jt-Wr,Yn=Math.max(qn,at),Or=Math.min(Kr,Ct),vr=(Yn+Or)/2,Oa=vr-qn;i==null||i(t,Re);var Kl=pe.right-F.x-(Ne+F.width),gf=pe.bottom-F.y-(ge+F.height);u({ready:!0,offsetX:Ne/_e,offsetY:ge/Ve,offsetR:Kl/_e,offsetB:gf/Ve,arrowX:Hn/_e,arrowY:Oa/Ve,scaleX:_e,scaleY:Ve,align:Re});}}),p=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&v();});},b=function(){u(function(C){return U(U({},C),{},{ready:!1})});};return Kt(b,[r]),Kt(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 H6(e,t,n,r,o){Kt(function(){if(e&&t&&n){let d=function(){r(),o();};var a=t,i=n,s=th(a),l=th(i),c=gl(i),u=new Set([c].concat(Te(s),Te(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 V6(e,t,n,r,o,a,i,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||a)){var u=function(){var E=!1,S=function(P){var R=P.target;E=i(R);},x=function(P){var R=P.target;!c.current&&l.current&&!E&&!i(R)&&s(!1);};return [S,x]},d=u(),f=Z(d,2),h=f[0],g=f[1],v=u(),p=Z(v,2),b=p[0],y=p[1],C=gl(r);C.addEventListener("mousedown",h,!0),C.addEventListener("click",g,!0),C.addEventListener("contextmenu",g,!0);var $=eu(n);return $&&($.addEventListener("mousedown",b,!0),$.addEventListener("click",y,!0),$.addEventListener("contextmenu",y,!0)),function(){C.removeEventListener("mousedown",h,!0),C.removeEventListener("click",g,!0),C.removeEventListener("contextmenu",g,!0),$&&($.removeEventListener("mousedown",b,!0),$.removeEventListener("click",y,!0),$.removeEventListener("contextmenu",y,!0));}}},[t,n,r,o,a]);}var W6=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function G6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v$,t=m__namespace.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=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,g=n.afterPopupVisibleChange,v=n.mouseEnterDelay,p=n.mouseLeaveDelay,b=p===void 0?.1:p,y=n.focusDelay,C=n.blurDelay,$=n.mask,w=n.maskClosable,E=w===void 0?!0:w,S=n.getPopupContainer,x=n.forceRender,I=n.autoDestroy,P=n.destroyPopupOnHide,R=n.popup,O=n.popupClassName,N=n.popupStyle,A=n.popupPlacement,L=n.builtinPlacements,T=L===void 0?{}:L,M=n.popupAlign,_=n.zIndex,z=n.stretch,F=n.getPopupClassNameFromAlign,B=n.fresh,H=n.alignPoint,V=n.onPopupClick,K=n.onPopupAlign,X=n.arrow,q=n.popupMotion,te=n.maskMotion,W=n.popupTransitionName,Q=n.popupAnimation,Y=n.maskTransitionName,ie=n.maskAnimation,le=n.className,J=n.getTriggerDOMNode,re=et(n,W6),fe=I||P||!1,ee=m__namespace.useState(!1),ce=Z(ee,2),he=ce[0],ne=ce[1];Kt(function(){ne(Cd());},[]);var oe=m__namespace.useRef({}),me=m__namespace.useContext(Cb),pe=m__namespace.useMemo(function(){return {registerSubPopup:function(bt,tn){oe.current[bt]=tn,me==null||me.registerSubPopup(bt,tn);}}},[me]),_e=f6(),Ve=m__namespace.useState(null),He=Z(Ve,2),Me=He[0],Qe=He[1],Xe=Nn(function(Ue){Qc(Ue)&&Me!==Ue&&Qe(Ue),me==null||me.registerSubPopup(_e,Ue);}),We=m__namespace.useState(null),Pe=Z(We,2),Ce=Pe[0],je=Pe[1],it=m__namespace.useRef(null),vt=Nn(function(Ue){Qc(Ue)&&Ce!==Ue&&(je(Ue),it.current=Ue);}),nt=m__namespace.Children.only(i),Je=(nt==null?void 0:nt.props)||{},yt={},$t=Nn(function(Ue){var bt,tn,vn=Ce;return (vn==null?void 0:vn.contains(Ue))||((bt=eu(vn))===null||bt===void 0?void 0:bt.host)===Ue||Ue===vn||(Me==null?void 0:Me.contains(Ue))||((tn=eu(Me))===null||tn===void 0?void 0:tn.host)===Ue||Ue===Me||Object.values(oe.current).some(function(nn){return (nn==null?void 0:nn.contains(Ue))||Ue===nn})}),ct=$b(a,q,Q,W),pt=$b(a,te,ie,Y),xt=m__namespace.useState(f||!1),Oe=Z(xt,2),Re=Oe[0],Ne=Oe[1],ge=d??Re,Fe=Nn(function(Ue){d===void 0&&Ne(Ue);});Kt(function(){Ne(d||!1);},[d]);var xe=m__namespace.useRef(ge);xe.current=ge;var de=m__namespace.useRef([]);de.current=[];var ae=Nn(function(Ue){var bt;Fe(Ue),((bt=de.current[de.current.length-1])!==null&&bt!==void 0?bt:ge)!==Ue&&(de.current.push(Ue),h==null||h(Ue));}),be=m__namespace.useRef(),Se=function(){clearTimeout(be.current);},we=function(bt){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Se(),tn===0?ae(bt):be.current=setTimeout(function(){ae(bt);},tn*1e3);};m__namespace.useEffect(function(){return Se},[]);var qe=m__namespace.useState(!1),Ye=Z(qe,2),ke=Ye[0],Be=Ye[1];Kt(function(Ue){(!Ue||ge)&&Be(!0);},[ge]);var rt=m__namespace.useState(null),ft=Z(rt,2),st=ft[0],Le=ft[1],Ee=m__namespace.useState([0,0]),ye=Z(Ee,2),$e=ye[0],ze=ye[1],ht=function(bt){ze([bt.clientX,bt.clientY]);},_t=B6(ge,Me,H?$e:Ce,A,T,M,K),Ot=Z(_t,11),dn=Ot[0],sn=Ot[1],fn=Ot[2],jn=Ot[3],Cn=Ot[4],Vr=Ot[5],ao=Ot[6],Bn=Ot[7],$o=Ot[8],Pr=Ot[9],er=Ot[10],gr=F6(he,l,c,u),Wr=Z(gr,2),Gr=Wr[0],qn=Wr[1],Kr=Gr.has("click"),gt=qn.has("click")||qn.has("contextMenu"),De=Nn(function(){ke||er();}),at=function(){xe.current&&H&&gt&&we(!1);};H6(ge,Ce,Me,De,at),Kt(function(){De();},[$e,A]),Kt(function(){ge&&!(T!=null&&T[A])&&De();},[JSON.stringify(M)]);var Ct=m__namespace.useMemo(function(){var Ue=j6(T,a,Pr,H);return G(Ue,F==null?void 0:F(Pr))},[Pr,F,T,a,H]);m__namespace.useImperativeHandle(r,function(){return {nativeElement:it.current,forceAlign:De}});var wt=m__namespace.useState(0),kt=Z(wt,2),Jt=kt[0],Hn=kt[1],Yn=m__namespace.useState(0),Or=Z(Yn,2),vr=Or[0],Oa=Or[1],Kl=function(){if(z&&Ce){var bt=Ce.getBoundingClientRect();Hn(bt.width),Oa(bt.height);}},gf=function(){Kl(),De();},pr=function(bt){Be(!1),er(),g==null||g(bt);},Ul=function(){return new Promise(function(bt){Kl(),Le(function(){return bt});})};Kt(function(){st&&(er(),st(),Le(null));},[st]);function io(Ue,bt,tn,vn){yt[Ue]=function(nn){var ql;vn==null||vn(nn),we(bt,tn);for(var Cf=arguments.length,o0=new Array(Cf>1?Cf-1:0),Yl=1;Yl<Cf;Yl++)o0[Yl-1]=arguments[Yl];(ql=Je[Ue])===null||ql===void 0||ql.call.apply(ql,[Je,nn].concat(o0));};}(Kr||gt)&&(yt.onClick=function(Ue){var bt;xe.current&&gt?we(!1):!xe.current&&Kr&&(ht(Ue),we(!0));for(var tn=arguments.length,vn=new Array(tn>1?tn-1:0),nn=1;nn<tn;nn++)vn[nn-1]=arguments[nn];(bt=Je.onClick)===null||bt===void 0||bt.call.apply(bt,[Je,Ue].concat(vn));}),V6(ge,gt,Ce,Me,$,E,$t,we);var Ho=Gr.has("hover"),Ma=qn.has("hover"),Ra,Qi;Ho&&(io("onMouseEnter",!0,v,function(Ue){ht(Ue);}),io("onPointerEnter",!0,v,function(Ue){ht(Ue);}),Ra=function(){(ge||ke)&&we(!0,v);},H&&(yt.onMouseMove=function(Ue){var bt;(bt=Je.onMouseMove)===null||bt===void 0||bt.call(Je,Ue);})),Ma&&(io("onMouseLeave",!1,b),io("onPointerLeave",!1,b),Qi=function(){we(!1,b);}),Gr.has("focus")&&io("onFocus",!0,y),qn.has("focus")&&io("onBlur",!1,C),Gr.has("contextMenu")&&(yt.onContextMenu=function(Ue){var bt;xe.current&&qn.has("contextMenu")?we(!1):(ht(Ue),we(!0)),Ue.preventDefault();for(var tn=arguments.length,vn=new Array(tn>1?tn-1:0),nn=1;nn<tn;nn++)vn[nn-1]=arguments[nn];(bt=Je.onContextMenu)===null||bt===void 0||bt.call.apply(bt,[Je,Ue].concat(vn));}),le&&(yt.className=G(Je.className,le));var Ji=U(U({},Je),yt),Xl={},vf=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];vf.forEach(function(Ue){re[Ue]&&(Xl[Ue]=function(){for(var bt,tn=arguments.length,vn=new Array(tn),nn=0;nn<tn;nn++)vn[nn]=arguments[nn];(bt=Ji[Ue])===null||bt===void 0||bt.call.apply(bt,[Ji].concat(vn)),re[Ue].apply(re,vn);});});var pf=m__namespace.cloneElement(nt,U(U({},Ji),Xl)),bf={x:Vr,y:ao},yf=X?U({},X!==!0?X:{}):null;return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(xr,{disabled:!ge,ref:vt,onResize:gf},m__namespace.createElement(D6,{getTriggerDOMNode:J},pf)),m__namespace.createElement(Cb.Provider,{value:pe},m__namespace.createElement(L6,{portal:e,ref:Xe,prefixCls:a,popup:R,className:G(O,Ct),style:N,target:Ce,onMouseEnter:Ra,onMouseLeave:Qi,onPointerEnter:Ra,zIndex:_,open:ge,keepDom:ke,fresh:B,onClick:V,mask:$,motion:ct,maskMotion:pt,onVisibleChanged:pr,onPrepare:Ul,forceRender:x,autoDestroy:fe,getPopupContainer:S,align:Pr,arrow:yf,arrowPos:bf,ready:dn,offsetX:sn,offsetY:fn,offsetR:jn,offsetB:Cn,onAlign:De,stretch:z,targetWidth:Jt/Bn,targetHeight:vr/$o})))});return t}const Sd=G6(v$);var _a={shiftX:64,adjustY:1},Na={adjustX:1,shiftY:!0},br=[0,0],K6={left:{points:["cr","cl"],overflow:Na,offset:[-4,0],targetOffset:br},right:{points:["cl","cr"],overflow:Na,offset:[4,0],targetOffset:br},top:{points:["bc","tc"],overflow:_a,offset:[0,-4],targetOffset:br},bottom:{points:["tc","bc"],overflow:_a,offset:[0,4],targetOffset:br},topLeft:{points:["bl","tl"],overflow:_a,offset:[0,-4],targetOffset:br},leftTop:{points:["tr","tl"],overflow:Na,offset:[-4,0],targetOffset:br},topRight:{points:["br","tr"],overflow:_a,offset:[0,-4],targetOffset:br},rightTop:{points:["tl","tr"],overflow:Na,offset:[4,0],targetOffset:br},bottomRight:{points:["tr","br"],overflow:_a,offset:[0,4],targetOffset:br},rightBottom:{points:["bl","br"],overflow:Na,offset:[4,0],targetOffset:br},bottomLeft:{points:["tl","bl"],overflow:_a,offset:[0,4],targetOffset:br},leftBottom:{points:["br","bl"],overflow:Na,offset:[-4,0],targetOffset:br}},U6=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],X6=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,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,g=t.onVisibleChange,v=t.afterVisibleChange,p=t.transitionName,b=t.animation,y=t.motion,C=t.placement,$=C===void 0?"right":C,w=t.align,E=w===void 0?{}:w,S=t.destroyTooltipOnHide,x=S===void 0?!1:S,I=t.defaultVisible,P=t.getTooltipContainer,R=t.overlayInnerStyle;t.arrowContent;var O=t.overlay,N=t.id,A=t.showArrow,L=A===void 0?!0:A,T=et(t,U6),M=m.useRef(null);m.useImperativeHandle(n,function(){return M.current});var _=U({},T);"visible"in t&&(_.popupVisible=t.visible);var z=function(){return m__namespace.createElement(av,{key:"content",prefixCls:f,id:N,overlayInnerStyle:R},O)};return m__namespace.createElement(Sd,Ie({popupClassName:r,prefixCls:f,popup:z,action:a,builtinPlacements:K6,popupPlacement:$,ref:M,popupAlign:E,getPopupContainer:P,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:I,autoDestroy:x,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:L},_),h)};const q6=m.forwardRef(X6);function kf(e){return e!==void 0}function Ut(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=ia(function(){return kf(o)?o:kf(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=Z(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,f=i?i(d):d,h=Nn(a),g=ia([d]),v=Z(g,2),p=v[0],b=v[1];ai(function(){var C=p[0];c!==C&&h(c,C);},[p]),ai(function(){kf(o)||u(o);},[o]);var y=Nn(function(C,$){u(C,$),b([d],$);});return [f,y]}function hv(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 vl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(Sn(!l,"Warning: There may be circular references"),l)return !1;if(a===i)return !0;if(n&&s>1)return !1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return !1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return !1;return !0}if(a&&i&&dt(a)==="object"&&dt(i)==="object"){var d=Object.keys(a);return d.length!==Object.keys(i).length?!1:d.every(function(f){return o(a[f],i[f],c)})}return !1}return o(e,t)}var Pb="%",Y6=function(){function e(t){wn(this,e),j(this,"instanceId",void 0),j(this,"cache",new Map),this.instanceId=t;}return xn(e,[{key:"get",value:function(n){return this.cache.get(n.join(Pb))||null}},{key:"update",value:function(n,r){var o=n.join(Pb),a=this.cache.get(o),i=r(a);i===null?this.cache.delete(o):this.cache.set(o,i);}}]),e}(),nh="data-token-hash",sa="data-css-hash",Ja="__cssinjs_instance__";function Z6(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(sa,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ja]=o[Ja]||e,o[Ja]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(sa,"]"))).forEach(function(o){var a=o.getAttribute(sa);if(r[a]){if(o[Ja]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o);}}else r[a]=!0;});}return new Y6(e)}var Q6=m__namespace.createContext({hashPriority:"low",cache:Z6(),defaultCache:!0});const gv=Q6;function J6(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 vv=function(){function e(){wn(this,e),j(this,"cache",void 0),j(this,"keys",void 0),j(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return xn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else {var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s);}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return (r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return !!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var d=Z(c,2),f=d[1];return o.internalGet(u)[1]<f?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=Z(a,1),s=i[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 a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return (!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return !J6(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();j(vv,"MAX_CACHE_SIZE",20);j(vv,"MAX_CACHE_OFFSET",5);var Ob=0,_$=function(){function e(t){wn(this,e),j(this,"derivatives",void 0),j(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ob,t.length===0&&(t.length>0,void 0),Ob+=1;}return xn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Af=new vv;function Bs(e){var t=Array.isArray(e)?e:[e];return Af.has(t)||Af.set(t,new _$(t)),Af.get(t)}var ez=new WeakMap,Lf={};function tz(e,t){for(var n=ez,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o);}return n.has(Lf)||n.set(Lf,e()),n.get(Lf)}var Mb=new WeakMap;function tu(e){var t=Mb.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof _$?t+=r.id:r&&dt(r)==="object"?t+=tu(r):t+=r;}),Mb.set(e,t)),t}function nz(e,t){return hv("".concat(t,"_").concat(tu(e)))}var xs="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),N$="_bAmBoO_";function rz(e,t,n){if(Gn()){var r,o;pi(e,xs);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t==null||t(a),document.body.appendChild(a);var i=n?n(a):(r=getComputedStyle(a).content)===null||r===void 0?void 0:r.includes(N$);return (o=a.parentNode)===null||o===void 0||o.removeChild(a),Zc(xs),i}return !1}var Df=void 0;function oz(){return Df===void 0&&(Df=rz("@layer ".concat(xs," { .").concat(xs,' { content: "').concat(N$,'"!important; } }'),function(e){e.className=xs;})),Df}var az=U({},m__namespace),Rb=az.useInsertionEffect,iz=function(t,n,r){m__namespace.useMemo(t,r),Kt(function(){return n(!0)},r);},sz=Rb?function(e,t,n){return Rb(function(){return e(),t()},n)}:iz;const lz=sz;var cz=U({},m__namespace),uz=cz.useInsertionEffect,dz=function(t){var n=[],r=!1;function o(a){r||n.push(a);}return m__namespace.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()});}},t),o},fz=function(){return function(t){t();}},mz=typeof uz<"u"?dz:fz;const hz=mz;function k$(e,t,n,r,o){var a=m__namespace.useContext(gv),i=a.cache,s=[e].concat(Te(t)),l=s.join("_"),c=hz([l]),u=function(g){i.update(s,function(v){var p=v||[],b=Z(p,2),y=b[0],C=y===void 0?0:y,$=b[1],w=$,E=w||n(),S=[C,E];return g?g(S):S});};m__namespace.useMemo(function(){u();},[l]);var d=i.get(s),f=d[1];return lz(function(){o==null||o(f);},function(h){return u(function(g){var v=Z(g,2),p=v[0],b=v[1];return h&&p===0&&(o==null||o(f)),[p+1,b]}),function(){i.update(s,function(g){var v=g||[],p=Z(v,2),b=p[0],y=b===void 0?0:b,C=p[1],$=y-1;return $===0?(c(function(){return r==null?void 0:r(C,!1)}),null):[y-1,C]});}},[l]),f}var gz={},vz="css",Xo=new Map;function pz(e){Xo.set(e,(Xo.get(e)||0)+1);}function bz(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(nh,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ja]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}var yz=0;function Cz(e,t){Xo.set(e,(Xo.get(e)||0)-1);var n=Array.from(Xo.keys()),r=n.filter(function(o){var a=Xo.get(o)||0;return a<=0});n.length-r.length>yz&&r.forEach(function(o){bz(o,t),Xo.delete(o);});}var A$=function(t,n,r,o){var a=r.getDerivativeToken(t),i=U(U({},a),n);return o&&(i=o(i)),i};function Sz(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=m.useContext(gv),o=r.cache.instanceId,a=n.salt,i=a===void 0?"":a,s=n.override,l=s===void 0?gz:s,c=n.formatToken,u=n.getComputedToken,d=tz(function(){return Object.assign.apply(Object,[{}].concat(Te(t)))},t),f=tu(d),h=tu(l),g=k$("token",[i,e.id,f,h],function(){var v=u?u(d,l,e):A$(d,l,e,c),p=nz(v,i);v._tokenKey=p,pz(p);var b="".concat(vz,"-").concat(hv(p));return v._hashId=b,[v,b]},function(v){Cz(v[0]._tokenKey,o);});return g}var $z={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},Tb="data-ant-cssinjs-cache-path",L$="_FILE_STYLE__",la,D$=!0;function wz(){if(!la&&(la={},Gn())){var e=document.createElement("div");e.className=Tb,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=Z(a,2),s=i[0],l=i[1];la[s]=l;});var n=document.querySelector("style[".concat(Tb,"]"));if(n){var r;D$=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n);}document.body.removeChild(e);}}function xz(e){return wz(),!!la[e]}function Ez(e){var t=la[e],n=null;if(t&&Gn())if(D$)n=L$;else {var r=document.querySelector("style[".concat(sa,'="').concat(la[e],'"]'));r?n=r.innerHTML:delete la[e];}return [n,t]}var _b=Gn(),Iz="_skip_check_",F$="_multi_value_";function Nb(e){var t=oa(LC(e),DC);return t.replace(/\{%%%\:[^;];}/g,";")}function Pz(e){return dt(e)==="object"&&e&&(Iz in e||F$ in e)}function Oz(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,l=i.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(Te(l.slice(1))).join(" ")});return a.join(",")}var Mz=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,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 g(C){var $=C.getName(s);if(!h[$]){var w=e(C.style,n,{root:!1,parentSelectors:i}),E=Z(w,1),S=E[0];h[$]="@keyframes ".concat(C.getName(s)).concat(S);}}function v(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(w){Array.isArray(w)?v(w,$):w&&$.push(w);}),$}var p=v(Array.isArray(t)?t:[t]);if(p.forEach(function(C){var $=typeof C=="string"&&!o?{}:C;if(typeof $=="string")f+="".concat($,`
`);else if($._keyframe)g($);else {var w=d.reduce(function(E,S){var x;return (S==null||(x=S.visit)===null||x===void 0?void 0:x.call(S,E))||E},$);Object.keys(w).forEach(function(E){var S=w[E];if(dt(S)==="object"&&S&&(E!=="animationName"||!S._keyframe)&&!Pz(S)){var x=!1,I=E.trim(),P=!1;(o||a)&&s?I.startsWith("@")?x=!0:I=Oz(E,s,c):o&&!s&&(I==="&"||I==="")&&(I="",P=!0);var R=e(S,n,{root:P,injectHash:x,parentSelectors:[].concat(Te(i),[I])}),O=Z(R,2),N=O[0],A=O[1];h=U(U({},h),A),f+="".concat(I).concat(N);}else {let M=function(_,z){var F=_.replace(/[A-Z]/g,function(H){return "-".concat(H.toLowerCase())}),B=z;!$z[_]&&typeof B=="number"&&B!==0&&(B="".concat(B,"px")),_==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(g(z),B=z.getName(s)),f+="".concat(F,":").concat(B,";");};var L,T=(L=S==null?void 0:S.value)!==null&&L!==void 0?L:S;dt(S)==="object"&&S!==null&&S!==void 0&&S[F$]&&Array.isArray(T)?T.forEach(function(_){M(E,_);}):M(E,T);}});}}),!o)f="{".concat(f,"}");else if(l&&oz()){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 Rz(e,t){return hv("".concat(e.join("%")).concat(t))}function Tz(){return null}function rh(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=m__namespace.useContext(gv),d=u.autoClear;u.mock;var f=u.defaultCache,h=u.hashPriority,g=u.container,v=u.ssrInline,p=u.transformers,b=u.linters,y=u.cache,C=n._tokenKey,$=[C].concat(Te(r)),w=_b,E=k$("style",$,function(){var R=$.join("|");if(xz(R)){var O=Ez(R),N=Z(O,2),A=N[0],L=N[1];if(A)return [A,C,L,{},s,c]}var T=t(),M=Mz(T,{hashId:o,hashPriority:h,layer:a,path:r.join("-"),transformers:p,linters:b}),_=Z(M,2),z=_[0],F=_[1],B=Nb(z),H=Rz($,B);return [B,C,H,F,s,c]},function(R,O){var N=Z(R,3),A=N[2];(O||d)&&_b&&Zc(A,{mark:sa});},function(R){var O=Z(R,4),N=O[0];O[1];var A=O[2],L=O[3];if(w&&N!==L$){var T={mark:sa,prepend:"queue",attachTo:g,priority:c},M=typeof i=="function"?i():i;M&&(T.csp={nonce:M});var _=pi(N,A,T);_[Ja]=y.instanceId,_.setAttribute(nh,C),Object.keys(L).forEach(function(z){pi(Nb(L[z]),"_effect-".concat(z),T);});}}),S=Z(E,3),x=S[0],I=S[1],P=S[2];return function(R){var O;if(!v||w||!f)O=m__namespace.createElement(Tz,null);else {var N;O=m__namespace.createElement("style",Ie({},(N={},j(N,nh,I),j(N,sa,P),N),{dangerouslySetInnerHTML:{__html:x}}));}return m__namespace.createElement(m__namespace.Fragment,null,O,R)}}var Nt=function(){function e(t,n){wn(this,e),j(this,"name",void 0),j(this,"style",void 0),j(this,"_keyframe",!0),this.name=t,this.style=n;}return xn(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 ka(e){return e.notSplit=!0,e}ka(["borderTop","borderBottom"]),ka(["borderTop"]),ka(["borderBottom"]),ka(["borderLeft","borderRight"]),ka(["borderLeft"]),ka(["borderRight"]);const _z="5.11.4";function On(e,t){Nz(e)&&(e="100%");var n=kz(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 ac(e){return Math.min(1,Math.max(0,e))}function Nz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function kz(e){return typeof e=="string"&&e.indexOf("%")!==-1}function z$(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ic(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Qo(e){return e.length===1?"0"+e:String(e)}function Az(e,t,n){return {r:On(e,255)*255,g:On(t,255)*255,b:On(n,255)*255}}function kb(e,t,n){e=On(e,255),t=On(t,255),n=On(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,s=(r+o)/2;if(r===o)i=0,a=0;else {var l=r-o;switch(i=s>.5?l/(2-r-o):l/(r+o),r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6;}return {h:a,s:i,l:s}}function Ff(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 Lz(e,t,n){var r,o,a;if(e=On(e,360),t=On(t,100),n=On(n,100),t===0)o=n,a=n,r=n;else {var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=Ff(s,i,e+1/3),o=Ff(s,i,e),a=Ff(s,i,e-1/3);}return {r:r*255,g:o*255,b:a*255}}function oh(e,t,n){e=On(e,255),t=On(t,255),n=On(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,s=r-o,l=r===0?0:s/r;if(r===o)a=0;else {switch(r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6;}return {h:a,s:l,v:i}}function Dz(e,t,n){e=On(e,360)*6,t=On(t,100),n=On(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,i,a,a,s,n][l],u=[s,n,n,i,a,a][l],d=[a,a,s,n,n,i][l];return {r:c*255,g:u*255,b:d*255}}function ah(e,t,n,r){var o=[Qo(Math.round(e).toString(16)),Qo(Math.round(t).toString(16)),Qo(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 Fz(e,t,n,r,o){var a=[Qo(Math.round(e).toString(16)),Qo(Math.round(t).toString(16)),Qo(Math.round(n).toString(16)),Qo(zz(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function zz(e){return Math.round(parseFloat(e)*255).toString(16)}function Ab(e){return or(e)/255}function or(e){return parseInt(e,16)}function jz(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var ih={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 Ua(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,s=!1;return typeof e=="string"&&(e=Vz(e)),typeof e=="object"&&(so(e.r)&&so(e.g)&&so(e.b)?(t=Az(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):so(e.h)&&so(e.s)&&so(e.v)?(r=ic(e.s),o=ic(e.v),t=Dz(e.h,r,o),i=!0,s="hsv"):so(e.h)&&so(e.s)&&so(e.l)&&(r=ic(e.s),a=ic(e.l),t=Lz(e.h,r,a),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=z$(n),{ok:i,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 Bz="[-\\+]?\\d+%?",Hz="[-\\+]?\\d*\\.\\d+%?",_o="(?:".concat(Hz,")|(?:").concat(Bz,")"),zf="[\\s|\\(]+(".concat(_o,")[,|\\s]+(").concat(_o,")[,|\\s]+(").concat(_o,")\\s*\\)?"),jf="[\\s|\\(]+(".concat(_o,")[,|\\s]+(").concat(_o,")[,|\\s]+(").concat(_o,")[,|\\s]+(").concat(_o,")\\s*\\)?"),Mr={CSS_UNIT:new RegExp(_o),rgb:new RegExp("rgb"+zf),rgba:new RegExp("rgba"+jf),hsl:new RegExp("hsl"+zf),hsla:new RegExp("hsla"+jf),hsv:new RegExp("hsv"+zf),hsva:new RegExp("hsva"+jf),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 Vz(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(ih[e])e=ih[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=Mr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Mr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Mr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Mr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Mr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Mr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Mr.hex8.exec(e),n?{r:or(n[1]),g:or(n[2]),b:or(n[3]),a:Ab(n[4]),format:t?"name":"hex8"}:(n=Mr.hex6.exec(e),n?{r:or(n[1]),g:or(n[2]),b:or(n[3]),format:t?"name":"hex"}:(n=Mr.hex4.exec(e),n?{r:or(n[1]+n[1]),g:or(n[2]+n[2]),b:or(n[3]+n[3]),a:Ab(n[4]+n[4]),format:t?"name":"hex8"}:(n=Mr.hex3.exec(e),n?{r:or(n[1]+n[1]),g:or(n[2]+n[2]),b:or(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function so(e){return !!Mr.CSS_UNIT.exec(String(e))}var Qt=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=jz(t)),this.originalInput=t;var o=Ua(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok;}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return !this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return (t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,i=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),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=z$(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=oh(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=oh(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=kb(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=kb(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),ah(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),Fz(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(On(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(On(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="#"+ah(this.r,this.g,this.b,!1),n=0,r=Object.entries(ih);n<r.length;n++){var o=r[n],a=o[0],i=o[1];if(t===i)return a}return !1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return (Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=ac(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=ac(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=ac(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=ac(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return [this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),sc=2,Lb=.16,Wz=.05,Gz=.05,Kz=.15,j$=5,B$=4,Uz=[{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 Db(e){var t=e.r,n=e.g,r=e.b,o=oh(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function lc(e){var t=e.r,n=e.g,r=e.b;return "#".concat(ah(t,n,r,!1))}function Xz(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 Fb(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-sc*t:Math.round(e.h)+sc*t:r=n?Math.round(e.h)+sc*t:Math.round(e.h)-sc*t,r<0?r+=360:r>=360&&(r-=360),r}function zb(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Lb*t:t===B$?r=e.s+Lb:r=e.s+Wz*t,r>1&&(r=1),n&&t===j$&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function jb(e,t,n){var r;return n?r=e.v+Gz*t:r=e.v-Kz*t,r>1&&(r=1),Number(r.toFixed(2))}function vo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ua(e),o=j$;o>0;o-=1){var a=Db(r),i=lc(Ua({h:Fb(a,o,!0),s:zb(a,o,!0),v:jb(a,o,!0)}));n.push(i);}n.push(lc(r));for(var s=1;s<=B$;s+=1){var l=Db(r),c=lc(Ua({h:Fb(l,s),s:zb(l,s),v:jb(l,s)}));n.push(c);}return t.theme==="dark"?Uz.map(function(u){var d=u.index,f=u.opacity,h=lc(Xz(Ua(t.backgroundColor||"#141414"),Ua(n[d]),f*100));return h}):n}var Bf={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"},Ic={},Hf={};Object.keys(Bf).forEach(function(e){Ic[e]=vo(Bf[e]),Ic[e].primary=Ic[e][5],Hf[e]=vo(Bf[e],{theme:"dark",backgroundColor:"#141414"}),Hf[e].primary=Hf[e][5];});var qz=Ic.blue;const Yz=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},H$=Yz;function Zz(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 pv={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"},Qz=Object.assign(Object.assign({},pv),{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}),bi=Qz;function V$(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(o),h=n(a),g=n(i),v=n(s),p=r(c,u),b=e.colorLink||e.colorInfo,y=n(b);return Object.assign(Object.assign({},p),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg: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:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Qt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Jz=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},ej=Jz;function tj(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},ej(r))}const lo=(e,t)=>new Qt(e).setAlpha(t).toRgbString(),os=(e,t)=>new Qt(e).darken(t).toHexString(),nj=e=>{const t=vo(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]}},rj=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:lo(r,.88),colorTextSecondary:lo(r,.65),colorTextTertiary:lo(r,.45),colorTextQuaternary:lo(r,.25),colorFill:lo(r,.15),colorFillSecondary:lo(r,.06),colorFillTertiary:lo(r,.04),colorFillQuaternary:lo(r,.02),colorBgLayout:os(n,4),colorBgContainer:os(n,0),colorBgElevated:os(n,0),colorBgSpotlight:lo(r,.85),colorBgBlur:"transparent",colorBorder:os(n,15),colorBorderSecondary:os(n,6)}};function oj(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return {size:n,lineHeight:r/n}})}const aj=e=>{const t=oj(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]}},W$=aj;function pl(e){const t=Object.keys(pv).map(n=>{const r=vo(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),V$(e,{generateColorPalettes:nj,generateNeutralColorPalettes:rj})),W$(e.fontSize)),Zz(e)),H$(e)),tj(e))}const G$=Bs(pl),nu={token:bi,override:{override:bi},hashed:!0},K$=m.createContext(nu);function Vf(e){return e>=0&&e<=255}function cc(e,t){const{r:n,g:r,b:o,a}=new Qt(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new Qt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),d=Math.round((r-s*(1-c))/c),f=Math.round((o-l*(1-c))/c);if(Vf(u)&&Vf(d)&&Vf(f))return new Qt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new Qt({r:n,g:r,b:o,a:1}).toRgbString()}var ij=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 bv(e){const{override:t}=e,n=ij(e,["override"]),r=Object.assign({},t);Object.keys(bi).forEach(f=>{delete r[f];});const o=Object.assign(Object.assign({},n),r),a=480,i=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:cc(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:cc(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:cc(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:cc(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax: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 Qt("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new Qt("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new Qt("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 Bb=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 U$=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Bb(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=bv(i),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Bb(c,["theme"]);let f=d;u&&(f=U$(Object.assign(Object.assign({},i),d),{override:d},u)),i[l]=f;}),i};function Qn(){const{token:e,hashed:t,theme:n,override:r}=m.useContext(K$),o=`${_z}-${t||""}`,a=n||G$,[i,s]=Sz(a,[bi,e],{salt:o,override:r,getComputedToken:U$,formatToken:bv});return [a,i,t?s:""]}const sj=m.createContext(void 0),yv=sj,Ko=100,lj=10,cj=Ko*lj,X$={Modal:Ko,Drawer:Ko,Popover:Ko,Popconfirm:Ko,Tooltip:Ko,Tour:Ko},uj={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function dj(e){return e in X$}function $d(e,t){const[,n]=Qn(),r=m.useContext(yv),o=dj(e);if(t!==void 0)return [t,t];let a=r??0;return o?(a+=(r?0:n.zIndexPopupBase)+X$[e],a=Math.min(a,n.zIndexPopupBase+cj)):a+=uj[e],[r===void 0?t:a,a]}const Wf=()=>({height:0,opacity:0}),Hb=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},fj=e=>({height:e?e.offsetHeight:0}),Gf=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",q$=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Wf,onEnterStart:Wf,onAppearActive:Hb,onEnterActive:Hb,onLeaveStart:fj,onLeaveActive:Wf,onAppearEnd:Gf,onEnterEnd:Gf,onLeaveEnd:Gf,motionDeadline:500}},wd=(e,t,n)=>n!==void 0?n:`${e}-${t}`,mj=(e,t,n,r,o)=>{const a=e/2,i=0,s=a,l=n*1/Math.sqrt(2),c=a-n*(1-1/Math.sqrt(2)),u=a-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),f=2*a-u,h=d,g=2*a-l,v=c,p=2*a-i,b=s,y=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),C=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(${C}px 100%, 50% ${C}px, ${2*a-C}px 100%, ${C}px 100%)`,`path('M ${i} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${f} ${h} L ${g} ${v} A ${n} ${n} 0 0 0 ${p} ${b} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:y,height:y,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},Y$=8;function Cv(e){const t=Y$,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function uc(e,t){return e?t:{}}function Sv(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:i}=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}=Cv({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"},mj(r,o,a,s,i)),{"&:before":{background:s}})]},uc(!!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}}})),uc(!!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}}})),uc(!!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}})),uc(!!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 hj(e,t,n,r){if(r===!1)return {adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.dropdownArrowOffset*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.dropdownArrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Vb={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"]}},gj={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"]}},vj=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Z$(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(Vb).forEach(c=>{const u=r&&gj[c]||Vb[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,vj.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=Cv({contentRadius:a,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=hj(c,f,t,n),i&&(d.htmlRegion="visibleFirst");}),l}const{isValidElement:po}=m__namespace;function Q$(e){return e&&po(e)&&e.type===m__namespace.Fragment}function pj(e,t,n){return po(e)?m__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Kn(e,t){return pj(e,e,t)}function bj(){}const yj=m__namespace.createContext({}),J$=()=>{const e=()=>{};return e.deprecated=bj,e};var Cj=m.createContext({});const $v=Cj;function ew(e){return a$(e)||d$(e)||iv(e)||i$()}function Lr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function tw(e,t,n,r){if(!t.length)return n;var o=ew(t),a=o[0],i=o.slice(1),s;return !e&&typeof a=="number"?s=[]:Array.isArray(e)?s=Te(e):s=U({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=tw(s[a],i,n,r),s}function Nr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Lr(e,t.slice(0,-1))?e:tw(e,t,n,r)}function Sj(e){return dt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Wb(e){return Array.isArray(e)?[]:{}}var $j=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ei(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Wb(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=Lr(o,i),u=Array.isArray(c);if(u||Sj(c)){if(!l.has(c)){l.add(c);var d=Lr(r,i);u?r=Nr(r,i,[]):(!d||dt(d)!=="object")&&(r=Nr(r,i,Wb(c))),$j(c).forEach(function(f){a([].concat(Te(i),[f]),l);});}}else r=Nr(r,i,c);}a([]);}),r}const wj=m.createContext(void 0),nw={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 xj={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 Ej={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},rw=Ej,Ij={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"]},xj),timePickerLocale:Object.assign({},rw)},Gb=Ij,tr="${label} is not a valid ${type}",Pj={locale:"en",Pagination:nw,DatePicker:Gb,TimePicker:rw,Calendar:Gb,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:tr,method:tr,array:tr,object:tr,number:tr,date:tr,boolean:tr,integer:tr,float:tr,regexp:tr,email:tr,url:tr,hex:tr},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"}},bo=Pj;Object.assign({},bo.Modal);let Pc=[];const Kb=()=>Pc.reduce((e,t)=>Object.assign(Object.assign({},e),t),bo.Modal);function Oj(e){if(e){const t=Object.assign({},e);return Pc.push(t),Kb(),()=>{Pc=Pc.filter(n=>n!==t),Kb();}}Object.assign({},bo.Modal);}const Mj=m.createContext(void 0),wv=Mj,Rj=(e,t)=>{const n=m__namespace.useContext(wv),r=m__namespace.useMemo(()=>{var a;const i=t||bo[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),o=m__namespace.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?bo.locale:a},[n]);return [r,o]},Vi=Rj,Tj="internalMark",_j=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;m__namespace.useEffect(()=>Oj(t&&t.Modal),[t]);const o=m__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return m__namespace.createElement(wv.Provider,{value:o},n)},Nj=_j,ow="anticon",kj=(e,t)=>t||(e?`ant-${e}`:"ant"),tt=m__namespace.createContext({getPrefixCls:kj,iconPrefixCls:ow}),Aj=`-ant-${Date.now()}-${Math.random()}`;function Lj(e,t){const n={},r=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(i,s)=>{const l=new Qt(i),c=vo(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 i=new Qt(t.primaryColor),s=vo(i.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(i,c=>c.setAlpha(c.getAlpha()*.12));const l=new Qt(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(i=>`--${e}-${i}: ${n[i]};`).join(`
`)}
  }
  `.trim()}function Dj(e,t){const n=Lj(e,t);Gn()&&pi(n,`${Aj}-dynamic-theme`);}const sh=m__namespace.createContext(!1),Fj=e=>{let{children:t,disabled:n}=e;const r=m__namespace.useContext(sh);return m__namespace.createElement(sh.Provider,{value:n??r},t)},Hr=sh,lh=m__namespace.createContext(void 0),zj=e=>{let{children:t,size:n}=e;const r=m__namespace.useContext(lh);return m__namespace.createElement(lh.Provider,{value:n||r},t)},xd=lh;function jj(){const e=m.useContext(Hr),t=m.useContext(xd);return {componentDisabled:e,componentSize:t}}const Hs=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],ma={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},zt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return {boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},$a=()=>({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"}}),ch=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Bj=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"}}}),Hj=(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"}}}}},ha=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ga=e=>({"&:focus-visible":Object.assign({},ha(e))}),aw=typeof CSSINJS_STATISTIC<"u";let uh=!0;function St(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!aw)return Object.assign.apply(Object,[{}].concat(t));uh=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]});});}),uh=!0,r}const Ub={};function Vj(){}function Wj(e){let t,n=e,r=Vj;return aw&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return uh&&t.add(a),o[a]}}),r=(o,a)=>{var i;Ub[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=Ub[o])===null||i===void 0?void 0:i.component),a)};}),{token:n,keys:t,flush:r}}const Gj=(e,t)=>{const[n,r]=Qn();return rh({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},$a()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},iw=Gj;function Wt(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return s=>{const[l,c,u]=Qn(),{getPrefixCls:d,iconPrefixCls:f,csp:h}=m.useContext(tt),g=d(),v={theme:l,token:c,hashId:u,nonce:()=>h==null?void 0:h.nonce,clientOnly:r.clientOnly,order:r.order||-999};return rh(Object.assign(Object.assign({},v),{clientOnly:!1,path:["Shared",g]}),()=>[{"&":Bj(c)}]),iw(f,h),[rh(Object.assign(Object.assign({},v),{path:[i,s,f]}),()=>{const{token:p,flush:b}=Wj(c),y=Object.assign({},c[a]);if(r.deprecatedTokens){const{deprecatedTokens:x}=r;x.forEach(I=>{let[P,R]=I;var O;(y!=null&&y[P]||y!=null&&y[R])&&((O=y[R])!==null&&O!==void 0||(y[R]=y==null?void 0:y[P]));});}const C=typeof n=="function"?n(St(p,y??{})):n,$=Object.assign(Object.assign({},C),y),w=`.${s}`,E=St(p,{componentCls:w,prefixCls:s,iconCls:`.${f}`,antCls:`.${g}`},$),S=t(E,{hashId:u,prefixCls:s,rootPrefixCls:g,iconPrefixCls:f,overrideComponentToken:y});return b(a,$),[r.resetStyle===!1?null:Hj(E,s),S]}),u]}}const xv=(e,t,n,r)=>{const o=Wt(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:s}=i;return o(s),null}};function Ed(e,t){return Hs.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}function Kj(e,t){const n=e||{},r=n.inherit===!1||!t?nu:t;return hl(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{o[a]=Object.assign(Object.assign({},o[a]),e.components[a]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,a)=>o.some((i,s)=>{const l=a[s];return !vl(i,l,!0)}))}function Uj(e){const{children:t}=e,[,n]=Qn(),{motion:r}=n,o=m__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?m__namespace.createElement(h6,{motion:r},t):t}const Xj=()=>null;var qj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Yj=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],Zj="ant";let sw;function Qj(){return sw||Zj}function Jj(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const e8=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(sw=t),r&&Jj(r)&&Dj(Qj(),r);},t8=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:v,parentContext:p,iconPrefixCls:b,theme:y,componentDisabled:C,segmented:$,statistic:w,spin:E,calendar:S,carousel:x,cascader:I,collapse:P,typography:R,checkbox:O,descriptions:N,divider:A,drawer:L,skeleton:T,steps:M,image:_,layout:z,list:F,mentions:B,modal:H,progress:V,result:K,slider:X,breadcrumb:q,menu:te,pagination:W,input:Q,empty:Y,badge:ie,radio:le,rate:J,switch:re,transfer:fe,avatar:ee,message:ce,tag:he,table:ne,card:oe,tabs:me,timeline:pe,timePicker:_e,upload:Ve,notification:He,tree:Me,colorPicker:Qe,datePicker:Xe,rangePicker:We,flex:Pe,wave:Ce,dropdown:je,warning:it}=e,vt=m__namespace.useCallback((ge,Fe)=>{const{prefixCls:xe}=e;if(Fe)return Fe;const de=xe||p.getPrefixCls("");return ge?`${de}-${ge}`:de},[p.getPrefixCls,e.prefixCls]),nt=b||p.iconPrefixCls||ow,Je=n||p.csp;iw(nt,Je);const yt=Kj(y,p.theme),$t={csp:Je,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||v,direction:c,space:u,virtual:d,popupMatchSelectWidth:h??f,popupOverflow:g,getPrefixCls:vt,iconPrefixCls:nt,theme:yt,segmented:$,statistic:w,spin:E,calendar:S,carousel:x,cascader:I,collapse:P,typography:R,checkbox:O,descriptions:N,divider:A,drawer:L,skeleton:T,steps:M,image:_,input:Q,layout:z,list:F,mentions:B,modal:H,progress:V,result:K,slider:X,breadcrumb:q,menu:te,pagination:W,empty:Y,badge:ie,radio:le,rate:J,switch:re,transfer:fe,avatar:ee,message:ce,tag:he,table:ne,card:oe,tabs:me,timeline:pe,timePicker:_e,upload:Ve,notification:He,tree:Me,colorPicker:Qe,datePicker:Xe,rangePicker:We,flex:Pe,wave:Ce,dropdown:je,warning:it},ct=Object.assign({},p);Object.keys($t).forEach(ge=>{$t[ge]!==void 0&&(ct[ge]=$t[ge]);}),Yj.forEach(ge=>{const Fe=e[ge];Fe&&(ct[ge]=Fe);});const pt=hl(()=>ct,ct,(ge,Fe)=>{const xe=Object.keys(ge),de=Object.keys(Fe);return xe.length!==de.length||xe.some(ae=>ge[ae]!==Fe[ae])}),xt=m__namespace.useMemo(()=>({prefixCls:nt,csp:Je}),[nt,Je]);let Oe=m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(Xj,{dropdownMatchSelectWidth:f}),t);const Re=m__namespace.useMemo(()=>{var ge,Fe,xe,de;return ei(((ge=bo.Form)===null||ge===void 0?void 0:ge.defaultValidateMessages)||{},((xe=(Fe=pt.locale)===null||Fe===void 0?void 0:Fe.Form)===null||xe===void 0?void 0:xe.defaultValidateMessages)||{},((de=pt.form)===null||de===void 0?void 0:de.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[pt,i==null?void 0:i.validateMessages]);Object.keys(Re).length>0&&(Oe=m__namespace.createElement(wj.Provider,{value:Re},Oe)),s&&(Oe=m__namespace.createElement(Nj,{locale:s,_ANT_MARK__:Tj},Oe)),(nt||Je)&&(Oe=m__namespace.createElement($v.Provider,{value:xt},Oe)),l&&(Oe=m__namespace.createElement(zj,{size:l},Oe)),Oe=m__namespace.createElement(Uj,null,Oe);const Ne=m__namespace.useMemo(()=>{const ge=yt||{},{algorithm:Fe,token:xe,components:de}=ge,ae=qj(ge,["algorithm","token","components"]),be=Fe&&(!Array.isArray(Fe)||Fe.length>0)?Bs(Fe):G$,Se={};Object.entries(de||{}).forEach(qe=>{let[Ye,ke]=qe;const Be=Object.assign({},ke);"algorithm"in Be&&(Be.algorithm===!0?Be.theme=be:(Array.isArray(Be.algorithm)||typeof Be.algorithm=="function")&&(Be.theme=Bs(Be.algorithm)),delete Be.algorithm),Se[Ye]=Be;});const we=Object.assign(Object.assign({},bi),xe);return Object.assign(Object.assign({},ae),{theme:be,token:we,components:Se,override:Object.assign({override:we},Se)})},[yt]);return y&&(Oe=m__namespace.createElement(K$.Provider,{value:Ne},Oe)),pt.warning&&(Oe=m__namespace.createElement(yj.Provider,{value:pt.warning},Oe)),C!==void 0&&(Oe=m__namespace.createElement(Fj,{disabled:C},Oe)),m__namespace.createElement(tt.Provider,{value:pt},Oe)},Wi=e=>{const t=m__namespace.useContext(tt),n=m__namespace.useContext(wv);return m__namespace.createElement(t8,Object.assign({parentContext:t,legacyLocale:n},e))};Wi.ConfigContext=tt;Wi.SizeContext=xd;Wi.config=e8;Wi.useConfig=jj;Object.defineProperty(Wi,"SizeContext",{get:()=>xd});const Ev=Wi,n8=e=>{const t=m.useContext(xd);return m.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Jn=n8,r8=e=>{const{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},o8=r8,a8=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"}}}},i8=e=>{const{componentCls:t}=e;return {[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},lw=Wt("Space",e=>{const t=St(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [a8(t),i8(t),o8(t)]},()=>({}),{resetStyle:!1});var cw=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 Id=m__namespace.createContext(null),Gi=(e,t)=>{const n=m__namespace.useContext(Id),r=m__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return G(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${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}},yi=e=>{let{children:t}=e;return m__namespace.createElement(Id.Provider,{value:null},t)},s8=e=>{var{children:t}=e,n=cw(e,["children"]);return m__namespace.createElement(Id.Provider,{value:n},t)},l8=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(tt),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,u=cw(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Jn(C=>r??C),f=t("space-compact",i),[h,g]=lw(f),v=G(f,g,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:a,[`${f}-vertical`]:o==="vertical"},s,l),p=m__namespace.useContext(Id),b=dr(c),y=m__namespace.useMemo(()=>b.map((C,$)=>{const w=C&&C.key||`${f}-item-${$}`;return m__namespace.createElement(s8,{key:w,compactSize:d,compactDirection:o,isFirstItem:$===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:$===b.length-1&&(!p||(p==null?void 0:p.isLastItem))},C)}),[r,b,p]);return b.length===0?null:h(m__namespace.createElement("div",Object.assign({className:v},u),y))},c8=l8,u8=e=>({animationDuration:e,animationFillMode:"both"}),d8=e=>({animationDuration:e,animationFillMode:"both"}),Iv=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[`
      ${a}${e}-enter,
      ${a}${e}-appear
    `]:Object.assign(Object.assign({},u8(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},d8(r)),{animationPlayState:"paused"}),[`
      ${a}${e}-enter${e}-enter-active,
      ${a}${e}-appear${e}-appear-active
    `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},f8=new Nt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),m8=new Nt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),h8=new Nt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g8=new Nt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),v8=new Nt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p8=new Nt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),b8=new Nt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),y8=new Nt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),C8={"move-up":{inKeyframes:b8,outKeyframes:y8},"move-down":{inKeyframes:f8,outKeyframes:m8},"move-left":{inKeyframes:h8,outKeyframes:g8},"move-right":{inKeyframes:v8,outKeyframes:p8}},ru=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=C8[t];return [Iv(r,o,a,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Pv=new Nt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ov=new Nt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Mv=new Nt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Rv=new Nt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),S8=new Nt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),$8=new Nt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),w8=new Nt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),x8=new Nt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),E8={"slide-up":{inKeyframes:Pv,outKeyframes:Ov},"slide-down":{inKeyframes:Mv,outKeyframes:Rv},"slide-left":{inKeyframes:S8,outKeyframes:$8},"slide-right":{inKeyframes:w8,outKeyframes:x8}},Do=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=E8[t];return [Iv(r,o,a,e.motionDurationMid),{[`
      ${r}-enter,
      ${r}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},I8=new Nt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),P8=new Nt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Xb=new Nt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qb=new Nt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),O8=new Nt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),M8=new Nt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),R8=new Nt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),T8=new Nt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),_8=new Nt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),N8=new Nt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),k8=new Nt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),A8=new Nt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),L8={zoom:{inKeyframes:I8,outKeyframes:P8},"zoom-big":{inKeyframes:Xb,outKeyframes:qb},"zoom-big-fast":{inKeyframes:Xb,outKeyframes:qb},"zoom-left":{inKeyframes:R8,outKeyframes:T8},"zoom-right":{inKeyframes:_8,outKeyframes:N8},"zoom-up":{inKeyframes:O8,outKeyframes:M8},"zoom-down":{inKeyframes:k8,outKeyframes:A8}},Pd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=L8[t];return [Iv(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},D8=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`}}}),uw=D8,F8=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,Y$)}},[`${t}-content`]:{position:"relative"}}),Ed(e,(f,h)=>{let{darkColor:g}=h;return {[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},Sv(St(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},dw=(e,t)=>Wt("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:a,colorBgDefault:i,borderRadiusOuter:s}=r,l=St(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i,tooltipRadiusOuter:s>4?4:s});return [F8(l),Pd(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:a}=r;return {zIndexPopup:o+70,colorBgDefault:a}},{resetStyle:!1})(e),z8=Hs.map(e=>`${e}-inverse`),j8=["success","processing","error","default","warning"];function Od(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Te(z8),Te(Hs)).includes(e):Hs.includes(e)}function B8(e){return j8.includes(e)}function fw(e,t){const n=Od(t),r=G({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const H8=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=m__namespace.useContext(tt),l=s("tooltip",t),[c,u]=dw(l,!0),d=fw(l,a),f=d.arrowStyle,h=Object.assign(Object.assign({},i),d.overlayStyle),g=G(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(m__namespace.createElement("div",{className:g,style:f},m__namespace.createElement("div",{className:`${l}-arrow`}),m__namespace.createElement(av,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))},V8=H8;var W8=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 mw=m__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:h,arrow:g=!0,title:v,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:C=!0}=e,$=!!g,[,w]=Qn(),{getPopupContainer:E,getPrefixCls:S,direction:x}=m__namespace.useContext(tt),I=J$(),P=m__namespace.useRef(null),R=()=>{var pe;(pe=P.current)===null||pe===void 0||pe.forceAlign();};m__namespace.useImperativeHandle(t,()=>({forceAlign:R,forcePopupAlign:()=>{I.deprecated(!1,"forcePopupAlign","forceAlign"),R();}}));const[O,N]=Ut(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=!v&&!p&&v!==0,L=pe=>{var _e,Ve;N(A?!1:pe),A||((_e=e.onOpenChange)===null||_e===void 0||_e.call(e,pe),(Ve=e.onVisibleChange)===null||Ve===void 0||Ve.call(e,pe));},T=m__namespace.useMemo(()=>{var pe,_e;let Ve=y;return typeof g=="object"&&(Ve=(_e=(pe=g.pointAtCenter)!==null&&pe!==void 0?pe:g.arrowPointAtCenter)!==null&&_e!==void 0?_e:y),b||Z$({arrowPointAtCenter:Ve,autoAdjustOverflow:C,arrowWidth:$?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[y,g,b,w]),M=m__namespace.useMemo(()=>v===0?v:p||v||"",[p,v]),_=m__namespace.createElement(yi,null,typeof M=="function"?M():M),{getPopupContainer:z,placement:F="top",mouseEnterDelay:B=.1,mouseLeaveDelay:H=.1,overlayStyle:V,rootClassName:K}=e,X=W8(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),q=S("tooltip",o),te=S(),W=e["data-popover-inject"];let Q=O;!("open"in e)&&!("visible"in e)&&A&&(Q=!1);const Y=po(u)&&!Q$(u)?u:m__namespace.createElement("span",null,u),ie=Y.props,le=!ie.className||typeof ie.className=="string"?G(ie.className,a||`${q}-open`):ie.className,[J,re]=dw(q,!W),fe=fw(q,l),ee=fe.arrowStyle,ce=Object.assign(Object.assign({},c),fe.overlayStyle),he=G(s,{[`${q}-rtl`]:x==="rtl"},fe.className,K,re),[ne,oe]=$d("Tooltip",X.zIndex),me=m__namespace.createElement(q6,Object.assign({},X,{zIndex:ne,showArrow:$,placement:F,mouseEnterDelay:B,mouseLeaveDelay:H,prefixCls:q,overlayClassName:he,overlayStyle:Object.assign(Object.assign({},ee),V),getTooltipContainer:z||i||E,ref:P,builtinPlacements:T,overlay:_,visible:Q,onVisibleChange:L,afterVisibleChange:d??f,overlayInnerStyle:ce,arrowContent:m__namespace.createElement("span",{className:`${q}-arrow-content`}),motion:{motionName:wd(te,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),Q?Kn(Y,{className:le}):Y);return J(m__namespace.createElement(yv.Provider,{value:oe},me))});mw._InternalPanelDoNotUseOrYouWillBeFired=V8;const bl=mw,G8=e=>{const t=e!=null&&e.algorithm?Bs(e.algorithm):Bs(pl),n=Object.assign(Object.assign({},bi),e==null?void 0:e.token);return A$(n,{override:e==null?void 0:e.token},t,bv)},K8=G8;function U8(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 X8=(e,t)=>{const n=t??pl(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),U8(t??e)),W$(r)),{controlHeight:o}),H$(Object.assign(Object.assign({},n),{controlHeight:o})))},q8=X8,co=(e,t)=>new Qt(e).setAlpha(t).toRgbString(),Aa=(e,t)=>new Qt(e).lighten(t).toHexString(),Y8=e=>{const t=vo(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]}},Z8=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:co(r,.85),colorTextSecondary:co(r,.65),colorTextTertiary:co(r,.45),colorTextQuaternary:co(r,.25),colorFill:co(r,.18),colorFillSecondary:co(r,.12),colorFillTertiary:co(r,.08),colorFillQuaternary:co(r,.04),colorBgElevated:Aa(n,12),colorBgContainer:Aa(n,8),colorBgLayout:Aa(n,0),colorBgSpotlight:Aa(n,26),colorBgBlur:co(r,.04),colorBorder:Aa(n,26),colorBorderSecondary:Aa(n,19)}},Q8=(e,t)=>{const n=Object.keys(pv).map(o=>{const a=vo(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((i,s,l)=>(i[`${o}-${l+1}`]=a[l],i[`${o}${l+1}`]=a[l],i),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??pl(e);return Object.assign(Object.assign(Object.assign({},r),n),V$(e,{generateColorPalettes:Y8,generateNeutralColorPalettes:Z8}))},J8=Q8;function eB(){const[e,t,n]=Qn();return {theme:e,token:t,hashId:n}}const Yb={defaultConfig:nu,defaultSeed:nu.token,useToken:eB,defaultAlgorithm:pl,darkAlgorithm:J8,compactAlgorithm:q8,getDesignToken:K8};var tB=OS,Zb=1/0,nB=17976931348623157e292;function rB(e){if(!e)return e===0?e:0;if(e=tB(e),e===Zb||e===-Zb){var t=e<0?-1:1;return t*nB}return e===e?e:0}var oB=rB,aB=oB;function iB(e){var t=aB(e),n=t%1;return t===t?n?t-n:t:0}var sB=iB,lB=sB,cB="Expected a function";function uB(e,t){var n;if(typeof t!="function")throw new TypeError(cB);return e=lB(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var dB=uB,fB=dB;function mB(e){return fB(2,e)}var hB=mB;const hw=bn(hB),va=hw(()=>!!document.querySelectorAll(".bili-feed4").length),gw=()=>document.body.classList.contains("dark"),vw=ur({value:gw()});function Tv(){return hr(vw).value}const pw=new MutationObserver(function(){vw.value=gw();});pw.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{pw.disconnect();});const bw=_P();var wC;const gB=((wC=bw.os.name)==null?void 0:wC.toLowerCase())==="mac os";var xC;const _v=((xC=bw.browser.name)==null?void 0:xC.toLowerCase())==="safari";var Qb=XC(function(e,t){var n=e.styles,r=oi([n],void 0,m__namespace.useContext(qC)),o=m__namespace.useRef();return d0(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),i.hydrate([l])),o.current=[i,s],function(){i.flush();}},[t]),d0(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&Rg(t,r.next,!0),i.tags.length){var l=i.tags[i.tags.length-1].nextElementSibling;i.before=l,i.flush();}t.insert("",r,i,!1);},[t,r.name]),null});function Dr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return oi(t)}var Md={},yw={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;})(yw);var Nv=yw.exports,Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});Rd.default=void 0;Rd.default={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 Td={},yl={},_d={};Object.defineProperty(_d,"__esModule",{value:!0});_d.default=void 0;var vB={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:"下一世纪"};_d.default=vB;var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=void 0;const pB={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};Cl.default=pB;var Cw=Nv.default;Object.defineProperty(yl,"__esModule",{value:!0});yl.default=void 0;var bB=Cw(_d),yB=Cw(Cl);const Sw={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},bB.default),timePickerLocale:Object.assign({},yB.default)};Sw.lang.ok="确定";yl.default=Sw;var CB=Nv.default;Object.defineProperty(Td,"__esModule",{value:!0});Td.default=void 0;var SB=CB(yl);Td.default=SB.default;var Nd=Nv.default;Object.defineProperty(Md,"__esModule",{value:!0});Md.default=void 0;var $B=Nd(Rd),wB=Nd(Td),xB=Nd(yl),EB=Nd(Cl);const nr="${label}不是一个有效的${type}",IB={locale:"zh-cn",Pagination:$B.default,DatePicker:xB.default,TimePicker:EB.default,Calendar:wB.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:nr,method:nr,array:nr,object:nr,number:nr,date:nr,boolean:nr,integer:nr,float:nr,regexp:nr,email:nr,url:nr,hex:nr},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:"暂无"}};Md.default=IB;var PB=Md;const OB=bn(PB),$w=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),kd=m.createContext({}),ww=m.createContext(null),Ad=typeof document<"u",MB=Ad?m.useLayoutEffect:m.useEffect,kv=m.createContext({strict:!1});function RB(e,t,n,r){const{visualElement:o}=m.useContext(kd),a=m.useContext(kv),i=m.useContext(ww),s=m.useContext($w).reducedMotion,l=m.useRef();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:s}));const c=l.current;m.useInsertionEffect(()=>{c&&c.update(n,i);});const u=m.useRef(!!window.HandoffAppearAnimations);return MB(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges());}),m.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,u.current=!1);}),c}function xw(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function TB(e,t,n){return m.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xw(n)&&(n.current=r));},[t])}function Vs(e){return typeof e=="string"||Array.isArray(e)}function Ld(e){return typeof e=="object"&&typeof e.start=="function"}const Av=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Lv=["initial",...Av];function Dd(e){return Ld(e.animate)||Lv.some(t=>Vs(e[t]))}function Ew(e){return !!(Dd(e)||e.variants)}function _B(e,t){if(Dd(e)){const{initial:n,animate:r}=e;return {initial:n===!1||Vs(n)?n:void 0,animate:Vs(r)?r:void 0}}return e.inherit!==!1?t:{}}function NB(e){const{initial:t,animate:n}=_B(e,m.useContext(kd));return m.useMemo(()=>({initial:t,animate:n}),[Jb(t),Jb(n)])}function Jb(e){return Array.isArray(e)?e.join(" "):e}const ey={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ws={};for(const e in ey)Ws[e]={isEnabled:t=>ey[e].some(n=>!!t[n])};function dh(e){for(const t in e)Ws[t]={...Ws[t],...e[t]};}const kB=m.createContext({}),AB=m.createContext({}),LB=Symbol.for("motionComponentSymbol");function DB({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&dh(e);function a(s,l){let c;const u={...m.useContext($w),...s,layoutId:FB(s)},{isStatic:d}=u,f=NB(s),h=r(s,d);if(!d&&Ad){f.visualElement=RB(o,h,u,t);const g=m.useContext(AB),v=m.useContext(kv).strict;f.visualElement&&(c=f.visualElement.loadFeatures(u,v,e,g));}return m__namespace.createElement(kd.Provider,{value:f},c&&f.visualElement?m__namespace.createElement(c,{visualElement:f.visualElement,...u}):null,n(o,s,TB(h,f.visualElement,l),h,d,f.visualElement))}const i=m.forwardRef(a);return i[LB]=o,i}function FB({layoutId:e}){const t=m.useContext(kB).id;return t&&e!==void 0?t+"-"+e:e}function zB(e){function t(r,o={}){return DB(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const jB=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Dv(e){return typeof e!="string"||e.includes("-")?!1:!!(jB.indexOf(e)>-1||/[A-Z]/.test(e))}const BB={},Sl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wa=new Set(Sl);function Iw(e,{layout:t,layoutId:n}){return wa.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!BB[e]||e==="opacity")}const Fn=e=>!!(e&&e.getVelocity),HB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VB=Sl.length;function WB(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let a="";for(let i=0;i<VB;i++){const s=Sl[i];if(e[s]!==void 0){const l=HB[s]||s;a+=`${l}(${e[s]}) `;}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,r?"":a):n&&r&&(a="none"),a}const Pw=e=>t=>typeof t=="string"&&t.startsWith(e),Ow=Pw("--"),fh=Pw("var(--"),GB=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,KB=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ci=(e,t,n)=>Math.min(Math.max(n,e),t),xa={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Es={...xa,transform:e=>Ci(0,1,e)},dc={...xa,default:1},Is=e=>Math.round(e*1e5)/1e5,Fd=/(-)?([\d]*\.?[\d])+/g,Mw=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,UB=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function $l(e){return typeof e=="string"}const wl=e=>({test:t=>$l(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Eo=wl("deg"),ii=wl("%"),mt=wl("px"),XB=wl("vh"),qB=wl("vw"),ty={...ii,parse:e=>ii.parse(e)/100,transform:e=>ii.transform(e*100)},ny={...xa,transform:Math.round},Rw={borderWidth:mt,borderTopWidth:mt,borderRightWidth:mt,borderBottomWidth:mt,borderLeftWidth:mt,borderRadius:mt,radius:mt,borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomRightRadius:mt,borderBottomLeftRadius:mt,width:mt,maxWidth:mt,height:mt,maxHeight:mt,size:mt,top:mt,right:mt,bottom:mt,left:mt,padding:mt,paddingTop:mt,paddingRight:mt,paddingBottom:mt,paddingLeft:mt,margin:mt,marginTop:mt,marginRight:mt,marginBottom:mt,marginLeft:mt,rotate:Eo,rotateX:Eo,rotateY:Eo,rotateZ:Eo,scale:dc,scaleX:dc,scaleY:dc,scaleZ:dc,skew:Eo,skewX:Eo,skewY:Eo,distance:mt,translateX:mt,translateY:mt,translateZ:mt,x:mt,y:mt,z:mt,perspective:mt,transformPerspective:mt,opacity:Es,originX:ty,originY:ty,originZ:mt,zIndex:ny,fillOpacity:Es,strokeOpacity:Es,numOctaves:ny};function Fv(e,t,n,r){const{style:o,vars:a,transform:i,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const d in t){const f=t[d];if(Ow(d)){a[d]=f;continue}const h=Rw[d],g=KB(f,h);if(wa.has(d)){if(l=!0,i[d]=g,!u)continue;f!==(h.default||0)&&(u=!1);}else d.startsWith("origin")?(c=!0,s[d]=g):o[d]=g;}if(t.transform||(l||r?o.transform=WB(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:d="50%",originY:f="50%",originZ:h=0}=s;o.transformOrigin=`${d} ${f} ${h}`;}}const zv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tw(e,t,n){for(const r in t)!Fn(t[r])&&!Iw(r,n)&&(e[r]=t[r]);}function YB({transformTemplate:e},t,n){return m.useMemo(()=>{const r=zv();return Fv(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function ZB(e,t,n){const r=e.style||{},o={};return Tw(o,r,e),Object.assign(o,YB(e,t,n)),e.transformValues?e.transformValues(o):o}function QB(e,t,n){const r={},o=ZB(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const JB=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ou(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||JB.has(e)}let _w=e=>!ou(e);function eH(e){e&&(_w=t=>t.startsWith("on")?!ou(t):e(t));}try{eH(require("@emotion/is-prop-valid").default);}catch{}function tH(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(_w(o)||n===!0&&ou(o)||!t&&!ou(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function ry(e,t,n){return typeof e=="string"?e:mt.transform(t+n*e)}function nH(e,t,n){const r=ry(t,e.x,e.width),o=ry(n,e.y,e.height);return `${r} ${o}`}const rH={offset:"stroke-dashoffset",array:"stroke-dasharray"},oH={offset:"strokeDashoffset",array:"strokeDasharray"};function aH(e,t,n=1,r=0,o=!0){e.pathLength=1;const a=o?rH:oH;e[a.offset]=mt.transform(-r);const i=mt.transform(t),s=mt.transform(n);e[a.array]=`${i} ${s}`;}function jv(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:a,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...c},u,d,f){if(Fv(e,c,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:v}=e;h.transform&&(v&&(g.transform=h.transform),delete h.transform),v&&(o!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=nH(v,o!==void 0?o:.5,a!==void 0?a:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&aH(h,i,s,l,!1);}const Nw=()=>({...zv(),attrs:{}}),Bv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function iH(e,t,n,r){const o=m.useMemo(()=>{const a=Nw();return jv(a,t,{enableHardwareAcceleration:!1},Bv(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Tw(a,e.style,e),o.style={...a,...o.style};}return o}function sH(e=!1){return (n,r,o,{latestValues:a},i)=>{const l=(Dv(n)?iH:QB)(r,a,i,n),u={...tH(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=m.useMemo(()=>Fn(d)?d.get():d,[d]);return m.createElement(n,{...u,children:f})}}const Hv=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function kw(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a]);}const Aw=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Lw(e,t,n,r){kw(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Aw.has(o)?o:Hv(o),t.attrs[o]);}function Vv(e,t){const{style:n}=e,r={};for(const o in n)(Fn(n[o])||t.style&&Fn(t.style[o])||Iw(o,e))&&(r[o]=n[o]);return r}function Dw(e,t){const n=Vv(e,t);for(const r in e)if(Fn(e[r])||Fn(t[r])){const o=Sl.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r];}return n}function Wv(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function mh(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const au=e=>Array.isArray(e),lH=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),cH=e=>au(e)?e[e.length-1]||0:e;function uH(e){const t=Fn(e)?e.get():e;return lH(t)?t.toValue():t}function dH({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,a){const i={latestValues:fH(r,o,a,e),renderState:t()};return n&&(i.mount=s=>n(r,s,i)),i}const Fw=e=>(t,n)=>{const r=m.useContext(kd),o=m.useContext(ww),a=()=>dH(e,t,r,o);return n?a():mh(a)};function fH(e,t,n,r){const o={},a=r(e,{});for(const f in a)o[f]=uH(a[f]);let{initial:i,animate:s}=e;const l=Dd(e),c=Ew(e);t&&c&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u=u||i===!1;const d=u?s:i;return d&&typeof d!="boolean"&&!Ld(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const g=Wv(e,h);if(!g)return;const{transitionEnd:v,transition:p,...b}=g;for(const y in b){let C=b[y];if(Array.isArray(C)){const $=u?C.length-1:0;C=C[$];}C!==null&&(o[y]=C);}for(const y in v)o[y]=v[y];}),o}const An=e=>e;class oy{constructor(){this.order=[],this.scheduled=new Set;}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t));}clear(){this.order.length=0,this.scheduled.clear();}}function mH(e){let t=new oy,n=new oy,r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{const d=u&&o,f=d?t:n;return c&&i.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),i.delete(l);},process:l=>{if(o){a=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let c=0;c<r;c++){const u=t.order[c];u(l),i.has(u)&&(s.schedule(u),e());}o=!1,a&&(a=!1,s.process(l));}};return s}const fc=["prepare","read","update","preRender","render","postRender"],hH=40;function gH(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=fc.reduce((d,f)=>(d[f]=mH(()=>n=!0),d),{}),i=d=>a[d].process(o),s=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,hH),1),o.timestamp=d,o.isProcessing=!0,fc.forEach(i),o.isProcessing=!1,n&&t&&(r=!1,e(s));},l=()=>{n=!0,r=!0,o.isProcessing||e(s);};return {schedule:fc.reduce((d,f)=>{const h=a[f];return d[f]=(g,v=!1,p=!1)=>(n||l(),h.schedule(g,v,p)),d},{}),cancel:d=>fc.forEach(f=>a[f].cancel(d)),state:o,steps:a}}const{schedule:Ln,cancel:Gs,state:Ks,steps:Que}=gH(typeof requestAnimationFrame<"u"?requestAnimationFrame:An,!0),vH={useVisualState:Fw({scrapeMotionValuesFromProps:Dw,createRenderState:Nw,onMount:(e,t,{renderState:n,latestValues:r})=>{Ln.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect();}catch{n.dimensions={x:0,y:0,width:0,height:0};}}),Ln.render(()=>{jv(n,r,{enableHardwareAcceleration:!1},Bv(t.tagName),e.transformTemplate),Lw(t,n);});}})},pH={useVisualState:Fw({scrapeMotionValuesFromProps:Vv,createRenderState:zv})};function bH(e,{forwardMotionProps:t=!1},n,r){return {...Dv(e)?vH:pH,preloadedFeatures:n,useRender:sH(t),createVisualElement:r,Component:e}}function Jo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const yH=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function zw(e,t="page"){return {point:{x:e[t+"X"],y:e[t+"Y"]}}}const CH=e=>t=>yH(t)&&e(t,zw(t));function Oc(e,t,n,r){return Jo(e,t,CH(n),r)}const SH=(e,t)=>n=>t(e(n)),ca=(...e)=>e.reduce(SH);function jw(e){let t=null;return ()=>{const n=()=>{t=null;};return t===null?(t=e,n):!1}}const ay=jw("dragHorizontal"),iy=jw("dragVertical");function $H(e){let t=!1;if(e==="y")t=iy();else if(e==="x")t=ay();else {const n=ay(),r=iy();n&&r?t=()=>{n(),r();}:(n&&n(),r&&r());}return t}function Bw(){const e=$H(!0);return e?(e(),!1):!0}class Ki{constructor(t){this.isMounted=!1,this.node=t;}update(){}}function sy(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(a,i)=>{if(a.type==="touch"||Bw())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&Ln.update(()=>s[r](a,i));};return Oc(e.current,n,o,{passive:!e.getProps()[r]})}class wH extends Ki{mount(){this.unmount=ca(sy(this.node,!0),sy(this.node,!1));}unmount(){}}class xH extends Ki{constructor(){super(...arguments),this.isActive=!1;}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible");}catch{t=!0;}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0);}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1);}mount(){this.unmount=ca(Jo(this.node.current,"focus",()=>this.onFocus()),Jo(this.node.current,"blur",()=>this.onBlur()));}unmount(){}}const Hw=(e,t)=>t?e===t?!0:Hw(e,t.parentElement):!1;function Kf(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,zw(n));}class EH extends Ki{constructor(){super(...arguments),this.removeStartListeners=An,this.removeEndListeners=An,this.removeAccessibleListeners=An,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),a=Oc(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u}=this.node.getProps();Ln.update(()=>{Hw(this.node.current,s.target)?c&&c(s,l):u&&u(s,l);});},{passive:!(r.onTap||r.onPointerUp)}),i=Oc(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ca(a,i),this.startPress(t,n);},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const i=s=>{s.key!=="Enter"||!this.checkPressEnd()||Kf("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&Ln.update(()=>u(l,c));});};this.removeEndListeners(),this.removeEndListeners=Jo(this.node.current,"keyup",i),Kf("down",(s,l)=>{this.startPress(s,l);});},n=Jo(this.node.current,"keydown",t),r=()=>{this.isPressing&&Kf("cancel",(a,i)=>this.cancelPress(a,i));},o=Jo(this.node.current,"blur",r);this.removeAccessibleListeners=ca(n,o);};}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ln.update(()=>r(t,n));}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Bw()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ln.update(()=>r(t,n));}mount(){const t=this.node.getProps(),n=Oc(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Jo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ca(n,r);}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners();}}const hh=new WeakMap,Uf=new WeakMap,IH=e=>{const t=hh.get(e.target);t&&t(e);},PH=e=>{e.forEach(IH);};function OH({root:e,...t}){const n=e||document;Uf.has(n)||Uf.set(n,{});const r=Uf.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(PH,{root:e,...t})),r[o]}function MH(e,t,n){const r=OH(t);return hh.set(e,n),r.observe(e),()=>{hh.delete(e),r.unobserve(e);}}const RH={some:0,all:1};class TH extends Ki{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1;}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:a}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:RH[o]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l);};return MH(this.node.current,i,s)}mount(){this.startObserver();}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(_H(t,n))&&this.startObserver();}unmount(){}}function _H({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const NH={inView:{Feature:TH},tap:{Feature:EH},focus:{Feature:xH},hover:{Feature:wH}};function Vw(e,t){if(!Array.isArray(t))return !1;const n=t.length;if(n!==e.length)return !1;for(let r=0;r<n;r++)if(t[r]!==e[r])return !1;return !0}function kH(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function AH(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function zd(e,t,n){const r=e.getProps();return Wv(r,t,n!==void 0?n:r.custom,kH(e),AH(e))}const LH="framerAppearId",DH="data-"+Hv(LH);let jd=An;const No=e=>e*1e3,ho=e=>e/1e3,zH={current:!1},Ww=e=>Array.isArray(e)&&typeof e[0]=="number";function Gw(e){return !!(!e||typeof e=="string"&&Kw[e]||Ww(e)||Array.isArray(e)&&e.every(Gw))}const vs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Kw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vs([0,.65,.55,1]),circOut:vs([.55,0,1,.45]),backIn:vs([.31,.01,.66,-.59]),backOut:vs([.33,1.53,.69,.99])};function Uw(e){if(e)return Ww(e)?vs(e):Array.isArray(e)?e.map(Uw):Kw[e]}function jH(e,t,n,{delay:r=0,duration:o,repeat:a=0,repeatType:i="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Uw(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:i==="reverse"?"alternate":"normal"})}function BH(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Xw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,HH=1e-7,VH=12;function WH(e,t,n,r,o){let a,i,s=0;do i=t+(n-t)/2,a=Xw(i,r,o)-e,a>0?n=i:t=i;while(Math.abs(a)>HH&&++s<VH);return i}function xl(e,t,n,r){if(e===t&&n===r)return An;const o=a=>WH(a,0,1,e,n);return a=>a===0||a===1?a:Xw(o(a),t,r)}const GH=xl(.42,0,1,1),KH=xl(0,0,.58,1),qw=xl(.42,0,.58,1),Yw=e=>Array.isArray(e)&&typeof e[0]!="number",Zw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qw=e=>t=>1-e(1-t),Jw=e=>1-Math.sin(Math.acos(e)),ex=Qw(Jw),UH=Zw(ex),tx=xl(.33,1.53,.69,.99),Gv=Qw(tx),XH=Zw(Gv),qH=e=>(e*=2)<1?.5*Gv(e):.5*(2-Math.pow(2,-10*(e-1))),YH={linear:An,easeIn:GH,easeInOut:qw,easeOut:KH,circIn:Jw,circInOut:UH,circOut:ex,backIn:Gv,backInOut:XH,backOut:tx,anticipate:qH},ly=e=>{if(Array.isArray(e)){jd(e.length===4);const[t,n,r,o]=e;return xl(t,n,r,o)}else if(typeof e=="string")return YH[e];return e},Kv=(e,t)=>n=>!!($l(n)&&UB.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),nx=(e,t,n)=>r=>{if(!$l(r))return r;const[o,a,i,s]=r.match(Fd);return {[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}},ZH=e=>Ci(0,255,e),Xf={...xa,transform:e=>Math.round(ZH(e))},ea={test:Kv("rgb","red"),parse:nx("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Xf.transform(e)+", "+Xf.transform(t)+", "+Xf.transform(n)+", "+Is(Es.transform(r))+")"};function QH(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const gh={test:Kv("#"),parse:QH,transform:ea.transform},ti={test:Kv("hsl","hue"),parse:nx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ii.transform(Is(t))+", "+ii.transform(Is(n))+", "+Is(Es.transform(r))+")"},Wn={test:e=>ea.test(e)||gh.test(e)||ti.test(e),parse:e=>ea.test(e)?ea.parse(e):ti.test(e)?ti.parse(e):gh.parse(e),transform:e=>$l(e)?e:e.hasOwnProperty("red")?ea.transform(e):ti.transform(e)},El=(e,t,n)=>-n*e+n*t+e;function qf(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 JH({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,a=0,i=0;if(!t)o=a=i=n;else {const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=qf(l,s,e+1/3),a=qf(l,s,e),i=qf(l,s,e-1/3);}return {red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:r}}const Yf=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},e9=[gh,ea,ti],t9=e=>e9.find(t=>t.test(e));function cy(e){const t=t9(e);let n=t.parse(e);return t===ti&&(n=JH(n)),n}const rx=(e,t)=>{const n=cy(e),r=cy(t),o={...n};return a=>(o.red=Yf(n.red,r.red,a),o.green=Yf(n.green,r.green,a),o.blue=Yf(n.blue,r.blue,a),o.alpha=El(n.alpha,r.alpha,a),ea.transform(o))};function n9(e){var t,n;return isNaN(e)&&$l(e)&&(((t=e.match(Fd))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Mw))===null||n===void 0?void 0:n.length)||0)>0}const ox={regex:GB,countKey:"Vars",token:"${v}",parse:An},ax={regex:Mw,countKey:"Colors",token:"${c}",parse:Wn.parse},ix={regex:Fd,countKey:"Numbers",token:"${n}",parse:xa.parse};function Zf(e,{regex:t,countKey:n,token:r,parse:o}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(o)));}function iu(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Zf(n,ox),Zf(n,ax),Zf(n,ix),n}function sx(e){return iu(e).values}function lx(e){const{values:t,numColors:n,numVars:r,tokenised:o}=iu(e),a=t.length;return i=>{let s=o;for(let l=0;l<a;l++)l<r?s=s.replace(ox.token,i[l]):l<r+n?s=s.replace(ax.token,Wn.transform(i[l])):s=s.replace(ix.token,Is(i[l]));return s}}const r9=e=>typeof e=="number"?0:e;function o9(e){const t=sx(e);return lx(e)(t.map(r9))}const Ui={test:n9,parse:sx,createTransformer:lx,getAnimatableNone:o9},cx=(e,t)=>n=>`${n>0?t:e}`;function ux(e,t){return typeof e=="number"?n=>El(e,t,n):Wn.test(e)?rx(e,t):e.startsWith("var(")?cx(e,t):fx(e,t)}const dx=(e,t)=>{const n=[...e],r=n.length,o=e.map((a,i)=>ux(a,t[i]));return a=>{for(let i=0;i<r;i++)n[i]=o[i](a);return n}},a9=(e,t)=>{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=ux(e[o],t[o]));return o=>{for(const a in r)n[a]=r[a](o);return n}},fx=(e,t)=>{const n=Ui.createTransformer(t),r=iu(e),o=iu(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?ca(dx(r.values,o.values),n):cx(e,t)},Uv=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},uy=(e,t)=>n=>El(e,t,n);function i9(e){return typeof e=="number"?uy:typeof e=="string"?Wn.test(e)?rx:fx:Array.isArray(e)?dx:typeof e=="object"?a9:uy}function s9(e,t,n){const r=[],o=n||i9(e[0]),a=e.length-1;for(let i=0;i<a;i++){let s=o(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||An:t;s=ca(l,s);}r.push(s);}return r}function mx(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;if(jd(a===t.length),a===1)return ()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=s9(t,r,o),s=i.length,l=c=>{let u=0;if(s>1)for(;u<e.length-2&&!(c<e[u+1]);u++);const d=Uv(e[u],e[u+1],c);return i[u](d)};return n?c=>l(Ci(e[0],e[a-1],c)):l}function hx(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Uv(0,t,r);e.push(El(n,1,o));}}function gx(e){const t=[0];return hx(t,e.length-1),t}function l9(e,t){return e.map(n=>n*t)}function c9(e,t){return e.map(()=>t||qw).splice(0,e.length-1)}function su({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Yw(r)?r.map(ly):ly(r),a={done:!1,value:t[0]},i=l9(n&&n.length===t.length?n:gx(t),e),s=mx(i,t,{ease:Array.isArray(o)?o:c9(t,o)});return {calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}function vx(e,t){return t?e*(1e3/t):0}const u9=5;function px(e,t,n){const r=Math.max(t-u9,0);return vx(n-e(r),t-r)}const Qf=.001,d9=.01,dy=10,f9=.05,m9=1;function h9({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;let i=1-t;i=Ci(f9,m9,i),e=Ci(d9,dy,ho(e)),i<1?(o=c=>{const u=c*i,d=u*e,f=u-n,h=vh(c,i),g=Math.exp(-d);return Qf-f/h*g},a=c=>{const d=c*i*e,f=d*n+n,h=Math.pow(i,2)*Math.pow(c,2)*e,g=Math.exp(-d),v=vh(Math.pow(c,2),i);return (-o(c)+Qf>0?-1:1)*((f-h)*g)/v}):(o=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return -Qf+u*d},a=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const s=5/e,l=v9(o,a,s);if(e=No(e),isNaN(l))return {stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return {stiffness:c,damping:i*2*Math.sqrt(r*c),duration:e}}}const g9=12;function v9(e,t,n){let r=n;for(let o=1;o<g9;o++)r=r-e(r)/t(r);return r}function vh(e,t){return e*Math.sqrt(1-t*t)}const p9=["duration","bounce"],b9=["stiffness","damping","mass"];function fy(e,t){return t.some(n=>e[n]!==void 0)}function y9(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!fy(e,b9)&&fy(e,p9)){const n=h9(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0;}return t}function Xv({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],a=e[e.length-1],i={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=y9(r),h=u?-ho(u):0,g=l/(2*Math.sqrt(s*c)),v=a-o,p=ho(Math.sqrt(s/c)),b=Math.abs(v)<5;n||(n=b?.01:2),t||(t=b?.005:.5);let y;if(g<1){const C=vh(p,g);y=$=>{const w=Math.exp(-g*p*$);return a-w*((h+g*p*v)/C*Math.sin(C*$)+v*Math.cos(C*$))};}else if(g===1)y=C=>a-Math.exp(-p*C)*(v+(h+p*v)*C);else {const C=p*Math.sqrt(g*g-1);y=$=>{const w=Math.exp(-g*p*$),E=Math.min(C*$,300);return a-w*((h+g*p*v)*Math.sinh(E)+C*v*Math.cosh(E))/C};}return {calculatedDuration:f&&d||null,next:C=>{const $=y(C);if(f)i.done=C>=d;else {let w=h;C!==0&&(g<1?w=px(y,C,$):w=0);const E=Math.abs(w)<=n,S=Math.abs(a-$)<=t;i.done=E&&S;}return i.value=i.done?a:$,i}}}function my({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:i,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=x=>s!==void 0&&x<s||l!==void 0&&x>l,g=x=>s===void 0?l:l===void 0||Math.abs(s-x)<Math.abs(l-x)?s:l;let v=n*t;const p=d+v,b=i===void 0?p:i(p);b!==p&&(v=b-d);const y=x=>-v*Math.exp(-x/r),C=x=>b+y(x),$=x=>{const I=y(x),P=C(x);f.done=Math.abs(I)<=c,f.value=f.done?b:P;};let w,E;const S=x=>{h(f.value)&&(w=x,E=Xv({keyframes:[f.value,g(f.value)],velocity:px(C,x,f.value),damping:o,stiffness:a,restDelta:c,restSpeed:u}));};return S(0),{calculatedDuration:null,next:x=>{let I=!1;return !E&&w===void 0&&(I=!0,$(x),S(x)),w!==void 0&&x>w?E.next(x-w):(!I&&$(x),f)}}}const C9=e=>{const t=({timestamp:n})=>e(n);return {start:()=>Ln.update(t,!0),stop:()=>Gs(t),now:()=>Ks.isProcessing?Ks.timestamp:performance.now()}},ph=2e4;function bh(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ph;)t+=n,r=e.next(t);return t>=ph?1/0:t}const S9={decay:my,inertia:my,tween:su,keyframes:su,spring:Xv};function lu({autoplay:e=!0,delay:t=0,driver:n=C9,keyframes:r,type:o="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let h=1,g=!1,v,p;const b=()=>{p=new Promise(B=>{v=B;});};b();let y;const C=S9[o]||su;let $;C!==su&&typeof r[0]!="number"&&($=mx([0,100],r,{clamp:!1}),r=[0,100]);const w=C({...f,keyframes:r});let E;s==="mirror"&&(E=C({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let S="idle",x=null,I=null,P=null;w.calculatedDuration===null&&a&&(w.calculatedDuration=bh(w));const{calculatedDuration:R}=w;let O=1/0,N=1/0;R!==null&&(O=R+i,N=O*(a+1)-i);let A=0;const L=B=>{if(I===null)return;h>0&&(I=Math.min(I,B)),h<0&&(I=Math.min(B-N/h,I)),x!==null?A=x:A=Math.round(B-I)*h;const H=A-t*(h>=0?1:-1),V=h>=0?H<0:H>N;A=Math.max(H,0),S==="finished"&&x===null&&(A=N);let K=A,X=w;if(a){const Q=A/O;let Y=Math.floor(Q),ie=Q%1;!ie&&Q>=1&&(ie=1),ie===1&&Y--,Y=Math.min(Y,a+1);const le=!!(Y%2);le&&(s==="reverse"?(ie=1-ie,i&&(ie-=i/O)):s==="mirror"&&(X=E));let J=Ci(0,1,ie);A>N&&(J=s==="reverse"&&le?1:0),K=J*O;}const q=V?{done:!1,value:r[0]}:X.next(K);$&&(q.value=$(q.value));let{done:te}=q;!V&&R!==null&&(te=h>=0?A>=N:A<=0);const W=x===null&&(S==="finished"||S==="running"&&te);return d&&d(q.value),W&&_(),q},T=()=>{y&&y.stop(),y=void 0;},M=()=>{S="idle",T(),v(),b(),I=P=null;},_=()=>{S="finished",u&&u(),T(),v();},z=()=>{if(g)return;y||(y=n(L));const B=y.now();l&&l(),x!==null?I=B-x:(!I||S==="finished")&&(I=B),S==="finished"&&b(),P=I,x=null,S="running",y.start();};e&&z();const F={then(B,H){return p.then(B,H)},get time(){return ho(A)},set time(B){B=No(B),A=B,x!==null||!y||h===0?x=B:I=y.now()-B/h;},get duration(){const B=w.calculatedDuration===null?bh(w):w.calculatedDuration;return ho(B)},get speed(){return h},set speed(B){B===h||!y||(h=B,F.time=ho(A));},get state(){return S},play:z,pause:()=>{S="paused",x=A;},stop:()=>{g=!0,S!=="idle"&&(S="idle",c&&c(),M());},cancel:()=>{P!==null&&L(P),M();},complete:()=>{S="finished";},sample:B=>(I=0,L(B))};return F}function bx(e){let t;return ()=>(t===void 0&&(t=e()),t)}const $9=bx(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),w9=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),mc=10,x9=2e4,E9=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Gw(t.ease);function I9(e,t,{onUpdate:n,onComplete:r,...o}){if(!($9()&&w9.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return !1;let i=!1,s,l;const c=()=>{l=new Promise(y=>{s=y;});};c();let{keyframes:u,duration:d=300,ease:f,times:h}=o;if(E9(t,o)){const y=lu({...o,repeat:0,delay:0});let C={done:!1,value:u[0]};const $=[];let w=0;for(;!C.done&&w<x9;)C=y.sample(w),$.push(C.value),w+=mc;h=void 0,u=$,d=w-mc,f="linear";}const g=jH(e.owner.current,t,u,{...o,duration:d,ease:f,times:h});o.syncStart&&(g.startTime=Ks.isProcessing?Ks.timestamp:document.timeline?document.timeline.currentTime:performance.now());const v=()=>g.cancel(),p=()=>{Ln.update(v),s(),c();};return g.onfinish=()=>{e.set(BH(u,o)),r&&r(),p();},{then(y,C){return l.then(y,C)},attachTimeline(y){return g.timeline=y,g.onfinish=null,An},get time(){return ho(g.currentTime||0)},set time(y){g.currentTime=No(y);},get speed(){return g.playbackRate},set speed(y){g.playbackRate=y;},get duration(){return ho(d)},play:()=>{i||(g.play(),Gs(v));},pause:()=>g.pause(),stop:()=>{if(i=!0,g.playState==="idle")return;const{currentTime:y}=g;if(y){const C=lu({...o,autoplay:!1});e.setWithVelocity(C.sample(y-mc).value,C.sample(y).value,mc);}p();},complete:()=>g.finish(),cancel:p}}function P9({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:An,pause:An,stop:An,then:a=>(a(),Promise.resolve()),cancel:An,complete:An});return t?lu({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const O9={type:"spring",stiffness:500,damping:25,restSpeed:10},M9=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),R9={type:"keyframes",duration:.8},T9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_9=(e,{keyframes:t})=>t.length>2?R9:wa.has(e)?e.startsWith("scale")?M9(t[1]):O9:T9,yh=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ui.test(t)||t==="0")&&!t.startsWith("url(")),N9=new Set(["brightness","contrast","saturate","opacity"]);function k9(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fd)||[];if(!r)return e;const o=n.replace(r,"");let a=N9.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const A9=/([a-z-]*)\(.*?\)/g,Ch={...Ui,getAnimatableNone:e=>{const t=e.match(A9);return t?t.map(k9).join(" "):e}},L9={...Rw,color:Wn,backgroundColor:Wn,outlineColor:Wn,fill:Wn,stroke:Wn,borderColor:Wn,borderTopColor:Wn,borderRightColor:Wn,borderBottomColor:Wn,borderLeftColor:Wn,filter:Ch,WebkitFilter:Ch},qv=e=>L9[e];function yx(e,t){let n=qv(e);return n!==Ch&&(n=Ui),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Cx=e=>/^0[^.\s]+$/.test(e);function D9(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Cx(e)}function F9(e,t,n,r){const o=yh(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const i=r.from!==void 0?r.from:e.get();let s;const l=[];for(let c=0;c<a.length;c++)a[c]===null&&(a[c]=c===0?i:a[c-1]),D9(a[c])&&l.push(c),typeof a[c]=="string"&&a[c]!=="none"&&a[c]!=="0"&&(s=a[c]);if(o&&l.length&&s)for(let c=0;c<l.length;c++){const u=l[c];a[u]=yx(t,s);}return a}function z9({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:a,repeatType:i,repeatDelay:s,from:l,elapsed:c,...u}){return !!Object.keys(u).length}function j9(e,t){return e[t]||e.default||e}const Sx=(e,t,n,r={})=>o=>{const a=j9(r,e)||{},i=a.delay||r.delay||0;let{elapsed:s=0}=r;s=s-No(i);const l=F9(t,e,n,a),c=l[0],u=l[l.length-1],d=yh(e,c),f=yh(e,u);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-s,onUpdate:g=>{t.set(g),a.onUpdate&&a.onUpdate(g);},onComplete:()=>{o(),a.onComplete&&a.onComplete();}};if(z9(a)||(h={...h,..._9(e,h)}),h.duration&&(h.duration=No(h.duration)),h.repeatDelay&&(h.repeatDelay=No(h.repeatDelay)),!d||!f||zH.current||a.type===!1)return P9(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=I9(t,e,h);if(g)return g}return lu(h)};function cu(e){return !!(Fn(e)&&e.add)}const $x=e=>/^\-?\d*\.?\d+$/.test(e);function B9(e,t){e.indexOf(t)===-1&&e.push(t);}function wx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1);}class xx{constructor(){this.subscriptions=[];}add(t){return B9(this.subscriptions,t),()=>wx(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let a=0;a<o;a++){const i=this.subscriptions[a];i&&i(t,n,r);}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0;}}const H9=e=>!isNaN(parseFloat(e));class V9{constructor(t,n={}){this.version="10.16.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:i}=Ks;this.lastUpdated!==i&&(this.timeDelta=a,this.lastUpdated=i,Ln.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current);},this.scheduleVelocityCheck=()=>Ln.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()));},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=H9(this.current),this.owner=n.owner;}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new xx);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ln.read(()=>{this.events.change.getSize()||this.stop();});}:r}clearListeners(){for(const t in this.events)this.events[t].clear();}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n;}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify);}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r;}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?vx(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify();}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation();})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation();}isAnimating(){return !!this.animation}clearAnimation(){delete this.animation;}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}}function Si(e,t){return new V9(e,t)}const Ex=e=>t=>t.test(e),W9={test:e=>e==="auto",parse:e=>e},Ix=[xa,mt,ii,Eo,qB,XB,W9],as=e=>Ix.find(Ex(e)),G9=[...Ix,Wn,Ui],K9=e=>G9.find(Ex(e));function U9(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Si(n));}function X9(e,t){const n=zd(e,t);let{transitionEnd:r={},transition:o={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const i in a){const s=cH(a[i]);U9(e,i,s);}}function q9(e,t,n){var r,o;const a=Object.keys(t).filter(s=>!e.hasValue(s)),i=a.length;if(i)for(let s=0;s<i;s++){const l=a[s],c=t[l];let u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(o=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&o!==void 0?o:t[l]),u!=null&&(typeof u=="string"&&($x(u)||Cx(u))?u=parseFloat(u):!K9(u)&&Ui.test(c)&&(u=yx(l,c)),e.addValue(l,Si(u,{owner:e})),n[l]===void 0&&(n[l]=u),u!==null&&e.setBaseTarget(l,u));}}function Y9(e,t){return t?(t[e]||t.default||t).from:void 0}function Z9(e,t,n){const r={};for(const o in e){const a=Y9(o,t);if(a!==void 0)r[o]=a;else {const i=n.getValue(o);i&&(r[o]=i.get());}}return r}function Q9({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Yv(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:i,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(a=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in s){const f=e.getValue(d),h=s[d];if(!f||h===void 0||u&&Q9(u,d))continue;const g={delay:n,elapsed:0,...a};if(window.HandoffAppearAnimations&&!f.hasAnimated){const p=e.getProps()[DH];p&&(g.elapsed=window.HandoffAppearAnimations(p,d,f,Ln),g.syncStart=!0);}f.start(Sx(d,f,h,e.shouldReduceMotion&&wa.has(d)?{type:!1}:g));const v=f.animation;cu(l)&&(l.add(d),v.then(()=>l.remove(d))),c.push(v);}return i&&Promise.all(c).then(()=>{i&&X9(e,i);}),c}function Sh(e,t,n={}){const r=zd(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const a=r?()=>Promise.all(Yv(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return J9(e,t,c+l,u,d,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,c]=s==="beforeChildren"?[a,i]:[i,a];return l().then(()=>c())}else return Promise.all([a(),i(n.delay)])}function J9(e,t,n=0,r=0,o=1,a){const i=[],s=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>s-c*r;return Array.from(e.variantChildren).sort(e7).forEach((c,u)=>{c.notify("AnimationStart",t),i.push(Sh(c,t,{...a,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)));}),Promise.all(i)}function e7(e,t){return e.sortNodePosition(t)}function t7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(a=>Sh(e,a,n));r=Promise.all(o);}else if(typeof t=="string")r=Sh(e,t,n);else {const o=typeof t=="function"?zd(e,t,n.custom):t;r=Promise.all(Yv(e,o,n));}return r.then(()=>e.notify("AnimationComplete",t))}const n7=[...Av].reverse(),r7=Av.length;function o7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>t7(e,n,r)))}function a7(e){let t=o7(e);const n=s7();let r=!0;const o=(l,c)=>{const u=zd(e,c);if(u){const{transition:d,transitionEnd:f,...h}=u;l={...l,...h,...f};}return l};function a(l){t=l(e);}function i(l,c){const u=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set;let g={},v=1/0;for(let b=0;b<r7;b++){const y=n7[b],C=n[y],$=u[y]!==void 0?u[y]:d[y],w=Vs($),E=y===c?C.isActive:null;E===!1&&(v=b);let S=$===d[y]&&$!==u[y]&&w;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),C.protectedKeys={...g},!C.isActive&&E===null||!$&&!C.prevProp||Ld($)||typeof $=="boolean")continue;const x=i7(C.prevProp,$);let I=x||y===c&&C.isActive&&!S&&w||b>v&&w;const P=Array.isArray($)?$:[$];let R=P.reduce(o,{});E===!1&&(R={});const{prevResolvedValues:O={}}=C,N={...O,...R},A=L=>{I=!0,h.delete(L),C.needsAnimating[L]=!0;};for(const L in N){const T=R[L],M=O[L];g.hasOwnProperty(L)||(T!==M?au(T)&&au(M)?!Vw(T,M)||x?A(L):C.protectedKeys[L]=!0:T!==void 0?A(L):h.add(L):T!==void 0&&h.has(L)?A(L):C.protectedKeys[L]=!0);}C.prevProp=$,C.prevResolvedValues=R,C.isActive&&(g={...g,...R}),r&&e.blockInitialAnimation&&(I=!1),I&&!S&&f.push(...P.map(L=>({animation:L,options:{type:y,...l}})));}if(h.size){const b={};h.forEach(y=>{const C=e.getBaseTarget(y);C!==void 0&&(b[y]=C);}),f.push({animation:b});}let p=!!f.length;return r&&u.initial===!1&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(f):Promise.resolve()}function s(l,c,u){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var g;return (g=h.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),n[l].isActive=c;const f=i(u,l);for(const h in n)n[h].protectedKeys={};return f}return {animateChanges:i,setActive:s,setAnimateFunction:a,getState:()=>n}}function i7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Vw(t,e):!1}function Vo(e=!1){return {isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function s7(){return {animate:Vo(!0),whileInView:Vo(),whileHover:Vo(),whileTap:Vo(),whileDrag:Vo(),whileFocus:Vo(),exit:Vo()}}class l7 extends Ki{constructor(t){super(t),t.animationState||(t.animationState=a7(t));}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ld(t)&&(this.unmount=t.subscribe(this.node));}mount(){this.updateAnimationControlsSubscription();}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription();}unmount(){}}let c7=0;class u7 extends Ki{constructor(){super(...arguments),this.id=c7++;}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id));}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id));}unmount(){}}const d7={animation:{Feature:l7},exit:{Feature:u7}},hy=()=>({min:0,max:0}),Px=()=>({x:hy(),y:hy()});function f7({top:e,left:t,right:n,bottom:r}){return {x:{min:t,max:n},y:{min:e,max:r}}}function m7(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return {top:n.y,left:n.x,bottom:r.y,right:r.x}}function h7(e,t){return f7(m7(e.getBoundingClientRect(),t))}function g7(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Ox(e,t,n){const r=Fn(e)?e:Si(e);return r.start(Sx("",r,t,n)),r.animation}const v7=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function p7(e){const t=v7.exec(e);if(!t)return [,];const[,n,r]=t;return [n,r]}function $h(e,t,n=1){const[r,o]=p7(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const i=a.trim();return $x(i)?parseFloat(i):i}else return fh(o)?$h(o,t,n+1):o}function b7(e,{...t},n){const r=e.current;if(!(r instanceof Element))return {target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const a=o.get();if(!fh(a))return;const i=$h(a,r);i&&o.set(i);});for(const o in t){const a=t[o];if(!fh(a))continue;const i=$h(a,r);i&&(t[o]=i,n||(n={}),n[o]===void 0&&(n[o]=a));}return {target:t,transitionEnd:n}}const y7=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Mx=e=>y7.has(e),C7=e=>Object.keys(e).some(Mx),gy=e=>e===xa||e===mt,vy=(e,t)=>parseFloat(e.split(", ")[t]),py=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return vy(o[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?vy(a[1],e):0}},S7=new Set(["x","y","z"]),$7=Sl.filter(e=>!S7.has(e));function w7(e){const t=[];return $7.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0));}),t.length&&e.render(),t}const $i={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:py(4,13),y:py(5,14)};$i.translateX=$i.x;$i.translateY=$i.y;const x7=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,a=getComputedStyle(o),{display:i}=a,s={};i==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{s[c]=$i[c](r,a);}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const u=t.getValue(c);u&&u.jump(s[c]),e[c]=$i[c](l,a);}),e},E7=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Mx);let a=[],i=!1;const s=[];if(o.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let u=n[l],d=as(u);const f=t[l];let h;if(au(f)){const g=f.length,v=f[0]===null?1:0;u=f[v],d=as(u);for(let p=v;p<g&&f[p]!==null;p++)h?jd(as(f[p])===h):h=as(f[p]);}else h=as(f);if(d!==h)if(gy(d)&&gy(h)){const g=c.get();typeof g=="string"&&c.set(parseFloat(g)),typeof f=="string"?t[l]=parseFloat(f):Array.isArray(f)&&h===mt&&(t[l]=f.map(parseFloat));}else d!=null&&d.transform&&(h!=null&&h.transform)&&(u===0||f===0)?u===0?c.set(h.transform(u)):t[l]=d.transform(f):(i||(a=w7(e),i=!0),s.push(l),r[l]=r[l]!==void 0?r[l]:t[l],c.jump(f));}),s.length){const l=s.indexOf("height")>=0?window.pageYOffset:null,c=x7(t,e,s);return a.length&&a.forEach(([u,d])=>{e.getValue(u).set(d);}),e.render(),Ad&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return {target:t,transitionEnd:r}};function I7(e,t,n,r){return C7(t)?E7(e,t,n,r):{target:t,transitionEnd:r}}const P7=(e,t,n,r)=>{const o=b7(e,t,r);return t=o.target,r=o.transitionEnd,I7(e,t,n,r)},wh={current:null},Rx={current:!1};function O7(){if(Rx.current=!0,!!Ad)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wh.current=e.matches;e.addListener(t),t();}else wh.current=!1;}function M7(e,t,n){const{willChange:r}=t;for(const o in t){const a=t[o],i=n[o];if(Fn(a))e.addValue(o,a),cu(r)&&r.add(o);else if(Fn(i))e.addValue(o,Si(a,{owner:e})),cu(r)&&r.remove(o);else if(i!==a)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(a);}else {const s=e.getStaticValue(o);e.addValue(o,Si(s!==void 0?s:a,{owner:e}));}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Us=new WeakMap,Tx=Object.keys(Ws),R7=Tx.length,by=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],T7=Lv.length;class _7{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:a},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection));},this.scheduleRender=()=>Ln.render(this.render,!1,!0);const{latestValues:s,renderState:l}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.isControllingVariants=Dd(n),this.isVariantNode=Ew(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(n,{});for(const d in u){const f=u[d];s[d]!==void 0&&Fn(f)&&(f.set(s[d],!1),cu(c)&&c.add(d));}}scrapeMotionValuesFromProps(t,n){return {}}mount(t){this.current=t,Us.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Rx.current||O7(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:wh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext);}unmount(){Us.delete(this.current),this.projection&&this.projection.unmount(),Gs(this.notifyUpdate),Gs(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null;}bindToMotionValue(t,n){const r=wa.has(t),o=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Ln.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0);}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),a();});}sortNodePosition(t){return !this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,a){let i,s;for(let l=0;l<R7;l++){const c=Tx[l],{isEnabled:u,Feature:d,ProjectionNode:f,MeasureLayout:h}=Ws[c];f&&(i=f),u(n)&&(!this.features[c]&&d&&(this.features[c]=new d(this)),h&&(s=h));}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:u,dragConstraints:d,layoutScroll:f,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||d&&xw(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:a,layoutScroll:f,layoutRoot:h});}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0);}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props);}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Px()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n;}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<by.length;r++){const o=by[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a=t["on"+o];a&&(this.propEventSubscriptions[o]=this.on(o,a));}this.prevMotionValues=M7(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue();}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<T7;r++){const o=Lv[r],a=this.props[o];(Vs(a)||a===!1)&&(n[o]=a);}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get();}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState);}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Si(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n;}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=Wv(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Fn(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new xx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n);}}class _x extends _7{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t];}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},a){let i=Z9(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),i&&(i=o(i))),a){q9(this,r,i);const s=P7(this,r,i,n);n=s.transitionEnd,r=s.target;}return {transition:t,transitionEnd:n,...r}}}function N7(e){return window.getComputedStyle(e)}class Nx extends _x{readValueFromInstance(t,n){if(wa.has(n)){const r=qv(n);return r&&r.default||0}else {const r=N7(t),o=(Ow(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return h7(t,n)}build(t,n,r,o){Fv(t,n,r,o.transformTemplate);}scrapeMotionValuesFromProps(t,n){return Vv(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Fn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`);}));}renderInstance(t,n,r,o){kw(t,n,r,o);}}class kx extends _x{constructor(){super(...arguments),this.isSVGTag=!1;}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(wa.has(n)){const r=qv(n);return r&&r.default||0}return n=Aw.has(n)?n:Hv(n),t.getAttribute(n)}measureInstanceViewportBox(){return Px()}scrapeMotionValuesFromProps(t,n){return Dw(t,n)}build(t,n,r,o){jv(t,n,r,this.isSVGTag,o.transformTemplate);}renderInstance(t,n,r,o){Lw(t,n,r,o);}mount(t){this.isSVGTag=Bv(t.tagName),super.mount(t);}}const k7=(e,t)=>Dv(e)?new kx(t,{enableHardwareAcceleration:!1}):new Nx(t,{enableHardwareAcceleration:!0}),A7=zB(bH);function L7(e){return m.useEffect(()=>()=>e(),[])}function D7({children:e,features:t,strict:n=!1}){const[,r]=m.useState(!Jf(t)),o=m.useRef(void 0);if(!Jf(t)){const{renderer:a,...i}=t;o.current=a,dh(i);}return m.useEffect(()=>{Jf(t)&&t().then(({renderer:a,...i})=>{dh(i),o.current=a,r(!0);});},[]),m__namespace.createElement(kv.Provider,{value:{renderer:o.current,strict:n}},e)}function Jf(e){return typeof e=="function"}const F7={renderer:k7,...d7,...NH};function Ax(e,t,n){var r;if(typeof e=="string"){let o=document;t&&(jd(!!t.current),o=t.current),n?((r=n[e])!==null&&r!==void 0||(n[e]=o.querySelectorAll(e)),e=n[e]):e=o.querySelectorAll(e);}else e instanceof Element&&(e=[e]);return Array.from(e||[])}function z7(e,t){let n;const r=()=>{const{currentTime:o}=t,i=(o===null?0:o.value)/100;n!==i&&e(i),n=i;};return Ln.update(r,!0),()=>Gs(r)}const j7=bx(()=>window.ScrollTimeline!==void 0);class Lx{constructor(t){this.animations=t.filter(Boolean);}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n;}attachTimeline(t){const n=this.animations.map(r=>{if(j7()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),z7(o=>{r.time=r.duration*o;},t)});return ()=>{n.forEach((r,o)=>{r&&r(),this.animations[o].stop();});}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t);}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t);}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]());}play(){this.runAll("play");}pause(){this.runAll("pause");}stop(){this.runAll("stop");}cancel(){this.runAll("cancel");}complete(){this.runAll("complete");}}function B7(e){return typeof e=="object"&&!Array.isArray(e)}function H7(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=g7(e)?new kx(t,{enableHardwareAcceleration:!1}):new Nx(t,{enableHardwareAcceleration:!0});n.mount(e),Us.set(e,n);}function V7(e,t=100){const n=Xv({keyframes:[0,t],...e}),r=Math.min(bh(n),ph);return {type:"keyframes",ease:o=>n.next(r*o).value/t,duration:ho(r)}}function yy(e,t,n,r){var o;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(o=r.get(t))!==null&&o!==void 0?o:e}const W7=(e,t,n)=>{const r=t-e;return ((n-e)%r+r)%r+e};function G7(e,t){return Yw(e)?e[W7(0,e.length,t)]:e}function K7(e,t,n){for(let r=0;r<e.length;r++){const o=e[r];o.at>t&&o.at<n&&(wx(e,o),r--);}}function U7(e,t,n,r,o,a){K7(e,o,a);for(let i=0;i<t.length;i++)e.push({value:t[i],at:El(o,a,r[i]),easing:G7(n,i)});}function X7(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const q7="easeInOut";function Y7(e,{defaultTransition:t={},...n}={},r){const o=t.duration||.3,a=new Map,i=new Map,s={},l=new Map;let c=0,u=0,d=0;for(let f=0;f<e.length;f++){const h=e[f];if(typeof h=="string"){l.set(h,u);continue}else if(!Array.isArray(h)){l.set(h.name,yy(u,h.at,c,l));continue}let[g,v,p={}]=h;p.at!==void 0&&(u=yy(u,p.at,c,l));let b=0;const y=(C,$,w,E=0,S=0)=>{const x=Z7(C),{delay:I=0,times:P=gx(x),type:R="keyframes",...O}=$;let{ease:N=t.ease||"easeOut",duration:A}=$;const L=typeof I=="function"?I(E,S):I,T=x.length;if(T<=2&&R==="spring"){let F=100;if(T===2&&eV(x)){const V=x[1]-x[0];F=Math.abs(V);}const B={...O};A!==void 0&&(B.duration=No(A));const H=V7(B,F);N=H.ease,A=H.duration;}A??(A=o);const M=u+L,_=M+A;P.length===1&&P[0]===0&&(P[1]=1);const z=P.length-x.length;z>0&&hx(P,z),x.length===1&&x.unshift(null),U7(w,x,N,P,M,_),b=Math.max(L+A,b),d=Math.max(_,d);};if(Fn(g)){const C=Cy(g,i);y(v,p,Sy("default",C));}else {const C=Ax(g,r,s),$=C.length;for(let w=0;w<$;w++){v=v,p=p;const E=C[w],S=Cy(E,i);for(const x in v)y(v[x],Q7(p,x),Sy(x,S),w,$);}c=u,u+=b;}}return i.forEach((f,h)=>{for(const g in f){const v=f[g];v.sort(X7);const p=[],b=[],y=[];for(let $=0;$<v.length;$++){const{at:w,value:E,easing:S}=v[$];p.push(E),b.push(Uv(0,d,w)),y.push(S||"easeOut");}b[0]!==0&&(b.unshift(0),p.unshift(p[0]),y.unshift(q7)),b[b.length-1]!==1&&(b.push(1),p.push(null)),a.has(h)||a.set(h,{keyframes:{},transition:{}});const C=a.get(h);C.keyframes[g]=p,C.transition[g]={...t,duration:d,ease:y,times:b,...n};}}),a}function Cy(e,t){return !t.has(e)&&t.set(e,{}),t.get(e)}function Sy(e,t){return t[e]||(t[e]=[]),t[e]}function Z7(e){return Array.isArray(e)?e:[e]}function Q7(e,t){return e[t]?{...e,...e[t]}:{...e}}const J7=e=>typeof e=="number",eV=e=>e.every(J7);function Dx(e,t,n,r){const o=Ax(e,r),a=o.length,i=[];for(let s=0;s<a;s++){const l=o[s];Us.has(l)||H7(l);const c=Us.get(l),u={...n};typeof u.delay=="function"&&(u.delay=u.delay(s,a)),i.push(...Yv(c,{...t,transition:u},{}));}return new Lx(i)}const tV=e=>Array.isArray(e)&&Array.isArray(e[0]);function nV(e,t,n){const r=[];return Y7(e,t,n).forEach(({keyframes:a,transition:i},s)=>{let l;Fn(s)?l=Ox(s,a.default,i.default):l=Dx(s,a,i),r.push(l);}),new Lx(r)}const rV=e=>{function t(n,r,o){let a;return tV(n)?a=nV(n,r,e):B7(r)?a=Dx(n,r,o,e):a=Ox(n,r,o),e&&e.animations.push(a),a}return t};function oV(){const e=mh(()=>({current:null,animations:[]})),t=mh(()=>rV(e));return L7(()=>{e.animations.forEach(n=>n.stop());}),[e,t]}const Fx="HarmonyOS_Regular,PingFang SC,Helvetica Neue,Microsoft YaHei,sans-serif";function Zv({children:e,injectGlobalStyle:t=!1}){const n=Tv(),{colorPrimary:r}=Qg();return ve(Ev,{locale:OB,theme:{algorithm:n?Yb.darkAlgorithm:Yb.defaultAlgorithm,token:{colorPrimary:r,colorBgSpotlight:r,zIndexPopupBase:11e3,fontFamily:Fx}},children:[t&&D(iV,{}),D(D7,{features:F7,children:e})]})}var aV={name:"bts51",styles:"body,.large-header,#i_cecream,.bili-header .bili-header__channel{background-color:var(--bg2);}"};function iV(){const{colorPrimary:e}=Qg(),{styleFancy:t}=hn();return ve(Rt,{children:[D(Qb,{styles:Dr`
          :root {
            ${BS}: ${e};
          }

          .${ya} {
            font-family: ${Fx};
          }
        `}),t&&D(Qb,{styles:aV})]})}function Bd(e){return D(bl,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}var Il,$y=IC;Il=$y.createRoot,$y.hydrateRoot;var sV=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function wy(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 xy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wy(Object(n),!0).forEach(function(r){lV(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function lV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cV(e,t){if(e==null)return {};var n=uV(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function uV(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var dV={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 fV(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function mV(e,t,n){var r=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],a=t.theme||n.theme;switch(a){case"outline":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none");break;case"filled":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("#FFF"),o.push("#FFF");break;case"two-tone":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone);break;case"multi-color":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.multiColor.outFillColor),o.push(typeof r[2]=="string"?r[2]:n.colors.multiColor.innerStrokeColor),o.push(typeof r[3]=="string"?r[3]:n.colors.multiColor.innerFillColor);break}return {size:t.size||n.size,strokeWidth:t.strokeWidth||n.strokeWidth,strokeLinecap:t.strokeLinecap||n.strokeLinecap,strokeLinejoin:t.strokeLinejoin||n.strokeLinejoin,colors:o,id:e}}var zx=m.createContext(dV);zx.Provider;function Xt(e,t,n){return function(r){var o=r.size,a=r.strokeWidth,i=r.strokeLinecap,s=r.strokeLinejoin,l=r.theme,c=r.fill,u=r.className,d=r.spin,f=cV(r,sV),h=m.useContext(zx),g=m.useMemo(fV,[]),v=mV(g,{size:o,strokeWidth:a,strokeLinecap:i,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",xy(xy({},f),{},{className:p.join(" ")}),n(v))}}const hV=Xt("split",!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 10V7C19 5.89543 19.8954 5 21 5H41C42.1046 5 43 5.89543 43 7V29C43 30.1046 42.1046 31 41 31H37",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("rect",{x:"5",y:"18",width:"24",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),gV=Xt("people-search",!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:"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}),m.createElement("path",{d:"M39.9997 41.0002L36.8281 37.8286",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M38 35C38 36.1046 37.5523 37.1046 36.8284 37.8284C36.1046 38.5523 35.1046 39 34 39C31.7909 39 30 37.2091 30 35C30 32.7909 31.7909 31 34 31C36.2091 31 38 32.7909 38 35Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),vV=Xt("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}))}),pV=Xt("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}))}),bV=Xt("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}))}),yV=Xt("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}))}),CV=Xt("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}))}),SV=Xt("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}))}),$V=Xt("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}))}),wV=Xt("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}))}),xV=Xt("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}))}),EV=Xt("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}))}),IV=Xt("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}))}),PV=Xt("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]}))}),OV=Xt("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}))}),MV=Xt("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}))}),RV=Xt("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}))}),TV=Xt("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}))}),_V=Xt("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}))}),NV=Xt("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}))}),kV=Xt("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}))}),AV=Xt("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}))}),LV=Xt("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]}))}),DV=Xt("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}))}),FV=Xt("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}))}),zV=Xt("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}))}),jV={Close:zV,Config:FV,DistraughtFace:DV,Help:LV,Info:AV,Loading:kV,LoadingThree:NV,Return:_V,Tips:TV,Computer:RV,Iphone:MV,Concern:OV,Tumblr:PV,FileCabinet:IV,Star:EV,EfferentFour:xV,Copy:wV,DislikeTwo:$V,Unlike:SV,PlayTwo:CV,AddTwo:yV,Delete:bV,PeopleDelete:pV,PeopleMinus:vV,PeopleSearch:gV,Split:hV};function Ft({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const a=jV[e];return D(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}var jx=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);}},kr=function(){return kr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a]);}return t},kr.apply(this,arguments)};function Bx(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 BV(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a);})}return new(n||(n=Promise))(function(a,i){function s(u){try{c(r.next(u));}catch(d){i(d);}}function l(u){try{c(r.throw(u));}catch(d){i(d);}}function c(u){u.done?a(u.value):o(u.value).then(s,l);}c((r=r.apply(e,t||[])).next());})}function HV(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(a=c[0]&2?o.return:c[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;switch(o=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n);}catch(u){c=[6,u],o=0;}finally{r=a=0;}if(c[0]&5)throw c[1];return {value:c[0]?c[1]:void 0,done:!0}}}function xh(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 on(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)a.push(o.value);}catch(s){i={error:s};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(i)throw i.error}}return a}function kn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Xi=function(e){return typeof e=="function"},VV=function(e){return typeof e=="string"},Hx=function(e){return typeof e=="number"};function lt(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 uu=jx(m.useEffect);var Vx=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?!0:r,a=t.defaultParams,i=a===void 0?[]:a,s=t.refreshDeps,l=s===void 0?[]:s,c=t.refreshDepsAction,u=m.useRef(!1);return u.current=!1,uu(function(){!n&&o&&(u.current=!0,e.run.apply(e,kn([],on(i),!1)));},[o]),uu(function(){u.current||n||(u.current=!0,c?c():e.refresh());},kn([],on(l),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};Vx.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const GV=Vx;function Eh(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 Wx(e,t){var n=m.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!Eh(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function wi(e){var t=m.useRef(e);return t.current=e,t}var KV=function(e){var t=wi(e);m.useEffect(function(){return function(){t.current();}},[]);};const Pl=KV;var Mc=new Map,UV=function(e,t,n){var r=Mc.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){Mc.delete(e);},t)),Mc.set(e,kr(kr({},n),{timer:o}));},XV=function(e){return Mc.get(e)},Rc=new Map,qV=function(e){return Rc.get(e)},YV=function(e,t){Rc.set(e,t),t.then(function(n){return Rc.delete(e),n}).catch(function(){Rc.delete(e);});},qo={},ZV=function(e,t){qo[e]&&qo[e].forEach(function(n){return n(t)});},em=function(e,t){return qo[e]||(qo[e]=[]),qo[e].push(t),function(){var r=qo[e].indexOf(t);qo[e].splice(r,1);}},QV=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,a=t.staleTime,i=a===void 0?0:a,s=t.setCache,l=t.getCache,c=m.useRef(),u=m.useRef(),d=function(h,g){s?s(g):UV(h,o,g),ZV(h,g.data);},f=function(h,g){return g===void 0&&(g=[]),l?l(g):XV(h)};return Wx(function(){if(n){var h=f(n);h&&Object.hasOwnProperty.call(h,"data")&&(e.state.data=h.data,e.state.params=h.params,(i===-1||new Date().getTime()-h.time<=i)&&(e.state.loading=!1)),c.current=em(n,function(g){e.setState({data:g});});}},[]),Pl(function(){var h;(h=c.current)===null||h===void 0||h.call(c);}),n?{onBefore:function(h){var g=f(n,h);return !g||!Object.hasOwnProperty.call(g,"data")?{}:i===-1||new Date().getTime()-g.time<=i?{loading:!1,data:g==null?void 0:g.data,error:void 0,returnNow:!0}:{data:g==null?void 0:g.data,error:void 0}},onRequest:function(h,g){var v=qV(n);return v&&v!==u.current?{servicePromise:v}:(v=h.apply(void 0,kn([],on(g),!1)),u.current=v,YV(n,v),{servicePromise:v})},onSuccess:function(h,g){var v;n&&((v=c.current)===null||v===void 0||v.call(c),d(n,{data:h,params:g,time:new Date().getTime()}),c.current=em(n,function(p){e.setState({data:p});}));},onMutate:function(h){var g;n&&((g=c.current)===null||g===void 0||g.call(c),d(n,{data:h,params:e.state.params,time:new Date().getTime()}),c.current=em(n,function(v){e.setState({data:v});}));}}:{}};const JV=QV;var eW=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,a=t.debounceMaxWait,i=m.useRef(),s=m.useMemo(function(){var l={};return r!==void 0&&(l.leading=r),o!==void 0&&(l.trailing=o),a!==void 0&&(l.maxWait=a),l},[r,o,a]);return m.useEffect(function(){if(n){var l=e.runAsync.bind(e);return i.current=S5(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=i.current)===null||h===void 0||h.call(i,function(){l.apply(void 0,kn([],on(c),!1)).then(d).catch(f);});})},function(){var c;(c=i.current)===null||c===void 0||c.cancel(),e.runAsync=l;}}},[n,s]),n?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel();}}:{}};const tW=eW;var nW=function(e,t){var n=t.loadingDelay,r=t.ready,o=m.useRef();if(!n)return {};var a=function(){o.current&&clearTimeout(o.current);};return {onBefore:function(){return a(),r!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0});},n)),{loading:!1}},onFinally:function(){a();},onCancel:function(){a();}}};const rW=nW;var oW=!!(typeof window<"u"&&window.document&&window.document.createElement);const Ol=oW;function Qv(){return Ol?document.visibilityState!=="hidden":!0}var Ps=[];function aW(e){return Ps.push(e),function(){var n=Ps.indexOf(e);Ps.splice(n,1);}}if(Ol){var iW=function(){if(Qv())for(var e=0;e<Ps.length;e++){var t=Ps[e];t();}};window.addEventListener("visibilitychange",iW,!1);}var sW=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,o=r===void 0?!0:r,a=t.pollingErrorRetryCount,i=a===void 0?-1:a,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 uu(function(){n||u();},[n]),n?{onBefore:function(){u();},onError:function(){c.current+=1;},onSuccess:function(){c.current=0;},onFinally:function(){i===-1||i!==-1&&c.current<=i?s.current=setTimeout(function(){!o&&!Qv()?l.current=aW(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){u();}}:{}};const lW=sW;function cW(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,kn([],on(r),!1)),setTimeout(function(){n=!1;},t));}}function uW(){return Ol&&typeof navigator.onLine<"u"?navigator.onLine:!0}var Os=[];function dW(e){return Os.push(e),function(){var n=Os.indexOf(e);n>-1&&Os.splice(n,1);}}if(Ol){var Ey=function(){if(!(!Qv()||!uW()))for(var e=0;e<Os.length;e++){var t=Os[e];t();}};window.addEventListener("visibilitychange",Ey,!1),window.addEventListener("focus",Ey,!1);}var fW=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,a=m.useRef(),i=function(){var s;(s=a.current)===null||s===void 0||s.call(a);};return m.useEffect(function(){if(n){var s=cW(e.refresh.bind(e),o);a.current=dW(function(){s();});}return function(){i();}},[n,o]),Pl(function(){i();}),{}};const mW=fW;var hW=function(e,t){var n=t.retryInterval,r=t.retryCount,o=m.useRef(),a=m.useRef(0),i=m.useRef(!1);return r?{onBefore:function(){i.current||(a.current=0),i.current=!1,o.current&&clearTimeout(o.current);},onSuccess:function(){a.current=0;},onError:function(){if(a.current+=1,r===-1||a.current<=r){var s=n??Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){i.current=!0,e.refresh();},s);}else a.current=0;},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current);}}:{}};const gW=hW;var vW=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,a=m.useRef(),i={};return r!==void 0&&(i.leading=r),o!==void 0&&(i.trailing=o),m.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=RS(function(l){l();},n,i),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=a.current)===null||f===void 0||f.call(a,function(){s.apply(void 0,kn([],on(l),!1)).then(u).catch(d);});})},function(){var l;e.runAsync=s,(l=a.current)===null||l===void 0||l.cancel();}}},[n,r,o]),n?{onCancel:function(){var s;(s=a.current)===null||s===void 0||s.cancel();}}:{}};const pW=vW;var bW=function(e){m.useEffect(function(){e==null||e();},[]);};const Ml=bW;var yW=function(){var e=on(m.useState({}),2),t=e[1];return m.useCallback(function(){return t({})},[])};const CW=yW;var SW=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=kr(kr(kr({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=kr(kr({},this.state),t),this.subscribe();},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.pluginImpls.map(function(a){var i;return (i=a[t])===null||i===void 0?void 0:i.call.apply(i,kn([a],on(n),!1))}).filter(Boolean);return Object.assign.apply(Object,kn([{}],on(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,a,i,s,l,c,u,d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return BV(this,void 0,void 0,function(){var h,g,v,p,b,y,C,$,w,E,S;return HV(this,function(x){switch(x.label){case 0:if(this.count+=1,h=this.count,g=this.runPluginHandler("onBefore",d),v=g.stopNow,p=v===void 0?!1:v,b=g.returnNow,y=b===void 0?!1:b,C=Bx(g,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState(kr({loading:!0,params:d},C)),y)return [2,Promise.resolve(C.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),x.label=1;case 1:return x.trys.push([1,3,,4]),$=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,$||($=(S=this.serviceRef).current.apply(S,kn([],on(d),!1))),[4,$];case 2:return w=x.sent(),h!==this.count?[2,new Promise(function(){})]:(this.setState({data:w,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,w,d),this.runPluginHandler("onSuccess",w,d),(i=(a=this.options).onFinally)===null||i===void 0||i.call(a,d,w,void 0),h===this.count&&this.runPluginHandler("onFinally",d,w,void 0),[2,w]);case 3:if(E=x.sent(),h!==this.count)return [2,new Promise(function(){})];throw this.setState({error:E,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,E,d),this.runPluginHandler("onError",E,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,E),h===this.count&&this.runPluginHandler("onFinally",d,void 0,E),E;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,kn([],on(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,kn([],on(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,kn([],on(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=Xi(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const $W=SW;function wW(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,a=Bx(t,["manual"]);var i=kr({manual:o},a),s=wi(e),l=CW(),c=Wx(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,i)}).filter(Boolean);return new $W(s,i,l,Object.assign.apply(Object,kn([{}],on(u),!1)))},[]);return c.options=i,c.pluginImpls=n.map(function(u){return u(c,i)}),Ml(function(){if(!o){var u=c.state.params||t.defaultParams||[];c.run.apply(c,kn([],on(u),!1));}}),Pl(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:lt(c.cancel.bind(c)),refresh:lt(c.refresh.bind(c)),refreshAsync:lt(c.refreshAsync.bind(c)),run:lt(c.run.bind(c)),runAsync:lt(c.runAsync.bind(c)),mutate:lt(c.mutate.bind(c))}}function Gx(e,t,n){return wW(e,t,kn(kn([],on(n||[]),!1),[tW,rW,lW,mW,pW,GV,JV,gW],!1))}function Kx(e,t){e===void 0&&(e=!1);var n=on(m.useState(e),2),r=n[0],o=n[1],a=m.useMemo(function(){var i=t===void 0?!e:t,s=function(){return o(function(d){return d===e?i:e})},l=function(d){return o(d)},c=function(){return o(e)},u=function(){return o(i)};return {toggle:s,set:l,setLeft:c,setRight:u}},[]);return [r,a]}function xW(e){e===void 0&&(e=!1);var t=on(Kx(!!e),2),n=t[0],r=t[1],o=r.toggle,a=r.set,i=m.useMemo(function(){var s=function(){return a(!0)},l=function(){return a(!1)};return {toggle:o,set:function(c){return a(!!c)},setTrue:s,setFalse:l}},[]);return [n,i]}function Vd(e,t){if(Ol){if(!e)return t;var n;return Xi(e)?n=e():"current"in e?n=e.current:n=e,n}}var EW=function(e){var t=function(n,r,o){var a=m.useRef(!1),i=m.useRef([]),s=m.useRef([]),l=m.useRef();e(function(){var c,u=Array.isArray(o)?o:[o],d=u.map(function(f){return Vd(f)});if(!a.current){a.current=!0,i.current=d,s.current=r,l.current=n();return}(d.length!==i.current.length||!Eh(d,i.current)||!Eh(r,s.current))&&((c=l.current)===null||c===void 0||c.call(l),i.current=d,s.current=r,l.current=n());}),Pl(function(){var c;(c=l.current)===null||c===void 0||c.call(l),a.current=!1;});};return t};const IW=EW;var PW=IW(m.useEffect);const Ux=PW;var OW="__lodash_hash_undefined__";function MW(e){return this.__data__.set(e,OW),this}var RW=MW;function TW(e){return this.__data__.has(e)}var _W=TW,NW=kg,kW=RW,AW=_W;function du(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new NW;++t<n;)this.add(e[t]);}du.prototype.add=du.prototype.push=kW;du.prototype.has=AW;var Xx=du;function LW(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return !0;return !1}var DW=LW;function FW(e,t){return e.has(t)}var qx=FW,zW=Xx,jW=DW,BW=qx,HW=1,VW=2;function WW(e,t,n,r,o,a){var i=n&HW,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return !1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&VW?new zW:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var g=e[d],v=t[d];if(r)var p=i?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(p!==void 0){if(p)continue;f=!1;break}if(h){if(!jW(t,function(b,y){if(!BW(h,y)&&(g===b||o(g,b,n,r,a)))return h.push(y)})){f=!1;break}}else if(!(g===v||o(g,v,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var Yx=WW;function GW(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}var KW=GW;function UW(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var Jv=UW,Iy=Ni,Py=pS,XW=_g,qW=Yx,YW=KW,ZW=Jv,QW=1,JW=2,eG="[object Boolean]",tG="[object Date]",nG="[object Error]",rG="[object Map]",oG="[object Number]",aG="[object RegExp]",iG="[object Set]",sG="[object String]",lG="[object Symbol]",cG="[object ArrayBuffer]",uG="[object DataView]",Oy=Iy?Iy.prototype:void 0,tm=Oy?Oy.valueOf:void 0;function dG(e,t,n,r,o,a,i){switch(n){case uG:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case cG:return !(e.byteLength!=t.byteLength||!a(new Py(e),new Py(t)));case eG:case tG:case oG:return XW(+e,+t);case nG:return e.name==t.name&&e.message==t.message;case aG:case sG:return e==t+"";case rG:var s=YW;case iG:var l=r&QW;if(s||(s=ZW),e.size!=t.size&&!l)return !1;var c=i.get(e);if(c)return c==t;r|=JW,i.set(e,t);var u=qW(s(e),s(t),r,o,a,i);return i.delete(e),u;case lG:if(tm)return tm.call(e)==tm.call(t)}return !1}var fG=dG,My=mS,mG=1,hG=Object.prototype,gG=hG.hasOwnProperty;function vG(e,t,n,r,o,a){var i=n&mG,s=My(e),l=s.length,c=My(t),u=c.length;if(l!=u&&!i)return !1;for(var d=l;d--;){var f=s[d];if(!(i?f in t:gG.call(t,f)))return !1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var v=!0;a.set(e,t),a.set(t,e);for(var p=i;++d<l;){f=s[d];var b=e[f],y=t[f];if(r)var C=i?r(y,b,f,t,e,a):r(b,y,f,e,t,a);if(!(C===void 0?b===y||o(b,y,n,r,a):C)){v=!1;break}p||(p=f=="constructor");}if(v&&!p){var $=e.constructor,w=t.constructor;$!=w&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof w=="function"&&w instanceof w)&&(v=!1);}return a.delete(e),a.delete(t),v}var pG=vG,nm=Ag,bG=Yx,yG=fG,CG=pG,Ry=rd,Ty=Br,_y=Fg,SG=aS,$G=1,Ny="[object Arguments]",ky="[object Array]",hc="[object Object]",wG=Object.prototype,Ay=wG.hasOwnProperty;function xG(e,t,n,r,o,a){var i=Ty(e),s=Ty(t),l=i?ky:Ry(e),c=s?ky:Ry(t);l=l==Ny?hc:l,c=c==Ny?hc:c;var u=l==hc,d=c==hc,f=l==c;if(f&&_y(e)){if(!_y(t))return !1;i=!0,u=!1;}if(f&&!u)return a||(a=new nm),i||SG(e)?bG(e,t,n,r,o,a):yG(e,t,l,n,r,o,a);if(!(n&$G)){var h=u&&Ay.call(e,"__wrapped__"),g=d&&Ay.call(t,"__wrapped__");if(h||g){var v=h?e.value():e,p=g?t.value():t;return a||(a=new nm),o(v,p,n,r,a)}}return f?(a||(a=new nm),CG(e,t,n,r,o,a)):!1}var EG=xG,IG=EG,Ly=Fo;function Zx(e,t,n,r,o){return e===t?!0:e==null||t==null||!Ly(e)&&!Ly(t)?e!==e&&t!==t:IG(e,t,n,r,Zx,o)}var ep=Zx,PG=ep;function OG(e,t){return PG(e,t)}var MG=OG;const RG=bn(MG);var TG=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),RG(e,t)};function ko(e,t,n){n===void 0&&(n={});var r=wi(t);Ux(function(){var o=Vd(n.target,window);if(o!=null&&o.addEventListener){var a=function(i){return r.current(i)};return o.addEventListener(e,a,{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,a,{capture:n.capture});}}},[e,n.capture,n.once,n.passive],n.target);}function Qx(e){var t=on(m.useState(e),2),n=t[0],r=t[1],o=m.useRef(n);o.current=n;var a=m.useCallback(function(){return o.current},[]);return [n,r,a]}const rm=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,a=n.onChange,i=on(xW(!1),2),s=i[0],l=i[1],c=l.setTrue,u=l.setFalse;return ko("mouseenter",function(){r==null||r(),c(),a==null||a(!0);},{target:e}),ko("mouseleave",function(){o==null||o(),u(),a==null||a(!1);},{target:e}),s};var _G=function(e,t,n){var r=m.useRef(),o=m.useRef(0);TG(t,r.current)||(r.current=t,o.current+=1),Ux(e,[o.current],n);};const NG=_G;var kG=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const AG=kG;var Jx={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:AG?[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},Ih={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"?Jx.meta.includes(e.keyCode):e.metaKey}};function LG(e){var t=Object.keys(Ih).reduce(function(n,r){return Ih[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function Dy(e,t,n){var r,o;if(!e.key)return !1;if(Hx(t))return e.keyCode===t;var a=t.split("."),i=0;try{for(var s=xh(a),l=s.next();!l.done;l=s.next()){var c=l.value,u=Ih[c],d=Jx[c.toLowerCase()];(u&&u(e)||d&&d===e.keyCode)&&i++;}}catch(f){r={error:f};}finally{try{l&&!l.done&&(o=s.return)&&o.call(s);}finally{if(r)throw r.error}}return n?i===a.length&&LG(e)===a.length:i===a.length}function DG(e,t){return Xi(e)?e:VV(e)||Hx(e)?function(n){return Dy(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return Dy(n,r,t)})}:function(){return !!e}}var FG=["keydown"];function cn(e,t,n){var r=n||{},o=r.events,a=o===void 0?FG:o,i=r.target,s=r.exactMatch,l=s===void 0?!1:s,c=r.useCapture,u=c===void 0?!1:c,d=wi(t),f=wi(e);NG(function(){var h,g,v,p=Vd(i,window);if(p){var b=function(w){var E,S=DG(f.current,l);if(S(w))return (E=d.current)===null||E===void 0?void 0:E.call(d,w)};try{for(var y=xh(a),C=y.next();!C.done;C=y.next()){var $=C.value;(v=p==null?void 0:p.addEventListener)===null||v===void 0||v.call(p,$,b,u);}}catch(w){h={error:w};}finally{try{C&&!C.done&&(g=y.return)&&g.call(y);}finally{if(h)throw h.error}}return function(){var w,E,S;try{for(var x=xh(a),I=x.next();!I.done;I=x.next()){var P=I.value;(S=p==null?void 0:p.removeEventListener)===null||S===void 0||S.call(p,P,b,u);}}catch(R){w={error:R};}finally{try{I&&!I.done&&(E=x.return)&&E.call(x);}finally{if(w)throw w.error}}}}},[a],i);}function e2(e){var t=m.useRef(0),n=on(m.useState(e),2),r=n[0],o=n[1],a=m.useCallback(function(i){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(i);});},[]);return Pl(function(){cancelAnimationFrame(t.current);}),[r,a]}var zG={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 jG=function(e){var t=on(e2(zG),2),n=t[0],r=t[1];return ko("mousemove",function(o){var a=o.screenX,i=o.screenY,s=o.clientX,l=o.clientY,c=o.pageX,u=o.pageY,d={screenX:a,screenY:i,clientX:s,clientY:l,pageX:c,pageY:u,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},f=Vd(e);if(f){var h=f.getBoundingClientRect(),g=h.left,v=h.top,p=h.width,b=h.height;d.elementPosX=g+window.pageXOffset,d.elementPosY=v+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 BG=function(e,t){return !Object.is(e,t)};function HG(e,t){t===void 0&&(t=BG);var n=m.useRef(),r=m.useRef();return t(r.current,e)&&(n.current=r.current,r.current=e),n.current}var VG=function(){var e=m.useRef(!1);return m.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const WG=VG,GG=jx(m.useLayoutEffect),KG="_modal-mask_1j5wc_1",UG="_modal_1j5wc_1",XG="_modal-header_1j5wc_23",qG="_modal-body_1j5wc_30",YG="_modal-title_1j5wc_35",ZG="_btn-close_1j5wc_42",cr={modalMask:KG,modal:UG,modalHeader:XG,modalBody:qG,modalTitle:YG,btnClose:ZG};let ps=0;const QG=()=>{ps++,document.body.style.overflow="hidden";},JG=()=>{ps--,ps<0&&(ps=0),ps===0&&(document.body.style.overflow="");};function Wd({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:a,clsModal:i,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){m.useLayoutEffect(()=>{e?QG():JG();},[e]);const u=m.useRef(null),d=Tv(),{bg:f,c:h}=m.useMemo(()=>{const y=window.getComputedStyle(document.body).backgroundColor,C=window.getComputedStyle(document.body).color;return {bg:y,c:C}},[d]),g=m.useMemo(()=>d?{"--bg":f,"--c":h,backgroundColor:f,color:h}:{},[f,h,d]),v=m.useId(),p=m.useMemo(()=>{const y=document.createElement("div");return y.classList.add(ya),y.setAttribute("data-id","base-modal-"+v),document.body.appendChild(y),y},[]),b=lt(y=>{var $;const C=y.target;($=u.current)!=null&&$.contains(C)||C.closest('.ant-tooltip-inner[role="tooltip"]')||C.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return cn("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?IC.createPortal(D("div",{className:G(cr.modalMask,o),style:r,onClick:b,children:D("div",{className:G(cr.modal,i),style:{...g,width:s,...a},ref:u,children:n})}),p):null}const Gd=e=>D(Ft,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});function tp(e){const t=ur({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(ur(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 eK(e){const t=ur({data:Array.from(e||[]),has(n){return this.data.some(r=>r[0]===n)},set(n,r){const o=this.data.find(a=>a[0]===n);return o?o[1]=r:this.data.push([n,r]),this},get(n){var r;return (r=this.data.find(o=>o[0]===n))==null?void 0:r[1]},delete(n){const r=this.data.findIndex(o=>o[0]===n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(n){this.data.forEach(r=>{n(r[1],r[0],this);});},keys(){return this.data.map(n=>n[0]).values()},values(){return this.data.map(n=>n[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return "Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}var $r,qt,rn,Oo,nl,Mo,rl,Ph,ar,Rr,ku,t2,ol,Oh,al,Mh,il,Rh,Au,n2,sl,Th;class tK extends Map{constructor(n={}){super();Vn(this,rl);Vn(this,ar);Vn(this,ku);Vn(this,ol);Vn(this,al);Vn(this,il);Vn(this,Au);Vn(this,sl);Vn(this,$r,0);Vn(this,qt,new Map);Vn(this,rn,new Map);Vn(this,Oo,void 0);Vn(this,nl,void 0);Vn(this,Mo,void 0);if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof n.maxAge=="number"&&n.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");Rn(this,Oo,n.maxSize),Rn(this,nl,n.maxAge||Number.POSITIVE_INFINITY),Rn(this,Mo,n.onEviction);}get __oldCache(){return ut(this,rn)}get(n){if(ut(this,qt).has(n)){const r=ut(this,qt).get(n);return en(this,ol,Oh).call(this,n,r)}if(ut(this,rn).has(n)){const r=ut(this,rn).get(n);if(en(this,ar,Rr).call(this,n,r)===!1)return en(this,Au,n2).call(this,n,r),r.value}}set(n,r,{maxAge:o=ut(this,nl)}={}){const a=typeof o=="number"&&o!==Number.POSITIVE_INFINITY?Date.now()+o:void 0;return ut(this,qt).has(n)?ut(this,qt).set(n,{value:r,expiry:a}):en(this,il,Rh).call(this,n,{value:r,expiry:a}),this}has(n){return ut(this,qt).has(n)?!en(this,ar,Rr).call(this,n,ut(this,qt).get(n)):ut(this,rn).has(n)?!en(this,ar,Rr).call(this,n,ut(this,rn).get(n)):!1}peek(n){if(ut(this,qt).has(n))return en(this,al,Mh).call(this,n,ut(this,qt));if(ut(this,rn).has(n))return en(this,al,Mh).call(this,n,ut(this,rn))}delete(n){const r=ut(this,qt).delete(n);return r&&$f(this,$r)._--,ut(this,rn).delete(n)||r}clear(){ut(this,qt).clear(),ut(this,rn).clear(),Rn(this,$r,0);}resize(n){if(!(n&&n>0))throw new TypeError("`maxSize` must be a number greater than 0");const r=[...en(this,sl,Th).call(this)],o=r.length-n;o<0?(Rn(this,qt,new Map(r)),Rn(this,rn,new Map),Rn(this,$r,r.length)):(o>0&&en(this,rl,Ph).call(this,r.slice(0,o)),Rn(this,rn,new Map(r.slice(o))),Rn(this,qt,new Map),Rn(this,$r,0)),Rn(this,Oo,n);}*keys(){for(const[n]of this)yield n;}*values(){for(const[,n]of this)yield n;}*[Symbol.iterator](){for(const n of ut(this,qt)){const[r,o]=n;en(this,ar,Rr).call(this,r,o)===!1&&(yield [r,o.value]);}for(const n of ut(this,rn)){const[r,o]=n;ut(this,qt).has(r)||en(this,ar,Rr).call(this,r,o)===!1&&(yield [r,o.value]);}}*entriesDescending(){let n=[...ut(this,qt)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;en(this,ar,Rr).call(this,a,i)===!1&&(yield [a,i.value]);}n=[...ut(this,rn)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;ut(this,qt).has(a)||en(this,ar,Rr).call(this,a,i)===!1&&(yield [a,i.value]);}}*entriesAscending(){for(const[n,r]of en(this,sl,Th).call(this))yield [n,r.value];}get size(){if(!ut(this,$r))return ut(this,rn).size;let n=0;for(const r of ut(this,rn).keys())ut(this,qt).has(r)||n++;return Math.min(ut(this,$r)+n,ut(this,Oo))}get maxSize(){return ut(this,Oo)}entries(){return this.entriesAscending()}forEach(n,r=this){for(const[o,a]of this.entriesAscending())n.call(r,a,o,this);}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}$r=new WeakMap,qt=new WeakMap,rn=new WeakMap,Oo=new WeakMap,nl=new WeakMap,Mo=new WeakMap,rl=new WeakSet,Ph=function(n){if(typeof ut(this,Mo)=="function")for(const[r,o]of n)ut(this,Mo).call(this,r,o.value);},ar=new WeakSet,Rr=function(n,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof ut(this,Mo)=="function"&&ut(this,Mo).call(this,n,r.value),this.delete(n)):!1},ku=new WeakSet,t2=function(n,r){if(en(this,ar,Rr).call(this,n,r)===!1)return r.value},ol=new WeakSet,Oh=function(n,r){return r.expiry?en(this,ku,t2).call(this,n,r):r.value},al=new WeakSet,Mh=function(n,r){const o=r.get(n);return en(this,ol,Oh).call(this,n,o)},il=new WeakSet,Rh=function(n,r){ut(this,qt).set(n,r),$f(this,$r)._++,ut(this,$r)>=ut(this,Oo)&&(Rn(this,$r,0),en(this,rl,Ph).call(this,ut(this,rn)),Rn(this,rn,ut(this,qt)),Rn(this,qt,new Map));},Au=new WeakSet,n2=function(n,r){ut(this,rn).delete(n),en(this,il,Rh).call(this,n,r);},sl=new WeakSet,Th=function*(){for(const n of ut(this,rn)){const[r,o]=n;ut(this,qt).has(r)||en(this,ar,Rr).call(this,r,o)===!1&&(yield n);}for(const n of ut(this,qt)){const[r,o]=n;en(this,ar,Rr).call(this,r,o)===!1&&(yield n);}};async function nK(e){return (await yn.get("/x/player/videoshot",{params:{aid:e,index:"1"}})).data.data}async function rK(e){return []}const om=new tK({maxSize:1e3});async function oK(e){if(om.has(e))return om.get(e);const[t,n]=await Promise.all([nK(e),rK()]);return om.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function r2(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:Hi()}),a=(await yn.post("/x/v2/history/toview/"+e,r)).data,i=oo(a);return i||Et((a==null?void 0:a.message)||"出错了"),i}}const is=r2("add"),Fy=r2("del"),o2=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const a=(await id.get(NS+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return oo(a)}},aK=o2("dislike"),iK=o2("cancel"),sK="_modal_1rloz_1",lK="_title-desc_1rloz_4",cK="_reason-list_1rloz_8",uK="_reason_1rloz_8",dK="_active_1rloz_29",fK="_reason-no_1rloz_33",mK="_tips-container_1rloz_47",hK="_tips_1rloz_47",yr={modal:sK,titleDesc:lK,reasonList:cK,reason:uK,active:dK,reasonNo:fK,tipsContainer:mK,tips:hK},Kd=eK();function gK(){return hr(Kd)}function vK(e){const t=gK();if(e)return t.get(e)}function pK({show:e,onHide:t,item:n}){const[r,o]=m.useState(!1),a=lt(async h=>{if(!n)return;let g=!1,v;try{o(!0),g=await aK(n,h.id);}catch(p){v=p;}finally{o(!1);}if(v)return console.error(v.stack||v),KS();g?Et("已标记不想看"):US(),g&&(Kd.set(n.param,{...h}),t());}),i=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"];cn(l,h=>{if(!s()||!l.includes(h.key))return;const g=Number(h.key)-1;u(g);const v=document.querySelectorAll(`.${yr.reason}`)[g]||null;v==null||v.click();});const[c,u]=m.useState(i.length-1);GG(()=>{u(i.length-1);},[i]);const d=h=>()=>{if(!s())return;const g=c+h;g<0||g>i.length-1||u(g);};cn("leftarrow",d(-1),{exactMatch:!0}),cn("rightarrow",d(1),{exactMatch:!0}),cn("uparrow",d(-2),{exactMatch:!0}),cn("downarrow",d(2),{exactMatch:!0}),cn("enter",h=>{var g;s()&&(c<0||c>i.length-1||(h.preventDefault(),h.stopImmediatePropagation(),(g=document.querySelector(`.${yr.reason}.${yr.active}`))==null||g.click()));},{exactMatch:!0});const f=m.useMemo(()=>{var h;return ((h=i[c])==null?void 0:h.name)||""},[i,c]);return ve(Wd,{show:e,onHide:t,clsModal:yr.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[ve("div",{className:cr.modalHeader,children:[ve("div",{className:cr.modalTitle,children:["我不想看",D("span",{className:yr.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),D("div",{className:"space",style:{flex:1}}),D(Gd,{onClick:t})]}),ve("div",{className:cr.modalBody,children:[D("div",{className:yr.reasonList,children:i.map((h,g)=>ve("button",{className:G(yr.reason,{[yr.active]:g===c}),style:{...g===c&&{borderColor:to}},"data-id":h.id,onClick:()=>{u(g),a(h);},disabled:r,children:[D("span",{className:yr.reasonNo,style:{backgroundColor:to},children:g+1}),h.name]},h.id))}),ve("div",{className:yr.tipsContainer,children:[ve("div",{className:yr.tips,children:[D(Ft,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),f&&ve("div",{className:yr.tips,children:[D(Ft,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",f,"」, 回车键提交"]})]})]})]})}const Tc={show:!1,onHide:i2,item:null},a2=ur({value:Tc.show}),bK=function(){return hr(a2).value};function i2(){setTimeout(()=>{s2({show:!1,item:null});});}function s2(e){Object.assign(Tc,e),a2.value=Tc.show,yK().render(D(pK,{...Tc,onHide:i2}));}let zy;function yK(){return zy||(zy=(()=>{const e=document.createElement("div");return e.classList.add("show-dislike-container",ya),document.body.appendChild(e),Il(e)})()),zy}function CK(e){e!=null&&e.param&&Kd.has(e.param)||s2({show:!0,item:e});}var SK=`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`,$K=`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`,wK="".concat(SK," ").concat($K).split(/[\s\n]+/),xK="aria-",EK="data-";function jy(e,t){return e.indexOf(t)===0}function xi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=U({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||jy(o,xK))||n.data&&jy(o,EK)||n.attr&&wK.includes(o))&&(r[o]=e[o]);}),r}const l2=m__namespace.createContext(null),IK=l2.Provider,c2=m__namespace.createContext(null),PK=c2.Provider;var OK=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],u2=m.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,a=e.className,i=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,g=e.onChange,v=et(e,OK),p=m.useRef(null),b=Ut(u,{value:s}),y=Z(b,2),C=y[0],$=y[1];m.useImperativeHandle(t,function(){return {focus:function(){var x;(x=p.current)===null||x===void 0||x.focus();},blur:function(){var x;(x=p.current)===null||x===void 0||x.blur();},input:p.current}});var w=G(o,a,(n={},j(n,"".concat(o,"-checked"),C),j(n,"".concat(o,"-disabled"),l),n)),E=function(x){l||("checked"in e||$(x.target.checked),g==null||g({target:U(U({},e),{},{type:f,checked:x.target.checked}),stopPropagation:function(){x.stopPropagation();},preventDefault:function(){x.preventDefault();},nativeEvent:x.nativeEvent}));};return m__namespace.createElement("span",{className:w,title:h,style:i},m__namespace.createElement("input",Ie({},v,{className:"".concat(o,"-input"),ref:p,onChange:E,disabled:l,checked:!!C,type:f})),m__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const MK=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(",")}}}}},RK=Wt("Wave",e=>[MK(e)]);function Un(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Un=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(T,M,_){T[M]=_.value;},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(T,M,_){return Object.defineProperty(T,M,{value:_,enumerable:!0,configurable:!0,writable:!0}),T[M]}try{c({},"");}catch{c=function(_,z,F){return _[z]=F};}function u(T,M,_,z){var F=M&&M.prototype instanceof b?M:b,B=Object.create(F.prototype),H=new A(z||[]);return o(B,"_invoke",{value:P(T,_,H)}),B}function d(T,M,_){try{return {type:"normal",arg:T.call(M,_)}}catch(z){return {type:"throw",arg:z}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",g="executing",v="completed",p={};function b(){}function y(){}function C(){}var $={};c($,i,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(L([])));E&&E!==n&&r.call(E,i)&&($=E);var S=C.prototype=b.prototype=Object.create($);function x(T){["next","throw","return"].forEach(function(M){c(T,M,function(_){return this._invoke(M,_)});});}function I(T,M){function _(F,B,H,V){var K=d(T[F],T,B);if(K.type!=="throw"){var X=K.arg,q=X.value;return q&&dt(q)=="object"&&r.call(q,"__await")?M.resolve(q.__await).then(function(te){_("next",te,H,V);},function(te){_("throw",te,H,V);}):M.resolve(q).then(function(te){X.value=te,H(X);},function(te){return _("throw",te,H,V)})}V(K.arg);}var z;o(this,"_invoke",{value:function(B,H){function V(){return new M(function(K,X){_(B,H,K,X);})}return z=z?z.then(V,V):V()}});}function P(T,M,_){var z=f;return function(F,B){if(z===g)throw new Error("Generator is already running");if(z===v){if(F==="throw")throw B;return {value:e,done:!0}}for(_.method=F,_.arg=B;;){var H=_.delegate;if(H){var V=R(H,_);if(V){if(V===p)continue;return V}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(z===f)throw z=v,_.arg;_.dispatchException(_.arg);}else _.method==="return"&&_.abrupt("return",_.arg);z=g;var K=d(T,M,_);if(K.type==="normal"){if(z=_.done?v:h,K.arg===p)continue;return {value:K.arg,done:_.done}}K.type==="throw"&&(z=v,_.method="throw",_.arg=K.arg);}}}function R(T,M){var _=M.method,z=T.iterator[_];if(z===e)return M.delegate=null,_==="throw"&&T.iterator.return&&(M.method="return",M.arg=e,R(T,M),M.method==="throw")||_!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+_+"' method")),p;var F=d(z,T.iterator,M.arg);if(F.type==="throw")return M.method="throw",M.arg=F.arg,M.delegate=null,p;var B=F.arg;return B?B.done?(M[T.resultName]=B.value,M.next=T.nextLoc,M.method!=="return"&&(M.method="next",M.arg=e),M.delegate=null,p):B:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,p)}function O(T){var M={tryLoc:T[0]};1 in T&&(M.catchLoc=T[1]),2 in T&&(M.finallyLoc=T[2],M.afterLoc=T[3]),this.tryEntries.push(M);}function N(T){var M=T.completion||{};M.type="normal",delete M.arg,T.completion=M;}function A(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(O,this),this.reset(!0);}function L(T){if(T||T===""){var M=T[i];if(M)return M.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var _=-1,z=function F(){for(;++_<T.length;)if(r.call(T,_))return F.value=T[_],F.done=!1,F;return F.value=e,F.done=!0,F};return z.next=z}}throw new TypeError(dt(T)+" is not iterable")}return y.prototype=C,o(S,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:y,configurable:!0}),y.displayName=c(C,l,"GeneratorFunction"),t.isGeneratorFunction=function(T){var M=typeof T=="function"&&T.constructor;return !!M&&(M===y||(M.displayName||M.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,C):(T.__proto__=C,c(T,l,"GeneratorFunction")),T.prototype=Object.create(S),T},t.awrap=function(T){return {__await:T}},x(I.prototype),c(I.prototype,s,function(){return this}),t.AsyncIterator=I,t.async=function(T,M,_,z,F){F===void 0&&(F=Promise);var B=new I(u(T,M,_,z),F);return t.isGeneratorFunction(M)?B:B.next().then(function(H){return H.done?H.value:B.next()})},x(S),c(S,l,"Generator"),c(S,i,function(){return this}),c(S,"toString",function(){return "[object Generator]"}),t.keys=function(T){var M=Object(T),_=[];for(var z in M)_.push(z);return _.reverse(),function F(){for(;_.length;){var B=_.pop();if(B in M)return F.value=B,F.done=!1,F}return F.done=!0,F}},t.values=L,A.prototype={constructor:A,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!M)for(var _ in this)_.charAt(0)==="t"&&r.call(this,_)&&!isNaN(+_.slice(1))&&(this[_]=e);},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var _=this;function z(X,q){return H.type="throw",H.arg=M,_.next=X,q&&(_.method="next",_.arg=e),!!q}for(var F=this.tryEntries.length-1;F>=0;--F){var B=this.tryEntries[F],H=B.completion;if(B.tryLoc==="root")return z("end");if(B.tryLoc<=this.prev){var V=r.call(B,"catchLoc"),K=r.call(B,"finallyLoc");if(V&&K){if(this.prev<B.catchLoc)return z(B.catchLoc,!0);if(this.prev<B.finallyLoc)return z(B.finallyLoc)}else if(V){if(this.prev<B.catchLoc)return z(B.catchLoc,!0)}else {if(!K)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return z(B.finallyLoc)}}}},abrupt:function(M,_){for(var z=this.tryEntries.length-1;z>=0;--z){var F=this.tryEntries[z];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var B=F;break}}B&&(M==="break"||M==="continue")&&B.tryLoc<=_&&_<=B.finallyLoc&&(B=null);var H=B?B.completion:{};return H.type=M,H.arg=_,B?(this.method="next",this.next=B.finallyLoc,p):this.complete(H)},complete:function(M,_){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&_&&(this.next=_),p},finish:function(M){for(var _=this.tryEntries.length-1;_>=0;--_){var z=this.tryEntries[_];if(z.finallyLoc===M)return this.complete(z.completion,z.afterLoc),N(z),p}},catch:function(M){for(var _=this.tryEntries.length-1;_>=0;--_){var z=this.tryEntries[_];if(z.tryLoc===M){var F=z.completion;if(F.type==="throw"){var B=F.arg;N(z);}return B}}throw new Error("illegal catch attempt")},delegateYield:function(M,_,z){return this.delegate={iterator:L(M),resultName:_,nextLoc:z},this.method==="next"&&(this.arg=e),p}},t}function By(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value;}catch(c){n(c);return}s.done?t(l):Promise.resolve(l).then(r,o);}function Ea(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(l){By(a,r,o,i,s,"next",l);}function s(l){By(a,r,o,i,s,"throw",l);}i(void 0);})}}var Rl=U({},IC__namespace),TK=Rl.version,_K=Rl.render,NK=Rl.unmountComponentAtNode,Ud;try{var kK=Number((TK||"").split(".")[0]);kK>=18&&(Ud=Rl.createRoot);}catch{}function Hy(e){var t=Rl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&dt(t)==="object"&&(t.usingClientEntryPoint=e);}var fu="__rc_react_root__";function AK(e,t){Hy(!0);var n=t[fu]||Ud(t);Hy(!1),n.render(e),t[fu]=n;}function LK(e,t){_K(e,t);}function DK(e,t){if(Ud){AK(e,t);return}LK(e,t);}function FK(e){return _h.apply(this,arguments)}function _h(){return _h=Ea(Un().mark(function e(t){return Un().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[fu])===null||o===void 0||o.unmount(),delete t[fu];}));case 1:case"end":return r.stop()}},e)})),_h.apply(this,arguments)}function zK(e){NK(e);}function jK(e){return Nh.apply(this,arguments)}function Nh(){return Nh=Ea(Un().mark(function e(t){return Un().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ud===void 0){r.next=2;break}return r.abrupt("return",FK(t));case 2:zK(t);case 3:case"end":return r.stop()}},e)})),Nh.apply(this,arguments)}function BK(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function am(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&BK(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function HK(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return am(t)?t:am(n)?n:am(r)?r:null}const Xd="ant-wave-target";function im(e){return Number.isNaN(e)?0:e}const VK=e=>{const{className:t,target:n,component:r}=e,o=m__namespace.useRef(null),[a,i]=m__namespace.useState(null),[s,l]=m__namespace.useState([]),[c,u]=m__namespace.useState(0),[d,f]=m__namespace.useState(0),[h,g]=m__namespace.useState(0),[v,p]=m__namespace.useState(0),[b,y]=m__namespace.useState(!1),C={left:c,top:d,width:h,height:v,borderRadius:s.map(E=>`${E}px`).join(" ")};a&&(C["--wave-color"]=a);function $(){const E=getComputedStyle(n);i(HK(n));const S=E.position==="static",{borderLeftWidth:x,borderTopWidth:I}=E;u(S?n.offsetLeft:im(-parseFloat(x))),f(S?n.offsetTop:im(-parseFloat(I))),g(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:R,borderBottomLeftRadius:O,borderBottomRightRadius:N}=E;l([P,R,N,O].map(A=>im(parseFloat(A))));}if(m__namespace.useEffect(()=>{if(n){const E=Pt(()=>{$(),y(!0);});let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver($),S.observe(n)),()=>{Pt.cancel(E),S==null||S.disconnect();}}},[]),!b)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Xd));return m__namespace.createElement(Co,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,S)=>{var x;if(S.deadline||S.propertyName==="opacity"){const I=(x=o.current)===null||x===void 0?void 0:x.parentElement;jK(I).then(()=>{I==null||I.remove();});}return !1}},E=>{let{className:S}=E;return m__namespace.createElement("div",{ref:o,className:G(t,{"wave-quick":w},S),style:C})})},WK=(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),DK(m__namespace.createElement(VK,Object.assign({},t,{target:e})),o);},GK=WK;function KK(e,t,n){const{wave:r}=m__namespace.useContext(tt),[,o,a]=Qn(),i=Nn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${Xd}`)||u,{showEffect:f}=r||{};(f||GK)(d,{className:t,token:o,component:n,event:c,hashId:a});}),s=m__namespace.useRef();return c=>{Pt.cancel(s.current),s.current=Pt(()=>{i(c);});}}const UK=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=m.useContext(tt),a=m.useRef(null),i=o("wave"),[,s]=RK(i),l=KK(a,G(i,s),r);if(m.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const d=f=>{!mv(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=zo(t)?Xn(t.ref,a):a;return Kn(t,{ref:c})},Tl=UK;var ta="RC_FORM_INTERNAL_HOOKS",Ht=function(){Sn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},Ei=m__namespace.createContext({getFieldValue:Ht,getFieldsValue:Ht,getFieldError:Ht,getFieldWarning:Ht,getFieldsError:Ht,isFieldsTouched:Ht,isFieldTouched:Ht,isFieldValidating:Ht,isFieldsValidating:Ht,resetFields:Ht,setFields:Ht,setFieldValue:Ht,setFieldsValue:Ht,validateFields:Ht,submit:Ht,getInternalHooks:function(){return Ht(),{dispatch:Ht,initEntityValue:Ht,registerField:Ht,useSubscribe:Ht,setInitialValues:Ht,destroyForm:Ht,setCallbacks:Ht,registerWatch:Ht,getFields:Ht,setValidateMessages:Ht,setPreserve:Ht,getInitialValue:Ht}}}),mu=m__namespace.createContext(null);function kh(e){return e==null?[]:Array.isArray(e)?e:[e]}function XK(e){return e&&!!e._init}function na(){return na=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},na.apply(this,arguments)}function qK(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xs(e,t);}function Ah(e){return Ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ah(e)}function Xs(e,t){return Xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Xs(e,t)}function YK(){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 _c(e,t,n){return YK()?_c=Reflect.construct.bind():_c=function(o,a,i){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(o,s),c=new l;return i&&Xs(c,i.prototype),c},_c.apply(null,arguments)}function ZK(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Lh(e){var t=typeof Map=="function"?new Map:void 0;return Lh=function(r){if(r===null||!ZK(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o);}function o(){return _c(r,arguments,Ah(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Xs(o,r)},Lh(e)}var QK=/%[sdj%]/g,JK=function(){};function Dh(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n);}),t}function ir(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(QK,function(s){if(s==="%%")return "%";if(o>=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return "[Circular]"}break;default:return s}});return i}return e}function eU(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function pn(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||eU(t)&&typeof e=="string"&&!e)}function tU(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,s||[]),o++,o===a&&n(r);}e.forEach(function(s){t(s,i);});}function Vy(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<o?t(e[s],a):n([]);}a([]);}function nU(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[]);}),t}var Wy=function(e){qK(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(Lh(Error));function rU(e,t,n,r,o){if(t.first){var a=new Promise(function(f,h){var g=function(b){return r(b),b.length?h(new Wy(b,Dh(b))):f(o)},v=nU(e);Vy(v,n,g);});return a.catch(function(f){return f}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,h){var g=function(p){if(u.push.apply(u,p),c++,c===l)return r(u),u.length?h(new Wy(u,Dh(u))):f(o)};s.length||(r(u),f(o)),s.forEach(function(v){var p=e[v];i.indexOf(v)!==-1?Vy(p,n,g):tU(p,n,g);});});return d.catch(function(f){return f}),d}function oU(e){return !!(e&&e.message!==void 0)}function aU(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]];}return n}function Gy(e,t){return function(n){var r;return e.fullFields?r=aU(t,e.fullFields):r=t[n.field||e.fullField],oU(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Ky(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=na({},e[n],r):e[n]=r;}}return e}var d2=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||pn(n,i||t.type))&&o.push(ir(a.messages.required,t.fullField));},iU=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(ir(a.messages.whitespace,t.fullField));},gc,sU=function(){if(gc)return gc;var e="[a-fA-F\\d:]",t=function($){return $&&$.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function($){return $&&$.exact?a:new RegExp("(?:"+t($)+n+t($)+")|(?:"+t($)+o+t($)+")","g")};l.v4=function(C){return C&&C.exact?i:new RegExp(""+t(C)+n+t(C),"g")},l.v6=function(C){return C&&C.exact?s:new RegExp(""+t(C)+o+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,f=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+f+"|"+h+g+v+")"+p+b;return gc=new RegExp("(?:^"+y+"$)","i"),gc},Uy={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},bs={integer:function(t){return bs.number(t)&&parseInt(t,10)===t},float:function(t){return bs.number(t)&&!bs.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return !0;try{return !!new RegExp(t)}catch{return !1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!bs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Uy.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(sU())},hex:function(t){return typeof t=="string"&&!!t.match(Uy.hex)}},lU=function(t,n,r,o,a){if(t.required&&n===void 0){d2(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?bs[s](n)||o.push(ir(a.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(ir(a.messages.types[s],t.fullField,t.type));},cU=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",h=typeof n=="string",g=Array.isArray(n);if(f?d="number":h?d="string":g&&(d="array"),!d)return !1;g&&(u=n.length),h&&(u=n.replace(c,"_").length),i?u!==t.len&&o.push(ir(a.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(ir(a.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(ir(a.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(ir(a.messages[d].range,t.fullField,t.min,t.max));},La="enum",uU=function(t,n,r,o,a){t[La]=Array.isArray(t[La])?t[La]:[],t[La].indexOf(n)===-1&&o.push(ir(a.messages[La],t.fullField,t[La].join(", ")));},dU=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(ir(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(ir(a.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},It={required:d2,whitespace:iU,type:lU,range:cU,enum:uU,pattern:dU},fU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(pn(n,"string")&&!t.required)return r();It.required(t,n,o,i,a,"string"),pn(n,"string")||(It.type(t,n,o,i,a),It.range(t,n,o,i,a),It.pattern(t,n,o,i,a),t.whitespace===!0&&It.whitespace(t,n,o,i,a));}r(i);},mU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(pn(n)&&!t.required)return r();It.required(t,n,o,i,a),n!==void 0&&It.type(t,n,o,i,a);}r(i);},hU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),pn(n)&&!t.required)return r();It.required(t,n,o,i,a),n!==void 0&&(It.type(t,n,o,i,a),It.range(t,n,o,i,a));}r(i);},gU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(pn(n)&&!t.required)return r();It.required(t,n,o,i,a),n!==void 0&&It.type(t,n,o,i,a);}r(i);},vU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(pn(n)&&!t.required)return r();It.required(t,n,o,i,a),pn(n)||It.type(t,n,o,i,a);}r(i);},pU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(pn(n)&&!t.required)return r();It.required(t,n,o,i,a),n!==void 0&&(It.type(t,n,o,i,a),It.range(t,n,o,i,a));}r(i);},bU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(pn(n)&&!t.required)return r();It.required(t,n,o,i,a),n!==void 0&&(It.type(t,n,o,i,a),It.range(t,n,o,i,a));}r(i);},yU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();It.required(t,n,o,i,a,"array"),n!=null&&(It.type(t,n,o,i,a),It.range(t,n,o,i,a));}r(i);},CU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(pn(n)&&!t.required)return r();It.required(t,n,o,i,a),n!==void 0&&It.type(t,n,o,i,a);}r(i);},SU="enum",$U=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(pn(n)&&!t.required)return r();It.required(t,n,o,i,a),n!==void 0&&It[SU](t,n,o,i,a);}r(i);},wU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(pn(n,"string")&&!t.required)return r();It.required(t,n,o,i,a),pn(n,"string")||It.pattern(t,n,o,i,a);}r(i);},xU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(pn(n,"date")&&!t.required)return r();if(It.required(t,n,o,i,a),!pn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),It.type(t,l,o,i,a),l&&It.range(t,l.getTime(),o,i,a);}}r(i);},EU=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":typeof n;It.required(t,n,o,i,a,s),r(i);},sm=function(t,n,r,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(pn(n,i)&&!t.required)return r();It.required(t,n,o,s,a,i),pn(n,i)||It.type(t,n,o,s,a);}r(s);},IU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(pn(n)&&!t.required)return r();It.required(t,n,o,i,a);}r(i);},Ms={string:fU,method:mU,number:hU,boolean:gU,regexp:vU,integer:pU,float:bU,array:yU,object:CU,enum:$U,pattern:wU,date:xU,url:sm,hex:sm,email:sm,required:EU,any:IU};function Fh(){return {default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var zh=Fh(),_l=function(){function e(n){this.rules=null,this._messages=zh,this.define(n);}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var i=r[a];o.rules[a]=Array.isArray(i)?i:[i];});},t.messages=function(r){return r&&(this._messages=Ky(Fh(),r)),this._messages},t.validate=function(r,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var s=r,l=o,c=a;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function u(v){var p=[],b={};function y($){if(Array.isArray($)){var w;p=(w=p).concat.apply(w,$);}else p.push($);}for(var C=0;C<v.length;C++)y(v[C]);p.length?(b=Dh(p),c(p,b)):c(null,s);}if(l.messages){var d=this.messages();d===zh&&(d=Fh()),Ky(d,l.messages),l.messages=d;}else l.messages=this.messages();var f={},h=l.keys||Object.keys(this.rules);h.forEach(function(v){var p=i.rules[v],b=s[v];p.forEach(function(y){var C=y;typeof C.transform=="function"&&(s===r&&(s=na({},s)),b=s[v]=C.transform(b)),typeof C=="function"?C={validator:C}:C=na({},C),C.validator=i.getValidationMethod(C),C.validator&&(C.field=v,C.fullField=C.fullField||v,C.type=i.getType(C),f[v]=f[v]||[],f[v].push({rule:C,value:b,source:s,field:v}));});});var g={};return rU(f,l,function(v,p){var b=v.rule,y=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");y=y&&(b.required||!b.required&&v.value),b.field=v.field;function C(E,S){return na({},S,{fullField:b.fullField+"."+E,fullFields:b.fullFields?[].concat(b.fullFields,[E]):[E]})}function $(E){E===void 0&&(E=[]);var S=Array.isArray(E)?E:[E];!l.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&b.message!==void 0&&(S=[].concat(b.message));var x=S.map(Gy(b,s));if(l.first&&x.length)return g[b.field]=1,p(x);if(!y)p(x);else {if(b.required&&!v.value)return b.message!==void 0?x=[].concat(b.message).map(Gy(b,s)):l.error&&(x=[l.error(b,ir(l.messages.required,b.field))]),p(x);var I={};b.defaultField&&Object.keys(v.value).map(function(O){I[O]=b.defaultField;}),I=na({},I,v.rule.fields);var P={};Object.keys(I).forEach(function(O){var N=I[O],A=Array.isArray(N)?N:[N];P[O]=A.map(C.bind(null,O));});var R=new e(P);R.messages(l.messages),v.rule.options&&(v.rule.options.messages=l.messages,v.rule.options.error=l.error),R.validate(v.value,v.rule.options||l,function(O){var N=[];x&&x.length&&N.push.apply(N,x),O&&O.length&&N.push.apply(N,O),p(N.length?N:null);});}}var w;if(b.asyncValidator)w=b.asyncValidator(b,v.value,$,v.source,l);else if(b.validator){try{w=b.validator(b,v.value,$,v.source,l);}catch(E){console.error==null||console.error(E),l.suppressValidatorError||setTimeout(function(){throw E},0),$(E.message);}w===!0?$():w===!1?$(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):w instanceof Array?$(w):w instanceof Error&&$(w.message);}w&&w.then&&w.then(function(){return $()},function(E){return $(E)});},function(v){u(v);},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Ms.hasOwnProperty(r.type))throw new Error(ir("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),a=o.indexOf("message");return a!==-1&&o.splice(a,1),o.length===1&&o[0]==="required"?Ms.required:Ms[this.getType(r)]||void 0},e}();_l.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ms[t]=n;};_l.warning=JK;_l.messages=zh;_l.validators=Ms;var rr="'${name}' is not a valid ${type}",f2={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:rr,method:rr,array:rr,object:rr,number:rr,date:rr,boolean:rr,integer:rr,float:rr,regexp:rr,email:rr,url:rr,hex:rr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Xy=_l;function PU(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var qy="CODE_LOGIC_ERROR";function jh(e,t,n,r,o){return Bh.apply(this,arguments)}function Bh(){return Bh=Ea(Un().mark(function e(t,n,r,o,a){var i,s,l,c,u,d,f,h,g;return Un().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return i=U({},r),delete i.ruleIndex,Xy.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(qy)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new Xy(j({},t,[i])),u=ei(f2,o.validateMessages),c.messages(u),d=[],p.prev=10,p.next=13,Promise.resolve(c.validate(j({},t,n),U({},o)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(d=p.t0.errors.map(function(b,y){var C=b.message,$=C===qy?u.default:C;return m__namespace.isValidElement($)?m__namespace.cloneElement($,{key:"error_".concat(y)}):$}));case 18:if(!(!d.length&&l)){p.next=23;break}return p.next=21,Promise.all(n.map(function(b,y){return jh("".concat(t,".").concat(y),b,l,o,a)}));case 21:return f=p.sent,p.abrupt("return",f.reduce(function(b,y){return [].concat(Te(b),Te(y))},[]));case 23:return h=U(U({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),g=d.map(function(b){return typeof b=="string"?PU(b,h):b}),p.abrupt("return",g);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),Bh.apply(this,arguments)}function OU(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(u,d){var f=u.validator,h=U(U({},u),{},{ruleIndex:d});return f&&(h.validator=function(g,v,p){var b=!1,y=function(){for(var w=arguments.length,E=new Array(w),S=0;S<w;S++)E[S]=arguments[S];Promise.resolve().then(function(){Sn(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,E);});},C=f(g,v,y);b=C&&typeof C.then=="function"&&typeof C.catch=="function",Sn(b,"`callback` is deprecated. Please return a promise instead."),b&&C.then(function(){p();}).catch(function($){p($||" ");});}),h}).sort(function(u,d){var f=u.warningOnly,h=u.ruleIndex,g=d.warningOnly,v=d.ruleIndex;return !!f==!!g?h-v:f?1:-1}),l;if(o===!0)l=new Promise(function(){var u=Ea(Un().mark(function d(f,h){var g,v,p;return Un().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:g=0;case 1:if(!(g<s.length)){y.next=12;break}return v=s[g],y.next=5,jh(i,t,v,r,a);case 5:if(p=y.sent,!p.length){y.next=9;break}return h([{errors:p,rule:v}]),y.abrupt("return");case 9:g+=1,y.next=1;break;case 12:f([]);case 13:case"end":return y.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}}());else {var c=s.map(function(u){return jh(i,t,u,r,a).then(function(d){return {errors:d,rule:u}})});l=(o?RU(c):MU(c)).then(function(u){return Promise.reject(u)});}return l.catch(function(u){return u}),l}function MU(e){return Hh.apply(this,arguments)}function Hh(){return Hh=Ea(Un().mark(function e(t){return Un().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,Te(o));return i}));case 1:case"end":return r.stop()}},e)})),Hh.apply(this,arguments)}function RU(e){return Vh.apply(this,arguments)}function Vh(){return Vh=Ea(Un().mark(function e(t){var n;return Un().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([]);});});}));case 2:case"end":return o.stop()}},e)})),Vh.apply(this,arguments)}function ln(e){return kh(e)}function Yy(e,t){var n={};return t.forEach(function(r){var o=Lr(e,r);n=Nr(n,r,o);}),n}function si(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return m2(t,r,n)})}function m2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return !e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function TU(e,t){if(e===t)return !0;if(!e&&t||e&&!t||!e||!t||dt(e)!=="object"||dt(t)!=="object")return !1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Te(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function _U(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&dt(t.target)==="object"&&e in t.target?t.target[e]:t}function Zy(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Te(e.slice(0,n)),[o],Te(e.slice(n,t)),Te(e.slice(t+1,r))):a<0?[].concat(Te(e.slice(0,t)),Te(e.slice(t+1,n+1)),[o],Te(e.slice(n+1,r))):e}var NU=["name"],Cr=[];function Qy(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var np=function(e){jo(n,e);var t=Bo(n);function n(r){var o;if(wn(this,n),o=t.call(this,r),j(Ge(o),"state",{resetCount:0}),j(Ge(o),"cancelRegisterFunc",null),j(Ge(o),"mounted",!1),j(Ge(o),"touched",!1),j(Ge(o),"dirty",!1),j(Ge(o),"validatePromise",void 0),j(Ge(o),"prevValidating",void 0),j(Ge(o),"errors",Cr),j(Ge(o),"warnings",Cr),j(Ge(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,ln(d)),o.cancelRegisterFunc=null;}),j(Ge(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(Te(f),Te(c)):[]}),j(Ge(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),j(Ge(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return {resetCount:c+1}});}),j(Ge(o),"metaCache",null),j(Ge(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=U(U({},o.getMeta()),{},{destroy:l});vl(o.metaCache,u)||c(u),o.metaCache=u;}else o.metaCache=null;}),j(Ge(o),"onStoreChange",function(l,c,u){var d=o.props,f=d.shouldUpdate,h=d.dependencies,g=h===void 0?[]:h,v=d.onReset,p=u.store,b=o.getNamePath(),y=o.getValue(l),C=o.getValue(p),$=c&&si(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&y!==C&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Cr,o.warnings=Cr,o.triggerMetaEvent()),u.type){case"reset":if(!c||$){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Cr,o.warnings=Cr,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(f){o.reRender();return}break}case"setField":{var w=u.data;if($){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||Cr),"warnings"in w&&(o.warnings=w.warnings||Cr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&si(c,b,!0)){o.reRender();return}if(f&&!b.length&&Qy(f,l,p,y,C,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=g.map(ln);if(E.some(function(S){return si(u.relatedFields,S)})){o.reRender();return}break}default:if($||(!g.length||b.length||f)&&Qy(f,l,p,y,C,u)){o.reRender();return}break}f===!0&&o.reRender();}),j(Ge(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},f=d.triggerName,h=d.validateOnly,g=h===void 0?!1:h,v=Promise.resolve().then(Ea(Un().mark(function p(){var b,y,C,$,w,E,S;return Un().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(o.mounted){I.next=2;break}return I.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,C=y===void 0?!1:y,$=b.messageVariables,w=b.validateDebounce,E=o.getRules(),f&&(E=E.filter(function(P){return P}).filter(function(P){var R=P.validateTrigger;if(!R)return !0;var O=kh(R);return O.includes(f)})),!(w&&f)){I.next=10;break}return I.next=8,new Promise(function(P){setTimeout(P,w);});case 8:if(o.validatePromise===v){I.next=10;break}return I.abrupt("return",[]);case 10:return S=OU(c,u,E,l,C,$),S.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cr;if(o.validatePromise===v){var R;o.validatePromise=null;var O=[],N=[];(R=P.forEach)===null||R===void 0||R.call(P,function(A){var L=A.rule.warningOnly,T=A.errors,M=T===void 0?Cr:T;L?N.push.apply(N,Te(M)):O.push.apply(O,Te(M));}),o.errors=O,o.warnings=N,o.triggerMetaEvent(),o.reRender();}}),I.abrupt("return",S);case 13:case"end":return I.stop()}},p)})));return g||(o.validatePromise=v,o.dirty=!0,o.errors=Cr,o.warnings=Cr,o.triggerMetaEvent(),o.reRender()),v}),j(Ge(o),"isFieldValidating",function(){return !!o.validatePromise}),j(Ge(o),"isFieldTouched",function(){return o.touched}),j(Ge(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return !0;var l=o.props.fieldContext,c=l.getInternalHooks(ta),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),j(Ge(o),"getErrors",function(){return o.errors}),j(Ge(o),"getWarnings",function(){return o.warnings}),j(Ge(o),"isListField",function(){return o.props.isListField}),j(Ge(o),"isList",function(){return o.props.isList}),j(Ge(o),"isPreserve",function(){return o.props.preserve}),j(Ge(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),j(Ge(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return U(U({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=dr(l);return u.length!==1||!m__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),j(Ge(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Lr(l||c(!0),u)}),j(Ge(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.trigger,d=c.validateTrigger,f=c.getValueFromEvent,h=c.normalize,g=c.valuePropName,v=c.getValueProps,p=c.fieldContext,b=d!==void 0?d:p.validateTrigger,y=o.getNamePath(),C=p.getInternalHooks,$=p.getFieldsValue,w=C(ta),E=w.dispatch,S=o.getValue(),x=v||function(O){return j({},g,O)},I=l[u],P=U(U({},l),x(S));P[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var O,N=arguments.length,A=new Array(N),L=0;L<N;L++)A[L]=arguments[L];f?O=f.apply(void 0,A):O=_U.apply(void 0,[g].concat(A)),h&&(O=h(O,S,$(!0))),E({type:"updateValue",namePath:y,value:O}),I&&I.apply(void 0,A);};var R=kh(b||[]);return R.forEach(function(O){var N=P[O];P[O]=function(){N&&N.apply(void 0,arguments);var A=o.props.rules;A&&A.length&&E({type:"validateField",namePath:y,triggerName:O});};}),P}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(ta),s=i.initEntityValue;s(Ge(o));}return o}return xn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(ta),c=l.registerField;this.cancelRegisterFunc=c(this);}a===!0&&this.reRender();}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1;}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate();}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),s=i.child,l=i.isFunction,c;return l?c=s:m__namespace.isValidElement(s)?c=m__namespace.cloneElement(s,this.getControlled(s.props)):(Sn(!s,"`children` of Field is not validate ReactElement."),c=s),m__namespace.createElement(m__namespace.Fragment,{key:o},c)}}]),n}(m__namespace.Component);j(np,"contextType",Ei);j(np,"defaultProps",{trigger:"onChange",valuePropName:"value"});function h2(e){var t=e.name,n=et(e,NU),r=m__namespace.useContext(Ei),o=m__namespace.useContext(mu),a=t!==void 0?ln(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),m__namespace.createElement(np,Ie({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function kU(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=m__namespace.useContext(Ei),l=m__namespace.useContext(mu),c=m__namespace.useRef({keys:[],id:0}),u=c.current,d=m__namespace.useMemo(function(){var v=ln(s.prefixName)||[];return [].concat(Te(v),Te(ln(t)))},[s.prefixName,t]),f=m__namespace.useMemo(function(){return U(U({},s),{},{prefixName:d})},[s,d]),h=m__namespace.useMemo(function(){return {getKey:function(p){var b=d.length,y=p[b];return [u.keys[y],p.slice(b+1)]}}},[d]);if(typeof r!="function")return Sn(!1,"Form.List only accepts function as children."),null;var g=function(p,b,y){var C=y.source;return C==="internal"?!1:p!==b};return m__namespace.createElement(mu.Provider,{value:h},m__namespace.createElement(Ei.Provider,{value:f},m__namespace.createElement(h2,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!l},function(v,p){var b=v.value,y=b===void 0?[]:b,C=v.onChange,$=s.getFieldValue,w=function(){var I=$(d||[]);return I||[]},E={add:function(I,P){var R=w();P>=0&&P<=R.length?(u.keys=[].concat(Te(u.keys.slice(0,P)),[u.id],Te(u.keys.slice(P))),C([].concat(Te(R.slice(0,P)),[I],Te(R.slice(P))))):(u.keys=[].concat(Te(u.keys),[u.id]),C([].concat(Te(R),[I]))),u.id+=1;},remove:function(I){var P=w(),R=new Set(Array.isArray(I)?I:[I]);R.size<=0||(u.keys=u.keys.filter(function(O,N){return !R.has(N)}),C(P.filter(function(O,N){return !R.has(N)})));},move:function(I,P){if(I!==P){var R=w();I<0||I>=R.length||P<0||P>=R.length||(u.keys=Zy(u.keys,I,P),C(Zy(R,I,P)));}}},S=y||[];return Array.isArray(S)||(S=[]),r(S.map(function(x,I){var P=u.keys[I];return P===void 0&&(u.keys[I]=u.id,P=u.keys[I],u.id+=1),{name:I,key:P,isListField:!0}}),E,p)})))}function AU(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),o(r));});});}):Promise.resolve([])}var g2="__@field_split__";function lm(e){return e.map(function(t){return "".concat(dt(t),":").concat(t)}).join(g2)}var Da=function(){function e(){wn(this,e),j(this,"kvs",new Map);}return xn(e,[{key:"set",value:function(n,r){this.kvs.set(lm(n),r);}},{key:"get",value:function(n){return this.kvs.get(lm(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n);}},{key:"delete",value:function(n){this.kvs.delete(lm(n));}},{key:"map",value:function(n){return Te(this.kvs.entries()).map(function(r){var o=Z(r,2),a=o[0],i=o[1],s=a.split(g2);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Z(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),LU=["name"],DU=xn(function e(t){var n=this;wn(this,e),j(this,"formHooked",!1),j(this,"forceRootUpdate",void 0),j(this,"subscribable",!0),j(this,"store",{}),j(this,"fieldEntities",[]),j(this,"initialValues",{}),j(this,"callbacks",{}),j(this,"validateMessages",null),j(this,"preserve",null),j(this,"lastValidatePromise",null),j(this,"getForm",function(){return {getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),j(this,"getInternalHooks",function(r){return r===ta?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Sn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),j(this,"useSubscribe",function(r){n.subscribable=r;}),j(this,"prevWithoutPreserves",null),j(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=ei(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=Nr(i,l,Lr(r,l));}),n.prevWithoutPreserves=null,n.updateStore(i);}}),j(this,"destroyForm",function(){var r=new Da;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0);}),n.prevWithoutPreserves=r;}),j(this,"getInitialValue",function(r){var o=Lr(n.initialValues,r);return r.length?ei(o):o}),j(this,"setCallbacks",function(r){n.callbacks=r;}),j(this,"setValidateMessages",function(r){n.validateMessages=r;}),j(this,"setPreserve",function(r){n.preserve=r;}),j(this,"watchList",[]),j(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r});}}),j(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r);});}}),j(this,"timeoutId",null),j(this,"warningUnhooked",function(){}),j(this,"updateStore",function(r){n.store=r;}),j(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),j(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Da;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a);}),o}),j(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=ln(a);return o.get(i)||{INVALIDATE_NAME_PATH:ln(a)}})}),j(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&dt(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var d,f,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var g,v;if((g=(v=u).isList)!==null&&g!==void 0&&g.call(v))return}else if(!a&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!i)c.push(h);else {var p="getMeta"in u?u.getMeta():null;i(p)&&c.push(h);}}),Yy(n.store,c.map(ln))}),j(this,"getFieldValue",function(r){n.warningUnhooked();var o=ln(r);return Lr(n.store,o)}),j(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:ln(r[i]),errors:[],warnings:[]}})}),j(this,"getFieldError",function(r){n.warningUnhooked();var o=ln(r),a=n.getFieldsError([o])[0];return a.errors}),j(this,"getFieldWarning",function(r){n.warningUnhooked();var o=ln(r),a=n.getFieldsError([o])[0];return a.warnings}),j(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(ln),c=!1):(l=null,c=i):(l=i.map(ln),c=s);var u=n.getFieldEntities(!0),d=function(p){return p.isFieldTouched()};if(!l)return c?u.every(d):u.some(d);var f=new Da;l.forEach(function(v){f.set(v,[]);}),u.forEach(function(v){var p=v.getNamePath();l.forEach(function(b){b.every(function(y,C){return p[C]===y})&&f.update(b,function(y){return [].concat(Te(y),[v])});});});var h=function(p){return p.some(d)},g=f.map(function(v){var p=v.value;return p});return c?g.every(h):g.some(h)}),j(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),j(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(ln);return o.some(function(i){var s=i.getNamePath();return si(a,s)&&i.isFieldValidating()})}),j(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),j(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Da,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d);}});var i=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),h=n.getInitialValue(f);if(h!==void 0)Sn(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else {var g=o.get(f);if(g&&g.size>1)Sn(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var v=n.getFieldValue(f),p=u.isListField();!p&&(!r.skipExist||v===void 0)&&n.updateStore(Nr(n.store,f,Te(g)[0].value));}}}});},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,Te(Te(c).map(function(d){return d.entity})));}})):s=a,i(s);}),j(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ei(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(ln);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Nr(n.store,i,s));}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a);}),j(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,l=et(i,LU),c=ln(s);a.push(c),"value"in l&&n.updateStore(Nr(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:i});}),n.notifyWatch(a);}),j(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=U(U({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),j(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Lr(n.store,a);i===void 0&&n.updateStore(Nr(n.store,a,o));}}),j(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),j(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"});}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(d){return !m2(d.getNamePath(),o)})){var u=n.store;n.updateStore(Nr(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o);}}n.notifyWatch([o]);}}),j(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),j(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=U(U({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,i);});}else n.forceRootUpdate();}),j(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Te(a))}),a}),j(this,"updateValue",function(r,o){var a=ln(r),i=n.store;n.updateStore(Nr(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),l=n.callbacks.onValuesChange;if(l){var c=Yy(n.store,[a]);l(c,n.getFieldsValue());}n.triggerOnFieldsChange([a].concat(Te(s)));}),j(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=ei(n.store,r);n.updateStore(a);}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch();}),j(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}]);}),j(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new Da;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=ln(u);i.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f});});});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(a.push(f),l(f));}});};return s(r),a}),j(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new Da;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d);}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors;});}var l=i.filter(function(c){var u=c.name;return si(r,u)});l.length&&a(l,i);}}),j(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,l=s?a.map(ln):[],c=[],u=String(Date.now()),d=new Set,f=i||{},h=f.recursive,g=f.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(g&&!y.isFieldDirty())){var C=y.getNamePath();if(d.add(C.join(u)),!s||si(l,C,h)){var $=y.validateRules(U({validateMessages:U(U({},f2),n.validateMessages)},i));c.push($.then(function(){return {name:C,errors:[],warnings:[]}}).catch(function(w){var E,S=[],x=[];return (E=w.forEach)===null||E===void 0||E.call(w,function(I){var P=I.rule.warningOnly,R=I.errors;P?x.push.apply(x,Te(R)):S.push.apply(S,Te(R));}),S.length?Promise.reject({name:C,errors:S,warnings:x}):{name:C,errors:S,warnings:x}}));}}});var v=AU(c);n.lastValidatePromise=v,v.catch(function(y){return y}).then(function(y){var C=y.map(function($){var w=$.name;return w});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,y);});var p=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var C=y.filter(function($){return $&&$.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:C,outOfDate:n.lastValidatePromise!==v})});p.catch(function(y){return y});var b=l.filter(function(y){return d.has(y.join(u))});return n.triggerOnFieldsChange(b),p}),j(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r);}catch(a){console.error(a);}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r);});}),this.forceRootUpdate=t;});function v2(e){var t=m__namespace.useRef(),n=m__namespace.useState({}),r=Z(n,2),o=r[1];if(!t.current)if(e)t.current=e;else {var a=function(){o({});},i=new DU(a);t.current=i.getForm();}return [t.current]}var Wh=m__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),FU=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=m__namespace.useContext(Wh),s=m__namespace.useRef({});return m__namespace.createElement(Wh.Provider,{value:U(U({},i),{},{validateMessages:U(U({},i.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),i.triggerFormChange(c,u);},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),i.triggerFormFinish(c,u);},registerForm:function(c,u){c&&(s.current=U(U({},s.current),{},j({},c,u))),i.registerForm(c,u);},unregisterForm:function(c){var u=U({},s.current);delete u[c],s.current=u,i.unregisterForm(c);}})},a)},zU=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],jU=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,h=f===void 0?"onChange":f,g=t.onValuesChange,v=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,y=et(t,zU),C=m__namespace.useContext(Wh),$=v2(i),w=Z($,1),E=w[0],S=E.getInternalHooks(ta),x=S.useSubscribe,I=S.setInitialValues,P=S.setCallbacks,R=S.setValidateMessages,O=S.setPreserve,N=S.destroyForm;m__namespace.useImperativeHandle(n,function(){return E}),m__namespace.useEffect(function(){return C.registerForm(r,E),function(){C.unregisterForm(r);}},[C,E,r]),R(U(U({},C.validateMessages),d)),P({onValuesChange:g,onFieldsChange:function(H){if(C.triggerFormChange(r,H),v){for(var V=arguments.length,K=new Array(V>1?V-1:0),X=1;X<V;X++)K[X-1]=arguments[X];v.apply(void 0,[H].concat(K));}},onFinish:function(H){C.triggerFormFinish(r,H),p&&p(H);},onFinishFailed:b}),O(s);var A=m__namespace.useRef(null);I(o,!A.current),A.current||(A.current=!0),m__namespace.useEffect(function(){return N},[]);var L,T=typeof l=="function";if(T){var M=E.getFieldsValue(!0);L=l(M,E);}else L=l;x(!T);var _=m__namespace.useRef();m__namespace.useEffect(function(){TU(_.current||[],a||[])||E.setFields(a||[]),_.current=a;},[a,E]);var z=m__namespace.useMemo(function(){return U(U({},E),{},{validateTrigger:h})},[E,h]),F=m__namespace.createElement(mu.Provider,{value:null},m__namespace.createElement(Ei.Provider,{value:z},L));return u===!1?F:m__namespace.createElement(u,Ie({},y,{onSubmit:function(H){H.preventDefault(),H.stopPropagation(),E.submit();},onReset:function(H){var V;H.preventDefault(),E.resetFields(),(V=y.onReset)===null||V===void 0||V.call(y,H);}}),F)};function Jy(e){try{return JSON.stringify(e)}catch{return Math.random()}}function BU(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=r===void 0?[]:r,a=t[1],i=a===void 0?{}:a,s=XK(i)?{form:i}:i,l=s.form,c=m.useState(),u=Z(c,2),d=u[0],f=u[1],h=m.useMemo(function(){return Jy(d)},[d]),g=m.useRef(h);g.current=h;var v=m.useContext(Ei),p=l||v,b=p&&p._init,y=ln(o),C=m.useRef(y);return C.current=y,m.useEffect(function(){if(b){var $=p.getFieldsValue,w=p.getInternalHooks,E=w(ta),S=E.registerWatch,x=S(function(P,R){var O=Lr(s.preserve?R:P,C.current),N=Jy(O);g.current!==N&&(g.current=N,f(O));}),I=Lr(s.preserve?$(!0):$(),C.current);return d!==I&&f(I),x}},[b]),d}var HU=m__namespace.forwardRef(jU),Nl=HU;Nl.FormProvider=FU;Nl.Field=h2;Nl.List=kU;Nl.useForm=v2;Nl.useWatch=BU;function zn(e,t){var n=U({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}const Er=m__namespace.createContext({}),qs=e=>{let{children:t,status:n,override:r}=e;const o=m.useContext(Er),a=m.useMemo(()=>{const i=Object.assign({},o);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,o]);return m__namespace.createElement(Er.Provider,{value:a},t)},VU=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},zt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},WU=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,dotSize:d,colorBgContainerDisabled:f,colorTextDisabled:h,paddingXS:g,dotColorDisabled:v,lineType:p,radioDotDisabledSize:b,wireframe:y,colorWhite:C}=e,$=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},zt(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({},zt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
        &:hover ${$}`]:{borderColor:r},[`${t}-input:focus-visible + ${$}`]:Object.assign({},ha(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:C,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${a} ${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 ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[$]:{borderColor:r,backgroundColor:y?l:r,"&::after":{transform:`scale(${d/o})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[$]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:v}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[$]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},GU=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:h,controlHeightSM:g,paddingXS:v,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:C,buttonSolidCheckedColor:$,colorTextDisabled:w,colorBgContainerDisabled:E,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:x,colorPrimary:I,colorPrimaryHover:P,colorPrimaryActive:R,buttonSolidCheckedBg:O,buttonSolidCheckedHoverBg:N,buttonSolidCheckedActiveBg: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 ${a} ${i}`,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:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${a} ${i}`,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:g,paddingInline:v-o,paddingBlock:0,lineHeight:`${g-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:I},"&:has(:focus-visible)":Object.assign({},ha(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:I,background:C,borderColor:I,"&::before":{backgroundColor:I},"&:first-child":{borderColor:I},"&:hover":{color:P,borderColor:P,"&::before":{backgroundColor:P}},"&:active":{color:R,borderColor:R,"&::before":{backgroundColor:R}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:$,background:O,borderColor:O,"&:hover":{color:$,background:N,borderColor:N},"&:active":{color:$,background:A,borderColor:A}},"&-disabled":{color:w,backgroundColor:E,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:E,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:x,backgroundColor:S,borderColor:i,boxShadow:"none"}}}},e1=e=>e-4*2,p2=Wt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,a=o,i=e1(r),s=St(e,{radioDotDisabledSize:i,radioFocusShadow:o,radioButtonFocusShadow:a});return [VU(s),WU(s),GU(s)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:h}=e,g=4,v=a,p=t?e1(v):v-(g+o)*2;return {radioSize:v,dotSize:p,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var KU=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 UU=(e,t)=>{var n,r;const o=m__namespace.useContext(l2),a=m__namespace.useContext(c2),{getPrefixCls:i,direction:s,radio:l}=m__namespace.useContext(tt),c=m__namespace.useRef(null),u=Xn(t,c),{isFormItemInput:d}=m__namespace.useContext(Er),f=R=>{var O,N;(O=e.onChange)===null||O===void 0||O.call(e,R),(N=o==null?void 0:o.onChange)===null||N===void 0||N.call(o,R);},{prefixCls:h,className:g,rootClassName:v,children:p,style:b}=e,y=KU(e,["prefixCls","className","rootClassName","children","style"]),C=i("radio",h),$=((o==null?void 0:o.optionType)||a)==="button",w=$?`${C}-button`:C,[E,S]=p2(C),x=Object.assign({},y),I=m__namespace.useContext(Hr);o&&(x.name=o.name,x.onChange=f,x.checked=e.value===o.value,x.disabled=(n=x.disabled)!==null&&n!==void 0?n:o.disabled),x.disabled=(r=x.disabled)!==null&&r!==void 0?r:I;const P=G(`${w}-wrapper`,{[`${w}-wrapper-checked`]:x.checked,[`${w}-wrapper-disabled`]:x.disabled,[`${w}-wrapper-rtl`]:s==="rtl",[`${w}-wrapper-in-form-item`]:d},l==null?void 0:l.className,g,v,S);return E(m__namespace.createElement(Tl,{component:"Radio",disabled:x.disabled},m__namespace.createElement("label",{className:P,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},m__namespace.createElement(u2,Object.assign({},x,{className:G(x.className,!$&&Xd),type:"radio",prefixCls:w,ref:u})),p!==void 0?m__namespace.createElement("span",null,p):null)))},XU=m__namespace.forwardRef(UU),hu=XU,qU=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m__namespace.useContext(tt),[o,a]=Ut(e.defaultValue,{value:e.value}),i=O=>{const N=o,A=O.target.value;"value"in e||a(A);const{onChange:L}=e;L&&A!==N&&L(O);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:h,size:g,style:v,id:p,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:$}=e,w=n("radio",s),E=`${w}-group`,[S,x]=p2(w);let I=h;u&&u.length>0&&(I=u.map(O=>typeof O=="string"||typeof O=="number"?m__namespace.createElement(hu,{key:O.toString(),prefixCls:w,disabled:f,value:O,checked:o===O},O):m__namespace.createElement(hu,{key:`radio-group-value-options-${O.value}`,prefixCls:w,disabled:O.disabled||f,value:O.value,checked:o===O.value,title:O.title,style:O.style,id:O.id,required:O.required},O.label)));const P=Jn(g),R=G(E,`${E}-${d}`,{[`${E}-${P}`]:P,[`${E}-rtl`]:r==="rtl"},l,c,x);return S(m__namespace.createElement("div",Object.assign({},xi(e,{aria:!0,data:!0}),{className:R,style:v,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:$,id:p,ref:t}),m__namespace.createElement(IK,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},I)))}),YU=m__namespace.memo(qU);var ZU=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 QU=(e,t)=>{const{getPrefixCls:n}=m__namespace.useContext(tt),{prefixCls:r}=e,o=ZU(e,["prefixCls"]),a=n("radio",r);return m__namespace.createElement(PK,{value:"button"},m__namespace.createElement(hu,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},JU=m__namespace.forwardRef(QU),qd=hu;qd.Button=JU;qd.Group=YU;qd.__ANT_RADIO=!0;const t1=qd;function eX(e,t){const n=Object.keys(e),r=Zg(JSON.parse(localStorage.getItem(t)||"{}"),n),o=ur({...e,...r});return tv(o,()=>{const a=Yc(o);localStorage.setItem(t,JSON.stringify(a));}),o}const tX=m.createContext(null),b2=tX,nX=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},zt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},zt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},zt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",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({},ha(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 rX(e,t){const n=St(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [nX(n)]}const y2=Wt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [rX(n,e)]});var oX=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 aX=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,h=oX(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:v,checkbox:p}=m__namespace.useContext(tt),b=m__namespace.useContext(b2),{isFormItemInput:y}=m__namespace.useContext(Er),C=m__namespace.useContext(Hr),$=(n=(b==null?void 0:b.disabled)||f)!==null&&n!==void 0?n:C,w=m__namespace.useRef(h.value);m__namespace.useEffect(()=>{b==null||b.registerValue(h.value);},[]),m__namespace.useEffect(()=>{if(!d)return h.value!==w.current&&(b==null||b.cancelValue(w.current),b==null||b.registerValue(h.value),w.current=h.value),()=>b==null?void 0:b.cancelValue(h.value)},[h.value]);const E=g("checkbox",r),[S,x]=y2(E),I=Object.assign({},h);b&&!d&&(I.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),b.toggleOption&&b.toggleOption({label:i,value:h.value});},I.name=b.name,I.checked=b.value.includes(h.value));const P=G(`${E}-wrapper`,{[`${E}-rtl`]:v==="rtl",[`${E}-wrapper-checked`]:I.checked,[`${E}-wrapper-disabled`]:$,[`${E}-wrapper-in-form-item`]:y},p==null?void 0:p.className,o,a,x),R=G({[`${E}-indeterminate`]:s},Xd,x),O=s?"mixed":void 0;return S(m__namespace.createElement(Tl,{component:"Checkbox",disabled:$},m__namespace.createElement("label",{className:P,style:Object.assign(Object.assign({},p==null?void 0:p.style),l),onMouseEnter:c,onMouseLeave:u},m__namespace.createElement(u2,Object.assign({"aria-checked":O},I,{prefixCls:E,className:R,disabled:$,ref:t})),i!==void 0&&m__namespace.createElement("span",null,i))))},iX=m__namespace.forwardRef(aX),C2=iX;var sX=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 lX=(e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:s,style:l,onChange:c}=e,u=sX(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=m__namespace.useContext(tt),[h,g]=m__namespace.useState(u.value||n||[]),[v,p]=m__namespace.useState([]);m__namespace.useEffect(()=>{"value"in u&&g(u.value||[]);},[u.value]);const b=m__namespace.useMemo(()=>o.map(N=>typeof N=="string"||typeof N=="number"?{label:N,value:N}:N),[o]),y=N=>{p(A=>A.filter(L=>L!==N));},C=N=>{p(A=>[].concat(Te(A),[N]));},$=N=>{const A=h.indexOf(N.value),L=Te(h);A===-1?L.push(N.value):L.splice(A,1),"value"in u||g(L),c==null||c(L.filter(T=>v.includes(T)).sort((T,M)=>{const _=b.findIndex(F=>F.value===T),z=b.findIndex(F=>F.value===M);return _-z}));},w=d("checkbox",a),E=`${w}-group`,[S,x]=y2(w),I=zn(u,["value","disabled"]),P=o.length?b.map(N=>m__namespace.createElement(C2,{prefixCls:w,key:N.value.toString(),disabled:"disabled"in N?N.disabled:u.disabled,value:N.value,checked:h.includes(N.value),onChange:N.onChange,className:`${E}-item`,style:N.style,title:N.title,id:N.id,required:N.required},N.label)):r,R={toggleOption:$,value:h,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:y},O=G(E,{[`${E}-rtl`]:f==="rtl"},i,s,x);return S(m__namespace.createElement("div",Object.assign({className:O,style:l},I,{ref:t}),m__namespace.createElement(b2.Provider,{value:R},P)))},cX=m__namespace.forwardRef(lX),uX=m__namespace.memo(cX),rp=C2;rp.Group=uX;rp.__ANT_CHECKBOX=!0;const Yd=rp;function In({configKey:e,label:t,extraAction:n,tooltip:r,...o}){const i=!!hn()[e],s=m.useCallback(c=>{const u=c.target.checked;lr({[e]:u}),n==null||n(u);},[]);let l=D("span",{style:{userSelect:"none"},children:t||e});return r&&(l=D(bl,{title:r,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),D(Yd,{...o,checked:i,onChange:s,children:l})}var dX={name:"1qkltea",styles:"margin-left:5px"};const fX=function(){const e=dX;return ve(Rt,{children:[D(In,{configKey:"initialShowMore",label:"自动查看更多",css:e}),D(In,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function Zd({tooltip:e,iconProps:t,tooltipProps:n}){return D(Rt,{children:e&&D(Bd,{...n,title:e,children:D(Ft,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const mX=`${an}-video-source-tab`,op=eX({value:"recommend-app"},mX),Gh={name:"qamjgr",styles:"margin-right:4px"},kl=[{key:"recommend-app",icon:"Iphone",label:"推荐",desc:"使用手机 APP 端推荐 API"},{key:"recommend-pc",icon:"Computer",label:"推荐",desc:"使用新版首页顶部推荐 API"},{key:"keep-follow-only",icon:"Concern",label:"已关注",desc:"推荐中只保留「已关注」,会很慢"},{key:"dynamic-feed",icon:"Tumblr",iconProps:{size:16},label:"动态",desc:"视频投稿动态",swr:!0},{key:"watchlater",icon:"FileCabinet",iconProps:{size:15},label:"稍后再看",desc:"你添加的稍后再看; 默认随机乱序, 可在设置-高级设置 或 稍后再看 Tab 中关闭乱序",swr:!0},{key:"fav",icon:"Star",iconProps:{size:15},label:"收藏",desc:"你添加的收藏; 默认随机乱序, 可在设置-高级设置 或 收藏 Tab 中关闭乱序",reuseable:!1}],n1=kl.reduce((e,t)=>({...e,[t.key]:t}),{}),hX=kl.map(e=>e.key);function S2(){const{showingTabKeys:e}=hn();return m.useMemo(()=>e.length?e:kl.map(t=>t.key),[e])}function gX(){const e=S2(),t=rv();return m.useMemo(()=>kl.filter(n=>e.includes(n.key)||!t&&n.key==="recommend-app"),[e,t])}function $2(e,t){return hX.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function Al(){return $2(hr(op).value,rv())}function vX(){return $2(op.value,fl())}function pX(){return Et("你需要登录(不可用)B站后使用该功能! 如已完成登录(不可用), 请刷新网页重试~")}const bX={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},yX={name:"s0vnfv",styles:"height:32px"};var CX={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},SX={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function w2({onRefresh:e}){const t=rv(),n=Al(),{styleUseStandardVideoSourceTab:r}=hn(),o=gX();return ve(Rt,{children:[D(t1.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:n,style:{overflow:"hidden"},onFocus:a=>{a.target.blur();},onChange:a=>{const i=a.target.value;if(i!=="recommend-app"&&i!=="recommend-pc"&&!t&&!sF())return pX();op.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:o.map(({key:a,label:i,icon:s,iconProps:l})=>D(t1.Button,{css:[bX,r&&yX,"",""],className:"video-source-tab",tabIndex:-1,value:a,children:ve("span",{css:SX,children:[D(Ft,{name:s,...l,size:(l==null?void 0:l.size)||18,css:Gh}),i]})},a))}),D(Zd,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:D(Rt,{children:o.map(({key:a,label:i,icon:s,iconProps:l,desc:c})=>ve("div",{css:CX,children:[D(Ft,{name:s,...l,size:(l==null?void 0:l.size)||18,css:Gh}),i,": ",c]},a))})})]})}const x2=["xxl","xl","lg","md","sm","xs"],$X=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)`}),wX=e=>{const t=e,n=[].concat(x2).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<n.length-1){const l=`screen${a}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 xX(){const[,e]=Qn(),t=$X(wX(e));return m.useMemo(()=>{const n=new Map;let r=-1,o={};return {matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister();},unregister(){Object.keys(t).forEach(a=>{const i=t[a],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener);}),n.clear();},register(){Object.keys(t).forEach(a=>{const i=t[a],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[a]:u}));},l=window.matchMedia(i);l.addListener(s),this.matchHandlers[i]={mql:l,listener:s},s(l);});},responsiveMap:t}},[e])}function EX(){const[,e]=m__namespace.useReducer(t=>t+1,0);return e}function E2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=m.useRef({}),n=EX(),r=xX();return Kt(()=>{const o=r.subscribe(a=>{t.current=a,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const IX=m__namespace.createContext({}),Kh=IX,PX=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,containerSize:i,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:h,borderRadiusSM:g,lineWidth:v,lineType:p}=e,b=(y,C,$)=>({width:y,height:y,lineHeight:`${y-v*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:$},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:C,[`> ${r}`]:{margin:0}}});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${v}px ${p} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(i,c,f)),{"&-lg":Object.assign({},b(s,u,h)),"&-sm":Object.assign({},b(l,d,g)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},OX=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return {[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},I2=Wt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=St(e,{avatarBg:n,avatarColor:t});return [PX(r),OX(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:a,fontSizeXL:i,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return {containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+i)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}});var MX=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 RX=(e,t)=>{const[n,r]=m__namespace.useState(1),[o,a]=m__namespace.useState(!1),[i,s]=m__namespace.useState(!0),l=m__namespace.useRef(null),c=m__namespace.useRef(null),u=Xn(t,l),{getPrefixCls:d,avatar:f}=m__namespace.useContext(tt),h=m__namespace.useContext(Kh),g=()=>{if(!c.current||!l.current)return;const q=c.current.offsetWidth,te=l.current.offsetWidth;if(q!==0&&te!==0){const{gap:W=4}=e;W*2<te&&r(te-W*2<q?(te-W*2)/q:1);}};m__namespace.useEffect(()=>{a(!0);},[]),m__namespace.useEffect(()=>{s(!0),r(1);},[e.src]),m__namespace.useEffect(g,[e.gap]);const v=()=>{const{onError:q}=e;(q==null?void 0:q())!==!1&&s(!1);},{prefixCls:p,shape:b,size:y,src:C,srcSet:$,icon:w,className:E,rootClassName:S,alt:x,draggable:I,children:P,crossOrigin:R}=e,O=MX(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),N=Jn(q=>{var te,W;return (W=(te=y??(h==null?void 0:h.size))!==null&&te!==void 0?te:q)!==null&&W!==void 0?W:"default"}),A=Object.keys(typeof N=="object"?N||{}:{}).some(q=>["xs","sm","md","lg","xl","xxl"].includes(q)),L=E2(A),T=m__namespace.useMemo(()=>{if(typeof N!="object")return {};const q=x2.find(W=>L[W]),te=N[q];return te?{width:te,height:te,lineHeight:`${te}px`,fontSize:te&&(w||P)?te/2:18}:{}},[L,N]),M=d("avatar",p),[_,z]=I2(M),F=G({[`${M}-lg`]:N==="large",[`${M}-sm`]:N==="small"}),B=m__namespace.isValidElement(C),H=b||(h==null?void 0:h.shape)||"circle",V=G(M,F,f==null?void 0:f.className,`${M}-${H}`,{[`${M}-image`]:B||C&&i,[`${M}-icon`]:!!w},E,S,z),K=typeof N=="number"?{width:N,height:N,lineHeight:`${N}px`,fontSize:w?N/2:18}:{};let X;if(typeof C=="string"&&i)X=m__namespace.createElement("img",{src:C,draggable:I,srcSet:$,onError:v,alt:x,crossOrigin:R});else if(B)X=C;else if(w)X=w;else if(o||n!==1){const q=`scale(${n}) translateX(-50%)`,te={msTransform:q,WebkitTransform:q,transform:q},W=typeof N=="number"?{lineHeight:`${N}px`}:{};X=m__namespace.createElement(xr,{onResize:g},m__namespace.createElement("span",{className:`${M}-string`,ref:c,style:Object.assign(Object.assign({},W),te)},P));}else X=m__namespace.createElement("span",{className:`${M}-string`,style:{opacity:0},ref:c},P);return delete O.onError,delete O.gap,_(m__namespace.createElement("span",Object.assign({},O,{style:Object.assign(Object.assign(Object.assign(Object.assign({},K),T),f==null?void 0:f.style),O.style),className:V,ref:u}),X))},TX=m__namespace.forwardRef(RX),P2=TX,Ii=e=>e?typeof e=="function"?e():e:null,_X=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,popoverPadding:a,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,marginXS:u,colorBgElevated:d,popoverBg:f}=e;return [{[t]:Object.assign(Object.assign({},zt(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:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},Sv(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},NX=e=>{const{componentCls:t}=e;return {[t]:Hs.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},kX=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:a,controlHeight:i,fontSize:s,lineHeight:l,padding:c}=e,u=i-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:`${a}px ${h}px`}}}},O2=Wt("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=St(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [_X(o),NX(o),r&&kX(o),Pd(o,"zoom-big")]},e=>({width:177,minWidth:177,titleMinWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var AX=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 LX=(e,t,n)=>{if(!(!t&&!n))return m__namespace.createElement(m__namespace.Fragment,null,t&&m__namespace.createElement("div",{className:`${e}-title`},Ii(t)),m__namespace.createElement("div",{className:`${e}-inner-content`},Ii(n)))},DX=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:s,children:l}=e;return m__namespace.createElement("div",{className:G(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},m__namespace.createElement("div",{className:`${n}-arrow`}),m__namespace.createElement(av,Object.assign({},e,{className:t,prefixCls:n}),l||LX(n,i,s)))},FX=e=>{const{prefixCls:t}=e,n=AX(e,["prefixCls"]),{getPrefixCls:r}=m__namespace.useContext(tt),o=r("popover",t),[a,i]=O2(o);return a(m__namespace.createElement(DX,Object.assign({},n,{prefixCls:o,hashId:i})))},M2=FX;var zX=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 jX=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`},Ii(t)),m__namespace.createElement("div",{className:`${r}-inner-content`},Ii(n)))},R2=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:a,placement:i="top",trigger:s="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=zX(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=m__namespace.useContext(tt),h=f("popover",n),[g,v]=O2(h),p=f(),b=G(a,v);return g(m__namespace.createElement(bl,Object.assign({placement:i,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:h,overlayClassName:b,ref:t,overlay:r||o?m__namespace.createElement(jX,{prefixCls:h,title:r,content:o}):null,transitionName:wd(p,"zoom-big",d.transitionName),"data-popover-inject":!0})))});R2._InternalPanelDoNotUseOrYouWillBeFired=M2;const Qd=R2,r1=e=>{const{size:t,shape:n}=m__namespace.useContext(Kh),r=m__namespace.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return m__namespace.createElement(Kh.Provider,{value:r},e.children)},BX=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(tt),{prefixCls:r,className:o,rootClassName:a,style:i,maxCount:s,maxStyle:l,size:c,shape:u,maxPopoverPlacement:d="top",maxPopoverTrigger:f="hover",children:h}=e,g=t("avatar",r),v=`${g}-group`,[p,b]=I2(g),y=G(v,{[`${v}-rtl`]:n==="rtl"},o,a,b),C=dr(h).map((w,E)=>Kn(w,{key:`avatar-key-${E}`})),$=C.length;if(s&&s<$){const w=C.slice(0,s),E=C.slice(s,$);return w.push(m__namespace.createElement(Qd,{key:"avatar-popover-key",content:E,trigger:f,placement:d,overlayClassName:`${v}-popover`},m__namespace.createElement(P2,{style:l},`+${$-s}`))),p(m__namespace.createElement(r1,{shape:u,size:c},m__namespace.createElement("div",{className:y,style:i},w)))}return p(m__namespace.createElement(r1,{shape:u,size:c},m__namespace.createElement("div",{className:y,style:i},C)))},HX=BX,T2=P2;T2.Group=HX;const gu=T2;var VX={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 WX=VX;function GX(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function KX(e,t){Sn(e,"[@ant-design/icons] ".concat(t));}function o1(e){return dt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(dt(e.icon)==="object"||typeof e.icon=="function")}function a1(){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[GX(n)]=r;}return t},{})}function Uh(e,t,n){return n?m.createElement(e.tag,U(U({key:t},a1(e.attrs)),n),(e.children||[]).map(function(r,o){return Uh(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):m.createElement(e.tag,U({key:t},a1(e.attrs)),(e.children||[]).map(function(r,o){return Uh(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function _2(e){return vo(e)[0]}function N2(e){return e?Array.isArray(e)?e:[e]:[]}var UX=`
.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);
  }
}
`,XX=function(t){var n=m.useContext($v),r=n.csp,o=n.prefixCls,a=UX;o&&(a=a.replace(/anticon/g,o)),m.useEffect(function(){var i=t.current,s=eu(i);pi(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},qX=["icon","className","onClick","style","primaryColor","secondaryColor"],Rs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function YX(e){var t=e.primaryColor,n=e.secondaryColor;Rs.primaryColor=t,Rs.secondaryColor=n||_2(t),Rs.calculated=!!n;}function ZX(){return U({},Rs)}var Jd=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=et(t,qX),c=m__namespace.useRef(),u=Rs;if(i&&(u={primaryColor:i,secondaryColor:s||_2(i)}),XX(c),KX(o1(n),"icon should be icon definiton, but got ".concat(n)),!o1(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=U(U({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Uh(d.icon,"svg-".concat(d.name),U(U({className:r,onClick:o,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Jd.displayName="IconReact";Jd.getTwoToneColors=ZX;Jd.setTwoToneColors=YX;const ap=Jd;function k2(e){var t=N2(e),n=Z(t,2),r=n[0],o=n[1];return ap.setTwoToneColors({primaryColor:r,secondaryColor:o})}function QX(){var e=ap.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var JX=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k2(qz.primary);var ef=m__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=et(e,JX),d=m__namespace.useContext($v),f=d.prefixCls,h=f===void 0?"anticon":f,g=d.rootClassName,v=G(g,h,(n={},j(n,"".concat(h,"-").concat(o.name),!!o.name),j(n,"".concat(h,"-spin"),!!a||o.name==="loading"),n),r),p=s;p===void 0&&l&&(p=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=N2(c),C=Z(y,2),$=C[0],w=C[1];return m__namespace.createElement("span",Ie({role:"img","aria-label":o.name},u,{ref:t,tabIndex:p,onClick:l,className:v}),m__namespace.createElement(ap,{icon:o,primaryColor:$,secondaryColor:w,style:b}))});ef.displayName="AntdIcon";ef.getTwoToneColor=QX;ef.setTwoToneColor=k2;const Mn=ef;var eq=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:WX}))};const Pi=m__namespace.forwardRef(eq);var ue={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>=ue.F1&&n<=ue.F12)return !1;switch(n){case ue.ALT:case ue.CAPS_LOCK:case ue.CONTEXT_MENU:case ue.CTRL:case ue.DOWN:case ue.END:case ue.ESC:case ue.HOME:case ue.INSERT:case ue.LEFT:case ue.MAC_FF_META:case ue.META:case ue.NUMLOCK:case ue.NUM_CENTER:case ue.PAGE_DOWN:case ue.PAGE_UP:case ue.PAUSE:case ue.PRINT_SCREEN:case ue.RIGHT:case ue.SHIFT:case ue.UP:case ue.WIN_KEY:case ue.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=ue.ZERO&&t<=ue.NINE||t>=ue.NUM_ZERO&&t<=ue.NUM_MULTIPLY||t>=ue.A&&t<=ue.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case ue.SPACE:case ue.QUESTION_MARK:case ue.NUM_PLUS:case ue.NUM_MINUS:case ue.NUM_PERIOD:case ue.NUM_DIVISION:case ue.SEMICOLON:case ue.DASH:case ue.EQUALS:case ue.COMMA:case ue.PERIOD:case ue.SLASH:case ue.APOSTROPHE:case ue.SINGLE_QUOTE:case ue.OPEN_SQUARE_BRACKET:case ue.BACKSLASH:case ue.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},tq=ue.ESC,nq=ue.TAB;function rq(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=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=a.current)!==null&&d!==void 0&&d.focus?(a.current.focus(),i.current=!0,!0):!1},c=function(d){switch(d.keyCode){case tq:s();break;case nq:{var f=!1;i.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),i.current=!1;}):function(){i.current=!1;}},[t]);}var oq=m.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=m.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=Xn(t,a==null?void 0:a.ref);return m.createElement(m.Fragment,null,r&&m.createElement("div",{className:"".concat(o,"-arrow")}),m.cloneElement(a,{ref:zo(a)?i:void 0}))}),Fa={adjustX:1,adjustY:1},za=[0,0],aq={topLeft:{points:["bl","tl"],overflow:Fa,offset:[0,-4],targetOffset:za},top:{points:["bc","tc"],overflow:Fa,offset:[0,-4],targetOffset:za},topRight:{points:["br","tr"],overflow:Fa,offset:[0,-4],targetOffset:za},bottomLeft:{points:["tl","bl"],overflow:Fa,offset:[0,4],targetOffset:za},bottom:{points:["tc","bc"],overflow:Fa,offset:[0,4],targetOffset:za},bottomRight:{points:["tr","br"],overflow:Fa,offset:[0,4],targetOffset:za}},iq=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function sq(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,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?aq:f,g=e.getPopupContainer,v=e.showAction,p=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,C=e.visible,$=e.trigger,w=$===void 0?["hover"]:$,E=e.autoFocus,S=e.overlay,x=e.children,I=e.onVisibleChange,P=et(e,iq),R=m.useState(),O=Z(R,2),N=O[0],A=O[1],L="visible"in e?C:N,T=m.useRef(null),M=m.useRef(null),_=m.useRef(null);m.useImperativeHandle(t,function(){return T.current});var z=function(W){A(W),I==null||I(W);};rq({visible:L,triggerRef:_,onVisibleChange:z,autoFocus:E,overlayRef:M});var F=function(W){var Q=e.onOverlayClick;A(!1),Q&&Q(W);},B=function(){return m.createElement(oq,{ref:M,overlay:S,prefixCls:i,arrow:o})},H=function(){return typeof S=="function"?B:B()},V=function(){var W=e.minOverlayWidthMatchTrigger,Q=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?W:!Q},K=function(){var W=e.openClassName;return W!==void 0?W:"".concat(i,"-open")},X=m.cloneElement(x,{className:G((n=x.props)===null||n===void 0?void 0:n.className,L&&K()),ref:zo(x)?Xn(_,x.ref):void 0}),q=p;return !q&&w.indexOf("contextMenu")!==-1&&(q=["click"]),m.createElement(Sd,Ie({builtinPlacements:h},P,{prefixCls:i,ref:T,popupClassName:G(b,j({},"".concat(i,"-show-arrow"),o)),popupStyle:y,action:w,showAction:v,hideAction:q,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:L,stretch:V()?"minWidth":"",popup:H(),onPopupVisibleChange:z,onPopupClick:F,getPopupContainer:g}),X)}const A2=m.forwardRef(sq);function lq(e){return function(n){return m__namespace.createElement(Ev,{theme:{token:{motion:!1,zIndexPopupBase:0}}},m__namespace.createElement(e,Object.assign({},n)))}}function ip(e,t,n,r){function o(a){const{prefixCls:i,style:s}=a,l=m__namespace.useRef(null),[c,u]=m__namespace.useState(0),[d,f]=m__namespace.useState(0),[h,g]=Ut(!1,{value:a.open}),{getPrefixCls:v}=m__namespace.useContext(tt),p=v(t||"select",i);m__namespace.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver($=>{const w=$[0].target;u(w.offsetHeight+8),f(w.offsetWidth);}),C=setInterval(()=>{var $;const w=n?`.${n(p)}`:`.${p}-dropdown`,E=($=l.current)===null||$===void 0?void 0:$.querySelector(w);E&&(clearInterval(C),y.observe(E));},10);return ()=>{clearInterval(C),y.disconnect();}}},[]);let b=Object.assign(Object.assign({},a),{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 lq(o)}var cq=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ja=void 0;function uq(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,h=e.display,g=e.order,v=e.component,p=v===void 0?"div":v,b=et(e,cq),y=i&&!h;function C(x){l(c,x);}m__namespace.useEffect(function(){return function(){C(null);}},[]);var $=a&&o!==ja?a(o):f,w;r||(w={opacity:y?0:1,height:y?0:ja,overflowY:y?"hidden":ja,order:i?g:ja,pointerEvents:y?"none":ja,position:y?"absolute":ja});var E={};y&&(E["aria-hidden"]=!0);var S=m__namespace.createElement(p,Ie({className:G(!r&&n,u),style:U(U({},w),d)},E,b,{ref:t}),$);return i&&(S=m__namespace.createElement(xr,{onResize:function(I){var P=I.offsetWidth;C(P);},disabled:s},S)),S}var Ts=m__namespace.forwardRef(uq);Ts.displayName="Item";function dq(e){if(typeof MessageChannel>"u")Pt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function fq(){var e=m__namespace.useRef(null),t=function(r){e.current||(e.current=[],dq(function(){IC.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function ss(e,t){var n=m__namespace.useState(t),r=Z(n,2),o=r[0],a=r[1],i=Nn(function(s){e(function(){a(s);});});return [o,i]}var vu=m.createContext(null),mq=["component"],hq=["className"],gq=["className"],vq=function(t,n){var r=m__namespace.useContext(vu);if(!r){var o=t.component,a=o===void 0?"div":o,i=et(t,mq);return m__namespace.createElement(a,Ie({},i,{ref:n}))}var s=r.className,l=et(r,hq),c=t.className,u=et(t,gq);return m__namespace.createElement(vu.Provider,{value:null},m__namespace.createElement(Ts,Ie({ref:n,className:G(s,c)},l,u)))},L2=m__namespace.forwardRef(vq);L2.displayName="RawItem";var pq=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],D2="responsive",F2="invalidate";function bq(e){return "+ ".concat(e.length," ...")}function yq(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=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,g=e.maxCount,v=e.renderRest,p=e.renderRawRest,b=e.suffix,y=e.component,C=y===void 0?"div":y,$=e.itemComponent,w=e.onVisibleChange,E=et(e,pq),S=d==="full",x=fq(),I=ss(x,null),P=Z(I,2),R=P[0],O=P[1],N=R||0,A=ss(x,new Map),L=Z(A,2),T=L[0],M=L[1],_=ss(x,0),z=Z(_,2),F=z[0],B=z[1],H=ss(x,0),V=Z(H,2),K=V[0],X=V[1],q=ss(x,0),te=Z(q,2),W=te[0],Q=te[1],Y=m.useState(null),ie=Z(Y,2),le=ie[0],J=ie[1],re=m.useState(null),fe=Z(re,2),ee=fe[0],ce=fe[1],he=m__namespace.useMemo(function(){return ee===null&&S?Number.MAX_SAFE_INTEGER:ee||0},[ee,R]),ne=m.useState(!1),oe=Z(ne,2),me=oe[0],pe=oe[1],_e="".concat(r,"-item"),Ve=Math.max(F,K),He=g===D2,Me=a.length&&He,Qe=g===F2,Xe=Me||typeof g=="number"&&a.length>g,We=m.useMemo(function(){var xe=a;return Me?R===null&&S?xe=a:xe=a.slice(0,Math.min(a.length,N/u)):typeof g=="number"&&(xe=a.slice(0,g)),xe},[a,u,R,g,Me]),Pe=m.useMemo(function(){return Me?a.slice(he+1):a.slice(We.length)},[a,We,Me,he]),Ce=m.useCallback(function(xe,de){var ae;return typeof l=="function"?l(xe):(ae=l&&(xe==null?void 0:xe[l]))!==null&&ae!==void 0?ae:de},[l]),je=m.useCallback(i||function(xe){return xe},[i]);function it(xe,de,ae){ee===xe&&(de===void 0||de===le)||(ce(xe),ae||(pe(xe<a.length-1),w==null||w(xe)),de!==void 0&&J(de));}function vt(xe,de){O(de.clientWidth);}function nt(xe,de){M(function(ae){var be=new Map(ae);return de===null?be.delete(xe):be.set(xe,de),be});}function Je(xe,de){X(de),B(K);}function yt(xe,de){Q(de);}function $t(xe){return T.get(Ce(We[xe],xe))}Kt(function(){if(N&&typeof Ve=="number"&&We){var xe=W,de=We.length,ae=de-1;if(!de){it(0,null);return}for(var be=0;be<de;be+=1){var Se=$t(be);if(S&&(Se=Se||0),Se===void 0){it(be-1,void 0,!0);break}if(xe+=Se,ae===0&&xe<=N||be===ae-1&&xe+$t(ae)<=N){it(ae,null);break}else if(xe+Ve>N){it(be-1,xe-Se-W+K);break}}b&&$t(0)+W>N&&J(null);}},[N,T,K,W,Ce,We]);var ct=me&&!!Pe.length,pt={};le!==null&&Me&&(pt={position:"absolute",left:le,top:0});var xt={prefixCls:_e,responsive:Me,component:$,invalidate:Qe},Oe=s?function(xe,de){var ae=Ce(xe,de);return m__namespace.createElement(vu.Provider,{key:ae,value:U(U({},xt),{},{order:de,item:xe,itemKey:ae,registerSize:nt,display:de<=he})},s(xe,de))}:function(xe,de){var ae=Ce(xe,de);return m__namespace.createElement(Ts,Ie({},xt,{order:de,key:ae,item:xe,renderItem:je,itemKey:ae,registerSize:nt,display:de<=he}))},Re,Ne={order:ct?he:Number.MAX_SAFE_INTEGER,className:"".concat(_e,"-rest"),registerSize:Je,display:ct};if(p)p&&(Re=m__namespace.createElement(vu.Provider,{value:U(U({},xt),Ne)},p(Pe)));else {var ge=v||bq;Re=m__namespace.createElement(Ts,Ie({},xt,Ne),typeof ge=="function"?ge(Pe):ge);}var Fe=m__namespace.createElement(C,Ie({className:G(!Qe&&r,h),style:f,ref:t},E),We.map(Oe),Xe?Re:null,b&&m__namespace.createElement(Ts,Ie({},xt,{responsive:He,responsiveDisabled:!Me,order:he,className:"".concat(_e,"-suffix"),registerSize:yt,display:!0,style:pt}),b));return He&&(Fe=m__namespace.createElement(xr,{onResize:vt,disabled:!Me},Fe)),Fe}var Jr=m__namespace.forwardRef(yq);Jr.displayName="Overflow";Jr.Item=L2;Jr.RESPONSIVE=D2;Jr.INVALIDATE=F2;var z2=m__namespace.createContext(null);function sp(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function j2(e){var t=m__namespace.useContext(z2);return sp(t,e)}var Cq=["children","locked"],zr=m__namespace.createContext(null);function Sq(e,t){var n=U({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function Ys(e){var t=e.children,n=e.locked,r=et(e,Cq),o=m__namespace.useContext(zr),a=hl(function(){return Sq(o,r)},[o,r],function(i,s){return !n&&(i[0]!==s[0]||!vl(i[1],s[1],!0))});return m__namespace.createElement(zr.Provider,{value:a},t)}var $q=[],B2=m__namespace.createContext(null);function tf(){return m__namespace.useContext(B2)}var H2=m__namespace.createContext($q);function qi(e){var t=m__namespace.useContext(H2);return m__namespace.useMemo(function(){return e!==void 0?[].concat(Te(t),[e]):t},[t,e])}var V2=m__namespace.createContext(null),lp=m__namespace.createContext({});function i1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(mv(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return !1}function wq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Te(e.querySelectorAll("*")).filter(function(r){return i1(r,t)});return i1(e,t)&&n.unshift(e),n}var Xh=ue.LEFT,qh=ue.RIGHT,Yh=ue.UP,Nc=ue.DOWN,kc=ue.ENTER,W2=ue.ESC,ls=ue.HOME,cs=ue.END,s1=[Yh,Nc,Xh,qh];function xq(e,t,n,r){var o,a,i,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===kc)return {inlineTrigger:!0};var f=(o={},j(o,Yh,l),j(o,Nc,c),o),h=(a={},j(a,Xh,n?c:l),j(a,qh,n?l:c),j(a,Nc,u),j(a,kc,u),a),g=(i={},j(i,Yh,l),j(i,Nc,c),j(i,kc,u),j(i,W2,d),j(i,Xh,n?u:d),j(i,qh,n?d:u),i),v={inline:f,horizontal:h,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g},p=(s=v["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(p){case l:return {offset:-1,sibling:!0};case c:return {offset:1,sibling:!0};case d:return {offset:-1,sibling:!1};case u:return {offset:1,sibling:!1};default:return null}}function Eq(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function Iq(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function G2(e,t){var n=wq(e,!0);return n.filter(function(r){return t.has(r)})}function l1(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=G2(e,t),a=o.length,i=o.findIndex(function(s){return n===s});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}function Pq(e,t,n,r,o,a,i,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 g=h.which;if([].concat(s1,[kc,W2,ls,cs]).includes(g)){var v,p,b,y=function(){v=new Set,p=new Map,b=new Map;var L=a();return L.forEach(function(T){var M=document.querySelector("[data-menu-id='".concat(sp(r,T),"']"));M&&(v.add(M),b.set(M,T),p.set(T,M));}),v};y();var C=p.get(t),$=Iq(C,v),w=b.get($),E=xq(e,i(w,!0).length===1,n,g);if(!E&&g!==ls&&g!==cs)return;(s1.includes(g)||[ls,cs].includes(g))&&h.preventDefault();var S=function(L){if(L){var T=L,M=L.querySelector("a");M!=null&&M.getAttribute("href")&&(T=M);var _=b.get(L);s(_),f(),u.current=Pt(function(){d.current===_&&T.focus();});}};if([ls,cs].includes(g)||E.sibling||!$){var x;!$||e==="inline"?x=o.current:x=Eq($);var I,P=G2(x,v);g===ls?I=P[0]:g===cs?I=P[P.length-1]:I=l1(x,v,$,E.offset),S(I);}else if(E.inlineTrigger)l(w);else if(E.offset>0)l(w,!0),f(),u.current=Pt(function(){y();var A=$.getAttribute("aria-controls"),L=document.getElementById(A),T=l1(L,v);S(T);},5);else if(E.offset<0){var R=i(w,!0),O=R[R.length-2],N=p.get(O);l(O,!1),S(N);}}c==null||c(h);}}function Oq(e){Promise.resolve().then(e);}var cp="__RC_UTIL_PATH_SPLIT__",c1=function(t){return t.join(cp)},Mq=function(t){return t.split(cp)},Zh="rc-menu-more";function Rq(){var e=m__namespace.useState({}),t=Z(e,2),n=t[1],r=m.useRef(new Map),o=m.useRef(new Map),a=m__namespace.useState([]),i=Z(a,2),s=i[0],l=i[1],c=m.useRef(0),u=m.useRef(!1),d=function(){u.current||n({});},f=m.useCallback(function(C,$){var w=c1($);o.current.set(w,C),r.current.set(C,w),c.current+=1;var E=c.current;Oq(function(){E===c.current&&d();});},[]),h=m.useCallback(function(C,$){var w=c1($);o.current.delete(w),r.current.delete(C);},[]),g=m.useCallback(function(C){l(C);},[]),v=m.useCallback(function(C,$){var w=r.current.get(C)||"",E=Mq(w);return $&&s.includes(E[0])&&E.unshift(Zh),E},[s]),p=m.useCallback(function(C,$){return C.some(function(w){var E=v(w,!0);return E.includes($)})},[v]),b=function(){var $=Te(r.current.keys());return s.length&&$.push(Zh),$},y=m.useCallback(function(C){var $="".concat(r.current.get(C)).concat(cp),w=new Set;return Te(o.current.keys()).forEach(function(E){E.startsWith($)&&w.add(o.current.get(E));}),w},[]);return m__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:f,unregisterPath:h,refreshOverflowKeys:g,isSubPathKey:p,getKeyPath:v,getKeys:b,getSubPathKeys:y}}function ys(e){var t=m__namespace.useRef(e);t.current=e;var n=m__namespace.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var Tq=Math.random().toFixed(5).toString().slice(2),u1=0;function _q(e){var t=Ut(e,{value:e}),n=Z(t,2),r=n[0],o=n[1];return m__namespace.useEffect(function(){u1+=1;var a="".concat(Tq,"-").concat(u1);o("rc-menu-uuid-".concat(a));},[]),r}function K2(e,t,n,r){var o=m__namespace.useContext(zr),a=o.activeKey,i=o.onActive,s=o.onInactive,l={active:a===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),i(e);},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e);}),l}function U2(e){var t=m__namespace.useContext(zr),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function X2(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=m__namespace.createElement(t,U({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var Nq=["item"];function pu(e){var t=e.item,n=et(e,Nq);return Object.defineProperty(n,"item",{get:function(){return Sn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var kq=["title","attribute","elementRef"],Aq=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Lq=["active"],Dq=function(e){jo(n,e);var t=Bo(n);function n(){return wn(this,n),t.apply(this,arguments)}return xn(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,s=o.elementRef,l=et(o,kq),c=zn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Sn(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m__namespace.createElement(Jr.Item,Ie({},i,{title:typeof a=="string"?a:void 0},c,{ref:s}))}}]),n}(m__namespace.Component),Fq=m__namespace.forwardRef(function(e,t){var n,r=e.style,o=e.className,a=e.eventKey;e.warnKey;var i=e.disabled,s=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,h=e.onKeyDown,g=e.onFocus,v=et(e,Aq),p=j2(a),b=m__namespace.useContext(zr),y=b.prefixCls,C=b.onItemClick,$=b.disabled,w=b.overflowDisabled,E=b.itemIcon,S=b.selectedKeys,x=b.onActive,I=m__namespace.useContext(lp),P=I._internalRenderMenuItem,R="".concat(y,"-item"),O=m__namespace.useRef(),N=m__namespace.useRef(),A=$||i,L=Sa(t,N),T=qi(a),M=function(Y){return {key:a,keyPath:Te(T).reverse(),item:O.current,domEvent:Y}},_=s||E,z=K2(a,A,u,d),F=z.active,B=et(z,Lq),H=S.includes(a),V=U2(T.length),K=function(Y){if(!A){var ie=M(Y);f==null||f(pu(ie)),C(ie);}},X=function(Y){if(h==null||h(Y),Y.which===ue.ENTER){var ie=M(Y);f==null||f(pu(ie)),C(ie);}},q=function(Y){x(a),g==null||g(Y);},te={};e.role==="option"&&(te["aria-selected"]=H);var W=m__namespace.createElement(Dq,Ie({ref:O,elementRef:L,role:c===null?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":w&&p?null:p},v,B,te,{component:"li","aria-disabled":i,style:U(U({},V),r),className:G(R,(n={},j(n,"".concat(R,"-active"),F),j(n,"".concat(R,"-selected"),H),j(n,"".concat(R,"-disabled"),A),n),o),onClick:K,onKeyDown:X,onFocus:q}),l,m__namespace.createElement(X2,{props:U(U({},e),{},{isSelected:H}),icon:_}));return P&&(W=P(W,e,{selected:H})),W});function zq(e,t){var n=e.eventKey,r=tf(),o=qi(n);return m__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:m__namespace.createElement(Fq,Ie({},e,{ref:t}))}const Ll=m__namespace.forwardRef(zq);var jq=["className","children"],Bq=function(t,n){var r=t.className,o=t.children,a=et(t,jq),i=m__namespace.useContext(zr),s=i.prefixCls,l=i.mode,c=i.rtl;return m__namespace.createElement("ul",Ie({className:G(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},up=m__namespace.forwardRef(Bq);up.displayName="SubMenuList";function dp(e,t){return dr(e).map(function(n,r){if(m__namespace.isValidElement(n)){var o,a,i=n.key,s=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:i,l=s==null;l&&(s="tmp_key-".concat([].concat(Te(t),[r]).join("-")));var c={key:s,eventKey:s};return m__namespace.cloneElement(n,c)}return n})}var _n={adjustX:1,adjustY:1},Hq={topLeft:{points:["bl","tl"],overflow:_n},topRight:{points:["br","tr"],overflow:_n},bottomLeft:{points:["tl","bl"],overflow:_n},bottomRight:{points:["tr","br"],overflow:_n},leftTop:{points:["tr","tl"],overflow:_n},leftBottom:{points:["br","bl"],overflow:_n},rightTop:{points:["tl","tr"],overflow:_n},rightBottom:{points:["bl","br"],overflow:_n}},Vq={topLeft:{points:["bl","tl"],overflow:_n},topRight:{points:["br","tr"],overflow:_n},bottomLeft:{points:["tl","bl"],overflow:_n},bottomRight:{points:["tr","br"],overflow:_n},rightTop:{points:["tr","tl"],overflow:_n},rightBottom:{points:["br","bl"],overflow:_n},leftTop:{points:["tl","tr"],overflow:_n},leftBottom:{points:["bl","br"],overflow:_n}};function q2(e,t,n){if(t)return t;if(n)return n[e]||n.other}var Wq={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Gq(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=m__namespace.useContext(zr),f=d.getPopupContainer,h=d.rtl,g=d.subMenuOpenDelay,v=d.subMenuCloseDelay,p=d.builtinPlacements,b=d.triggerSubMenuAction,y=d.forceSubMenuRender,C=d.rootClassName,$=d.motion,w=d.defaultMotions,E=m__namespace.useState(!1),S=Z(E,2),x=S[0],I=S[1],P=U(h?U({},Vq):U({},Hq),p),R=Wq[c],O=q2(c,$,w),N=m__namespace.useRef(O);c!=="inline"&&(N.current=O);var A=U(U({},N.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),L=m__namespace.useRef();return m__namespace.useEffect(function(){return L.current=Pt(function(){I(n);}),function(){Pt.cancel(L.current);}},[n]),m__namespace.createElement(Sd,{prefixCls:t,popupClassName:G("".concat(t,"-popup"),j({},"".concat(t,"-rtl"),h),i,C),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:f,builtinPlacements:P,popupPlacement:R,popupVisible:x,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:l?[]:[b],mouseEnterDelay:g,mouseLeaveDelay:v,onPopupVisibleChange:u,forceRender:y,popupMotion:A,fresh:!0},r)}function Kq(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=m__namespace.useContext(zr),s=i.prefixCls,l=i.forceSubMenuRender,c=i.motion,u=i.defaultMotions,d=i.mode,f=m__namespace.useRef(!1);f.current=d===a;var h=m__namespace.useState(!f.current),g=Z(h,2),v=g[0],p=g[1],b=f.current?n:!1;m__namespace.useEffect(function(){f.current&&p(!1);},[d]);var y=U({},q2(a,c,u));r.length>1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function($){return !f.current&&!$&&p(!0),C==null?void 0:C($)},v?null:m__namespace.createElement(Ys,{mode:a,locked:!f.current},m__namespace.createElement(Co,Ie({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function($){var w=$.className,E=$.style;return m__namespace.createElement(up,{id:t,className:w,style:E},o)}))}var Uq=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Xq=["active"],qq=function(t){var n,r=t.style,o=t.className,a=t.title,i=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,g=t.popupStyle,v=t.onClick,p=t.onMouseEnter,b=t.onMouseLeave,y=t.onTitleClick,C=t.onTitleMouseEnter,$=t.onTitleMouseLeave,w=et(t,Uq),E=j2(i),S=m__namespace.useContext(zr),x=S.prefixCls,I=S.mode,P=S.openKeys,R=S.disabled,O=S.overflowDisabled,N=S.activeKey,A=S.selectedKeys,L=S.itemIcon,T=S.expandIcon,M=S.onItemClick,_=S.onOpenChange,z=S.onActive,F=m__namespace.useContext(lp),B=F._internalRenderSubMenuItem,H=m__namespace.useContext(V2),V=H.isSubPathKey,K=qi(),X="".concat(x,"-submenu"),q=R||s,te=m__namespace.useRef(),W=m__namespace.useRef(),Q=u??L,Y=d??T,ie=P.includes(i),le=!O&&ie,J=V(A,i),re=K2(i,q,C,$),fe=re.active,ee=et(re,Xq),ce=m__namespace.useState(!1),he=Z(ce,2),ne=he[0],oe=he[1],me=function(Je){q||oe(Je);},pe=function(Je){me(!0),p==null||p({key:i,domEvent:Je});},_e=function(Je){me(!1),b==null||b({key:i,domEvent:Je});},Ve=m__namespace.useMemo(function(){return fe||(I!=="inline"?ne||V([N],i):!1)},[I,fe,N,ne,i,V]),He=U2(K.length),Me=function(Je){q||(y==null||y({key:i,domEvent:Je}),I==="inline"&&_(i,!ie));},Qe=ys(function(nt){v==null||v(pu(nt)),M(nt);}),Xe=function(Je){I!=="inline"&&_(i,Je);},We=function(){z(i);},Pe=E&&"".concat(E,"-popup"),Ce=m__namespace.createElement("div",Ie({role:"menuitem",style:He,className:"".concat(X,"-title"),tabIndex:q?null:-1,ref:te,title:typeof a=="string"?a:null,"data-menu-id":O&&E?null:E,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Pe,"aria-disabled":q,onClick:Me,onFocus:We},ee),a,m__namespace.createElement(X2,{icon:I!=="horizontal"?Y:void 0,props:U(U({},t),{},{isOpen:le,isSubMenu:!0})},m__namespace.createElement("i",{className:"".concat(X,"-arrow")}))),je=m__namespace.useRef(I);if(I!=="inline"&&K.length>1?je.current="vertical":je.current=I,!O){var it=je.current;Ce=m__namespace.createElement(Gq,{mode:it,prefixCls:X,visible:!l&&le&&I!=="inline",popupClassName:f,popupOffset:h,popupStyle:g,popup:m__namespace.createElement(Ys,{mode:it==="horizontal"?"vertical":it},m__namespace.createElement(up,{id:Pe,ref:W},c)),disabled:q,onVisibleChange:Xe},Ce);}var vt=m__namespace.createElement(Jr.Item,Ie({role:"none"},w,{component:"li",style:r,className:G(X,"".concat(X,"-").concat(I),o,(n={},j(n,"".concat(X,"-open"),le),j(n,"".concat(X,"-active"),Ve),j(n,"".concat(X,"-selected"),J),j(n,"".concat(X,"-disabled"),q),n)),onMouseEnter:pe,onMouseLeave:_e}),Ce,!O&&m__namespace.createElement(Kq,{id:Pe,open:le,keyPath:K},c));return B&&(vt=B(vt,t,{selected:J,active:Ve,open:le,disabled:q})),m__namespace.createElement(Ys,{onItemClick:Qe,mode:I==="horizontal"?"vertical":I,itemIcon:Q,expandIcon:Y},vt)};function nf(e){var t=e.eventKey,n=e.children,r=qi(t),o=dp(n,r),a=tf();m__namespace.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r);}},[r]);var i;return a?i=o:i=m__namespace.createElement(qq,e,o),m__namespace.createElement(H2.Provider,{value:r},i)}var Yq=["className","title","eventKey","children"],Zq=["children"],Qq=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=et(t,Yq),i=m__namespace.useContext(zr),s=i.prefixCls,l="".concat(s,"-item-group");return m__namespace.createElement("li",Ie({role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:G(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 rf(e){var t=e.children,n=et(e,Zq),r=qi(n.eventKey),o=dp(t,r),a=tf();return a?o:m__namespace.createElement(Qq,zn(n,["warnKey"]),o)}function fp(e){var t=e.className,n=e.style,r=m__namespace.useContext(zr),o=r.prefixCls,a=tf();return a?null:m__namespace.createElement("li",{role:"separator",className:G("".concat(o,"-item-divider"),t),style:n})}var Jq=["label","children","key","type"];function Qh(e){return (e||[]).map(function(t,n){if(t&&dt(t)==="object"){var r=t,o=r.label,a=r.children,i=r.key,s=r.type,l=et(r,Jq),c=i??"tmp-".concat(n);return a||s==="group"?s==="group"?m__namespace.createElement(rf,Ie({key:c},l,{title:o}),Qh(a)):m__namespace.createElement(nf,Ie({key:c},l,{title:o}),Qh(a)):s==="divider"?m__namespace.createElement(fp,Ie({key:c},l)):m__namespace.createElement(Ll,Ie({key:c},l),o)}return null}).filter(function(t){return t})}function eY(e,t,n){var r=e;return t&&(r=Qh(t)),dp(r,n)}var tY=["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"],Ba=[],nY=m__namespace.forwardRef(function(e,t){var n,r,o=e,a=o.prefixCls,i=a===void 0?"rc-menu":a,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,d=u===void 0?0:u,f=o.items,h=o.children,g=o.direction,v=o.id,p=o.mode,b=p===void 0?"vertical":p,y=o.inlineCollapsed,C=o.disabled,$=o.disabledOverflow,w=o.subMenuOpenDelay,E=w===void 0?.1:w,S=o.subMenuCloseDelay,x=S===void 0?.1:S,I=o.forceSubMenuRender,P=o.defaultOpenKeys,R=o.openKeys,O=o.activeKey,N=o.defaultActiveFirst,A=o.selectable,L=A===void 0?!0:A,T=o.multiple,M=T===void 0?!1:T,_=o.defaultSelectedKeys,z=o.selectedKeys,F=o.onSelect,B=o.onDeselect,H=o.inlineIndent,V=H===void 0?24:H,K=o.motion,X=o.defaultMotions,q=o.triggerSubMenuAction,te=q===void 0?"hover":q,W=o.builtinPlacements,Q=o.itemIcon,Y=o.expandIcon,ie=o.overflowedIndicator,le=ie===void 0?"...":ie,J=o.overflowedIndicatorPopupClassName,re=o.getPopupContainer,fe=o.onClick,ee=o.onOpenChange,ce=o.onKeyDown;o.openAnimation,o.openTransitionName;var he=o._internalRenderMenuItem,ne=o._internalRenderSubMenuItem,oe=et(o,tY),me=m__namespace.useMemo(function(){return eY(h,f,Ba)},[h,f]),pe=m__namespace.useState(!1),_e=Z(pe,2),Ve=_e[0],He=_e[1],Me=m__namespace.useRef(),Qe=_q(v),Xe=g==="rtl",We=Ut(P,{value:R,postState:function(at){return at||Ba}}),Pe=Z(We,2),Ce=Pe[0],je=Pe[1],it=function(at){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function wt(){je(at),ee==null||ee(at);}Ct?IC.flushSync(wt):wt();},vt=m__namespace.useState(Ce),nt=Z(vt,2),Je=nt[0],yt=nt[1],$t=m__namespace.useRef(!1),ct=m__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),pt=Z(ct,2),xt=pt[0],Oe=pt[1],Re=xt==="inline",Ne=m__namespace.useState(xt),ge=Z(Ne,2),Fe=ge[0],xe=ge[1],de=m__namespace.useState(Oe),ae=Z(de,2),be=ae[0],Se=ae[1];m__namespace.useEffect(function(){xe(xt),Se(Oe),$t.current&&(Re?je(Je):it(Ba));},[xt,Oe]);var we=m__namespace.useState(0),qe=Z(we,2),Ye=qe[0],ke=qe[1],Be=Ye>=me.length-1||Fe!=="horizontal"||$;m__namespace.useEffect(function(){Re&&yt(Ce);},[Ce]),m__namespace.useEffect(function(){return $t.current=!0,function(){$t.current=!1;}},[]);var rt=Rq(),ft=rt.registerPath,st=rt.unregisterPath,Le=rt.refreshOverflowKeys,Ee=rt.isSubPathKey,ye=rt.getKeyPath,$e=rt.getKeys,ze=rt.getSubPathKeys,ht=m__namespace.useMemo(function(){return {registerPath:ft,unregisterPath:st}},[ft,st]),_t=m__namespace.useMemo(function(){return {isSubPathKey:Ee}},[Ee]);m__namespace.useEffect(function(){Le(Be?Ba:me.slice(Ye+1).map(function(De){return De.key}));},[Ye,Be]);var Ot=Ut(O||N&&((n=me[0])===null||n===void 0?void 0:n.key),{value:O}),dn=Z(Ot,2),sn=dn[0],fn=dn[1],jn=ys(function(De){fn(De);}),Cn=ys(function(){fn(void 0);});m.useImperativeHandle(t,function(){return {list:Me.current,focus:function(at){var Ct,wt=sn??((Ct=me.find(function(Yn){return !Yn.props.disabled}))===null||Ct===void 0?void 0:Ct.key);if(wt){var kt,Jt,Hn;(kt=Me.current)===null||kt===void 0||(Jt=kt.querySelector("li[data-menu-id='".concat(sp(Qe,wt),"']")))===null||Jt===void 0||(Hn=Jt.focus)===null||Hn===void 0||Hn.call(Jt,at);}}}});var Vr=Ut(_||[],{value:z,postState:function(at){return Array.isArray(at)?at:at==null?Ba:[at]}}),ao=Z(Vr,2),Bn=ao[0],$o=ao[1],Pr=function(at){if(L){var Ct=at.key,wt=Bn.includes(Ct),kt;M?wt?kt=Bn.filter(function(Hn){return Hn!==Ct}):kt=[].concat(Te(Bn),[Ct]):kt=[Ct],$o(kt);var Jt=U(U({},at),{},{selectedKeys:kt});wt?B==null||B(Jt):F==null||F(Jt);}!M&&Ce.length&&Fe!=="inline"&&it(Ba);},er=ys(function(De){fe==null||fe(pu(De)),Pr(De);}),gr=ys(function(De,at){var Ct=Ce.filter(function(kt){return kt!==De});if(at)Ct.push(De);else if(Fe!=="inline"){var wt=ze(De);Ct=Ct.filter(function(kt){return !wt.has(kt)});}vl(Ce,Ct,!0)||it(Ct,!0);}),Wr=function(at,Ct){var wt=Ct??!Ce.includes(at);gr(at,wt);},Gr=Pq(Fe,sn,Xe,Qe,Me,$e,ye,fn,Wr,ce);m__namespace.useEffect(function(){He(!0);},[]);var qn=m__namespace.useMemo(function(){return {_internalRenderMenuItem:he,_internalRenderSubMenuItem:ne}},[he,ne]),Kr=Fe!=="horizontal"||$?me:me.map(function(De,at){return m__namespace.createElement(Ys,{key:De.key,overflowDisabled:at>Ye},De)}),gt=m__namespace.createElement(Jr,Ie({id:v,ref:Me,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Ll,className:G(i,"".concat(i,"-root"),"".concat(i,"-").concat(Fe),c,(r={},j(r,"".concat(i,"-inline-collapsed"),be),j(r,"".concat(i,"-rtl"),Xe),r),s),dir:g,style:l,role:"menu",tabIndex:d,data:Kr,renderRawItem:function(at){return at},renderRawRest:function(at){var Ct=at.length,wt=Ct?me.slice(-Ct):null;return m__namespace.createElement(nf,{eventKey:Zh,title:le,disabled:Be,internalPopupClose:Ct===0,popupClassName:J},wt)},maxCount:Fe!=="horizontal"||$?Jr.INVALIDATE:Jr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(at){ke(at);},onKeyDown:Gr},oe));return m__namespace.createElement(lp.Provider,{value:qn},m__namespace.createElement(z2.Provider,{value:Qe},m__namespace.createElement(Ys,{prefixCls:i,rootClassName:s,mode:Fe,openKeys:Ce,rtl:Xe,disabled:C,motion:Ve?K:null,defaultMotions:Ve?X:null,activeKey:sn,onActive:jn,onInactive:Cn,selectedKeys:Bn,inlineIndent:V,subMenuOpenDelay:E,subMenuCloseDelay:x,forceSubMenuRender:I,builtinPlacements:W,triggerSubMenuAction:te,getPopupContainer:re,itemIcon:Q,expandIcon:Y,onItemClick:er,onOpenChange:gr},m__namespace.createElement(V2.Provider,{value:_t},gt),m__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},m__namespace.createElement(B2.Provider,{value:ht},me)))))}),Yi=nY;Yi.Item=Ll;Yi.SubMenu=nf;Yi.ItemGroup=rf;Yi.Divider=fp;var rY={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 oY=rY;var aY=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:oY}))};const bu=m__namespace.forwardRef(aY),Y2=m__namespace.createContext({});var iY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sY=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=iY(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=m__namespace.useContext(tt),i=a("menu",t),s=G({[`${i}-item-divider-dashed`]:!!r},n);return m__namespace.createElement(fp,Object.assign({className:s},o))},Z2=sY,lY=m.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),yu=lY,cY=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=m__namespace.useContext(yu),f=y=>{const C=m__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||po(r)&&r.type==="span")&&r&&y&&l&&typeof r=="string"?m__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):C},{siderCollapsed:h}=m__namespace.useContext(Y2);let g=a;typeof a>"u"?g=l?r:"":a===!1&&(g="");const v={title:g};!h&&!d&&(v.title=null,v.open=!1);const p=dr(r).length;let b=m__namespace.createElement(Ll,Object.assign({},zn(e,["title","icon","danger"]),{className:G({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(o?p+1:p)===1},n),title:typeof a=="string"?a:void 0}),Kn(o,{className:G(po(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),f(d));return u||(b=m__namespace.createElement(bl,Object.assign({},v,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},Q2=cY,uY=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=m__namespace.useContext(yu),{prefixCls:s,inlineCollapsed:l,theme:c}=i,u=qi();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 g=po(o)&&o.type==="span";d=m__namespace.createElement(m__namespace.Fragment,null,Kn(r,{className:G(po(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),g?o:m__namespace.createElement("span",{className:`${s}-title-content`},o));}const f=m__namespace.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[h]=$d("Menu");return m__namespace.createElement(yu.Provider,{value:f},m__namespace.createElement(nf,Object.assign({},zn(e,["icon"]),{title:d,popupClassName:G(s,n,`${s}-${a||c}`),popupStyle:{zIndex:h}})))},J2=uY;var dY={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 fY=dY;var mY=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:fY}))};const mp=m__namespace.forwardRef(mY);var hY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Jh(e){return (e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:i,type:s}=r,l=hY(r,["label","children","key","type"]),c=i??`tmp-${n}`;return a||s==="group"?s==="group"?m__namespace.createElement(rf,Object.assign({key:c},l,{title:o}),Jh(a)):m__namespace.createElement(J2,Object.assign({key:c},l,{title:o}),Jh(a)):s==="divider"?m__namespace.createElement(Z2,Object.assign({key:c},l)):m__namespace.createElement(Q2,Object.assign({key:c},l),o)}return null}).filter(t=>t)}function gY(e){return m__namespace.useMemo(()=>e&&Jh(e),[e])}var vY=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 Cu=m__namespace.createContext(null),pY=m__namespace.forwardRef((e,t)=>{const{children:n}=e,r=vY(e,["children"]),o=m__namespace.useContext(Cu),a=m__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]),i=jF(n),s=Sa(t,i?n.ref:null);return m__namespace.createElement(Cu.Provider,{value:a},m__namespace.createElement(yi,null,i?m__namespace.cloneElement(n,{ref:s}):n))}),bY=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${a}px ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline: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"}}}},yY=bY,CY=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})`}}}}},SY=CY,d1=e=>Object.assign({},ha(e)),$Y=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:h,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:p,itemHoverColor:b,lineType:y,colorSplit:C,itemDisabledColor:$,dangerItemColor:w,dangerItemHoverColor:E,dangerItemSelectedColor:S,dangerItemActiveBg:x,dangerItemSelectedBg:I,itemHoverBg:P,itemActiveBg:R,menuSubMenuBg:O,horizontalItemSelectedColor:N,horizontalItemSelectedBg:A,horizontalItemBorderRadius:L,horizontalItemHoverBg:T,popupBg:M}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},d1(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${$} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:R}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:R}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:x}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:I}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},d1(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:O},[`&${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:L,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:T,"&::after":{borderBottomWidth:c,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:c,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${g}`,`opacity ${p} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(",")}}}}}},f1=$Y,m1=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s}=e,l=o+a+i;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}}},wY=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:h,boxShadowSecondary:g,collapsedWidth:v,collapsedIconSize:p}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},m1(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},m1(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${i*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:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
          > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}px)`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ma),{paddingInline:h})}}]},xY=wY,h1=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,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, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`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({},$a()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},g1=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:a*.6,height:a*.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(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},EY=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:h,menuArrowSize:g,menuArrowOffset:v,lineType:p,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:C}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},ch()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),ch()),{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:C,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:p,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),h1(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},h1(e)),g1(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),g1(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${v})`},"&::after":{transform:`rotate(45deg) translateX(-${v})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${g*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${v})`},"&::before":{transform:`rotate(45deg) translateX(${v})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},IY=(e,t)=>Wt("Menu",r=>{if(t===!1)return [];const{colorBgElevated:o,colorPrimary:a,colorTextLightSolid:i,controlHeightLG:s,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:h,darkItemSelectedBg:g,darkDangerItemSelectedBg:v,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:C,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:E}=r,S=l/7*5,x=St(r,{menuArrowSize:S,menuHorizontalHeight:s*1.15,menuArrowOffset:`${S*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),I=St(x,{itemColor:c,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:h,itemBg:d,popupBg:d,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:$,dangerItemSelectedColor:w,dangerItemActiveBg:E,dangerItemSelectedBg:v,menuSubMenuBg:f,horizontalItemSelectedColor:i,horizontalItemSelectedBg:a});return [EY(x),yY(x),xY(x),f1(x,"light"),f1(I,"dark"),SY(x),uw(x),Do(x,"slide-up"),Do(x,"slide-down"),Pd(x,"zoom-big")]},r=>{const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:h,lineWidthBold:g,controlItemBgActive:v,colorBgTextHover:p,controlHeightLG:b,lineHeight:y,colorBgElevated:C,marginXXS:$,padding:w,fontSize:E,controlHeightSM:S,fontSizeLG:x,colorTextLightSolid:I,colorErrorHover:P}=r,R=new Qt(I).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:v,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:h,activeBarBorderWidth:h,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:C,itemMarginBlock:$,itemPaddingInline:w,horizontalLineHeight:`${b*1.15}px`,iconSize:E,iconMarginInlineEnd:S-E,collapsedIconSize:x,groupTitleFontSize:E,darkItemDisabledColor:new Qt(I).setAlpha(.25).toRgbString(),darkItemColor:R,darkDangerItemColor:a,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:I,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:R,darkItemHoverColor:I,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:a}},{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 PY=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 OY=m.forwardRef((e,t)=>{var n,r;const o=m__namespace.useContext(Cu),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:l,menu:c}=m__namespace.useContext(tt),u=i(),{prefixCls:d,className:f,style:h,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:y,items:C,children:$,rootClassName:w,mode:E,selectable:S,onClick:x,overflowedIndicatorPopupClassName:I}=e,P=PY(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),R=zn(P,["collapsedWidth"]),O=gY(C)||$;(n=a.validator)===null||n===void 0||n.call(a,{mode:E});const N=Nn(function(){var K;x==null||x.apply(void 0,arguments),(K=a.onClick)===null||K===void 0||K.call(a);}),A=a.mode||E,L=S??a.selectable,T=m__namespace.useMemo(()=>y!==void 0?y:b,[b,y]),M={horizontal:{motionName:`${u}-slide-up`},inline:q$(u),other:{motionName:`${u}-zoom-big`}},_=i("menu",d||a.prefixCls),[z,F]=IY(_,!o),B=G(`${_}-${g}`,c==null?void 0:c.className,f);let H;if(typeof v=="function")H=v;else if(v===null||v===!1)H=null;else if(a.expandIcon===null||a.expandIcon===!1)H=null;else {const K=v??a.expandIcon;H=Kn(K,{className:G(`${_}-submenu-expand-icon`,po(K)?(r=K.props)===null||r===void 0?void 0:r.className:"")});}const V=m__namespace.useMemo(()=>({prefixCls:_,inlineCollapsed:T||!1,direction:l,firstLevel:!0,theme:g,mode:A,disableMenuItemTitleTooltip:p}),[_,T,l,p,g]);return z(m__namespace.createElement(Cu.Provider,{value:null},m__namespace.createElement(yu.Provider,{value:V},m__namespace.createElement(Yi,Object.assign({getPopupContainer:s,overflowedIndicator:m__namespace.createElement(mp,null),overflowedIndicatorPopupClassName:G(_,`${_}-${g}`,I),mode:A,selectable:L,onClick:N},R,{inlineCollapsed:T,style:Object.assign(Object.assign({},c==null?void 0:c.style),h),className:B,prefixCls:_,direction:l,defaultMotions:M,expandIcon:H,ref:t,rootClassName:G(w,F)}),O))))}),MY=OY,Dl=m.forwardRef((e,t)=>{const n=m.useRef(null),r=m__namespace.useContext(Y2);return m.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o);}})),m__namespace.createElement(MY,Object.assign({ref:n},e,r))});Dl.Item=Q2;Dl.SubMenu=J2;Dl.Divider=Z2;Dl.ItemGroup=rf;const RY=Dl,TY=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},_Y=TY,NY=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:s,motionDurationMid:l,dropdownPaddingVertical:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:h,controlPaddingHorizontal:g,colorBgElevated:v}=e;return [{[t]:Object.assign(Object.assign({},zt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+a/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${i}-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"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
          &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
          &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
          &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
          &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
          &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Pv},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
          &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
          &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
          &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
          &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
          &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Mv},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
          &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
          &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Ov},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
          &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
          &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Rv}})},Sv(e,{colorBg:v,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ga(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${g}px`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${c}px ${g}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ga(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:g+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Do(e,"slide-up"),Do(e,"slide-down"),ru(e,"move-up"),ru(e,"move-down"),Pd(e,"zoom-big")]]},eE=Wt("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:a,fontSize:i,lineHeight:s,paddingXXS:l,componentCls:c,borderRadiusLG:u}=e,d=(a-i*s)/2,{dropdownArrowOffset:f}=Cv({contentRadius:u}),h=St(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:f,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return [NY(h),_Y(h)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),hp=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:s,getPopupContainer:l,overlayClassName:c,rootClassName:u,overlayStyle:d,open:f,onOpenChange:h,visible:g,onVisibleChange:v,mouseEnterDelay:p=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:y=!0,placement:C="",overlay:$,transitionName:w}=e,{getPopupContainer:E,getPrefixCls:S,direction:x,dropdown:I}=m__namespace.useContext(tt);J$();const P=m__namespace.useMemo(()=>{const Y=S();return w!==void 0?w:C.includes("top")?`${Y}-slide-down`:`${Y}-slide-up`},[S,C,w]),R=m__namespace.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:x==="rtl"?"bottomRight":"bottomLeft",[C,x]),O=S("dropdown",r),[N,A]=eE(O),[,L]=Qn(),T=m__namespace.Children.only(o),M=Kn(T,{className:G(`${O}-trigger`,{[`${O}-rtl`]:x==="rtl"},T.props.className),disabled:i}),_=i?[]:a;let z;_&&_.includes("contextMenu")&&(z=!0);const[F,B]=Ut(!1,{value:f??g}),H=Nn(Y=>{h==null||h(Y,{source:"trigger"}),v==null||v(Y),B(Y);}),V=G(c,u,A,I==null?void 0:I.className,{[`${O}-rtl`]:x==="rtl"}),K=Z$({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:L.marginXXS,arrowWidth:n?L.sizePopupArrow:0,borderRadius:L.borderRadius}),X=m__namespace.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(h==null||h(!1,{source:"menu"}),B(!1));},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),q=()=>{let Y;return t!=null&&t.items?Y=m__namespace.createElement(RY,Object.assign({},t)):typeof $=="function"?Y=$():Y=$,s&&(Y=s(Y)),Y=m__namespace.Children.only(typeof Y=="string"?m__namespace.createElement("span",null,Y):Y),m__namespace.createElement(pY,{prefixCls:`${O}-menu`,expandIcon:m__namespace.createElement("span",{className:`${O}-menu-submenu-arrow`},m__namespace.createElement(Pi,{className:`${O}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:ie=>{}},Y)},[te,W]=$d("Dropdown",d==null?void 0:d.zIndex);let Q=m__namespace.createElement(A2,Object.assign({alignPoint:z},zn(e,["rootClassName"]),{mouseEnterDelay:p,mouseLeaveDelay:b,visible:F,builtinPlacements:K,arrow:!!n,overlayClassName:V,prefixCls:O,getPopupContainer:l||E,transitionName:P,trigger:_,overlay:q,placement:R,onVisibleChange:H,overlayStyle:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.style),d),{zIndex:te})}),M);return te&&(Q=m__namespace.createElement(yv.Provider,{value:W},Q)),N(Q)};function kY(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const AY=ip(hp,"dropdown",e=>e,kY),LY=e=>m__namespace.createElement(AY,Object.assign({},e),m__namespace.createElement("span",null));hp._InternalPanelDoNotUseOrYouWillBeFired=LY;const tE=hp;var DY=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 nE=m__namespace.createContext(void 0),FY=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(tt),{prefixCls:r,size:o,className:a}=e,i=DY(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Qn();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=G(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return m__namespace.createElement(nE.Provider,{value:o},m__namespace.createElement("div",Object.assign({},i,{className:u})))},zY=FY,v1=/^[\u4e00-\u9fa5]{2}$/,eg=v1.test.bind(v1);function rE(e){return e==="danger"?{danger:!0}:{type:e}}function p1(e){return typeof e=="string"}function cm(e){return e==="text"||e==="link"}function jY(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&p1(e.type)&&eg(e.props.children)?Kn(e,{children:e.props.children.split("").join(n)}):p1(e)?eg(e)?m.createElement("span",null,e.split("").join(n)):m.createElement("span",null,e):Q$(e)?m.createElement("span",null,e):e}function BY(e,t){let n=!1;const r=[];return m.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const s=r.length-1,l=r[s];r[s]=`${l}${o}`;}else r.push(o);n=i;}),m.Children.map(r,o=>jY(o,t))}const HY=m.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=G(`${a}-icon`,n);return m.createElement("span",{ref:t,className:i,style:r},o)}),oE=HY;var VY={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 WY=VY;var GY=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:WY}))};const gp=m__namespace.forwardRef(GY),b1=m.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=G(`${n}-loading-icon`,r);return m.createElement(oE,{prefixCls:n,className:i,style:o,ref:t},m.createElement(gp,{className:a}))}),um=()=>({width:0,opacity:0,transform:"scale(0)"}),dm=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),KY=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?m.createElement(b1,{prefixCls:t,className:o,style:a}):m.createElement(Co,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:um,onAppearActive:dm,onEnterStart:um,onEnterActive:dm,onLeaveStart:dm,onLeaveActive:um},(s,l)=>{let{className:c,style:u}=s;return m.createElement(b1,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),u),ref:l,iconClassName:c})})},UY=KY,y1=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),XY=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-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}},y1(`${t}-primary`,o),y1(`${t}-danger`,a)]}},qY=XY,YY=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",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({},ga(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-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:'""'}}}}}}},yo=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),ZY=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),QY=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),JY=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Zs=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},yo(e,Object.assign({backgroundColor:t},i),Object.assign({backgroundColor:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),vp=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},JY(e))}),aE=e=>Object.assign({},vp(e)),Su=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),iE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},aE(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),yo(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Zs(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},yo(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Zs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),vp(e))}),eZ=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},aE(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),yo(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Zs(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},yo(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Zs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vp(e))}),tZ=e=>Object.assign(Object.assign({},iE(e)),{borderStyle:"dashed"}),nZ=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},yo(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),Su(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},yo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Su(e))}),rZ=e=>Object.assign(Object.assign(Object.assign({},yo(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Su(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Su(e)),yo(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),oZ=e=>{const{componentCls:t}=e;return {[`${t}-default`]:iE(e),[`${t}-primary`]:eZ(e),[`${t}-dashed`]:tZ(e),[`${t}-link`]:nZ(e),[`${t}-text`]:rZ(e),[`${t}-ghost`]:Zs(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},pp=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,lineWidth:i,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e,u=Math.max(0,(r-o*a)/2-i),d=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${u}px ${l}px`,borderRadius:s,[`&${d}`]:{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}`]:ZY(e)},{[`${n}${n}-round${t}`]:QY(e)}]},aZ=e=>pp(St(e,{fontSize:e.contentFontSize})),iZ=e=>{const t=St(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return pp(t,`${e.componentCls}-sm`)},sZ=e=>{const t=St(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return pp(t,`${e.componentCls}-lg`)},lZ=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},sE=e=>{const{paddingInline:t,onlyIconSize:n}=e;return St(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},lE=e=>({fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),cZ=Wt("Button",e=>{const t=sE(e);return [YY(t),iZ(t),aZ(t),sZ(t),lZ(t),oZ(t),qY(t)]},lE);function uZ(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function dZ(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 of(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({},uZ(e,r,t)),dZ(n,r,t))}}function fZ(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function mZ(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 hZ(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},fZ(e,t)),mZ(e.componentCls,t))}}const gZ=xv(["Button","compact"],e=>{const t=sE(e);return [of(t),hZ(t)]},lE);var vZ=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 pZ(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return {loading:!!e,delay:0}}const bZ=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,type:i="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:f,rootClassName:h,children:g,icon:v,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:C,style:$={}}=e,w=vZ(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:E,autoInsertSpaceInButton:S,direction:x,button:I}=m.useContext(tt),P=E("btn",a),[R,O]=cZ(P),N=m.useContext(Hr),A=d??N,L=m.useContext(nE),T=m.useMemo(()=>pZ(o),[o]),[M,_]=m.useState(T.loading),[z,F]=m.useState(!1),H=Xn(t,m.createRef()),V=m.Children.count(g)===1&&!v&&!cm(i);m.useEffect(()=>{let oe=null;T.delay>0?oe=setTimeout(()=>{oe=null,_(!0);},T.delay):_(T.loading);function me(){oe&&(clearTimeout(oe),oe=null);}return me},[T]),m.useEffect(()=>{if(!H||!H.current||S===!1)return;const oe=H.current.textContent;V&&eg(oe)?z||F(!0):z&&F(!1);},[H]);const K=oe=>{const{onClick:me}=e;if(M||A){oe.preventDefault();return}me==null||me(oe);},X=S!==!1,{compactSize:q,compactItemClassnames:te}=Gi(P,x),W={large:"lg",small:"sm",middle:void 0},Q=Jn(oe=>{var me,pe;return (pe=(me=c??q)!==null&&me!==void 0?me:L)!==null&&pe!==void 0?pe:oe}),Y=Q&&W[Q]||"",ie=M?"loading":v,le=zn(w,["navigate"]),J=G(P,O,{[`${P}-${l}`]:l!=="default"&&l,[`${P}-${i}`]:i,[`${P}-${Y}`]:Y,[`${P}-icon-only`]:!g&&g!==0&&!!ie,[`${P}-background-ghost`]:p&&!cm(i),[`${P}-loading`]:M,[`${P}-two-chinese-chars`]:z&&X&&!M,[`${P}-block`]:b,[`${P}-dangerous`]:!!s,[`${P}-rtl`]:x==="rtl"},te,f,h,I==null?void 0:I.className),re=Object.assign(Object.assign({},I==null?void 0:I.style),$),fe=G(C==null?void 0:C.icon,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.icon),ee=Object.assign(Object.assign({},(u==null?void 0:u.icon)||{}),((r=I==null?void 0:I.styles)===null||r===void 0?void 0:r.icon)||{}),ce=v&&!M?m.createElement(oE,{prefixCls:P,className:fe,style:ee},v):m.createElement(UY,{existIcon:!!v,prefixCls:P,loading:!!M}),he=g||g===0?BY(g,V&&X):null;if(le.href!==void 0)return R(m.createElement("a",Object.assign({},le,{className:G(J,{[`${P}-disabled`]:A}),href:A?void 0:le.href,style:re,onClick:K,ref:H,tabIndex:A?-1:0}),ce,he));let ne=m.createElement("button",Object.assign({},w,{type:y,className:J,style:re,onClick:K,disabled:A,ref:H}),ce,he,te&&m.createElement(gZ,{key:"compact",prefixCls:P}));return cm(i)||(ne=m.createElement(Tl,{component:"Button",disabled:!!M},ne)),R(ne)},bp=m.forwardRef(bZ);bp.Group=zY;bp.__ANT_BUTTON=!0;const Zt=bp;function C1(e){return ["small","middle","large"].includes(e)}function S1(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const cE=m.createContext({latestIndex:0}),yZ=cE.Provider,CZ=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=m__namespace.useContext(cE);return r==null?null:m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("div",{className:t,style:a},r),n<i&&o&&m__namespace.createElement("span",{className:`${t}-split`},o))},SZ=CZ;var $Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wZ=m__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:a,direction:i}=m__namespace.useContext(tt),{size:s=(a==null?void 0:a.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:f="horizontal",prefixCls:h,split:g,style:v,wrap:p=!1,classNames:b,styles:y}=e,C=$Z(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[$,w]=Array.isArray(s)?s:[s,s],E=C1(w),S=C1($),x=S1(w),I=S1($),P=dr(d,{keepEmpty:!0}),R=l===void 0&&f==="horizontal"?"center":l,O=o("space",h),[N,A]=lw(O),L=G(O,a==null?void 0:a.className,A,`${O}-${f}`,{[`${O}-rtl`]:i==="rtl",[`${O}-align-${R}`]:R,[`${O}-gap-row-${w}`]:E,[`${O}-gap-col-${$}`]:S},c,u),T=G(`${O}-item`,(n=b==null?void 0:b.item)!==null&&n!==void 0?n:(r=a==null?void 0:a.classNames)===null||r===void 0?void 0:r.item);let M=0;const _=P.map((B,H)=>{var V,K;B!=null&&(M=H);const X=B&&B.key||`${T}-${H}`;return m__namespace.createElement(SZ,{className:T,key:X,index:H,split:g,style:(V=y==null?void 0:y.item)!==null&&V!==void 0?V:(K=a==null?void 0:a.styles)===null||K===void 0?void 0:K.item},B)}),z=m__namespace.useMemo(()=>({latestIndex:M}),[M]);if(P.length===0)return null;const F={};return p&&(F.flexWrap="wrap"),!S&&I&&(F.columnGap=$),!E&&x&&(F.rowGap=w),N(m__namespace.createElement("div",Object.assign({ref:t,className:L,style:Object.assign(Object.assign(Object.assign({},F),a==null?void 0:a.style),v)},C),m__namespace.createElement(yZ,{value:z},_)))}),uE=wZ;uE.Compact=c8;const Fl=uE;var xZ=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 dE=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=m__namespace.useContext(tt),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:h,arrow:g,autoFocus:v,overlay:p,trigger:b,align:y,open:C,onOpenChange:$,placement:w,getPopupContainer:E,href:S,icon:x=m__namespace.createElement(mp,null),title:I,buttonsRender:P=Y=>Y,mouseEnterDelay:R,mouseLeaveDelay:O,overlayClassName:N,overlayStyle:A,destroyPopupOnHide:L,dropdownRender:T}=e,M=xZ(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),_=n("dropdown",o),z=`${_}-button`,[F,B]=eE(_),H={menu:h,arrow:g,autoFocus:v,align:y,disabled:s,trigger:s?[]:b,onOpenChange:$,getPopupContainer:E||t,mouseEnterDelay:R,mouseLeaveDelay:O,overlayClassName:N,overlayStyle:A,destroyPopupOnHide:L,dropdownRender:T},{compactSize:V,compactItemClassnames:K}=Gi(_,r),X=G(z,K,f,B);"overlay"in e&&(H.overlay=p),"open"in e&&(H.open=C),"placement"in e?H.placement=w:H.placement=r==="rtl"?"bottomLeft":"bottomRight";const q=m__namespace.createElement(Zt,{type:a,danger:i,disabled:s,loading:l,onClick:c,htmlType:u,href:S,title:I},d),te=m__namespace.createElement(Zt,{type:a,danger:i,icon:x}),[W,Q]=P([q,te]);return F(m__namespace.createElement(Fl.Compact,Object.assign({className:X,size:V,block:!0},M),W,m__namespace.createElement(tE,Object.assign({},H),Q)))};dE.__ANT_BUTTON=!0;const EZ=dE,fE=tE;fE.Button=EZ;const yp=fE;function Xa(e,t,n){const r=lt(n);m.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}const IZ=new Nt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),PZ=new Nt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),OZ=new Nt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),MZ=new Nt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),RZ=new Nt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),TZ=new Nt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),_Z=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,motionDurationSlow:a,textFontSize:i,textFontSizeSM:s,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:h}=e,g=`${r}-scroll-number`,v=Ed(e,(p,b)=>{let{darkColor:y}=b;return {[`&${t} ${t}-color-${p}`]:{background:y,[`&:not(${t}-count)`]:{color:y}}}});return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:i,lineHeight:`${d}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:d/2,boxShadow:`0 0 0 ${o}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:s,lineHeight:`${f}px`,borderRadius:f/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${o}px ${e.badgeShadowColor}`},[`${t}-dot${g}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${g}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:TZ,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:IZ,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:PZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:OZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:MZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:RZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${g}-custom-component, ${t}-count`]:{transform:"none"},[`${g}-custom-component, ${g}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${g}`]:{overflow:"hidden",[`${g}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${g}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${g}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${g}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},mE=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,marginXS:o,colorBorderBg:a}=e,i=Math.round(t*n),s=r,l=e.colorBgContainer,c=e.colorError,u=e.colorErrorHover;return St(e,{badgeFontHeight:i,badgeShadowSize:s,badgeTextColor:l,badgeColor:c,badgeColorHover:u,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},hE=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return {indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},NZ=Wt("Badge",e=>{const t=mE(e);return [_Z(t)]},hE),kZ=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o}=e,a=`${t}-ribbon`,i=`${t}-ribbon-wrapper`,s=Ed(e,(l,c)=>{let{darkColor:u}=c;return {[`&${a}-color-${l}`]:{background:u,color:u}}});return {[`${i}`]:{position:"relative"},[`${a}`]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{position:"absolute",top:r,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${n}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${o/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${a}-placement-end`]:{insetInlineEnd:-o,borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:-o,borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},AZ=Wt(["Badge","Ribbon"],e=>{const t=mE(e);return [kZ(t)]},hE),LZ=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=m__namespace.useContext(tt),d=c("ribbon",n),f=Od(o,!1),h=G(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${o}`]:f},t),[g,v]=AZ(d),p={},b={};return o&&!f&&(p.background=o,b.color=o),g(m__namespace.createElement("div",{className:G(`${d}-wrapper`,l,v)},a,m__namespace.createElement("div",{className:G(h,v),style:Object.assign(Object.assign({},p),r)},m__namespace.createElement("span",{className:`${d}-text`},i),m__namespace.createElement("div",{className:`${d}-corner`,style:b}))))},DZ=LZ;function $1(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),m__namespace.createElement("span",{style:a,className:G(`${t}-only-unit`,{current:r})},n)}function FZ(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function zZ(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,s]=m__namespace.useState(o),[l,c]=m__namespace.useState(a),u=()=>{s(o),c(a);};m__namespace.useEffect(()=>{const h=setTimeout(()=>{u();},1e3);return ()=>{clearTimeout(h);}},[o]);let d,f;if(i===o||Number.isNaN(o)||Number.isNaN(i))d=[m__namespace.createElement($1,Object.assign({},e,{key:o,current:!0}))],f={transition:"none"};else {d=[];const h=o+10,g=[];for(let b=o;b<=h;b+=1)g.push(b);const v=g.findIndex(b=>b%10===i);d=g.map((b,y)=>{const C=b%10;return m__namespace.createElement($1,Object.assign({},e,{key:b,value:C,offset:y-v,current:y===v}))});const p=l<a?1:-1;f={transform:`translateY(${-FZ(i,o,p)}00%)`};}return m__namespace.createElement("span",{className:`${t}-only`,style:f,onTransitionEnd:u},d)}var jZ=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 BZ=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:s,show:l,component:c="sup",children:u}=e,d=jZ(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=m__namespace.useContext(tt),h=f("scroll-number",n),g=Object.assign(Object.assign({},d),{"data-show":l,style:i,className:G(h,o,a),title:s});let v=r;if(r&&Number(r)%1===0){const p=String(r).split("");v=m__namespace.createElement("bdi",null,p.map((b,y)=>m__namespace.createElement(zZ,{prefixCls:h,count:Number(r),value:b,key:p.length-y})));}return i&&i.borderColor&&(g.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),u?Kn(u,p=>({className:G(`${h}-custom-component`,p==null?void 0:p.className,a)})):m__namespace.createElement(c,Object.assign({},g,{ref:t}),v)}),HZ=BZ;var VZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const WZ=(e,t)=>{var n,r,o,a,i;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:f,count:h=null,overflowCount:g=99,dot:v=!1,size:p="default",title:b,offset:y,style:C,className:$,rootClassName:w,classNames:E,styles:S,showZero:x=!1}=e,I=VZ(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:P,direction:R,badge:O}=m__namespace.useContext(tt),N=P("badge",s),[A,L]=NZ(N),T=h>g?`${g}+`:h,M=T==="0"||T===0,_=h===null||M&&!x,z=(u!=null||f!=null)&&_,F=v&&!M,B=F?"":T,H=m.useMemo(()=>(B==null||B===""||M&&!x)&&!F,[B,M,x,F]),V=m.useRef(h);H||(V.current=h);const K=V.current,X=m.useRef(B);H||(X.current=B);const q=X.current,te=m.useRef(F);H||(te.current=F);const W=m.useMemo(()=>{if(!y)return Object.assign(Object.assign({},O==null?void 0:O.style),C);const ee={marginTop:y[1]};return R==="rtl"?ee.left=parseInt(y[0],10):ee.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},ee),O==null?void 0:O.style),C)},[R,y,C,O==null?void 0:O.style]),Q=b??(typeof K=="string"||typeof K=="number"?K:void 0),Y=H||!d?null:m__namespace.createElement("span",{className:`${N}-status-text`},d),ie=!K||typeof K!="object"?void 0:Kn(K,ee=>({style:Object.assign(Object.assign({},W),ee.style)})),le=Od(f,!1),J=G(E==null?void 0:E.indicator,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.indicator,{[`${N}-status-dot`]:z,[`${N}-status-${u}`]:!!u,[`${N}-color-${f}`]:le}),re={};f&&!le&&(re.color=f,re.background=f);const fe=G(N,{[`${N}-status`]:z,[`${N}-not-a-wrapper`]:!c,[`${N}-rtl`]:R==="rtl"},$,w,O==null?void 0:O.className,(r=O==null?void 0:O.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,L);if(!c&&z){const ee=W.color;return A(m__namespace.createElement("span",Object.assign({},I,{className:fe,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=O==null?void 0:O.styles)===null||o===void 0?void 0:o.root),W)}),m__namespace.createElement("span",{className:J,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(a=O==null?void 0:O.styles)===null||a===void 0?void 0:a.indicator),re)}),d&&m__namespace.createElement("span",{style:{color:ee},className:`${N}-status-text`},d)))}return A(m__namespace.createElement("span",Object.assign({ref:t},I,{className:fe,style:Object.assign(Object.assign({},(i=O==null?void 0:O.styles)===null||i===void 0?void 0:i.root),S==null?void 0:S.root)}),c,m__namespace.createElement(Co,{visible:!H,motionName:`${N}-zoom`,motionAppear:!1,motionDeadline:1e3},ee=>{let{className:ce,ref:he}=ee;var ne,oe;const me=P("scroll-number",l),pe=te.current,_e=G(E==null?void 0:E.indicator,(ne=O==null?void 0:O.classNames)===null||ne===void 0?void 0:ne.indicator,{[`${N}-dot`]:pe,[`${N}-count`]:!pe,[`${N}-count-sm`]:p==="small",[`${N}-multiple-words`]:!pe&&q&&q.toString().length>1,[`${N}-status-${u}`]:!!u,[`${N}-color-${f}`]:le});let Ve=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(oe=O==null?void 0:O.styles)===null||oe===void 0?void 0:oe.indicator),W);return f&&!le&&(Ve=Ve||{},Ve.background=f),m__namespace.createElement(HZ,{prefixCls:me,show:!H,motionClassName:ce,className:_e,count:q,title:Q,style:Ve,key:"scrollNumber",ref:he},ie)}),Y))},gE=m__namespace.forwardRef(WZ);gE.Ribbon=DZ;const GZ=gE,zl={name:"1wnowod",styles:"display:flex;align-items:center;justify-content:center"};function KZ(e){const t=m.useRef(null);return t.current??(t.current=e()),t}var UZ=Math.floor,XZ=Math.random;function qZ(e,t){return e+UZ(XZ()*(t-e+1))}var YZ=qZ,ZZ=YZ;function QZ(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var a=ZZ(n,o),i=e[a];e[a]=e[n],e[n]=i;}return e.length=t,e}var vE=QZ,JZ=cS,eQ=vE;function tQ(e){return eQ(JZ(e))}var nQ=tQ,rQ=Tg;function oQ(e,t){return rQ(t,function(n){return e[n]})}var aQ=oQ,iQ=aQ,sQ=ul;function lQ(e){return e==null?[]:iQ(e,sQ(e))}var cQ=lQ,uQ=vE,dQ=cQ;function fQ(e){return uQ(dQ(e))}var mQ=fQ,hQ=nQ,gQ=mQ,vQ=Br;function pQ(e){var t=vQ(e)?hQ:gQ;return t(e)}var bQ=pQ;const tg=bn(bQ);var yQ=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],pE=m__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,h=e.onChange,g=e.onKeyDown,v=et(e,yQ),p=Ut(!1,{value:i,defaultValue:s}),b=Z(p,2),y=b[0],C=b[1];function $(x,I){var P=y;return l||(P=x,C(P),h==null||h(P,I)),P}function w(x){x.which===ue.LEFT?$(!1,x):x.which===ue.RIGHT&&$(!0,x),g==null||g(x);}function E(x){var I=$(!y,x);f==null||f(I,x);}var S=G(o,a,(n={},j(n,"".concat(o,"-checked"),y),j(n,"".concat(o,"-disabled"),l),n));return m__namespace.createElement("button",Ie({},v,{type:"button",role:"switch","aria-checked":y,disabled:l,className:S,ref:t,onKeyDown:w,onClick:E}),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)))});pE.displayName="Switch";const CQ=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s}=e,l=`${t}-inner`;return {[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${s+r*2}px - ${i*2}px)`,marginInlineEnd:`calc(100% - ${s+r*2}px + ${i*2}px)`},[`${l}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:(s-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${s+r*2}px + ${i*2}px)`,marginInlineEnd:`calc(-100% + ${s+r*2}px - ${i*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${s+r}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},SQ=e=>{const{componentCls:t,handleSize:n}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(n-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},$Q=e=>{const{componentCls:t,motion:n,trackPadding:r,handleBg:o,handleShadow:a,handleSize:i}=e,s=`${t}-handle`;return {[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:i/2,boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${i+r}px)`},[`&:not(${t}-disabled):active`]:n?{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},wQ=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i}=e,s=`${t}-inner`;return {[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${i+r*2}px - ${a*2}px)`,marginInlineEnd:`calc(100% - ${i+r*2}px + ${a*2}px)`},[`${s}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${i+r*2}px + ${a*2}px)`,marginInlineEnd:`calc(-100% + ${i+r*2}px - ${a*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:r*2,marginInlineEnd:-r*2}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:-r*2,marginInlineEnd:r*2}}}}}},xQ=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${n}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}}),ga(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"}})}},EQ=Wt("Switch",e=>{const t=St(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [xQ(t),wQ(t),$Q(t),SQ(t),CQ(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=2,l=a-s*2,c=i-s*2;return {trackHeight:a,trackHeightSM:i,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Qt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}});var IQ=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 bE=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:l}=e,c=IQ(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:f}=m__namespace.useContext(tt),h=m__namespace.useContext(Hr),g=(o??h)||a,v=u("switch",n),p=m__namespace.createElement("div",{className:`${v}-handle`},a&&m__namespace.createElement(gp,{className:`${v}-loading-icon`})),[b,y]=EQ(v),C=Jn(r),$=G(f==null?void 0:f.className,{[`${v}-small`]:C==="small",[`${v}-loading`]:a,[`${v}-rtl`]:d==="rtl"},i,s,y),w=Object.assign(Object.assign({},f==null?void 0:f.style),l);return b(m__namespace.createElement(Tl,{component:"Switch"},m__namespace.createElement(pE,Object.assign({},c,{prefixCls:v,className:$,style:w,disabled:g,ref:t,loadingIcon:p}))))});bE.__ANT_SWITCH=!0;const Cp=bE;var PQ={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 OQ=PQ;var MQ=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:OQ}))};const af=m__namespace.forwardRef(MQ);function RQ(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function TQ(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:m.createElement(af,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!RQ(e,t,o))return [!1,null];const i=typeof t=="boolean"||t===void 0||t===null?r:t;return [!0,n?n(i):i]}const _Q=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return {[o]:Object.assign(Object.assign({},zt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,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:i,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:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Sp=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`;return St(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},$p=e=>({defaultBg:new Qt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),yE=Wt("Tag",e=>{const t=Sp(e);return _Q(t)},$p);var NQ=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 kQ=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:s}=e,l=NQ(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=m__namespace.useContext(tt),d=p=>{i==null||i(!a),s==null||s(p);},f=c("tag",n),[h,g]=yE(f),v=G(f,`${f}-checkable`,{[`${f}-checkable-checked`]:a},u==null?void 0:u.className,o,g);return h(m__namespace.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:d})))}),AQ=kQ,LQ=e=>Ed(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return {[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),DQ=xv(["Tag","preset"],e=>{const t=Sp(e);return LQ(t)},$p);function FQ(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const vc=(e,t,n)=>{const r=FQ(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},zQ=xv(["Tag","status"],e=>{const t=Sp(e);return [vc(t,"success","Success"),vc(t,"processing","Info"),vc(t,"error","Error"),vc(t,"warning","Warning")]},$p);var jQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const BQ=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:f=!0}=e,h=jQ(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:g,direction:v,tag:p}=m__namespace.useContext(tt),[b,y]=m__namespace.useState(!0);m__namespace.useEffect(()=>{"visible"in h&&y(h.visible);},[h.visible]);const C=Od(l),$=B8(l),w=C||$,E=Object.assign(Object.assign({backgroundColor:l&&!w?l:void 0},p==null?void 0:p.style),a),S=g("tag",n),[x,I]=yE(S),P=G(S,p==null?void 0:p.className,{[`${S}-${l}`]:w,[`${S}-has-color`]:l&&!w,[`${S}-hidden`]:!b,[`${S}-rtl`]:v==="rtl",[`${S}-borderless`]:!f},r,o,I),R=M=>{M.stopPropagation(),c==null||c(M),!M.defaultPrevented&&y(!1);},[,O]=TQ(d,u,M=>M===null?m__namespace.createElement(af,{className:`${S}-close-icon`,onClick:R}):m__namespace.createElement("span",{className:`${S}-close-icon`,onClick:R},M),null,!1),N=typeof h.onClick=="function"||i&&i.type==="a",A=s||null,L=A?m__namespace.createElement(m__namespace.Fragment,null,A,i&&m__namespace.createElement("span",null,i)):i,T=m__namespace.createElement("span",Object.assign({},h,{ref:t,className:P,style:E}),L,O,C&&m__namespace.createElement(DQ,{key:"preset",prefixCls:S}),$&&m__namespace.createElement(zQ,{key:"status",prefixCls:S}));return x(N?m__namespace.createElement(Tl,{component:"Tag"},T):T)},CE=m__namespace.forwardRef(BQ);CE.CheckableTag=AQ;const Po=CE;function w1(e){const[t,n]=m.useState(null);return [m.useCallback((a,i,s)=>{const l=t??a,c=Math.min(l||0,a),u=Math.max(l||0,a),d=i.slice(c,u+1).map(g=>e(g)),f=d.some(g=>!s.has(g)),h=[];return d.forEach(g=>{f?(s.has(g)||h.push(g),s.add(g)):(s.delete(g),h.push(g));}),n(f?u:null),h},[t]),a=>{n(a);}]}function Fr(e,t,n){return G({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const jl=(e,t)=>t||e,$u=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},HQ=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:a}=n;o&&t.set(a,r);}),t},VQ=()=>{const[,e]=Qn(),n=new Qt(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"}))))},WQ=VQ,GQ=()=>{const[,e]=Qn(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=m.useMemo(()=>({borderColor:new Qt(t).onBackground(o).toHexShortString(),shadowColor:new Qt(n).onBackground(o).toHexShortString(),contentColor:new Qt(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:i,cx:"32",cy:"33",rx:"32",ry:"7"}),m__namespace.createElement("g",{fillRule:"nonzero",stroke:a},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}))))},KQ=GQ,UQ=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return {[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},XQ=Wt("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=St(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [UQ(r)]});var qQ=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 SE=m__namespace.createElement(WQ,null),$E=m__namespace.createElement(KQ,null),wp=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=SE,description:a,children:i,imageStyle:s,style:l}=e,c=qQ(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=m__namespace.useContext(tt),h=u("empty",r),[g,v]=XQ(h),[p]=Vi("Empty"),b=typeof a<"u"?a:p==null?void 0:p.description,y=typeof b=="string"?b:"empty";let C=null;return typeof o=="string"?C=m__namespace.createElement("img",{alt:y,src:o}):C=o,g(m__namespace.createElement("div",Object.assign({className:G(v,h,f==null?void 0:f.className,{[`${h}-normal`]:o===$E,[`${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},C),b&&m__namespace.createElement("div",{className:`${h}-description`},b),i&&m__namespace.createElement("div",{className:`${h}-footer`},i)))};wp.PRESENTED_IMAGE_DEFAULT=SE;wp.PRESENTED_IMAGE_SIMPLE=$E;const us=wp,YQ=e=>{const{componentName:t}=e,{getPrefixCls:n}=m.useContext(tt),r=n("empty");switch(t){case"Table":case"List":return m.createElement(us,{image:us.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return m.createElement(us,{image:us.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return m.createElement(us,null)}},wE=YQ;function ZQ(e,t,n){const r=m__namespace.useMemo(()=>(e||[]).map(i=>(t&&(i=Object.assign(Object.assign({},i),{key:t(i)})),i)),[e,t]),[o,a]=m__namespace.useMemo(()=>{const i=[],s=new Array((n||[]).length),l=$u(n||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:i.push(c);}),[i,s]},[r,n,t]);return [r,o,a]}const QQ=[];function Ha(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function x1(e){return Array.from(e).join(";")}function JQ(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:QQ;const[r,o]=m__namespace.useMemo(()=>[new Set(e.map(c=>c.key)),new Set(t.map(c=>c.key))],[e,t]),[a,i]=m__namespace.useState(()=>Ha(n,r)),[s,l]=m__namespace.useState(()=>Ha(n,o));return m__namespace.useEffect(()=>{i(Ha(n,r)),l(Ha(n,o));},[n]),m__namespace.useEffect(()=>{i(Ha(a,r)),l(Ha(s,o));},[x1(r),x1(o)]),[a,s,i,l]}var eJ={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 tJ=eJ;var nJ=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:tJ}))};const xp=m__namespace.forwardRef(nJ);var rJ={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 oJ=rJ;var aJ=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:oJ}))};const E1=m__namespace.forwardRef(aJ);var iJ={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 sJ=iJ;var lJ=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:sJ}))};const I1=m__namespace.forwardRef(lJ);var Uo={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const cJ={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 ng=function(e){jo(n,e);var t=Bo(n);function n(){var r;wn(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),j(Ge(r),"state",{goInputText:""}),j(Ge(r),"getValidValue",function(){var s=r.state.goInputText;return !s||Number.isNaN(s)?void 0:Number(s)}),j(Ge(r),"buildOptionText",function(s){return "".concat(s," ").concat(r.props.locale.items_per_page)}),j(Ge(r),"changeSize",function(s){r.props.changeSize(Number(s));}),j(Ge(r),"handleChange",function(s){r.setState({goInputText:s.target.value});}),j(Ge(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()));}),j(Ge(r),"go",function(s){var l=r.state.goInputText;l!==""&&(s.keyCode===Uo.ENTER||s.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()));}),r}return xn(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,a=o.pageSize,i=o.pageSizeOptions;return i.some(function(s){return s.toString()===a.toString()})?i:i.concat([a.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,a=this.props,i=a.pageSize,s=a.locale,l=a.rootPrefixCls,c=a.changeSize,u=a.quickGo,d=a.goButton,f=a.selectComponentClass,h=a.buildOptionText,g=a.selectPrefixCls,v=a.disabled,p=this.state.goInputText,b="".concat(l,"-options"),y=f,C=null,$=null,w=null;if(!c&&!u)return null;var E=this.getPageSizeOptions();if(c&&y){var S=E.map(function(x,I){return m.createElement(y.Option,{key:I,value:x.toString()},(h||o.buildOptionText)(x))});C=m.createElement(y,{disabled:v,prefixCls:g,showSearch:!1,className:"".concat(b,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||E[0]).toString(),onChange:this.changeSize,getPopupContainer:function(I){return I.parentNode},"aria-label":s.page_size,defaultOpen:!1},S);}return u&&(d&&(w=typeof d=="boolean"?m.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:v,className:"".concat(b,"-quick-jumper-button")},s.jump_to_confirm):m.createElement("span",{onClick:this.go,onKeyUp:this.go},d)),$=m.createElement("div",{className:"".concat(b,"-quick-jumper")},s.jump_to,m.createElement("input",{disabled:v,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,w)),m.createElement("li",{className:"".concat(b)},C,$)}}]),n}(m.Component);j(ng,"defaultProps",{pageSizeOptions:["10","20","50","100"]});var ds=function(t){var n,r=t.rootPrefixCls,o=t.page,a=t.active,i=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(r,"-item"),f=G(d,"".concat(d,"-").concat(o),(n={},j(n,"".concat(d,"-active"),a),j(n,"".concat(d,"-disabled"),!o),j(n,t.className,i),n)),h=function(){l(o);},g=function(b){c(b,l,o);},v=u(o,"page",m.createElement("a",{rel:"nofollow"},o));return v?m.createElement("li",{title:s?o.toString():null,className:f,onClick:h,onKeyPress:g,tabIndex:0},v):null};function rg(){}function P1(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var uJ=function(t,n,r){return r};function xo(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var xE=function(e){jo(n,e);var t=Bo(n);function n(r){var o;wn(this,n),o=t.call(this,r),j(Ge(o),"paginationNode",m.createRef()),j(Ge(o),"getJumpPrevPage",function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))}),j(Ge(o),"getJumpNextPage",function(){return Math.min(xo(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))}),j(Ge(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,U({},o.props))),f}),j(Ge(o),"isValid",function(c){var u=o.props.total;return P1(c)&&c!==o.state.current&&P1(u)&&u>0}),j(Ge(o),"shouldDisplayQuickJumper",function(){var c=o.props,u=c.showQuickJumper,d=c.total,f=o.state.pageSize;return d<=f?!1:u}),j(Ge(o),"handleKeyDown",function(c){(c.keyCode===Uo.ARROW_UP||c.keyCode===Uo.ARROW_DOWN)&&c.preventDefault();}),j(Ge(o),"handleKeyUp",function(c){var u=o.getValidValue(c),d=o.state.currentInputValue;u!==d&&o.setState({currentInputValue:u}),c.keyCode===Uo.ENTER?o.handleChange(u):c.keyCode===Uo.ARROW_UP?o.handleChange(u-1):c.keyCode===Uo.ARROW_DOWN&&o.handleChange(u+1);}),j(Ge(o),"handleBlur",function(c){var u=o.getValidValue(c);o.handleChange(u);}),j(Ge(o),"changePageSize",function(c){var u=o.state.current,d=xo(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);}),j(Ge(o),"handleChange",function(c){var u=o.props,d=u.disabled,f=u.onChange,h=o.state,g=h.pageSize,v=h.current,p=h.currentInputValue;if(o.isValid(c)&&!d){var b=xo(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,g),y}return v}),j(Ge(o),"prev",function(){o.hasPrev()&&o.handleChange(o.state.current-1);}),j(Ge(o),"next",function(){o.hasNext()&&o.handleChange(o.state.current+1);}),j(Ge(o),"jumpPrev",function(){o.handleChange(o.getJumpPrevPage());}),j(Ge(o),"jumpNext",function(){o.handleChange(o.getJumpNextPage());}),j(Ge(o),"hasPrev",function(){return o.state.current>1}),j(Ge(o),"hasNext",function(){return o.state.current<xo(void 0,o.state,o.props)}),j(Ge(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);}}),j(Ge(o),"runIfEnterPrev",function(c){o.runIfEnter(c,o.prev);}),j(Ge(o),"runIfEnterNext",function(c){o.runIfEnter(c,o.next);}),j(Ge(o),"runIfEnterJumpPrev",function(c){o.runIfEnter(c,o.jumpPrev);}),j(Ge(o),"runIfEnterJumpNext",function(c){o.runIfEnter(c,o.jumpNext);}),j(Ge(o),"handleGoTO",function(c){(c.keyCode===Uo.ENTER||c.type==="click")&&o.handleChange(o.state.currentInputValue);}),j(Ge(o),"renderPrev",function(c){var u=o.props,d=u.prevIcon,f=u.itemRender,h=f(c,"prev",o.getItemIcon(d,"prev page")),g=!o.hasPrev();return m.isValidElement(h)?m.cloneElement(h,{disabled:g}):h}),j(Ge(o),"renderNext",function(c){var u=o.props,d=u.nextIcon,f=u.itemRender,h=f(c,"next",o.getItemIcon(d,"next page")),g=!o.hasNext();return m.isValidElement(h)?m.cloneElement(h,{disabled:g}):h});var a=r.onChange!==rg,i="current"in r;i&&!a&&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,xo(l,void 0,r)),o.state={current:s,currentInputValue:s,pageSize:l},o}return xn(n,[{key:"componentDidUpdate",value:function(o,a){var i=this.props.prefixCls;if(a.current!==this.state.current&&this.paginationNode.current){var s=this.paginationNode.current.querySelector(".".concat(i,"-item-").concat(a.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 a=o.target.value,i=xo(void 0,this.state,this.props),s=this.state.currentInputValue,l;return a===""?l=a:Number.isNaN(Number(a))?l=s:a>=i?l=i:l=Number(a),l}},{key:"getShowSizeChanger",value:function(){var o=this.props,a=o.showSizeChanger,i=o.total,s=o.totalBoundaryShowSizeChanger;return typeof a<"u"?a:i>s}},{key:"render",value:function(){var o=this.props,a=o.prefixCls,i=o.className,s=o.style,l=o.disabled,c=o.hideOnSinglePage,u=o.total,d=o.locale,f=o.showQuickJumper,h=o.showLessItems,g=o.showTitle,v=o.showTotal,p=o.simple,b=o.itemRender,y=o.showPrevNextJumpers,C=o.jumpPrevIcon,$=o.jumpNextIcon,w=o.selectComponentClass,E=o.selectPrefixCls,S=o.pageSizeOptions,x=this.state,I=x.current,P=x.pageSize,R=x.currentInputValue;if(c===!0&&u<=P)return null;var O=xo(void 0,this.state,this.props),N=[],A=null,L=null,T=null,M=null,_=null,z=f&&f.goButton,F=h?1:2,B=I-1>0?I-1:0,H=I+1<O?I+1:O,V=xi(this.props,{aria:!0,data:!0}),K=v&&m.createElement("li",{className:"".concat(a,"-total-text")},v(u,[u===0?0:(I-1)*P+1,I*P>u?u:I*P]));if(p){z&&(typeof z=="boolean"?_=m.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):_=m.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z),_=m.createElement("li",{title:g?"".concat(d.jump_to).concat(I,"/").concat(O):null,className:"".concat(a,"-simple-pager")},_));var X=this.renderPrev(B);return m.createElement("ul",Ie({className:G(a,"".concat(a,"-simple"),j({},"".concat(a,"-disabled"),l),i),style:s,ref:this.paginationNode},V),K,X?m.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:G("".concat(a,"-prev"),j({},"".concat(a,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},X):null,m.createElement("li",{title:g?"".concat(I,"/").concat(O):null,className:"".concat(a,"-simple-pager")},m.createElement("input",{type:"text",value:R,disabled:l,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),m.createElement("span",{className:"".concat(a,"-slash")},"/"),O),m.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:G("".concat(a,"-next"),j({},"".concat(a,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(H)),m.createElement(ng,{disabled:l,locale:d,rootPrefixCls:a,selectComponentClass:w,selectPrefixCls:E,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:P,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_}))}if(O<=3+F*2){var q={locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:b};O||N.push(m.createElement(ds,Ie({},q,{key:"noPager",page:1,className:"".concat(a,"-item-disabled")})));for(var te=1;te<=O;te+=1){var W=I===te;N.push(m.createElement(ds,Ie({},q,{key:te,page:te,active:W})));}}else {var Q=h?d.prev_3:d.prev_5,Y=h?d.next_3:d.next_5,ie=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(C,"prev page")),le=b(this.getJumpNextPage(),"jump-next",this.getItemIcon($,"next page"));y&&(A=ie?m.createElement("li",{title:g?Q:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:G("".concat(a,"-jump-prev"),j({},"".concat(a,"-jump-prev-custom-icon"),!!C))},ie):null,L=le?m.createElement("li",{title:g?Y:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:G("".concat(a,"-jump-next"),j({},"".concat(a,"-jump-next-custom-icon"),!!$))},le):null),M=m.createElement(ds,{locale:d,last:!0,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:O,page:O,active:!1,showTitle:g,itemRender:b}),T=m.createElement(ds,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:b});var J=Math.max(1,I-F),re=Math.min(I+F,O);I-1<=F&&(re=1+F*2),O-I<=F&&(J=O-F*2);for(var fe=J;fe<=re;fe+=1){var ee=I===fe;N.push(m.createElement(ds,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:fe,page:fe,active:ee,showTitle:g,itemRender:b}));}I-1>=F*2&&I!==3&&(N[0]=m.cloneElement(N[0],{className:"".concat(a,"-item-after-jump-prev")}),N.unshift(A)),O-I>=F*2&&I!==O-2&&(N[N.length-1]=m.cloneElement(N[N.length-1],{className:"".concat(a,"-item-before-jump-next")}),N.push(L)),J!==1&&N.unshift(T),re!==O&&N.push(M);}var ce=!this.hasPrev()||!O,he=!this.hasNext()||!O,ne=this.renderPrev(B),oe=this.renderNext(H);return m.createElement("ul",Ie({className:G(a,i,j({},"".concat(a,"-disabled"),l)),style:s,ref:this.paginationNode},V),K,ne?m.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:ce?null:0,onKeyPress:this.runIfEnterPrev,className:G("".concat(a,"-prev"),j({},"".concat(a,"-disabled"),ce)),"aria-disabled":ce},ne):null,N,oe?m.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:he?null:0,onKeyPress:this.runIfEnterNext,className:G("".concat(a,"-next"),j({},"".concat(a,"-disabled"),he)),"aria-disabled":he},oe):null,m.createElement(ng,{disabled:l,locale:d,rootPrefixCls:a,selectComponentClass:w,selectPrefixCls:E,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:P,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:z}))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i={};if("current"in o&&(i.current=o.current,o.current!==a.current&&(i.currentInputValue=i.current)),"pageSize"in o&&o.pageSize!==a.pageSize){var s=a.current,l=xo(o.pageSize,a,o);s=s>l?l:s,"current"in o||(i.current=s,i.currentInputValue=s),i.pageSize=o.pageSize;}return i}}]),n}(m.Component);j(xE,"defaultProps",{defaultCurrent:1,total:0,defaultPageSize:10,onChange:rg,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:rg,locale:cJ,style:{},itemRender:uJ,totalBoundaryShowSizeChanger:50});var sf=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.onMouseDown,i=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(),a&&a(u);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},l!==void 0?l:m__namespace.createElement("span",{className:G(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))};function dJ(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=m.useMemo(function(){if(dt(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=m.useMemo(function(){return !!(!a&&r&&(n.length||i)&&!(s==="combobox"&&i===""))},[r,a,n.length,i,s]);return {allowClear:c,clearIcon:m.createElement(sf,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}var EE=m__namespace.createContext(null);function fJ(){return m__namespace.useContext(EE)}function mJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=m__namespace.useState(!1),n=Z(t,2),r=n[0],o=n[1],a=m__namespace.useRef(null),i=function(){window.clearTimeout(a.current);};m__namespace.useEffect(function(){return i},[]);var s=function(c,u){i(),a.current=window.setTimeout(function(){o(c),u&&u();},e);};return [r,s,i]}function IE(){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 hJ(e,t,n,r){var o=m__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},m__namespace.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=i.target;l.shadowRoot&&i.composed&&(l=i.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",a),function(){return window.removeEventListener("mousedown",a)}},[]);}var gJ=function(t,n){var r,o=t.prefixCls,a=t.id,i=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,f=t.activeDescendantId,h=t.value,g=t.maxLength,v=t.onKeyDown,p=t.onMouseDown,b=t.onChange,y=t.onPaste,C=t.onCompositionStart,$=t.onCompositionEnd,w=t.open,E=t.attrs,S=i||m__namespace.createElement("input",null),x=S,I=x.ref,P=x.props,R=P.onKeyDown,O=P.onChange,N=P.onMouseDown,A=P.onCompositionStart,L=P.onCompositionEnd,T=P.style;return "maxLength"in S.props,S=m__namespace.cloneElement(S,U(U(U({type:"search"},P),{},{id:a,ref:Xn(n,I),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:G("".concat(o,"-selection-search-input"),(r=S)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":w?f:void 0},E),{},{value:d?h:"",maxLength:g,readOnly:!d,unselectable:d?null:"on",style:U(U({},T),{},{opacity:d?null:0}),onKeyDown:function(_){v(_),R&&R(_);},onMouseDown:function(_){p(_),N&&N(_);},onChange:function(_){b(_),O&&O(_);},onCompositionStart:function(_){C(_),A&&A(_);},onCompositionEnd:function(_){$(_),L&&L(_);},onPaste:y})),S},Ep=m__namespace.forwardRef(gJ);Ep.displayName="Input";function PE(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var vJ=typeof window<"u"&&window.document&&window.document.documentElement,pJ=vJ;function bJ(e){return e!=null}function yJ(e){return !e&&e!==0}function O1(e){return ["string","number"].includes(dt(e))}function OE(e){var t=void 0;return e&&(O1(e.title)?t=e.title.toString():O1(e.label)&&(t=e.label.toString())),t}function CJ(e,t){pJ?m__namespace.useLayoutEffect(e,t):m__namespace.useEffect(e,t);}function SJ(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var M1=function(t){t.preventDefault(),t.stopPropagation();},$J=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,f=t.showSearch,h=t.autoFocus,g=t.autoComplete,v=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,C=t.maxTagTextLength,$=t.maxTagPlaceholder,w=$===void 0?function(J){return "+ ".concat(J.length," ...")}:$,E=t.tagRender,S=t.onToggleOpen,x=t.onRemove,I=t.onInputChange,P=t.onInputPaste,R=t.onInputKeyDown,O=t.onInputMouseDown,N=t.onInputCompositionStart,A=t.onInputCompositionEnd,L=m__namespace.useRef(null),T=m.useState(0),M=Z(T,2),_=M[0],z=M[1],F=m.useState(!1),B=Z(F,2),H=B[0],V=B[1],K="".concat(r,"-selection"),X=a||d==="multiple"&&s===!1||d==="tags"?i:"",q=d==="tags"||d==="multiple"&&s===!1||f&&(a||H);CJ(function(){z(L.current.scrollWidth);},[X]);function te(J,re,fe,ee,ce){return m__namespace.createElement("span",{className:G("".concat(K,"-item"),j({},"".concat(K,"-item-disabled"),fe)),title:OE(J)},m__namespace.createElement("span",{className:"".concat(K,"-item-content")},re),ee&&m__namespace.createElement(sf,{className:"".concat(K,"-item-remove"),onMouseDown:M1,onClick:ce,customizeIcon:b},"×"))}function W(J,re,fe,ee,ce){var he=function(oe){M1(oe),S(!a);};return m__namespace.createElement("span",{onMouseDown:he},E({label:re,value:J,disabled:fe,closable:ee,onClose:ce}))}function Q(J){var re=J.disabled,fe=J.label,ee=J.value,ce=!u&&!re,he=fe;if(typeof C=="number"&&(typeof fe=="string"||typeof fe=="number")){var ne=String(he);ne.length>C&&(he="".concat(ne.slice(0,C),"..."));}var oe=function(pe){pe&&pe.stopPropagation(),x(J);};return typeof E=="function"?W(ee,he,re,ce,oe):te(J,he,re,ce,oe)}function Y(J){var re=typeof w=="function"?w(J):w;return te({title:re},re,!1)}var ie=m__namespace.createElement("div",{className:"".concat(K,"-search"),style:{width:_},onFocus:function(){V(!0);},onBlur:function(){V(!1);}},m__namespace.createElement(Ep,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:g,editable:q,activeDescendantId:v,value:X,onKeyDown:R,onMouseDown:O,onChange:I,onPaste:P,onCompositionStart:N,onCompositionEnd:A,tabIndex:p,attrs:xi(t,!0)}),m__namespace.createElement("span",{ref:L,className:"".concat(K,"-search-mirror"),"aria-hidden":!0},X," ")),le=m__namespace.createElement(Jr,{prefixCls:"".concat(K,"-overflow"),data:o,renderItem:Q,renderRest:Y,suffix:ie,itemKey:SJ,maxCount:y});return m__namespace.createElement(m__namespace.Fragment,null,le,!o.length&&!X&&m__namespace.createElement("span",{className:"".concat(K,"-placeholder")},c))},wJ=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,f=t.values,h=t.placeholder,g=t.tabIndex,v=t.showSearch,p=t.searchValue,b=t.activeValue,y=t.maxLength,C=t.onInputKeyDown,$=t.onInputMouseDown,w=t.onInputChange,E=t.onInputPaste,S=t.onInputCompositionStart,x=t.onInputCompositionEnd,I=t.title,P=m__namespace.useState(!1),R=Z(P,2),O=R[0],N=R[1],A=u==="combobox",L=A||v,T=f[0],M=p||"";A&&b&&!O&&(M=b),m__namespace.useEffect(function(){A&&N(!1);},[A,b]);var _=u!=="combobox"&&!d&&!v?!1:!!M,z=I===void 0?OE(T):I,F=function(){if(T)return null;var H=_?{visibility:"hidden"}:void 0;return m__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:H},h)};return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("span",{className:"".concat(r,"-selection-search")},m__namespace.createElement(Ep,{ref:a,prefixCls:r,id:o,open:d,inputElement:n,disabled:i,autoFocus:s,autoComplete:l,editable:L,activeDescendantId:c,value:M,onKeyDown:C,onMouseDown:$,onChange:function(H){N(!0),w(H);},onPaste:E,onCompositionStart:S,onCompositionEnd:x,tabIndex:g,attrs:xi(t,!0),maxLength:A?y:void 0})),!A&&T?m__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:_?{visibility:"hidden"}:void 0},T.label):null,F())};function xJ(e){return ![ue.ESC,ue.SHIFT,ue.BACKSPACE,ue.TAB,ue.WIN_KEY,ue.ALT,ue.META,ue.WIN_KEY_RIGHT,ue.CTRL,ue.SEMICOLON,ue.EQUALS,ue.CAPS_LOCK,ue.CONTEXT_MENU,ue.F1,ue.F2,ue.F3,ue.F4,ue.F5,ue.F6,ue.F7,ue.F8,ue.F9,ue.F10,ue.F11,ue.F12].includes(e)}var EJ=function(t,n){var r=m.useRef(null),o=m.useRef(!1),a=t.prefixCls,i=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,f=t.onSearchSubmit,h=t.onToggleOpen,g=t.onInputKeyDown,v=t.domRef;m__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=IE(0),b=Z(p,2),y=b[0],C=b[1],$=function(M){var _=M.which;(_===ue.UP||_===ue.DOWN)&&M.preventDefault(),g&&g(M),_===ue.ENTER&&s==="tags"&&!o.current&&!i&&(f==null||f(M.target.value)),xJ(_)&&h(!0);},w=function(){C(!0);},E=m.useRef(null),S=function(M){d(M,!0,o.current)!==!1&&h(!0);},x=function(){o.current=!0;},I=function(M){o.current=!1,s!=="combobox"&&S(M.target.value);},P=function(M){var _=M.target.value;if(c&&E.current&&/[\r\n]/.test(E.current)){var z=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_=_.replace(z,E.current);}E.current=null,S(_);},R=function(M){var _=M.clipboardData,z=_.getData("text");E.current=z;},O=function(M){var _=M.target;if(_!==r.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){r.current.focus();}):r.current.focus();}},N=function(M){var _=y();M.target!==r.current&&!_&&s!=="combobox"&&M.preventDefault(),(s!=="combobox"&&(!l||!_)||!i)&&(i&&u!==!1&&d("",!0,!1),h());},A={inputRef:r,onInputKeyDown:$,onInputMouseDown:w,onInputChange:P,onInputPaste:R,onInputCompositionStart:x,onInputCompositionEnd:I},L=s==="multiple"||s==="tags"?m__namespace.createElement($J,Ie({},t,A)):m__namespace.createElement(wJ,Ie({},t,A));return m__namespace.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:O,onMouseDown:N},L)},ME=m__namespace.forwardRef(EJ);ME.displayName="Selector";var IJ=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],PJ=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"}}},OJ=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,f=d===void 0?"ltr":d,h=t.placement,g=t.builtinPlacements,v=t.dropdownMatchSelectWidth,p=t.dropdownRender,b=t.dropdownAlign,y=t.getPopupContainer,C=t.empty,$=t.getTriggerDOMNode,w=t.onPopupVisibleChange,E=t.onPopupMouseEnter,S=et(t,IJ),x="".concat(r,"-dropdown"),I=i;p&&(I=p(i));var P=m__namespace.useMemo(function(){return g||PJ(v)},[g,v]),R=s?"".concat(x,"-").concat(s):l,O=typeof v=="number",N=m__namespace.useMemo(function(){return O?null:v===!1?"minWidth":"width"},[v,O]),A=c;O&&(A=U(U({},A),{},{width:v}));var L=m__namespace.useRef(null);return m__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return L.current}}}),m__namespace.createElement(Sd,Ie({},S,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:h||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:x,popupTransitionName:R,popup:m__namespace.createElement("div",{ref:L,onMouseEnter:E},I),stretch:N,popupAlign:b,popupVisible:o,getPopupContainer:y,popupClassName:G(u,j({},"".concat(x,"-empty"),C)),popupStyle:A,getTriggerDOMNode:$,onPopupVisibleChange:w}),a)},RE=m__namespace.forwardRef(OJ);RE.displayName="SelectTrigger";function R1(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 TE(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,s=r||(t?"children":"label");return {label:s,value:o||"value",options:a||"options",groupLabel:i||s}}function MJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=TE(n,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(d,f){d.forEach(function(h){if(f||!(l in h)){var g=h[s];o.push({key:R1(h,o.length),groupOption:f,data:h,label:h[i],value:g});}else {var v=h[c];v===void 0&&r&&(v=h.label),o.push({key:R1(h,o.length),group:!0,data:h,label:v}),u(h[l],!0);}});}return u(e,!1),o}function og(e){var t=U({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return Sn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function RJ(e,t){if(!t||!t.length)return null;var n=!1;function r(a,i){var s=ew(i),l=s[0],c=s.slice(1);if(!l)return [a];var u=a.split(l);return n=n||u.length>1,u.reduce(function(d,f){return [].concat(Te(d),Te(r(f,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var TJ=["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"],_J=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ag(e){return e==="tags"||e==="multiple"}var NJ=m__namespace.forwardRef(function(e,t){var n,r,o=e.id,a=e.prefixCls,i=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,h=e.emptyOptions,g=e.notFoundContent,v=g===void 0?"Not Found":g,p=e.onClear,b=e.mode,y=e.disabled,C=e.loading,$=e.getInputElement,w=e.getRawInputElement,E=e.open,S=e.defaultOpen,x=e.onDropdownVisibleChange,I=e.activeValue,P=e.onActiveValueChange,R=e.activeDescendantId,O=e.searchValue,N=e.autoClearSearchValue,A=e.onSearch,L=e.onSearchSplit,T=e.tokenSeparators,M=e.allowClear,_=e.suffixIcon,z=e.clearIcon,F=e.OptionList,B=e.animation,H=e.transitionName,V=e.dropdownStyle,K=e.dropdownClassName,X=e.dropdownMatchSelectWidth,q=e.dropdownRender,te=e.dropdownAlign,W=e.placement,Q=e.builtinPlacements,Y=e.getPopupContainer,ie=e.showAction,le=ie===void 0?[]:ie,J=e.onFocus,re=e.onBlur,fe=e.onKeyUp,ee=e.onKeyDown,ce=e.onMouseDown,he=et(e,TJ),ne=ag(b),oe=(s!==void 0?s:ne)||b==="combobox",me=U({},he);_J.forEach(function(gt){delete me[gt];}),u==null||u.forEach(function(gt){delete me[gt];});var pe=m__namespace.useState(!1),_e=Z(pe,2),Ve=_e[0],He=_e[1];m__namespace.useEffect(function(){He(Cd());},[]);var Me=m__namespace.useRef(null),Qe=m__namespace.useRef(null),Xe=m__namespace.useRef(null),We=m__namespace.useRef(null),Pe=m__namespace.useRef(null),Ce=m__namespace.useRef(!1),je=mJ(),it=Z(je,3),vt=it[0],nt=it[1],Je=it[2];m__namespace.useImperativeHandle(t,function(){var gt,De;return {focus:(gt=We.current)===null||gt===void 0?void 0:gt.focus,blur:(De=We.current)===null||De===void 0?void 0:De.blur,scrollTo:function(Ct){var wt;return (wt=Pe.current)===null||wt===void 0?void 0:wt.scrollTo(Ct)}}});var yt=m__namespace.useMemo(function(){var gt;if(b!=="combobox")return O;var De=(gt=d[0])===null||gt===void 0?void 0:gt.value;return typeof De=="string"||typeof De=="number"?String(De):""},[O,b,d]),$t=b==="combobox"&&typeof $=="function"&&$()||null,ct=typeof w=="function"&&w(),pt=Sa(Qe,ct==null||(n=ct.props)===null||n===void 0?void 0:n.ref),xt=m__namespace.useState(!1),Oe=Z(xt,2),Re=Oe[0],Ne=Oe[1];Kt(function(){Ne(!0);},[]);var ge=Ut(!1,{defaultValue:S,value:E}),Fe=Z(ge,2),xe=Fe[0],de=Fe[1],ae=Re?xe:!1,be=!v&&h;(y||be&&ae&&b==="combobox")&&(ae=!1);var Se=be?!1:ae,we=m__namespace.useCallback(function(gt){var De=gt!==void 0?gt:!ae;y||(de(De),ae!==De&&(x==null||x(De)));},[y,ae,de,x]),qe=m__namespace.useMemo(function(){return (T||[]).some(function(gt){return [`
`,`\r
`].includes(gt)})},[T]),Ye=function(De,at,Ct){var wt=!0,kt=De;P==null||P(null);var Jt=Ct?null:RJ(De,T);return b!=="combobox"&&Jt&&(kt="",L==null||L(Jt),we(!1),wt=!1),A&&yt!==kt&&A(kt,{source:at?"typing":"effect"}),wt},ke=function(De){!De||!De.trim()||A(De,{source:"submit"});};m__namespace.useEffect(function(){!ae&&!ne&&b!=="combobox"&&Ye("",!1,!1);},[ae]),m__namespace.useEffect(function(){xe&&y&&de(!1),y&&!Ce.current&&nt(!1);},[y]);var Be=IE(),rt=Z(Be,2),ft=rt[0],st=rt[1],Le=function(De){var at=ft(),Ct=De.which;if(Ct===ue.ENTER&&(b!=="combobox"&&De.preventDefault(),ae||we(!0)),st(!!yt),Ct===ue.BACKSPACE&&!at&&ne&&!yt&&d.length){for(var wt=Te(d),kt=null,Jt=wt.length-1;Jt>=0;Jt-=1){var Hn=wt[Jt];if(!Hn.disabled){wt.splice(Jt,1),kt=Hn;break}}kt&&f(wt,{type:"remove",values:[kt]});}for(var Yn=arguments.length,Or=new Array(Yn>1?Yn-1:0),vr=1;vr<Yn;vr++)Or[vr-1]=arguments[vr];if(ae&&Pe.current){var Oa;(Oa=Pe.current).onKeyDown.apply(Oa,[De].concat(Or));}ee==null||ee.apply(void 0,[De].concat(Or));},Ee=function(De){for(var at=arguments.length,Ct=new Array(at>1?at-1:0),wt=1;wt<at;wt++)Ct[wt-1]=arguments[wt];if(ae&&Pe.current){var kt;(kt=Pe.current).onKeyUp.apply(kt,[De].concat(Ct));}fe==null||fe.apply(void 0,[De].concat(Ct));},ye=function(De){var at=d.filter(function(Ct){return Ct!==De});f(at,{type:"remove",values:[De]});},$e=m__namespace.useRef(!1),ze=function(){nt(!0),y||(J&&!$e.current&&J.apply(void 0,arguments),le.includes("focus")&&we(!0)),$e.current=!0;},ht=function(){Ce.current=!0,nt(!1,function(){$e.current=!1,Ce.current=!1,we(!1);}),!y&&(yt&&(b==="tags"?A(yt,{source:"submit"}):b==="multiple"&&A("",{source:"blur"})),re&&re.apply(void 0,arguments));},_t=[];m__namespace.useEffect(function(){return function(){_t.forEach(function(gt){return clearTimeout(gt)}),_t.splice(0,_t.length);}},[]);var Ot=function(De){var at,Ct=De.target,wt=(at=Xe.current)===null||at===void 0?void 0:at.getPopupElement();if(wt&&wt.contains(Ct)){var kt=setTimeout(function(){var Or=_t.indexOf(kt);if(Or!==-1&&_t.splice(Or,1),Je(),!Ve&&!wt.contains(document.activeElement)){var vr;(vr=We.current)===null||vr===void 0||vr.focus();}});_t.push(kt);}for(var Jt=arguments.length,Hn=new Array(Jt>1?Jt-1:0),Yn=1;Yn<Jt;Yn++)Hn[Yn-1]=arguments[Yn];ce==null||ce.apply(void 0,[De].concat(Hn));},dn=m__namespace.useState({}),sn=Z(dn,2),fn=sn[1];function jn(){fn({});}var Cn;ct&&(Cn=function(De){we(De);}),hJ(function(){var gt;return [Me.current,(gt=Xe.current)===null||gt===void 0?void 0:gt.getPopupElement()]},Se,we,!!ct);var Vr=m__namespace.useMemo(function(){return U(U({},e),{},{notFoundContent:v,open:ae,triggerOpen:Se,id:o,showSearch:oe,multiple:ne,toggleOpen:we})},[e,v,Se,ae,o,oe,ne,we]),ao=!!_||C,Bn;ao&&(Bn=m__namespace.createElement(sf,{className:G("".concat(a,"-arrow"),j({},"".concat(a,"-arrow-loading"),C)),customizeIcon:_,customizeIconProps:{loading:C,searchValue:yt,open:ae,focused:vt,showSearch:oe}}));var $o=function(){var De;p==null||p(),(De=We.current)===null||De===void 0||De.focus(),f([],{type:"clear",values:d}),Ye("",!1,!1);},Pr=dJ(a,$o,d,M,z,y,yt,b),er=Pr.allowClear,gr=Pr.clearIcon,Wr=m__namespace.createElement(F,{ref:Pe}),Gr=G(a,i,(r={},j(r,"".concat(a,"-focused"),vt),j(r,"".concat(a,"-multiple"),ne),j(r,"".concat(a,"-single"),!ne),j(r,"".concat(a,"-allow-clear"),M),j(r,"".concat(a,"-show-arrow"),ao),j(r,"".concat(a,"-disabled"),y),j(r,"".concat(a,"-loading"),C),j(r,"".concat(a,"-open"),ae),j(r,"".concat(a,"-customize-input"),$t),j(r,"".concat(a,"-show-search"),oe),r)),qn=m__namespace.createElement(RE,{ref:Xe,disabled:y,prefixCls:a,visible:Se,popupElement:Wr,animation:B,transitionName:H,dropdownStyle:V,dropdownClassName:K,direction:c,dropdownMatchSelectWidth:X,dropdownRender:q,dropdownAlign:te,placement:W,builtinPlacements:Q,getPopupContainer:Y,empty:h,getTriggerDOMNode:function(){return Qe.current},onPopupVisibleChange:Cn,onPopupMouseEnter:jn},ct?m__namespace.cloneElement(ct,{ref:pt}):m__namespace.createElement(ME,Ie({},e,{domRef:Qe,prefixCls:a,inputElement:$t,ref:We,id:o,showSearch:oe,autoClearSearchValue:N,mode:b,activeDescendantId:R,tagRender:l,values:d,open:ae,onToggleOpen:we,activeValue:I,searchValue:yt,onSearch:Ye,onSearchSubmit:ke,onRemove:ye,tokenWithEnter:qe}))),Kr;return ct?Kr=qn:Kr=m__namespace.createElement("div",Ie({className:Gr},me,{ref:Me,onMouseDown:Ot,onKeyDown:Le,onKeyUp:Ee,onFocus:ze,onBlur:ht}),vt&&!ae&&m__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map(function(gt){var De=gt.label,at=gt.value;return ["number","string"].includes(dt(De))?De:at}).join(", "))),qn,Bn,er&&gr),m__namespace.createElement(EE.Provider,{value:Vr},Kr)}),Ip=function(){return null};Ip.isSelectOptGroup=!0;var Pp=function(){return null};Pp.isSelectOption=!0;var _E=m__namespace.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,d={},f={display:"flex",flexDirection:"column"};if(r!==void 0){var h;d={height:n,position:"relative",overflow:"hidden"},f=U(U({},f),{},(h={transform:"translateY(".concat(r,"px)")},j(h,c?"marginRight":"marginLeft",-o),j(h,"position","absolute"),j(h,"left",0),j(h,"right",0),j(h,"top",0),h));}return m__namespace.createElement("div",{style:d},m__namespace.createElement(xr,{onResize:function(v){var p=v.offsetHeight;p&&s&&s();}},m__namespace.createElement("div",Ie({style:f,className:G(j({},"".concat(i,"-holder-inner"),i)),ref:t},l),a,u)))});_E.displayName="Filler";function T1(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var _1=m__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.rtl,a=e.scrollOffset,i=e.scrollRange,s=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,h=e.style,g=e.thumbStyle,v=m__namespace.useState(!1),p=Z(v,2),b=p[0],y=p[1],C=m__namespace.useState(null),$=Z(C,2),w=$[0],E=$[1],S=m__namespace.useState(null),x=Z(S,2),I=x[0],P=x[1],R=!o,O=m__namespace.useRef(),N=m__namespace.useRef(),A=m__namespace.useState(!1),L=Z(A,2),T=L[0],M=L[1],_=m__namespace.useRef(),z=function(){clearTimeout(_.current),M(!0),_.current=setTimeout(function(){M(!1);},3e3);},F=i-f||0,B=f-d||0,H=F>0,V=m__namespace.useMemo(function(){if(a===0||F===0)return 0;var le=a/F;return le*B},[a,F,B]),K=function(J){J.stopPropagation(),J.preventDefault();},X=m__namespace.useRef({top:V,dragging:b,pageY:w,startTop:I});X.current={top:V,dragging:b,pageY:w,startTop:I};var q=function(J){y(!0),E(T1(J,u)),P(X.current.top),s(),J.stopPropagation(),J.preventDefault();};m__namespace.useEffect(function(){var le=function(ee){ee.preventDefault();},J=O.current,re=N.current;return J.addEventListener("touchstart",le),re.addEventListener("touchstart",q),function(){J.removeEventListener("touchstart",le),re.removeEventListener("touchstart",q);}},[]);var te=m__namespace.useRef();te.current=F;var W=m__namespace.useRef();W.current=B,m__namespace.useEffect(function(){if(b){var le,J=function(ee){var ce=X.current,he=ce.dragging,ne=ce.pageY,oe=ce.startTop;if(Pt.cancel(le),he){var me=T1(ee,u)-ne,pe=oe;!R&&u?pe-=me:pe+=me;var _e=te.current,Ve=W.current,He=Ve?pe/Ve:0,Me=Math.ceil(He*_e);Me=Math.max(Me,0),Me=Math.min(Me,_e),le=Pt(function(){c(Me,u);});}},re=function(){y(!1),l();};return window.addEventListener("mousemove",J),window.addEventListener("touchmove",J),window.addEventListener("mouseup",re),window.addEventListener("touchend",re),function(){window.removeEventListener("mousemove",J),window.removeEventListener("touchmove",J),window.removeEventListener("mouseup",re),window.removeEventListener("touchend",re),Pt.cancel(le);}}},[b]),m__namespace.useEffect(function(){z();},[a]),m__namespace.useImperativeHandle(t,function(){return {delayHidden:z}});var Q="".concat(r,"-scrollbar"),Y={position:"absolute",visibility:T&&H?null:"hidden"},ie={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,ie.height="100%",ie.width=d,R?ie.left=V:ie.right=V):(Y.width=8,Y.top=0,Y.bottom=0,R?Y.right=0:Y.left=0,ie.width="100%",ie.height=d,ie.top=V),m__namespace.createElement("div",{ref:O,className:G(Q,(n={},j(n,"".concat(Q,"-horizontal"),u),j(n,"".concat(Q,"-vertical"),!u),j(n,"".concat(Q,"-visible"),T),n)),style:U(U({},Y),h),onMouseDown:K,onMouseMove:z},m__namespace.createElement("div",{ref:N,className:G("".concat(Q,"-thumb"),j({},"".concat(Q,"-thumb-moving"),b)),style:U(U({},ie),g),onMouseDown:q}))});function kJ(e){var t=e.children,n=e.setRef,r=m__namespace.useCallback(function(o){n(o);},[]);return m__namespace.cloneElement(t,{ref:r})}function AJ(e,t,n,r,o,a,i){var s=i.getKey;return e.slice(t,n+1).map(function(l,c){var u=t+c,d=a(l,u,{style:{width:r}}),f=s(l);return m__namespace.createElement(kJ,{key:f,setRef:function(g){return o(l,g)}},d)})}var LJ=function(){function e(){wn(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null);}return xn(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function DJ(e,t,n){var r=m__namespace.useState(0),o=Z(r,2),a=o[0],i=o[1],s=m.useRef(new Map),l=m.useRef(new LJ),c=m.useRef();function u(){Pt.cancel(c.current);}function d(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var g=function(){s.current.forEach(function(p,b){if(p&&p.offsetParent){var y=ws(p),C=y.offsetHeight;l.current.get(b)!==C&&l.current.set(b,y.offsetHeight);}}),i(function(p){return p+1});};h?g():c.current=Pt(g);}function f(h,g){var v=e(h),p=s.current.get(v);g?(s.current.set(v,g),d()):s.current.delete(v),!p!=!g&&(g?t==null||t(h):n==null||n(h));}return m.useEffect(function(){return u},[]),[f,d,l.current,a]}var FJ=10;function zJ(e,t,n,r,o,a,i,s){var l=m__namespace.useRef(),c=m__namespace.useState(null),u=Z(c,2),d=u[0],f=u[1];return Kt(function(){if(d&&d.times<FJ){if(!e.current){f(function(z){return U({},z)});return}a();var h=d.targetAlign,g=d.originAlign,v=d.index,p=d.offset,b=e.current.clientHeight,y=!1,C=h,$=null;if(b){for(var w=h||g,E=0,S=0,x=0,I=Math.min(t.length-1,v),P=0;P<=I;P+=1){var R=o(t[P]);S=E;var O=n.get(R);x=S+(O===void 0?r:O),E=x;}for(var N=w==="top"?p:b-p,A=I;A>=0;A-=1){var L=o(t[A]),T=n.get(L);if(T===void 0){y=!0;break}if(N-=T,N<=0)break}switch(w){case"top":$=S-p;break;case"bottom":$=x-b+p;break;default:{var M=e.current.scrollTop,_=M+b;S<M?C="top":x>_&&(C="bottom");}}$!==null&&i($),$!==d.lastTop&&(y=!0);}y&&f(function(z){return U(U({},z),{},{times:z.times+1,targetAlign:C,lastTop:$})});}},[d,e.current]),function(h){if(h==null){s();return}if(Pt.cancel(l.current),typeof h=="number")i(h);else if(h&&dt(h)==="object"){var g,v=h.align;"index"in h?g=h.index:g=t.findIndex(function(y){return o(y)===h.key});var p=h.offset,b=p===void 0?0:p;f({times:0,index:g,offset:b,originAlign:v});}}}function jJ(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var s={__EMPTY_ITEM__:!0};function l(g){return g!==void 0?n(g):s}for(var c=null,u=Math.abs(r-o)!==1,d=0;d<i.length;d+=1){var f=l(a[d]),h=l(i[d]);if(f!==h){c=d,u=u||f!==l(i[d+1]);break}}return c===null?null:{index:c,multiple:u}}function BJ(e,t,n){var r=m__namespace.useState(e),o=Z(r,2),a=o[0],i=o[1],s=m__namespace.useState(null),l=Z(s,2),c=l[0],u=l[1];return m__namespace.useEffect(function(){var d=jJ(a||[],e||[],t);(d==null?void 0:d.index)!==void 0&&(n==null||n(d.index),u(e[d.index])),i(e);},[e]),[c]}var N1=(typeof navigator>"u"?"undefined":dt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const NE=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 a=m.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=i<0&&a.current.top||i>0&&a.current.bottom;return s&&l?(clearTimeout(r.current),n.current=!1):(!l||n.current)&&o(),!n.current&&l}};function HJ(e,t,n,r,o){var a=m.useRef(0),i=m.useRef(null),s=m.useRef(null),l=m.useRef(!1),c=NE(t,n);function u(p,b){Pt.cancel(i.current),a.current+=b,s.current=b,!c(b)&&(N1||p.preventDefault(),i.current=Pt(function(){var y=l.current?10:1;o(a.current*y),a.current=0;}));}function d(p,b){o(b,!0),N1||p.preventDefault();}var f=m.useRef(null),h=m.useRef(null);function g(p){if(e){Pt.cancel(h.current),h.current=Pt(function(){f.current=null;},2);var b=p.deltaX,y=p.deltaY,C=p.shiftKey,$=b,w=y;(f.current==="sx"||!f.current&&C&&y&&!b)&&($=y,w=0,f.current="sx");var E=Math.abs($),S=Math.abs(w);f.current===null&&(f.current=r&&E>S?"x":"y"),f.current==="y"?u(p,w):d(p,$);}}function v(p){e&&(l.current=p.detail===s.current);}return [g,v]}var VJ=14/15;function WJ(e,t,n){var r=m.useRef(!1),o=m.useRef(0),a=m.useRef(null),i=m.useRef(null),s,l=function(f){if(r.current){var h=Math.ceil(f.touches[0].pageY),g=o.current-h;o.current=h,n(g)&&f.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){g*=VJ,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(i.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),a.current=f.target,a.current.addEventListener("touchmove",l),a.current.addEventListener("touchend",c));};s=function(){a.current&&(a.current.removeEventListener("touchmove",l),a.current.removeEventListener("touchend",c));},Kt(function(){return e&&t.current.addEventListener("touchstart",u),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),s(),clearInterval(i.current);}},[e]);}var GJ=20;function k1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),n=Math.max(n,GJ),n=Math.min(n,e/2),Math.floor(n)}function KJ(e,t,n,r){var o=m__namespace.useMemo(function(){return [new Map,[]]},[e,n.id,r]),a=Z(o,2),i=a[0],s=a[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=i.get(u),h=i.get(d);if(f===void 0||h===void 0)for(var g=e.length,v=s.length;v<g;v+=1){var p,b=e[v],y=t(b);i.set(y,v);var C=(p=n.get(y))!==null&&p!==void 0?p:r;if(s[v]=(s[v-1]||0)+C,y===u&&(f=v),y===d&&(h=v),f!==void 0&&h!==void 0)break}return {top:s[f-1]||0,bottom:s[h]}};return l}var UJ=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],XJ=[],qJ={overflowY:"auto",overflowAnchor:"none"};function YJ(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=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,g=e.direction,v=e.scrollWidth,p=e.component,b=p===void 0?"div":p,y=e.onScroll,C=e.onVirtualScroll,$=e.onVisibleChange,w=e.innerProps,E=e.extraRender,S=e.styles,x=et(e,UJ),I=!!(h!==!1&&a&&i),P=I&&u&&(i*u.length>a||!!v),R=g==="rtl",O=G(r,j({},"".concat(r,"-rtl"),R),o),N=u||XJ,A=m.useRef(),L=m.useRef(),T=m.useState(0),M=Z(T,2),_=M[0],z=M[1],F=m.useState(0),B=Z(F,2),H=B[0],V=B[1],K=m.useState(!1),X=Z(K,2),q=X[0],te=X[1],W=function(){te(!0);},Q=function(){te(!1);},Y=m__namespace.useCallback(function(ye){return typeof f=="function"?f(ye):ye==null?void 0:ye[f]},[f]),ie={getKey:Y};function le(ye){z(function($e){var ze;typeof ye=="function"?ze=ye($e):ze=ye;var ht=pt(ze);return A.current.scrollTop=ht,ht});}var J=m.useRef({start:0,end:N.length}),re=m.useRef(),fe=BJ(N,Y),ee=Z(fe,1),ce=ee[0];re.current=ce;var he=DJ(Y,null,null),ne=Z(he,4),oe=ne[0],me=ne[1],pe=ne[2],_e=ne[3],Ve=m__namespace.useMemo(function(){if(!I)return {scrollHeight:void 0,start:0,end:N.length-1,offset:void 0};if(!P){var ye;return {scrollHeight:((ye=L.current)===null||ye===void 0?void 0:ye.offsetHeight)||0,start:0,end:N.length-1,offset:void 0}}for(var $e=0,ze,ht,_t,Ot=N.length,dn=0;dn<Ot;dn+=1){var sn=N[dn],fn=Y(sn),jn=pe.get(fn),Cn=$e+(jn===void 0?i:jn);Cn>=_&&ze===void 0&&(ze=dn,ht=$e),Cn>_+a&&_t===void 0&&(_t=dn),$e=Cn;}return ze===void 0&&(ze=0,ht=0,_t=Math.ceil(a/i)),_t===void 0&&(_t=N.length-1),_t=Math.min(_t+1,N.length-1),{scrollHeight:$e,start:ze,end:_t,offset:ht}},[P,I,_,N,_e,a]),He=Ve.scrollHeight,Me=Ve.start,Qe=Ve.end,Xe=Ve.offset;J.current.start=Me,J.current.end=Qe;var We=m__namespace.useState({width:0,height:a}),Pe=Z(We,2),Ce=Pe[0],je=Pe[1],it=function($e){je($e);},vt=m.useRef(),nt=m.useRef(),Je=m__namespace.useMemo(function(){return k1(Ce.width,v)},[Ce.width,v]),yt=m__namespace.useMemo(function(){return k1(Ce.height,He)},[Ce.height,He]),$t=He-a,ct=m.useRef($t);ct.current=$t;function pt(ye){var $e=ye;return Number.isNaN(ct.current)||($e=Math.min($e,ct.current)),$e=Math.max($e,0),$e}var xt=_<=0,Oe=_>=$t,Re=NE(xt,Oe),Ne=function(){return {x:R?-H:H,y:_}},ge=m.useRef(Ne()),Fe=Nn(function(){if(C){var ye=Ne();(ge.current.x!==ye.x||ge.current.y!==ye.y)&&(C(ye),ge.current=ye);}});function xe(ye,$e){var ze=ye;$e?(IC.flushSync(function(){V(ze);}),Fe()):le(ze);}function de(ye){var $e=ye.currentTarget.scrollTop;$e!==_&&le($e),y==null||y(ye),Fe();}var ae=function($e){var ze=$e,ht=v-Ce.width;return ze=Math.max(ze,0),ze=Math.min(ze,ht),ze},be=Nn(function(ye,$e){$e?(IC.flushSync(function(){V(function(ze){var ht=ze+(R?-ye:ye);return ae(ht)});}),Fe()):le(function(ze){var ht=ze+ye;return ht});}),Se=HJ(I,xt,Oe,!!v,be),we=Z(Se,2),qe=we[0],Ye=we[1];WJ(I,A,function(ye,$e){return Re(ye,$e)?!1:(qe({preventDefault:function(){},deltaY:ye}),!0)}),Kt(function(){function ye(ze){I&&ze.preventDefault();}var $e=A.current;return $e.addEventListener("wheel",qe),$e.addEventListener("DOMMouseScroll",Ye),$e.addEventListener("MozMousePixelScroll",ye),function(){$e.removeEventListener("wheel",qe),$e.removeEventListener("DOMMouseScroll",Ye),$e.removeEventListener("MozMousePixelScroll",ye);}},[I]),Kt(function(){v&&V(function(ye){return ae(ye)});},[Ce.width,v]);var ke=function(){var $e,ze;($e=vt.current)===null||$e===void 0||$e.delayHidden(),(ze=nt.current)===null||ze===void 0||ze.delayHidden();},Be=zJ(A,N,pe,i,Y,function(){return me(!0)},le,ke);m__namespace.useImperativeHandle(t,function(){return {getScrollInfo:Ne,scrollTo:function($e){function ze(ht){return ht&&dt(ht)==="object"&&("left"in ht||"top"in ht)}ze($e)?($e.left!==void 0&&V(ae($e.left)),Be($e.top)):Be($e);}}}),Kt(function(){if($){var ye=N.slice(Me,Qe+1);$(ye,N);}},[Me,Qe,N]);var rt=KJ(N,Y,pe,i),ft=E==null?void 0:E({start:Me,end:Qe,virtual:P,offsetX:H,offsetY:Xe,rtl:R,getSize:rt}),st=AJ(N,Me,Qe,v,oe,d,ie),Le=null;a&&(Le=U(j({},l?"height":"maxHeight",a),qJ),I&&(Le.overflowY="hidden",v&&(Le.overflowX="hidden"),q&&(Le.pointerEvents="none")));var Ee={};return R&&(Ee.dir="rtl"),m__namespace.createElement("div",Ie({style:U(U({},c),{},{position:"relative"}),className:O},Ee,x),m__namespace.createElement(xr,{onResize:it},m__namespace.createElement(b,{className:"".concat(r,"-holder"),style:Le,ref:A,onScroll:de,onMouseEnter:ke},m__namespace.createElement(_E,{prefixCls:r,height:He,offsetX:H,offsetY:Xe,scrollWidth:v,onInnerResize:me,ref:L,innerProps:w,rtl:R,extra:ft},st))),P&&He>a&&m__namespace.createElement(_1,{ref:vt,prefixCls:r,scrollOffset:_,scrollRange:He,rtl:R,onScroll:xe,onStartMove:W,onStopMove:Q,spinSize:yt,containerSize:Ce.height,style:S==null?void 0:S.verticalScrollBar,thumbStyle:S==null?void 0:S.verticalScrollBarThumb}),P&&v&&m__namespace.createElement(_1,{ref:nt,prefixCls:r,scrollOffset:H,scrollRange:v,rtl:R,onScroll:xe,onStartMove:W,onStopMove:Q,spinSize:Je,containerSize:Ce.width,horizontal:!0,style:S==null?void 0:S.horizontalScrollBar,thumbStyle:S==null?void 0:S.horizontalScrollBarThumb}))}var kE=m__namespace.forwardRef(YJ);kE.displayName="List";var AE=m__namespace.createContext(null);function ZJ(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var QJ=["disabled","title","children","style","className"];function A1(e){return typeof e=="string"||typeof e=="number"}var JJ=function(t,n){var r=fJ(),o=r.prefixCls,a=r.id,i=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,h=m__namespace.useContext(AE),g=h.flattenOptions,v=h.onActiveValue,p=h.defaultActiveFirstOption,b=h.onSelect,y=h.menuItemSelectedIcon,C=h.rawValues,$=h.fieldNames,w=h.virtual,E=h.direction,S=h.listHeight,x=h.listItemHeight,I=h.optionRender,P="".concat(o,"-item"),R=hl(function(){return g},[i,g],function(W,Q){return Q[0]&&W[1]!==Q[1]}),O=m__namespace.useRef(null),N=function(Q){Q.preventDefault();},A=function(Q){O.current&&O.current.scrollTo(typeof Q=="number"?{index:Q}:Q);},L=function(Q){for(var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ie=R.length,le=0;le<ie;le+=1){var J=(Q+le*Y+ie)%ie,re=R[J],fe=re.group,ee=re.data;if(!fe&&!ee.disabled)return J}return -1},T=m__namespace.useState(function(){return L(0)}),M=Z(T,2),_=M[0],z=M[1],F=function(Q){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;z(Q);var ie={source:Y?"keyboard":"mouse"},le=R[Q];if(!le){v(null,-1,ie);return}v(le.value,Q,ie);};m.useEffect(function(){F(p!==!1?L(0):-1);},[R.length,c]);var B=m__namespace.useCallback(function(W){return C.has(W)&&l!=="combobox"},[l,Te(C).toString(),C.size]);m.useEffect(function(){var W=setTimeout(function(){if(!s&&i&&C.size===1){var Y=Array.from(C)[0],ie=R.findIndex(function(le){var J=le.data;return J.value===Y});ie!==-1&&(F(ie),A(ie));}});if(i){var Q;(Q=O.current)===null||Q===void 0||Q.scrollTo(void 0);}return function(){return clearTimeout(W)}},[i,c]);var H=function(Q){Q!==void 0&&b(Q,{selected:!C.has(Q)}),s||u(!1);};if(m__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(Q){var Y=Q.which,ie=Q.ctrlKey;switch(Y){case ue.N:case ue.P:case ue.UP:case ue.DOWN:{var le=0;if(Y===ue.UP?le=-1:Y===ue.DOWN?le=1:ZJ()&&ie&&(Y===ue.N?le=1:Y===ue.P&&(le=-1)),le!==0){var J=L(_+le,le);A(J),F(J,!0);}break}case ue.ENTER:{var re=R[_];re&&!re.data.disabled?H(re.value):H(void 0),i&&Q.preventDefault();break}case ue.ESC:u(!1),i&&Q.stopPropagation();}},onKeyUp:function(){},scrollTo:function(Q){A(Q);}}}),R.length===0)return m__namespace.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(P,"-empty"),onMouseDown:N},d);var V=Object.keys($).map(function(W){return $[W]}),K=function(Q){return Q.label};function X(W,Q){var Y=W.group;return {role:Y?"presentation":"option",id:"".concat(a,"_list_").concat(Q)}}var q=function(Q){var Y=R[Q];if(!Y)return null;var ie=Y.data||{},le=ie.value,J=Y.group,re=xi(ie,!0),fe=K(Y);return Y?m__namespace.createElement("div",Ie({"aria-label":typeof fe=="string"&&!J?fe:null},re,{key:Q},X(Y,Q),{"aria-selected":B(le)}),le):null},te={role:"listbox",id:"".concat(a,"_list")};return m__namespace.createElement(m__namespace.Fragment,null,w&&m__namespace.createElement("div",Ie({},te,{style:{height:0,width:0,overflow:"hidden"}}),q(_-1),q(_),q(_+1)),m__namespace.createElement(kE,{itemKey:"key",ref:O,data:R,height:S,itemHeight:x,fullHeight:!1,onMouseDown:N,onScroll:f,virtual:w,direction:E,innerProps:w?null:te},function(W,Q){var Y,ie=W.group,le=W.groupOption,J=W.data,re=W.label,fe=W.value,ee=J.key;if(ie){var ce,he=(ce=J.title)!==null&&ce!==void 0?ce:A1(re)?re.toString():void 0;return m__namespace.createElement("div",{className:G(P,"".concat(P,"-group")),title:he},re!==void 0?re:ee)}var ne=J.disabled,oe=J.title;J.children;var me=J.style,pe=J.className,_e=et(J,QJ),Ve=zn(_e,V),He=B(fe),Me="".concat(P,"-option"),Qe=G(P,Me,pe,(Y={},j(Y,"".concat(Me,"-grouped"),le),j(Y,"".concat(Me,"-active"),_===Q&&!ne),j(Y,"".concat(Me,"-disabled"),ne),j(Y,"".concat(Me,"-selected"),He),Y)),Xe=K(W),We=!y||typeof y=="function"||He,Pe=typeof Xe=="number"?Xe:Xe||fe,Ce=A1(Pe)?Pe.toString():void 0;return oe!==void 0&&(Ce=oe),m__namespace.createElement("div",Ie({},xi(Ve),w?{}:X(W,Q),{"aria-selected":He,className:Qe,title:Ce,onMouseMove:function(){_===Q||ne||F(Q);},onClick:function(){ne||H(fe);},style:me}),m__namespace.createElement("div",{className:"".concat(Me,"-content")},typeof I=="function"?I(W,{index:Q}):Pe),m__namespace.isValidElement(y)||He,We&&m__namespace.createElement(sf,{className:"".concat(P,"-option-state"),customizeIcon:y,customizeIconProps:{value:fe,disabled:ne,isSelected:He}},He?"✓":null))}))},LE=m__namespace.forwardRef(JJ);LE.displayName="OptionList";const eee=function(e,t){var n=m__namespace.useRef({values:new Map,options:new Map}),r=m__namespace.useMemo(function(){var a=n.current,i=a.values,s=a.options,l=e.map(function(d){if(d.label===void 0){var f;return U(U({},d),{},{label:(f=i.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(a){return t.get(a)||n.current.options.get(a)},[t]);return [r,o]};function fm(e,t){return PE(e).join("").toUpperCase().includes(t)}const tee=function(e,t,n,r,o){return m__namespace.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(h,g){return o?fm(g[o],u):g[a]?fm(g[i!=="children"?i:"label"],u):fm(g[s],u)},f=c?function(h){return og(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var g=d(n,f(h));if(g)l.push(h);else {var v=h[a].filter(function(p){return d(n,f(p))});v.length&&l.push(U(U({},h),{},j({},a,v)));}return}d(n,f(h))&&l.push(h);}),l},[e,r,o,n,t])};var L1=0,nee=Gn();function ree(){var e;return nee?(e=L1,L1+=1):e="TEST_OR_SSR",e}function oee(e){var t=m__namespace.useState(),n=Z(t,2),r=n[0],o=n[1];return m__namespace.useEffect(function(){o("rc_select_".concat(ree()));},[]),e||r}var aee=["children","value"],iee=["children"];function see(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=et(r,aee);return U({key:n,value:a!==void 0?a:n,children:o},i)}function DE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return dr(e).map(function(n,r){if(!m__namespace.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,l=s.children,c=et(s,iee);return t||!a?see(n):U(U({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:DE(l)})}).filter(function(n){return n})}function lee(e,t,n,r,o){return m__namespace.useMemo(function(){var a=e,i=!e;i&&(a=DE(t));var s=new Map,l=new Map,c=function(f,h,g){g&&typeof g=="string"&&f.set(h[g],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 g=d[h];!g[n.options]||f?(s.set(g[n.value],g),c(l,g,n.label),c(l,g,r),c(l,g,o)):u(g[n.options],!0);}}return u(a),{options:a,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function D1(e){var t=m__namespace.useRef();t.current=e;var n=m__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var cee=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],uee=["inputValue"];function dee(e){return !e||dt(e)!=="object"}var fee=m__namespace.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=d===void 0?!0:d,h=e.onSelect,g=e.onDeselect,v=e.dropdownMatchSelectWidth,p=v===void 0?!0:v,b=e.filterOption,y=e.filterSort,C=e.optionFilterProp,$=e.optionLabelProp,w=e.options,E=e.optionRender,S=e.children,x=e.defaultActiveFirstOption,I=e.menuItemSelectedIcon,P=e.virtual,R=e.direction,O=e.listHeight,N=O===void 0?200:O,A=e.listItemHeight,L=A===void 0?20:A,T=e.value,M=e.defaultValue,_=e.labelInValue,z=e.onChange,F=et(e,cee),B=oee(n),H=ag(r),V=!!(!w&&S),K=m__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),X=m__namespace.useMemo(function(){return TE(s,V)},[JSON.stringify(s),V]),q=Ut("",{value:c!==void 0?c:l,postState:function(be){return be||""}}),te=Z(q,2),W=te[0],Q=te[1],Y=lee(w,S,X,C,$),ie=Y.valueOptions,le=Y.labelOptions,J=Y.options,re=m__namespace.useCallback(function(ae){var be=PE(ae);return be.map(function(Se){var we,qe,Ye,ke,Be;if(dee(Se))we=Se;else {var rt;Ye=Se.key,qe=Se.label,we=(rt=Se.value)!==null&&rt!==void 0?rt:Ye;}var ft=ie.get(we);if(ft){var st;qe===void 0&&(qe=ft==null?void 0:ft[$||X.label]),Ye===void 0&&(Ye=(st=ft==null?void 0:ft.key)!==null&&st!==void 0?st:we),ke=ft==null?void 0:ft.disabled,Be=ft==null?void 0:ft.title;}return {label:qe,value:we,key:Ye,disabled:ke,title:Be}})},[X,$,ie]),fe=Ut(M,{value:T}),ee=Z(fe,2),ce=ee[0],he=ee[1],ne=m__namespace.useMemo(function(){var ae,be=re(ce);return r==="combobox"&&yJ((ae=be[0])===null||ae===void 0?void 0:ae.value)?[]:be},[ce,re,r]),oe=eee(ne,ie),me=Z(oe,2),pe=me[0],_e=me[1],Ve=m__namespace.useMemo(function(){if(!r&&pe.length===1){var ae=pe[0];if(ae.value===null&&(ae.label===null||ae.label===void 0))return []}return pe.map(function(be){var Se;return U(U({},be),{},{label:(Se=be.label)!==null&&Se!==void 0?Se:be.value})})},[r,pe]),He=m__namespace.useMemo(function(){return new Set(pe.map(function(ae){return ae.value}))},[pe]);m__namespace.useEffect(function(){if(r==="combobox"){var ae,be=(ae=pe[0])===null||ae===void 0?void 0:ae.value;Q(bJ(be)?String(be):"");}},[pe]);var Me=D1(function(ae,be){var Se,we=be??ae;return Se={},j(Se,X.value,ae),j(Se,X.label,we),Se}),Qe=m__namespace.useMemo(function(){if(r!=="tags")return J;var ae=Te(J),be=function(we){return ie.has(we)};return Te(pe).sort(function(Se,we){return Se.value<we.value?-1:1}).forEach(function(Se){var we=Se.value;be(we)||ae.push(Me(we,Se.label));}),ae},[Me,J,ie,pe,r]),Xe=tee(Qe,X,W,K,C),We=m__namespace.useMemo(function(){return r!=="tags"||!W||Xe.some(function(ae){return ae[C||"value"]===W})||Xe.some(function(ae){return ae[X.value]===W})?Xe:[Me(W)].concat(Te(Xe))},[Me,C,r,Xe,W,X]),Pe=m__namespace.useMemo(function(){return y?Te(We).sort(function(ae,be){return y(ae,be)}):We},[We,y]),Ce=m__namespace.useMemo(function(){return MJ(Pe,{fieldNames:X,childrenAsData:V})},[Pe,X,V]),je=function(be){var Se=re(be);if(he(Se),z&&(Se.length!==pe.length||Se.some(function(Ye,ke){var Be;return ((Be=pe[ke])===null||Be===void 0?void 0:Be.value)!==(Ye==null?void 0:Ye.value)}))){var we=_?Se:Se.map(function(Ye){return Ye.value}),qe=Se.map(function(Ye){return og(_e(Ye.value))});z(H?we:we[0],H?qe:qe[0]);}},it=m__namespace.useState(null),vt=Z(it,2),nt=vt[0],Je=vt[1],yt=m__namespace.useState(0),$t=Z(yt,2),ct=$t[0],pt=$t[1],xt=x!==void 0?x:r!=="combobox",Oe=m__namespace.useCallback(function(ae,be){var Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},we=Se.source,qe=we===void 0?"keyboard":we;pt(be),i&&r==="combobox"&&ae!==null&&qe==="keyboard"&&Je(String(ae));},[i,r]),Re=function(be,Se,we){var qe=function(){var $e,ze=_e(be);return [_?{label:ze==null?void 0:ze[X.label],value:be,key:($e=ze==null?void 0:ze.key)!==null&&$e!==void 0?$e:be}:be,og(ze)]};if(Se&&h){var Ye=qe(),ke=Z(Ye,2),Be=ke[0],rt=ke[1];h(Be,rt);}else if(!Se&&g&&we!=="clear"){var ft=qe(),st=Z(ft,2),Le=st[0],Ee=st[1];g(Le,Ee);}},Ne=D1(function(ae,be){var Se,we=H?be.selected:!0;we?Se=H?[].concat(Te(pe),[ae]):[ae]:Se=pe.filter(function(qe){return qe.value!==ae}),je(Se),Re(ae,we),r==="combobox"?Je(""):(!ag||f)&&(Q(""),Je(""));}),ge=function(be,Se){je(be);var we=Se.type,qe=Se.values;(we==="remove"||we==="clear")&&qe.forEach(function(Ye){Re(Ye.value,!1,we);});},Fe=function(be,Se){if(Q(be),Je(null),Se.source==="submit"){var we=(be||"").trim();if(we){var qe=Array.from(new Set([].concat(Te(He),[we])));je(qe),Re(we,!0),Q("");}return}Se.source!=="blur"&&(r==="combobox"&&je(be),u==null||u(be));},xe=function(be){var Se=be;r!=="tags"&&(Se=be.map(function(qe){var Ye=le.get(qe);return Ye==null?void 0:Ye.value}).filter(function(qe){return qe!==void 0}));var we=Array.from(new Set([].concat(Te(He),Te(Se))));je(we),we.forEach(function(qe){Re(qe,!0);});},de=m__namespace.useMemo(function(){var ae=P!==!1&&p!==!1;return U(U({},Y),{},{flattenOptions:Ce,onActiveValue:Oe,defaultActiveFirstOption:xt,onSelect:Ne,menuItemSelectedIcon:I,rawValues:He,fieldNames:X,virtual:ae,direction:R,listHeight:N,listItemHeight:L,childrenAsData:V,optionRender:E})},[Y,Ce,Oe,xt,Ne,I,He,X,P,p,N,L,V,E]);return m__namespace.createElement(AE.Provider,{value:de},m__namespace.createElement(NJ,Ie({},F,{id:B,prefixCls:a,ref:t,omitDomProps:uee,mode:r,displayValues:Ve,onDisplayValuesChange:ge,direction:R,searchValue:W,onSearch:Fe,autoClearSearchValue:f,onSearchSplit:xe,dropdownMatchSelectWidth:p,OptionList:LE,emptyOptions:!Ce.length,activeValue:nt,activeDescendantId:"".concat(B,"_list_").concat(ct)})))}),Op=fee;Op.Option=Pp;Op.OptGroup=Ip;const mee=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return {position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},hee=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},zt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
          ${o}${s}bottomLeft,
          ${a}${s}bottomLeft
        `]:{animationName:Pv},[`
          ${o}${s}topLeft,
          ${a}${s}topLeft,
          ${o}${s}topRight,
          ${a}${s}topRight
        `]:{animationName:Mv},[`${i}${s}bottomLeft`]:{animationName:Ov},[`
          ${i}${s}topLeft,
          ${i}${s}topRight
        `]:{animationName:Rv},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},mee(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"},ma),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Do(e,"slide-up"),Do(e,"slide-down"),ru(e,"move-up"),ru(e,"move-down")]},gee=hee,Va=2,FE=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,a=Math.ceil(o/2);return [o,a]};function mm(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[i]=FE(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",height:"100%",padding:`${i-Va}px ${Va*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Va}px 0`,lineHeight:`${a}px`,visibility:"hidden",content:'"\\a0"'}},[`
        &${n}-show-arrow ${n}-selector,
        &${n}-allow-clear ${n}-selector
      `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:Va,marginBottom:Va,lineHeight:`${a-e.lineWidth*2}px`,background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:Va*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},$a()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n          &-input,\n          &-mirror\n        ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}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 vee=e=>{const{componentCls:t}=e,n=St(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=St(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=FE(e);return [mm(e),mm(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},mm(r,"lg")]},pee=vee;function hm(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.controlHeight-e.lineWidth*2,i=Math.ceil(e.fontSize*1.25),s=t?`${n}-${t}`:"";return {[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},zt(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
          ${n}-selection-item,
          ${n}-selection-placeholder
        `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
        &${n}-show-arrow ${n}-selection-item,
        &${n}-show-arrow ${n}-selection-placeholder
      `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}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 bee(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [hm(e),hm(St(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}}}},hm(St(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const yee=e=>{const{componentCls:t,selectorBg:n}=e;return {position:"relative",backgroundColor:n,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",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},gm=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,antCls:a,borderActiveColor:i,outlineColor:s,controlOutlineWidth:l}=t,c=n?{[`${r}-selector`]:{borderColor:i}}:{};return {[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},c),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${l}px ${s}`,outline:0}})}}},Cee=e=>{const{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},See=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return {[n]:Object.assign(Object.assign({},zt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},yee(e)),Cee(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ma),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ma),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},$a()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXS}}}},$ee=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%"}}},See(e),bee(e),pee(e),gee(e),{[`${t}-rtl`]:{direction:"rtl"}},gm(t,St(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),gm(`${t}-status-error`,St(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),gm(`${t}-status-warning`,St(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),of(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},wee=Wt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=St(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [$ee(r)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:h,colorBgContainerDisabled:g,colorTextDisabled:v}=e;return {zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:h,multipleItemHeightLG:r,multipleSelectorBgDisabled:g,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent"}}),xee=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return {bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function Eee(e,t){return e||xee(t)}var Iee={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 Pee=Iee;var Oee=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:Pee}))};const Mee=m__namespace.forwardRef(Oee);var Ree={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 Tee=Ree;var _ee=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:Tee}))};const Mp=m__namespace.forwardRef(_ee);var Nee={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 kee=Nee;var Aee=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:kee}))};const Rp=m__namespace.forwardRef(Aee);function Lee(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;const h=n??m__namespace.createElement(Mp,null),g=y=>t===null&&!s&&!d?null:m__namespace.createElement(m__namespace.Fragment,null,c!==!1&&y,s&&u);let v=null;if(t!==void 0)v=g(t);else if(a)v=g(m__namespace.createElement(gp,{spin:!0}));else {const y=`${l}-suffix`;v=C=>{let{open:$,showSearch:w}=C;return g($&&w?m__namespace.createElement(Rp,{className:y}):m__namespace.createElement(xp,{className:y}))};}let p=null;r!==void 0?p=r:i?p=m__namespace.createElement(Mee,null):p=null;let b=null;return o!==void 0?b=o:b=m__namespace.createElement(af,null),{clearIcon:h,suffixIcon:v,itemIcon:p,removeIcon:b}}function Dee(e,t){return t!==void 0?t:e!==null}var Fee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const zE="SECRET_COMBOBOX_MODE_DO_NOT_USE",zee=(e,t)=>{var n,r,{prefixCls:o,bordered:a=!0,className:i,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:h=24,size:g,disabled:v,notFoundContent:p,status:b,builtinPlacements:y,dropdownMatchSelectWidth:C,popupMatchSelectWidth:$,direction:w,style:E,allowClear:S}=e,x=Fee(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:I,getPrefixCls:P,renderEmpty:R,direction:O,virtual:N,popupMatchSelectWidth:A,popupOverflow:L,select:T}=m__namespace.useContext(tt),M=P("select",o),_=P(),z=w??O,{compactSize:F,compactItemClassnames:B}=Gi(M,z),[H,V]=wee(M),K=m__namespace.useMemo(()=>{const{mode:Xe}=x;if(Xe!=="combobox")return Xe===zE?"combobox":Xe},[x.mode]),X=K==="multiple"||K==="tags",q=Dee(x.suffixIcon,x.showArrow),te=(n=$??C)!==null&&n!==void 0?n:A,{status:W,hasFeedback:Q,isFormItemInput:Y,feedbackIcon:ie}=m__namespace.useContext(Er),le=jl(W,b);let J;p!==void 0?J=p:K==="combobox"?J=null:J=(R==null?void 0:R("Select"))||m__namespace.createElement(wE,{componentName:"Select"});const{suffixIcon:re,itemIcon:fe,removeIcon:ee,clearIcon:ce}=Lee(Object.assign(Object.assign({},x),{multiple:X,hasFeedback:Q,feedbackIcon:ie,showSuffixIcon:q,prefixCls:M,showArrow:x.showArrow,componentName:"Select"})),he=S===!0?{clearIcon:ce}:S,ne=zn(x,["suffixIcon","itemIcon"]),oe=G(c||u,{[`${M}-dropdown-${z}`]:z==="rtl"},s,V),me=Jn(Xe=>{var We;return (We=g??F)!==null&&We!==void 0?We:Xe}),pe=m__namespace.useContext(Hr),_e=v??pe,Ve=G({[`${M}-lg`]:me==="large",[`${M}-sm`]:me==="small",[`${M}-rtl`]:z==="rtl",[`${M}-borderless`]:!a,[`${M}-in-form-item`]:Y},Fr(M,le,Q),B,T==null?void 0:T.className,i,s,V),He=m__namespace.useMemo(()=>f!==void 0?f:z==="rtl"?"bottomRight":"bottomLeft",[f,z]),Me=Eee(y,L),[Qe]=$d("SelectLike",(r=x.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return H(m__namespace.createElement(Op,Object.assign({ref:t,virtual:N,showSearch:T==null?void 0:T.showSearch},ne,{style:Object.assign(Object.assign({},T==null?void 0:T.style),E),dropdownMatchSelectWidth:te,builtinPlacements:Me,transitionName:wd(_,"slide-up",x.transitionName),listHeight:d,listItemHeight:h,mode:K,prefixCls:M,placement:He,direction:z,suffixIcon:re,menuItemSelectedIcon:fe,removeIcon:ee,allowClear:he,notFoundContent:J,className:Ve,getPopupContainer:l||I,dropdownClassName:oe,disabled:_e,dropdownStyle:Object.assign(Object.assign({},x==null?void 0:x.dropdownStyle),{zIndex:Qe})})))},Zi=m__namespace.forwardRef(zee),jee=ip(Zi);Zi.SECRET_COMBOBOX_MODE_DO_NOT_USE=zE;Zi.Option=Pp;Zi.OptGroup=Ip;Zi._InternalPanelDoNotUseOrYouWillBeFired=jee;const Bl=Zi,jE=e=>m__namespace.createElement(Bl,Object.assign({},e,{showSearch:!0,size:"small"})),BE=e=>m__namespace.createElement(Bl,Object.assign({},e,{showSearch:!0,size:"middle"}));jE.Option=Bl.Option;BE.Option=Bl.Option;const HE=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),VE=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ig=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),Tp=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},VE(St(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),WE=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:a}=e;return {padding:`${t}px ${a}px`,fontSize:n,lineHeight:r,borderRadius:o}},_p=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),lf=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:a,warningActiveShadow:i,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &:focus-within":Object.assign({},ig(St(e,{activeBorderColor:r,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &:focus-within":Object.assign({},ig(St(e,{activeBorderColor:o,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},Hl=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}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}`},HE(e.colorTextPlaceholder)),{"&:hover":Object.assign({},VE(e)),"&:focus, &:focus-within":Object.assign({},ig(e)),"&-disabled, &[disabled]":Object.assign({},Tp(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({},WE(e)),"&-sm":Object.assign({},_p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),GE=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({},WE(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},_p(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.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${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.paddingInline}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"},ch()),{[`${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}}}})}},Bee=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,a=(n-r*2-o)/2;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),Hl(e)),lf(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Hee=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`}}}},Vee=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Hl(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{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}}}),Hee(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),lf(e,`${t}-affix-wrapper`))}},Wee=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},zt(e)),GE(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:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},Tp(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}}}})}},Gee=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,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.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}}}}},Kee=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.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},Uee=e=>{const{componentCls:t}=e;return {[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function Np(e){return St(e,{inputAffixPadding:e.paddingXXS})}const kp=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:h,colorPrimary:g,controlOutlineWidth:v,controlOutline:p,colorErrorOutline:b,colorWarningOutline:y}=e;return {paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:g,hoverBorderColor:h,activeShadow:`0 0 0 ${v}px ${p}`,errorActiveShadow:`0 0 0 ${v}px ${b}`,warningActiveShadow:`0 0 0 ${v}px ${y}`,hoverBg:"",activeBg:""}},Ap=Wt("Input",e=>{const t=St(e,Np(e));return [Bee(t),Kee(t),Vee(t),Wee(t),Gee(t),Uee(t),of(t)]},kp),Xee=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"}}}}}},qee=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({},_p(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Yee=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"}}}}},Zee=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({},Hl(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Qee=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}}}}},Jee=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zt(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"}}),Qee(e)),Zee(e)),Yee(e)),qee(e)),Xee(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"}}},ete=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}}}}},tte=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ga(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ha(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},ha(e))}}}},nte=Wt("Pagination",e=>{const t=St(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"},Np(e),kp(e));return [Jee(t),tte(t),e.wireframe&&ete(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 rte=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 ote=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:a,size:i,locale:s,selectComponentClass:l,responsive:c,showSizeChanger:u}=e,d=rte(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=E2(c),{getPrefixCls:h,direction:g,pagination:v={}}=m__namespace.useContext(tt),p=h("pagination",t),[b,y]=nte(p),C=u??v.showSizeChanger,$=m__namespace.useMemo(()=>{const O=m__namespace.createElement("span",{className:`${p}-item-ellipsis`},"•••"),N=m__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?m__namespace.createElement(Pi,null):m__namespace.createElement(bu,null)),A=m__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?m__namespace.createElement(bu,null):m__namespace.createElement(Pi,null)),L=m__namespace.createElement("a",{className:`${p}-item-link`},m__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?m__namespace.createElement(I1,{className:`${p}-item-link-icon`}):m__namespace.createElement(E1,{className:`${p}-item-link-icon`}),O)),T=m__namespace.createElement("a",{className:`${p}-item-link`},m__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?m__namespace.createElement(E1,{className:`${p}-item-link-icon`}):m__namespace.createElement(I1,{className:`${p}-item-link-icon`}),O));return {prevIcon:N,nextIcon:A,jumpPrevIcon:L,jumpNextIcon:T}},[g,p]),[w]=Vi("Pagination",nw),E=Object.assign(Object.assign({},w),s),S=Jn(i),x=S==="small"||!!(f&&!S&&c),I=h("select",n),P=G({[`${p}-mini`]:x,[`${p}-rtl`]:g==="rtl"},v==null?void 0:v.className,r,o,y),R=Object.assign(Object.assign({},v==null?void 0:v.style),a);return b(m__namespace.createElement(xE,Object.assign({},$,d,{style:R,prefixCls:p,selectPrefixCls:I,className:P,selectComponentClass:l||(x?jE:BE),locale:E,showSizeChanger:C})))},ate=ote;var ite={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 ste=ite;var lte=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:ste}))};const cte=m__namespace.forwardRef(lte);var ute=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 dte={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},fte=m__namespace.forwardRef((e,t)=>{const n=c=>{const{keyCode:u}=c;u===ue.ENTER&&c.preventDefault();},r=c=>{const{keyCode:u}=c,{onClick:d}=e;u===ue.ENTER&&d&&d();},{style:o,noStyle:a,disabled:i}=e,s=ute(e,["style","noStyle","disabled"]);let l={};return a||(l=Object.assign({},dte)),i&&(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}))}),mte=fte,hte=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:a,prefixCls:i,onClick:s,onRemove:l,showRemove:c}=e,u=G(`${i}-content-item`,{[`${i}-content-item-disabled`]:a||r.disabled,[`${i}-content-item-checked`]:o});let d;(typeof t=="string"||typeof t=="number")&&(d=String(t));const[f]=Vi("Transfer",bo.Transfer),h={className:u,title:d},g=m__namespace.createElement("span",{className:`${i}-content-item-text`},n);return c?m__namespace.createElement("li",Object.assign({},h),g,m__namespace.createElement(mte,{disabled:a||r.disabled,className:`${i}-content-item-remove`,"aria-label":f==null?void 0:f.remove,onClick:()=>{l==null||l(r);}},m__namespace.createElement(cte,null))):(h.onClick=a||r.disabled?void 0:v=>s(r,v),m__namespace.createElement("li",Object.assign({},h),m__namespace.createElement(Yd,{className:`${i}-checkbox`,checked:o,disabled:a||r.disabled}),g))},gte=m__namespace.memo(hte),vte=["handleFilter","handleClear","checkedKeys"],pte=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),bte=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:a,showRemove:i,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[d,f]=m__namespace.useState(1),h=m__namespace.useMemo(()=>s?pte(typeof s=="object"?s:{}):null,[s]),[g,v]=Ut(10,{value:h==null?void 0:h.pageSize});m__namespace.useEffect(()=>{if(h){const S=Math.ceil(r.length/g);f(Math.min(d,S));}},[r,h,g]);const p=(S,x)=>{c(S.key,!o.includes(S.key),x);},b=S=>{u==null||u([S.key]);},y=S=>{f(S);},C=(S,x)=>{f(S),v(x);},$=m__namespace.useMemo(()=>h?r.slice((d-1)*g,d*g):r,[d,r,h,g]);m__namespace.useImperativeHandle(t,()=>({items:$}));const w=h?m__namespace.createElement(ate,{size:"small",disabled:a,simple:h.simple,pageSize:g,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:d,onChange:y,onShowSizeChange:C}):null,E=G(`${n}-content`,{[`${n}-content-show-remove`]:i});return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("ul",{className:E,onScroll:l},($||[]).map(S=>{let{renderedEl:x,renderedText:I,item:P}=S;return m__namespace.createElement(gte,{key:P.key,item:P,renderedText:I,renderedEl:x,prefixCls:n,showRemove:i,onClick:p,onRemove:b,checked:o.includes(P.key),disabled:a||P.disabled})})),w)},yte=m__namespace.forwardRef(bte),Cte=e=>{const{getPrefixCls:t,direction:n}=m.useContext(tt),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,l]=Ap(i),c=G(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,o),u=m.useContext(Er),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(Er.Provider,{value:d},e.children)))},Ste=Cte;function Wa(e){return !!(e.addonBefore||e.addonAfter)}function vm(e){return !!(e.prefix||e.suffix||e.allowClear)}function wu(e,t,n,r){if(n){var o=t;if(t.type==="click"){var a=e.cloneNode(!0);o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",n(o);return}if(r!==void 0){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.type!=="file"&&(e.value=r),n(o);return}n(o);}}function KE(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o);}}}}var Lp=function(t){var n,r,o=t.inputElement,a=t.prefixCls,i=t.prefix,s=t.suffix,l=t.addonBefore,c=t.addonAfter,u=t.className,d=t.style,f=t.disabled,h=t.readOnly,g=t.focused,v=t.triggerFocus,p=t.allowClear,b=t.value,y=t.handleReset,C=t.hidden,$=t.classes,w=t.classNames,E=t.dataAttrs,S=t.styles,x=t.components,I=(x==null?void 0:x.affixWrapper)||"span",P=(x==null?void 0:x.groupWrapper)||"span",R=(x==null?void 0:x.wrapper)||"span",O=(x==null?void 0:x.groupAddon)||"span",N=m.useRef(null),A=function(q){var te;(te=N.current)!==null&&te!==void 0&&te.contains(q.target)&&(v==null||v());},L=function(){var q;if(!p)return null;var te=!f&&!h&&b,W="".concat(a,"-clear-icon"),Q=dt(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return m.createElement("span",{onClick:y,onMouseDown:function(ie){return ie.preventDefault()},className:G(W,(q={},j(q,"".concat(W,"-hidden"),!te),j(q,"".concat(W,"-has-suffix"),!!s),q)),role:"button",tabIndex:-1},Q)},T=m.cloneElement(o,{value:b,hidden:C,className:G((n=o.props)===null||n===void 0?void 0:n.className,!vm(t)&&!Wa(t)&&u)||null,style:U(U({},(r=o.props)===null||r===void 0?void 0:r.style),!vm(t)&&!Wa(t)?d:{})});if(vm(t)){var M,_="".concat(a,"-affix-wrapper"),z=G(_,(M={},j(M,"".concat(_,"-disabled"),f),j(M,"".concat(_,"-focused"),g),j(M,"".concat(_,"-readonly"),h),j(M,"".concat(_,"-input-with-clear-btn"),s&&p&&b),M),!Wa(t)&&u,$==null?void 0:$.affixWrapper,w==null?void 0:w.affixWrapper),F=(s||p)&&m.createElement("span",{className:G("".concat(a,"-suffix"),w==null?void 0:w.suffix),style:S==null?void 0:S.suffix},L(),s);T=m.createElement(I,Ie({className:z,style:U(U({},Wa(t)?void 0:d),S==null?void 0:S.affixWrapper),hidden:!Wa(t)&&C,onClick:A},E==null?void 0:E.affixWrapper,{ref:N}),i&&m.createElement("span",{className:G("".concat(a,"-prefix"),w==null?void 0:w.prefix),style:S==null?void 0:S.prefix},i),m.cloneElement(o,{value:b,hidden:null}),F);}if(Wa(t)){var B="".concat(a,"-group"),H="".concat(B,"-addon"),V=G("".concat(a,"-wrapper"),B,$==null?void 0:$.wrapper),K=G("".concat(a,"-group-wrapper"),u,$==null?void 0:$.group);return m.createElement(P,{className:K,style:d,hidden:C},m.createElement(R,{className:V},l&&m.createElement(O,{className:H},l),m.cloneElement(T,{hidden:null}),c&&m.createElement(O,{className:H},c)))}return T},$te=["show"];function UE(e,t){return m__namespace.useMemo(function(){var n={};t&&(n.show=dt(t)==="object"&&t.formatter?t.formatter:!!t),n=U(U({},n),e);var r=n,o=r.show,a=et(r,$te);return U(U({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var wte=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],xte=m.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=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,g=e.suffix,v=e.showCount,p=e.count,b=e.type,y=b===void 0?"text":b,C=e.classes,$=e.classNames,w=e.styles,E=e.onCompositionStart,S=e.onCompositionEnd,x=et(e,wte),I=m.useState(!1),P=Z(I,2),R=P[0],O=P[1],N=m.useRef(!1),A=m.useRef(null),L=function(oe){A.current&&KE(A.current,oe);},T=Ut(e.defaultValue,{value:e.value}),M=Z(T,2),_=M[0],z=M[1],F=_==null?"":String(_),B=m.useState(null),H=Z(B,2),V=H[0],K=H[1],X=UE(p,v),q=X.max||h,te=X.strategy(F),W=!!q&&te>q;m.useImperativeHandle(t,function(){return {focus:L,blur:function(){var oe;(oe=A.current)===null||oe===void 0||oe.blur();},setSelectionRange:function(oe,me,pe){var _e;(_e=A.current)===null||_e===void 0||_e.setSelectionRange(oe,me,pe);},select:function(){var oe;(oe=A.current)===null||oe===void 0||oe.select();},input:A.current}}),m.useEffect(function(){O(function(ne){return ne&&u?!1:ne});},[u]);var Q=function(oe,me){var pe=me;if(!N.current&&X.exceedFormatter&&X.max&&X.strategy(me)>X.max&&(pe=X.exceedFormatter(me,{max:X.max}),me!==pe)){var _e,Ve;K([((_e=A.current)===null||_e===void 0?void 0:_e.selectionStart)||0,((Ve=A.current)===null||Ve===void 0?void 0:Ve.selectionEnd)||0]);}z(pe),A.current&&wu(A.current,oe,r,pe);};m.useEffect(function(){if(V){var ne;(ne=A.current)===null||ne===void 0||ne.setSelectionRange.apply(ne,Te(V));}},[V]);var Y=function(oe){Q(oe,oe.target.value);},ie=function(oe){N.current=!1,Q(oe,oe.currentTarget.value),S==null||S(oe);},le=function(oe){i&&oe.key==="Enter"&&i(oe),s==null||s(oe);},J=function(oe){O(!0),o==null||o(oe);},re=function(oe){O(!1),a==null||a(oe);},fe=function(oe){z(""),L(),A.current&&wu(A.current,oe,r);},ee=W&&"".concat(c,"-out-of-range"),ce=function(){var oe=zn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return m.createElement("input",Ie({autoComplete:n},oe,{onChange:Y,onFocus:J,onBlur:re,onKeyDown:le,className:G(c,j({},"".concat(c,"-disabled"),u),$==null?void 0:$.input),style:w==null?void 0:w.input,ref:A,size:d,type:y,onCompositionStart:function(pe){N.current=!0,E==null||E(pe);},onCompositionEnd:ie}))},he=function(){var oe=Number(q)>0;if(g||X.show){var me=X.showFormatter?X.showFormatter({value:F,count:te,maxLength:q}):"".concat(te).concat(oe?" / ".concat(q):"");return m.createElement(m.Fragment,null,X.show&&m.createElement("span",{className:G("".concat(c,"-show-count-suffix"),j({},"".concat(c,"-show-count-has-suffix"),!!g),$==null?void 0:$.count),style:U({},w==null?void 0:w.count)},me),g)}return null};return m.createElement(Lp,Ie({},x,{prefixCls:c,className:G(f,ee),inputElement:ce(),handleReset:fe,value:F,focused:R,triggerFocus:L,suffix:he(),disabled:u,classes:C,classNames:$,styles:w}))});function XE(e,t){const n=m.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((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 Ete(e){return !!(e.prefix||e.suffix||e.allowClear)}var Ite=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 Pte(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 Ote=m.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:h,className:g,style:v,styles:p,rootClassName:b,onChange:y,classNames:C}=e,$=Ite(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:w,direction:E,input:S}=m.useContext(tt),x=w("input",r),I=m.useRef(null),[P,R]=Ap(x),{compactSize:O,compactItemClassnames:N}=Gi(x,E),A=Jn(W=>{var Q;return (Q=i??O)!==null&&Q!==void 0?Q:W}),L=m.useContext(Hr),T=s??L,{status:M,hasFeedback:_,feedbackIcon:z}=m.useContext(Er),F=jl(M,a),B=Ete(e)||!!_;m.useRef(B);const H=XE(I,!0),V=W=>{H(),l==null||l(W);},K=W=>{H(),c==null||c(W);},X=W=>{H(),y==null||y(W);},q=(_||u)&&m.createElement(m.Fragment,null,u,_&&z);let te;return typeof d=="object"&&(d!=null&&d.clearIcon)?te=d:d&&(te={clearIcon:m.createElement(Mp,null)}),P(m.createElement(xte,Object.assign({ref:Xn(t,I),prefixCls:x,autoComplete:S==null?void 0:S.autoComplete},$,{disabled:T,onBlur:V,onFocus:K,style:Object.assign(Object.assign({},S==null?void 0:S.style),v),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),p),suffix:q,allowClear:te,className:G(g,b,N,S==null?void 0:S.className),onChange:X,addonAfter:f&&m.createElement(yi,null,m.createElement(qs,{override:!0,status:!0},f)),addonBefore:h&&m.createElement(yi,null,m.createElement(qs,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign(Object.assign({},C),S==null?void 0:S.classNames),{input:G({[`${x}-sm`]:A==="small",[`${x}-lg`]:A==="large",[`${x}-rtl`]:E==="rtl",[`${x}-borderless`]:!o},!B&&Fr(x,F),C==null?void 0:C.input,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.input,R)}),classes:{affixWrapper:G({[`${x}-affix-wrapper-sm`]:A==="small",[`${x}-affix-wrapper-lg`]:A==="large",[`${x}-affix-wrapper-rtl`]:E==="rtl",[`${x}-affix-wrapper-borderless`]:!o},Fr(`${x}-affix-wrapper`,F,_),R),wrapper:G({[`${x}-group-rtl`]:E==="rtl"},R),group:G({[`${x}-group-wrapper-sm`]:A==="small",[`${x}-group-wrapper-lg`]:A==="large",[`${x}-group-wrapper-rtl`]:E==="rtl",[`${x}-group-wrapper-disabled`]:T},Fr(`${x}-group-wrapper`,F,_),R)}})))}),Dp=Ote;var Mte={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 Rte=Mte;var Tte=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:Rte}))};const _te=m__namespace.forwardRef(Tte);var Nte={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 kte=Nte;var Ate=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:kte}))};const Lte=m__namespace.forwardRef(Ate);var Dte=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 Fte=e=>e?m__namespace.createElement(Lte,null):m__namespace.createElement(_te,null),zte={click:"onClick",hover:"onMouseOver"},jte=m__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,a]=m.useState(()=>r?n.visible:!1),i=m.useRef(null);m__namespace.useEffect(()=>{r&&a(n.visible);},[r,n]);const s=XE(i),l=()=>{const{disabled:w}=e;w||(o&&s(),a(E=>{var S;const x=!E;return typeof n=="object"&&((S=n.onVisibleChange)===null||S===void 0||S.call(n,x)),x}));},c=w=>{const{action:E="click",iconRender:S=Fte}=e,x=zte[E]||"",I=S(o),P={[x]:l,className:`${w}-icon`,key:"passwordIcon",onMouseDown:R=>{R.preventDefault();},onMouseUp:R=>{R.preventDefault();}};return m__namespace.cloneElement(m__namespace.isValidElement(I)?I:m__namespace.createElement("span",null,I),P)},{className:u,prefixCls:d,inputPrefixCls:f,size:h}=e,g=Dte(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=m__namespace.useContext(tt),p=v("input",f),b=v("input-password",d),y=n&&c(b),C=G(b,u,{[`${b}-${h}`]:!!h}),$=Object.assign(Object.assign({},zn(g,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:C,prefixCls:p,suffix:y});return h&&($.size=h),m__namespace.createElement(Dp,Object.assign({ref:Xn(t,i)},$))}),Bte=jte;var Hte=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 Vte=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:h,onCompositionEnd:g}=e,v=Hte(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=m__namespace.useContext(tt),y=m__namespace.useRef(!1),C=p("input-search",n),$=p("input",r),{compactSize:w}=Gi(C,b),E=Jn(F=>{var B;return (B=a??w)!==null&&B!==void 0?B:F}),S=m__namespace.useRef(null),x=F=>{F&&F.target&&F.type==="click"&&d&&d(F.target.value,F,{source:"clear"}),f&&f(F);},I=F=>{var B;document.activeElement===((B=S.current)===null||B===void 0?void 0:B.input)&&F.preventDefault();},P=F=>{var B,H;d&&d((H=(B=S.current)===null||B===void 0?void 0:B.input)===null||H===void 0?void 0:H.value,F,{source:"input"});},R=F=>{y.current||c||P(F);},O=typeof s=="boolean"?m__namespace.createElement(Rp,null):null,N=`${C}-button`;let A;const L=s||{},T=L.type&&L.type.__ANT_BUTTON===!0;T||L.type==="button"?A=Kn(L,Object.assign({onMouseDown:I,onClick:F=>{var B,H;(H=(B=L==null?void 0:L.props)===null||B===void 0?void 0:B.onClick)===null||H===void 0||H.call(B,F),P(F);},key:"enterButton"},T?{className:N,size:E}:{})):A=m__namespace.createElement(Zt,{className:N,type:s?"primary":void 0,size:E,disabled:u,key:"enterButton",onMouseDown:I,onClick:P,loading:c,icon:O},s),l&&(A=[A,Kn(l,{key:"addonAfter"})]);const M=G(C,{[`${C}-rtl`]:b==="rtl",[`${C}-${E}`]:!!E,[`${C}-with-button`]:!!s},o),_=F=>{y.current=!0,h==null||h(F);},z=F=>{y.current=!1,g==null||g(F);};return m__namespace.createElement(Dp,Object.assign({ref:Xn(S,t),onPressEnter:R},v,{size:E,onCompositionStart:_,onCompositionEnd:z,prefixCls:$,addonAfter:A,suffix:i,onChange:x,className:M,disabled:u}))}),Wte=Vte;var Gte=`
  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;
`,Kte=["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"],pm={},Sr;function Ute(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&&pm[n])return pm[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=Kte.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(pm[n]=l),l}function Xte(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;Sr||(Sr=document.createElement("textarea"),Sr.setAttribute("tab-index","-1"),Sr.setAttribute("aria-hidden","true"),document.body.appendChild(Sr)),e.getAttribute("wrap")?Sr.setAttribute("wrap",e.getAttribute("wrap")):Sr.removeAttribute("wrap");var o=Ute(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Sr.setAttribute("style","".concat(l,";").concat(Gte)),Sr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=Sr.scrollHeight;if(s==="border-box"?f+=i:s==="content-box"&&(f-=a),n!==null||r!==null){Sr.value=" ";var h=Sr.scrollHeight-a;n!==null&&(c=h*n,s==="border-box"&&(c=c+a+i),f=Math.max(c,f)),r!==null&&(u=h*r,s==="border-box"&&(u=u+a+i),d=f>u?"":"hidden",f=Math.min(u,f));}var g={height:f,overflowY:d,resize:"none"};return c&&(g.minHeight=c),u&&(g.maxHeight=u),g}var qte=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],bm=0,ym=1,Cm=2,Yte=m__namespace.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var f=et(n,qte),h=Ut(o,{value:a,postState:function(K){return K??""}}),g=Z(h,2),v=g[0],p=g[1],b=function(K){p(K.target.value),d==null||d(K);},y=m__namespace.useRef();m__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var C=m__namespace.useMemo(function(){return i&&dt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),$=Z(C,2),w=$[0],E=$[1],S=!!i,x=function(){try{if(document.activeElement===y.current){var K=y.current,X=K.selectionStart,q=K.selectionEnd,te=K.scrollTop;y.current.setSelectionRange(X,q),y.current.scrollTop=te;}}catch{}},I=m__namespace.useState(Cm),P=Z(I,2),R=P[0],O=P[1],N=m__namespace.useState(),A=Z(N,2),L=A[0],T=A[1],M=function(){O(bm);};Kt(function(){S&&M();},[a,w,E,S]),Kt(function(){if(R===bm)O(ym);else if(R===ym){var V=Xte(y.current,!1,w,E);O(Cm),T(V);}else x();},[R]);var _=m__namespace.useRef(),z=function(){Pt.cancel(_.current);},F=function(K){R===Cm&&(s==null||s(K),i&&(z(),_.current=Pt(function(){M();})));};m__namespace.useEffect(function(){return z},[]);var B=S?L:null,H=U(U({},c),B);return (R===bm||R===ym)&&(H.overflowY="hidden",H.overflowX="hidden"),m__namespace.createElement(xr,{onResize:F,disabled:!(i||s)},m__namespace.createElement("textarea",Ie({},f,{ref:y,style:H,className:G(r,l,j({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:b})))}),Zte=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Qte=m.forwardRef(function(e,t){var n,r,o=e.defaultValue,a=e.value,i=e.onFocus,s=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,h=e.suffix,g=e.prefixCls,v=g===void 0?"rc-textarea":g,p=e.classes,b=e.showCount,y=e.count,C=e.className,$=e.style,w=e.disabled,E=e.hidden,S=e.classNames,x=e.styles,I=e.onResize,P=et(e,Zte),R=Ut(o,{value:a,defaultValue:o}),O=Z(R,2),N=O[0],A=O[1],L=N==null?"":String(N),T=m.useState(!1),M=Z(T,2),_=M[0],z=M[1],F=m.useRef(!1),B=m.useState(null),H=Z(B,2),V=H[0],K=H[1],X=m.useRef(null),q=function(){var Ce;return (Ce=X.current)===null||Ce===void 0?void 0:Ce.textArea},te=function(){q().focus();};m.useImperativeHandle(t,function(){return {resizableTextArea:X.current,focus:te,blur:function(){q().blur();}}}),m.useEffect(function(){z(function(Pe){return !w&&Pe});},[w]);var W=m.useState(null),Q=Z(W,2),Y=Q[0],ie=Q[1];m.useEffect(function(){if(Y){var Pe;(Pe=q()).setSelectionRange.apply(Pe,Te(Y));}},[Y]);var le=UE(y,b),J=(n=le.max)!==null&&n!==void 0?n:u,re=Number(J)>0,fe=le.strategy(L),ee=!!J&&fe>J,ce=function(Ce,je){var it=je;!F.current&&le.exceedFormatter&&le.max&&le.strategy(je)>le.max&&(it=le.exceedFormatter(je,{max:le.max}),je!==it&&ie([q().selectionStart||0,q().selectionEnd||0])),A(it),wu(Ce.currentTarget,Ce,l,it);},he=function(Ce){F.current=!0,d==null||d(Ce);},ne=function(Ce){F.current=!1,ce(Ce,Ce.currentTarget.value),f==null||f(Ce);},oe=function(Ce){ce(Ce,Ce.target.value);},me=function(Ce){var je=P.onPressEnter,it=P.onKeyDown;Ce.key==="Enter"&&je&&je(Ce),it==null||it(Ce);},pe=function(Ce){z(!0),i==null||i(Ce);},_e=function(Ce){z(!1),s==null||s(Ce);},Ve=function(Ce){A(""),te(),wu(q(),Ce,l);},He=h,Me;le.show&&(le.showFormatter?Me=le.showFormatter({value:L,count:fe,maxLength:J}):Me="".concat(fe).concat(re?" / ".concat(J):""),He=m.createElement(m.Fragment,null,He,m.createElement("span",{className:G("".concat(v,"-data-count"),S==null?void 0:S.count),style:x==null?void 0:x.count},Me)));var Qe=function(Ce){var je;I==null||I(Ce),(je=q())!==null&&je!==void 0&&je.style.height&&K(!0);},Xe=!P.autoSize&&!b&&!c,We=m.createElement(Lp,{value:L,allowClear:c,handleReset:Ve,suffix:He,prefixCls:v,classes:{affixWrapper:G(p==null?void 0:p.affixWrapper,(r={},j(r,"".concat(v,"-show-count"),b),j(r,"".concat(v,"-textarea-allow-clear"),c),r))},disabled:w,focused:_,className:G(C,ee&&"".concat(v,"-out-of-range")),style:U(U({},$),V&&!Xe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Me=="string"?Me:void 0}},hidden:E,inputElement:m.createElement(Yte,Ie({},P,{maxLength:u,onKeyDown:me,onChange:oe,onFocus:pe,onBlur:_e,onCompositionStart:he,onCompositionEnd:ne,className:G(S==null?void 0:S.textarea),style:U(U({},x==null?void 0:x.textarea),{},{resize:$==null?void 0:$.resize}),disabled:w,prefixCls:v,onResize:Qe,ref:X}))});return We}),Jte=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 ene=m.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className:d}=e,f=Jte(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:h,direction:g}=m__namespace.useContext(tt),v=Jn(a),p=m__namespace.useContext(Hr),b=i??p,{status:y,hasFeedback:C,feedbackIcon:$}=m__namespace.useContext(Er),w=jl(y,s),E=m__namespace.useRef(null);m__namespace.useImperativeHandle(t,()=>{var R;return {resizableTextArea:(R=E.current)===null||R===void 0?void 0:R.resizableTextArea,focus:O=>{var N,A;Pte((A=(N=E.current)===null||N===void 0?void 0:N.resizableTextArea)===null||A===void 0?void 0:A.textArea,O);},blur:()=>{var O;return (O=E.current)===null||O===void 0?void 0:O.blur()}}});const S=h("input",r);let x;typeof l=="object"&&(l!=null&&l.clearIcon)?x=l:l&&(x={clearIcon:m__namespace.createElement(Mp,null)});const[I,P]=Ap(S);return I(m__namespace.createElement(Qte,Object.assign({},f,{disabled:b,allowClear:x,className:G(d,u),classes:{affixWrapper:G(`${S}-textarea-affix-wrapper`,{[`${S}-affix-wrapper-rtl`]:g==="rtl",[`${S}-affix-wrapper-borderless`]:!o,[`${S}-affix-wrapper-sm`]:v==="small",[`${S}-affix-wrapper-lg`]:v==="large",[`${S}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},Fr(`${S}-affix-wrapper`,w),P)},classNames:Object.assign(Object.assign({},c),{textarea:G({[`${S}-borderless`]:!o,[`${S}-sm`]:v==="small",[`${S}-lg`]:v==="large"},Fr(S,w),P,c==null?void 0:c.textarea)}),prefixCls:S,suffix:C&&m__namespace.createElement("span",{className:`${S}-textarea-suffix`},$),ref:E})))}),tne=ene,Vl=Dp;Vl.Group=Ste;Vl.Search=Wte;Vl.TextArea=tne;Vl.Password=Bte;const qE=Vl,nne=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:a,handleClear:i}=e,s=m__namespace.useCallback(l=>{a==null||a(l),l.target.value===""&&(i==null||i());},[a]);return m__namespace.createElement(qE,{placeholder:t,className:r,value:n,onChange:s,disabled:o,allowClear:!0,prefix:m__namespace.createElement(Rp,null)})},YE=nne,rne=()=>null;function one(e){return !!(e&&!po(e)&&Object.prototype.toString.call(e)==="[object Object]")}function fs(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const ane=e=>e!==void 0,ine=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:o,disabled:a,showSearch:i=!1,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:u,selectCurrent:d,selectInvert:f,removeAll:h,removeCurrent:g,showSelectAll:v=!0,showRemove:p,pagination:b,direction:y,itemsUnit:C,itemUnit:$,selectAllLabel:w,selectionsIcon:E,footer:S,renderList:x,onItemSelectAll:I,onItemRemove:P,handleFilter:R,handleClear:O,filterOption:N,render:A=rne}=e,[L,T]=m.useState(""),M=m.useRef({}),_=ee=>{T(ee.target.value),R(ee);},z=()=>{T(""),O();},F=(ee,ce)=>N?N(L,ce,y):ee.includes(L),B=ee=>{let ce=x?x(Object.assign(Object.assign({},ee),{onItemSelect:(ne,oe)=>ee.onItemSelect(ne,oe)})):null;const he=!!ce;return he||(ce=m.createElement(yte,Object.assign({ref:M},ee))),{customize:he,bodyContent:ce}},H=ee=>{const ce=A(ee),he=one(ce);return {item:ee,renderedEl:he?ce.label:ce,renderedText:he?ce.value:ce}},V=m.useMemo(()=>Array.isArray(c)?c[y==="left"?0:1]:c,[c,y]),[K,X]=m.useMemo(()=>{const ee=[],ce=[];return n.forEach(he=>{const ne=H(he);L&&!F(ne.renderedText,he)||(ee.push(he),ce.push(ne));}),[ee,ce]},[n,L]),q=m.useMemo(()=>{if(o.length===0)return "none";const ee=$u(o);return K.every(ce=>ee.has(ce.key)||!!ce.disabled)?"all":"part"},[o,K]),te=m.useMemo(()=>{const ee=i?m.createElement("div",{className:`${t}-body-search-wrapper`},m.createElement(YE,{prefixCls:`${t}-search`,onChange:_,handleClear:z,placeholder:l,value:L,disabled:a})):null,{customize:ce,bodyContent:he}=B(Object.assign(Object.assign({},zn(e,vte)),{filteredItems:K,filteredRenderItems:X,selectedKeys:o}));let ne;return ce?ne=m.createElement("div",{className:`${t}-body-customize-wrapper`},he):ne=K.length?he:m.createElement("div",{className:`${t}-body-not-found`},V),m.createElement("div",{className:G(i?`${t}-body ${t}-body-with-search`:`${t}-body`)},ee,ne)},[i,t,l,L,a,o,K,X,V]),W=m.createElement(Yd,{disabled:n.length===0||a,checked:q==="all",indeterminate:q==="part",className:`${t}-checkbox`,onChange:()=>{I==null||I(K.filter(ee=>!ee.disabled).map(ee=>{let{key:ce}=ee;return ce}),q!=="all");}}),Q=(ee,ce)=>{if(w)return typeof w=="function"?w({selectedCount:ee,totalCount:ce}):w;const he=ce>1?C:$;return m.createElement(m.Fragment,null,(ee>0?`${ee}/`:"")+ce," ",he)},Y=S&&(S.length<2?S(e):S(e,{direction:y})),ie=G(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!Y}),le=Y?m.createElement("div",{className:`${t}-footer`},Y):null,J=!p&&!b&&W;let re;p?re=[b?{key:"removeCurrent",label:g,onClick(){var ee;const ce=fs((((ee=M.current)===null||ee===void 0?void 0:ee.items)||[]).map(he=>he.item));P==null||P(ce);}}:null,{key:"removeAll",label:h,onClick(){P==null||P(fs(K));}}].filter(Boolean):re=[{key:"selectAll",label:u,onClick(){const ee=fs(K);I==null||I(ee,ee.length!==o.length);}},b?{key:"selectCurrent",label:d,onClick(){var ee;const ce=((ee=M.current)===null||ee===void 0?void 0:ee.items)||[];I==null||I(fs(ce.map(he=>he.item)),!0);}}:null,{key:"selectInvert",label:f,onClick(){var ee;const ce=fs(b?(((ee=M.current)===null||ee===void 0?void 0:ee.items)||[]).map(oe=>oe.item):K),he=new Set(o),ne=[];ce.forEach(oe=>{he.has(oe)||ne.push(oe);}),I==null||I(ne,"replace");}}];const fe=m.createElement(yp,{className:`${t}-header-dropdown`,menu:{items:re},disabled:a},ane(E)?E:m.createElement(xp,null));return m.createElement("div",{className:ie,style:s},m.createElement("div",{className:`${t}-header`},v?m.createElement(m.Fragment,null,J,fe):null,m.createElement("span",{className:`${t}-header-selected`},Q(o.length,K.length)),m.createElement("span",{className:`${t}-header-title`},r)),te,le)},sg=ine,sne=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:a="",leftActive:i,rightActive:s,className:l,style:c,direction:u,oneWay:d}=e;return m__namespace.createElement("div",{className:l,style:c},m__namespace.createElement(Zt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?m__namespace.createElement(Pi,null):m__namespace.createElement(bu,null)},a),!d&&m__namespace.createElement(Zt,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:u!=="rtl"?m__namespace.createElement(bu,null):m__namespace.createElement(Pi,null)},o))},ZE=sne,lne=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:a,margin:i}=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:`${i}px 0 ${a}px`}},[`${l}[disabled]`]:{backgroundColor:"transparent"}}}},F1=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},cne=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},F1(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},F1(e,e.colorWarning))}},une=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:a,headerHeight:i,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,listHeight:d,listWidth:f,listWidthLG:h,fontSizeIcon:g,marginXS:v,paddingSM:p,lineType:b,antCls:y,iconCls:C,motionDurationSlow:$,controlItemBgHover:w,borderRadiusLG:E,colorBgContainer:S,colorText:x,controlItemBgActiveHover:I}=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":{[`${C}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${s-o}px ${p}px ${s}px`,color:x,background:S,borderBottom:`${o}px ${b} ${r}`,borderRadius:`${E}px ${E}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},ma),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},$a()),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:p}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${l}px ${p}px`,transition:`all ${$}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},ma),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${$}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",inset:`-${l}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:w,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:I}},"&-checked":{backgroundColor:c},"&-disabled":{color: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}`},"&-checkbox":{lineHeight:1}}},dne=e=>{const{antCls:t,iconCls:n,componentCls:r,headerHeight:o,marginXS:a,marginXXS:i,fontSizeIcon:s,fontSize:l,lineHeight:c,colorBgContainerDisabled:u}=e;return {[r]:Object.assign(Object.assign({},zt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:u}},[`${r}-list`]:une(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${a}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:i},[n]:{fontSize:s}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(l*c)}})}},fne=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},mne=Wt("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,a=Math.round(t*n),i=St(e,{transferHeaderVerticalPadding:Math.ceil((o-r-a)/2)});return [dne(i),lne(i),cne(i),fne(i)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o}=e,a=Math.round(t*n);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-a)/2}}),cf=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:o=[],operations:a=[],style:i={},listStyle:s={},locale:l={},titles:c,disabled:u,showSearch:d=!1,operationStyle:f,showSelectAll:h,oneWay:g,pagination:v,status:p,prefixCls:b,className:y,rootClassName:C,selectionsIcon:$,filterOption:w,render:E,footer:S,children:x,rowKey:I,onScroll:P,onChange:R,onSearch:O,onSelectChange:N}=e,{getPrefixCls:A,renderEmpty:L,direction:T,transfer:M}=m.useContext(tt),_=A("transfer",b),[z,F]=mne(_),[B,H,V]=ZQ(t,I,n),[K,X,q,te]=JQ(H,V,r),[W,Q]=w1(de=>de.key),[Y,ie]=w1(de=>de.key),le=m.useCallback((de,ae)=>{if(de==="left"){const be=typeof ae=="function"?ae(K||[]):ae;q(be);}else {const be=typeof ae=="function"?ae(X||[]):ae;te(be);}},[K,X]),J=(de,ae)=>{(de==="left"?Q:ie)(ae);},re=m.useCallback((de,ae)=>{de==="left"?N==null||N(ae,X):N==null||N(K,ae);},[K,X]),fe=de=>{var ae;return (ae=c??de.titles)!==null&&ae!==void 0?ae:[]},ee=de=>{P==null||P("left",de);},ce=de=>{P==null||P("right",de);},he=de=>{const ae=de==="right"?K:X,be=HQ(B),Se=ae.filter(ke=>!be.has(ke)),we=$u(Se),qe=de==="right"?Se.concat(n):n.filter(ke=>!we.has(ke)),Ye=de==="right"?"left":"right";le(Ye,[]),re(Ye,[]),R==null||R(qe,de,Se);},ne=()=>{he("left"),J("left",null);},oe=()=>{he("right"),J("right",null);},me=(de,ae,be)=>{le(de,Se=>{let we=[];if(be==="replace")we=ae;else if(be)we=Array.from(new Set([].concat(Te(Se),Te(ae))));else {const qe=$u(ae);we=Se.filter(Ye=>!qe.has(Ye));}return re(de,we),we}),J(de,null);},pe=(de,ae)=>{me("left",de,ae);},_e=(de,ae)=>{me("right",de,ae);},Ve=de=>O==null?void 0:O("left",de.target.value),He=de=>O==null?void 0:O("right",de.target.value),Me=()=>O==null?void 0:O("left",""),Qe=()=>O==null?void 0:O("right",""),Xe=(de,ae,be,Se,we)=>{ae.has(be)&&(ae.delete(be),J(de,null)),Se&&(ae.add(be),J(de,we));},We=(de,ae,be,Se)=>{(de==="left"?W:Y)(Se,ae,be);},Pe=(de,ae,be,Se)=>{const we=de==="left",qe=Te(we?K:X),Ye=new Set(qe),ke=Te(we?H:V).filter(ft=>!ft.disabled),Be=ke.findIndex(ft=>ft.key===ae);Se&&qe.length>0?We(de,ke,Ye,Be):Xe(de,Ye,ae,be,Be);const rt=Array.from(Ye);re(de,rt),e.selectedKeys||le(de,rt);},Ce=(de,ae,be)=>{Pe("left",de,ae,be==null?void 0:be.shiftKey);},je=(de,ae,be)=>{Pe("right",de,ae,be==null?void 0:be.shiftKey);},it=de=>{le("right",[]),R==null||R(n.filter(ae=>!de.includes(ae)),"left",Te(de));},vt=de=>typeof s=="function"?s({direction:de}):s||{},nt=m.useContext(Er),{hasFeedback:Je,status:yt}=nt,$t=de=>Object.assign(Object.assign(Object.assign({},de),{notFoundContent:(L==null?void 0:L("Transfer"))||m.createElement(wE,{componentName:"Transfer"})}),l),ct=jl(yt,p),pt=!x&&v,xt=X.length>0,Oe=K.length>0,Re=G(_,{[`${_}-disabled`]:u,[`${_}-customize-list`]:!!x,[`${_}-rtl`]:T==="rtl"},Fr(_,ct,Je),M==null?void 0:M.className,y,C,F),[Ne]=Vi("Transfer",bo.Transfer),ge=$t(Ne),[Fe,xe]=fe(ge);return z(m.createElement("div",{className:Re,style:Object.assign(Object.assign({},M==null?void 0:M.style),i)},m.createElement(sg,Object.assign({prefixCls:`${_}-list`,titleText:Fe,dataSource:H,filterOption:w,style:vt("left"),checkedKeys:K,handleFilter:Ve,handleClear:Me,onItemSelect:Ce,onItemSelectAll:pe,render:E,showSearch:d,renderList:x,footer:S,onScroll:ee,disabled:u,direction:T==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:o[0],pagination:pt,selectionsIcon:$},ge)),m.createElement(ZE,{className:`${_}-operation`,rightActive:Oe,rightArrowText:a[0],moveToRight:oe,leftActive:xt,leftArrowText:a[1],moveToLeft:ne,style:f,disabled:u,direction:T,oneWay:g}),m.createElement(sg,Object.assign({prefixCls:`${_}-list`,titleText:xe,dataSource:V,filterOption:w,style:vt("right"),checkedKeys:X,handleFilter:He,handleClear:Qe,onItemSelect:je,onItemSelectAll:_e,onItemRemove:it,render:E,showSearch:d,renderList:x,footer:S,onScroll:ce,disabled:u,direction:T==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:o[1],showRemove:g,pagination:pt,selectionsIcon:$},ge))))};cf.List=sg;cf.Search=YE;cf.Operation=ZE;const hne=cf;function QE(e){return `https://space.bilibili.com/${sd()}/favlist?fid=${e}`}const ri=class ri{constructor(){At(this,"useShuffle");At(this,"allFolderServices",[]);At(this,"folderServices",[]);At(this,"bufferQueue",[]);At(this,"total",0);At(this,"returnedItems",[]);At(this,"foldersLoaded",!1);this.useShuffle=Mt.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(pne,{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,ri.PAGE_SIZE);return this.bufferQueue=this.bufferQueue.slice(ri.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<ri.PAGE_SIZE){for(;this.folderHasMore&&this.bufferQueue.length<100;){const n=this.folderServices.filter(a=>a.hasMore),r=tg(n).slice(0,5),o=(await Promise.all(r.map(async a=>await a.loadMore()||[]))).flat();this.bufferQueue=[...this.bufferQueue,...o];}this.bufferQueue=tg(this.bufferQueue);}return t()}async getAllFolders(){const t=await JE();this.foldersLoaded=!0,this.allFolderServices=t.map(n=>new gne(n)),this.folderServices=this.allFolderServices.filter(n=>!Mt.excludeFavFolderIds.includes(n.entry.id.toString())),this.total=this.folderServices.reduce((n,r)=>n+r.entry.media_count,0);}};At(ri,"PAGE_SIZE",20);let xu=ri;async function JE(){return (await yn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:sd()}})).data.data.list}class gne{constructor(t){At(this,"entry");At(this,"hasMore");At(this,"info");At(this,"page",0);this.entry=t,this.hasMore=t.media_count>0;}async loadMore(){if(!this.hasMore)return;const n=(await yn.get("/x/v3/fav/resource/list",{params:{media_id:this.entry.id,pn:++this.page,ps:20,keyword:"",order:"mtime",type:"0",tid:"0",platform:"web"}})).data;if(!oo(n)){Et(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 a;return {...o,folder:this.info,api:"fav",uniqId:`fav-${(a=this.info)==null?void 0:a.id}-${o.bvid}`}})}}var vne={name:"1uu99zq",styles:"margin-left:15px;cursor:pointer;font-size:12px"};function pne({allFavFolderServices:e}){const{excludeFavFolderIds:t,shuffleForFav:n}=hn(),r=zp(),[o,a]=m.useState(!1),i=lt((u,d,f)=>{a(!0),lr({excludeFavFolderIds:u});}),s=m.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).length,[e,t]),l=m.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).reduce((u,d)=>u+d.entry.media_count,0),[e,t]),c=lt(u=>{u?a(!1):o&&(r==null||r());});return ve(Rt,{children:[D(Qd,{trigger:"click",placement:"bottom",onOpenChange:c,getPopupContainer:u=>u.parentElement||document.body,content:D(Rt,{children:D(hne,{dataSource:e,rowKey:u=>u.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:i,render:u=>u.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:ve(Po,{color:"success",css:vne,children:["收藏夹(",s,") 收藏(",l,")"]})}),D(Cp,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序",checked:n,onChange:u=>{lr({shuffleForFav:u}),setTimeout(()=>{r==null||r();});}})]})}var bne=Ag,yne=ep,Cne=1,Sne=2;function $ne(e,t,n,r){var o=n.length,a=o,i=!r;if(e==null)return !a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return !1}for(;++o<a;){s=n[o];var l=s[0],c=e[l],u=s[1];if(i&&s[2]){if(c===void 0&&!(l in e))return !1}else {var d=new bne;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?yne(u,c,Cne|Sne,r,d):f))return !1}}return !0}var wne=$ne,xne=ro;function Ene(e){return e===e&&!xne(e)}var eI=Ene,Ine=eI,Pne=ul;function One(e){for(var t=Pne(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ine(o)];}return t}var Mne=One;function Rne(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var tI=Rne,Tne=wne,_ne=Mne,Nne=tI;function kne(e){var t=_ne(e);return t.length==1&&t[0][2]?Nne(t[0][0],t[0][1]):function(n){return n===e||Tne(n,e,t)}}var Ane=kne,Lne=ad;function Dne(e,t,n){var r=e==null?void 0:Lne(e,t);return r===void 0?n:r}var Fne=Dne,zne=ep,jne=Fne,Bne=TS,Hne=qg,Vne=eI,Wne=tI,Gne=ji,Kne=1,Une=2;function Xne(e,t){return Hne(e)&&Vne(t)?Wne(Gne(e),t):function(n){var r=jne(n,e);return r===void 0&&r===t?Bne(n,e):zne(t,r,Kne|Une)}}var qne=Xne;function Yne(e){return function(t){return t==null?void 0:t[e]}}var Zne=Yne,Qne=ad;function Jne(e){return function(t){return Qne(t,e)}}var ere=Jne,tre=Zne,nre=ere,rre=qg,ore=ji;function are(e){return rre(e)?tre(ore(e)):nre(e)}var ire=are,sre=Ane,lre=qne,cre=IS,ure=Br,dre=ire;function fre(e){return typeof e=="function"?e:e==null?cre:typeof e=="object"?ure(e)?lre(e[0],e[1]):sre(e):dre(e)}var mre=fre;function hre(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return -1}var gre=hre;function vre(e){return e!==e}var pre=vre;function bre(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}var yre=bre,Cre=gre,Sre=pre,$re=yre;function wre(e,t,n){return t===t?$re(e,t,n):Cre(e,Sre,n)}var xre=wre,Ere=xre;function Ire(e,t){var n=e==null?0:e.length;return !!n&&Ere(e,t,0)>-1}var Pre=Ire;function Ore(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 Mre=Ore;function Rre(){}var Tre=Rre,Sm=gS,_re=Tre,Nre=Jv,kre=1/0,Are=Sm&&1/Nre(new Sm([,-0]))[1]==kre?function(e){return new Sm(e)}:_re,Lre=Are,Dre=Xx,Fre=Pre,zre=Mre,jre=qx,Bre=Lre,Hre=Jv,Vre=200;function Wre(e,t,n){var r=-1,o=Fre,a=e.length,i=!0,s=[],l=s;if(n)i=!1,o=zre;else if(a>=Vre){var c=t?null:Bre(e);if(c)return Hre(c);i=!1,o=jre,l=new Dre;}else l=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,i&&d===d){for(var 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}var Gre=Wre,Kre=mre,Ure=Gre;function Xre(e,t){return e&&e.length?Ure(e,Kre(t)):[]}var qre=Xre;const uf=bn(qre),Lu=class Lu{constructor(){At(this,"page",0);At(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommend(t=void 0){var i,s;const n=++this.page,o=(await yn.get("/x/web-interface/wbi/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:Lu.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (i=o.data)!=null&&i.item||Et(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=uf(r,a=>a.id),r.forEach(a=>{var i,s;((i=a.rcmd_reason)==null?void 0:i.reason_type)===1&&((s=a.rcmd_reason).content||(s.content="已关注"));}),r.map(a=>({...a,uniqId:a.id+"-"+crypto.randomUUID(),api:"pc"}))}};At(Lu,"PAGE_SIZE",14);let Qs=Lu;var Yre=SS,Zre=1,Qre=4;function Jre(e){return Yre(e,Zre|Qre)}var eoe=Jre;const toe=bn(eoe),li=ur({updatedAt:0,bvidSet:tp()});function noe(e){return hr(li).bvidSet.has(e)}fl()&&setTimeout(()=>{new Js().loadMore();});const uo=class uo{constructor(t){At(this,"loaded",!1);At(this,"page",-1);At(this,"hasMore",!0);At(this,"count",0);At(this,"items",[]);At(this,"keepOrder");this.keepOrder=t??!1;}async fetch(){const n=(await yn.get("/x/v2/history/toview/web")).data;let r=n.data.list.map(i=>({...i,api:"watchlater",uniqId:`watchlater-${i.bvid}`}));Date.now()>li.updatedAt&&(li.updatedAt=Date.now(),li.bvidSet=tp(r.map(i=>i.bvid)));const o=Ca().subtract(2,"days").unix(),a=r.findIndex(i=>i.add_at<o);if(a!==-1){const i=r.slice(0,a);let s=r.slice(a);this.keepOrder&&uo.LAST_ITEMS.length?(s=s.map(l=>({item:l,index:uo.LAST_ITEMS.findIndex(c=>c.bvid===l.bvid)})).sort((l,c)=>l.index-c.index).map(l=>l.item),r=[...i,...s]):Mt.shuffleForWatchLater&&(r=[...i,...tg(s)]);}this.count=n.data.count,this.items=r,uo.LAST_ITEMS=r;}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return D(roe,{count:t})}async loadMore(){if(!this.hasMore)return;this.loaded||(await this.fetch(),this.loaded=!0),this.page++;const t=this.page*uo.PAGE_SIZE,n=t+uo.PAGE_SIZE,r=toe(this.items.slice(t,n));return this.hasMore=n<=this.count-1,r}};At(uo,"PAGE_SIZE",15),At(uo,"LAST_ITEMS",[]);let Js=uo;function roe({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=hn(),o=zp();return ve(Rt,{children:[ve(Po,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{Et(`稍后再看: ${n}`);},children:[e," / 100"]}),D(Cp,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:a=>{lr({shuffleForWatchLater:a}),setTimeout(()=>{o==null||o();});}})]})}const Fp=m.createContext(void 0);function zp(){return m.useContext(Fp)}function nI({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:a,setUpperRefreshing:i}){const s=vX(),l=KZ(()=>({})),[c,u]=m.useState(!0),[d,f]=m.useState([]),[h,g]=m.useState(()=>new Qs),[v,p]=m.useState(()=>new lg(Ar.upMid)),[b,y]=m.useState(()=>new Js),[C,$]=m.useState(()=>new xu),[w,E]=m.useState(!1),[S,x,I]=Qx(()=>Date.now()),[P,R]=m.useState(s),[O,N]=m.useState(()=>new AbortController),[A,L]=m.useState(!1),[T,M]=m.useState(void 0),_=lt(async(z=!1,F)=>{var ce;const B=performance.now();if(w)if(s===P){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",s);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",P,s),O.abort();else e("refresh(): [start] tab = %s",s);await(a==null?void 0:a());const H=he=>{E(he),i==null||i(he);};H(!0),x(Date.now()),R(s),f([]),M(void 0),u(!0),await(r==null?void 0:r());let V=[],K;const X=!!(z&&((ce=l.current[s])!=null&&ce.length)),q=!!(X&&(n1[s].swr||s==="fav"));L(q);const te=X&&(q||s==="fav"),W=async()=>{try{V=await n(fe);}catch(he){K=he;}},Q=t?new Qs:h;t&&g(Q);let Y=v;s==="dynamic-feed"&&(Y=new lg(Ar.upMid),p(Y));let ie=b;s==="watchlater"&&(ie=new Js(F==null?void 0:F.watchlaterKeepOrder),y(ie));let le=C;s==="fav"&&(X?le.restore():(le=new xu,$(le)));const J=new AbortController,re=J.signal;N(J);const fe={tab:s,pcRecService:Q,dynamicFeedService:Y,watchLaterService:ie,favService:le,abortSignal:re};if(e("refresh(): shouldReuse=%s swr=%s",X,q),X?(V=l.current[s]||[],f(V),te&&await W()):(l.current[s]=[],await W()),re.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}if(H(!1),K){console.error(K),M(K);return}f(V),n1[s].swr?l.current[s]=V.slice(0,30):l.current[s]=V,s==="dynamic-feed"&&u(Y.hasMore),s==="watchlater"&&u(ie.hasMore),s==="fav"&&u(le.hasMore),await(o==null?void 0:o());const ee=performance.now()-B;e("refresh(): [success] cost %s ms",ee.toFixed(0));});return {items:d,itemsCache:l,setItems:f,error:T,refreshedAt:S,setRefreshedAt:x,getRefreshedAt:I,refreshing:w,setRefreshing:E,refreshFor:P,setRefreshFor:R,refreshAbortController:O,setRefreshAbortController:N,hasMore:c,setHasMore:u,swr:A,setSwr:L,pcRecService:h,dynamicFeedService:v,watchLaterService:b,favService:C,setPcRecService:g,setDynamicFeedService:p,setWatchLaterService:y,setFavService:$,refresh:_}}async function ooe(){const t=(await yn.get("/x/polymer/web-dynamic/v1/portal")).data;return (t==null?void 0:t.data.up_list)||[]}class lg{constructor(t){At(this,"offset","");At(this,"page",0);At(this,"hasMore",!0);At(this,"upMid");this.upMid=t;}async loadMore(t=void 0){if(!this.hasMore)return;this.page++;const n={timezone_offset:"-480",type:"video",features:"itemOpusStyle",page:this.page};this.offset&&(n.offset=this.offset),this.upMid&&(n.host_mid=this.upMid);const o=(await yn.get("/x/polymer/web-dynamic/v1/feed/all",{signal:t,params:n})).data;return this.hasMore=o.data.has_more,this.offset=o.data.offset,o.data.items.filter(s=>s.type==="DYNAMIC_TYPE_AV").map(s=>({...s,api:"dynamic",uniqId:s.id_str||crypto.randomUUID()}))}get usageInfo(){return D(soe,{})}}At(lg,"PAGE_SIZE",15);const Ar=ur({upMid:void 0,upName:void 0,upList:[],upListUpdatedAt:0});setTimeout(()=>{Ar.upList.length||requestIdleCallback(()=>{rI();});},dl("5s"));async function rI(e=!1){if(!e&&Ar.upList.length&&Ar.upListUpdatedAt&&Ar.upListUpdatedAt-Date.now()<dl("5min"))return;const n=await ooe();Ar.upList=n,Ar.upListUpdatedAt=Date.now();}function oI(e){if(Object.assign(Ar,e),e.upMid){const t=Ar.upList.find(n=>n.mid===e.upMid);t&&(t.has_update=!1);}}var aoe={name:"dhit8z",styles:"margin-left:15px"},ioe={name:"1mkc8b8",styles:"display:block;max-width:130px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden"};function soe(){const e=zp(),{upName:t,upList:n}=hr(Ar);Ml(()=>{rI();});const r=lt(async i=>{oI(i),await wr(100),e==null||e();}),o=lt(()=>{r({upMid:void 0,upName:void 0});}),a=m.useMemo(()=>{const i={key:"all",icon:D(gu,{size:"small",children:"全"}),label:"全部",onClick:o},s=n.map(l=>{let c=D(gu,{size:"small",src:l.face});return l.has_update&&(c=D(GZ,{dot:!0,children:c})),{key:l.mid,icon:c,label:D("span",{title:l.uname,css:ioe,children:l.uname}),onClick(){r({upMid:l.mid,upName:l.uname});}}});return [i,...s]},[n,n.map(i=>!!i.has_update)]);return D("div",{css:aoe,children:ve(Fl,{children:[D(yp,{placement:"bottomLeft",menu:{items:a,style:{maxHeight:"50vh",overflowY:"scroll"}},children:D(Zt,{children:t?`UP: ${t}`:"全部"})}),!!t&&ve(Zt,{onClick:o,css:[zl,"",""],children:[D(Ft,{name:"Return",size:14,style:{marginRight:5}}),"清除"]})]})})}const $m={removeFav:loe,addFav:doe,getVideoFavState:coe};async function loe(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:Hi()}),o=(await yn.post("/x/v3/fav/resource/batch-del",n)).data,a=oo(o);return a||Et(o.message||GS),a}async function coe(e){if(!fl())return;const r=(await yn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:sd(),type:2,rid:e}})).data.data.list.filter(i=>i.fav_state>0),o=r.map(i=>i.title),a=r.map(i=>QE(i.id));return {favFolders:r,favFolderNames:o,favFolderUrls:a}}async function uoe({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:Hi()}),a=(await yn.post("/x/v3/fav/resource/deal",r)).data,i=oo(a);return i||Et((a==null?void 0:a.message)||"fav deal api fail"),i}let wm=0,cg="";async function doe(e){if(!wm||!cg){const t=await JE();wm=t[0].id,cg=t[0].title;}return await uoe({avid:e,add_media_ids:wm.toString()})}async function aI(e,t){const n=sd(),r=Hi(),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:foe()}),csrf:r}),i=(await yn.post("/x/relation/modify",o)).data,s=oo(i);return s||Et(i.message||"未知错误"),s}function foe(){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 moe=sI("follow"),hoe=sI("remove"),iI={add:moe,remove:hoe},ug=tp();function goe(e){const t=hr(ug);return e&&t.has(e)}function sI(e){const t=e==="follow"?5:6;return async function(r){const o=await aI(r,t);return o&&(e==="follow"?ug.add(r):e==="remove"&&ug.delete(r)),o}}const voe=lI("follow"),poe=lI("unfollow"),boe={follow:voe,unfollow:poe};function lI(e){const t=e==="follow"?1:2;return async function(r){return await aI(r,t)}}function jp(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 yoe="_bili-video-card_90sij_1",Coe="_preview-card-wrapper_90sij_4",Soe="_preview-card-inner_90sij_17",$oe="_watch-later_90sij_21",woe="_badge_90sij_24",xoe="_recommend-reason_90sij_33",Eoe="_bangumi-desc_90sij_48",Ioe="_btn-dislike_90sij_51",Poe="_btn-dislike-icon_90sij_66",Ooe="_btn-dislike-tip_90sij_73",Moe="_disliked-wrapper_90sij_88",Roe="_dislike-content-cover_90sij_102",Toe="_dislike-content-cover-inner_90sij_108",_oe="_dislike-icon_90sij_119",Noe="_dislike-reason_90sij_122",koe="_dislike-desc_90sij_126",Aoe="_dislike-content-action_90sij_130",Loe="_skeleton-active_90sij_156",Doe="_ant-skeleton-loading_90sij_1",Vt={biliVideoCard:yoe,previewCardWrapper:Coe,previewCardInner:Soe,watchLater:$oe,badge:woe,recommendReason:xoe,bangumiDesc:Eoe,btnDislike:Ioe,btnDislikeIcon:Poe,btnDislikeTip:Ooe,dislikedWrapper:Moe,dislikeContentCover:Roe,dislikeContentCoverInner:Toe,dislikeIcon:_oe,dislikeReason:Noe,dislikeDesc:koe,dislikeContentAction:Aoe,skeletonActive:Loe,antSkeletonLoading:Doe};function Foe(...e){for(const t of e)if(!isNaN(t))return t;return 0}function zoe({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const a=m.useRef(null),i=jG(a),[s,l]=m.useState(()=>({width:0,height:0}));Ml(()=>{var f;const d=(f=a.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=Foe(i.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:a,className:G(Vt.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&D(joe,{...u})})}function joe({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var w;const a=Math.floor((e||0)*o);let i=m.useMemo(()=>{const E=(t==null?void 0:t.index)||[];let S=Hoe(E,a);return S!==-1?S:a>E[E.length-1]?(S=Math.floor(E.length*o)-1,S<0&&(S=0),S):0},[t,a]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:u}=t,d=l*s;i=i+1;const f=Math.floor(i/d),h=i-f*d,g=((w=t.image)==null?void 0:w[f])||"",v=Math.floor(h/s)+1,p=h-(v-1)*s,b=n*s,y=r*l,C=(v-1)*r,$=(p-1)*n;return D("div",{className:Vt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${g})`,backgroundPosition:`-${$}px -${C}px`,backgroundSize:`${b}px ${y}px`},children:D(Boe,{progress:o})})}function Boe({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:to,height:"100%",width:`${e*100}%`}})})}function Hoe(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 a=e[o],i=e[o+1]??0;return a<t&&t<i?o:-1}const ms={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},Eu={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},Voe={bangumiFollow:1.3};function z1(e){return Eu[e]||Eu[1]}const Woe="--video-card-border-radius",cI=`var(${Woe})`,uI={borderRadius:cI};var go=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}};go.TABEL="fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF";go.TR={};go.S=[11,10,3,8,4,6];go.XOR=177451812;go.ADD=8728348608;(()=>{const e=go.TABEL.length;for(let t=0;t<e;t++)go.TR[go.TABEL[t]]=t;})();var Oi=go;Oi.av2bv.bind(Oi);Oi.bv2av.bind(Oi);function dI(e,t){const n=e.api==="pc",r=e.api==="app",o=e.api==="dynamic",a=e.api==="watchlater";return e.api,n?t.pc(e):r?t.app(e):o?t.dynamic(e):a?t.watchlater(e):t.fav(e)}function fI(e){const t=dI(e,{pc:Xoe,app:Goe,dynamic:qoe,watchlater:Yoe,fav:Zoe});return t.authorFace&&(t.authorFace=nb(t.authorFace)),t.cover=nb(t.cover),t}function Goe(e){return e.device==="android"?Koe(e):Uoe(e)}function Koe(e){var a,i,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&&Eu[c]===l)return aa(u);if(d&&Eu[d]===l)return aa(f)},n=e.param,r=Oi.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(`[${an}]: 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,cover:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((a=e.player_args)==null?void 0:a.duration)||0,durationStr:ml((i=e.player_args)==null?void 0:i.duration),recommendReason:e.rcmd_reason,play:t("play"),like:void 0,coin:void 0,danmaku:t("danmaku"),favorite:void 0,bangumiFollow:t("bangumiFollow"),statItems:[e.cover_left_text_1&&{field:z1(e.cover_left_icon_1),value:e.cover_left_text_1},e.cover_left_text_2&&{field:z1(e.cover_left_icon_2),value:e.cover_left_text_2}].filter(Boolean),authorName:e.args.up_name,authorFace:void 0,authorMid:String(e.args.up_id),appBadge:e.badge,appBadgeDesc:((s=e.desc_button)==null?void 0:s.text)||e.desc||""}}function Uoe(e){var f,h;const t=g=>{const{cover_left_text_1:v,cover_left_text_2:p,cover_left_text_3:b}=e,y=[v,p,b].filter(Boolean);if(g==="play"){const C=y.find(w=>/观看|播放$/.test(w));if(!C)return;const $=C.replace(/观看|播放$/,"");return aa($)}if(g==="danmaku"){const C=y.find(w=>/弹幕$/.test(w));if(!C)return;const $=C.replace(/弹幕$/,"");return aa($)}if(g==="bangumiFollow"){const C=y.find(w=>/追剧$/.test(w));if(!C)return;const $=C.replace(/追剧$/,"");return aa($)}},n=e.param,r=e.bvid||Oi.av2bv(Number(e.param)),o=(()=>{var g;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(`[${an}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const v=(g=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:g[1];return v?`/read/cv${v}`:e.uri}return e.uri})(),a=t("play"),i=void 0,s=void 0,l=t("danmaku"),c=void 0,u=t("bangumiFollow"),d=[{field:"play",value:Zo(a)||""},typeof l=="number"?{field:"danmaku",value:Zo(l)||""}:{field:"bangumiFollow",value:Zo(u)||""}];return {avid:n,bvid:r,goto:e.goto,href:o,title:e.title,desc:e.desc,cover:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((f=e.player_args)==null?void 0:f.duration)||0,durationStr:ml((h=e.player_args)==null?void 0:h.duration),recommendReason:e.bottom_rcmd_reason||e.top_rcmd_reason,play:a,like:i,coin:s,danmaku:l,favorite:c,bangumiFollow:u,statItems:d,authorName:e.args.up_name,authorFace:e.avatar.cover,authorMid:String(e.args.up_id||""),appBadge:e.cover_badge,appBadgeDesc:e.desc}}function Xoe(e){var t;return {avid:String(e.id),bvid:e.bvid,goto:e.goto,href:e.goto==="av"?`/video/${e.bvid}/`:e.uri,title:e.title,cover:e.pic,pubts:e.pubdate,pubdateDisplay:Ro(e.pubdate),duration:e.duration,durationStr:ml(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 qoe(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=Ca().subtract(2,"days").unix(),o=(()=>{const a=n.pub_ts;return a>r?n.pub_time:Ro(a)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,cover:t.cover,pubts:n.pub_ts,pubdateDisplay:o,duration:mF(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:aa(t.stat.play),danmaku:aa(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function Yoe(e){const t=vF(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?D(Bd,{title:ve(Rt,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:ve("del",{children:[e.viewed?"【已观看】· ":"",e.title,"`"]})}):void 0;return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:e.uri,title:n,titleRender:r,cover:e.pic,pubts:e.pubdate,pubdateDisplay:Ro(e.pubdate),pubdateDisplayTitle:`${Ro(e.pubdate,!0)} 发布, ${Ro(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:ml(e.duration),recommendReason:`${Ro(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 Zoe(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:ve(Rt,{children:["【",D(Ft,{name:"Star",size:16,theme:"two-tone",fill:["currentColor",to],style:{display:"inline-block",verticalAlign:"middle",marginLeft:10,marginRight:4,marginTop:-4}}),e.folder.title,"】· ",e.title]}),cover:e.cover,pubts:e.pubtime,pubdateDisplay:Ro(e.pubtime),duration:e.duration,durationStr:ml(e.duration),recommendReason:`${Ro(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)}}function Qoe({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:a}){const[s,l]=e2(void 0),[c,u]=m.useState(!1),d=m.useRef(!1),f=m.useRef(!1);ko("mouseenter",x=>{d.current=!0,n&&!g.current&&S(!0);},{target:a}),ko("mouseleave",x=>{d.current=!1;},{target:a}),ko("mousemove",x=>{u(!0),n||p();},{target:a});const h=WG(),g=m.useRef(void 0),v=lt(()=>{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=lt((x=!1)=>{g.current&&cancelAnimationFrame(g.current),g.current=void 0,l(void 0),y(!1);}),[b,y,C]=Qx(!1),$=m.useRef(),w=lt(()=>{var x;if(!g.current){S();return}y(I=>!I),b&&((x=$.current)==null||x.call($,s||0));}),E=lt(()=>s||0),S=lt((x=!1)=>{f.current=x,u(!1),y(!1),o(),p(!0),l(A=>typeof A>"u"?0:A);const I=8e3,P=()=>typeof Mt.autoPreviewUpdateInterval=="number"?Mt.autoPreviewUpdateInterval:400;let R=performance.now(),O=0;$.current=()=>{R=performance.now()-E()*I;};function N(A){if(v()){p();return}const L=()=>{const T=performance.now()-R,M=Math.min(T%I/I,1);l(M);};C()||(P()?(!O||performance.now()-O>=P())&&(O=performance.now(),L()):L()),g.current=requestAnimationFrame(N);}g.current=requestAnimationFrame(N);});return {onHotkeyPreviewAnimation:w,onStartPreviewAnimation:S,previewAnimationProgress:s}}function j1(e){GM.setClipboard(e),Et(`已复制: ${e}`);}const mI=jp(),Iu=m.memo(function({style:t,className:n,item:r,loading:o,active:a,onRemoveCurrent:i,onMoveToFirst:s,onRefresh:l,emitter:c,...u}){o=o??!r;const d=vK((r==null?void 0:r.api)==="app"&&r.param),f=m.useMemo(()=>r&&fI(r),[r]),h=goe(f==null?void 0:f.authorMid);return D("div",{style:t,className:G("bili-video-card",Vt.biliVideoCard,n),...u,children:o?D(tae,{loading:o}):r&&f&&(d?D(nae,{item:r,emitter:c,dislikedReason:d}):h?D(rae,{cardData:f}):D(dae,{item:r,cardData:f,active:a,emitter:c,onRemoveCurrent:i,onMoveToFirst:s,onRefresh:l}))})});var Joe={name:"16dof6j",styles:"flex:1;margin-left:10px"},eae={name:"1po2nvr",styles:"width:32px;height:32px;border-radius:50%"};const tae=m.memo(function({loading:t}){const{styleFancy:n}=hn();return ve("div",{className:G("bili-video-card__skeleton",{hide:!t,[Vt.skeletonActive]:t}),children:[D("div",{className:"bili-video-card__skeleton--cover",style:uI}),!n&&D("div",{className:"bili-video-card__skeleton--info",children:ve("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"})]})}),n&&ve("div",{className:"bili-video-card__skeleton--info",children:[D("div",{className:"bili-video-card__skeleton--avatar",css:eae}),ve("div",{className:"bili-video-card__skeleton--right",css:Joe,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"})]})]})]})}),nae=m.memo(function({dislikedReason:t,item:n,emitter:r=mI}){const o=lt(async()=>{if(!(t!=null&&t.id))return;let a=!1,i;try{a=await iK(n,t.id);}catch(s){i=s;}if(i)return console.error(i.stack||i),KS();a?Et("已撤销"):US(),a&&Kd.delete(n.param);});return Xa(r,"cancel-dislike",o),ve("div",{className:G(Vt.dislikedWrapper),children:[D("div",{className:Vt.dislikeContentCover,children:ve("div",{className:Vt.dislikeContentCoverInner,children:[D(Ft,{name:"DistraughtFace",size:32,className:Vt.dislikeIcon}),D("div",{className:Vt.dislikeReason,children:t==null?void 0:t.name}),D("div",{className:Vt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),D("div",{className:Vt.dislikeContentAction,children:ve("button",{onClick:o,children:[D(Ft,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),rae=m.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,a=lt(async()=>{if(!n)return;await iI.remove(n)&&Et(`已移出黑名单: ${o}`);});return ve("div",{className:G(Vt.dislikedWrapper),children:[D("div",{className:Vt.dislikeContentCover,children:ve("div",{className:Vt.dislikeContentCoverInner,children:[D(Ft,{name:"PeopleDelete",size:32,className:Vt.dislikeIcon}),D("div",{className:Vt.dislikeReason,children:"已拉黑"}),ve("div",{className:Vt.dislikeDesc,children:["UP: ",o]})]})}),D("div",{className:Vt.dislikeContentAction,children:ve("button",{onClick:a,children:[D(Ft,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})});var oae={name:"6wsul2",styles:"margin-top:4px;padding-left:0"},aae={name:"s5xdrg",styles:"display:flex;align-items:center"},iae={name:"zmsypw",styles:"margin-top:4px;color:var(--text3);font-size:var(--subtitle-font-size)"},sae={name:"1ic5zs4",styles:"display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-all;line-break:anywhere;color:var(--text1);font-size:var(--title-font-size);line-height:var(--title-line-height)"},lae={name:"16dof6j",styles:"flex:1;margin-left:10px"},cae={name:"1t32qz5",styles:"display:flex;margin-top:15px"},uae={name:"11ginrh",styles:"background-color:unset;position:static"};const dae=m.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:a,onRefresh:i,emitter:s=mI}){var qe,Ye;const l=t.api==="pc",c=t.api==="app";t.api,t.api,t.api;const{styleFancy:u}=hn();let{avid:d,bvid:f,goto:h,href:g,title:v,titleRender:p,desc:b,cover:y,pubdateDisplay:C,pubdateDisplayTitle:$,duration:w,durationStr:E,recommendReason:S,invalidReason:x,play:I,like:P,coin:R,danmaku:O,favorite:N,bangumiFollow:A,statItems:L,authorName:T,authorFace:M,authorMid:_,appBadge:z,appBadgeDesc:F}=n;const B=h==="av";["av","bangumi","picture"].includes(h)||console.warn(`[${an}]: none (av,bangumi,picture) goto type %s`,h,t);const[H,V]=m.useState(null),K=m.useRef(!1),X=lt(async()=>{if(!H&&!K.current)try{K.current=!0,V(await oK(d));}finally{K.current=!1;}}),q=m.useRef(null),[te,W]=m.useState(void 0);ko("mouseenter",ke=>{var st;const Be=(st=q.current)==null?void 0:st.getBoundingClientRect();if(!Be)return;const{x:rt}=Be,ft=ke.pageX-window.pageXOffset-rt;W(ft);},{target:q});const Q=rm(q),{autoPreviewWhenHover:Y}=hn(),{onStartPreviewAnimation:ie,onHotkeyPreviewAnimation:le,previewAnimationProgress:J}=Qoe({bvid:f,title:v,autoPreviewWhenHover:Y,active:r,tryFetchVideoData:X,videoPreviewWrapperRef:q});uu(()=>{if(r){try{unsafeWindow[`${uD}_activeItem`]=t;}catch(ke){console.warn("set unsafeWindow activeItem error"),console.warn(ke.stack||ke);}Mt.autoPreviewWhenKeyboardSelect&&ie();}},[r]);const re=m.useRef(null),fe=rm(re),ee=noe(f),ce=HG(is),{accessKey:he}=hn(),ne=!!he;m.useEffect(()=>{Q&&X();},[Q]);const oe=t.api!=="app"||t.api==="app"&&t.goto==="av",me=m.useRef(!1),pe=lt(async(ke,Be)=>{if(ke==null||ke.preventDefault(),Be??(Be=ee?Fy:is),Be!==is&&Be!==Fy)throw new Error("unexpected usingAction provided");if(me.current)return {success:!1};me.current=!0;let rt=!1;try{rt=await Be(d);}finally{me.current=!1;}const ft=Be===is;return rt&&(ft?li.bvidSet.add(f):li.bvidSet.delete(f),t.api==="watchlater"?ft||(await wr(100),o==null||o(t,n)):Et(`已${ft?"添加":"移除"}稍后再看`)),{success:rt,targetState:ft}}),_e=m.useRef(null),Ve=rm(_e),He=lt(ke=>{if(ke==null||ke.stopPropagation(),ke==null||ke.preventDefault(),!ct)return t.api!=="app"?Et("当前视频不支持提交「我不想看」"):ne?void 0:Et("请先获取 access_key");CK(t);}),Me=m.useMemo(()=>Zo(I),[I]),Qe=m.useMemo(()=>Zo(P),[P]),Xe=m.useMemo(()=>Zo(O),[O]),We=m.useMemo(()=>Zo(N),[N]),Pe=l?Qe:We,Ce=({text:ke,iconSvgName:Be,iconSvgScale:rt})=>ve("span",{className:"bili-video-card__stats--item",children:[D("svg",{className:"bili-video-card__stats--icon",style:{transform:rt?`scale(${rt})`:void 0},children:D("use",{href:Be})}),D("span",{className:"bili-video-card__stats--text",children:ke})]}),[je,it]=m.useState(void 0),[vt,nt]=m.useState(void 0),Je=lt(async()=>{if(t.api!=="watchlater")return;const ke=await $m.getVideoFavState(d);if(ke){const{favFolderNames:Be,favFolderUrls:rt}=ke;it(Be),nt(rt);}}),yt=lt(()=>{window.open(g,"_blank");}),$t=lt(()=>{GM.openInTab(g,{active:!1,insert:!0});});Xa(s,"open",yt),Xa(s,"toggle-watch-later",()=>pe()),Xa(s,"trigger-dislike",()=>He()),Xa(s,"start-preview-animation",ie),Xa(s,"hotkey-preview-animation",le);const ct=c&&ne&&!!((Ye=(qe=t.three_point)==null?void 0:qe.dislike_reasons)!=null&&Ye.length),pt=lt(()=>{let ke=g;g.startsWith("/")&&(ke=new URL(g,location.href).href),j1(ke);}),xt=lt(()=>{let ke=g;t.api==="watchlater"&&(ke=`/video/${t.bvid}`);const Be=new URL(ke,location.href).href,rt=`iina://open?url=${encodeURIComponent(Be)}`;window.open(rt,"_self");}),Oe=Al(),Re=Oe==="recommend-app"||Oe==="recommend-pc",Ne=lt(async()=>{if(!_)return Et("UP mid 为空!");await iI.add(_)&&Et(`已加入黑名单: ${T}`);}),ge=t.api==="dynamic"||(t.api==="app"||t.api==="pc")&&S==="已关注",Fe=lt(async()=>{if(!_)return;await boe.unfollow(_)&&Et("已取消关注");}),xe=t.api==="dynamic"&&!!i,de=lt(async()=>{!_||!T||(oI({upMid:Number(_),upName:T}),await wr(100),await(i==null?void 0:i()));}),ae=m.useMemo(()=>{const ke=ee?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:D(Ft,{name:"EfferentFour",size:15}),onClick:yt},{key:"open-link-in-background",label:"后台打开",icon:D(Ft,{name:"Split",size:15}),onClick:$t},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:D(Ft,{name:"Copy",size:15}),onClick:pt},{key:"copy-bvid",label:"复制 BVID",icon:D(Ft,{name:"Copy",size:15}),onClick(){j1(f);}},{type:"divider"},ct&&{key:"dislike",label:"我不想看",icon:D(Ft,{name:"DislikeTwo",size:15}),onClick(){He();}},xe&&{key:"dymamic-feed-filter-select-up",label:"查看 UP 的动态",icon:D(Ft,{name:"PeopleSearch",size:15}),onClick:de},ge&&{key:"unfollow-up",label:"取消关注",icon:D(Ft,{name:"PeopleMinus",size:15}),onClick:Fe},Re&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:D(Ft,{name:"PeopleDelete",size:15}),onClick:Ne},t.api==="watchlater"&&{key:"add-fav",icon:D(Ft,{name:"Star",size:15,...je!=null&&je.length?{theme:"two-tone",fill:["currentColor",to]}:void 0}),label:je!=null&&je.length?`已收藏 ${je.map(Be=>`「${Be}」`).join("")}`:"快速收藏",async onClick(){!!(je!=null&&je.length)?vt==null||vt.forEach(rt=>{window.open(rt,"_blank");}):await $m.addFav(d)&&Et(`已加入收藏夹「${cg}」`);}},oe&&{key:"watchlater",label:ke,icon:D(Ft,{name:ee?"Delete":"FileCabinet",size:15}),onClick(){pe();}},t.api==="watchlater"&&ee&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:D(Ft,{name:"AddTwo",size:15}),async onClick(){const{success:Be}=await pe(void 0,is);Be&&(a==null||a(t,n));}},...t.api==="fav"?[{type:"divider"},{key:"open-fav-folder",label:"浏览收藏夹",icon:D(Ft,{name:"EfferentFour",size:15}),onClick(){const{id:Be}=t.folder,rt=QE(Be);window.open(rt,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:D(Ft,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await $m.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...gB?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:D(Ft,{name:"PlayTwo",size:15}),onClick:xt}]:[]].filter(Boolean)},[t,oe,ee,ct,ge,Re,xe,je,vt]),be=lt(ke=>{ke&&Je();}),Se=_?`https://space.bilibili.com/${_}`:g;b||(b=`${T}${C?` · ${C}`:""}`);const we=T&&$?`${T} · ${$}`:b;return ve("div",{className:"bili-video-card__wrap __scale-wrap",css:uae,children:[D(yp,{menu:{items:ae},trigger:["contextMenu"],onOpenChange:be,children:D("a",{href:g,target:"_blank",children:ve("div",{className:"bili-video-card__image __scale-player-wrap",ref:q,style:{...uI,aspectRatio:"16 / 9"},children:[ve("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[ve("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!_v&&D("source",{srcSet:`${y}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),D("source",{srcSet:`${y}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),D("img",{src:`${y}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(Q||typeof J=="number")&&D(zoe,{videoDuration:w,pvideo:H==null?void 0:H.pvideoData,mouseEnterRelativeX:te,previewAnimationProgress:J}),oe&&ve("div",{className:`bili-watch-later ${Vt.watchLater}`,style:{display:Q||r?"flex":"none"},ref:re,onClick:pe,children:[ee?D("svg",{className:"bili-watch-later__icon",viewBox:"0 0 200 200",children:D(A7.path,{d:"M25,100 l48,48 a 8.5,8.5 0 0 0 10,0 l90,-90",strokeWidth:"20",stroke:"currentColor",fill:"transparent",strokeLinecap:"round",...ce?void 0:{initial:{pathLength:0},animate:{pathLength:1}}})}):D("svg",{className:"bili-watch-later__icon",children:D("use",{href:"#widget-watch-later"})}),D("span",{className:"bili-watch-later__tip",style:{display:fe?"block":"none"},children:ee?"移除稍后再看":"稍后再看"})]}),ct&&ve("div",{ref:_e,className:Vt.btnDislike,onClick:He,style:{display:Q?"flex":"none"},children:[D("svg",{className:Vt.btnDislikeIcon,children:D("use",{href:"#widget-close"})}),D("span",{className:Vt.btnDislikeTip,style:{display:Ve?"block":"none"},children:"我不想看"})]})]}),D("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:ve("div",{className:"bili-video-card__stats",children:[D("div",{className:"bili-video-card__stats--left",children:L!=null&&L.length?D(Rt,{children:L.map(({field:ke,value:Be})=>D(m.Fragment,{children:Ce({text:Be,iconSvgName:ms[ke],iconSvgScale:Voe[ke]})},ke))}):l?ve(Rt,{children:[Ce({text:Me||"",iconSvgName:ms.play}),Ce({text:(h==="av"?Qe:Pe)||"",iconSvgName:ms.like})]}):ve(Rt,{children:[Ce({text:Me||"",iconSvgName:ms.play}),Ce({text:Xe||"",iconSvgName:ms.danmaku})]})}),D("span",{className:"bili-video-card__stats__duration",children:B&&E})]})})]})})}),!u&&D("div",{className:"bili-video-card__info __scale-disable",children:ve("div",{className:"bili-video-card__info--right",children:[D("a",{href:g,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:D("h3",{className:"bili-video-card__info--tit",title:v,children:p??v})}),D("p",{className:"bili-video-card__info--bottom",children:B?ve("a",{className:"bili-video-card__info--owner",href:Se,target:"_blank",title:we,children:[S?D("span",{className:Vt.recommendReason,children:S}):D("svg",{className:"bili-video-card__info--owner__up",children:D("use",{href:"#widget-up"})}),D("span",{className:"bili-video-card__info--author",children:b})]}):z||F?ve("a",{className:"bili-video-card__info--owner",href:g,target:"_blank",children:[D("span",{className:Vt.badge,children:z||""}),D("span",{className:Vt.bangumiDesc,children:F||""})]}):null})]})}),u&&ve("div",{css:cae,children:[D("a",{href:Se,target:"_blank",children:M?D(gu,{src:M}):D(gu,{children:(T==null?void 0:T[0])||(F==null?void 0:F[0])||""})}),ve("div",{css:lae,children:[D("a",{href:g,target:"_blank",children:D("h3",{title:v,css:sae,children:p??v})}),D("div",{css:iae,children:B?ve(Rt,{children:[D("div",{css:aae,children:D("a",{className:"bili-video-card__info--owner",href:Se,target:"_blank",title:we,children:D("span",{className:"bili-video-card__info--author",children:b})})}),!!S&&D("div",{className:Vt.recommendReason,css:oae,children:S})]}):z||F?ve("a",{className:"bili-video-card__info--owner",href:g,target:"_blank",children:[!!z&&D("span",{className:Vt.badge,children:z}),!!F&&D("span",{className:Vt.bangumiDesc,children:F})]}):null})]})]})]})}),fae=()=>document.querySelector(".bili-header__bar");function mae(){const e=fae();return !!(e&&window.getComputedStyle(e).display==="none")}function dg(){if(!mae())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 Pu=ur({value:dg()});function hae(){return hr(Pu).value}function hI(){return Pu.value}setTimeout(()=>{Pu.value=dg();const e=new MutationObserver(()=>{Pu.value=dg();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);const Bp="_video-grid_a30b7_8",gI="_video-grid-new-homepage_a30b7_16",gae="_limit-two-lines_a30b7_19",vI="_video-grid-internal-testing_a30b7_51";const B1="_video-grid-container_a30b7_79",vae="_video-grid-fancy_a30b7_83",pae="_narrow-mode_a30b7_111";function bae({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:a,changeScrollY:i,videoCardEmitters:s}){const[l,c]=m.useState(void 0),u=lt(()=>!(!e||ld())),d=lt(()=>{var S;if(typeof l!="number"||!o.current)return !1;const w=a(),E=(S=o.current.querySelector(`.${ui.card}.${ui.cardActive}`))==null?void 0:S.getBoundingClientRect();return !(!w||!E||E.top-w.top<-(w.height+E.height)||E.top-w.top>w.height*2+E.height)}),f=w=>E=>{if(!u())return;E==null||E.preventDefault();let S=typeof w=="number"?w:w();const x=d()?l+S:p();if(x<n){$(n);return}if(x>r){$(r);return}c(x),$(x);};cn("leftarrow",f(-1),{exactMatch:!0}),cn("rightarrow",f(1),{exactMatch:!0}),cn("tab",f(1),{exactMatch:!0}),cn("shift.tab",f(-1),{exactMatch:!0});const h=()=>Hp(o.current);cn("uparrow",f(()=>-h()),{exactMatch:!0}),cn("downarrow",f(h),{exactMatch:!0});const g=()=>{u()&&c(void 0);},v=()=>{if(!(!u()||typeof l!="number"))return s[l]};cn("esc",g),cn("enter",()=>{var w;!u()||typeof l!="number"||(w=v())==null||w.emit("open");}),cn("backspace",()=>{var w;!u()||typeof l!="number"||(w=v())==null||w.emit("trigger-dislike");}),cn(["s","w"],()=>{var w;!u()||typeof l!="number"||(w=v())==null||w.emit("toggle-watch-later");},{exactMatch:!0}),cn(["period","p"],()=>{var w;!u()||typeof l!="number"||(w=v())==null||w.emit("hotkey-preview-animation");},{exactMatch:!0});function p(){const w=a();if(!w)return 0;const E=y();for(let S=0;S<E.length;S++)if(E[S].getBoundingClientRect().top>=w.top)return S;return 0}const b=`.${ui.card}`;function y(){var w;return [...((w=o.current)==null?void 0:w.querySelectorAll(b))||[]]}function C(w){return y()[w]}function $(w){var I;const E=C(w);(I=E==null?void 0:E.scrollIntoViewIfNeeded)==null||I.call(E,!1);const S=a(),x=E.getBoundingClientRect();if(!(!S||!x)){if(x.top<=S.top){const P=-(S.top-x.top+10);i==null||i({offset:P});return}if(S.bottom-x.bottom<10){const P=10-(S.bottom-x.bottom);i==null||i({offset:P});return}}}return {activeIndex:l,clearActiveIndex:g}}const yae=new Map,Cae=new Map;function Hp(e,t=!0){if(t&&Mt.useNarrowMode)return 2;const n=Mt.styleFancy?yae:Cae;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${Bp}`)),!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 pI(e){return e==="keep-follow-only"||Mt.filterEnabled&&(Mt.filterMinDurationEnabled||Mt.filterMinPlayCountEnabled||Mt.filterOutGotoTypePicture)}function bI(e,t){return pI(t)?e.filter(n=>{const{play:r,duration:o,recommendReason:a,goto:i}=fI(n),s=a==="已关注"||(a==null?void 0:a.includes("关注"));if(t==="keep-follow-only"&&!s)return !1;const l=i==="av",c=i==="picture";if(l)return u();if(c)return d();return !0;function u(){return s&&!Mt.enableFilterForFollowedVideo?!0:!(Mt.filterMinPlayCountEnabled&&Mt.filterMinPlayCount&&typeof r=="number"&&r<Mt.filterMinPlayCount||Mt.filterMinDurationEnabled&&Mt.filterMinDuration&&o&&o<Mt.filterMinDuration)}function d(){return Mt.filterOutGotoTypePicture?!!(s&&!Mt.enableFilterForFollowedPicture):!0}}):e}var df={exports:{}},Vp={exports:{}},yI={exports:{}},un=yI.exports={},Ur,Xr;function fg(){throw new Error("setTimeout has not been defined")}function mg(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ur=setTimeout:Ur=fg;}catch{Ur=fg;}try{typeof clearTimeout=="function"?Xr=clearTimeout:Xr=mg;}catch{Xr=mg;}})();function CI(e){if(Ur===setTimeout)return setTimeout(e,0);if((Ur===fg||!Ur)&&setTimeout)return Ur=setTimeout,setTimeout(e,0);try{return Ur(e,0)}catch{try{return Ur.call(null,e,0)}catch{return Ur.call(this,e,0)}}}function Sae(e){if(Xr===clearTimeout)return clearTimeout(e);if((Xr===mg||!Xr)&&clearTimeout)return Xr=clearTimeout,clearTimeout(e);try{return Xr(e)}catch{try{return Xr.call(null,e)}catch{return Xr.call(this,e)}}}var fo=[],ci=!1,ra,Ac=-1;function $ae(){!ci||!ra||(ci=!1,ra.length?fo=ra.concat(fo):Ac=-1,fo.length&&SI());}function SI(){if(!ci){var e=CI($ae);ci=!0;for(var t=fo.length;t;){for(ra=fo,fo=[];++Ac<t;)ra&&ra[Ac].run();Ac=-1,t=fo.length;}ra=null,ci=!1,Sae(e);}}un.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];fo.push(new $I(e,t)),fo.length===1&&!ci&&CI(SI);};function $I(e,t){this.fun=e,this.array=t;}$I.prototype.run=function(){this.fun.apply(null,this.array);};un.title="browser";un.browser=!0;un.env={};un.argv=[];un.version="";un.versions={};function So(){}un.on=So;un.addListener=So;un.once=So;un.off=So;un.removeListener=So;un.removeAllListeners=So;un.emit=So;un.prependListener=So;un.prependOnceListener=So;un.listeners=function(e){return []};un.binding=function(e){throw new Error("process.binding is not supported")};un.cwd=function(){return "/"};un.chdir=function(e){throw new Error("process.chdir is not supported")};un.umask=function(){return 0};var wae=yI.exports;const Lc=bn(wae);var hg;typeof Object.create=="function"?hg=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:hg=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const wI=hg;var xae=/%[sdj%]/g;function Mi(e){if(!Gl(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(eo(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,a=String(e).replace(xae,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}}),i=r[n];n<o;i=r[++n])Wl(i)||!Ia(i)?a+=" "+i:a+=" "+eo(i);return a}function Wp(e,t){if(Zr(global.process))return function(){return Wp(e,t).apply(this,arguments)};if(Lc.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(Lc.throwDeprecation)throw new Error(t);Lc.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var pc={},xm;function xI(e){if(Zr(xm)&&(xm=Lc.env.NODE_DEBUG||""),e=e.toUpperCase(),!pc[e])if(new RegExp("\\b"+e+"\\b","i").test(xm)){var t=0;pc[e]=function(){var n=Mi.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else pc[e]=function(){};return pc[e]}function eo(e,t){var n={seen:[],stylize:Iae};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),ff(t)?n.showHidden=t:t&&Xp(n,t),Zr(n.showHidden)&&(n.showHidden=!1),Zr(n.depth)&&(n.depth=2),Zr(n.colors)&&(n.colors=!1),Zr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Eae),Ou(n,e,n.depth)}eo.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]};eo.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Eae(e,t){var n=eo.styles[t];return n?"\x1B["+eo.colors[n][0]+"m"+e+"\x1B["+eo.colors[n][1]+"m":e}function Iae(e,t){return e}function Pae(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function Ou(e,t,n){if(e.customInspect&&t&&ks(t.inspect)&&t.inspect!==eo&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return Gl(r)||(r=Ou(e,r,n)),r}var o=Oae(e,t);if(o)return o;var a=Object.keys(t),i=Pae(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Ns(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Em(t);if(a.length===0){if(ks(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(_s(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Mu(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ns(t))return Em(t)}var l="",c=!1,u=["{","}"];if(Gp(t)&&(c=!0,u=["[","]"]),ks(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(_s(t)&&(l=" "+RegExp.prototype.toString.call(t)),Mu(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Ns(t)&&(l=" "+Em(t)),a.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return _s(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return c?f=Mae(e,t,n,i,a):f=a.map(function(h){return gg(e,t,n,i,h,c)}),e.seen.pop(),Rae(f,l,u)}function Oae(e,t){if(Zr(t))return e.stylize("undefined","undefined");if(Gl(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(Kp(t))return e.stylize(""+t,"number");if(ff(t))return e.stylize(""+t,"boolean");if(Wl(t))return e.stylize("null","null")}function Em(e){return "["+Error.prototype.toString.call(e)+"]"}function Mae(e,t,n,r,o){for(var a=[],i=0,s=t.length;i<s;++i)RI(t,String(i))?a.push(gg(e,t,n,r,String(i),!0)):a.push("");return o.forEach(function(l){l.match(/^\d+$/)||a.push(gg(e,t,n,r,l,!0));}),a}function gg(e,t,n,r,o,a){var i,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")),RI(r,o)||(i="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(Wl(n)?s=Ou(e,l.value,null):s=Ou(e,l.value,n-1),s.indexOf(`
`)>-1&&(a?s=s.split(`
`).map(function(c){return "  "+c}).join(`
`).substr(2):s=`
`+s.split(`
`).map(function(c){return "   "+c}).join(`
`))):s=e.stylize("[Circular]","special")),Zr(i)){if(a&&o.match(/^\d+$/))return s;i=JSON.stringify(""+o),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"));}return i+": "+s}function Rae(e,t,n){var r=e.reduce(function(o,a){return a.indexOf(`
`)>=0,o+a.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(t===""?"":t+`
 `)+" "+e.join(`,
  `)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function Gp(e){return Array.isArray(e)}function ff(e){return typeof e=="boolean"}function Wl(e){return e===null}function EI(e){return e==null}function Kp(e){return typeof e=="number"}function Gl(e){return typeof e=="string"}function II(e){return typeof e=="symbol"}function Zr(e){return e===void 0}function _s(e){return Ia(e)&&Up(e)==="[object RegExp]"}function Ia(e){return typeof e=="object"&&e!==null}function Mu(e){return Ia(e)&&Up(e)==="[object Date]"}function Ns(e){return Ia(e)&&(Up(e)==="[object Error]"||e instanceof Error)}function ks(e){return typeof e=="function"}function PI(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function OI(e){return Buffer.isBuffer(e)}function Up(e){return Object.prototype.toString.call(e)}function Im(e){return e<10?"0"+e.toString(10):e.toString(10)}var Tae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _ae(){var e=new Date,t=[Im(e.getHours()),Im(e.getMinutes()),Im(e.getSeconds())].join(":");return [e.getDate(),Tae[e.getMonth()],t].join(" ")}function MI(){console.log("%s - %s",_ae(),Mi.apply(null,arguments));}function Xp(e,t){if(!t||!Ia(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function RI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const Nae={inherits:wI,_extend:Xp,log:MI,isBuffer:OI,isPrimitive:PI,isFunction:ks,isError:Ns,isDate:Mu,isObject:Ia,isRegExp:_s,isUndefined:Zr,isSymbol:II,isString:Gl,isNumber:Kp,isNullOrUndefined:EI,isNull:Wl,isBoolean:ff,isArray:Gp,inspect:eo,deprecate:Wp,format:Mi,debuglog:xI},kae=Object.freeze(Object.defineProperty({__proto__:null,_extend:Xp,debuglog:xI,default:Nae,deprecate:Wp,format:Mi,inherits:wI,inspect:eo,isArray:Gp,isBoolean:ff,isBuffer:OI,isDate:Mu,isError:Ns,isFunction:ks,isNull:Wl,isNullOrUndefined:EI,isNumber:Kp,isObject:Ia,isPrimitive:PI,isRegExp:_s,isString:Gl,isSymbol:II,isUndefined:Zr,log:MI},Symbol.toStringTag,{value:"Module"})),Aae=NP(kae);var Lae=Aae.format;function Dae(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function Fae(e,t){return function(){var n=this,r=[].slice.call(arguments);Dae();var o=new AbortController;return r.push(o.signal),new Promise(function(a,i){var s=setTimeout(function(){var l=new TI(t);i(l),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(l){clearTimeout(s),a(l);},function(l){clearTimeout(s),i(l);});})}}let TI=class _I extends Error{constructor(t){super(),this.timeout=t,this.message=Lae("timeout of %sms exceed",t),Error.captureStackTrace(this,_I);}};Vp.exports=Fae;Vp.exports.TimeoutError=TI;var zae=Vp.exports;const NI=zae,jae=NI.TimeoutError;df.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,a=n.timeout;a&&(t=NI(t,a));const i=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 Bae)throw f.originalError;c[u]=f,i&&i(f,u);}throw new kI({times:o,timeout:a,fn:r,errors:c})}};class kI 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);}}let Bae=class 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 Hae=df.exports.RetryError=kI;df.exports.TimeoutError=jae;var Vae=df.exports;const Wae=bn(Vae);class qp extends Error{constructor(n){super();At(this,"json");Error.captureStackTrace(this,qp),this.json=n,this.message=n.message||JSON.stringify(n);}}async function Gae(){var r;const t=(await id.get(NS+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"iphone",device:"pad",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 qp(t);return Et(`${an}: 未知错误, 请联系开发者

  code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const Kae=Wae(Gae,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",an,t,e);}});async function Uae(){try{return await Kae()}catch(e){if(e instanceof Hae){console.error(e.errors);const t=[Mi("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>Mi("  %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(`
`);Et(t,5e3);}throw e}}class Ru{constructor(){At(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(()=>Uae()))).flat();})(),n=n.filter(o=>!(o.goto.includes("ad")||o.card_goto.includes("ad")||o.ad_info)),n=uf(n,o=>o.param),n.map(o=>({...o,api:"app",device:"ipad",uniqId:o.param+"-"+crypto.randomUUID()}))}}At(Ru,"PAGE_SIZE",10);const bc=Bi.extend("service"),Dc=e=>dI(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 Xae(e,t){const n=e.map(Dc);return t=uf(t,Dc),e.concat(t.filter(r=>!n.includes(Dc(r))))}const vg=e=>e==="keep-follow-only"||e==="recommend-pc";async function AI(e,t,n=5){const{pcRecService:r,dynamicFeedService:o,watchLaterService:a,favService:i,tab:s,abortSignal:l}=t,c=new Ru;let u=[],d=!0;const f=async h=>{let g=[];if(s==="dynamic-feed"){g=await o.loadMore(l)||[],d=o.hasMore,u=u.concat(g);return}if(s==="watchlater"){g=await a.loadMore()||[],d=a.hasMore,u=u.concat(g);return}if(s==="fav"){g=await i.loadMore()||[],d=i.hasMore,u=u.concat(g);return}let v;if(s==="keep-follow-only")v=8,bc("getMinCount: addMore(restCount = %s) times=%s",h,v);else {const p=vg(s)?Qs.PAGE_SIZE:Ru.PAGE_SIZE,b=pI(s)?n:1.2;v=Math.ceil(h*b/p),bc("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",h,b,p,v);}g=vg(s)?await r.getRecommendTimes(v,l):await c.getRecommendTimes(v),g=bI(g,s),u=u.concat(g),u=uf(u,Dc);};for(await f(e);;){if(l!=null&&l.aborted){bc("getMinCount: break for abortSignal");break}if(!d){bc("getMinCount: break for tab=%s hasMore=false",s);break}if(u.length>=e)break;await f(e-u.length);}return u}async function qae(e){let t=await AI(Hp(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function Yae(e){return AI(Hp()*3+1,e,5)}async function Zae(e,t,n){let r=vg(t)?await n.getRecommendTimes(e):await new Ru().getRecommendTimes(e);return r=bI(r,t),r}var pg=new Map,yc=new WeakMap,H1=0,Qae=void 0;function Jae(e){return e?(yc.has(e)||(H1+=1,yc.set(e,H1.toString())),yc.get(e)):"0"}function eie(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Jae(e.root):e[t]}`).toString()}function tie(e){let t=eie(e),n=pg.get(t);if(!n){const r=new Map;let o;const a=new IntersectionObserver(i=>{i.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=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},pg.set(t,n);}return n}function nie(e,t,n={},r=Qae){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:a,elements:i}=tie(n);let s=i.get(e)||[];return i.has(e)||i.set(e,s),s.push(t),a.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(i.delete(e),a.unobserve(e)),i.size===0&&(a.disconnect(),pg.delete(o));}}function rie({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:a,skip:i,initialInView:s,fallbackInView:l,onChange:c}={}){var u;const[d,f]=m__namespace.useState(null),h=m__namespace.useRef(),[g,v]=m__namespace.useState({inView:!!s,entry:void 0});h.current=c,m__namespace.useEffect(()=>{if(i||!d)return;let C;return C=nie(d,($,w)=>{v({inView:$,entry:w}),h.current&&h.current($,w),w.isIntersecting&&a&&C&&(C(),C=void 0);},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{C&&C();}},[Array.isArray(e)?e.toString():e,d,o,r,a,i,n,l,t]);const p=(u=g.entry)==null?void 0:u.target,b=m__namespace.useRef();!d&&p&&!a&&!i&&b.current!==p&&(b.current=p,v({inView:!!s,entry:void 0}));const y=[f,g.inView,g.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const hs=Bi.extend("components:RecGrid"),ui={card:Uc({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:Uc("border-color:",to,";border-radius:",cI,";overflow:hidden;box-shadow:0px 0px 9px 4px ",to,";","")};var oie={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const LI=m.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:a,setExtraInfo:i},s)=>{const{useNarrowMode:l,styleFancy:c}=hn(),u=Al(),[d,f]=m.useState(0),h=lt(async()=>{V(),i==null||i();}),g=lt(()=>{V(),f(1),u==="watchlater"&&(i==null||i(R.usageInfo)),u==="fav"&&(i==null||i(O.usageInfo)),u==="dynamic-feed"&&(i==null||i(P.usageInfo)),T();}),{refresh:v,items:p,setItems:b,error:y,refreshing:C,refreshedAt:$,getRefreshedAt:w,swr:E,hasMore:S,setHasMore:x,pcRecService:I,dynamicFeedService:P,watchLaterService:R,favService:O}=nI({tab:u,debug:hs,fetcher:Yae,recreateService:!0,preAction:h,postAction:g,onScrollToTop:n,setUpperRefreshing:a});Ml(v),m.useImperativeHandle(s,()=>({refresh:v}),[]);const N=m.useRef();ko("visibilitychange",J=>{if(!(document.visibilityState==="visible")){N.current=Date.now();return}C||A.current[$]||u==="watchlater"&&N.current&&Date.now()-N.current>dl("1h")&&v(!0,{watchlaterKeepOrder:!0});},{target:document});const A=m.useRef({}),L=lt(async()=>{if(!S||C)return;const J=$;if(A.current[J])return;A.current={[J]:!0};let re=p,fe=!0;try{if(u==="dynamic-feed")re=re.concat(await P.loadMore()||[]),fe=P.hasMore;else if(u==="watchlater")re=re.concat(await R.loadMore()||[]),fe=R.hasMore;else if(u==="fav")re=re.concat(await O.loadMore()||[]),fe=O.hasMore;else for(;!(re.length>p.length);){const ce=await Zae(u==="keep-follow-only"?5:2,u,I);re=Xae(re,ce);}}catch(ee){throw A.current[J]=!1,ee}if(J!==w()){hs("loadMore: skip update for mismatch refreshedAt, %s != %s",J,w());return}hs("loadMore: seq(%s) len %s -> %s",d+1,p.length,re.length),x(fe),b(re),f(ee=>ee+1),A.current[J]=!1,T();}),T=lt(async()=>{await wr(_v?100:50),hs("checkShouldLoadMore(): footerInView = %s",Q.current),Q.current&&L();}),M=m.useRef(null),_=lt(()=>{var J;if(e){const re=hI()+50;return new DOMRect(0,re,window.innerWidth,window.innerHeight-re)}else return (J=o==null?void 0:o.current)==null?void 0:J.getBoundingClientRect()}),z=bK(),F=m.useMemo(()=>new Map,[$]),B=m.useMemo(()=>p.map(({uniqId:J})=>F.get(J)||(()=>{const re=jp();return F.set(J,re),re})()),[p]),{activeIndex:H,clearActiveIndex:V}=bae({enabled:t&&!z,refresh:v,maxIndex:p.length-1,containerRef:M,getScrollerRect:_,videoCardEmitters:B,changeScrollY:e?function({offset:J,absolute:re}){const fe=document.documentElement;if(typeof J=="number"){fe.scrollTop+=J;return}if(typeof re=="number"){fe.scrollTop=re;return}}:void 0}),K=va(),X=lt((J,re)=>{b(fe=>{const ee=fe.findIndex(he=>he.uniqId===J.uniqId);if(ee===-1)return fe;let ce=fe.slice();return ce.splice(ee,1),Et(`已移除: ${re.title}`,4e3),u==="watchlater"&&(R.count--,i==null||i(R.usageInfo)),u==="fav"&&(O.total--,i==null||i(O.usageInfo)),ce});}),q=lt((J,re)=>{b(fe=>{const ee=fe.find(ne=>ne.uniqId===J.uniqId);if(!ee)return fe;const ce=fe.indexOf(ee),he=fe.slice();return he.splice(ce,1),he.unshift(ee),he});}),{ref:te,inView:W}=rie({root:e?null:(o==null?void 0:o.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(J){J&&(hs("footerInView change to visible",J),L());}}),Q=wi(W),Y=D("div",{ref:te,css:oie,children:!C&&D(Rt,{children:S?ve(Rt,{children:[D(Ft,{name:"Loading",fill:to,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),ie=G(`${an}-video-grid`,Bp,c?vae:K?vI:gI,l&&pae,r);return !p.length||y||C&&!E?D("div",{className:B1,children:D("div",{className:ie,children:new Array(28).fill(void 0).map((J,re)=>D(Iu,{loading:!0,className:ui.card},re))})}):ve("div",{style:{minHeight:"100%"},className:B1,children:[D("div",{ref:M,className:ie,children:p.map((J,re)=>{const fe=re===H;return D(Iu,{className:G(ui.card,{[ui.cardActive]:fe}),item:J,active:fe,onRemoveCurrent:X,onMoveToFirst:q,onRefresh:v,emitter:B[re]},J.uniqId)})}),Y]})});var Pa=m__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function bg(e,t,n){return (e-t)/(n-t)}function Yp(e,t,n,r){var o=bg(t,n,r),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function ni(e,t){return Array.isArray(e)?e[t]:e}var aie=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],iie=m__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,a=e.value,i=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,f=et(e,aie),h=m__namespace.useContext(Pa),g=h.min,v=h.max,p=h.direction,b=h.disabled,y=h.keyboard,C=h.range,$=h.tabIndex,w=h.ariaLabelForHandle,E=h.ariaLabelledByForHandle,S=h.ariaValueTextFormatterForHandle,x=h.styles,I=h.classNames,P="".concat(o,"-handle"),R=function(T){b||s(T,i);},O=function(T){if(!b&&y){var M=null;switch(T.which||T.keyCode){case ue.LEFT:M=p==="ltr"||p==="btt"?-1:1;break;case ue.RIGHT:M=p==="ltr"||p==="btt"?1:-1;break;case ue.UP:M=p!=="ttb"?1:-1;break;case ue.DOWN:M=p!=="ttb"?-1:1;break;case ue.HOME:M="min";break;case ue.END:M="max";break;case ue.PAGE_UP:M=2;break;case ue.PAGE_DOWN:M=-2;break}M!==null&&(T.preventDefault(),d(M,i));}},N=Yp(p,a,g,v),A=m__namespace.createElement("div",Ie({ref:t,className:G(P,(n={},j(n,"".concat(P,"-").concat(i+1),C),j(n,"".concat(P,"-dragging"),u),n),I.handle),style:U(U(U({},N),l),x.handle),onMouseDown:R,onTouchStart:R,onKeyDown:O,tabIndex:b?null:ni($,i),role:"slider","aria-valuemin":g,"aria-valuemax":v,"aria-valuenow":a,"aria-disabled":b,"aria-label":ni(w,i),"aria-labelledby":ni(E,i),"aria-valuetext":(r=ni(S,i))===null||r===void 0?void 0:r(a),"aria-orientation":p==="ltr"||p==="rtl"?"horizontal":"vertical"},f));return c&&(A=c(A,{index:i,prefixCls:o,value:a,dragging:u})),A}),sie=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],lie=m__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,s=e.handleRender,l=e.draggingIndex,c=et(e,sie),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,i.map(function(d,f){return m__namespace.createElement(iie,Ie({ref:function(g){g?u.current[f]=g:delete u.current[f];},dragging:l===f,prefixCls:n,style:ni(r,f),key:f,value:d,valueIndex:f,onStartMove:o,onOffsetChange:a,render:s},c))}))});function V1(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function cie(e,t,n,r,o,a,i,s,l){var c=m__namespace.useState(null),u=Z(c,2),d=u[0],f=u[1],h=m__namespace.useState(-1),g=Z(h,2),v=g[0],p=g[1],b=m__namespace.useState(n),y=Z(b,2),C=y[0],$=y[1],w=m__namespace.useState(n),E=Z(w,2),S=E[0],x=E[1],I=m__namespace.useRef(null),P=m__namespace.useRef(null);m__namespace.useEffect(function(){v===-1&&$(n);},[n,v]),m__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",I.current),document.removeEventListener("mouseup",P.current),document.removeEventListener("touchmove",I.current),document.removeEventListener("touchend",P.current);}},[]);var R=function(M,_){C.some(function(z,F){return z!==M[F]})&&(_!==void 0&&f(_),$(M),i(M));},O=function(M,_){if(M===-1){var z=S[0],F=S[S.length-1],B=r-z,H=o-F,V=_*(o-r);V=Math.max(V,B),V=Math.min(V,H);var K=a(z+V);V=K-z;var X=S.map(function(Q){return Q+V});R(X);}else {var q=(o-r)*_,te=Te(C);te[M]=S[M];var W=l(te,q,M,"dist");R(W.values,W.value);}},N=m__namespace.useRef(O);N.current=O;var A=function(M,_,z){M.stopPropagation();var F=z||n,B=F[_];p(_),f(B),x(F);var H=V1(M),V=H.pageX,K=H.pageY,X=function(W){W.preventDefault();var Q=V1(W),Y=Q.pageX,ie=Q.pageY,le=Y-V,J=ie-K,re=e.current.getBoundingClientRect(),fe=re.width,ee=re.height,ce;switch(t){case"btt":ce=-J/ee;break;case"ttb":ce=J/ee;break;case"rtl":ce=-le/fe;break;default:ce=le/fe;}N.current(_,ce);},q=function te(W){W.preventDefault(),document.removeEventListener("mouseup",te),document.removeEventListener("mousemove",X),document.removeEventListener("touchend",te),document.removeEventListener("touchmove",X),I.current=null,P.current=null,p(-1),s();};document.addEventListener("mouseup",q),document.addEventListener("mousemove",X),document.addEventListener("touchend",q),document.addEventListener("touchmove",X),I.current=X,P.current=q;},L=m__namespace.useMemo(function(){var T=Te(n).sort(function(_,z){return _-z}),M=Te(C).sort(function(_,z){return _-z});return T.every(function(_,z){return _===M[z]})?C:n},[n,C]);return [v,d,L,A]}function uie(e,t,n,r,o,a){var i=m__namespace.useCallback(function(h){var g=isFinite(h)?h:e;return g=Math.min(t,h),g=Math.max(e,g),g},[e,t]),s=m__namespace.useCallback(function(h){if(n!==null){var g=e+Math.round((i(h)-e)/n)*n,v=function(C){return (String(C).split(".")[1]||"").length},p=Math.max(v(n),v(t),v(e)),b=Number(g.toFixed(p));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),l=m__namespace.useCallback(function(h){var g=i(h),v=r.map(function(y){return y.value});n!==null&&v.push(s(h)),v.push(e,t);var p=v[0],b=t-e;return v.forEach(function(y){var C=Math.abs(g-y);C<=b&&(p=y,b=C);}),p},[e,t,r,n,i,s]),c=function h(g,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var y,C=g[p],$=C+v,w=[];r.forEach(function(P){w.push(P.value);}),w.push(e,t),w.push(s(C));var E=v>0?1:-1;b==="unit"?w.push(s(C+E*n)):w.push(s($)),w=w.filter(function(P){return P!==null}).filter(function(P){return v<0?P<=C:P>=C}),b==="unit"&&(w=w.filter(function(P){return P!==C}));var S=b==="unit"?C:$;y=w[0];var x=Math.abs(y-S);if(w.forEach(function(P){var R=Math.abs(P-S);R<x&&(y=P,x=R);}),y===void 0)return v<0?e:t;if(b==="dist")return y;if(Math.abs(v)>1){var I=Te(g);return I[p]=y,h(I,v-E,p,b)}return y}else {if(v==="min")return e;if(v==="max")return t}},u=function(g,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=g[p],C=c(g,v,p,b);return {value:C,changed:C!==y}},d=function(g){return a===null&&g===0||typeof a=="number"&&g<a},f=function(g,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=g.map(l),C=y[p],$=c(y,v,p,b);if(y[p]=$,o===!1){var w=a||0;p>0&&y[p-1]!==C&&(y[p]=Math.max(y[p],y[p-1]+w)),p<y.length-1&&y[p+1]!==C&&(y[p]=Math.min(y[p],y[p+1]-w));}else if(typeof a=="number"||a===null){for(var E=p+1;E<y.length;E+=1)for(var S=!0;d(y[E]-y[E-1])&&S;){var x=u(y,1,E);y[E]=x.value,S=x.changed;}for(var I=p;I>0;I-=1)for(var P=!0;d(y[I]-y[I-1])&&P;){var R=u(y,-1,I-1);y[I-1]=R.value,P=R.changed;}for(var O=y.length-1;O>0;O-=1)for(var N=!0;d(y[O]-y[O-1])&&N;){var A=u(y,-1,O-1);y[O-1]=A.value,N=A.changed;}for(var L=0;L<y.length-1;L+=1)for(var T=!0;d(y[L+1]-y[L])&&T;){var M=u(y,1,L+1);y[L+1]=M.value,T=M.changed;}}return {value:y[p],values:y}};return [l,f]}function die(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=m__namespace.useContext(Pa),s=i.min,l=i.max,c=i.direction,u=i.includedStart,d=i.includedEnd,f=i.included,h="".concat(t,"-text"),g=Yp(c,o,s,l);return m__namespace.createElement("span",{className:G(h,j({},"".concat(h,"-active"),f&&u<=o&&o<=d)),style:U(U({},g),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){a(o);}},r)}function fie(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(a){var i=a.value,s=a.style,l=a.label;return m__namespace.createElement(die,{key:i,prefixCls:o,style:s,value:i,onClick:r},l)})):null}function mie(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=m__namespace.useContext(Pa),i=a.min,s=a.max,l=a.direction,c=a.included,u=a.includedStart,d=a.includedEnd,f="".concat(t,"-dot"),h=c&&u<=n&&n<=d,g=U(U({},Yp(l,n,i,s)),typeof r=="function"?r(n):r);return h&&(g=U(U({},g),typeof o=="function"?o(n):o)),m__namespace.createElement("span",{className:G(f,j({},"".concat(f,"-active"),h)),style:g})}function hie(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=m__namespace.useContext(Pa),s=i.min,l=i.max,c=i.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(mie,{prefixCls:t,key:d,value:d,style:o,activeStyle:a})}))}function W1(e){var t,n=e.prefixCls,r=e.style,o=e.start,a=e.end,i=e.index,s=e.onStartMove,l=e.replaceCls,c=m__namespace.useContext(Pa),u=c.direction,d=c.min,f=c.max,h=c.disabled,g=c.range,v=c.classNames,p="".concat(n,"-track"),b=bg(o,d,f),y=bg(a,d,f),C=function(S){!h&&s&&s(S,-1);},$={};switch(u){case"rtl":$.right="".concat(b*100,"%"),$.width="".concat(y*100-b*100,"%");break;case"btt":$.bottom="".concat(b*100,"%"),$.height="".concat(y*100-b*100,"%");break;case"ttb":$.top="".concat(b*100,"%"),$.height="".concat(y*100-b*100,"%");break;default:$.left="".concat(b*100,"%"),$.width="".concat(y*100-b*100,"%");}var w=l||G(p,(t={},j(t,"".concat(p,"-").concat(i+1),i!==null&&g),j(t,"".concat(n,"-track-draggable"),s),t),v.track);return m__namespace.createElement("div",{className:w,style:U(U({},$),r),onMouseDown:C,onTouchStart:C})}function gie(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=m__namespace.useContext(Pa),s=i.included,l=i.range,c=i.min,u=i.styles,d=i.classNames,f=m__namespace.useMemo(function(){if(!l){if(r.length===0)return [];var g=o??c,v=r[0];return [{start:Math.min(g,v),end:Math.max(g,v)}]}for(var p=[],b=0;b<r.length-1;b+=1)p.push({start:r[b],end:r[b+1]});return p},[r,l,o,c]),h=null;return (d.tracks||u.tracks)&&(h=m__namespace.createElement(W1,{index:null,prefixCls:t,start:f[0].start,end:f[f.length-1].end,replaceCls:G(d.tracks,"".concat(t,"-tracks")),style:u.tracks})),s?m__namespace.createElement(m__namespace.Fragment,null,h,f.map(function(g,v){var p=g.start,b=g.end;return m__namespace.createElement(W1,{index:v,prefixCls:t,style:U(U({},ni(n,v)),u.track),start:p,end:b,key:v,onStartMove:a})})):null}var vie=m__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-slider":r,a=e.className,i=e.style,s=e.classNames,l=e.styles,c=e.disabled,u=c===void 0?!1:c,d=e.keyboard,f=d===void 0?!0:d,h=e.autoFocus,g=e.onFocus,v=e.onBlur,p=e.min,b=p===void 0?0:p,y=e.max,C=y===void 0?100:y,$=e.step,w=$===void 0?1:$,E=e.value,S=e.defaultValue,x=e.range,I=e.count,P=e.onChange,R=e.onBeforeChange,O=e.onAfterChange,N=e.allowCross,A=N===void 0?!0:N,L=e.pushable,T=L===void 0?!1:L,M=e.draggableTrack,_=e.reverse,z=e.vertical,F=e.included,B=F===void 0?!0:F,H=e.startPoint,V=e.trackStyle,K=e.handleStyle,X=e.railStyle,q=e.dotStyle,te=e.activeDotStyle,W=e.marks,Q=e.dots,Y=e.handleRender,ie=e.tabIndex,le=ie===void 0?0:ie,J=e.ariaLabelForHandle,re=e.ariaLabelledByForHandle,fe=e.ariaValueTextFormatterForHandle,ee=m__namespace.useRef(),ce=m__namespace.useRef(),he=m__namespace.useMemo(function(){return z?_?"ttb":"btt":_?"rtl":"ltr"},[_,z]),ne=m__namespace.useMemo(function(){return isFinite(b)?b:0},[b]),oe=m__namespace.useMemo(function(){return isFinite(C)?C:100},[C]),me=m__namespace.useMemo(function(){return w!==null&&w<=0?1:w},[w]),pe=m__namespace.useMemo(function(){return typeof T=="boolean"?T?me:!1:T>=0?T:!1},[T,me]),_e=m__namespace.useMemo(function(){var st=Object.keys(W||{});return st.map(function(Le){var Ee=W[Le],ye={value:Number(Le)};return Ee&&dt(Ee)==="object"&&!m__namespace.isValidElement(Ee)&&("label"in Ee||"style"in Ee)?(ye.style=Ee.style,ye.label=Ee.label):ye.label=Ee,ye}).filter(function(Le){var Ee=Le.label;return Ee||typeof Ee=="number"}).sort(function(Le,Ee){return Le.value-Ee.value})},[W]),Ve=uie(ne,oe,me,_e,A,pe),He=Z(Ve,2),Me=He[0],Qe=He[1],Xe=Ut(S,{value:E}),We=Z(Xe,2),Pe=We[0],Ce=We[1],je=m__namespace.useMemo(function(){var st=Pe==null?[]:Array.isArray(Pe)?Pe:[Pe],Le=Z(st,1),Ee=Le[0],ye=Ee===void 0?ne:Ee,$e=Pe===null?[]:[ye];if(x){if($e=Te(st),I||Pe===void 0){var ze=I>=0?I+1:2;for($e=$e.slice(0,ze);$e.length<ze;){var ht;$e.push((ht=$e[$e.length-1])!==null&&ht!==void 0?ht:ne);}}$e.sort(function(_t,Ot){return _t-Ot});}return $e.forEach(function(_t,Ot){$e[Ot]=Me(_t);}),$e},[Pe,x,ne,I,Me]),it=m__namespace.useRef(je);it.current=je;var vt=function(Le){return x?Le:Le[0]},nt=function(Le){var Ee=Te(Le).sort(function(ye,$e){return ye-$e});P&&!vl(Ee,it.current,!0)&&P(vt(Ee)),Ce(Ee);},Je=function(){O==null||O(vt(it.current));},yt=cie(ce,he,je,ne,oe,Me,nt,Je,Qe),$t=Z(yt,4),ct=$t[0],pt=$t[1],xt=$t[2],Oe=$t[3],Re=function(Le,Ee){if(!u){var ye=0,$e=oe-ne;je.forEach(function(ht,_t){var Ot=Math.abs(Le-ht);Ot<=$e&&($e=Ot,ye=_t);});var ze=Te(je);ze[ye]=Le,x&&!je.length&&I===void 0&&ze.push(Le),R==null||R(vt(ze)),nt(ze),O==null||O(vt(ze)),Ee&&Oe(Ee,ye,ze);}},Ne=function(Le){Le.preventDefault();var Ee=ce.current.getBoundingClientRect(),ye=Ee.width,$e=Ee.height,ze=Ee.left,ht=Ee.top,_t=Ee.bottom,Ot=Ee.right,dn=Le.clientX,sn=Le.clientY,fn;switch(he){case"btt":fn=(_t-sn)/$e;break;case"ttb":fn=(sn-ht)/$e;break;case"rtl":fn=(Ot-dn)/ye;break;default:fn=(dn-ze)/ye;}var jn=ne+fn*(oe-ne);Re(Me(jn),Le);},ge=m__namespace.useState(null),Fe=Z(ge,2),xe=Fe[0],de=Fe[1],ae=function(Le,Ee){if(!u){var ye=Qe(je,Le,Ee);R==null||R(vt(je)),nt(ye.values),O==null||O(vt(ye.values)),de(ye.value);}};m__namespace.useEffect(function(){if(xe!==null){var st=je.indexOf(xe);st>=0&&ee.current.focus(st);}de(null);},[xe]);var be=m__namespace.useMemo(function(){return M&&me===null?!1:M},[M,me]),Se=function(Le,Ee){Oe(Le,Ee),R==null||R(vt(it.current));},we=ct!==-1;m__namespace.useEffect(function(){if(!we){var st=je.lastIndexOf(pt);ee.current.focus(st);}},[we]);var qe=m__namespace.useMemo(function(){return Te(xt).sort(function(st,Le){return st-Le})},[xt]),Ye=m__namespace.useMemo(function(){return x?[qe[0],qe[qe.length-1]]:[ne,qe[0]]},[qe,x,ne]),ke=Z(Ye,2),Be=ke[0],rt=ke[1];m__namespace.useImperativeHandle(t,function(){return {focus:function(){ee.current.focus(0);},blur:function(){var Le=document,Ee=Le.activeElement;ce.current.contains(Ee)&&(Ee==null||Ee.blur());}}}),m__namespace.useEffect(function(){h&&ee.current.focus(0);},[]);var ft=m__namespace.useMemo(function(){return {min:ne,max:oe,direction:he,disabled:u,keyboard:f,step:me,included:B,includedStart:Be,includedEnd:rt,range:x,tabIndex:le,ariaLabelForHandle:J,ariaLabelledByForHandle:re,ariaValueTextFormatterForHandle:fe,styles:l||{},classNames:s||{}}},[ne,oe,he,u,f,me,B,Be,rt,x,le,J,re,fe,l,s]);return m__namespace.createElement(Pa.Provider,{value:ft},m__namespace.createElement("div",{ref:ce,className:G(o,a,(n={},j(n,"".concat(o,"-disabled"),u),j(n,"".concat(o,"-vertical"),z),j(n,"".concat(o,"-horizontal"),!z),j(n,"".concat(o,"-with-marks"),_e.length),n)),style:i,onMouseDown:Ne},m__namespace.createElement("div",{className:G("".concat(o,"-rail"),s==null?void 0:s.rail),style:U(U({},X),l==null?void 0:l.rail)}),m__namespace.createElement(gie,{prefixCls:o,style:V,values:qe,startPoint:H,onStartMove:be?Se:null}),m__namespace.createElement(hie,{prefixCls:o,marks:_e,dots:Q,style:q,activeStyle:te}),m__namespace.createElement(lie,{ref:ee,prefixCls:o,style:K,values:xt,draggingIndex:ct,onStartMove:Se,onOffsetChange:ae,onFocus:g,onBlur:v,handleRender:Y}),m__namespace.createElement(fie,{prefixCls:o,marks:_e,onClick:Re})))});const pie=m__namespace.forwardRef((e,t)=>{const{open:n}=e,r=m.useRef(null),o=m.useRef(null);function a(){Pt.cancel(o.current),o.current=null;}function i(){o.current=Pt(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),o.current=null;});}return m__namespace.useEffect(()=>(n?i():a(),a),[n,e.title]),m__namespace.createElement(bl,Object.assign({ref:Xn(r,t)},e))}),bie=pie,yie=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s}=e;return {[t]:Object.assign(Object.assign({},zt(e)),{position:"relative",height:r,margin:`${i}px ${a}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${a}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor: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","&::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 Qt(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"}})}},DI=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a}=e,i=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart",d=(r*3-o)/2,f=(o-r)/2,h=t?{borderWidth:`${f}px 0`,transform:`translateY(-${f}px)`}:{borderWidth:`0 ${f}px`,transform:`translateX(-${f}px)`};return {[i]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track,${n}-tracks`]:{[l]:r},[`${n}-track-draggable`]:Object.assign({},h),[`${n}-handle`]:{[c]:d},[`${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-a)/2}}},Cie=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},DI(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Sie=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},DI(e,!1)),{height:"100%"})}},$ie=Wt("Slider",e=>{const t=St(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [yie(t),Cie(t),Sie(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,a=e.lineWidth+1*3;return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});var wie=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 xie(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const Eie=m.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:f}=e,h=wie(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:g,slider:v,getPrefixCls:p,getPopupContainer:b}=m.useContext(tt),y=m.useContext(Hr),C=s??y,[$,w]=m.useState({}),E=(T,M)=>{w(_=>Object.assign(Object.assign({},_),{[T]:M}));},S=(T,M)=>T||(M?g==="rtl"?"left":"right":"top"),x=p("slider",n),[I,P]=$ie(x),R=G(o,v==null?void 0:v.className,a,{[`${x}-rtl`]:g==="rtl"},P);g==="rtl"&&!h.vertical&&(h.reverse=!h.reverse);const[O,N]=m.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),A=(T,M)=>{var _;const{index:z,dragging:F}=M,{tooltip:B={},vertical:H}=e,V=Object.assign({},B),{open:K,placement:X,getPopupContainer:q,prefixCls:te,formatter:W}=V,Q=xie(W,c),Y=Q?$[z]||F:!1,ie=(_=K??u)!==null&&_!==void 0?_:K===void 0&&Y,le=Object.assign(Object.assign({},T.props),{onMouseEnter:()=>E(z,!0),onMouseLeave:()=>E(z,!1),onFocus:J=>{var re;E(z,!0),(re=h.onFocus)===null||re===void 0||re.call(h,J);},onBlur:J=>{var re;E(z,!1),(re=h.onBlur)===null||re===void 0||re.call(h,J);}});return m.createElement(bie,Object.assign({},V,{prefixCls:p("tooltip",te??l),title:Q?Q(M.value):"",open:ie,placement:S(X??f,H),key:z,overlayClassName:`${x}-tooltip`,getPopupContainer:q||d||b}),m.cloneElement(T,le))},L=Object.assign(Object.assign({},v==null?void 0:v.style),i);return I(m.createElement(vie,Object.assign({},h,{step:h.step,range:O,draggableTrack:N,className:R,style:L,disabled:C,ref:t,prefixCls:x,handleRender:A})))}),Iie=Eie;var Pie={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 Oie=Pie;var Mie=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:Oie}))};const FI=m__namespace.forwardRef(Mie);function G1(e){return !!(e&&e.then)}const Rie=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=m__namespace.useRef(!1),f=m__namespace.useRef(null),[h,g]=ia(!1),v=function(){a==null||a.apply(void 0,arguments);};m__namespace.useEffect(()=>{let y=null;return i&&(y=setTimeout(()=>{var C;(C=f.current)===null||C===void 0||C.focus();})),()=>{y&&clearTimeout(y);}},[]);const p=y=>{G1(y)&&(g(!0),y.then(function(){g(!1,!0),v.apply(void 0,arguments),d.current=!1;},C=>{if(g(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(C)}));},b=y=>{if(d.current)return;if(d.current=!0,!u){v();return}let C;if(s){if(C=u(y),c&&!G1(C)){d.current=!1,v(y);return}}else if(u.length)C=u(a),d.current=!1;else if(C=u(),!C){v();return}p(C);};return m__namespace.createElement(Zt,Object.assign({},rE(t),{onClick:b,loading:h,prefixCls:r},o,{ref:f}),n)},Tie=Rie,_ie=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,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:i,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},zI=Wt("Popconfirm",e=>_ie(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},{resetStyle:!1});var Nie=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 jI=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:s,okType:l="primary",icon:c=m__namespace.createElement(FI,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:h,onPopupClick:g}=e,{getPrefixCls:v}=m__namespace.useContext(tt),[p]=Vi("Popconfirm",bo.Popconfirm),b=Ii(o),y=Ii(a);return m__namespace.createElement("div",{className:`${t}-inner-content`,onClick:g},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:G(`${t}-title`)},b),y&&m__namespace.createElement("div",{className:`${t}-description`},y))),m__namespace.createElement("div",{className:`${t}-buttons`},u&&m__namespace.createElement(Zt,Object.assign({onClick:h,size:"small"},r),i??(p==null?void 0:p.cancelText)),m__namespace.createElement(Tie,{buttonProps:Object.assign(Object.assign({size:"small"},rE(l)),n),actionFn:f,close:d,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))},kie=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=Nie(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=m__namespace.useContext(tt),s=i("popconfirm",t),[l]=zI(s);return l(m__namespace.createElement(M2,{placement:n,className:G(s,r),style:o,content:m__namespace.createElement(jI,Object.assign({prefixCls:s},a))}))},Aie=kie;var Lie=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 BI=m__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:a="top",trigger:i="click",okType:s="primary",icon:l=m__namespace.createElement(FI,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:f}=e,h=Lie(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:g}=m__namespace.useContext(tt),[v,p]=Ut(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),b=(P,R)=>{p(P,!0),f==null||f(P),d==null||d(P,R);},y=P=>{b(!1,P);},C=P=>{var R;return (R=e.onConfirm)===null||R===void 0?void 0:R.call(void 0,P)},$=P=>{var R;b(!1,P),(R=e.onCancel)===null||R===void 0||R.call(void 0,P);},w=P=>{P.keyCode===ue.ESC&&v&&b(!1,P);},E=P=>{const{disabled:R=!1}=e;R||b(P);},S=g("popconfirm",o),x=G(S,u),[I]=zI(S);return I(m__namespace.createElement(Qd,Object.assign({},zn(h,["title"]),{trigger:i,placement:a,onOpenChange:E,open:v,ref:t,overlayClassName:x,content:m__namespace.createElement(jI,Object.assign({okType:s,icon:l},e,{prefixCls:S,close:y,onConfirm:C,onCancel:$})),"data-popover-inject":!0}),Kn(c,{onKeyDown:P=>{var R,O;m__namespace.isValidElement(c)&&((O=c==null?void 0:(R=c.props).onKeyDown)===null||O===void 0||O.call(R,P)),w(P);}})))});BI._InternalPanelDoNotUseOrYouWillBeFired=Aie;const K1=BI;var Die={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 Fie=Die;var zie=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:Fie}))};const jie=m__namespace.forwardRef(zie);function yg(){return typeof BigInt=="function"}function ua(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return {negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function Zp(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function el(e){var t=String(e);if(Zp(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(".")&&Qp(t)?t.length-t.indexOf(".")-1:0}function mf(e){var t=String(e);if(Zp(e)){if(e>Number.MAX_SAFE_INTEGER)return String(yg()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(yg()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(el(t));}return ua(t).fullStr}function Qp(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 HI(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var Bie=function(){function e(t){if(wn(this,e),j(this,"origin",""),j(this,"number",void 0),j(this,"empty",void 0),HI(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return xn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(el(this.number),el(r));return new e(o.toFixed(a))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":mf(this.number):this.origin}}]),e}(),Hie=function(){function e(t){if(wn(this,e),j(this,"origin",""),j(this,"negative",void 0),j(this,"integer",void 0),j(this,"decimal",void 0),j(this,"decimalLen",void 0),j(this,"empty",void 0),j(this,"nan",void 0),HI(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Zp(n)&&(n=Number(n)),n=typeof n=="string"?n:mf(n),Qp(n)){var r=ua(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length;}else this.nan=!0;}return xn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),a=this.alignDecimal(o),i=r.alignDecimal(o),s=(a+i).toString(),l=ua(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()?"":ua("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Tr(e){return yg()?new Hie(e):new Bie(e)}function Fc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=ua(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=Tr(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return Fc(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 Vie(e,t){var n=m.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(i);n.current={start:a,end:i,value:s,beforeTxt:l,afterTxt:c};}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,s=i.beforeTxt,l=i.afterTxt,c=i.start,u=a.length;if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else if(a.startsWith(s))u=s.length;else {var d=s[c-1],f=a.indexOf(d,c-1);f!==-1&&(u=f+1);}e.setSelectionRange(u,u);}catch(h){Sn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message));}}return [r,o]}var Wie=function(){var t=m.useState(!1),n=Z(t,2),r=n[0],o=n[1];return Kt(function(){o(Cd());},[]),r},Gie=200,Kie=600;function Uie(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=m__namespace.useRef(),l=m__namespace.useRef([]),c=m__namespace.useRef();c.current=i;var u=function(){clearTimeout(s.current);},d=function(C,$){C.preventDefault(),u(),c.current($);function w(){c.current($),s.current=setTimeout(w,Gie);}s.current=setTimeout(w,Kie);};m__namespace.useEffect(function(){return function(){u(),l.current.forEach(function(y){return Pt.cancel(y)});}},[]);var f=Wie();if(f)return null;var h="".concat(t,"-handler"),g=G(h,"".concat(h,"-up"),j({},"".concat(h,"-up-disabled"),o)),v=G(h,"".concat(h,"-down"),j({},"".concat(h,"-down-disabled"),a)),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",Ie({},b,{onMouseDown:function(C){d(C,!0);},"aria-label":"Increase Value","aria-disabled":o,className:g}),n||m__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),m__namespace.createElement("span",Ie({},b,{onMouseDown:function(C){d(C,!1);},"aria-label":"Decrease Value","aria-disabled":a,className:v}),r||m__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function U1(e){var t=typeof e=="number"?mf(e):ua(e).fullStr,n=t.includes(".");return n?ua(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Xie=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 qie=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],Yie=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],X1=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},q1=function(t){var n=Tr(t);return n.isInvalidate()?null:n},Zie=m__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,a=e.className,i=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,g=e.readOnly,v=e.upHandler,p=e.downHandler,b=e.keyboard,y=e.controls,C=y===void 0?!0:y,$=e.classNames,w=e.stringMode,E=e.parser,S=e.formatter,x=e.precision,I=e.decimalSeparator,P=e.onChange,R=e.onInput,O=e.onPressEnter,N=e.onStep,A=e.changeOnBlur,L=A===void 0?!0:A,T=et(e,qie),M="".concat(o,"-input"),_=m__namespace.useRef(null),z=m__namespace.useState(!1),F=Z(z,2),B=F[0],H=F[1],V=m__namespace.useRef(!1),K=m__namespace.useRef(!1),X=m__namespace.useRef(!1),q=m__namespace.useState(function(){return Tr(f??d)}),te=Z(q,2),W=te[0],Q=te[1];function Y(Oe){f===void 0&&Q(Oe);}var ie=m__namespace.useCallback(function(Oe,Re){if(!Re)return x>=0?x:Math.max(el(Oe),el(u))},[x,u]),le=m__namespace.useCallback(function(Oe){var Re=String(Oe);if(E)return E(Re);var Ne=Re;return I&&(Ne=Ne.replace(I,".")),Ne.replace(/[^\w.-]+/g,"")},[E,I]),J=m__namespace.useRef(""),re=m__namespace.useCallback(function(Oe,Re){if(S)return S(Oe,{userTyping:Re,input:String(J.current)});var Ne=typeof Oe=="number"?mf(Oe):Oe;if(!Re){var ge=ie(Ne,Re);if(Qp(Ne)&&(I||ge>=0)){var Fe=I||".";Ne=Fc(Ne,Fe,ge);}}return Ne},[S,ie,I]),fe=m__namespace.useState(function(){var Oe=d??f;return W.isInvalidate()&&["string","number"].includes(dt(Oe))?Number.isNaN(Oe)?"":Oe:re(W.toString(),!1)}),ee=Z(fe,2),ce=ee[0],he=ee[1];J.current=ce;function ne(Oe,Re){he(re(Oe.isInvalidate()?Oe.toString(!1):Oe.toString(!Re),Re));}var oe=m__namespace.useMemo(function(){return q1(l)},[l,x]),me=m__namespace.useMemo(function(){return q1(s)},[s,x]),pe=m__namespace.useMemo(function(){return !oe||!W||W.isInvalidate()?!1:oe.lessEquals(W)},[oe,W]),_e=m__namespace.useMemo(function(){return !me||!W||W.isInvalidate()?!1:W.lessEquals(me)},[me,W]),Ve=Vie(_.current,B),He=Z(Ve,2),Me=He[0],Qe=He[1],Xe=function(Re){return oe&&!Re.lessEquals(oe)?oe:me&&!me.lessEquals(Re)?me:null},We=function(Re){return !Xe(Re)},Pe=function(Re,Ne){var ge=Re,Fe=We(ge)||ge.isEmpty();if(!ge.isEmpty()&&!Ne&&(ge=Xe(ge)||ge,Fe=!0),!g&&!h&&Fe){var xe=ge.toString(),de=ie(xe,Ne);return de>=0&&(ge=Tr(Fc(xe,".",de)),We(ge)||(ge=Tr(Fc(xe,".",de,!0)))),ge.equals(W)||(Y(ge),P==null||P(ge.isEmpty()?null:X1(w,ge)),f===void 0&&ne(ge,Ne)),ge}return W},Ce=Xie(),je=function Oe(Re){if(Me(),J.current=Re,he(Re),!K.current){var Ne=le(Re),ge=Tr(Ne);ge.isNaN()||Pe(ge,!0);}R==null||R(Re),Ce(function(){var Fe=Re;E||(Fe=Re.replace(/。/g,".")),Fe!==Re&&Oe(Fe);});},it=function(){K.current=!0;},vt=function(){K.current=!1,je(_.current.value);},nt=function(Re){je(Re.target.value);},Je=function(Re){var Ne;if(!(Re&&pe||!Re&&_e)){V.current=!1;var ge=Tr(X.current?U1(u):u);Re||(ge=ge.negate());var Fe=(W||Tr(0)).add(ge.toString()),xe=Pe(Fe,!1);N==null||N(X1(w,xe),{offset:X.current?U1(u):u,type:Re?"up":"down"}),(Ne=_.current)===null||Ne===void 0||Ne.focus();}},yt=function(Re){var Ne=Tr(le(ce)),ge=Ne;Ne.isNaN()?ge=Pe(W,Re):ge=Pe(Ne,Re),f!==void 0?ne(W,!1):ge.isNaN()||ne(ge,!1);},$t=function(){V.current=!0;},ct=function(Re){var Ne=Re.key,ge=Re.shiftKey;V.current=!0,X.current=ge,Ne==="Enter"&&(K.current||(V.current=!1),yt(!1),O==null||O(Re)),b!==!1&&!K.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ne)&&(Je(Ne==="Up"||Ne==="ArrowUp"),Re.preventDefault());},pt=function(){V.current=!1,X.current=!1;},xt=function(){L&&yt(!1),H(!1),V.current=!1;};return ai(function(){W.isInvalidate()||ne(W,!1);},[x,S]),ai(function(){var Oe=Tr(f);Q(Oe);var Re=Tr(le(ce));(!Oe.equals(Re)||!V.current||S)&&ne(Oe,V.current);},[f]),ai(function(){S&&Qe();},[ce]),m__namespace.createElement("div",{className:G(o,$==null?void 0:$.input,a,(n={},j(n,"".concat(o,"-focused"),B),j(n,"".concat(o,"-disabled"),h),j(n,"".concat(o,"-readonly"),g),j(n,"".concat(o,"-not-a-number"),W.isNaN()),j(n,"".concat(o,"-out-of-range"),!W.isInvalidate()&&!We(W)),n)),style:i,onFocus:function(){H(!0);},onBlur:xt,onKeyDown:ct,onKeyUp:pt,onCompositionStart:it,onCompositionEnd:vt,onBeforeInput:$t},C&&m__namespace.createElement(Uie,{prefixCls:o,upNode:v,downNode:p,upDisabled:pe,downDisabled:_e,onStep:Je}),m__namespace.createElement("div",{className:"".concat(M,"-wrap")},m__namespace.createElement("input",Ie({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":W.isInvalidate()?null:W.toString(),step:u},T,{ref:Xn(_,t),className:M,value:ce,onChange:nt,disabled:h,readOnly:g}))))}),VI=m__namespace.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=e.value,i=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,f=e.classNames,h=et(e,Yie),g=m__namespace.useRef(null),v=function(b){g.current&&KE(g.current,b);};return m__namespace.createElement(Lp,{inputElement:m__namespace.createElement(Zie,Ie({prefixCls:o,disabled:n,classNames:f,ref:Xn(g,t)},h)),className:d,triggerFocus:v,prefixCls:o,value:a,disabled:n,style:r,prefix:i,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});VI.displayName="InputNumber";const Y1=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a=t==="lg"?o:r;return {[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},Qie=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:a,fontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,colorTextDescription:d,motionDurationMid:f,handleHoverColor:h,paddingInline:g,paddingBlock:v,handleBg:p,handleActiveBg:b,colorTextDisabled:y,borderRadiusSM:C,borderRadiusLG:$,controlWidth:w,handleVisible:E,handleBorderColor:S}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),Hl(e)),lf(e,t)),{display:"inline-block",width:w,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:$,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:C,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},zt(e)),GE(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},Tp(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{width:"100%",padding:`${v}px ${g}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${f} linear`,appearance:"textfield",fontSize:"inherit"}),HE(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:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:E===!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} ${S}`,transition:`all ${f} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},$a()),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${S}`,borderEndEndRadius:a}},Y1(e,"lg")),Y1(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:y}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},Jie=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},Hl(e)),lf(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`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}}})}},ese=Wt("InputNumber",e=>{const t=St(e,Np(e));return [Qie(t),Jie(t),of(t)]},e=>Object.assign(Object.assign({},kp(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto",handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder}));var tse=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 WI=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m__namespace.useContext(tt),o=m__namespace.useRef(null);m__namespace.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,bordered:h=!0,readOnly:g,status:v,controls:p}=e,b=tse(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[C,$]=ese(y),{compactSize:w,compactItemClassnames:E}=Gi(y,r);let S=m__namespace.createElement(jie,{className:`${y}-handler-up-inner`}),x=m__namespace.createElement(xp,{className:`${y}-handler-down-inner`});const I=typeof p=="boolean"?p:void 0;typeof p=="object"&&(S=typeof p.upIcon>"u"?S:m__namespace.createElement("span",{className:`${y}-handler-up-inner`},p.upIcon),x=typeof p.downIcon>"u"?x:m__namespace.createElement("span",{className:`${y}-handler-down-inner`},p.downIcon));const{hasFeedback:P,status:R,isFormItemInput:O,feedbackIcon:N}=m__namespace.useContext(Er),A=jl(R,v),L=Jn(H=>{var V;return (V=s??w)!==null&&V!==void 0?V:H}),T=m__namespace.useContext(Hr),M=l??T,_=G({[`${y}-lg`]:L==="large",[`${y}-sm`]:L==="small",[`${y}-rtl`]:r==="rtl",[`${y}-borderless`]:!h,[`${y}-in-form-item`]:O},Fr(y,A),$),z=`${y}-group`,F=P&&m__namespace.createElement(m__namespace.Fragment,null,N),B=m__namespace.createElement(VI,Object.assign({ref:o,disabled:M,className:G(a,i,E),upHandler:S,downHandler:x,prefixCls:y,readOnly:g,controls:I,prefix:f,suffix:F,addonAfter:d&&m__namespace.createElement(yi,null,m__namespace.createElement(qs,{override:!0,status:!0},d)),addonBefore:u&&m__namespace.createElement(yi,null,m__namespace.createElement(qs,{override:!0,status:!0},u)),classNames:{input:_},classes:{affixWrapper:G(Fr(`${y}-affix-wrapper`,A,P),{[`${y}-affix-wrapper-sm`]:L==="small",[`${y}-affix-wrapper-lg`]:L==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl",[`${y}-affix-wrapper-borderless`]:!h},$),wrapper:G({[`${z}-rtl`]:r==="rtl",[`${y}-wrapper-disabled`]:M},$),group:G({[`${y}-group-wrapper-sm`]:L==="small",[`${y}-group-wrapper-lg`]:L==="large",[`${y}-group-wrapper-rtl`]:r==="rtl"},Fr(`${y}-group-wrapper`,A,P),$)}},b));return C(B)}),GI=WI,nse=e=>m__namespace.createElement(Ev,{theme:{components:{InputNumber:{handleVisible:!0}}}},m__namespace.createElement(WI,Object.assign({},e)));GI._InternalPanelDoNotUseOrYouWillBeFired=nse;const Cg=GI;var rse={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 ose=rse;var ase=function(t,n){return m__namespace.createElement(Mn,Ie({},t,{ref:n,icon:ose}))};const ise=m__namespace.forwardRef(ase),hf=m.createContext(null);var KI=m__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,s=e.tabKey,l=e.children;return m__namespace.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!i,style:o,className:G(n,i&&"".concat(n,"-active"),r),ref:t},l)}),sse=["key","forceRender","style","className","destroyInactiveTabPane"];function lse(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,i=m__namespace.useContext(hf),s=i.prefixCls,l=i.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return m__namespace.createElement("div",{className:G("".concat(s,"-content-holder"))},m__namespace.createElement("div",{className:G("".concat(s,"-content"),"".concat(s,"-content-").concat(o),j({},"".concat(s,"-content-animated"),c))},l.map(function(d){var f=d.key,h=d.forceRender,g=d.style,v=d.className,p=d.destroyInactiveTabPane,b=et(d,sse),y=f===n;return m__namespace.createElement(Co,Ie({key:f,visible:y,forceRender:h,removeOnLeave:!!(a||p),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(C,$){var w=C.style,E=C.className;return m__namespace.createElement(KI,Ie({},b,{prefixCls:u,id:t,tabKey:f,animated:c,active:y,style:U(U({},g),w),className:G(v,E),ref:$}))})})))}var cse=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicatorSize,i=m.useState(),s=Z(i,2),l=s[0],c=s[1],u=m.useRef(),d=function(g){return typeof a=="function"?a(g):typeof a=="number"?a:g};function f(){Pt.cancel(u.current);}return m.useEffect(function(){var h={};return n&&(r?(o?(h.right=n.right+n.width/2,h.transform="translateX(50%)"):(h.left=n.left+n.width/2,h.transform="translateX(-50%)"),h.width=d(n.width)):(h.top=n.top+n.height/2,h.transform="translateY(-50%)",h.height=d(n.height))),f(),u.current=Pt(function(){c(h);}),f},[n,r,o,a]),{style:l}},Z1={width:0,height:0,left:0,top:0};function use(e,t,n){return m.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Z1,i=a.left+a.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)||Z1;}var d=o.get(l)||U({},c);d.right=i-d.left-d.width,o.set(l,d);}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Q1(e,t){var n=m__namespace.useRef(e),r=m__namespace.useState({}),o=Z(r,2),a=o[1];function i(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,a({});}return [n.current,i]}var dse=.1,J1=.01,zc=20,eC=Math.pow(.995,zc);function fse(e,t){var n=m.useState(),r=Z(n,2),o=r[0],a=r[1],i=m.useState(0),s=Z(i,2),l=s[0],c=s[1],u=m.useState(0),d=Z(u,2),f=d[0],h=d[1],g=m.useState(),v=Z(g,2),p=v[0],b=v[1],y=m.useRef();function C(I){var P=I.touches[0],R=P.screenX,O=P.screenY;a({x:R,y:O}),window.clearInterval(y.current);}function $(I){if(o){I.preventDefault();var P=I.touches[0],R=P.screenX,O=P.screenY;a({x:R,y:O});var N=R-o.x,A=O-o.y;t(N,A);var L=Date.now();c(L),h(L-l),b({x:N,y:A});}}function w(){if(o&&(a(null),b(null),p)){var I=p.x/f,P=p.y/f,R=Math.abs(I),O=Math.abs(P);if(Math.max(R,O)<dse)return;var N=I,A=P;y.current=window.setInterval(function(){if(Math.abs(N)<J1&&Math.abs(A)<J1){window.clearInterval(y.current);return}N*=eC,A*=eC,t(N*zc,A*zc);},zc);}}var E=m.useRef();function S(I){var P=I.deltaX,R=I.deltaY,O=0,N=Math.abs(P),A=Math.abs(R);N===A?O=E.current==="x"?P:R:N>A?(O=P,E.current="x"):(O=R,E.current="y"),t(-O,-O)&&I.preventDefault();}var x=m.useRef(null);x.current={onTouchStart:C,onTouchMove:$,onTouchEnd:w,onWheel:S},m__namespace.useEffect(function(){function I(N){x.current.onTouchStart(N);}function P(N){x.current.onTouchMove(N);}function R(N){x.current.onTouchEnd(N);}function O(N){x.current.onWheel(N);}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",R,{passive:!1}),e.current.addEventListener("touchstart",I,{passive:!1}),e.current.addEventListener("wheel",O),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",R);}},[]);}function UI(e){var t=m.useState(0),n=Z(t,2),r=n[0],o=n[1],a=m.useRef(0),i=m.useRef();return i.current=e,ai(function(){var s;(s=i.current)===null||s===void 0||s.call(i);},[r]),function(){a.current===r&&(a.current+=1,o(a.current));}}function mse(e){var t=m.useRef([]),n=m.useState({}),r=Z(n,2),o=r[1],a=m.useRef(typeof e=="function"?e():e),i=UI(function(){var l=a.current;t.current.forEach(function(c){l=c(l);}),t.current=[],a.current=l,o({});});function s(l){t.current.push(l),i();}return [a.current,s]}var tC={width:0,height:0,left:0,top:0,right:0};function hse(e,t,n,r,o,a,i){var s=i.tabs,l=i.tabPosition,c=i.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,g=h,v=0;v<h;v+=1){var p=e.get(s[v].key)||tC;if(p[d]+p[u]>f+t){g=v-1;break}}for(var b=0,y=h-1;y>=0;y-=1){var C=e.get(s[y].key)||tC;if(C[d]<f){b=y+1;break}}return b>=g?[0,0]:[b,g]},[e,t,r,o,a,f,l,s.map(function(h){return h.key}).join("_"),c])}function nC(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var gse="TABS_DQ";function XI(e){return String(e).replace(/"/g,gse)}function qI(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function vse(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return !r||r.showAdd===!1?null:m__namespace.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s});}},r.addIcon||"+")}const YI=m__namespace.forwardRef(vse);var rC=m__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return dt(o)==="object"&&!m__namespace.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?m__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null});function pse(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=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,g=e.rtl,v=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,C=m.useState(!1),$=Z(C,2),w=$[0],E=$[1],S=m.useState(null),x=Z(S,2),I=x[0],P=x[1],R="".concat(r,"-more-popup"),O="".concat(n,"-dropdown"),N=I!==null?"".concat(R,"-").concat(I):null,A=a==null?void 0:a.dropdownAriaLabel;function L(H,V){H.preventDefault(),H.stopPropagation(),f.onEdit("remove",{key:V,event:H});}var T=m__namespace.createElement(Yi,{onClick:function(V){var K=V.key,X=V.domEvent;p(K,X),E(!1);},prefixCls:"".concat(O,"-menu"),id:R,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[I],"aria-label":A!==void 0?A:"expanded dropdown"},o.map(function(H){var V=H.closable,K=H.disabled,X=H.closeIcon,q=H.key,te=H.label,W=qI(V,X,f,K);return m__namespace.createElement(Ll,{key:q,id:"".concat(R,"-").concat(q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(q),disabled:K},m__namespace.createElement("span",null,te),W&&m__namespace.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(O,"-menu-item-remove"),onClick:function(Y){Y.stopPropagation(),L(Y,q);}},X||f.removeIcon||"×"))}));function M(H){for(var V=o.filter(function(W){return !W.disabled}),K=V.findIndex(function(W){return W.key===I})||0,X=V.length,q=0;q<X;q+=1){K=(K+H+X)%X;var te=V[K];if(!te.disabled){P(te.key);return}}}function _(H){var V=H.which;if(!w){[ue.DOWN,ue.SPACE,ue.ENTER].includes(V)&&(E(!0),H.preventDefault());return}switch(V){case ue.UP:M(-1),H.preventDefault();break;case ue.DOWN:M(1),H.preventDefault();break;case ue.ESC:E(!1);break;case ue.SPACE:case ue.ENTER:I!==null&&p(I,H);break}}m.useEffect(function(){var H=document.getElementById(N);H&&H.scrollIntoView&&H.scrollIntoView(!1);},[I]),m.useEffect(function(){w||P(null);},[w]);var z=j({},g?"marginRight":"marginLeft",h);o.length||(z.visibility="hidden",z.order=1);var F=G(j({},"".concat(O,"-rtl"),g)),B=i?null:m__namespace.createElement(A2,{prefixCls:O,overlay:T,trigger:["hover"],visible:o.length?w:!1,transitionName:c,onVisibleChange:E,overlayClassName:G(F,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":R,id:"".concat(r,"-more"),"aria-expanded":w,onKeyDown:_},l));return m__namespace.createElement("div",{className:G("".concat(n,"-nav-operations"),d),style:u,ref:t},B,m__namespace.createElement(YI,{prefixCls:n,locale:a,editable:f}))}const bse=m__namespace.memo(m__namespace.forwardRef(pse),function(e,t){return t.tabMoving});function yse(e){var t,n=e.prefixCls,r=e.id,o=e.active,a=e.tab,i=a.key,s=a.label,l=a.disabled,c=a.closeIcon,u=e.closable,d=e.renderWrapper,f=e.removeAriaLabel,h=e.editable,g=e.onClick,v=e.onFocus,p=e.style,b="".concat(n,"-tab"),y=qI(u,c,h,l);function C(E){l||g(E);}function $(E){E.preventDefault(),E.stopPropagation(),h.onEdit("remove",{key:i,event:E});}var w=m__namespace.createElement("div",{key:i,"data-node-key":XI(i),className:G(b,(t={},j(t,"".concat(b,"-with-remove"),y),j(t,"".concat(b,"-active"),o),j(t,"".concat(b,"-disabled"),l),t)),style:p,onClick:C},m__namespace.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(i),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function(S){S.stopPropagation(),C(S);},onKeyDown:function(S){[ue.SPACE,ue.ENTER].includes(S.which)&&(S.preventDefault(),C(S));},onFocus:v},s),y&&m__namespace.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(S){S.stopPropagation(),$(S);}},c||h.removeIcon||"×"));return d?d(w):w}var Cse=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,a=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,u=s.x,d=s.y;return Math.abs(l-r)<1?[l,c,u-n.x,d-n.y]:[r,o,i,a]},Ga=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,a=n.offsetHeight,i=a===void 0?0:a;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-o)<1)return [l,c]}return [o,i]},Cc=function(t,n){return t[n?0:1]};function Sse(e,t){var n,r=m__namespace.useContext(hf),o=r.prefixCls,a=r.tabs,i=e.className,s=e.style,l=e.id,c=e.animated,u=e.activeKey,d=e.rtl,f=e.extra,h=e.editable,g=e.locale,v=e.tabPosition,p=e.tabBarGutter,b=e.children,y=e.onTabClick,C=e.onTabScroll,$=e.indicatorSize,w=m.useRef(),E=m.useRef(),S=m.useRef(),x=m.useRef(),I=m.useRef(),P=m.useRef(),R=m.useRef(),O=v==="top"||v==="bottom",N=Q1(0,function(Le,Ee){O&&C&&C({direction:Le>Ee?"left":"right"});}),A=Z(N,2),L=A[0],T=A[1],M=Q1(0,function(Le,Ee){!O&&C&&C({direction:Le>Ee?"top":"bottom"});}),_=Z(M,2),z=_[0],F=_[1],B=m.useState([0,0]),H=Z(B,2),V=H[0],K=H[1],X=m.useState([0,0]),q=Z(X,2),te=q[0],W=q[1],Q=m.useState([0,0]),Y=Z(Q,2),ie=Y[0],le=Y[1],J=m.useState([0,0]),re=Z(J,2),fe=re[0],ee=re[1],ce=mse(new Map),he=Z(ce,2),ne=he[0],oe=he[1],me=use(a,ne,te[0]),pe=Cc(V,O),_e=Cc(te,O),Ve=Cc(ie,O),He=Cc(fe,O),Me=pe<_e+Ve,Qe=Me?pe-He:pe-Ve,Xe="".concat(o,"-nav-operations-hidden"),We=0,Pe=0;O&&d?(We=0,Pe=Math.max(0,_e-Qe)):(We=Math.min(0,Qe-_e),Pe=0);function Ce(Le){return Le<We?We:Le>Pe?Pe:Le}var je=m.useRef(),it=m.useState(),vt=Z(it,2),nt=vt[0],Je=vt[1];function yt(){Je(Date.now());}function $t(){window.clearTimeout(je.current);}fse(x,function(Le,Ee){function ye($e,ze){$e(function(ht){var _t=Ce(ht+ze);return _t});}return Me?(O?ye(T,Le):ye(F,Ee),$t(),yt(),!0):!1}),m.useEffect(function(){return $t(),nt&&(je.current=window.setTimeout(function(){Je(0);},100)),$t},[nt]);var ct=hse(me,Qe,O?L:z,_e,Ve,He,U(U({},e),{},{tabs:a})),pt=Z(ct,2),xt=pt[0],Oe=pt[1],Re=Nn(function(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,Ee=me.get(Le)||{width:0,height:0,left:0,right:0,top:0};if(O){var ye=L;d?Ee.right<L?ye=Ee.right:Ee.right+Ee.width>L+Qe&&(ye=Ee.right+Ee.width-Qe):Ee.left<-L?ye=-Ee.left:Ee.left+Ee.width>-L+Qe&&(ye=-(Ee.left+Ee.width-Qe)),F(0),T(Ce(ye));}else {var $e=z;Ee.top<-z?$e=-Ee.top:Ee.top+Ee.height>-z+Qe&&($e=-(Ee.top+Ee.height-Qe)),T(0),F(Ce($e));}}),Ne={};v==="top"||v==="bottom"?Ne[d?"marginRight":"marginLeft"]=p:Ne.marginTop=p;var ge=a.map(function(Le,Ee){var ye=Le.key;return m__namespace.createElement(yse,{id:l,prefixCls:o,key:ye,tab:Le,style:Ee===0?void 0:Ne,closable:Le.closable,editable:h,active:ye===u,renderWrapper:b,removeAriaLabel:g==null?void 0:g.removeAriaLabel,onClick:function(ze){y(ye,ze);},onFocus:function(){Re(ye),yt(),x.current&&(d||(x.current.scrollLeft=0),x.current.scrollTop=0);}})}),Fe=function(){return oe(function(){var Ee,ye=new Map,$e=(Ee=I.current)===null||Ee===void 0?void 0:Ee.getBoundingClientRect();return a.forEach(function(ze){var ht,_t=ze.key,Ot=(ht=I.current)===null||ht===void 0?void 0:ht.querySelector('[data-node-key="'.concat(XI(_t),'"]'));if(Ot){var dn=Cse(Ot,$e),sn=Z(dn,4),fn=sn[0],jn=sn[1],Cn=sn[2],Vr=sn[3];ye.set(_t,{width:fn,height:jn,left:Cn,top:Vr});}}),ye})};m.useEffect(function(){Fe();},[a.map(function(Le){return Le.key}).join("_")]);var xe=UI(function(){var Le=Ga(w),Ee=Ga(E),ye=Ga(S);K([Le[0]-Ee[0]-ye[0],Le[1]-Ee[1]-ye[1]]);var $e=Ga(R);le($e);var ze=Ga(P);ee(ze);var ht=Ga(I);W([ht[0]-$e[0],ht[1]-$e[1]]),Fe();}),de=a.slice(0,xt),ae=a.slice(Oe+1),be=[].concat(Te(de),Te(ae)),Se=me.get(u),we=cse({activeTabOffset:Se,horizontal:O,rtl:d,indicatorSize:$}),qe=we.style;m.useEffect(function(){Re();},[u,We,Pe,nC(Se),nC(me),O]),m.useEffect(function(){xe();},[d]);var Ye=!!be.length,ke="".concat(o,"-nav-wrap"),Be,rt,ft,st;return O?d?(rt=L>0,Be=L!==Pe):(Be=L<0,rt=L!==We):(ft=z<0,st=z!==We),m__namespace.createElement(xr,{onResize:xe},m__namespace.createElement("div",{ref:Sa(t,w),role:"tablist",className:G("".concat(o,"-nav"),i),style:s,onKeyDown:function(){yt();}},m__namespace.createElement(rC,{ref:E,position:"left",extra:f,prefixCls:o}),m__namespace.createElement(xr,{onResize:xe},m__namespace.createElement("div",{className:G(ke,(n={},j(n,"".concat(ke,"-ping-left"),Be),j(n,"".concat(ke,"-ping-right"),rt),j(n,"".concat(ke,"-ping-top"),ft),j(n,"".concat(ke,"-ping-bottom"),st),n)),ref:x},m__namespace.createElement(xr,{onResize:xe},m__namespace.createElement("div",{ref:I,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(L,"px, ").concat(z,"px)"),transition:nt?"none":void 0}},ge,m__namespace.createElement(YI,{ref:R,prefixCls:o,locale:g,editable:h,style:U(U({},ge.length===0?void 0:Ne),{},{visibility:Ye?"hidden":null})}),m__namespace.createElement("div",{className:G("".concat(o,"-ink-bar"),j({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:qe}))))),m__namespace.createElement(bse,Ie({},e,{removeAriaLabel:g==null?void 0:g.removeAriaLabel,ref:P,prefixCls:o,tabs:be,className:!Ye&&Xe,tabMoving:!!nt})),m__namespace.createElement(rC,{ref:S,position:"right",extra:f,prefixCls:o})))}const oC=m__namespace.forwardRef(Sse);var $se=["renderTabBar"],wse=["label","key"];function xse(e){var t=e.renderTabBar,n=et(e,$se),r=m__namespace.useContext(hf),o=r.tabs;if(t){var a=U(U({},n),{},{panes:o.map(function(i){var s=i.label,l=i.key,c=et(i,wse);return m__namespace.createElement(KI,Ie({tab:s,key:l,tabKey:l},c))})});return t(a,oC)}return m__namespace.createElement(oC,n)}function Ese(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=U({inkBar:!0},dt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Ise=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],aC=0;function Pse(e,t){var n,r=e.id,o=e.prefixCls,a=o===void 0?"rc-tabs":o,i=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,h=e.tabPosition,g=h===void 0?"top":h,v=e.tabBarGutter,p=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,C=e.moreIcon,$=e.moreTransitionName,w=e.destroyInactiveTabPane,E=e.renderTabBar,S=e.onChange,x=e.onTabClick,I=e.onTabScroll,P=e.getPopupContainer,R=e.popupClassName,O=e.indicatorSize,N=et(e,Ise),A=m__namespace.useMemo(function(){return (s||[]).filter(function(ee){return ee&&dt(ee)==="object"&&"key"in ee})},[s]),L=l==="rtl",T=Ese(f),M=m.useState(!1),_=Z(M,2),z=_[0],F=_[1];m.useEffect(function(){F(Cd());},[]);var B=Ut(function(){var ee;return (ee=A[0])===null||ee===void 0?void 0:ee.key},{value:c,defaultValue:u}),H=Z(B,2),V=H[0],K=H[1],X=m.useState(function(){return A.findIndex(function(ee){return ee.key===V})}),q=Z(X,2),te=q[0],W=q[1];m.useEffect(function(){var ee=A.findIndex(function(he){return he.key===V});if(ee===-1){var ce;ee=Math.max(0,Math.min(te,A.length-1)),K((ce=A[ee])===null||ce===void 0?void 0:ce.key);}W(ee);},[A.map(function(ee){return ee.key}).join("_"),V,te]);var Q=Ut(null,{value:r}),Y=Z(Q,2),ie=Y[0],le=Y[1];m.useEffect(function(){r||(le("rc-tabs-".concat(aC)),aC+=1);},[]);function J(ee,ce){x==null||x(ee,ce);var he=ee!==V;K(ee),he&&(S==null||S(ee));}var re={id:ie,activeKey:V,animated:T,tabPosition:g,rtl:L,mobile:z},fe=U(U({},re),{},{editable:d,locale:y,moreIcon:C,moreTransitionName:$,tabBarGutter:v,onTabClick:J,onTabScroll:I,extra:b,style:p,panes:null,getPopupContainer:P,popupClassName:R,indicatorSize:O});return m__namespace.createElement(hf.Provider,{value:{tabs:A,prefixCls:a}},m__namespace.createElement("div",Ie({ref:t,id:r,className:G(a,"".concat(a,"-").concat(g),(n={},j(n,"".concat(a,"-mobile"),z),j(n,"".concat(a,"-editable"),d),j(n,"".concat(a,"-rtl"),L),n),i)},N),m__namespace.createElement(xse,Ie({},fe,{renderTabBar:E})),m__namespace.createElement(lse,Ie({destroyInactiveTabPane:w},re,{animated:T}))))}var Ose=m__namespace.forwardRef(Pse);const Mse={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Rse(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({},Mse),{motionName:wd(e,"switch")})),n}var Tse=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 _se(e){return e.filter(t=>t)}function Nse(e,t){if(e)return e;const n=dr(t).map(r=>{if(m__namespace.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:s}=i,l=Tse(i,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return _se(n)}const kse=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}`}}}}},[Do(e,"slide-up"),Do(e,"slide-down")]]},Ase=kse,Lse=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${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}}}}}}},Dse=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},zt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ma),{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"}}})}})}},Fse=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i}=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:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${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}}}}}},zse=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${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}}}}}},jse=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return {[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},ga(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},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},Bse=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"}}}}},Hse=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,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:a},"&:active, &:focus:not(:focus-visible)":{color:i}},ga(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),jse(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"}}}}}},Vse=Wt("Tabs",e=>{const t=St(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 [zse(t),Bse(t),Fse(t),Dse(t),Lse(t),Hse(t),Ase(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`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),Wse=()=>null,Gse=Wse;var Kse=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 ZI=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:a,hideAdd:i,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:f,style:h,indicatorSize:g}=e,v=Kse(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:p,moreIcon:b=m__namespace.createElement(mp,null)}=v,{direction:y,tabs:C,getPrefixCls:$,getPopupContainer:w}=m__namespace.useContext(tt),E=$("tabs",p),[S,x]=Vse(E);let I;t==="editable-card"&&(I={onEdit:(L,T)=>{let{key:M,event:_}=T;a==null||a(L==="add"?_:M,L);},removeIcon:m__namespace.createElement(af,null),addIcon:l||m__namespace.createElement(ise,null),showAdd:i!==!0});const P=$(),R=Nse(d,u),O=Rse(E,f),N=Jn(o),A=Object.assign(Object.assign({},C==null?void 0:C.style),h);return S(m__namespace.createElement(Ose,Object.assign({direction:y,getPopupContainer:w,moreTransitionName:`${P}-slide-up`},v,{items:R,className:G({[`${E}-${N}`]:N,[`${E}-card`]:["card","editable-card"].includes(t),[`${E}-editable-card`]:t==="editable-card",[`${E}-centered`]:s},C==null?void 0:C.className,n,r,x),popupClassName:G(c,x),style:A,editable:I,moreIcon:b,prefixCls:E,animated:O,indicatorSize:g??(C==null?void 0:C.indicatorSize)})))};ZI.TabPane=Gse;const Use=ZI;class Xse extends Error{constructor(t){super(t),this.name="TimeoutError";}}class qse extends Error{constructor(t){super(),this.name="AbortError",this.message=t;}}const iC=e=>globalThis.DOMException===void 0?new qse(e):new DOMException(e),sC=e=>{const t=e.reason===void 0?iC("This operation was aborted."):e.reason;return t instanceof Error?t:iC(t)};function Yse(e,t){const{milliseconds:n,fallback:r,message:o,customTimers:a={setTimeout,clearTimeout}}=t;let i;const l=new Promise((c,u)=>{if(typeof n!="number"||Math.sign(n)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:f}=t;f.aborted&&u(sC(f)),f.addEventListener("abort",()=>{u(sC(f));});}if(n===Number.POSITIVE_INFINITY){e.then(c,u);return}const d=new Xse;i=a.setTimeout.call(void 0,()=>{if(r){try{c(r());}catch(f){u(f);}return}typeof e.cancel=="function"&&e.cancel(),o===!1?c():o instanceof Error?u(o):(d.message=o??`Promise timed out after ${n} milliseconds`,u(d));},n),(async()=>{try{c(await e);}catch(f){u(f);}})();}).finally(()=>{l.clear();});return l.clear=()=>{a.clearTimeout.call(void 0,i),i=void 0;},l}const Zse=e=>{const t=e.on||e.addListener||e.addEventListener,n=e.off||e.removeListener||e.removeEventListener;if(!t||!n)throw new TypeError("Emitter is not compatible");return {addListener:t.bind(e),removeListener:n.bind(e)}};function Qse(e,t,n){let r;const o=new Promise((a,i)=>{var h;if(n={rejectionEvents:["error"],multiArgs:!1,resolveImmediately:!1,...n},!(n.count>=0&&(n.count===Number.POSITIVE_INFINITY||Number.isInteger(n.count))))throw new TypeError("The `count` option should be at least 0 or more");(h=n.signal)==null||h.throwIfAborted();const s=[t].flat(),l=[],{addListener:c,removeListener:u}=Zse(e),d=(...g)=>{const v=n.multiArgs?g:g[0];n.filter&&!n.filter(v)||(l.push(v),n.count===l.length&&(r(),a(l)));},f=g=>{r(),i(g);};r=()=>{for(const g of s)u(g,d);for(const g of n.rejectionEvents)u(g,f);};for(const g of s)c(g,d);for(const g of n.rejectionEvents)c(g,f);n.signal&&n.signal.addEventListener("abort",()=>{f(n.signal.reason);},{once:!0}),n.resolveImmediately&&a(l);});if(o.cancel=r,typeof n.timeout=="number"){const a=Yse(o,{milliseconds:n.timeout});return a.cancel=r,a}return o}function Jse(e,t,n){typeof n=="function"&&(n={filter:n}),n={...n,count:1,resolveImmediately:!1};const r=Qse(e,t,n),o=r.then(a=>a[0]);return o.cancel=r.cancel,o}var ele=Object.defineProperty,Tu=Object.getOwnPropertySymbols,QI=Object.prototype.hasOwnProperty,JI=Object.prototype.propertyIsEnumerable,lC=(e,t,n)=>t in e?ele(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tle=(e,t)=>{for(var n in t||(t={}))QI.call(t,n)&&lC(e,n,t[n]);if(Tu)for(var n of Tu(t))JI.call(t,n)&&lC(e,n,t[n]);return e},nle=(e,t)=>{var n={};for(var r in e)QI.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Tu)for(var r of Tu(e))t.indexOf(r)<0&&JI.call(e,r)&&(n[r]=e[r]);return n};/**
   * @license QR Code generator library (TypeScript)
   * Copyright (c) Project Nayuki.
   * SPDX-License-Identifier: MIT
   */var pa;(e=>{const t=class{constructor(l,c,u,d){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],l<t.MIN_VERSION||l>t.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let f=[];for(let g=0;g<this.size;g++)f.push(!1);for(let g=0;g<this.size;g++)this.modules.push(f.slice()),this.isFunction.push(f.slice());this.drawFunctionPatterns();const h=this.addEccAndInterleave(u);if(this.drawCodewords(h),d==-1){let g=1e9;for(let v=0;v<8;v++){this.applyMask(v),this.drawFormatBits(v);const p=this.getPenaltyScore();p<g&&(d=v,g=p),this.applyMask(v);}}a(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[];}static encodeText(l,c){const u=e.QrSegment.makeSegments(l);return t.encodeSegments(u,c)}static encodeBinary(l,c){const u=e.QrSegment.makeBytes(l);return t.encodeSegments([u],c)}static encodeSegments(l,c,u=1,d=40,f=-1,h=!0){if(!(t.MIN_VERSION<=u&&u<=d&&d<=t.MAX_VERSION)||f<-1||f>7)throw new RangeError("Invalid value");let g,v;for(g=u;;g++){const C=t.getNumDataCodewords(g,c)*8,$=s.getTotalBits(l,g);if($<=C){v=$;break}if(g>=d)throw new RangeError("Data too long")}for(const C of [t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])h&&v<=t.getNumDataCodewords(g,C)*8&&(c=C);let p=[];for(const C of l){r(C.mode.modeBits,4,p),r(C.numChars,C.mode.numCharCountBits(g),p);for(const $ of C.getData())p.push($);}a(p.length==v);const b=t.getNumDataCodewords(g,c)*8;a(p.length<=b),r(0,Math.min(4,b-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let C=236;p.length<b;C^=253)r(C,8,p);let y=[];for(;y.length*8<p.length;)y.push(0);return p.forEach((C,$)=>y[$>>>3]|=C<<7-($&7)),new t(g,c,y,f)}getModule(l,c){return 0<=l&&l<this.size&&0<=c&&c<this.size&&this.modules[c][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let u=0;u<this.size;u++)this.setFunctionModule(6,u,u%2==0),this.setFunctionModule(u,6,u%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),c=l.length;for(let u=0;u<c;u++)for(let d=0;d<c;d++)u==0&&d==0||u==0&&d==c-1||u==c-1&&d==0||this.drawAlignmentPattern(l[u],l[d]);this.drawFormatBits(0),this.drawVersion();}drawFormatBits(l){const c=this.errorCorrectionLevel.formatBits<<3|l;let u=c;for(let f=0;f<10;f++)u=u<<1^(u>>>9)*1335;const d=(c<<10|u)^21522;a(d>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,o(d,f));this.setFunctionModule(8,7,o(d,6)),this.setFunctionModule(8,8,o(d,7)),this.setFunctionModule(7,8,o(d,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,o(d,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,o(d,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,o(d,f));this.setFunctionModule(8,this.size-8,!0);}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;a(c>>>18==0);for(let u=0;u<18;u++){const d=o(c,u),f=this.size-11+u%3,h=Math.floor(u/3);this.setFunctionModule(f,h,d),this.setFunctionModule(h,f,d);}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const f=Math.max(Math.abs(d),Math.abs(u)),h=l+d,g=c+u;0<=h&&h<this.size&&0<=g&&g<this.size&&this.setFunctionModule(h,g,f!=2&&f!=4);}}drawAlignmentPattern(l,c){for(let u=-2;u<=2;u++)for(let d=-2;d<=2;d++)this.setFunctionModule(l+d,c+u,Math.max(Math.abs(d),Math.abs(u))!=1);}setFunctionModule(l,c,u){this.modules[c][l]=u,this.isFunction[c][l]=!0;}addEccAndInterleave(l){const c=this.version,u=this.errorCorrectionLevel;if(l.length!=t.getNumDataCodewords(c,u))throw new RangeError("Invalid argument");const d=t.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][c],f=t.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c],h=Math.floor(t.getNumRawDataModules(c)/8),g=d-h%d,v=Math.floor(h/d);let p=[];const b=t.reedSolomonComputeDivisor(f);for(let C=0,$=0;C<d;C++){let w=l.slice($,$+v-f+(C<g?0:1));$+=w.length;const E=t.reedSolomonComputeRemainder(w,b);C<g&&w.push(0),p.push(w.concat(E));}let y=[];for(let C=0;C<p[0].length;C++)p.forEach(($,w)=>{(C!=v-f||w>=g)&&y.push($[C]);});return a(y.length==h),y}drawCodewords(l){if(l.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let d=0;d<this.size;d++)for(let f=0;f<2;f++){const h=u-f,v=(u+1&2)==0?this.size-1-d:d;!this.isFunction[v][h]&&c<l.length*8&&(this.modules[v][h]=o(l[c>>>3],7-(c&7)),c++);}}a(c==l.length*8);}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c<this.size;c++)for(let u=0;u<this.size;u++){let d;switch(l){case 0:d=(u+c)%2==0;break;case 1:d=c%2==0;break;case 2:d=u%3==0;break;case 3:d=(u+c)%3==0;break;case 4:d=(Math.floor(u/3)+Math.floor(c/2))%2==0;break;case 5:d=u*c%2+u*c%3==0;break;case 6:d=(u*c%2+u*c%3)%2==0;break;case 7:d=((u+c)%2+u*c%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[c][u]&&d&&(this.modules[c][u]=!this.modules[c][u]);}}getPenaltyScore(){let l=0;for(let f=0;f<this.size;f++){let h=!1,g=0,v=[0,0,0,0,0,0,0];for(let p=0;p<this.size;p++)this.modules[f][p]==h?(g++,g==5?l+=t.PENALTY_N1:g>5&&l++):(this.finderPenaltyAddHistory(g,v),h||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),h=this.modules[f][p],g=1);l+=this.finderPenaltyTerminateAndCount(h,g,v)*t.PENALTY_N3;}for(let f=0;f<this.size;f++){let h=!1,g=0,v=[0,0,0,0,0,0,0];for(let p=0;p<this.size;p++)this.modules[p][f]==h?(g++,g==5?l+=t.PENALTY_N1:g>5&&l++):(this.finderPenaltyAddHistory(g,v),h||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),h=this.modules[p][f],g=1);l+=this.finderPenaltyTerminateAndCount(h,g,v)*t.PENALTY_N3;}for(let f=0;f<this.size-1;f++)for(let h=0;h<this.size-1;h++){const g=this.modules[f][h];g==this.modules[f][h+1]&&g==this.modules[f+1][h]&&g==this.modules[f+1][h+1]&&(l+=t.PENALTY_N2);}let c=0;for(const f of this.modules)c=f.reduce((h,g)=>h+(g?1:0),c);const u=this.size*this.size,d=Math.ceil(Math.abs(c*20-u*10)/u)-1;return a(0<=d&&d<=9),l+=d*t.PENALTY_N4,a(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return [];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let d=this.size-7;u.length<l;d-=c)u.splice(1,0,d);return u}}static getNumRawDataModules(l){if(l<t.MIN_VERSION||l>t.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36);}return a(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(t.getNumRawDataModules(l)/8)-t.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*t.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let d=0;d<l-1;d++)c.push(0);c.push(1);let u=1;for(let d=0;d<l;d++){for(let f=0;f<c.length;f++)c[f]=t.reedSolomonMultiply(c[f],u),f+1<c.length&&(c[f]^=c[f+1]);u=t.reedSolomonMultiply(u,2);}return c}static reedSolomonComputeRemainder(l,c){let u=c.map(d=>0);for(const d of l){const f=d^u.shift();u.push(0),c.forEach((h,g)=>u[g]^=t.reedSolomonMultiply(h,f));}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let d=7;d>=0;d--)u=u<<1^(u>>>7)*285,u^=(c>>>d&1)*l;return a(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];a(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return (u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l);}};let n=t;n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;function r(l,c,u){if(c<0||c>31||l>>>c)throw new RangeError("Value out of range");for(let d=c-1;d>=0;d--)u.push(l>>>d&1);}function o(l,c){return (l>>>c&1)!=0}function a(l){if(!l)throw new Error("Assertion error")}const i=class{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice();}static makeBytes(l){let c=[];for(const u of l)r(u,8,c);return new i(i.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!i.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u<l.length;){const d=Math.min(l.length-u,3);r(parseInt(l.substr(u,d),10),d*3+1,c),u+=d;}return new i(i.Mode.NUMERIC,l.length,c)}static makeAlphanumeric(l){if(!i.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");let c=[],u;for(u=0;u+2<=l.length;u+=2){let d=i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u))*45;d+=i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u+1)),r(d,11,c);}return u<l.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u)),6,c),new i(i.Mode.ALPHANUMERIC,l.length,c)}static makeSegments(l){return l==""?[]:i.isNumeric(l)?[i.makeNumeric(l)]:i.isAlphanumeric(l)?[i.makeAlphanumeric(l)]:[i.makeBytes(i.toUtf8ByteArray(l))]}static makeEci(l){let c=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)r(l,8,c);else if(l<16384)r(2,2,c),r(l,14,c);else if(l<1e6)r(6,3,c),r(l,21,c);else throw new RangeError("ECI assignment value out of range");return new i(i.Mode.ECI,0,c)}static isNumeric(l){return i.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return i.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,c){let u=0;for(const d of l){const f=d.mode.numCharCountBits(c);if(d.numChars>=1<<f)return 1/0;u+=4+f+d.bitData.length;}return u}static toUtf8ByteArray(l){l=encodeURI(l);let c=[];for(let u=0;u<l.length;u++)l.charAt(u)!="%"?c.push(l.charCodeAt(u)):(c.push(parseInt(l.substr(u+1,2),16)),u+=2);return c}};let s=i;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s;})(pa||(pa={}));(e=>{(t=>{const n=class{constructor(o,a){this.ordinal=o,this.formatBits=a;}};let r=n;r.LOW=new n(0,1),r.MEDIUM=new n(1,0),r.QUARTILE=new n(2,3),r.HIGH=new n(3,2),t.Ecc=r;})(e.QrCode||(e.QrCode={}));})(pa||(pa={}));(e=>{(t=>{const n=class{constructor(o,a){this.modeBits=o,this.numBitsCharCount=a;}numCharCountBits(o){return this.numBitsCharCount[Math.floor((o+7)/17)]}};let r=n;r.NUMERIC=new n(1,[10,12,14]),r.ALPHANUMERIC=new n(2,[9,11,13]),r.BYTE=new n(4,[8,16,16]),r.KANJI=new n(8,[8,10,12]),r.ECI=new n(7,[0,0,0]),t.Mode=r;})(e.QrSegment||(e.QrSegment={}));})(pa||(pa={}));var Cs=pa;/**
   * @license qrcode.react
   * Copyright (c) Paul O'Shannessy
   * SPDX-License-Identifier: ISC
   */var rle={L:Cs.QrCode.Ecc.LOW,M:Cs.QrCode.Ecc.MEDIUM,Q:Cs.QrCode.Ecc.QUARTILE,H:Cs.QrCode.Ecc.HIGH},ole=128,ale="L",ile="#FFFFFF",sle="#000000",lle=!1,eP=4,cle=.1;function ule(e,t=0){const n=[];return e.forEach(function(r,o){let a=null;r.forEach(function(i,s){if(!i&&a!==null){n.push(`M${a+t} ${o+t}h${s-a}v1H${a+t}z`),a=null;return}if(s===r.length-1){if(!i)return;a===null?n.push(`M${s+t},${o+t} h1v1H${s+t}z`):n.push(`M${a+t},${o+t} h${s+1-a}v1H${a+t}z`);return}i&&a===null&&(a=s);});}),n.join("")}function dle(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((o,a)=>a<t.x||a>=t.x+t.w?o:!1))}function fle(e,t,n,r){if(r==null)return null;const o=n?eP:0,a=e.length+o*2,i=Math.floor(t*cle),s=a/t,l=(r.width||i)*s,c=(r.height||i)*s,u=r.x==null?e.length/2-l/2:r.x*s,d=r.y==null?e.length/2-c/2:r.y*s;let f=null;if(r.excavate){let h=Math.floor(u),g=Math.floor(d),v=Math.ceil(l+u-h),p=Math.ceil(c+d-g);f={x:h,y:g,w:v,h:p};}return {x:u,y:d,h:c,w:l,excavation:f}}(function(){try{new Path2D().addPath(new Path2D);}catch{return !1}return !0})();function mle(e){const t=e,{value:n,size:r=ole,level:o=ale,bgColor:a=ile,fgColor:i=sle,includeMargin:s=lle,imageSettings:l}=t,c=nle(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let u=Cs.QrCode.encodeText(n,rle[o]).getModules();const d=s?eP:0,f=u.length+d*2,h=fle(u,r,s,l);let g=null;l!=null&&h!=null&&(h.excavation!=null&&(u=dle(u,h.excavation)),g=m.createElement("image",{xlinkHref:l.src,height:h.h,width:h.w,x:h.x+d,y:h.y+d,preserveAspectRatio:"none"}));const v=ule(u,d);return m.createElement("svg",tle({height:r,width:r,viewBox:`0 0 ${f} ${f}`},c),m.createElement("path",{fill:a,d:`M0,0 h${f}v${f}H0z`,shapeRendering:"crispEdges"}),m.createElement("path",{fill:i,d:v,shapeRendering:"crispEdges"}),g)}const tP=e=>{const t=jS(e,fi.appkey,fi.appsec);return new URLSearchParams({...e,sign:t})};async function hle(){const t=(await yn.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/auth_code",tP({appkey:fi.appkey,local_id:"0",ts:"0"}))).data;if(!oo(t)){Et((t==null?void 0:t.message)||"获取 auth_code 失败");return}return t.data}async function gle(e){const n=(await yn.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/poll",tP({appkey:fi.appkey,auth_code:e,local_id:"0",ts:"0"}))).data,r={0:"成功","-3":"API校验密匙错误","-400":"请求错误","-404":"啥都木有",86038:"二维码已失效",86039:"二维码尚未确认",86090:"二维码已扫码未确认"};if(!oo(n)){const a=n.code.toString(),i=n.message||r[a]||"未知错误";return a==="86038"?{success:!1,message:i,action:"refresh"}:a==="86039"||a==="86090"?{success:!1,message:i,action:"wait"}:{success:!1,message:i,action:void 0}}return {success:!0,accessKey:n.data.access_token,message:"获取成功"}}async function vle(e){const n=(await yn.post("https://passport.bilibili.com/x/passport-tv-login/h5/qrcode/confirm",new URLSearchParams({auth_code:e,scanning_type:"1",csrf:Hi()}))).data;if(!oo(n)){const r=n.message||"未知错误";return Et(r)}}const Jp={show:!1,qrcode:"",auth_code:"",message:""},tl=ur({...Jp}),Ka=tl;function As(e){xle(),Object.assign(tl,e);}function ple(e){As({...Jp,...e,show:!0});}function nP(){rP.emit("hide"),As({...Jp});}const rP=jp();function ble(){return Jse(rP,"hide")}async function yle(){tl.auth_code&&await vle(tl.auth_code);}var Cle={name:"7zumh8",styles:"margin:10px 15px;text-align:right"},Sle={name:"dbvn1l",styles:"height:30px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:5px"},$le={name:"1azakc",styles:"text-align:center"};function wle(){const{qrcode:e,show:t,message:n}=hr(tl),r=nP,{runAsync:o,loading:a}=Gx(yle,{manual:!0});return ve(Wd,{show:t,onHide:r,hideWhenMaskOnClick:!1,hideWhenEsc:!1,styleModal:{width:"600px"},children:[ve("div",{className:cr.modalHeader,children:[D("div",{className:cr.modalTitle,children:"使用移动端 Bilibili App 扫码获取 access_key"}),D("div",{className:"space",style:{flex:1}}),D(Gd,{onClick:r})]}),ve("div",{className:cr.modalBody,children:[ve("div",{className:"wrapper",css:$le,children:[D("div",{css:Sle,children:n||""}),e?D(mle,{value:e,size:200}):D("div",{className:"qrcode-placeholder"})]}),D("div",{css:Cle,children:D(Bd,{title:"可能会导致桌面端掉登录(不可用), 谨慎使用",children:D(Zt,{onClick:o,loading:a,children:"使用桌面端确认"})})})]})]})}const xle=hw(function(){const t=document.createElement("div");t.classList.add("modal-tv-qrcode-auth",ya),document.body.appendChild(t),Il(t).render(D(Zv,{children:D(wle,{})}));});async function cC(){const e=await hle();if(e)return ple({qrcode:e.url,auth_code:e.auth_code}),!0}async function Ele(){if(!await cC())return;let t,n=Ka.auth_code;function r(){if(!Ka.show||!Ka.auth_code||n!==Ka.auth_code)return !0}for(;;){if(r())return;const o=wr(1500),a=ble();if(await Promise.race([o,a]),a.cancel(),r())return;t=await gle(Ka.auth_code);const{success:i,accessKey:s,message:l,action:c}=t;if(As({message:l}),i)return await wr(1e3),nP(),s;if(c==="refresh"){await wr(2e3),await cC(),n=Ka.auth_code,As({message:"已刷新二维码"});continue}if(c!=="wait"){if(r())return;As({message:l}),Et(l);return}}}async function Ile(){const e=await Ele();if(e)return Mt.accessKey=e,Et("获取成功"),e}function Ple(){Mt.accessKey="",Et("已删除 access_key");}const uC=D(Zt,{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 oP({style:e,className:t}){const {runAsync:n,loading:r}=Gx(Ile,{manual:!0}),{accessKey:o}=hn(),a=Ple,s=l=>l;return D(Fl,{size:"small",style:e,className:t,children:o?ve(Rt,{children:[s(D(Zt,{onClick:n,disabled:r,children:D("span",{children:"重新获取 access_key"})})),D(Zt,{onClick:a,children:D("span",{children:"删除 access_key"})}),uC]}):ve(Rt,{children:[s(D(Zt,{onClick:n,disabled:r,size:"middle",children:D("span",{children:"获取 access_key"})})),uC]})})}const Ole="_config-icon_1xtyf_1",Mle="_settings-group_1xtyf_6",Rle="_settings-group-title_1xtyf_9",Tle="_settings-group-sub-title_1xtyf_14",_le="_settings-group-content_1xtyf_20",Nle="_row_1xtyf_26",kle="_check_1xtyf_34",Ale="_setting-tabs_1xtyf_39",Lle="_tab-pane_1xtyf_42",Ke={configIcon:Ole,settingsGroup:Mle,settingsGroupTitle:Rle,settingsGroupSubTitle:Tle,settingsGroupContent:_le,row:Nle,check:kle,settingTabs:Ale,tabPane:Lle},Dle=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return {[t]:Object.assign(Object.assign({},zt(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,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:`${i*100}%`},"&::after":{width:`${100-i*100}%`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`${100-i*100}%`},"&::after":{width:`${i*100}%`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-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}}})}},Fle=Wt("Divider",e=>{const t=St(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [Dle(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}));var zle=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 jle=e=>{const{getPrefixCls:t,direction:n,divider:r}=m__namespace.useContext(tt),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:f,style:h}=e,g=zle(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",o),[p,b]=Fle(v),y=i.length>0?`-${i}`:i,C=!!u,$=i==="left"&&s!=null,w=i==="right"&&s!=null,E=G(v,r==null?void 0:r.className,b,`${v}-${a}`,{[`${v}-with-text`]:C,[`${v}-with-text${y}`]:C,[`${v}-dashed`]:!!d,[`${v}-plain`]:!!f,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:$,[`${v}-no-default-orientation-margin-right`]:w},l,c),S=m__namespace.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),x=Object.assign(Object.assign({},$&&{marginLeft:S}),w&&{marginRight:S});return p(m__namespace.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},g,{role:"separator"}),u&&a!=="vertical"&&m__namespace.createElement("span",{className:`${v}-inner-text`,style:x},u)))},Ble=jle;var Hle=["b"],Vle=["v"],Pm=function(t){return Math.round(Number(t||0))},Wle=function(t){if(t&&dt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=et(n,Hle);return U(U({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},_u=function(e){jo(n,e);var t=Bo(n);function n(r){return wn(this,n),t.call(this,Wle(r))}return xn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Pm(o.s*100),i=Pm(o.b*100),s=Pm(o.h),l=o.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv();dt(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var a=o;a.v;var i=et(a,Vle);return U(U({},i),{},{b:o.v})}}]),n}(Qt),Gle="rc-color-picker",Ao=function(t){return t instanceof _u?t:new _u(t)},Kle=Ao("#1677ff"),aP=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,a=t.color,i=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,g=f/2,v=(n.x+h)/l,p=1-(n.y+g)/c,b=a.toHsb(),y=v,C=(n.x+h)/l*360;if(i)switch(i){case"hue":return Ao(U(U({},b),{},{h:C<=0?0:C}));case"alpha":return Ao(U(U({},b),{},{a:y<=0?0:y}))}return Ao({h:b.h,s:v<=0?0:v,b:p>=1?1:p,a:b.a})},iP=function(t,n,r,o){var a=t.current.getBoundingClientRect(),i=a.width,s=a.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*i-d,y:-f/3};case"alpha":return {x:h.a/1*i-d,y:-f/3}}return {x:h.s*i-d,y:(1-h.b)*s-f}}},e0=function(t){var n=t.color,r=t.prefixCls,o=t.className,a=t.style,i=t.onClick,s="".concat(r,"-color-block");return m.createElement("div",{className:G(s,o),style:a,onClick:i},m.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function Ule(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 sP(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,a=e.onDragChange,i=e.onDragChangeComplete,s=e.calculate,l=e.color,c=e.disabledDrag,u=m.useState(t||{x:0,y:0}),d=Z(u,2),f=d[0],h=d[1],g=m.useRef(null),v=m.useRef(null),p=m.useRef({flag:!1});m.useEffect(function(){if(p.current.flag===!1){var w=s==null?void 0:s(r);w&&h(w);}},[l,r]),m.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null;}},[]);var b=function(E){var S=Ule(E),x=S.pageX,I=S.pageY,P=r.current.getBoundingClientRect(),R=P.x,O=P.y,N=P.width,A=P.height,L=n.current.getBoundingClientRect(),T=L.width,M=L.height,_=T/2,z=M/2,F=Math.max(0,Math.min(x-R,N))-_,B=Math.max(0,Math.min(I-O,A))-z,H={x:F,y:o==="x"?f.y:B};if(T===0&&M===0||T!==M)return !1;h(H),a==null||a(H);},y=function(E){E.preventDefault(),b(E);},C=function(E){E.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null,i==null||i();},$=function(E){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),!c&&(b(E),p.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),document.addEventListener("touchmove",y),document.addEventListener("touchend",C),g.current=y,v.current=C);};return [f,$]}var lP=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,a=t.prefixCls;return m.createElement("div",{className:G("".concat(a,"-handler"),j({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},cP=function(t){var n=t.children,r=t.style,o=t.prefixCls;return m.createElement("div",{className:"".concat(o,"-palette"),style:U({position:"relative"},r)},n)},uP=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)}),Xle=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,a=t.onChangeComplete,i=t.disabled,s=m.useRef(),l=m.useRef(),c=m.useRef(n),u=sP({color:n,containerRef:s,targetRef:l,calculate:function(v){return iP(v,l,n)},onDragChange:function(v){var p=aP({offset:v,targetRef:l,containerRef:s,color:n});c.current=p,r(p);},onDragChangeComplete:function(){return a==null?void 0:a(c.current)},disabledDrag:i}),d=Z(u,2),f=d[0],h=d[1];return m.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},m.createElement(cP,{prefixCls:o},m.createElement(uP,{offset:f,ref:l},m.createElement(lP,{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))"}})))},qle=function(t){var n=t.colors,r=t.children,o=t.direction,a=o===void 0?"to right":o,i=t.type,s=t.prefixCls,l=m.useMemo(function(){return n.map(function(c,u){var d=Ao(c);return i==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,i]);return m.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},r)},dC=function(t){var n=t.gradientColors,r=t.direction,o=t.type,a=o===void 0?"hue":o,i=t.color,s=t.value,l=t.onChange,c=t.onChangeComplete,u=t.disabled,d=t.prefixCls,f=m.useRef(),h=m.useRef(),g=m.useRef(i),v=sP({color:i,targetRef:h,containerRef:f,calculate:function($){return iP($,h,i,a)},onDragChange:function($){var w=aP({offset:$,targetRef:h,containerRef:f,color:i,type:a});g.current=w,l(w);},onDragChangeComplete:function(){c==null||c(g.current,a);},direction:"x",disabledDrag:u}),p=Z(v,2),b=p[0],y=p[1];return m.createElement("div",{ref:f,className:G("".concat(d,"-slider"),"".concat(d,"-slider-").concat(a)),onMouseDown:y,onTouchStart:y},m.createElement(cP,{prefixCls:d},m.createElement(uP,{offset:b,ref:h},m.createElement(lP,{size:"small",color:s,prefixCls:d})),m.createElement(qle,{colors:n,direction:r,type:a,prefixCls:d})))};function fC(e){return e!==void 0}var Yle=function(t,n){var r=n.defaultValue,o=n.value,a=m.useState(function(){var c;return fC(o)?c=o:fC(r)?c=r:c=t,Ao(c)}),i=Z(a,2),s=i[0],l=i[1];return m.useEffect(function(){o&&l(Ao(o));},[o]),[s,l]},Zle=["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 Qle=m.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,a=o===void 0?Gle:o,i=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,g=h===void 0?!1:h,v=Yle(Kle,{value:n,defaultValue:r}),p=Z(v,2),b=p[0],y=p[1],C=m.useMemo(function(){var x=Ao(b.toRgbString());return x.setAlpha(1),x.toRgbString()},[b]),$=G("".concat(a,"-panel"),l,j({},"".concat(a,"-panel-disabled"),g)),w={prefixCls:a,onChangeComplete:s,disabled:g},E=function(I,P){n||y(I),i==null||i(I,P);},S=m.createElement(m.Fragment,null,m.createElement(Xle,Ie({color:b,onChange:E},w)),m.createElement("div",{className:"".concat(a,"-slider-container")},m.createElement("div",{className:G("".concat(a,"-slider-group"),j({},"".concat(a,"-slider-group-disabled-alpha"),f))},m.createElement(dC,Ie({gradientColors:Zle,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(I){return E(I,"hue")}},w)),!f&&m.createElement(dC,Ie({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",C],color:b,value:b.toRgbString(),onChange:function(I){return E(I,"alpha")}},w))),m.createElement(e0,{color:b.toRgbString(),prefixCls:a})));return m.createElement("div",{className:$,style:c,ref:t},typeof u=="function"?u(S):S)}),dP=m.createContext({}),fP=m.createContext({}),{Provider:Jle}=dP,{Provider:ece}=fP,jc=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",tce=(e,t)=>e?jc(e,t):"";let mC=function(){function e(t){wn(this,e),this.metaColor=new _u(t),t||this.metaColor.setAlpha(0);}return xn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return tce(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 nce="ant-color-picker",Dn=e=>e instanceof mC?e:new mC(e),Bc=e=>Math.round(Number(e||0)),Nu=e=>Bc(e.toHsb().a*100),Om=(e,t)=>{const n=e.toHsb();return n.a=t||1,Dn(n)},rce=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const a=()=>{if(n&&!r){const i=n.toHsb();i.a=0;const s=Dn(i);o==null||o(s);}};return m.createElement("div",{className:`${t}-clear`,onClick:a})},mP=rce;var mo;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(mo||(mo={}));const oce=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:a,className:i,formatter:s}=e;const l=`${t}-steppers`,[c,u]=m.useState(o);return m.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),m.createElement(Cg,{className:G(l,i),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),a==null||a(d);}})},da=oce,ace=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[a,i]=m.useState(Dn(n||"#000"));m.useEffect(()=>{n&&i(n);},[n]);const s=l=>{const c=a.toHsb();c.a=(l||0)/100;const u=Dn(c);n||i(u),r==null||r(u);};return m.createElement(da,{value:Nu(a),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},ice=ace,sce=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,hC=e=>sce.test(`#${e}`),lce=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[a,i]=m.useState(n==null?void 0:n.toHex());m.useEffect(()=>{const l=n==null?void 0:n.toHex();hC(l)&&n&&i(jc(l));},[n]);const s=l=>{const c=l.target.value;i(jc(c)),hC(jc(c,!0))&&(r==null||r(Dn(c)));};return m.createElement(qE,{className:o,value:a,prefix:"#",onChange:s,size:"small"})},cce=lce,uce=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[a,i]=m.useState(Dn(n||"#000"));m.useEffect(()=>{n&&i(n);},[n]);const s=(l,c)=>{const u=a.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=Dn(u);n||i(d),r==null||r(d);};return m.createElement("div",{className:o},m.createElement(da,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:o,formatter:l=>Bc(l||0).toString(),onChange:l=>s(Number(l),"h")}),m.createElement(da,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${Bc(l||0)}%`,onChange:l=>s(Number(l),"s")}),m.createElement(da,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${Bc(l||0)}%`,onChange:l=>s(Number(l),"b")}))},dce=uce,fce=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[a,i]=m.useState(Dn(n||"#000"));m.useEffect(()=>{n&&i(n);},[n]);const s=(l,c)=>{const u=a.toRgb();u[c]=l||0;const d=Dn(u);n||i(d),r==null||r(d);};return m.createElement("div",{className:o},m.createElement(da,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),m.createElement(da,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),m.createElement(da,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},mce=fce,hce=[mo.hex,mo.hsb,mo.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),gce=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:a,onChange:i}=e,[s,l]=Ut(mo.hex,{value:n,onChange:a}),c=`${t}-input`,u=f=>{l(f);},d=m.useMemo(()=>{const f={value:r,prefixCls:t,onChange:i};switch(s){case mo.hsb:return m.createElement(dce,Object.assign({},f));case mo.rgb:return m.createElement(mce,Object.assign({},f));case mo.hex:default:return m.createElement(cce,Object.assign({},f))}},[s,t,r,i]);return m.createElement("div",{className:`${c}-container`},m.createElement(Bl,{value:s,bordered:!1,getPopupContainer:f=>f,popupMatchSelectWidth:68,placement:"bottomRight",onChange:u,className:`${t}-format-select`,size:"small",options:hce}),m.createElement("div",{className:c},d),!o&&m.createElement(ice,{prefixCls:t,value:r,onChange:i}))},vce=gce;var pce=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 bce=()=>{const e=m.useContext(dP),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:a,onChange:i,onClear:s,onChangeComplete:l}=e,c=pce(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return m.createElement(m.Fragment,null,r&&m.createElement(mP,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:u=>{i==null||i(u),s==null||s();}},c)),m.createElement(Qle,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:a,onChange:(u,d)=>i==null?void 0:i(u,d,!0),onChangeComplete:l}),m.createElement(vce,Object.assign({value:o,onChange:i,prefixCls:t,disabledAlpha:a},c)))},gC=bce;var hP=m.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,a=e.className,i=e.style,s=e.children,l=e.isActive,c=e.role,u=m.useState(l||o),d=Z(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:G("".concat(r,"-content"),(n={},j(n,"".concat(r,"-content-active"),l),j(n,"".concat(r,"-content-inactive"),!l),n),a),style:i,role:c},m.createElement("div",{className:"".concat(r,"-content-box")},s)):null});hP.displayName="PanelContent";var yce=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],gP=m.forwardRef(function(e,t){var n,r,o=e.showArrow,a=o===void 0?!0:o,i=e.headerClass,s=e.isActive,l=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,f=e.collapsible,h=e.accordion,g=e.panelKey,v=e.extra,p=e.header,b=e.expandIcon,y=e.openMotion,C=e.destroyInactivePanel,$=e.children,w=et(e,yce),E=f==="disabled",S=f==="header",x=f==="icon",I=v!=null&&typeof v!="boolean",P=function(){l==null||l(g);},R=function(M){(M.key==="Enter"||M.keyCode===ue.ENTER||M.which===ue.ENTER)&&P();},O=typeof b=="function"?b(e):m.createElement("i",{className:"arrow"});O&&(O=m.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(f)?P:void 0},O));var N=G((n={},j(n,"".concat(d,"-item"),!0),j(n,"".concat(d,"-item-active"),s),j(n,"".concat(d,"-item-disabled"),E),n),u),A=G(i,(r={},j(r,"".concat(d,"-header"),!0),j(r,"".concat(d,"-header-collapsible-only"),S),j(r,"".concat(d,"-icon-collapsible-only"),x),r)),L={className:A,"aria-expanded":s,"aria-disabled":E,onKeyDown:R};return !S&&!x&&(L.onClick=P,L.role=h?"tab":"button",L.tabIndex=E?-1:0),m.createElement("div",Ie({},w,{ref:t,className:N}),m.createElement("div",L,a&&O,m.createElement("span",{className:"".concat(d,"-header-text"),onClick:f==="header"?P:void 0},p),I&&m.createElement("div",{className:"".concat(d,"-extra")},v)),m.createElement(Co,Ie({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:C}),function(T,M){var _=T.className,z=T.style;return m.createElement(hP,{ref:M,prefixCls:d,className:_,style:z,isActive:s,forceRender:c,role:h?"tabpanel":void 0},$)}))}),Cce=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Sce=function(t,n){var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(d,f){var h=d.children,g=d.label,v=d.key,p=d.collapsible,b=d.onItemClick,y=d.destroyInactivePanel,C=et(d,Cce),$=String(v??f),w=p??a,E=y??i,S=function(P){w!=="disabled"&&(s(P),b==null||b(P));},x=!1;return o?x=l[0]===$:x=l.indexOf($)>-1,m.createElement(gP,Ie({},C,{prefixCls:r,key:$,panelKey:$,isActive:x,accordion:o,openMotion:c,expandIcon:u,header:g,collapsible:w,onItemClick:S,destroyInactivePanel:E}),h)})},$ce=function(t,n,r){if(!t)return null;var o=r.prefixCls,a=r.accordion,i=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,g=h.header,v=h.headerClass,p=h.destroyInactivePanel,b=h.collapsible,y=h.onItemClick,C=!1;a?C=c[0]===f:C=c.indexOf(f)>-1;var $=b??i,w=function(x){$!=="disabled"&&(l(x),y==null||y(x));},E={key:f,panelKey:f,header:g,headerClass:v,isActive:C,prefixCls:o,destroyInactivePanel:p??s,openMotion:u,accordion:a,children:t.props.children,onItemClick:w,expandIcon:d,collapsible:$};return typeof t.type=="string"?t:(Object.keys(E).forEach(function(S){typeof E[S]>"u"&&delete E[S];}),m.cloneElement(t,E))};function wce(e,t,n){return Array.isArray(e)?Sce(e,n):dr(t).map(function(r,o){return $ce(r,o,n)})}function xce(e){var t=e;if(!Array.isArray(t)){var n=dt(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var Ece=m.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,a=o===void 0?!1:o,i=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,f=e.expandIcon,h=e.activeKey,g=e.defaultActiveKey,v=e.onChange,p=e.items,b=G(r,l),y=Ut([],{value:h,onChange:function(I){return v==null?void 0:v(I)},defaultValue:g,postState:xce}),C=Z(y,2),$=C[0],w=C[1],E=function(I){return w(function(){if(s)return $[0]===I?[]:[I];var P=$.indexOf(I),R=P>-1;return R?$.filter(function(O){return O!==I}):[].concat(Te($),[I])})};Sn(!c,"`children` will be removed in next major version. Please use `items` instead.");var S=wce(p,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:a,onItemClick:E,activeKey:$});return m.createElement("div",{ref:t,className:b,style:i,role:s?"tablist":void 0},S)});const t0=Object.assign(Ece,{Panel:gP});t0.Panel;const Ice=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=m__namespace.useContext(tt),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=G({[`${i}-no-arrow`]:!a},o);return m__namespace.createElement(t0.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),Pce=Ice,Oce=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:f,colorTextHeading:h,colorTextDisabled:g,fontSize:v,fontSizeLG:p,lineHeight:b,marginSM:y,paddingSM:C,paddingLG:$,paddingXS:w,motionDurationSlow:E,fontSizeIcon:S,contentPadding:x}=e,I=`${c}px ${u} ${d}`;return {[t]:Object.assign(Object.assign({},zt(e)),{backgroundColor:o,border:I,borderBottom:0,borderRadius:`${l}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:I,"&:last-child":{[`
            &,
            & > ${t}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:b,cursor:"pointer",transition:`all ${E}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:v*b,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},$a()),{fontSize:S,svg:{transition:`transform ${E}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:I,[`& > ${t}-content-box`]:{padding:x},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:w,[`> ${t}-expand-icon`]:{marginInlineStart:C-w}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},"&-large":{[`> ${t}-item`]:{fontSize:p,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:p*b,marginInlineStart:$-r}},[`> ${t}-content > ${t}-content-box`]:{padding:$}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}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:y}}}}})}},Mce=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Rce=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return {[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`
        > ${t}-item:last-child,
        > ${t}-item:last-child ${t}-header
      `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},Tce=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}}}}}},_ce=Wt("Collapse",e=>{const t=St(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return [Oce(t),Rce(t),Tce(t),Mce(t),uw(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})),Nce=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=m__namespace.useContext(tt),{prefixCls:a,className:i,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:h,expandIcon:g}=e,v=Jn(I=>{var P;return (P=d??I)!==null&&P!==void 0?P:"middle"}),p=n("collapse",a),b=n(),[y,C]=_ce(p),$=m__namespace.useMemo(()=>f==="left"?"start":f==="right"?"end":f,[f]),w=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const P=g?g(I):m__namespace.createElement(Pi,{rotate:I.isActive?90:void 0});return Kn(P,()=>({className:G(P.props.className,`${p}-arrow`)}))},E=G(`${p}-icon-position-${$}`,{[`${p}-borderless`]:!c,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!u,[`${p}-${v}`]:v!=="middle"},o==null?void 0:o.className,i,s,C),S=Object.assign(Object.assign({},q$(b)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),x=m__namespace.useMemo(()=>h?dr(h).map((I,P)=>{var R,O;if(!((R=I.props)===null||R===void 0)&&R.disabled){const N=(O=I.key)!==null&&O!==void 0?O:String(P),{disabled:A,collapsible:L}=I.props,T=Object.assign(Object.assign({},zn(I.props,["disabled"])),{key:N,collapsible:L??(A?"disabled":void 0)});return Kn(I,T)}return I}):null,[h]);return y(m__namespace.createElement(t0,Object.assign({ref:t,openMotion:S},zn(e,["rootClassName"]),{expandIcon:w,prefixCls:p,className:E,style:Object.assign(Object.assign({},o==null?void 0:o.style),l)}),x))}),kce=Object.assign(Nce,{Panel:Pce}),Mm=e=>e.map(t=>(t.colors=t.colors.map(Dn),t)),Ace=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new _u(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},vC=e=>{let{label:t}=e;return `panel-${t}`},Lce=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[a]=Vi("ColorPicker"),[,i]=Qn(),[s]=Ut(Mm(n),{value:Mm(n),postState:Mm}),l=`${t}-presets`,c=m.useMemo(()=>s.reduce((f,h)=>{const{defaultOpen:g=!0}=h;return g&&f.push(vC(h)),f},[]),[s]),u=f=>{o==null||o(f);},d=s.map(f=>{var h;return {key:vC(f),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((g,v)=>m.createElement(e0,{key:`preset-${v}-${g.toHexString()}`,color:Dn(g).toRgbString(),prefixCls:t,className:G(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:Ace(g,i.colorBgElevated)}),onClick:()=>u(g)})):m.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return m.createElement("div",{className:l},m.createElement(kce,{defaultActiveKey:c,ghost:!0,items:d}))},Dce=Lce,Fce=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=m.useContext(fP);return Array.isArray(n)?m.createElement(Dce,{value:t,presets:n,prefixCls:e,onChange:r}):null},pC=Fce;var zce=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 jce=e=>{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:a,onClear:i}=e,s=zce(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),l=`${t}-inner-content`,c=Object.assign({prefixCls:t,value:o,onChange:a,onClear:i},s),u=m.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:a}),[t,o,n,a]),d=m.createElement(m.Fragment,null,m.createElement(gC,null),Array.isArray(n)&&m.createElement(Ble,{className:`${l}-divider`}),m.createElement(pC,null));return m.createElement(Jle,{value:c},m.createElement(ece,{value:u},m.createElement("div",{className:l},typeof r=="function"?r(d,{components:{Picker:gC,Presets:pC}}):d)))},Bce=jce;var Hce=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 Vce=m.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:a,disabled:i,format:s,className:l,showText:c}=e,u=Hce(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),d=`${r}-trigger`,f=m.useMemo(()=>a?m.createElement(mP,{prefixCls:r}):m.createElement(e0,{prefixCls:r,color:n.toRgbString()}),[n,a,r]),h=()=>{const v=n.toHexString().toUpperCase(),p=Nu(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${v.slice(0,7)},${p}%`:v}},g=()=>{if(typeof c=="function")return c(n);if(c)return h()};return m.createElement("div",Object.assign({ref:t,className:G(d,l,{[`${d}-active`]:o,[`${d}-disabled`]:i})},u),f,c&&m.createElement("div",{className:`${d}-text`},g()))}),Wce=Vce;function bC(e){return e!==void 0}const Gce=(e,t)=>{const{defaultValue:n,value:r}=t,[o,a]=m.useState(()=>{let i;return bC(r)?i=r:bC(n)?i=n:i=e,Dn(i||"")});return m.useEffect(()=>{r&&a(Dn(r));},[r]),[o,a]},Kce=Gce,vP=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),Uce=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:a,colorFillSecondary:i}=e;return {[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},vP("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${a}px solid ${i}`,borderRadius:"inherit"}})}},yC=Uce,Xce=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:a,marginXXS:i,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:f,colorPickerInputNumberHandleWidth:h,lineWidth:g}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${a}px`,marginInlineStart:i},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:u+i,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:i,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:i,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${d}px`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:`${l-2*g}px`},[`${n}-input-prefix`]:{color:f}}}}}},qce=Xce,Yce=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:a,colorBgElevated:i,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:a},[`${t}-handler`]:{width:c,height:c,border:`${l}px solid ${i}`,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":vP(`${d}px`,e.colorFillSecondary),"&-hue":{marginBottom:a}},[`${t}-slider-container`]:{display:"flex",gap:a,marginBottom:a,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},Zce=Yce,Qce=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:a,fontSizeSM:i,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:f,marginXXS:h,paddingXS:g}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:i*l,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${g}px 0`},"&-label":{fontSize:i,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:h*1.5,[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:a+4*c,height:a+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:a/13*5,height:a/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:i,color:r}}}},Jce=Qce,Sg=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${n}`,outline:0}),eue=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},CC=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:a,colorSplit:i,red6:s}=e;return {[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${a}px solid ${i}`,position:"relative",cursor:"pointer",overflow:"hidden"},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:a,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:s}})}},tue=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:a,colorErrorOutline:i,colorWarningOutline:s}=e;return {[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},Sg(e,n,i))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},Sg(e,r,s))}}},nue=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:a,borderRadius:i,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:i},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:l}}}},rue=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:a,colorTextDisabled:i,colorText:s,colorBgContainerDisabled:l,borderRadius:c,marginXS:u,marginSM:d,controlHeight:f,controlHeightSM:h,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:p,lineWidth:b,colorBorder:y,paddingXXS:C,fontSize:$,colorPrimaryHover:w,controlOutline: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({},Zce(e))},yC(e,p)),qce(e)),Jce(e)),CC(e,v,{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:a,padding:C-b,[`${t}-trigger-text`]:{marginInlineStart:u,marginInlineEnd:u-(C-b),fontSize:$,color:s},"&:hover":{borderColor:w},[`&${t}-trigger-active`]:Object.assign({},Sg(e,r,E)),"&-disabled":{color:i,background:l,cursor:"not-allowed","&:hover":{borderColor:g},[`${t}-trigger-text`]:{color:i}}},CC(e,h)),yC(e,h)),tue(e)),nue(e))},eue(e))}]},oue=Wt("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=St(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 [rue(o)]});var aue=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 n0=e=>{const{value:t,defaultValue:n,format:r,defaultFormat:o,allowClear:a=!1,presets:i,children:s,trigger:l="click",open:c,disabled:u,placement:d="bottomLeft",arrow:f=!0,panelRender:h,showText:g,style:v,className:p,size:b,rootClassName:y,styles:C,disabledAlpha:$=!1,onFormatChange:w,onChange:E,onClear:S,onOpenChange:x,onChangeComplete:I,getPopupContainer:P,autoAdjustOverflow:R=!0,destroyTooltipOnHide:O}=e,N=aue(e,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:A,direction:L,colorPicker:T}=m.useContext(tt),M=m.useContext(Hr),_=u??M,[,z]=Qn(),[F,B]=Kce(z.colorPrimary,{value:t,defaultValue:n}),[H,V]=Ut(!1,{value:c,postState:He=>!_&&He,onChange:x}),[K,X]=Ut(r,{value:r,defaultValue:o,onChange:w}),[q,te]=m.useState(!1),W=A("color-picker",nce),Q=m.useMemo(()=>Nu(F)<100,[F]),{status:Y}=m.useContext(Er),ie=Jn(b),[le,J]=oue(W),re={[`${W}-rtl`]:L},fe=G(y,re),ee=G(Fr(W,Y),{[`${W}-sm`]:ie==="small",[`${W}-lg`]:ie==="large"},T==null?void 0:T.className,fe,p,J),ce=G(W,re),he=m.useRef(!0),ne=(He,Me,Qe)=>{let Xe=Dn(He);(q||(t===null||!t&&n===null))&&(te(!1),Nu(F)===0&&Me!=="alpha"&&(Xe=Om(Xe))),$&&Q&&(Xe=Om(Xe)),Qe?he.current=!1:I==null||I(Xe),B(Xe),E==null||E(Xe,Xe.toHexString());},oe=()=>{te(!0),S==null||S();},me=He=>{he.current=!0;let Me=Dn(He);$&&Q&&(Me=Om(He)),I==null||I(Me);},pe={open:H,trigger:l,placement:d,arrow:f,rootClassName:y,getPopupContainer:P,autoAdjustOverflow:R,destroyTooltipOnHide:O},_e={prefixCls:W,color:F,allowClear:a,colorCleared:q,disabled:_,disabledAlpha:$,presets:i,panelRender:h,format:K,onFormatChange:X,onChangeComplete:me},Ve=Object.assign(Object.assign({},T==null?void 0:T.style),v);return le(m.createElement(Qd,Object.assign({style:C==null?void 0:C.popup,overlayInnerStyle:C==null?void 0:C.popupOverlayInner,onOpenChange:He=>{he.current&&!_&&V(He);},content:m.createElement(qs,{override:!0,status:!0},m.createElement(Bce,Object.assign({},_e,{onChange:ne,onChangeComplete:me,onClear:oe}))),overlayClassName:ce},pe),s||m.createElement(Wce,Object.assign({open:H,className:ee,style:Ve,color:t?Dn(t):F,prefixCls:W,disabled:_,colorCleared:q,showText:g,format:K},N))))},iue=ip(n0,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));n0._InternalPanelDoNotUseOrYouWillBeFired=iue;const sue=n0;var lue={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},cue={name:"snnttx",styles:"aspect-ratio:1;width:50px;border:2px solid transparent;border-radius:6px;margin:0 auto"},uue={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function due(){const e=Qg().id,{colorPickerThemeSelectedColor:t}=hn(),[n,r]=m.useState(t||Kc.colorPrimary),o=m.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return D("div",{children:WS.map(({name:a,themes:i,tooltip:s})=>ve(m.Fragment,{children:[ve("div",{css:uue,children:[a,D(Zd,{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:i.map(l=>{const c=e===l.id,u=l.isCustom,d=D("div",{className:"preview",css:Dr("aspect-ratio:1;width:42px;background-color:",u?o:l.colorPrimary,";border-radius:6px;","")});let f=D("div",{className:"preview-wrapper",css:[cue,zl,c&&Dr("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(f=D(sue,{value:n,onChange:h=>r(h),onOpenChange:h=>{h||lr({colorPickerThemeSelectedColor:o});},children:f})),ve("div",{css:lue,onClick:h=>{lr({theme:l.id});},children:[f,l.name]},l.id)})})]},a))})}async function r0(){Et("即将刷新网页"),await wr(500),location.reload();}function fue(){return IF(),r0()}async function mue(){const e=await bF(),t=Zg(e||{},e$);return Object.keys(t).length?(dD(!0),lr({...t}),r0()):Et("备份不存在或没有有效的配置")}function Sc(e,t,n){return cn(e,r=>{if(ld())return;Mt[t]=!Mt[t];const o=!Mt[t];Et(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}var hue={name:"1a2afmv",styles:"margin-left:10px"};function gue({show:e,onHide:t}){const{filterEnabled:n,filterMinPlayCount:r,filterMinPlayCountEnabled:o,filterMinDuration:a,filterMinDurationEnabled:i,filterOutGotoTypePicture:s}=hn();return Sc(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Sc(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Sc(["shift.c"],"useNarrowMode","居中模式"),Sc(["shift.y"],"styleFancy","Fancy Style"),ve(Wd,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[ve("div",{className:cr.modalHeader,children:[ve("div",{className:cr.modalTitle,children:[D(Ft,{name:"Config",className:Ke.configIcon}),"设置项"]}),D("div",{className:"space",style:{flex:1}}),D(Gd,{onClick:t})]}),D("main",{className:cr.modalBody,style:{overflow:"hidden"},children:D(Use,{tabPosition:"left",size:"middle",defaultActiveKey:"basic",className:Ke.settingTabs,items:[{label:"常规设置",key:"basic",children:D(vue,{})},{label:"内容过滤",key:"filter",children:D("div",{className:Ke.tabPane,children:ve("div",{className:Ke.settingsGroup,children:[ve("div",{className:Ke.settingsGroupTitle,children:["内容过滤",D(Zd,{iconProps:{name:"Tips"},tooltip:ve(Rt,{children:["启用过滤会大幅降低加载速度, 谨慎开启! ",D("br",{}),"仅推荐类 Tab 生效"]})}),D(Cp,{css:hue,checked:n,onChange:l=>{lr({filterEnabled:l});}})]}),ve("div",{className:G(Ke.settingsGroupContent),children:[D("div",{className:Ke.settingsGroupSubTitle,children:"视频"}),ve("div",{className:Ke.row,children:[D(In,{disabled:!n,configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:D(Rt,{children:"不显示播放量很少的视频"})}),D(Cg,{size:"small",min:1,step:1e3,value:r,onChange:l=>l&&lr({filterMinPlayCount:l}),disabled:!n||!o})]}),ve("div",{className:Ke.row,style:{marginTop:3},children:[D(In,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:D(Rt,{children:"不显示短视频"}),disabled:!n}),D(Cg,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:l=>l&&lr({filterMinDuration:l}),disabled:!n||!i})]}),D(In,{className:Ke.row,style:{marginTop:3},configKey:"enableFilterForFollowedVideo",label:"对「已关注」的视频启用过滤",tooltip:D(Rt,{children:"默认不过滤「已关注」"}),disabled:!n}),D("div",{className:Ke.settingsGroupSubTitle,children:"图文"}),D(In,{className:Ke.row,configKey:"filterOutGotoTypePicture",label:"启用图文(动态 & 专栏)过滤",tooltip:D(Rt,{children:"过滤掉图文推荐"}),disabled:!n}),D(In,{className:Ke.row,disabled:!n||!s,configKey:"enableFilterForFollowedPicture",label:"对「已关注」的图文启用过滤",tooltip:D(Rt,{children:"默认不过滤「已关注」"})})]})]})})},{label:"外观设置",key:"ui",children:D("div",{className:Ke.tabPane,children:ve("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),ve("div",{className:G(Ke.settingsGroupContent),children:[D("div",{className:Ke.row,children:D(In,{configKey:"styleFancy",label:"Fancy Style",tooltip:ve(Rt,{children:["增加卡片大小, 增大卡片间距",D("br",{}),"视频卡片会显示头像",D("br",{}),"切换设置快捷键: ",D(Po,{color:"green",children:"shift+y"})]})})}),D("div",{className:Ke.row,style:{marginTop:5},children:D(In,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab 按钮: 使用标准高度",tooltip:"默认紧凑高度"})})]})]})})},{label:"主题选择",key:"theme-select",children:D("div",{className:Ke.tabPane,children:ve("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),D("div",{className:G(Ke.settingsGroupContent),children:D(due,{})})]})})},{label:"高级设置",key:"advance",children:D(yue,{})}]})})]})}function vue(){return ve("div",{className:Ke.tabPane,children:[ve("div",{className:Ke.settingsGroup,children:[ve("div",{className:Ke.settingsGroupTitle,children:["access_key",D(Zd,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:ve(Rt,{children:["用于「推荐」Tab",D("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),D("div",{className:G(Ke.settingsGroupContent),children:D("div",{className:Ke.row,style:{marginTop:5},children:D(oP,{})})})]}),ve("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"开关"}),ve("div",{className:G(Ke.settingsGroupContent,Ke.row),children:[D(In,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:ve(Rt,{children:["首页只保留推荐",D("br",{}),"P.S 需要刷新网页~"]}),className:Ke.check,extraAction:r0}),D(In,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",className:Ke.check,extraAction:e=>{e&&Et("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),D(In,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:ve(Rt,{children:["居中两列",D("br",{}),"切换设置快捷键: ",D(Po,{color:"green",children:"shift+c"})]}),className:Ke.check})]})]}),ve("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"预览"}),ve("div",{className:G(Ke.settingsGroupContent,Ke.row),children:[D(In,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Ke.check,tooltip:ve(Rt,{children:["手动预览快捷键: ",D(Po,{color:"green",children:"."})," or ",D(Po,{color:"green",children:"p"}),D("br",{}),"切换设置快捷键: ",D(Po,{color:"green",children:"shift+p"})]})}),D(In,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Ke.check,tooltip:ve(Rt,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",D("br",{}),"切换设置快捷键: ",D(Po,{color:"green",children:"shift+m"})]})})]})]}),ve("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"帮助"}),D("div",{className:G(Ke.settingsGroupContent),children:D("div",{className:Ke.row,children:ve(Fl,{size:"small",children:[D(Zt,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),D(Zt,{href:"https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),D(Zt,{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(Zt,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),D(Zt,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})}var pue={name:"1yvqi6w",styles:"display:flex;align-items:center;margin-right:15px"},bue={name:"1nwso5m",styles:".ant-checkbox-group-item{align-items:center;}"};function yue(){const e=S2(),{autoPreviewUpdateInterval:t}=hn();return D("div",{className:Ke.tabPane,children:ve("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"设置项"}),D("div",{className:G(Ke.settingsGroupContent),children:D("div",{className:Ke.row,children:D(K1,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:fue,children:D(Zt,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),D("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),ve("div",{className:G(Ke.settingsGroupContent),children:[ve("div",{className:Ke.row,children:[D(In,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${an}`}),ve("a",{style:{marginLeft:15,display:"inline-flex",alignItems:"center"},href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[D(Ft,{name:"EfferentFour",size:16,style:{marginRight:4}}),"去草稿箱浏览"]})]}),D("div",{className:Ke.row,style:{marginTop:5},children:D(K1,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:mue,children:D(Zt,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),D("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"稍后再看 & 收藏"}),ve("div",{className:G(Ke.settingsGroupContent),children:[D("div",{className:Ke.row,children:D(In,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:D(Rt,{children:"不包括最近添加的「稍后再看」"})})}),D("div",{className:Ke.row,children:D(In,{configKey:"shuffleForFav",label:"对「收藏」Tab 使用随机顺序"})})]}),D("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"Tab 显示"}),ve("div",{className:G(Ke.settingsGroupContent),children:[D("div",{className:Ke.row,children:D(Yd.Group,{css:bue,options:kl.map(({label:n,key:r,icon:o,iconProps:a})=>({label:ve("span",{css:pue,children:[D(Ft,{name:o,...a,size:(a==null?void 0:a.size)||18,css:Gh}),n]}),value:r})),value:e,onChange:n=>{if(!n.length)return Et("至少选择一项!");lr({showingTabKeys:n});}})}),D(Zt,{style:{marginTop:5},onClick:()=>{lr({showingTabKeys:[]});},children:"重置"})]}),D("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"预览"}),ve("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",D(Iie,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:n=>Mt.autoPreviewUpdateInterval=n,value:t}),ve("span",{style:{width:"65px"},children:["(",t,"ms)"]})]})]})})}function Cue(){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,a=parseInt(getComputedStyle(e.current).top),i=o<=a;n(i);}return r(),document.addEventListener("scroll",r),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),()=>{document.removeEventListener("scroll",r),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r);}},[t]),[e,t]}const Sue="_expand-btn_wdzp9_1",$ue="_expanded_wdzp9_12",SC={expandBtn:Sue,expanded:$ue},wue=m.forwardRef(function({children:t},n){const[r,o]=Kx(!1);m.useImperativeHandle(n,()=>o,[o]);const a=D("button",{className:G("primary-btn",SC.expandBtn),onClick:o.toggle,children:D("svg",{className:G({[SC.expanded]:r}),children:D("use",{href:"#widget-arrow"})})});return ve(Rt,{children:[a,r&&t]})}),xue="_modal-mask_7bwzz_1",Eue="_narrow-mode_7bwzz_1",Iue="_modal_7bwzz_1",Pue="_modal-header_7bwzz_18",Oue="_modal-body_7bwzz_19",Mue="_btn-refresh_7bwzz_22",gs={modalMask:xue,narrowMode:Eue,modal:Iue,modalHeader:Pue,modalBody:Oue,btnRefresh:Mue};var Rue={name:"1q4vxyr",styles:"margin-left:8px"};const Tue=m.memo(function({show:t,onHide:n}){const r=m.useRef(null),o=m.useRef(null),{useNarrowMode:a}=hn(),i=m.useMemo(()=>({[gs.narrowMode]:a}),[a]),s=lt((...v)=>{var p;return (p=o.current)==null?void 0:p.refresh(...v)}),[l,c]=m.useState(null),u=lt(()=>{r.current&&(r.current.scrollTop=0);}),d=Tv(),f=m.useMemo(()=>d?{border:`1px solid ${to}`}:void 0,[d]),[h,g]=m.useState(!1);return D(Wd,{show:t,onHide:n,clsModalMask:G(i),clsModal:G(gs.modal,i),styleModal:{...f},children:ve(Fp.Provider,{value:s,children:[ve("div",{className:G(cr.modalHeader,gs.modalHeader),children:[D(w2,{onRefresh:s}),l,D("div",{className:"space",style:{flex:1}}),D(wue,{children:D(fX,{})}),D(bP,{css:Rue,refreshing:h,onRefresh:s,className:gs.btnRefresh,refreshHotkeyEnabled:t}),D(Gd,{onClick:n})]}),D("div",{className:G(cr.modalBody,gs.modalBody),ref:r,children:D(LI,{ref:o,shortcutEnabled:t,onScrollToTop:u,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:g,setExtraInfo:c})})]})})}),_ue=Bi.extend("RecHeader"),$C={btn:Dr`
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    ${zl}
  `,icon:Dr`
    svg {
      width: 14px;
      height: 14px;
    }
  `},Lo=ur({modalFeedVisible:Mt.initialShowMore,modalConfigVisible:!1}),Nue=function(){return hr(Lo)},kue=()=>{Lo.modalFeedVisible=!0;},Aue=()=>{Lo.modalFeedVisible=!1;},Lue=()=>{Lo.modalConfigVisible=!0;},Due=()=>{Lo.modalConfigVisible=!1;},pP=m.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},a){const{accessKey:i,pureRecommend:s,styleFancy:l}=hn(),{modalFeedVisible:c,modalConfigVisible:u}=hr(Lo);cn(["shift.comma"],p=>{ld()||(Lo.modalConfigVisible=!Lo.modalConfigVisible);},{exactMatch:!0});const[d,f]=Cue(),h=lt(()=>{var C;if(!s)return;const p=(C=d.current)==null?void 0:C.parentElement;if(!p)return;const b=p.getBoundingClientRect(),y=hI();if(b.top<y){const $=y-b.top+1;_ue("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",b.top,y,$),document.documentElement.scrollTop-=$;}});m.useImperativeHandle(a,()=>({scroll:h}));const g=hae(),v=va();return D(Rt,{children:ve(Fp.Provider,{value:t,children:[ve("div",{ref:d,className:"area-header",css:[Dr`
              margin-bottom: 0;
              height: 50px;
            `,s&&Dr`
                position: sticky;
                top: ${g-1}px; // 有缝隙, 故 -1 px
                z-index: 1000;
              `,s&&f&&Dr`
                background-color: var(--${l?"bg2":"bg1"}_float);
                box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
              `,"",""],children:[ve("div",{className:"left",children:[!s&&!v&&D("svg",{className:"icon",children:D("use",{href:"#channel-cinephile"})}),D(w2,{onRefresh:t}),r]}),D("div",{className:"right",children:ve(Fl,{size:"small",children:[o,!i&&D(oP,{style:{marginLeft:5}}),D(Zt,{onClick:Lue,css:$C.btn,children:D(Ft,{name:"Config",css:$C.icon})}),D(bP,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(u||c)}),!s&&ve(Zt,{css:zl,onClick:kue,children:[D("span",{children:"查看更多"}),D("svg",{css:Dr`
                      width: 12px;
                      height: 12px;
                      margin-left: 2px;
                    `,children:D("use",{href:"#widget-arrow"})})]})]})})]}),D(Tue,{show:c,onHide:Aue}),D(gue,{show:u,onHide:Due})]})})}),bP=m.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},a){r??(r=!0),m.useState(0);const i=m.useRef(null),s=lt(()=>{i.current&&(i.current.disabled||i.current.click());});m.useImperativeHandle(a,()=>({click:s}),[]),cn("r",()=>{ld()||r&&s();},{exactMatch:!0});const l=Al(),{shuffleForFav:c,shuffleForWatchLater:u}=hn(),d=l==="dynamic-feed"||l==="watchlater"&&!u||l==="fav"&&!c?"刷新":"换一换",[f,h]=oV(),g=lt(v=>(h(f.current,{rotate:[0,360]},{duration:.5,type:"tween"}),e==null?void 0:e()));return ve(Zt,{disabled:o,className:t,style:n,css:Dr`
        ${zl}
        &.ant-btn:not(:disabled):focus-visible {
          outline: none;
        }
      `,ref:i,onClick:g,children:[D("svg",{ref:f,style:{width:"11px",height:"11px",marginRight:5},children:D("use",{href:"#widget-roll"})}),D("span",{children:d})]})}),Fue={grid:Dr`
    /* card=360 col-gap=16  */
    width: ${360*2+20}px;
    margin: 0 auto;
  `};function zue(){const{useNarrowMode:e}=hn(),{modalFeedVisible:t,modalConfigVisible:n}=Nue(),r=m.useRef(null),o=m.useRef(null),a=lt((...d)=>{var f;return (f=o.current)==null?void 0:f.refresh(...d)}),i=lt(()=>{var d;return (d=r.current)==null?void 0:d.scroll()}),[s,l]=m.useState(!1),[c,u]=m.useState(null);return ve("section",{"data-area":"推荐",children:[D(pP,{ref:r,refreshing:s,onRefresh:a,leftSlot:c}),D(LI,{ref:o,css:[e&&Fue.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:i,setRefreshing:l,setExtraInfo:u})]})}const jue=Bi.extend("components:SectionRecommend");function Bue(){const e=m.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=va(),n=Al(),{refreshing:r,items:o,refresh:a,error:i,swr:s}=nI({tab:n,debug:jue,fetcher:qae,recreateService:!1});Ml(a);const l=!o.length||i||r&&!s;return ve("section",{"data-area":"推荐",children:[D(pP,{refreshing:r,onRefresh:a}),D("div",{className:G(Bp,gae,t?vI:gI),style:{marginBottom:t?30:0},children:l?e.map(c=>D(Iu,{},c)):o.map(c=>D(Iu,{item:c},c.uniqId))})]})}Ca.extend(OF);const yP=(location.hash||"").startsWith(`#/${an}/`);(function(){if(location.pathname==="/"||location.pathname==="/index.html")return Hue()})();async function Hue(){if(Ya(".adblock-tips"),$s("html.gray",e=>e.classList.remove("gray")),!yP&&document.documentElement.classList.contains("bewly-design")){console.warn(`${an}: quit for using bewly-design`);return}return Mt.pureRecommend?Wue():Vue()}async function Vue(){const t=Date.now()+1e4;let n;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const a=document.querySelector(".bili-layout > section.bili-grid");n=i=>a==null?void 0:a.insertAdjacentElement("afterend",i);break}if(va()&&document.querySelector(".bili-feed4-layout")){n=a=>{var i;return (i=document.querySelector(".bili-feed4-layout"))==null?void 0:i.insertAdjacentElement("afterbegin",a)};break}await wr(200);}if(!n){console.error(`[${an}]: init fail`);return}const r=document.createElement("section");r.classList.add(ya),n(r),Il(r).render(D(Zv,{injectGlobalStyle:!0,children:D(Bue,{})})),va()&&Ya(".bili-feed4 .header-channel");}async function Wue(){var a,i;_v&&await wr(500),va()?((a=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||a.remove(),Ya(".bili-feed4 .header-channel"),Ya(".palette-button-wrap .flexible-roll-btn"),$s(".palette-button-wrap .storage-box",s=>s.classList.remove("hidden")),$s(".palette-button-wrap .top-btn-wrap .top-btn",s=>s.classList.add("visible")),$s(".palette-button-wrap",s=>{s.style.position="absolute";})):((i=document.querySelector(".bili-layout"))==null||i.remove(),Ya(".bili-footer"),Ya(".palette-button-wrap > .primary-btn",s=>s.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(s=>{s.classList.remove("hidden"),s.classList.contains("top-btn")&&s.classList.remove("top-btn");});}));let e;const t=document.querySelector(".bili-header");if(t?e=s=>t.insertAdjacentElement("afterend",s):yP&&(e=s=>document.body.appendChild(s)),!e){console.error(`[${an}]: init fail, no .bili-header found`);return}const n=document.createElement("div");n.classList.add(va()?"bili-feed4-layout":"bili-layout","pure-recommend"),e(n);const r=document.createElement("section");r.classList.add(ya),n.appendChild(r),Il(r).render(D(Zv,{injectGlobalStyle:!0,children:D(zue,{})}));}

})(React, axios, axiosGmxhrAdapter, ReactDOM, ResizeObserver, UAParser);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址