Greasy Fork镜像 还支持 简体中文。

bilibili-app-recommend

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

目前為 2023-05-31 提交的版本,檢視 最新版本

// ==UserScript==
// @name         bilibili-app-recommend
// @namespace    https://magicdawn.fun
// @version      0.12.0
// @author       magicdawn
// @description  为B站首页添加像App一样的推荐
// @license      MIT
// @homepageURL  https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend
// @supportURL   https://github.com/magicdawn/bilibili-app-recommend/issues
// @match        *://www.bilibili.com/
// @match        https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png
// @match        *://www.bilibili.com/index.html
// @match        *://www.bilibili.com/?*
// @match        https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?*
// @match        *://www.bilibili.com/index.html?*
// @require      https://unpkg.com/[email protected]/dist/axios.min.js
// @require      https://unpkg.com/[email protected]/dist/axiosGmxhrAdapter.min.js
// @require      https://unpkg.com/[email protected]/umd/react.production.min.js
// @require      https://unpkg.com/[email protected]/umd/react-dom.production.min.js
// @connect      app.bilibili.com
// @connect      passport.bilibili.com
// @connect      link.acg.tv
// @connect      www.mcbbs.net
// @grant        GM.xmlHttpRequest
// @grant        GM_deleteValue
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        unsafeWindow
// ==/UserScript==

(i=>{const t=document.createElement("style");t.dataset.source="vite-plugin-monkey",t.textContent=i,document.head.append(t)})(" .primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px}.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_1isor_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:10001;display:flex;align-items:center;justify-content:center}._modal_1isor_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_1isor_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1isor_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1isor_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1isor_42{margin-left:10px}._btn-close_1isor_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1isor_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._toast-container_185m9_1{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:90000;padding:12px 24px;font-size:14px;min-width:200px;width:max-content;max-width:450px;background-color:#ffb243;color:#fff;border-radius:6px;white-space:pre-wrap}._toast-container_185m9_1._single-line_185m9_17{text-align:center}._modal_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_mlccj_1{position:relative}._image-wrapper_mlccj_4{border-radius:6px;overflow:hidden}._preview-card-wrapper_mlccj_8{position:absolute;top:0;left:0;right:0;bottom:0;z-index:4;overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}._preview-card-wrapper_mlccj_8 ._preview-card-inner_mlccj_21{width:100%;height:100%}._watch-later_mlccj_25{z-index:5}._badge_mlccj_28{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_mlccj_37{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_mlccj_52{color:default}._btn-dislike_mlccj_55{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_mlccj_55 ._btn-dislike-icon_mlccj_70{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mlccj_55 ._btn-dislike-tip_mlccj_77{pointer-events: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_mlccj_92{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:6px;border:1px solid #eee}body.dark ._disliked-wrapper_mlccj_92{border:1px solid #333}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-icon_mlccj_123{margin-bottom:5px}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-reason_mlccj_126{font-size:20px;text-align:center}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-desc_mlccj_130{font-size:16px;text-align:center}._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134{border-top:1px solid #333}._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mlccj_151 .bili-video-card__skeleton--cover,._skeleton-active_mlccj_151 .bili-video-card__skeleton--text,._skeleton-active_mlccj_151 .bili-video-card__skeleton--light{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation-name:_ant-skeleton-loading_mlccj_1;animation-duration:1.4s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mlccj_1{0%{background-position:100% 50%}to{background-position:0 50%}}._video-grid_tu03i_9{display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid_tu03i_9{grid-template-columns:repeat(4,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid_tu03i_9{grid-template-columns:repeat(5,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid_tu03i_9{grid-template-columns:repeat(6,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 13){display:none!important}}@media (min-width: 2200px){._video-grid_tu03i_9{grid-template-columns:repeat(7,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 15){display:none!important}}._video-grid_tu03i_9._internal-testing_tu03i_51{grid-gap:20px 20px}@media (max-width: 1399.9px){._video-grid_tu03i_9._internal-testing_tu03i_51{grid-template-columns:repeat(4,1fr)}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-one-line_tu03i_58>*:nth-of-type(1n + 5){display:none!important}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-two-lines_tu03i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1400px){._video-grid_tu03i_9._internal-testing_tu03i_51{grid-template-columns:repeat(5,1fr)}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-one-line_tu03i_58>*:nth-of-type(1n + 6){display:none!important}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-two-lines_tu03i_19>*:nth-of-type(1n + 11){display:none!important}}._narrow-mode_tu03i_79{grid-template-columns:repeat(2,1fr)!important}._config-icon_18r5p_1{line-height:1;margin-right:5px;font-size:0}._settings-group_18r5p_6{margin-bottom:10px}._settings-group_18r5p_6 ._settings-group-title_18r5p_9{font-size:2em;display:flex;align-items:center}._settings-group_18r5p_6 ._settings-group-sub-title_18r5p_14{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_18r5p_6 ._settings-group-content_18r5p_20{color:default}._settings-group_18r5p_6 ._settings-group-content_18r5p_20 button:first-child{margin-left:0}._row_18r5p_26{display:flex;align-items:center;flex-wrap:wrap}._row_18r5p_26 .primary-btn:first-child{margin-left:0}._check_18r5p_34{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_18r5p_39.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_18r5p_42{min-height:40vh;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} ");

(function (f, ra, hh, ww) {
  'use strict';

  function _interopNamespaceDefault(e) {
    const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
    if (e) {
      for (const k in e) {
        if (k !== 'default') {
          const d = Object.getOwnPropertyDescriptor(e, k);
          Object.defineProperty(n, k, d.get ? d : {
            enumerable: true,
            get: () => e[k]
          });
        }
      }
    }
    n.default = e;
    return Object.freeze(n);
  }

  const f__namespace = /*#__PURE__*/_interopNamespaceDefault(f);
  const ra__namespace = /*#__PURE__*/_interopNamespaceDefault(ra);

  var uw=Object.defineProperty;var dw=(e,t,n)=>t in e?uw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fw=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var bt=(e,t,n)=>(dw(e,typeof t!="symbol"?t+"":t,n),n),Du=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var k=(e,t,n)=>(Du(e,t,"read from private field"),n?n.call(e):t.get(e)),ct=(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);},Ke=(e,t,n,r)=>(Du(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),al=(e,t,n,r)=>({set _(o){Ke(e,t,o,n);},get _(){return k(e,t,r)}}),Fe=(e,t,n)=>(Du(e,t,"access private method"),n);var HB=fw((uo,fo)=>{var vb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xw(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return 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 pb={exports:{}},Mc={};/**
   * @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 $w=f,Ew=Symbol.for("react.element"),Ow=Symbol.for("react.fragment"),Pw=Object.prototype.hasOwnProperty,_w=$w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rw={key:!0,ref:!0,__self:!0,__source:!0};function mb(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Pw.call(t,r)&&!Rw.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:Ew,type:e,key:i,ref:a,props:o,_owner:_w.current}}Mc.Fragment=Ow;Mc.jsx=mb;Mc.jsxs=mb;pb.exports=Mc;var us=pb.exports;function Mw(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 Tw(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 Iw=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o);},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag);},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Tw(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Mw(o);try{i.insertRule(r,i.cssRules.length);}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++;},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0;},e}(),$n="-ms-",Zl="-moz-",_t="-webkit-",gb="comm",vh="rule",ph="decl",Nw="@import",bb="@keyframes",Aw="@layer",Dw=Math.abs,Tc=String.fromCharCode,kw=Object.assign;function Lw(e,t){return bn(e,0)^45?(((t<<2^bn(e,0))<<2^bn(e,1))<<2^bn(e,2))<<2^bn(e,3):0}function yb(e){return e.trim()}function Fw(e,t){return (e=t.exec(e))?e[0]:e}function Rt(e,t,n){return e.replace(t,n)}function Bd(e,t){return e.indexOf(t)}function bn(e,t){return e.charCodeAt(t)|0}function ds(e,t,n){return e.slice(t,n)}function Lr(e){return e.length}function mh(e){return e.length}function sl(e,t){return t.push(e),e}function zw(e,t){return e.map(t).join("")}var Ic=1,oa=1,Cb=0,kn=0,on=0,ma="";function Nc(e,t,n,r,o,i,a){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:Ic,column:oa,length:a,return:""}}function Ea(e,t){return kw(Nc("",null,null,"",null,null,0),e,{length:-e.length},t)}function jw(){return on}function Hw(){return on=kn>0?bn(ma,--kn):0,oa--,on===10&&(oa=1,Ic--),on}function Yn(){return on=kn<Cb?bn(ma,kn++):0,oa++,on===10&&(oa=1,Ic++),on}function Hr(){return bn(ma,kn)}function Ml(){return kn}function Ts(e,t){return ds(ma,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 Sb(e){return Ic=oa=1,Cb=Lr(ma=e),kn=0,[]}function wb(e){return ma="",e}function Tl(e){return yb(Ts(kn-1,Wd(e===91?e+2:e===40?e+1:e)))}function Bw(e){for(;(on=Hr())&&on<33;)Yn();return fs(e)>2||fs(on)>3?"":" "}function Ww(e,t){for(;--t&&Yn()&&!(on<48||on>102||on>57&&on<65||on>70&&on<97););return Ts(e,Ml()+(t<6&&Hr()==32&&Yn()==32))}function Wd(e){for(;Yn();)switch(on){case e:return kn;case 34:case 39:e!==34&&e!==39&&Wd(on);break;case 40:e===41&&Wd(e);break;case 92:Yn();break}return kn}function Vw(e,t){for(;Yn()&&e+on!==47+10;)if(e+on===42+42&&Hr()===47)break;return "/*"+Ts(t,kn-1)+"*"+Tc(e===47?e:Yn())}function Uw(e){for(;!fs(Hr());)Yn();return Ts(e,kn)}function xb(e){return wb(Il("",null,null,null,[""],e=Sb(e),0,[0],e))}function Il(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,h=0,v=0,p=0,m=1,g=1,b=1,y=0,w="",$=o,S=i,C=r,x=w;g;)switch(p=y,y=Yn()){case 40:if(p!=108&&bn(x,d-1)==58){Bd(x+=Rt(Tl(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:x+=Tl(y);break;case 9:case 10:case 13:case 32:x+=Bw(p);break;case 92:x+=Ww(Ml()-1,7);continue;case 47:switch(Hr()){case 42:case 47:sl(Gw(Vw(Yn(),Ml()),t,n),l);break;default:x+="/";}break;case 123*m:s[c++]=Lr(x)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:b==-1&&(x=Rt(x,/\f/g,"")),v>0&&Lr(x)-d&&sl(v>32?sp(x+";",r,n,d-1):sp(Rt(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(sl(C=ap(x,t,n,c,u,o,s,w,$=[],S=[],d),i),y===123)if(u===0)Il(x,t,C,C,$,i,d,s,S);else switch(h===99&&bn(x,3)===110?100:h){case 100:case 108:case 109:case 115:Il(e,C,C,r&&sl(ap(e,C,C,0,0,o,s,w,o,$=[],d),S),o,S,d,s,r?$:S);break;default:Il(x,C,C,C,[""],S,0,s,S);}}c=u=v=0,m=b=1,w=x="",d=a;break;case 58:d=1+Lr(x),v=p;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&Hw()==125)continue}switch(x+=Tc(y),y*m){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(Lr(x)-1)*b,b=1;break;case 64:Hr()===45&&(x+=Tl(Yn())),h=Hr(),u=d=Lr(w=x+=Uw(Ml())),y++;break;case 45:p===45&&Lr(x)==2&&(m=0);}}return i}function ap(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,h=o===0?i:[""],v=mh(h),p=0,m=0,g=0;p<r;++p)for(var b=0,y=ds(e,d+1,d=Dw(m=a[p])),w=e;b<v;++b)(w=yb(m>0?h[b]+" "+y:Rt(y,/&\f/g,h[b])))&&(l[g++]=w);return Nc(e,t,n,o===0?vh:s,l,c,u)}function Gw(e,t,n){return Nc(e,t,n,gb,Tc(jw()),ds(e,2,-2),0)}function sp(e,t,n,r){return Nc(e,t,n,ph,ds(e,0,r),ds(e,r+1,-1),r)}function li(e,t){for(var n="",r=mh(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function $b(e,t,n,r){switch(e.type){case Aw:if(e.children.length)break;case Nw:case ph:return e.return=e.return||e.value;case gb:return "";case bb:return e.return=e.value+"{"+li(e.children,r)+"}";case vh:e.value=e.props.join(",");}return Lr(n=li(e.children,r))?e.return=e.value+"{"+n+"}":""}function Kw(e){var t=mh(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function Xw(e){return function(t){t.root||(t=t.return)&&e(t);}}function qw(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yw=function(t,n,r){for(var o=0,i=0;o=i,i=Hr(),o===38&&i===12&&(n[r]=1),!fs(i);)Yn();return Ts(t,kn)},Zw=function(t,n){var r=-1,o=44;do switch(fs(o)){case 0:o===38&&Hr()===12&&(n[r]=1),t[r]+=Yw(kn-1,n,r);break;case 2:t[r]+=Tl(o);break;case 4:if(o===44){t[++r]=Hr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Tc(o);}while(o=Yn());return t},Qw=function(t,n){return wb(Zw(Sb(t),n))},lp=new WeakMap,Jw=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&&!lp.get(r))&&!o){lp.set(t,!0);for(var i=[],a=Qw(n,i),s=r.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l];}}},ex=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function Eb(e,t){switch(Lw(e,t)){case 5103:return _t+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _t+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _t+e+Zl+e+$n+e+e;case 6828:case 4268:return _t+e+$n+e+e;case 6165:return _t+e+$n+"flex-"+e+e;case 5187:return _t+e+Rt(e,/(\w+).+(:[^]+)/,_t+"box-$1$2"+$n+"flex-$1$2")+e;case 5443:return _t+e+$n+"flex-item-"+Rt(e,/flex-|-self/,"")+e;case 4675:return _t+e+$n+"flex-line-pack"+Rt(e,/align-content|flex-|-self/,"")+e;case 5548:return _t+e+$n+Rt(e,"shrink","negative")+e;case 5292:return _t+e+$n+Rt(e,"basis","preferred-size")+e;case 6060:return _t+"box-"+Rt(e,"-grow","")+_t+e+$n+Rt(e,"grow","positive")+e;case 4554:return _t+Rt(e,/([^-])(transform)/g,"$1"+_t+"$2")+e;case 6187:return Rt(Rt(Rt(e,/(zoom-|grab)/,_t+"$1"),/(image-set)/,_t+"$1"),e,"")+e;case 5495:case 3959:return Rt(e,/(image-set\([^]*)/,_t+"$1$`$1");case 4968:return Rt(Rt(e,/(.+:)(flex-)?(.*)/,_t+"box-pack:$3"+$n+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_t+e+e;case 4095:case 3583:case 4068:case 2532:return Rt(e,/(.+)-inline(.+)/,_t+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Lr(e)-1-t>6)switch(bn(e,t+1)){case 109:if(bn(e,t+4)!==45)break;case 102:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+_t+"$2-$3$1"+Zl+(bn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Bd(e,"stretch")?Eb(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(bn(e,t+1)!==115)break;case 6444:switch(bn(e,Lr(e)-3-(~Bd(e,"!important")&&10))){case 107:return Rt(e,":",":"+_t)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_t+(bn(e,14)===45?"inline-":"")+"box$3$1"+_t+"$2$3$1"+$n+"$2box$3")+e}break;case 5936:switch(bn(e,t+11)){case 114:return _t+e+$n+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _t+e+$n+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _t+e+$n+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _t+e+$n+e+e}return e}var tx=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ph:t.return=Eb(t.value,t.length);break;case bb:return li([Ea(t,{value:Rt(t.value,"@","@"+_t)})],o);case vh:if(t.length)return zw(t.props,function(i){switch(Fw(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return li([Ea(t,{props:[Rt(i,/:(read-\w+)/,":"+Zl+"$1")]})],o);case"::placeholder":return li([Ea(t,{props:[Rt(i,/:(plac\w+)/,":"+_t+"input-$1")]}),Ea(t,{props:[Rt(i,/:(plac\w+)/,":"+Zl+"$1")]}),Ea(t,{props:[Rt(i,/:(plac\w+)/,$n+"input-$1")]})],o)}return ""})}},nx=[tx],Ob=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(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""));});}var o=t.stylisPlugins||nx,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;s.push(m);});var l,c=[Jw,ex];{var u,d=[$b,Xw(function(m){u.insert(m);})],h=Kw(c.concat(o,d)),v=function(g){return li(xb(g),h)};l=function(g,b,y,w){u=y,v(g?g+"{"+b.styles+"}":b.styles),w&&(p.inserted[b.name]=!0);};}var p={key:n,sheet:new Iw({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return p.sheet.hydrate(s),p};function he(){return he=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},he.apply(this,arguments)}var Pb={exports:{}},Dt={};/** @license React v16.13.1
   * react-is.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var hn=typeof Symbol=="function"&&Symbol.for,gh=hn?Symbol.for("react.element"):60103,bh=hn?Symbol.for("react.portal"):60106,Ac=hn?Symbol.for("react.fragment"):60107,Dc=hn?Symbol.for("react.strict_mode"):60108,kc=hn?Symbol.for("react.profiler"):60114,Lc=hn?Symbol.for("react.provider"):60109,Fc=hn?Symbol.for("react.context"):60110,yh=hn?Symbol.for("react.async_mode"):60111,zc=hn?Symbol.for("react.concurrent_mode"):60111,jc=hn?Symbol.for("react.forward_ref"):60112,Hc=hn?Symbol.for("react.suspense"):60113,rx=hn?Symbol.for("react.suspense_list"):60120,Bc=hn?Symbol.for("react.memo"):60115,Wc=hn?Symbol.for("react.lazy"):60116,ox=hn?Symbol.for("react.block"):60121,ix=hn?Symbol.for("react.fundamental"):60117,ax=hn?Symbol.for("react.responder"):60118,sx=hn?Symbol.for("react.scope"):60119;function Zn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gh:switch(e=e.type,e){case yh:case zc:case Ac:case kc:case Dc:case Hc:return e;default:switch(e=e&&e.$$typeof,e){case Fc:case jc:case Wc:case Bc:case Lc:return e;default:return t}}case bh:return t}}}function _b(e){return Zn(e)===zc}Dt.AsyncMode=yh;Dt.ConcurrentMode=zc;Dt.ContextConsumer=Fc;Dt.ContextProvider=Lc;Dt.Element=gh;Dt.ForwardRef=jc;Dt.Fragment=Ac;Dt.Lazy=Wc;Dt.Memo=Bc;Dt.Portal=bh;Dt.Profiler=kc;Dt.StrictMode=Dc;Dt.Suspense=Hc;Dt.isAsyncMode=function(e){return _b(e)||Zn(e)===yh};Dt.isConcurrentMode=_b;Dt.isContextConsumer=function(e){return Zn(e)===Fc};Dt.isContextProvider=function(e){return Zn(e)===Lc};Dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gh};Dt.isForwardRef=function(e){return Zn(e)===jc};Dt.isFragment=function(e){return Zn(e)===Ac};Dt.isLazy=function(e){return Zn(e)===Wc};Dt.isMemo=function(e){return Zn(e)===Bc};Dt.isPortal=function(e){return Zn(e)===bh};Dt.isProfiler=function(e){return Zn(e)===kc};Dt.isStrictMode=function(e){return Zn(e)===Dc};Dt.isSuspense=function(e){return Zn(e)===Hc};Dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ac||e===zc||e===kc||e===Dc||e===Hc||e===rx||typeof e=="object"&&e!==null&&(e.$$typeof===Wc||e.$$typeof===Bc||e.$$typeof===Lc||e.$$typeof===Fc||e.$$typeof===jc||e.$$typeof===ix||e.$$typeof===ax||e.$$typeof===sx||e.$$typeof===ox)};Dt.typeOf=Zn;Pb.exports=Dt;var Ch=Pb.exports,Rb=Ch,lx={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cx={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Mb={};Mb[Rb.ForwardRef]=lx;Mb[Rb.Memo]=cx;var ux=!0;function Sh(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var Tb=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||ux===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},Ib=function(t,n,r){Tb(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function dx(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 fx={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},hx=/[A-Z]|^ms/g,vx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Nb=function(t){return t.charCodeAt(1)===45},cp=function(t){return t!=null&&typeof t!="boolean"},Lu=qw(function(e){return Nb(e)?e:e.replace(hx,"-$&").toLowerCase()}),up=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(vx,function(r,o,i){return Fr={name:o,styles:i,next:Fr},o})}return fx[t]!==1&&!Nb(t)&&typeof n=="number"&&n!==0?n+"px":n};function hs(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 Fr={name:n.name,styles:n.styles,next:Fr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Fr={name:r.name,styles:r.styles,next:Fr},r=r.next;var o=n.styles+";";return o}return px(e,t,n)}case"function":{if(e!==void 0){var i=Fr,a=n(e);return Fr=i,hs(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function px(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=hs(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":cp(a)&&(r+=Lu(i)+":"+up(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)cp(a[s])&&(r+=Lu(i)+":"+up(i,a[s])+";");else {var l=hs(e,t,a);switch(i){case"animation":case"animationName":{r+=Lu(i)+":"+l+";";break}default:r+=i+"{"+l+"}";}}}return r}var dp=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Fr,Ga=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Fr=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=hs(r,n,a)):i+=a[0];for(var s=1;s<t.length;s++)i+=hs(r,n,t[s]),o&&(i+=a[s]);dp.lastIndex=0;for(var l="",c;(c=dp.exec(i))!==null;)l+="-"+c[1];var u=dx(i)+l;return {name:u,styles:i,next:Fr}},mx=function(t){return t()},gx=f__namespace["useInsertionEffect"]?f__namespace["useInsertionEffect"]:!1,bx=gx||mx,Vc={}.hasOwnProperty,Ab=f__namespace.createContext(typeof HTMLElement<"u"?Ob({key:"css"}):null);Ab.Provider;var yx=function(t){return f.forwardRef(function(n,r){var o=f.useContext(Ab);return t(n,o,r)})},Cx=f__namespace.createContext({}),Vd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Db=function(t,n){var r={};for(var o in n)Vc.call(n,o)&&(r[o]=n[o]);return r[Vd]=t,r},Sx=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Tb(n,r,o),bx(function(){return Ib(n,r,o)}),null},wx=yx(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Vd],i=[r],a="";typeof e.className=="string"?a=Sh(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=Ga(i,void 0,f__namespace.useContext(Cx));a+=t.key+"-"+s.name;var l={};for(var c in e)Vc.call(e,c)&&c!=="css"&&c!==Vd&&(l[c]=e[c]);return l.ref=n,l.className=a,f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(Sx,{cache:t,serialized:s,isStringTag:typeof o=="string"}),f__namespace.createElement(o,l))}),kb=wx,Yt=us.Fragment;function B(e,t,n){return Vc.call(t,"css")?us.jsx(kb,Db(e,t),n):us.jsx(e,t,n)}function me(e,t,n){return Vc.call(t,"css")?us.jsxs(kb,Db(e,t),n):us.jsxs(e,t,n)}var Ud={exports:{}},Fu,fp;function xx(){if(fp)return Fu;fp=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;Fu=function(u,d){d=d||{};var h=typeof u;if(h==="string"&&u.length>0)return a(u);if(h==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var h=parseFloat(d[1]),v=(d[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return h*i;case"weeks":case"week":case"w":return h*o;case"days":case"day":case"d":return h*r;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;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,h,v){var p=d>=h*1.5;return Math.round(u/h)+" "+v+(p?"s":"")}return Fu}function $x(e){n.debug=n,n.default=n,n.coerce=l,n.disable=i,n.enable=o,n.enabled=a,n.humanize=xx(),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 h=0;h<u.length;h++)d=(d<<5)-d+u.charCodeAt(h),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,h=null,v,p;function m(...g){if(!m.enabled)return;const b=m,y=Number(new Date),w=y-(d||y);b.diff=w,b.prev=d,b.curr=y,d=y,g[0]=n.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");let $=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,(C,x)=>{if(C==="%%")return "%";$++;const _=n.formatters[x];if(typeof _=="function"){const M=g[$];C=_.call(b,M),g.splice($,1),$--;}return C}),n.formatArgs.call(b,g),(b.log||n.log).apply(b,g);}return m.namespace=u,m.useColors=n.useColors(),m.color=n.selectColor(u),m.extend=r,m.destroy=n.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(v!==n.namespaces&&(v=n.namespaces,p=n.enabled(u)),p),set:g=>{h=g;}}),typeof n.init=="function"&&n.init(m),m}function r(u,d){const h=n(this.namespace+(typeof d>"u"?":":d)+u);return h.log=this.log,h}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const h=(typeof u=="string"?u:"").split(/[\s,]+/),v=h.length;for(d=0;d<v;d++)h[d]&&(u=h[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")));}function i(){const u=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),u}function a(u){if(u[u.length-1]==="*")return !0;let d,h;for(d=0,h=n.skips.length;d<h;d++)if(n.skips[d].test(u))return !1;for(d=0,h=n.names.length;d<h;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 Ex=$x;(function(e,t){t.formatArgs=r,t.save=o,t.load=i,t.useColors=n,t.storage=a(),t.destroy=(()=>{let l=!1;return ()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(d=u));}),l.splice(d,0,c);}t.log=console.debug||console.log||(()=>{});function o(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug");}catch{}}function i(){let l;try{l=t.storage.getItem("debug");}catch{}return !l&&typeof process<"u"&&"env"in process&&(l={}.DEBUG),l}function a(){try{return localStorage}catch{}}e.exports=Ex(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Ud,Ud.exports);var Ox=Ud.exports;const Px=Xr(Ox),Fo="bilibili-app-recommend",_x="bilibili_app_recommend",wh=Px(Fo);var Rx=typeof global=="object"&&global&&global.Object===Object&&global;const Lb=Rx;var Mx=typeof self=="object"&&self&&self.Object===Object&&self,Tx=Lb||Mx||Function("return this")();const qr=Tx;var Ix=qr.Symbol;const Ur=Ix;var Fb=Object.prototype,Nx=Fb.hasOwnProperty,Ax=Fb.toString,Oa=Ur?Ur.toStringTag:void 0;function Dx(e){var t=Nx.call(e,Oa),n=e[Oa];try{e[Oa]=void 0;var r=!0;}catch{}var o=Ax.call(e);return r&&(t?e[Oa]=n:delete e[Oa]),o}var kx=Object.prototype,Lx=kx.toString;function Fx(e){return Lx.call(e)}var zx="[object Null]",jx="[object Undefined]",hp=Ur?Ur.toStringTag:void 0;function ga(e){return e==null?e===void 0?jx:zx:hp&&hp in Object(e)?Dx(e):Fx(e)}function ia(e){return e!=null&&typeof e=="object"}var Hx="[object Symbol]";function Uc(e){return typeof e=="symbol"||ia(e)&&ga(e)==Hx}function Bx(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 Wx=Array.isArray;const Gr=Wx;var Vx=1/0,vp=Ur?Ur.prototype:void 0,pp=vp?vp.toString:void 0;function zb(e){if(typeof e=="string")return e;if(Gr(e))return Bx(e,zb)+"";if(Uc(e))return pp?pp.call(e):"";var t=e+"";return t=="0"&&1/e==-Vx?"-0":t}var Ux=/\s/;function Gx(e){for(var t=e.length;t--&&Ux.test(e.charAt(t)););return t}var Kx=/^\s+/;function Xx(e){return e&&e.slice(0,Gx(e)+1).replace(Kx,"")}function mo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var mp=0/0,qx=/^[-+]0x[0-9a-f]+$/i,Yx=/^0b[01]+$/i,Zx=/^0o[0-7]+$/i,Qx=parseInt;function Gd(e){if(typeof e=="number")return e;if(Uc(e))return mp;if(mo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=mo(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=Xx(e);var n=Yx.test(e);return n||Zx.test(e)?Qx(e.slice(2),n?2:8):qx.test(e)?mp:+e}var gp=1/0,Jx=17976931348623157e292;function e$(e){if(!e)return e===0?e:0;if(e=Gd(e),e===gp||e===-gp){var t=e<0?-1:1;return t*Jx}return e===e?e:0}function t$(e){var t=e$(e),n=t%1;return t===t?n?t-n:t:0}function jb(e){return e}var n$="[object AsyncFunction]",r$="[object Function]",o$="[object GeneratorFunction]",i$="[object Proxy]";function Hb(e){if(!mo(e))return !1;var t=ga(e);return t==r$||t==o$||t==n$||t==i$}var a$=qr["__core-js_shared__"];const zu=a$;var bp=function(){var e=/[^.]+$/.exec(zu&&zu.keys&&zu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function s$(e){return !!bp&&bp in e}var l$=Function.prototype,c$=l$.toString;function pi(e){if(e!=null){try{return c$.call(e)}catch{}try{return e+""}catch{}}return ""}var u$=/[\\^$.*+?()[\]{}|]/g,d$=/^\[object .+?Constructor\]$/,f$=Function.prototype,h$=Object.prototype,v$=f$.toString,p$=h$.hasOwnProperty,m$=RegExp("^"+v$.call(p$).replace(u$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g$(e){if(!mo(e)||s$(e))return !1;var t=Hb(e)?m$:d$;return t.test(pi(e))}function b$(e,t){return e==null?void 0:e[t]}function mi(e,t){var n=b$(e,t);return g$(n)?n:void 0}var y$=mi(qr,"WeakMap");const Kd=y$;function C$(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)}function S$(){}var w$=800,x$=16,$$=Date.now;function E$(e){var t=0,n=0;return function(){var r=$$(),o=x$-(r-n);if(n=r,o>0){if(++t>=w$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function O$(e){return function(){return e}}var P$=function(){try{var e=mi(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ql=P$;var _$=Ql?function(e,t){return Ql(e,"toString",{configurable:!0,enumerable:!1,value:O$(t),writable:!0})}:jb;const R$=_$;var M$=E$(R$);const T$=M$;function I$(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return -1}function N$(e){return e!==e}function A$(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}function D$(e,t,n){return t===t?A$(e,t,n):I$(e,N$,n)}function k$(e,t){var n=e==null?0:e.length;return !!n&&D$(e,t,0)>-1}var L$=9007199254740991,F$=/^(?:0|[1-9]\d*)$/;function xh(e,t){var n=typeof e;return t=t??L$,!!t&&(n=="number"||n!="symbol"&&F$.test(e))&&e>-1&&e%1==0&&e<t}function z$(e,t,n){t=="__proto__"&&Ql?Ql(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}function $h(e,t){return e===t||e!==e&&t!==t}var j$=Object.prototype,H$=j$.hasOwnProperty;function B$(e,t,n){var r=e[t];(!(H$.call(e,t)&&$h(r,n))||n===void 0&&!(t in e))&&z$(e,t,n);}var yp=Math.max;function W$(e,t,n){return t=yp(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=yp(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),C$(e,this,s)}}var V$=9007199254740991;function Eh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=V$}function U$(e){return e!=null&&Eh(e.length)&&!Hb(e)}var G$=Object.prototype;function K$(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||G$;return e===n}function X$(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var q$="[object Arguments]";function Cp(e){return ia(e)&&ga(e)==q$}var Bb=Object.prototype,Y$=Bb.hasOwnProperty,Z$=Bb.propertyIsEnumerable,Q$=Cp(function(){return arguments}())?Cp:function(e){return ia(e)&&Y$.call(e,"callee")&&!Z$.call(e,"callee")};const Oh=Q$;function J$(){return !1}var Wb=typeof uo=="object"&&uo&&!uo.nodeType&&uo,Sp=Wb&&typeof fo=="object"&&fo&&!fo.nodeType&&fo,eE=Sp&&Sp.exports===Wb,wp=eE?qr.Buffer:void 0,tE=wp?wp.isBuffer:void 0,nE=tE||J$;const Xd=nE;var rE="[object Arguments]",oE="[object Array]",iE="[object Boolean]",aE="[object Date]",sE="[object Error]",lE="[object Function]",cE="[object Map]",uE="[object Number]",dE="[object Object]",fE="[object RegExp]",hE="[object Set]",vE="[object String]",pE="[object WeakMap]",mE="[object ArrayBuffer]",gE="[object DataView]",bE="[object Float32Array]",yE="[object Float64Array]",CE="[object Int8Array]",SE="[object Int16Array]",wE="[object Int32Array]",xE="[object Uint8Array]",$E="[object Uint8ClampedArray]",EE="[object Uint16Array]",OE="[object Uint32Array]",Gt={};Gt[bE]=Gt[yE]=Gt[CE]=Gt[SE]=Gt[wE]=Gt[xE]=Gt[$E]=Gt[EE]=Gt[OE]=!0;Gt[rE]=Gt[oE]=Gt[mE]=Gt[iE]=Gt[gE]=Gt[aE]=Gt[sE]=Gt[lE]=Gt[cE]=Gt[uE]=Gt[dE]=Gt[fE]=Gt[hE]=Gt[vE]=Gt[pE]=!1;function PE(e){return ia(e)&&Eh(e.length)&&!!Gt[ga(e)]}function _E(e){return function(t){return e(t)}}var Vb=typeof uo=="object"&&uo&&!uo.nodeType&&uo,Ka=Vb&&typeof fo=="object"&&fo&&!fo.nodeType&&fo,RE=Ka&&Ka.exports===Vb,ju=RE&&Lb.process,ME=function(){try{var e=Ka&&Ka.require&&Ka.require("util").types;return e||ju&&ju.binding&&ju.binding("util")}catch{}}();const xp=ME;var $p=xp&&xp.isTypedArray,TE=$p?_E($p):PE;const Ub=TE;var IE=Object.prototype,NE=IE.hasOwnProperty;function AE(e,t){var n=Gr(e),r=!n&&Oh(e),o=!n&&!r&&Xd(e),i=!n&&!r&&!o&&Ub(e),a=n||r||o||i,s=a?X$(e.length,String):[],l=s.length;for(var c in e)(t||NE.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||xh(c,l)))&&s.push(c);return s}function DE(e,t){return function(n){return e(t(n))}}var kE=DE(Object.keys,Object);const LE=kE;var FE=Object.prototype,zE=FE.hasOwnProperty;function jE(e){if(!K$(e))return LE(e);var t=[];for(var n in Object(e))zE.call(e,n)&&n!="constructor"&&t.push(n);return t}function Gb(e){return U$(e)?AE(e):jE(e)}var HE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,BE=/^\w*$/;function Ph(e,t){if(Gr(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Uc(e)?!0:BE.test(e)||!HE.test(e)||t!=null&&e in Object(t)}var WE=mi(Object,"create");const vs=WE;function VE(){this.__data__=vs?vs(null):{},this.size=0;}function UE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var GE="__lodash_hash_undefined__",KE=Object.prototype,XE=KE.hasOwnProperty;function qE(e){var t=this.__data__;if(vs){var n=t[e];return n===GE?void 0:n}return XE.call(t,e)?t[e]:void 0}var YE=Object.prototype,ZE=YE.hasOwnProperty;function QE(e){var t=this.__data__;return vs?t[e]!==void 0:ZE.call(t,e)}var JE="__lodash_hash_undefined__";function eO(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vs&&t===void 0?JE:t,this}function vi(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]);}}vi.prototype.clear=VE;vi.prototype.delete=UE;vi.prototype.get=qE;vi.prototype.has=QE;vi.prototype.set=eO;function tO(){this.__data__=[],this.size=0;}function Gc(e,t){for(var n=e.length;n--;)if($h(e[n][0],t))return n;return -1}var nO=Array.prototype,rO=nO.splice;function oO(e){var t=this.__data__,n=Gc(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():rO.call(t,n,1),--this.size,!0}function iO(e){var t=this.__data__,n=Gc(t,e);return n<0?void 0:t[n][1]}function aO(e){return Gc(this.__data__,e)>-1}function sO(e,t){var n=this.__data__,r=Gc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Co(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]);}}Co.prototype.clear=tO;Co.prototype.delete=oO;Co.prototype.get=iO;Co.prototype.has=aO;Co.prototype.set=sO;var lO=mi(qr,"Map");const ps=lO;function cO(){this.size=0,this.__data__={hash:new vi,map:new(ps||Co),string:new vi};}function uO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Kc(e,t){var n=e.__data__;return uO(t)?n[typeof t=="string"?"string":"hash"]:n.map}function dO(e){var t=Kc(this,e).delete(e);return this.size-=t?1:0,t}function fO(e){return Kc(this,e).get(e)}function hO(e){return Kc(this,e).has(e)}function vO(e,t){var n=Kc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function So(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]);}}So.prototype.clear=cO;So.prototype.delete=dO;So.prototype.get=fO;So.prototype.has=hO;So.prototype.set=vO;var pO="Expected a function";function _h(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pO);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(_h.Cache||So),n}_h.Cache=So;var mO=500;function gO(e){var t=_h(e,function(r){return n.size===mO&&n.clear(),r}),n=t.cache;return t}var bO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yO=/\\(\\)?/g,CO=gO(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(bO,function(n,r,o,i){t.push(o?i.replace(yO,"$1"):r||n);}),t});const SO=CO;function wO(e){return e==null?"":zb(e)}function Xc(e,t){return Gr(e)?e:Ph(e,t)?[e]:SO(wO(e))}var xO=1/0;function Is(e){if(typeof e=="string"||Uc(e))return e;var t=e+"";return t=="0"&&1/e==-xO?"-0":t}function Rh(e,t){t=Xc(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Is(t[n++])];return n&&n==r?e:void 0}function $O(e,t,n){var r=e==null?void 0:Rh(e,t);return r===void 0?n:r}function Kb(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Ep=Ur?Ur.isConcatSpreadable:void 0;function EO(e){return Gr(e)||Oh(e)||!!(Ep&&e&&e[Ep])}function Xb(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=EO),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?Xb(s,t-1,n,r,o):Kb(o,s):r||(o[o.length]=s);}return o}function OO(e){var t=e==null?0:e.length;return t?Xb(e,1):[]}function PO(e){return T$(W$(e,void 0,OO),e+"")}var _O="Expected a function";function RO(e,t){var n;if(typeof t!="function")throw new TypeError(_O);return e=t$(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function MO(){this.__data__=new Co,this.size=0;}function TO(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function IO(e){return this.__data__.get(e)}function NO(e){return this.__data__.has(e)}var AO=200;function DO(e,t){var n=this.__data__;if(n instanceof Co){var r=n.__data__;if(!ps||r.length<AO-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new So(r);}return n.set(e,t),this.size=n.size,this}function ho(e){var t=this.__data__=new Co(e);this.size=t.size;}ho.prototype.clear=MO;ho.prototype.delete=TO;ho.prototype.get=IO;ho.prototype.has=NO;ho.prototype.set=DO;function kO(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a);}return i}function LO(){return []}var FO=Object.prototype,zO=FO.propertyIsEnumerable,Op=Object.getOwnPropertySymbols,jO=Op?function(e){return e==null?[]:(e=Object(e),kO(Op(e),function(t){return zO.call(e,t)}))}:LO;const HO=jO;function BO(e,t,n){var r=t(e);return Gr(e)?r:Kb(r,n(e))}function Pp(e){return BO(e,Gb,HO)}var WO=mi(qr,"DataView");const qd=WO;var VO=mi(qr,"Promise");const Yd=VO;var UO=mi(qr,"Set");const Ui=UO;var _p="[object Map]",GO="[object Object]",Rp="[object Promise]",Mp="[object Set]",Tp="[object WeakMap]",Ip="[object DataView]",KO=pi(qd),XO=pi(ps),qO=pi(Yd),YO=pi(Ui),ZO=pi(Kd),Yo=ga;(qd&&Yo(new qd(new ArrayBuffer(1)))!=Ip||ps&&Yo(new ps)!=_p||Yd&&Yo(Yd.resolve())!=Rp||Ui&&Yo(new Ui)!=Mp||Kd&&Yo(new Kd)!=Tp)&&(Yo=function(e){var t=ga(e),n=t==GO?e.constructor:void 0,r=n?pi(n):"";if(r)switch(r){case KO:return Ip;case XO:return _p;case qO:return Rp;case YO:return Mp;case ZO:return Tp}return t});const Np=Yo;var QO=qr.Uint8Array;const Ap=QO;var JO="__lodash_hash_undefined__";function eP(e){return this.__data__.set(e,JO),this}function tP(e){return this.__data__.has(e)}function ms(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new So;++t<n;)this.add(e[t]);}ms.prototype.add=ms.prototype.push=eP;ms.prototype.has=tP;function nP(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return !0;return !1}function qb(e,t){return e.has(t)}var rP=1,oP=2;function Yb(e,t,n,r,o,i){var a=n&rP,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return !1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,v=n&oP?new ms:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var p=e[d],m=t[d];if(r)var g=a?r(m,p,d,t,e,i):r(p,m,d,e,t,i);if(g!==void 0){if(g)continue;h=!1;break}if(v){if(!nP(t,function(b,y){if(!qb(v,y)&&(p===b||o(p,b,n,r,i)))return v.push(y)})){h=!1;break}}else if(!(p===m||o(p,m,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}function iP(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}function Mh(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var aP=1,sP=2,lP="[object Boolean]",cP="[object Date]",uP="[object Error]",dP="[object Map]",fP="[object Number]",hP="[object RegExp]",vP="[object Set]",pP="[object String]",mP="[object Symbol]",gP="[object ArrayBuffer]",bP="[object DataView]",Dp=Ur?Ur.prototype:void 0,Hu=Dp?Dp.valueOf:void 0;function yP(e,t,n,r,o,i,a){switch(n){case bP:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case gP:return !(e.byteLength!=t.byteLength||!i(new Ap(e),new Ap(t)));case lP:case cP:case fP:return $h(+e,+t);case uP:return e.name==t.name&&e.message==t.message;case hP:case pP:return e==t+"";case dP:var s=iP;case vP:var l=r&aP;if(s||(s=Mh),e.size!=t.size&&!l)return !1;var c=a.get(e);if(c)return c==t;r|=sP,a.set(e,t);var u=Yb(s(e),s(t),r,o,i,a);return a.delete(e),u;case mP:if(Hu)return Hu.call(e)==Hu.call(t)}return !1}var CP=1,SP=Object.prototype,wP=SP.hasOwnProperty;function xP(e,t,n,r,o,i){var a=n&CP,s=Pp(e),l=s.length,c=Pp(t),u=c.length;if(l!=u&&!a)return !1;for(var d=l;d--;){var h=s[d];if(!(a?h in t:wP.call(t,h)))return !1}var v=i.get(e),p=i.get(t);if(v&&p)return v==t&&p==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=a;++d<l;){h=s[d];var b=e[h],y=t[h];if(r)var w=a?r(y,b,h,t,e,i):r(b,y,h,e,t,i);if(!(w===void 0?b===y||o(b,y,n,r,i):w)){m=!1;break}g||(g=h=="constructor");}if(m&&!g){var $=e.constructor,S=t.constructor;$!=S&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof S=="function"&&S instanceof S)&&(m=!1);}return i.delete(e),i.delete(t),m}var $P=1,kp="[object Arguments]",Lp="[object Array]",ll="[object Object]",EP=Object.prototype,Fp=EP.hasOwnProperty;function OP(e,t,n,r,o,i){var a=Gr(e),s=Gr(t),l=a?Lp:Np(e),c=s?Lp:Np(t);l=l==kp?ll:l,c=c==kp?ll:c;var u=l==ll,d=c==ll,h=l==c;if(h&&Xd(e)){if(!Xd(t))return !1;a=!0,u=!1;}if(h&&!u)return i||(i=new ho),a||Ub(e)?Yb(e,t,n,r,o,i):yP(e,t,l,n,r,o,i);if(!(n&$P)){var v=u&&Fp.call(e,"__wrapped__"),p=d&&Fp.call(t,"__wrapped__");if(v||p){var m=v?e.value():e,g=p?t.value():t;return i||(i=new ho),o(m,g,n,r,i)}}return h?(i||(i=new ho),xP(e,t,n,r,o,i)):!1}function qc(e,t,n,r,o){return e===t?!0:e==null||t==null||!ia(e)&&!ia(t)?e!==e&&t!==t:OP(e,t,n,r,qc,o)}var PP=1,_P=2;function RP(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return !i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return !1}for(;++o<i;){s=n[o];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return !1}else {var d=new ho;if(r)var h=r(c,u,l,e,t,d);if(!(h===void 0?qc(u,c,PP|_P,r,d):h))return !1}}return !0}function Zb(e){return e===e&&!mo(e)}function MP(e){for(var t=Gb(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Zb(o)];}return t}function Qb(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function TP(e){var t=MP(e);return t.length==1&&t[0][2]?Qb(t[0][0],t[0][1]):function(n){return n===e||RP(n,e,t)}}function IP(e,t){return e!=null&&t in Object(e)}function NP(e,t,n){t=Xc(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Is(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a];}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Eh(o)&&xh(a,o)&&(Gr(e)||Oh(e)))}function Jb(e,t){return e!=null&&NP(e,t,IP)}var AP=1,DP=2;function kP(e,t){return Ph(e)&&Zb(t)?Qb(Is(e),t):function(n){var r=$O(n,e);return r===void 0&&r===t?Jb(n,e):qc(t,r,AP|DP)}}function LP(e){return function(t){return t==null?void 0:t[e]}}function FP(e){return function(t){return Rh(t,e)}}function zP(e){return Ph(e)?LP(Is(e)):FP(e)}function jP(e){return typeof e=="function"?e:e==null?jb:typeof e=="object"?Gr(e)?kP(e[0],e[1]):TP(e):zP(e)}var HP=function(){return qr.Date.now()};const Bu=HP;var BP="Expected a function",WP=Math.max,VP=Math.min;function e0(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(BP);t=Gd(t)||0,mo(n)&&(u=!!n.leading,d="maxWait"in n,i=d?WP(Gd(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function v(C){var x=r,_=o;return r=o=void 0,c=C,a=e.apply(_,x),a}function p(C){return c=C,s=setTimeout(b,t),u?v(C):a}function m(C){var x=C-l,_=C-c,M=t-x;return d?VP(M,i-_):M}function g(C){var x=C-l,_=C-c;return l===void 0||x>=t||x<0||d&&_>=i}function b(){var C=Bu();if(g(C))return y(C);s=setTimeout(b,m(C));}function y(C){return s=void 0,h&&r?v(C):(r=o=void 0,a)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function $(){return s===void 0?a:y(Bu())}function S(){var C=Bu(),x=g(C);if(r=arguments,o=this,l=C,x){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(b,t),v(l)}return s===void 0&&(s=setTimeout(b,t)),a}return S.cancel=w,S.flush=$,S}function UP(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return !0;return !1}function GP(e,t){return qc(e,t)}function KP(e,t,n,r){if(!mo(e))return e;t=Xc(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=Is(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=mo(u)?u:xh(t[o+1])?[]:{});}B$(s,l,c),s=s[l];}return e}function XP(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Rh(e,a);n(s,a)&&KP(i,Xc(a,e),s);}return i}function qP(e){return RO(2,e)}function YP(e,t){return XP(e,t,function(n,r){return Jb(e,r)})}var ZP=PO(function(e,t){return e==null?{}:YP(e,t)});const t0=ZP;var QP="Expected a function";function JP(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(QP);return mo(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),e0(e,t,{leading:r,maxWait:t,trailing:o})}var e_=1/0,t_=Ui&&1/Mh(new Ui([,-0]))[1]==e_?function(e){return new Ui(e)}:S$;const n_=t_;var r_=200;function o_(e,t,n){var r=-1,o=k$,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=UP;else if(i>=r_){var c=t?null:n_(e);if(c)return Mh(c);a=!1,o=qb,l=new ms;}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u);}else o(l,d,n)||(l!==s&&l.push(d),s.push(u));}return s}function Yc(e,t){return e&&e.length?o_(e,jP(t)):[]}const i_=Symbol(),Th=Symbol(),Pa="a",Xa="w";let a_=(e,t)=>new Proxy(e,t);const Zd=Object.getPrototypeOf,Qd=new WeakMap,n0=e=>e&&(Qd.has(e)?Qd.get(e):Zd(e)===Object.prototype||Zd(e)===Array.prototype),Jl=e=>typeof e=="object"&&e!==null,s_=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(Zd(e),t)},Ih=e=>e[Th]||e,r0=(e,t,n,r)=>{if(!n0(e))return e;let o=r&&r.get(e);if(!o){const l=Ih(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,s_(l)]:[l],r==null||r.set(e,o);}const[i,a]=o;let s=n&&n.get(i);return s&&s[1].f===!!a||(s=((l,c)=>{const u={f:c};let d=!1;const h=(p,m)=>{if(!d){let g=u[Pa].get(l);if(g||(g={},u[Pa].set(l,g)),p===Xa)g[Xa]=!0;else {let b=g[p];b||(b=new Set,g[p]=b),b.add(m);}}},v={get:(p,m)=>m===Th?l:(h("k",m),r0(Reflect.get(p,m),u[Pa],u.c,u.t)),has:(p,m)=>m===i_?(d=!0,u[Pa].delete(l),!0):(h("h",m),Reflect.has(p,m)),getOwnPropertyDescriptor:(p,m)=>(h("o",m),Reflect.getOwnPropertyDescriptor(p,m)),ownKeys:p=>(h(Xa),Reflect.ownKeys(p))};return c&&(v.set=v.deleteProperty=()=>!1),[v,u]})(i,!!a),s[1].p=a_(a||i,s[0]),n&&n.set(i,s)),s[1][Pa]=t,s[1].c=n,s[1].t=r,s[1].p},o0=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!Jl(e)||!Jl(t))return !0;const o=n.get(Ih(e));if(!o)return !0;if(r){const a=r.get(e);if(a&&a.n===t)return a.g;r.set(e,{n:t,g:!1});}let i=null;try{for(const a of o.h||[])if(i=Reflect.has(e,a)!==Reflect.has(t,a),i)return i;if(o[Xa]===!0){if(i=((a,s)=>{const l=Reflect.ownKeys(a),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((u,d)=>u!==c[d])})(e,t),i)return i}else for(const a of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),i)return i;for(const a of o.k||[])if(i=o0(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i});}},l_=e=>n0(e)&&e[Th]||null,zp=(e,t=!0)=>{Qd.set(e,t);},c_=(e,t,n)=>{const r=[],o=new WeakSet,i=(a,s)=>{if(o.has(a))return;Jl(a)&&o.add(a);const l=Jl(a)&&t.get(Ih(a));if(l){var c,u;if((c=l.h)==null||c.forEach(h=>{const v=`:has(${String(h)})`;r.push(s?[...s,v]:[v]);}),l[Xa]===!0){const h=":ownKeys";r.push(s?[...s,h]:[h]);}else {var d;(d=l.o)==null||d.forEach(h=>{const v=`:hasOwn(${String(h)})`;r.push(s?[...s,v]:[v]);});}(u=l.k)==null||u.forEach(h=>{n&&!("value"in(Object.getOwnPropertyDescriptor(a,h)||{}))||i(a[h],s?[...s,h]:[h]);});}else s&&r.push(s);};return i(e),r},Wu=e=>typeof e=="object"&&e!==null,Ro=new WeakMap,cl=new WeakSet,u_=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>Wu(c)&&!cl.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),r=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},o=new WeakMap,i=(c,u,d=r)=>{const h=o.get(c);if((h==null?void 0:h[0])===u)return h[1];const v=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return zp(v,!0),o.set(c,[u,v]),Reflect.ownKeys(c).forEach(p=>{if(Object.getOwnPropertyDescriptor(v,p))return;const m=Reflect.get(c,p),g={value:m,enumerable:!0,configurable:!0};if(cl.has(m))zp(m,!1);else if(m instanceof Promise)delete g.value,g.get=()=>d(m);else if(Ro.has(m)){const[b,y]=Ro.get(m);g.value=i(b,y(),d);}Object.defineProperty(v,p,g);}),v},a=new WeakMap,s=[1,1],l=c=>{if(!Wu(c))throw new Error("object required");const u=a.get(c);if(u)return u;let d=s[0];const h=new Set,v=(M,E=++s[0])=>{d!==E&&(d=E,h.forEach(I=>I(M,E)));};let p=s[1];const m=(M=++s[1])=>(p!==M&&!h.size&&(p=M,b.forEach(([E])=>{const I=E[1](M);I>d&&(d=I);})),d),g=M=>(E,I)=>{const O=[...E];O[1]=[M,...O[1]],v(O,I);},b=new Map,y=(M,E)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&b.has(M))throw new Error("prop listener already exists");if(h.size){const I=E[3](g(M));b.set(M,[E,I]);}else b.set(M,[E]);},w=M=>{var E;const I=b.get(M);I&&(b.delete(M),(E=I[1])==null||E.call(I));},$=M=>(h.add(M),h.size===1&&b.forEach(([I,O],R)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&O)throw new Error("remove already exists");const P=I[3](g(R));b.set(R,[I,P]);}),()=>{h.delete(M),h.size===0&&b.forEach(([I,O],R)=>{O&&(O(),b.set(R,[I]));});}),S=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),x=t(S,{deleteProperty(M,E){const I=Reflect.get(M,E);w(E);const O=Reflect.deleteProperty(M,E);return O&&v(["delete",[E],I]),O},set(M,E,I,O){const R=Reflect.has(M,E),P=Reflect.get(M,E,O);if(R&&(e(P,I)||a.has(I)&&e(P,a.get(I))))return !0;w(E),Wu(I)&&(I=l_(I)||I);let T=I;if(I instanceof Promise)I.then(A=>{I.status="fulfilled",I.value=A,v(["resolve",[E],A]);}).catch(A=>{I.status="rejected",I.reason=A,v(["reject",[E],A]);});else {!Ro.has(I)&&n(I)&&(T=l(I));const A=!cl.has(T)&&Ro.get(T);A&&y(E,A);}return Reflect.set(M,E,T,O),v(["set",[E],I,P]),!0}});a.set(c,x);const _=[S,m,i,$];return Ro.set(x,_),Reflect.ownKeys(c).forEach(M=>{const E=Object.getOwnPropertyDescriptor(c,M);"value"in E&&(x[M]=c[M],delete E.value,delete E.writable),Object.defineProperty(S,M,E);}),x})=>[l,Ro,cl,e,t,n,r,o,i,a,s],[d_]=u_();function Ns(e={}){return d_(e)}function i0(e,t,n){const r=Ro.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!r&&console.warn("Please use proxy object");let o;const i=[],a=r[3];let s=!1;const c=a(u=>{if(i.push(u),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(i.splice(0));}));});return s=!0,()=>{s=!1,c();}}function jp(e,t){const n=Ro.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!n&&console.warn("Please use proxy object");const[r,o,i]=n;return i(r,o(),t)}var a0={exports:{}},s0={};/**
   * @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 aa=f;function f_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var h_=typeof Object.is=="function"?Object.is:f_,v_=aa.useState,p_=aa.useEffect,m_=aa.useLayoutEffect,g_=aa.useDebugValue;function b_(e,t){var n=t(),r=v_({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return m_(function(){o.value=n,o.getSnapshot=t,Vu(o)&&i({inst:o});},[e,n,t]),p_(function(){return Vu(o)&&i({inst:o}),e(function(){Vu(o)&&i({inst:o});})},[e]),g_(n),n}function Vu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !h_(e,n)}catch{return !0}}function y_(e,t){return t()}var C_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y_:b_;s0.useSyncExternalStore=aa.useSyncExternalStore!==void 0?aa.useSyncExternalStore:C_;a0.exports=s0;var S_=a0.exports;const w_=Xr(S_),{use:Hp}=f,{useSyncExternalStore:x_}=w_,$_=(e,t)=>{const n=f.useRef();f.useEffect(()=>{n.current=c_(e,t,!0);}),f.useDebugValue(n.current);},E_=new WeakMap;function ba(e,t){const n=t==null?void 0:t.sync,r=f.useRef(),o=f.useRef();let i=!0;const a=x_(f.useCallback(c=>{const u=i0(e,c,n);return c(),u},[e,n]),()=>{const c=jp(e,Hp);try{if(!i&&r.current&&o.current&&!o0(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>jp(e,Hp));i=!1;const s=new WeakMap;f.useEffect(()=>{r.current=a,o.current=s;}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&$_(a,s);const l=f.useMemo(()=>new WeakMap,[]);return r0(a,s,l,E_)}const Nh={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,openInIINAWhenRightClick:!1,usePcDesktopApi:!1,useParallelRequest:!0,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowed:!1,onlyFollowMode:!1,useDynamicApi:!1},gt=Ns({...Nh}),l0=Object.keys(Nh),sr=function(){return ba(gt)},O_=Fo,c0=`${O_}.settings`;function P_(){const e=GM_getValue(c0);e&&typeof e=="object"&&Object.assign(gt,t0(e,l0)),i0(gt,()=>{__();});}function __(){const e=t0(gt,l0);GM_setValue(c0,e);}function vo(e){Object.assign(gt,e);}function R_(){return vo(Nh)}P_();var u0={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(vb,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",h="quarter",v="year",p="date",m="Invalid Date",g=/^(\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(R){var P=["th","st","nd","rd"],T=R%100;return "["+R+(P[(T-20)%10]||P[T]||P[0])+"]"}},w=function(R,P,T){var A=String(R);return !A||A.length>=P?R:""+Array(P+1-A.length).join(T)+R},$={s:w,z:function(R){var P=-R.utcOffset(),T=Math.abs(P),A=Math.floor(T/60),N=T%60;return (P<=0?"+":"-")+w(A,2,"0")+":"+w(N,2,"0")},m:function R(P,T){if(P.date()<T.date())return -R(T,P);var A=12*(T.year()-P.year())+(T.month()-P.month()),N=P.clone().add(A,d),D=T-N<0,F=P.clone().add(A+(D?-1:1),d);return +(-(A+(T-N)/(D?N-F:F-N))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return {M:d,y:v,w:u,d:c,D:p,h:l,m:s,s:a,ms:i,Q:h}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},S="en",C={};C[S]=y;var x=function(R){return R instanceof I},_=function R(P,T,A){var N;if(!P)return S;if(typeof P=="string"){var D=P.toLowerCase();C[D]&&(N=D),T&&(C[D]=T,N=D);var F=P.split("-");if(!N&&F.length>1)return R(F[0])}else {var W=P.name;C[W]=P,N=W;}return !A&&N&&(S=N),N||!A&&S},M=function(R,P){if(x(R))return R.clone();var T=typeof P=="object"?P:{};return T.date=R,T.args=arguments,new I(T)},E=$;E.l=_,E.i=x,E.w=function(R,P){return M(R,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var I=function(){function R(T){this.$L=_(T.locale,null,!0),this.parse(T);}var P=R.prototype;return P.parse=function(T){this.$d=function(A){var N=A.date,D=A.utc;if(N===null)return new Date(NaN);if(E.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var F=N.match(g);if(F){var W=F[2]-1||0,z=(F[7]||"0").substring(0,3);return D?new Date(Date.UTC(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,z)):new Date(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,z)}}return new Date(N)}(T),this.$x=T.x||{},this.init();},P.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds();},P.$utils=function(){return E},P.isValid=function(){return this.$d.toString()!==m},P.isSame=function(T,A){var N=M(T);return this.startOf(A)<=N&&N<=this.endOf(A)},P.isAfter=function(T,A){return M(T)<this.startOf(A)},P.isBefore=function(T,A){return this.endOf(A)<M(T)},P.$g=function(T,A,N){return E.u(T)?this[A]:this.set(N,T)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(T,A){var N=this,D=!!E.u(A)||A,F=E.p(T),W=function(Y,te){var re=E.w(N.$u?Date.UTC(N.$y,te,Y):new Date(N.$y,te,Y),N);return D?re:re.endOf(c)},z=function(Y,te){return E.w(N.toDate()[Y].apply(N.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(te)),N)},L=this.$W,V=this.$M,G=this.$D,q="set"+(this.$u?"UTC":"");switch(F){case v:return D?W(1,0):W(31,11);case d:return D?W(1,V):W(0,V+1);case u:var ne=this.$locale().weekStart||0,Z=(L<ne?L+7:L)-ne;return W(D?G-Z:G+(6-Z),V);case c:case p:return z(q+"Hours",0);case l:return z(q+"Minutes",1);case s:return z(q+"Seconds",2);case a:return z(q+"Milliseconds",3);default:return this.clone()}},P.endOf=function(T){return this.startOf(T,!1)},P.$set=function(T,A){var N,D=E.p(T),F="set"+(this.$u?"UTC":""),W=(N={},N[c]=F+"Date",N[p]=F+"Date",N[d]=F+"Month",N[v]=F+"FullYear",N[l]=F+"Hours",N[s]=F+"Minutes",N[a]=F+"Seconds",N[i]=F+"Milliseconds",N)[D],z=D===c?this.$D+(A-this.$W):A;if(D===d||D===v){var L=this.clone().set(p,1);L.$d[W](z),L.init(),this.$d=L.set(p,Math.min(this.$D,L.daysInMonth())).$d;}else W&&this.$d[W](z);return this.init(),this},P.set=function(T,A){return this.clone().$set(T,A)},P.get=function(T){return this[E.p(T)]()},P.add=function(T,A){var N,D=this;T=Number(T);var F=E.p(A),W=function(V){var G=M(D);return E.w(G.date(G.date()+Math.round(V*T)),D)};if(F===d)return this.set(d,this.$M+T);if(F===v)return this.set(v,this.$y+T);if(F===c)return W(1);if(F===u)return W(7);var z=(N={},N[s]=r,N[l]=o,N[a]=n,N)[F]||1,L=this.$d.getTime()+T*z;return E.w(L,this)},P.subtract=function(T,A){return this.add(-1*T,A)},P.format=function(T){var A=this,N=this.$locale();if(!this.isValid())return N.invalidDate||m;var D=T||"YYYY-MM-DDTHH:mm:ssZ",F=E.z(this),W=this.$H,z=this.$m,L=this.$M,V=N.weekdays,G=N.months,q=function(te,re,se,de){return te&&(te[re]||te(A,D))||se[re].slice(0,de)},ne=function(te){return E.s(W%12||12,te,"0")},Z=N.meridiem||function(te,re,se){var de=te<12?"AM":"PM";return se?de.toLowerCase():de},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:L+1,MM:E.s(L+1,2,"0"),MMM:q(N.monthsShort,L,G,3),MMMM:q(G,L),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:q(N.weekdaysMin,this.$W,V,2),ddd:q(N.weekdaysShort,this.$W,V,3),dddd:V[this.$W],H:String(W),HH:E.s(W,2,"0"),h:ne(1),hh:ne(2),a:Z(W,z,!0),A:Z(W,z,!1),m:String(z),mm:E.s(z,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:F};return D.replace(b,function(te,re){return re||Y[te]||F.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(T,A,N){var D,F=E.p(A),W=M(T),z=(W.utcOffset()-this.utcOffset())*r,L=this-W,V=E.m(this,W);return V=(D={},D[v]=V/12,D[d]=V,D[h]=V/3,D[u]=(L-z)/6048e5,D[c]=(L-z)/864e5,D[l]=L/o,D[s]=L/r,D[a]=L/n,D)[F]||L,N?V:E.a(V)},P.daysInMonth=function(){return this.endOf(d).$D},P.$locale=function(){return C[this.$L]},P.locale=function(T,A){if(!T)return this.$L;var N=this.clone(),D=_(T,A,!0);return D&&(N.$L=D),N},P.clone=function(){return E.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},R}(),O=I.prototype;return M.prototype=O,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",c],["$M",d],["$y",v],["$D",p]].forEach(function(R){O[R[1]]=function(P){return this.$g(P,R[0],R[1])};}),M.extend=function(R,P){return R.$i||(R(P,I,M),R.$i=!0),M},M.locale=_,M.isDayjs=x,M.unix=function(R){return M(1e3*R)},M.en=C[S],M.Ls=C,M.p={},M});})(u0);var M_=u0.exports;const As=Xr(M_);var d0={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(vb,function(){var n,r,o=1e3,i=6e4,a=36e5,s=864e5,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=31536e6,u=2592e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h={years:c,months:u,days:s,hours:a,minutes:i,seconds:o,milliseconds:1,weeks:6048e5},v=function(S){return S instanceof $},p=function(S,C,x){return new $(S,x,C.$l)},m=function(S){return r.p(S)+"s"},g=function(S){return S<0},b=function(S){return g(S)?Math.ceil(S):Math.floor(S)},y=function(S){return Math.abs(S)},w=function(S,C){return S?g(S)?{negative:!0,format:""+y(S)+C}:{negative:!1,format:""+S+C}:{negative:!1,format:""}},$=function(){function S(x,_,M){var E=this;if(this.$d={},this.$l=M,x===void 0&&(this.$ms=0,this.parseFromMilliseconds()),_)return p(x*h[m(_)],this);if(typeof x=="number")return this.$ms=x,this.parseFromMilliseconds(),this;if(typeof x=="object")return Object.keys(x).forEach(function(R){E.$d[m(R)]=x[R];}),this.calMilliseconds(),this;if(typeof x=="string"){var I=x.match(d);if(I){var O=I.slice(2).map(function(R){return R!=null?Number(R):0});return this.$d.years=O[0],this.$d.months=O[1],this.$d.weeks=O[2],this.$d.days=O[3],this.$d.hours=O[4],this.$d.minutes=O[5],this.$d.seconds=O[6],this.calMilliseconds(),this}}return this}var C=S.prototype;return C.calMilliseconds=function(){var x=this;this.$ms=Object.keys(this.$d).reduce(function(_,M){return _+(x.$d[M]||0)*h[M]},0);},C.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/a),x%=a,this.$d.minutes=b(x/i),x%=i,this.$d.seconds=b(x/o),x%=o,this.$d.milliseconds=x;},C.toISOString=function(){var x=w(this.$d.years,"Y"),_=w(this.$d.months,"M"),M=+this.$d.days||0;this.$d.weeks&&(M+=7*this.$d.weeks);var E=w(M,"D"),I=w(this.$d.hours,"H"),O=w(this.$d.minutes,"M"),R=this.$d.seconds||0;this.$d.milliseconds&&(R+=this.$d.milliseconds/1e3);var P=w(R,"S"),T=x.negative||_.negative||E.negative||I.negative||O.negative||P.negative,A=I.format||O.format||P.format?"T":"",N=(T?"-":"")+"P"+x.format+_.format+E.format+A+I.format+O.format+P.format;return N==="P"||N==="-P"?"P0D":N},C.toJSON=function(){return this.toISOString()},C.format=function(x){var _=x||"YYYY-MM-DDTHH:mm:ss",M={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return _.replace(l,function(E,I){return I||String(M[E])})},C.as=function(x){return this.$ms/h[m(x)]},C.get=function(x){var _=this.$ms,M=m(x);return M==="milliseconds"?_%=1e3:_=M==="weeks"?b(_/h[M]):this.$d[M],_===0?0:_},C.add=function(x,_,M){var E;return E=_?x*h[m(_)]:v(x)?x.$ms:p(x,this).$ms,p(this.$ms+E*(M?-1:1),this)},C.subtract=function(x,_){return this.add(x,_,!0)},C.locale=function(x){var _=this.clone();return _.$l=x,_},C.clone=function(){return p(this.$ms,this)},C.humanize=function(x){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!x)},C.milliseconds=function(){return this.get("milliseconds")},C.asMilliseconds=function(){return this.as("milliseconds")},C.seconds=function(){return this.get("seconds")},C.asSeconds=function(){return this.as("seconds")},C.minutes=function(){return this.get("minutes")},C.asMinutes=function(){return this.as("minutes")},C.hours=function(){return this.get("hours")},C.asHours=function(){return this.as("hours")},C.days=function(){return this.get("days")},C.asDays=function(){return this.as("days")},C.weeks=function(){return this.get("weeks")},C.asWeeks=function(){return this.as("weeks")},C.months=function(){return this.get("months")},C.asMonths=function(){return this.as("months")},C.years=function(){return this.get("years")},C.asYears=function(){return this.as("years")},S}();return function(S,C,x){n=x,r=x().$utils(),x.duration=function(E,I){var O=x.locale();return p(E,{$l:O},I)},x.isDuration=v;var _=C.prototype.add,M=C.prototype.subtract;C.prototype.add=function(E,I){return v(E)&&(E=E.asMilliseconds()),_.bind(this)(E,I)},C.prototype.subtract=function(E,I){return v(E)&&(E=E.asMilliseconds()),M.bind(this)(E,I)};}});})(d0);var T_=d0.exports;const I_=Xr(T_),sa=qP(()=>!!document.querySelectorAll(".bili-feed4").length),Bp=document.querySelector(".bili-header__bar"),N_=!!(Bp&&window.getComputedStyle(Bp).display==="none"),f0=N_?50:64,h0=()=>document.body.classList.contains("dark"),v0=Ns({value:h0()});function Zc(){return ba(v0).value}const Nl=new MutationObserver(function(){v0.value=h0();});Nl.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{Nl==null||Nl.disconnect();});function vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(e){"@babel/helpers - typeof";return tt=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},tt(e)}function A_(e,t){if(tt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(tt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function p0(e){var t=A_(e,"string");return tt(t)==="symbol"?t:String(t)}function Wp(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,p0(r.key),r);}}function pn(e,t,n){return t&&Wp(e.prototype,t),n&&Wp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jd(e,t){return Jd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Jd(e,t)}function zo(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&&Jd(e,t);}function ec(e){return ec=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ec(e)}function D_(){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 ut(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k_(e,t){if(t&&(tt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ut(e)}function jo(e){var t=D_();return function(){var r=ec(e),o;if(t){var i=ec(this).constructor;o=Reflect.construct(r,arguments,i);}else o=r.apply(this,arguments);return k_(this,o)}}var m0={exports:{}};/*!
  	Copyright (c) 2018 Jed Watson.
  	Licensed under the MIT License (MIT), see
  	http://jedwatson.github.io/classnames
  */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var s=n.apply(null,i);s&&r.push(s);}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&r.push(l);}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n;})();})(m0);var L_=m0.exports;const X=Xr(L_);function wr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return f.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(wr(r)):Ch.isFragment(r)&&r.props?n=n.concat(wr(r.props.children,t)):n.push(r));}),n}var ef={},F_=function(t){};function z_(e,t){}function j_(e,t){}function H_(){ef={};}function g0(e,t,n){!t&&!ef[n]&&(e(!1,n),ef[n]=!0);}function Cn(e,t){g0(z_,e,t);}function B_(e,t){g0(j_,e,t);}Cn.preMessage=F_;Cn.resetWarned=H_;Cn.noteOnce=B_;function U(e,t,n){return t=p0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vp(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 H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vp(Object(n),!0).forEach(function(r){U(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Ds(e,t,n){var r=f__namespace.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Ah(e,t){typeof e=="function"?e(t):tt(e)==="object"&&e&&"current"in e&&(e.current=t);}function Pn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(i){Ah(i,o);});}}function ks(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ds(function(){return Pn.apply(void 0,t)},t,function(r,o){return r.length===o.length&&r.every(function(i,a){return i===o[a]})})}function Ho(e){var t,n,r=Ch.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 tc(e){return e instanceof HTMLElement||e instanceof SVGElement}function gs(e){return tc(e)?e:e instanceof f.Component?ra.findDOMNode(e):null}var b0=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[];}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r]);},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1);},t.prototype.has=function(n){return !!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0);},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0]);}},t}()}(),tf=typeof window<"u"&&typeof document<"u"&&window.document===document,nc=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),W_=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(nc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),V_=2;function U_(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s();}function a(){W_(i);}function s(){var l=Date.now();if(n){if(l-o<V_)return;r=!0;}else n=!0,r=!1,setTimeout(a,t);o=l;}return s}var G_=20,K_=["top","right","bottom","left","width","height","size","weight"],X_=typeof MutationObserver<"u",q_=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=U_(this.refresh.bind(this),G_);}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_();},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_();},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh();},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!tf||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),X_?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0);},e.prototype.disconnect_=function(){!tf||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1);},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=K_.some(function(i){return !!~r.indexOf(i)});o&&this.refresh();},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),y0=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0});}return e},la=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||nc},C0=Qc(0,0,0,0);function rc(e){return parseFloat(e)||0}function Up(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+rc(i)},0)}function Y_(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=rc(a);}return n}function Z_(e){var t=e.getBBox();return Qc(0,0,t.width,t.height)}function Q_(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return C0;var r=la(e).getComputedStyle(e),o=Y_(r),i=o.left+o.right,a=o.top+o.bottom,s=rc(r.width),l=rc(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=Up(r,"left","right")+i),Math.round(l+a)!==n&&(l-=Up(r,"top","bottom")+a)),!eR(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u);}return Qc(o.left,o.top,s,l)}var J_=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof la(e).SVGGraphicsElement}:function(e){return e instanceof la(e).SVGElement&&typeof e.getBBox=="function"}}();function eR(e){return e===la(e).document.documentElement}function tR(e){return tf?J_(e)?Z_(e):Q_(e):C0}function nR(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return y0(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function Qc(e,t,n,r){return {x:e,y:t,width:n,height:r}}var rR=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Qc(0,0,0,0),this.target=t;}return e.prototype.isActive=function(){var t=tR(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),oR=function(){function e(t,n){var r=nR(n);y0(this,{target:t,contentRect:r});}return e}(),iR=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new b0,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r;}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof la(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new rR(t)),this.controller_.addObserver(this),this.controller_.refresh());}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof la(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this));}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this);},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n);});},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new oR(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive();}},e.prototype.clearActive=function(){this.activeObservations_.splice(0);},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),S0=typeof WeakMap<"u"?new WeakMap:new b0,w0=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=q_.getInstance(),r=new iR(t,n,this);S0.set(this,r);}return e}();["observe","unobserve","disconnect"].forEach(function(e){w0.prototype[e]=function(){var t;return (t=S0.get(this))[e].apply(t,arguments)};});var x0=function(){return typeof nc.ResizeObserver<"u"?nc.ResizeObserver:w0}(),To=new Map;function aR(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 $0=new x0(aR);function sR(e,t){To.has(e)||(To.set(e,new Set),$0.observe(e)),To.get(e).add(t);}function lR(e,t){To.has(e)&&(To.get(e).delete(t),To.get(e).size||($0.unobserve(e),To.delete(e)));}var cR=function(e){zo(n,e);var t=jo(n);function n(){return vn(this,n),t.apply(this,arguments)}return pn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),nf=f__namespace.createContext(null);function uR(e){var t=e.children,n=e.onBatchResize,r=f__namespace.useRef(0),o=f__namespace.useRef([]),i=f__namespace.useContext(nf),a=f__namespace.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[]);}),i==null||i(s,l,c);},[n,i]);return f__namespace.createElement(nf.Provider,{value:a},t)}function dR(e,t){var n=e.children,r=e.disabled,o=f__namespace.useRef(null),i=f__namespace.useRef(null),a=f__namespace.useContext(nf),s=typeof n=="function",l=s?n(o):n,c=f__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&f__namespace.isValidElement(l)&&Ho(l),d=u?l.ref:null,h=f__namespace.useMemo(function(){return Pn(d,o)},[d,o]),v=function(){return gs(o.current)||gs(i.current)};f__namespace.useImperativeHandle(t,function(){return v()});var p=f__namespace.useRef(e);p.current=e;var m=f__namespace.useCallback(function(g){var b=p.current,y=b.onResize,w=b.data,$=g.getBoundingClientRect(),S=$.width,C=$.height,x=g.offsetWidth,_=g.offsetHeight,M=Math.floor(S),E=Math.floor(C);if(c.current.width!==M||c.current.height!==E||c.current.offsetWidth!==x||c.current.offsetHeight!==_){var I={width:M,height:E,offsetWidth:x,offsetHeight:_};c.current=I;var O=x===Math.round(S)?S:x,R=_===Math.round(C)?C:_,P=H(H({},I),{},{offsetWidth:O,offsetHeight:R});a==null||a(P,g,w),y&&Promise.resolve().then(function(){y(P,g);});}},[]);return f__namespace.useEffect(function(){var g=v();return g&&!r&&sR(g,m),function(){return lR(g,m)}},[o.current,r]),f__namespace.createElement(cR,{ref:i},u?f__namespace.cloneElement(l,{ref:h}):l)}var fR=f__namespace.forwardRef(dR),hR="rc-observer-key";function vR(e,t){var n=e.children,r=typeof n=="function"?[n]:wr(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(hR,"-").concat(i);return f__namespace.createElement(fR,he({},e,{key:a,ref:i===0?t:void 0}),o)})}var go=f__namespace.forwardRef(vR);go.Collection=uR;function xr(e,t){var n=H({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}function rf(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 pR(e){if(Array.isArray(e))return rf(e)}function E0(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dh(e,t){if(e){if(typeof e=="string")return rf(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 rf(e,t)}}function mR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(e){return pR(e)||E0(e)||Dh(e)||mR()}var O0=function(t){return +setTimeout(t,16)},P0=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(O0=function(t){return window.requestAnimationFrame(t)},P0=function(t){return window.cancelAnimationFrame(t)});var Gp=0,kh=new Map;function _0(e){kh.delete(e);}var wt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Gp+=1;var r=Gp;function o(i){if(i===0)_0(r),t();else {var a=O0(function(){o(i-1);});kh.set(r,a);}}return o(n),r};wt.cancel=function(e){var t=kh.get(e);return _0(t),P0(t)};function Lh(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 gR(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Xe(e,t){if(e==null)return {};var n=gR(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function Ls(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(Cn(!l,"Warning: There may be circular references"),l)return !1;if(i===a)return !0;if(n&&s>1)return !1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return !1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return !1;return !0}if(i&&a&&tt(i)==="object"&&tt(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(h){return o(i[h],a[h],c)})}return !1}return o(e,t)}var bR=function(){function e(t){vn(this,e),U(this,"instanceId",void 0),U(this,"cache",new Map),this.instanceId=t;}return pn(e,[{key:"get",value:function(n){return this.cache.get(n.join("%"))||null}},{key:"update",value:function(n,r){var o=n.join("%"),i=this.cache.get(o),a=r(i);a===null?this.cache.delete(o):this.cache.set(o,a);}}]),e}(),of="data-token-hash",Gi="data-css-hash",zi="__cssinjs_instance__";function yR(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Gi,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[zi]=o[zi]||e,o[zi]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(Gi,"]"))).forEach(function(o){var i=o.getAttribute(Gi);if(r[i]){if(o[zi]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o);}}else r[i]=!0;});}return new bR(e)}var CR=f__namespace.createContext({hashPriority:"low",cache:yR(),defaultCache:!0});const Fh=CR;function Mn(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}function qa(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 Kp="data-rc-order",SR="rc-util-key",af=new Map;function R0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):SR}function Jc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function wR(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function M0(e){return Array.from((af.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function T0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Mn())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(Kp,wR(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=Jc(t),a=i.firstChild;if(r){if(r==="queue"){var s=M0(i).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(Kp))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,a);}else i.appendChild(o);return o}function I0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Jc(t);return M0(n).find(function(r){return r.getAttribute(R0(t))===e})}function oc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=I0(e,t);if(n){var r=Jc(t);r.removeChild(n);}}function xR(e,t){var n=af.get(e);if(!n||!qa(document,n)){var r=T0("",t),o=r.parentNode;af.set(e,o),e.removeChild(r);}}function ca(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Jc(n);xR(r,n);var o=I0(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=T0(e,n);return l.setAttribute(R0(n),t),l}function ic(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&tt(r)==="object"?t+=ic(r):t+=r;}),t}function $R(e,t){return Lh("".concat(t,"_").concat(ic(e)))}var Ya="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),N0="903px";function ER(e,t){if(Mn()){var n;ca(e,Ya);var r=document.createElement("div");r.style.position="fixed",r.style.left="0",r.style.top="0",t==null||t(r),document.body.appendChild(r);var o=getComputedStyle(r).width===N0;return (n=r.parentNode)===null||n===void 0||n.removeChild(r),oc(Ya),o}return !1}var Uu=void 0;function OR(){return Uu===void 0&&(Uu=ER("@layer ".concat(Ya," { .").concat(Ya," { width: ").concat(N0,"!important; } }"),function(e){e.className=Ya;})),Uu}function A0(e){if(Array.isArray(e))return e}function PR(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1;}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u;}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function D0(){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 K(e,t){return A0(e)||PR(e,t)||Dh(e,t)||D0()}function k0(e,t,n,r){var o=f__namespace.useContext(Fh),i=o.cache,a=[e].concat(ge(t));return f__namespace.useMemo(function(){i.update(a,function(s){var l=s||[],c=K(l,2),u=c[0],d=u===void 0?0:u,h=c[1],v=h,p=v||n();return [d+1,p]});},[a.join("_")]),f__namespace.useEffect(function(){return function(){i.update(a,function(s){var l=s||[],c=K(l,2),u=c[0],d=u===void 0?0:u,h=c[1],v=d-1;return v===0?(r==null||r(h,!1),null):[d-1,h]});}},a),i.get(a)[1]}var _R={},RR="css",Qo=new Map;function MR(e){Qo.set(e,(Qo.get(e)||0)+1);}function TR(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(of,'="').concat(e,'"]'));n.forEach(function(r){if(r[zi]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}function IR(e,t){Qo.set(e,(Qo.get(e)||0)-1);var n=Array.from(Qo.keys()),r=n.filter(function(o){var i=Qo.get(o)||0;return i<=0});r.length<n.length&&r.forEach(function(o){TR(o,t),Qo.delete(o);});}function NR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(Fh),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,s=n.override,l=s===void 0?_R:s,c=n.formatToken,u=f__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(ge(t)))},[t]),d=f__namespace.useMemo(function(){return ic(u)},[u]),h=f__namespace.useMemo(function(){return ic(l)},[l]),v=k0("token",[a,e.id,d,h],function(){var p=e.getDerivativeToken(u),m=H(H({},p),l);c&&(m=c(m));var g=$R(m,a);m._tokenKey=g,MR(g);var b="".concat(RR,"-").concat(Lh(g));return m._hashId=b,[m,b]},function(p){IR(p[0]._tokenKey,o);});return v}var AR={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},Xp=Mn(),DR="_skip_check_",L0="_multi_value_";function qp(e){var t=li(xb(e),$b);return t.replace(/\{%%%\:[^;];}/g,";")}function kR(e){return tt(e)==="object"&&e&&(DR in e||L0 in e)}function LR(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(ge(l.slice(1))).join(" ")});return i.join(",")}var FR=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var h="",v={};function p(w){var $=w.getName(s);if(!v[$]){var S=e(w.style,n,{root:!1,parentSelectors:a}),C=K(S,1),x=C[0];v[$]="@keyframes ".concat(w.getName(s)).concat(x);}}function m(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(function(S){Array.isArray(S)?m(S,$):S&&$.push(S);}),$}var g=m(Array.isArray(t)?t:[t]);if(g.forEach(function(w){var $=typeof w=="string"&&!o?{}:w;if(typeof $=="string")h+="".concat($,`
`);else if($._keyframe)p($);else {var S=d.reduce(function(C,x){var _;return (x==null||(_=x.visit)===null||_===void 0?void 0:_.call(x,C))||C},$);Object.keys(S).forEach(function(C){var x=S[C];if(tt(x)==="object"&&x&&(C!=="animationName"||!x._keyframe)&&!kR(x)){var _=!1,M=C.trim(),E=!1;(o||i)&&s?M.startsWith("@")?_=!0:M=LR(C,s,c):o&&!s&&(M==="&"||M==="")&&(M="",E=!0);var I=e(x,n,{root:E,injectHash:_,parentSelectors:[].concat(ge(a),[M])}),O=K(I,2),R=O[0],P=O[1];v=H(H({},v),P),h+="".concat(M).concat(R);}else {let N=function(D,F){var W=D.replace(/[A-Z]/g,function(L){return "-".concat(L.toLowerCase())}),z=F;!AR[D]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),D==="animationName"&&F!==null&&F!==void 0&&F._keyframe&&(p(F),z=F.getName(s)),h+="".concat(W,":").concat(z,";");};var T,A=(T=x==null?void 0:x.value)!==null&&T!==void 0?T:x;tt(x)==="object"&&x!==null&&x!==void 0&&x[L0]&&Array.isArray(A)?A.forEach(function(D){N(C,D);}):N(C,A);}});}}),!o)h="{".concat(h,"}");else if(l&&OR()){var b=l.split(","),y=b[b.length-1].trim();h="@layer ".concat(y," {").concat(h,"}"),b.length>1&&(h="@layer ".concat(l,"{%%%:%}").concat(h));}return [h,v]};function zR(e,t){return Lh("".concat(e.join("%")).concat(t))}function jR(){return null}function sf(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=f__namespace.useContext(Fh),l=s.autoClear;s.mock;var c=s.defaultCache,u=s.hashPriority,d=s.container,h=s.ssrInline,v=s.transformers,p=s.linters,m=s.cache,g=n._tokenKey,b=[g].concat(ge(r)),y=Xp,w=k0("style",b,function(){var _=t(),M=FR(_,{hashId:o,hashPriority:u,layer:i,path:r.join("-"),transformers:v,linters:p}),E=K(M,2),I=E[0],O=E[1],R=qp(I),P=zR(b,R);if(y){var T={mark:Gi,prepend:"queue",attachTo:d},A=typeof a=="function"?a():a;A&&(T.csp={nonce:A});var N=ca(R,P,T);N[zi]=m.instanceId,N.setAttribute(of,g),Object.keys(O).forEach(function(D){ca(qp(O[D]),"_effect-".concat(D),T);});}return [R,g,P]},function(_,M){var E=K(_,3),I=E[2];(M||l)&&Xp&&oc(I,{mark:Gi});}),$=K(w,3),S=$[0],C=$[1],x=$[2];return function(_){var M;if(!h||y||!c)M=f__namespace.createElement(jR,null);else {var E;M=f__namespace.createElement("style",he({},(E={},U(E,of,C),U(E,Gi,x),E),{dangerouslySetInnerHTML:{__html:S}}));}return f__namespace.createElement(f__namespace.Fragment,null,M,_)}}var Tt=function(){function e(t,n){vn(this,e),U(this,"name",void 0),U(this,"style",void 0),U(this,"_keyframe",!0),this.name=t,this.style=n;}return pn(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 HR(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 zh=function(){function e(){vn(this,e),U(this,"cache",void 0),U(this,"keys",void 0),U(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return pn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else {var l,c;a=(l=a)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s);}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return (r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return !!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var d=K(c,2),h=d[1];return o.internalGet(u)[1]<h?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=K(i,1),s=a[0];this.delete(s);}this.keys.push(n);}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else {var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map;}});}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return (!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return !HR(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();U(zh,"MAX_CACHE_SIZE",20);U(zh,"MAX_CACHE_OFFSET",5);var Yp=0,BR=function(){function e(t){vn(this,e),U(this,"derivatives",void 0),U(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Yp,t.length===0&&(t.length>0,void 0),Yp+=1;}return pn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Gu=new zh;function F0(e){var t=Array.isArray(e)?e:[e];return Gu.has(t)||Gu.set(t,new BR(t)),Gu.get(t)}function xi(e){return e.notSplit=!0,e}xi(["borderTop","borderBottom"]),xi(["borderTop"]),xi(["borderBottom"]),xi(["borderLeft","borderRight"]),xi(["borderLeft"]),xi(["borderRight"]);var WR=f.createContext({});const jh=WR;function z0(e){return A0(e)||E0(e)||Dh(e)||D0()}function Sr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function j0(e,t,n,r){if(!t.length)return n;var o=z0(t),i=o[0],a=o.slice(1),s;return !e&&typeof i=="number"?s=[]:Array.isArray(e)?s=ge(e):s=H({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=j0(s[i],a,n,r),s}function gr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Sr(e,t.slice(0,-1))?e:j0(e,t,n,r)}function VR(e){return tt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Zp(e){return Array.isArray(e)?[]:{}}function ji(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Zp(t[0]),o=new Set;return t.forEach(function(i){function a(s){var l=Sr(i,s),c=Array.isArray(l);if(c||VR(l)){if(!o.has(l)){o.add(l);var u=Sr(r,s);c?r=gr(r,s,[]):(!u||tt(u)!=="object")&&(r=gr(r,s,Zp(l))),Object.keys(l).forEach(function(d){a([].concat(ge(s),[d]));});}}else r=gr(r,s,l);}a([]);}),r}var ei="RC_FORM_INTERNAL_HOOKS",Lt=function(){Cn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},ua=f__namespace.createContext({getFieldValue:Lt,getFieldsValue:Lt,getFieldError:Lt,getFieldWarning:Lt,getFieldsError:Lt,isFieldsTouched:Lt,isFieldTouched:Lt,isFieldValidating:Lt,isFieldsValidating:Lt,resetFields:Lt,setFields:Lt,setFieldValue:Lt,setFieldsValue:Lt,validateFields:Lt,submit:Lt,getInternalHooks:function(){return Lt(),{dispatch:Lt,initEntityValue:Lt,registerField:Lt,useSubscribe:Lt,setInitialValues:Lt,destroyForm:Lt,setCallbacks:Lt,registerWatch:Lt,getFields:Lt,setValidateMessages:Lt,setPreserve:Lt,getInitialValue:Lt}}}),lf=f__namespace.createContext(null);function cf(e){return e==null?[]:Array.isArray(e)?e:[e]}function UR(e){return e&&!!e._init}function Tn(){Tn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(O,R,P){O[R]=P.value;},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(O,R,P){return Object.defineProperty(O,R,{value:P,enumerable:!0,configurable:!0,writable:!0}),O[R]}try{l({},"");}catch{l=function(P,T,A){return P[T]=A};}function c(O,R,P,T){var A=R&&R.prototype instanceof h?R:h,N=Object.create(A.prototype),D=new M(T||[]);return r(N,"_invoke",{value:S(O,P,D)}),N}function u(O,R,P){try{return {type:"normal",arg:O.call(R,P)}}catch(T){return {type:"throw",arg:T}}}e.wrap=c;var d={};function h(){}function v(){}function p(){}var m={};l(m,i,function(){return this});var g=Object.getPrototypeOf,b=g&&g(g(E([])));b&&b!==t&&n.call(b,i)&&(m=b);var y=p.prototype=h.prototype=Object.create(m);function w(O){["next","throw","return"].forEach(function(R){l(O,R,function(P){return this._invoke(R,P)});});}function $(O,R){function P(A,N,D,F){var W=u(O[A],O,N);if(W.type!=="throw"){var z=W.arg,L=z.value;return L&&tt(L)=="object"&&n.call(L,"__await")?R.resolve(L.__await).then(function(V){P("next",V,D,F);},function(V){P("throw",V,D,F);}):R.resolve(L).then(function(V){z.value=V,D(z);},function(V){return P("throw",V,D,F)})}F(W.arg);}var T;r(this,"_invoke",{value:function(N,D){function F(){return new R(function(W,z){P(N,D,W,z);})}return T=T?T.then(F,F):F()}});}function S(O,R,P){var T="suspendedStart";return function(A,N){if(T==="executing")throw new Error("Generator is already running");if(T==="completed"){if(A==="throw")throw N;return I()}for(P.method=A,P.arg=N;;){var D=P.delegate;if(D){var F=C(D,P);if(F){if(F===d)continue;return F}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(T==="suspendedStart")throw T="completed",P.arg;P.dispatchException(P.arg);}else P.method==="return"&&P.abrupt("return",P.arg);T="executing";var W=u(O,R,P);if(W.type==="normal"){if(T=P.done?"completed":"suspendedYield",W.arg===d)continue;return {value:W.arg,done:P.done}}W.type==="throw"&&(T="completed",P.method="throw",P.arg=W.arg);}}}function C(O,R){var P=R.method,T=O.iterator[P];if(T===void 0)return R.delegate=null,P==="throw"&&O.iterator.return&&(R.method="return",R.arg=void 0,C(O,R),R.method==="throw")||P!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+P+"' method")),d;var A=u(T,O.iterator,R.arg);if(A.type==="throw")return R.method="throw",R.arg=A.arg,R.delegate=null,d;var N=A.arg;return N?N.done?(R[O.resultName]=N.value,R.next=O.nextLoc,R.method!=="return"&&(R.method="next",R.arg=void 0),R.delegate=null,d):N:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,d)}function x(O){var R={tryLoc:O[0]};1 in O&&(R.catchLoc=O[1]),2 in O&&(R.finallyLoc=O[2],R.afterLoc=O[3]),this.tryEntries.push(R);}function _(O){var R=O.completion||{};R.type="normal",delete R.arg,O.completion=R;}function M(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(x,this),this.reset(!0);}function E(O){if(O){var R=O[i];if(R)return R.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var P=-1,T=function A(){for(;++P<O.length;)if(n.call(O,P))return A.value=O[P],A.done=!1,A;return A.value=void 0,A.done=!0,A};return T.next=T}}return {next:I}}function I(){return {value:void 0,done:!0}}return v.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:v,configurable:!0}),v.displayName=l(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(O){var R=typeof O=="function"&&O.constructor;return !!R&&(R===v||(R.displayName||R.name)==="GeneratorFunction")},e.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,p):(O.__proto__=p,l(O,s,"GeneratorFunction")),O.prototype=Object.create(y),O},e.awrap=function(O){return {__await:O}},w($.prototype),l($.prototype,a,function(){return this}),e.AsyncIterator=$,e.async=function(O,R,P,T,A){A===void 0&&(A=Promise);var N=new $(c(O,R,P,T),A);return e.isGeneratorFunction(R)?N:N.next().then(function(D){return D.done?D.value:N.next()})},w(y),l(y,s,"Generator"),l(y,i,function(){return this}),l(y,"toString",function(){return "[object Generator]"}),e.keys=function(O){var R=Object(O),P=[];for(var T in R)P.push(T);return P.reverse(),function A(){for(;P.length;){var N=P.pop();if(N in R)return A.value=N,A.done=!1,A}return A.done=!0,A}},e.values=E,M.prototype={constructor:M,reset:function(R){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!R)for(var P in this)P.charAt(0)==="t"&&n.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=void 0);},stop:function(){this.done=!0;var R=this.tryEntries[0].completion;if(R.type==="throw")throw R.arg;return this.rval},dispatchException:function(R){if(this.done)throw R;var P=this;function T(z,L){return D.type="throw",D.arg=R,P.next=z,L&&(P.method="next",P.arg=void 0),!!L}for(var A=this.tryEntries.length-1;A>=0;--A){var N=this.tryEntries[A],D=N.completion;if(N.tryLoc==="root")return T("end");if(N.tryLoc<=this.prev){var F=n.call(N,"catchLoc"),W=n.call(N,"finallyLoc");if(F&&W){if(this.prev<N.catchLoc)return T(N.catchLoc,!0);if(this.prev<N.finallyLoc)return T(N.finallyLoc)}else if(F){if(this.prev<N.catchLoc)return T(N.catchLoc,!0)}else {if(!W)throw new Error("try statement without catch or finally");if(this.prev<N.finallyLoc)return T(N.finallyLoc)}}}},abrupt:function(R,P){for(var T=this.tryEntries.length-1;T>=0;--T){var A=this.tryEntries[T];if(A.tryLoc<=this.prev&&n.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var N=A;break}}N&&(R==="break"||R==="continue")&&N.tryLoc<=P&&P<=N.finallyLoc&&(N=null);var D=N?N.completion:{};return D.type=R,D.arg=P,N?(this.method="next",this.next=N.finallyLoc,d):this.complete(D)},complete:function(R,P){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&P&&(this.next=P),d},finish:function(R){for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P];if(T.finallyLoc===R)return this.complete(T.completion,T.afterLoc),_(T),d}},catch:function(R){for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P];if(T.tryLoc===R){var A=T.completion;if(A.type==="throw"){var N=A.arg;_(T);}return N}}throw new Error("illegal catch attempt")},delegateYield:function(R,P,T){return this.delegate={iterator:E(R),resultName:P,nextLoc:T},this.method==="next"&&(this.arg=void 0),d}},e}function Qp(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value;}catch(c){n(c);return}s.done?t(l):Promise.resolve(l).then(r,o);}function gi(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){Qp(i,r,o,a,s,"next",l);}function s(l){Qp(i,r,o,a,s,"throw",l);}a(void 0);})}}function ti(){return ti=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},ti.apply(this,arguments)}function GR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bs(e,t);}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uf(e)}function bs(e,t){return bs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},bs(e,t)}function KR(){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 Al(e,t,n){return KR()?Al=Reflect.construct.bind():Al=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),c=new l;return a&&bs(c,a.prototype),c},Al.apply(null,arguments)}function XR(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function df(e){var t=typeof Map=="function"?new Map:void 0;return df=function(r){if(r===null||!XR(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 Al(r,arguments,uf(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),bs(o,r)},df(e)}var qR=/%[sdj%]/g,YR=function(){};typeof process<"u"&&process.env;function ff(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 qn(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,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(qR,function(s){if(s==="%%")return "%";if(o>=i)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 a}return e}function ZR(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function dn(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||ZR(t)&&typeof e=="string"&&!e)}function QR(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r);}e.forEach(function(s){t(s,a);});}function Jp(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([]);}i([]);}function JR(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[]);}),t}var em=function(e){GR(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}(df(Error));function e2(e,t,n,r,o){if(t.first){var i=new Promise(function(h,v){var p=function(b){return r(b),b.length?v(new em(b,ff(b))):h(o)},m=JR(e);Jp(m,n,p);});return i.catch(function(h){return h}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(h,v){var p=function(g){if(u.push.apply(u,g),c++,c===l)return r(u),u.length?v(new em(u,ff(u))):h(o)};s.length||(r(u),h(o)),s.forEach(function(m){var g=e[m];a.indexOf(m)!==-1?Jp(g,n,p):QR(g,n,p);});});return d.catch(function(h){return h}),d}function t2(e){return !!(e&&e.message!==void 0)}function n2(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]];}return n}function tm(e,t){return function(n){var r;return e.fullFields?r=n2(t,e.fullFields):r=t[n.field||e.fullField],t2(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 nm(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]=ti({},e[n],r):e[n]=r;}}return e}var H0=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||dn(n,a||t.type))&&o.push(qn(i.messages.required,t.fullField));},r2=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(qn(i.messages.whitespace,t.fullField));},ul,o2=function(){if(ul)return ul;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(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function($){return $&&$.exact?i:new RegExp("(?:"+t($)+n+t($)+")|(?:"+t($)+o+t($)+")","g")};l.v4=function(w){return w&&w.exact?a:new RegExp(""+t(w)+n+t(w),"g")},l.v6=function(w){return w&&w.exact?s:new RegExp(""+t(w)+o+t(w),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,h=l.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+h+"|"+v+p+m+")"+g+b;return ul=new RegExp("(?:^"+y+"$)","i"),ul},rm={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},ja={integer:function(t){return ja.number(t)&&parseInt(t,10)===t},float:function(t){return ja.number(t)&&!ja.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"&&!ja.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(rm.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(o2())},hex:function(t){return typeof t=="string"&&!!t.match(rm.hex)}},i2=function(t,n,r,o,i){if(t.required&&n===void 0){H0(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?ja[s](n)||o.push(qn(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(qn(i.messages.types[s],t.fullField,t.type));},a2=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,h=typeof n=="number",v=typeof n=="string",p=Array.isArray(n);if(h?d="number":v?d="string":p&&(d="array"),!d)return !1;p&&(u=n.length),v&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(qn(i.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(qn(i.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(qn(i.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(qn(i.messages[d].range,t.fullField,t.min,t.max));},$i="enum",s2=function(t,n,r,o,i){t[$i]=Array.isArray(t[$i])?t[$i]:[],t[$i].indexOf(n)===-1&&o.push(qn(i.messages[$i],t.fullField,t[$i].join(", ")));},l2=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(qn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(qn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},Ct={required:H0,whitespace:r2,type:i2,range:a2,enum:s2,pattern:l2},c2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n,"string")&&!t.required)return r();Ct.required(t,n,o,a,i,"string"),dn(n,"string")||(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i),Ct.pattern(t,n,o,a,i),t.whitespace===!0&&Ct.whitespace(t,n,o,a,i));}r(a);},u2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&Ct.type(t,n,o,a,i);}r(a);},d2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i));}r(a);},f2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&Ct.type(t,n,o,a,i);}r(a);},h2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),dn(n)||Ct.type(t,n,o,a,i);}r(a);},v2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i));}r(a);},p2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i));}r(a);},m2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Ct.required(t,n,o,a,i,"array"),n!=null&&(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i));}r(a);},g2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&Ct.type(t,n,o,a,i);}r(a);},b2="enum",y2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&Ct[b2](t,n,o,a,i);}r(a);},C2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n,"string")&&!t.required)return r();Ct.required(t,n,o,a,i),dn(n,"string")||Ct.pattern(t,n,o,a,i);}r(a);},S2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n,"date")&&!t.required)return r();if(Ct.required(t,n,o,a,i),!dn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Ct.type(t,l,o,a,i),l&&Ct.range(t,l.getTime(),o,a,i);}}r(a);},w2=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;Ct.required(t,n,o,a,i,s),r(a);},Ku=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(dn(n,a)&&!t.required)return r();Ct.required(t,n,o,s,i,a),dn(n,a)||Ct.type(t,n,o,s,i);}r(s);},x2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i);}r(a);},Za={string:c2,method:u2,number:d2,boolean:f2,regexp:h2,integer:v2,float:p2,array:m2,object:g2,enum:y2,pattern:C2,date:S2,url:Ku,hex:Ku,email:Ku,required:w2,any:x2};function hf(){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 vf=hf(),Fs=function(){function e(n){this.rules=null,this._messages=vf,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(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a];});},t.messages=function(r){return r&&(this._messages=nm(hf(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,l=o,c=i;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(m){var g=[],b={};function y($){if(Array.isArray($)){var S;g=(S=g).concat.apply(S,$);}else g.push($);}for(var w=0;w<m.length;w++)y(m[w]);g.length?(b=ff(g),c(g,b)):c(null,s);}if(l.messages){var d=this.messages();d===vf&&(d=hf()),nm(d,l.messages),l.messages=d;}else l.messages=this.messages();var h={},v=l.keys||Object.keys(this.rules);v.forEach(function(m){var g=a.rules[m],b=s[m];g.forEach(function(y){var w=y;typeof w.transform=="function"&&(s===r&&(s=ti({},s)),b=s[m]=w.transform(b)),typeof w=="function"?w={validator:w}:w=ti({},w),w.validator=a.getValidationMethod(w),w.validator&&(w.field=m,w.fullField=w.fullField||m,w.type=a.getType(w),h[m]=h[m]||[],h[m].push({rule:w,value:b,source:s,field:m}));});});var p={};return e2(h,l,function(m,g){var b=m.rule,y=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");y=y&&(b.required||!b.required&&m.value),b.field=m.field;function w(C,x){return ti({},x,{fullField:b.fullField+"."+C,fullFields:b.fullFields?[].concat(b.fullFields,[C]):[C]})}function $(C){C===void 0&&(C=[]);var x=Array.isArray(C)?C:[C];!l.suppressWarning&&x.length&&e.warning("async-validator:",x),x.length&&b.message!==void 0&&(x=[].concat(b.message));var _=x.map(tm(b,s));if(l.first&&_.length)return p[b.field]=1,g(_);if(!y)g(_);else {if(b.required&&!m.value)return b.message!==void 0?_=[].concat(b.message).map(tm(b,s)):l.error&&(_=[l.error(b,qn(l.messages.required,b.field))]),g(_);var M={};b.defaultField&&Object.keys(m.value).map(function(O){M[O]=b.defaultField;}),M=ti({},M,m.rule.fields);var E={};Object.keys(M).forEach(function(O){var R=M[O],P=Array.isArray(R)?R:[R];E[O]=P.map(w.bind(null,O));});var I=new e(E);I.messages(l.messages),m.rule.options&&(m.rule.options.messages=l.messages,m.rule.options.error=l.error),I.validate(m.value,m.rule.options||l,function(O){var R=[];_&&_.length&&R.push.apply(R,_),O&&O.length&&R.push.apply(R,O),g(R.length?R:null);});}}var S;if(b.asyncValidator)S=b.asyncValidator(b,m.value,$,m.source,l);else if(b.validator){try{S=b.validator(b,m.value,$,m.source,l);}catch(C){console.error==null||console.error(C),l.suppressValidatorError||setTimeout(function(){throw C},0),$(C.message);}S===!0?$():S===!1?$(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):S instanceof Array?$(S):S instanceof Error&&$(S.message);}S&&S.then&&S.then(function(){return $()},function(C){return $(C)});},function(m){u(m);},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Za.hasOwnProperty(r.type))throw new Error(qn("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),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?Za.required:Za[this.getType(r)]||void 0},e}();Fs.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Za[t]=n;};Fs.warning=YR;Fs.messages=vf;Fs.validators=Za;var jn="'${name}' is not a valid ${type}",B0={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:jn,method:jn,array:jn,object:jn,number:jn,date:jn,boolean:jn,integer:jn,float:jn,regexp:jn,email:jn,url:jn,hex:jn},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}"}},om=Fs;function $2(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var im="CODE_LOGIC_ERROR";function pf(e,t,n,r,o){return mf.apply(this,arguments)}function mf(){return mf=gi(Tn().mark(function e(t,n,r,o,i){var a,s,l,c,u,d,h,v,p;return Tn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return a=H({},r),delete a.ruleIndex,om.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(im)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new om(U({},t,[a])),u=ji(B0,o.validateMessages),c.messages(u),d=[],g.prev=10,g.next=13,Promise.resolve(c.validate(U({},t,n),H({},o)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(d=g.t0.errors.map(function(b,y){var w=b.message,$=w===im?u.default:w;return f__namespace.isValidElement($)?f__namespace.cloneElement($,{key:"error_".concat(y)}):$}));case 18:if(!(!d.length&&l)){g.next=23;break}return g.next=21,Promise.all(n.map(function(b,y){return pf("".concat(t,".").concat(y),b,l,o,i)}));case 21:return h=g.sent,g.abrupt("return",h.reduce(function(b,y){return [].concat(ge(b),ge(y))},[]));case 23:return v=H(H({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),p=d.map(function(b){return typeof b=="string"?$2(b,v):b}),g.abrupt("return",p);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),mf.apply(this,arguments)}function E2(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(u,d){var h=u.validator,v=H(H({},u),{},{ruleIndex:d});return h&&(v.validator=function(p,m,g){var b=!1,y=function(){for(var S=arguments.length,C=new Array(S),x=0;x<S;x++)C[x]=arguments[x];Promise.resolve().then(function(){Cn(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||g.apply(void 0,C);});},w=h(p,m,y);b=w&&typeof w.then=="function"&&typeof w.catch=="function",Cn(b,"`callback` is deprecated. Please return a promise instead."),b&&w.then(function(){g();}).catch(function($){g($||" ");});}),v}).sort(function(u,d){var h=u.warningOnly,v=u.ruleIndex,p=d.warningOnly,m=d.ruleIndex;return !!h==!!p?v-m:h?1:-1}),l;if(o===!0)l=new Promise(function(){var u=gi(Tn().mark(function d(h,v){var p,m,g;return Tn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:p=0;case 1:if(!(p<s.length)){y.next=12;break}return m=s[p],y.next=5,pf(a,t,m,r,i);case 5:if(g=y.sent,!g.length){y.next=9;break}return v([{errors:g,rule:m}]),y.abrupt("return");case 9:p+=1,y.next=1;break;case 12:h([]);case 13:case"end":return y.stop()}},d)}));return function(d,h){return u.apply(this,arguments)}}());else {var c=s.map(function(u){return pf(a,t,u,r,i).then(function(d){return {errors:d,rule:u}})});l=(o?P2(c):O2(c)).then(function(u){return Promise.reject(u)});}return l.catch(function(u){return u}),l}function O2(e){return gf.apply(this,arguments)}function gf(){return gf=gi(Tn().mark(function e(t){return Tn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,ge(o));return a}));case 1:case"end":return r.stop()}},e)})),gf.apply(this,arguments)}function P2(e){return bf.apply(this,arguments)}function bf(){return bf=gi(Tn().mark(function e(t){var n;return Tn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([]);});});}));case 2:case"end":return o.stop()}},e)})),bf.apply(this,arguments)}function tn(e){return cf(e)}function am(e,t){var n={};return t.forEach(function(r){var o=Sr(e,r);n=gr(n,r,o);}),n}function Qa(e,t){return e&&e.some(function(n){return W0(n,t)})}function W0(e,t){return !e||!t||e.length!==t.length?!1:e.every(function(n,r){return t[r]===n})}function _2(e,t){if(e===t)return !0;if(!e&&t||e&&!t||!e||!t||tt(e)!=="object"||tt(t)!=="object")return !1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ge(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function R2(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&tt(t.target)==="object"&&e in t.target?t.target[e]:t}function sm(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(ge(e.slice(0,n)),[o],ge(e.slice(n,t)),ge(e.slice(t+1,r))):i<0?[].concat(ge(e.slice(0,t)),ge(e.slice(t+1,n+1)),[o],ge(e.slice(n+1,r))):e}var M2=["name"],tr=[];function lm(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Hh=function(e){zo(n,e);var t=jo(n);function n(r){var o;if(vn(this,n),o=t.call(this,r),o.state={resetCount:0},o.cancelRegisterFunc=null,o.mounted=!1,o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.prevValidating=void 0,o.errors=tr,o.warnings=tr,o.cancelRegister=function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,tn(d)),o.cancelRegisterFunc=null;},o.getNamePath=function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,h=d===void 0?[]:d;return c!==void 0?[].concat(ge(h),ge(c)):[]},o.getRules=function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(h){return typeof h=="function"?h(d):h})},o.refresh=function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return {resetCount:c+1}});},o.triggerMetaEvent=function(l){var c=o.props.onMetaChange;c==null||c(H(H({},o.getMeta()),{},{destroy:l}));},o.onStoreChange=function(l,c,u){var d=o.props,h=d.shouldUpdate,v=d.dependencies,p=v===void 0?[]:v,m=d.onReset,g=u.store,b=o.getNamePath(),y=o.getValue(l),w=o.getValue(g),$=c&&Qa(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&y!==w&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=tr,o.warnings=tr,o.triggerMetaEvent()),u.type){case"reset":if(!c||$){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=tr,o.warnings=tr,o.triggerMetaEvent(),m==null||m(),o.refresh();return}break;case"remove":{if(h){o.reRender();return}break}case"setField":{if($){var S=u.data;"touched"in S&&(o.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(o.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(o.errors=S.errors||tr),"warnings"in S&&(o.warnings=S.warnings||tr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}if(h&&!b.length&&lm(h,l,g,y,w,u)){o.reRender();return}break}case"dependenciesUpdate":{var C=p.map(tn);if(C.some(function(x){return Qa(u.relatedFields,x)})){o.reRender();return}break}default:if($||(!p.length||b.length||h)&&lm(h,l,g,y,w,u)){o.reRender();return}break}h===!0&&o.reRender();},o.validateRules=function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},h=d.triggerName,v=d.validateOnly,p=v===void 0?!1:v,m=Promise.resolve().then(function(){if(!o.mounted)return [];var g=o.props,b=g.validateFirst,y=b===void 0?!1:b,w=g.messageVariables,$=o.getRules();h&&($=$.filter(function(C){return C}).filter(function(C){var x=C.validateTrigger;if(!x)return !0;var _=cf(x);return _.includes(h)}));var S=E2(c,u,$,l,y,w);return S.catch(function(C){return C}).then(function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tr;if(o.validatePromise===m){var x;o.validatePromise=null;var _=[],M=[];(x=C.forEach)===null||x===void 0||x.call(C,function(E){var I=E.rule.warningOnly,O=E.errors,R=O===void 0?tr:O;I?M.push.apply(M,ge(R)):_.push.apply(_,ge(R));}),o.errors=_,o.warnings=M,o.triggerMetaEvent(),o.reRender();}}),S});return p||(o.validatePromise=m,o.dirty=!0,o.errors=tr,o.warnings=tr,o.triggerMetaEvent(),o.reRender()),m},o.isFieldValidating=function(){return !!o.validatePromise},o.isFieldTouched=function(){return o.touched},o.isFieldDirty=function(){if(o.dirty||o.props.initialValue!==void 0)return !0;var l=o.props.fieldContext,c=l.getInternalHooks(ei),u=c.getInitialValue;return u(o.getNamePath())!==void 0},o.getErrors=function(){return o.errors},o.getWarnings=function(){return o.warnings},o.isListField=function(){return o.props.isListField},o.isList=function(){return o.props.isList},o.isPreserve=function(){return o.props.preserve},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},o.getOnlyChild=function(l){if(typeof l=="function"){var c=o.getMeta();return H(H({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=wr(l);return u.length!==1||!f__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}},o.getValue=function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Sr(l||c(!0),u)},o.getControlled=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.trigger,d=c.validateTrigger,h=c.getValueFromEvent,v=c.normalize,p=c.valuePropName,m=c.getValueProps,g=c.fieldContext,b=d!==void 0?d:g.validateTrigger,y=o.getNamePath(),w=g.getInternalHooks,$=g.getFieldsValue,S=w(ei),C=S.dispatch,x=o.getValue(),_=m||function(O){return U({},p,O)},M=l[u],E=H(H({},l),_(x));E[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var O,R=arguments.length,P=new Array(R),T=0;T<R;T++)P[T]=arguments[T];h?O=h.apply(void 0,P):O=R2.apply(void 0,[p].concat(P)),v&&(O=v(O,x,$(!0))),C({type:"updateValue",namePath:y,value:O}),M&&M.apply(void 0,P);};var I=cf(b||[]);return I.forEach(function(O){var R=E[O];E[O]=function(){R&&R.apply(void 0,arguments);var P=o.props.rules;P&&P.length&&C({type:"validateField",namePath:y,triggerName:O});};}),E},r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(ei),s=a.initEntityValue;s(ut(o));}return o}return pn(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(ei),c=l.registerField;this.cancelRegisterFunc=c(this);}i===!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,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,c;return l?c=s:f__namespace.isValidElement(s)?c=f__namespace.cloneElement(s,this.getControlled(s.props)):(Cn(!s,"`children` of Field is not validate ReactElement."),c=s),f__namespace.createElement(f__namespace.Fragment,{key:o},c)}}]),n}(f__namespace.Component);Hh.contextType=ua;Hh.defaultProps={trigger:"onChange",valuePropName:"value"};function V0(e){var t=e.name,n=Xe(e,M2),r=f__namespace.useContext(ua),o=f__namespace.useContext(lf),i=t!==void 0?tn(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),f__namespace.createElement(Hh,he({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}var T2=function(t){var n=t.name,r=t.initialValue,o=t.children,i=t.rules,a=t.validateTrigger,s=t.isListField,l=f__namespace.useContext(ua),c=f__namespace.useContext(lf),u=f__namespace.useRef({keys:[],id:0}),d=u.current,h=f__namespace.useMemo(function(){var g=tn(l.prefixName)||[];return [].concat(ge(g),ge(tn(n)))},[l.prefixName,n]),v=f__namespace.useMemo(function(){return H(H({},l),{},{prefixName:h})},[l,h]),p=f__namespace.useMemo(function(){return {getKey:function(b){var y=h.length,w=b[y];return [d.keys[w],b.slice(y+1)]}}},[h]);if(typeof o!="function")return Cn(!1,"Form.List only accepts function as children."),null;var m=function(b,y,w){var $=w.source;return $==="internal"?!1:b!==y};return f__namespace.createElement(lf.Provider,{value:p},f__namespace.createElement(ua.Provider,{value:v},f__namespace.createElement(V0,{name:[],shouldUpdate:m,rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:s??!!c},function(g,b){var y=g.value,w=y===void 0?[]:y,$=g.onChange,S=l.getFieldValue,C=function(){var E=S(h||[]);return E||[]},x={add:function(E,I){var O=C();I>=0&&I<=O.length?(d.keys=[].concat(ge(d.keys.slice(0,I)),[d.id],ge(d.keys.slice(I))),$([].concat(ge(O.slice(0,I)),[E],ge(O.slice(I))))):(d.keys=[].concat(ge(d.keys),[d.id]),$([].concat(ge(O),[E]))),d.id+=1;},remove:function(E){var I=C(),O=new Set(Array.isArray(E)?E:[E]);O.size<=0||(d.keys=d.keys.filter(function(R,P){return !O.has(P)}),$(I.filter(function(R,P){return !O.has(P)})));},move:function(E,I){if(E!==I){var O=C();E<0||E>=O.length||I<0||I>=O.length||(d.keys=sm(d.keys,E,I),$(sm(O,E,I)));}}},_=w||[];return Array.isArray(_)||(_=[]),o(_.map(function(M,E){var I=d.keys[E];return I===void 0&&(d.keys[E]=d.id,I=d.keys[E],d.id+=1),{name:E,key:I,isListField:!0}}),x,b)})))};function I2(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r));});});}):Promise.resolve([])}var U0="__@field_split__";function Xu(e){return e.map(function(t){return "".concat(tt(t),":").concat(t)}).join(U0)}var Ei=function(){function e(){vn(this,e),this.kvs=new Map;}return pn(e,[{key:"set",value:function(n,r){this.kvs.set(Xu(n),r);}},{key:"get",value:function(n){return this.kvs.get(Xu(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n);}},{key:"delete",value:function(n){this.kvs.delete(Xu(n));}},{key:"map",value:function(n){return ge(this.kvs.entries()).map(function(r){var o=K(r,2),i=o[0],a=o[1],s=i.split(U0);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=K(c,3),d=u[1],h=u[2];return d==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),N2=["name"],A2=pn(function e(t){var n=this;vn(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,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}},this.getInternalHooks=function(r){return r===ei?(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}):(Cn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(r){n.subscribable=r;},this.prevWithoutPreserves=null,this.setInitialValues=function(r,o){if(n.initialValues=r||{},o){var i,a=ji(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=gr(a,l,Sr(r,l));}),n.prevWithoutPreserves=null,n.updateStore(a);}},this.destroyForm=function(){var r=new Ei;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0);}),n.prevWithoutPreserves=r;},this.getInitialValue=function(r){var o=Sr(n.initialValues,r);return r.length?ji(o):o},this.setCallbacks=function(r){n.callbacks=r;},this.setValidateMessages=function(r){n.validateMessages=r;},this.setPreserve=function(r){n.preserve=r;},this.watchList=[],this.registerWatch=function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r});}},this.notifyWatch=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r);});}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(r){n.store=r;},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},this.getFieldsMap=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Ei;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i);}),o},this.getFieldEntitiesForNamePathList=function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=tn(i);return o.get(a)||{INVALIDATE_NAME_PATH:tn(i)}})},this.getFieldsValue=function(r,o){if(n.warningUnhooked(),r===!0&&!o)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),a=[];return i.forEach(function(s){var l,c="INVALIDATE_NAME_PATH"in s?s.INVALIDATE_NAME_PATH:s.getNamePath();if(!(!r&&(!((l=s.isListField)===null||l===void 0)&&l.call(s))))if(!o)a.push(c);else {var u="getMeta"in s?s.getMeta():null;o(u)&&a.push(c);}}),am(n.store,a.map(tn))},this.getFieldValue=function(r){n.warningUnhooked();var o=tn(r);return Sr(n.store,o)},this.getFieldsError=function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:tn(r[a]),errors:[],warnings:[]}})},this.getFieldError=function(r){n.warningUnhooked();var o=tn(r),i=n.getFieldsError([o])[0];return i.errors},this.getFieldWarning=function(r){n.warningUnhooked();var o=tn(r),i=n.getFieldsError([o])[0];return i.warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(tn),c=!1):(l=null,c=a):(l=a.map(tn),c=s);var u=n.getFieldEntities(!0),d=function(g){return g.isFieldTouched()};if(!l)return c?u.every(d):u.some(d);var h=new Ei;l.forEach(function(m){h.set(m,[]);}),u.forEach(function(m){var g=m.getNamePath();l.forEach(function(b){b.every(function(y,w){return g[w]===y})&&h.update(b,function(y){return [].concat(ge(y),[m])});});});var v=function(g){return g.some(d)},p=h.map(function(m){var g=m.value;return g});return c?p.every(v):p.some(v)},this.isFieldTouched=function(r){return n.warningUnhooked(),n.isFieldsTouched([r])},this.isFieldsValidating=function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(tn);return o.some(function(a){var s=a.getNamePath();return Qa(i,s)&&a.isFieldValidating()})},this.isFieldValidating=function(r){return n.warningUnhooked(),n.isFieldsValidating([r])},this.resetWithFieldInitialValue=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Ei,i=n.getFieldEntities(!0);i.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 a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var h=u.getNamePath(),v=n.getInitialValue(h);if(v!==void 0)Cn(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else {var p=o.get(h);if(p&&p.size>1)Cn(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var m=n.getFieldValue(h);(!r.skipExist||m===void 0)&&n.updateStore(gr(n.store,h,ge(p)[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,ge(ge(c).map(function(d){return d.entity})));}})):s=i,a(s);},this.resetFields=function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ji(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(tn);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(gr(n.store,a,s));}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i);},this.setFields=function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=Xe(a,N2),c=tn(s);i.push(c),"value"in l&&n.updateStore(gr(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:a});}),n.notifyWatch(i);},this.getFields=function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=H(H({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o},this.initEntityValue=function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Sr(n.store,i);a===void 0&&n.updateStore(gr(n.store,i,o));}},this.isMergedPreserve=function(r){var o=r!==void 0?r:n.preserve;return o??!0},this.registerField=function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"});}return function(a,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)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(d){return !W0(d.getNamePath(),o)})){var u=n.store;n.updateStore(gr(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o);}}n.notifyWatch([o]);}},this.dispatch=function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}},this.notifyObservers=function(r,o,i){if(n.subscribable){var a=H(H({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a);});}else n.forceRootUpdate();},this.triggerDependenciesUpdate=function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(ge(i))}),i},this.updateValue=function(r,o){var i=tn(r),a=n.store;n.updateStore(gr(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var c=am(n.store,[i]);l(c,n.getFieldsValue());}n.triggerOnFieldsChange([i].concat(ge(s)));},this.setFieldsValue=function(r){n.warningUnhooked();var o=n.store;if(r){var i=ji(n.store,r);n.updateStore(i);}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch();},this.setFieldValue=function(r,o){n.setFields([{name:r,value:o}]);},this.getDependencyChildrenFields=function(r){var o=new Set,i=[],a=new Ei;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=tn(u);a.update(d,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(l),h});});});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var h=d.getNamePath();d.isFieldDirty()&&h.length&&(i.push(h),l(h));}});};return s(r),i},this.triggerOnFieldsChange=function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new Ei;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d);}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors;});}var l=a.filter(function(c){var u=c.name;return Qa(r,u)});i(l,a);}},this.validateFields=function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(tn):[],c=[];n.getFieldEntities(!0).forEach(function(h){var v;if(s||l.push(h.getNamePath()),!((v=a)===null||v===void 0)&&v.recursive&&s){var p=h.getNamePath();p.every(function(b,y){return i[y]===b||i[y]===void 0})&&l.push(p);}if(!(!h.props.rules||!h.props.rules.length)){var m=h.getNamePath();if(!s||Qa(l,m)){var g=h.validateRules(H({validateMessages:H(H({},B0),n.validateMessages)},a));c.push(g.then(function(){return {name:m,errors:[],warnings:[]}}).catch(function(b){var y,w=[],$=[];return (y=b.forEach)===null||y===void 0||y.call(b,function(S){var C=S.rule.warningOnly,x=S.errors;C?$.push.apply($,ge(x)):w.push.apply(w,ge(x));}),w.length?Promise.reject({name:m,errors:w,warnings:$}):{name:m,errors:w,warnings:$}}));}}});var u=I2(c);n.lastValidatePromise=u,u.catch(function(h){return h}).then(function(h){var v=h.map(function(p){var m=p.name;return m});n.notifyObservers(n.store,v,{type:"validateFinish"}),n.triggerOnFieldsChange(v,h);});var d=u.then(function(){return n.lastValidatePromise===u?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(h){var v=h.filter(function(p){return p&&p.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:v,outOfDate:n.lastValidatePromise!==u})});return d.catch(function(h){return h}),n.triggerOnFieldsChange(l),d},this.submit=function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r);}catch(i){console.error(i);}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r);});},this.forceRootUpdate=t;});function G0(e){var t=f__namespace.useRef(),n=f__namespace.useState({}),r=K(n,2),o=r[1];if(!t.current)if(e)t.current=e;else {var i=function(){o({});},a=new A2(i);t.current=a.getForm();}return [t.current]}var yf=f__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),D2=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=f__namespace.useContext(yf),s=f__namespace.useRef({});return f__namespace.createElement(yf.Provider,{value:H(H({},a),{},{validateMessages:H(H({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u);},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u);},registerForm:function(c,u){c&&(s.current=H(H({},s.current),{},U({},c,u))),a.registerForm(c,u);},unregisterForm:function(c){var u=H({},s.current);delete u[c],s.current=u,a.unregisterForm(c);}})},i)},k2=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],L2=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,h=t.validateTrigger,v=h===void 0?"onChange":h,p=t.onValuesChange,m=t.onFieldsChange,g=t.onFinish,b=t.onFinishFailed,y=Xe(t,k2),w=f__namespace.useContext(yf),$=G0(a),S=K($,1),C=S[0],x=C.getInternalHooks(ei),_=x.useSubscribe,M=x.setInitialValues,E=x.setCallbacks,I=x.setValidateMessages,O=x.setPreserve,R=x.destroyForm;f__namespace.useImperativeHandle(n,function(){return C}),f__namespace.useEffect(function(){return w.registerForm(r,C),function(){w.unregisterForm(r);}},[w,C,r]),I(H(H({},w.validateMessages),d)),E({onValuesChange:p,onFieldsChange:function(L){if(w.triggerFormChange(r,L),m){for(var V=arguments.length,G=new Array(V>1?V-1:0),q=1;q<V;q++)G[q-1]=arguments[q];m.apply(void 0,[L].concat(G));}},onFinish:function(L){w.triggerFormFinish(r,L),g&&g(L);},onFinishFailed:b}),O(s);var P=f__namespace.useRef(null);M(o,!P.current),P.current||(P.current=!0),f__namespace.useEffect(function(){return R},[]);var T,A=typeof l=="function";if(A){var N=C.getFieldsValue(!0);T=l(N,C);}else T=l;_(!A);var D=f__namespace.useRef();f__namespace.useEffect(function(){_2(D.current||[],i||[])||C.setFields(i||[]),D.current=i;},[i,C]);var F=f__namespace.useMemo(function(){return H(H({},C),{},{validateTrigger:v})},[C,v]),W=f__namespace.createElement(ua.Provider,{value:F},T);return u===!1?W:f__namespace.createElement(u,he({},y,{onSubmit:function(L){L.preventDefault(),L.stopPropagation(),C.submit();},onReset:function(L){var V;L.preventDefault(),C.resetFields(),(V=y.onReset)===null||V===void 0||V.call(y,L);}}),W)};function cm(e){try{return JSON.stringify(e)}catch{return Math.random()}}function F2(){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,i=t[1],a=i===void 0?{}:i,s=UR(a)?{form:a}:a,l=s.form,c=f.useState(),u=K(c,2),d=u[0],h=u[1],v=f.useMemo(function(){return cm(d)},[d]),p=f.useRef(v);p.current=v;var m=f.useContext(ua),g=l||m,b=g&&g._init,y=tn(o),w=f.useRef(y);return w.current=y,f.useEffect(function(){if(b){var $=g.getFieldsValue,S=g.getInternalHooks,C=S(ei),x=C.registerWatch,_=x(function(E,I){var O=Sr(s.preserve?I:E,w.current),R=cm(O);p.current!==R&&(p.current=R,h(O));}),M=Sr(s.preserve?$(!0):$(),w.current);return h(M),_}},[b]),d}var z2=f__namespace.forwardRef(L2),zs=z2;zs.FormProvider=D2;zs.Field=V0;zs.List=T2;zs.useForm=G0;zs.useWatch=F2;const Kr=f__namespace.createContext({}),ac=e=>{let{children:t,status:n,override:r}=e;const o=f.useContext(Kr),i=f.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return f__namespace.createElement(Kr.Provider,{value:i},t)},j2=f__namespace.createContext(void 0),H2={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 B2={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 W2={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},K0=W2,V2={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"]},B2),timePickerLocale:Object.assign({},K0)},um=V2,Hn="${label} is not a valid ${type}",U2={locale:"en",Pagination:H2,DatePicker:um,TimePicker:K0,Calendar:um,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:Hn,method:Hn,array:Hn,object:Hn,number:Hn,date:Hn,boolean:Hn,integer:Hn,float:Hn,regexp:Hn,email:Hn,url:Hn,hex:Hn},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"}},da=U2;let qu=Object.assign({},da.Modal);function dm(e){e?qu=Object.assign(Object.assign({},qu),e):qu=Object.assign({},da.Modal);}const G2=f.createContext(void 0),Bh=G2,K2=(e,t)=>{const n=f__namespace.useContext(Bh),r=f__namespace.useMemo(()=>{var i;const a=t||da[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=f__namespace.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?da.locale:i},[n]);return [r,o]},Wh=K2,X2="internalMark",q2=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f__namespace.useEffect(()=>(dm(t&&t.Modal),()=>{dm();}),[t]);const o=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(Bh.Provider,{value:o},n)},Y2=q2,Z2="5.5.2",ys=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Sn(e,t){Q2(e)&&(e="100%");var n=J2(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 dl(e){return Math.min(1,Math.max(0,e))}function Q2(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function J2(e){return typeof e=="string"&&e.indexOf("%")!==-1}function X0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function fl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ni(e){return e.length===1?"0"+e:String(e)}function eM(e,t,n){return {r:Sn(e,255)*255,g:Sn(t,255)*255,b:Sn(n,255)*255}}function fm(e,t,n){e=Sn(e,255),t=Sn(t,255),n=Sn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else {var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6;}return {h:i,s:a,l:s}}function Yu(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 tM(e,t,n){var r,o,i;if(e=Sn(e,360),t=Sn(t,100),n=Sn(n,100),t===0)o=n,i=n,r=n;else {var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Yu(s,a,e+1/3),o=Yu(s,a,e),i=Yu(s,a,e-1/3);}return {r:r*255,g:o*255,b:i*255}}function Cf(e,t,n){e=Sn(e,255),t=Sn(t,255),n=Sn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else {switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6;}return {h:i,s:l,v:a}}function nM(e,t,n){e=Sn(e,360)*6,t=Sn(t,100),n=Sn(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,a,i,i,s,n][l],u=[s,n,n,a,i,i][l],d=[i,i,s,n,n,a][l];return {r:c*255,g:u*255,b:d*255}}function Sf(e,t,n,r){var o=[ni(Math.round(e).toString(16)),ni(Math.round(t).toString(16)),ni(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 rM(e,t,n,r,o){var i=[ni(Math.round(e).toString(16)),ni(Math.round(t).toString(16)),ni(Math.round(n).toString(16)),ni(oM(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function oM(e){return Math.round(parseFloat(e)*255).toString(16)}function hm(e){return Vn(e)/255}function Vn(e){return parseInt(e,16)}function iM(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var wf={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 Li(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=lM(e)),typeof e=="object"&&(ro(e.r)&&ro(e.g)&&ro(e.b)?(t=eM(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ro(e.h)&&ro(e.s)&&ro(e.v)?(r=fl(e.s),o=fl(e.v),t=nM(e.h,r,o),a=!0,s="hsv"):ro(e.h)&&ro(e.s)&&ro(e.l)&&(r=fl(e.s),i=fl(e.l),t=tM(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=X0(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var aM="[-\\+]?\\d+%?",sM="[-\\+]?\\d*\\.\\d+%?",Io="(?:".concat(sM,")|(?:").concat(aM,")"),Zu="[\\s|\\(]+(".concat(Io,")[,|\\s]+(").concat(Io,")[,|\\s]+(").concat(Io,")\\s*\\)?"),Qu="[\\s|\\(]+(".concat(Io,")[,|\\s]+(").concat(Io,")[,|\\s]+(").concat(Io,")[,|\\s]+(").concat(Io,")\\s*\\)?"),ur={CSS_UNIT:new RegExp(Io),rgb:new RegExp("rgb"+Zu),rgba:new RegExp("rgba"+Qu),hsl:new RegExp("hsl"+Zu),hsla:new RegExp("hsla"+Qu),hsv:new RegExp("hsv"+Zu),hsva:new RegExp("hsva"+Qu),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 lM(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(wf[e])e=wf[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=ur.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ur.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ur.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ur.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ur.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ur.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ur.hex8.exec(e),n?{r:Vn(n[1]),g:Vn(n[2]),b:Vn(n[3]),a:hm(n[4]),format:t?"name":"hex8"}:(n=ur.hex6.exec(e),n?{r:Vn(n[1]),g:Vn(n[2]),b:Vn(n[3]),format:t?"name":"hex"}:(n=ur.hex4.exec(e),n?{r:Vn(n[1]+n[1]),g:Vn(n[2]+n[2]),b:Vn(n[3]+n[3]),a:hm(n[4]+n[4]),format:t?"name":"hex8"}:(n=ur.hex3.exec(e),n?{r:Vn(n[1]+n[1]),g:Vn(n[2]+n[2]),b:Vn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ro(e){return !!ur.CSS_UNIT.exec(String(e))}var nn=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=iM(t)),this.originalInput=t;var o=Li(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok;}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return !this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return (t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=X0(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=Cf(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=Cf(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=fm(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=fm(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),Sf(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),rM(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(Sn(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(Sn(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="#"+Sf(this.r,this.g,this.b,!1),n=0,r=Object.entries(wf);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return !1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return (Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=dl(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=dl(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=dl(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=dl(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return [this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),hl=2,vm=.16,cM=.05,uM=.05,dM=.15,q0=5,Y0=4,fM=[{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 pm(e){var t=e.r,n=e.g,r=e.b,o=Cf(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function vl(e){var t=e.r,n=e.g,r=e.b;return "#".concat(Sf(t,n,r,!1))}function hM(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 mm(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-hl*t:Math.round(e.h)+hl*t:r=n?Math.round(e.h)+hl*t:Math.round(e.h)-hl*t,r<0?r+=360:r>=360&&(r-=360),r}function gm(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-vm*t:t===Y0?r=e.s+vm:r=e.s+cM*t,r>1&&(r=1),n&&t===q0&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function bm(e,t,n){var r;return n?r=e.v+uM*t:r=e.v-dM*t,r>1&&(r=1),Number(r.toFixed(2))}function bo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Li(e),o=q0;o>0;o-=1){var i=pm(r),a=vl(Li({h:mm(i,o,!0),s:gm(i,o,!0),v:bm(i,o,!0)}));n.push(a);}n.push(vl(r));for(var s=1;s<=Y0;s+=1){var l=pm(r),c=vl(Li({h:mm(l,s),s:gm(l,s),v:bm(l,s)}));n.push(c);}return t.theme==="dark"?fM.map(function(u){var d=u.index,h=u.opacity,v=vl(hM(Li(t.backgroundColor||"#141414"),Li(n[d]),h*100));return v}):n}var Ju={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"},Dl={},ed={};Object.keys(Ju).forEach(function(e){Dl[e]=bo(Ju[e]),Dl[e].primary=Dl[e][5],ed[e]=bo(Ju[e],{theme:"dark",backgroundColor:"#141414"}),ed[e].primary=ed[e][5];});var vM=Dl.blue;const pM=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Z0=pM;function mM(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 Vh={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"},eu=Object.assign(Object.assign({},Vh),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",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});function Q0(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),h=n(o),v=n(i),p=n(a),m=n(s),g=r(c,u);return Object.assign(Object.assign({},g),{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:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorBgMask:new nn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const gM=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},bM=gM;function yM(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},bM(r))}const oo=(e,t)=>new nn(e).setAlpha(t).toRgbString(),_a=(e,t)=>new nn(e).darken(t).toHexString(),CM=e=>{const t=bo(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]}},SM=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:oo(r,.88),colorTextSecondary:oo(r,.65),colorTextTertiary:oo(r,.45),colorTextQuaternary:oo(r,.25),colorFill:oo(r,.15),colorFillSecondary:oo(r,.06),colorFillTertiary:oo(r,.04),colorFillQuaternary:oo(r,.02),colorBgLayout:_a(n,4),colorBgContainer:_a(n,0),colorBgElevated:_a(n,0),colorBgSpotlight:oo(r,.85),colorBorder:_a(n,15),colorBorderSecondary:_a(n,6)}};function wM(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return {size:n,lineHeight:r/n}})}const xM=e=>{const t=wM(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]}},J0=xM;function tu(e){const t=Object.keys(Vh).map(n=>{const r=bo(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Q0(e,{generateColorPalettes:CM,generateNeutralColorPalettes:SM})),J0(e.fontSize)),mM(e)),Z0(e)),yM(e))}function td(e){return e>=0&&e<=255}function pl(e,t){const{r:n,g:r,b:o,a:i}=new nn(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new nn(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),h=Math.round((o-l*(1-c))/c);if(td(u)&&td(d)&&td(h))return new nn({r:u,g:d,b:h,a:Math.round(c*100)/100}).toRgbString()}return new nn({r:n,g:r,b:o,a:1}).toRgbString()}var $M=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function EM(e){const{override:t}=e,n=$M(e,["override"]),r=Object.assign({},t);Object.keys(eu).forEach(h=>{delete r[h];});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const h="0s";o.motionDurationFast=h,o.motionDurationMid=h,o.motionDurationSlow=h;}return Object.assign(Object.assign(Object.assign({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:pl(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:pl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:pl(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:pl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new nn("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new nn("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new nn("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}const ey="anticon",OM=(e,t)=>t||(e?`ant-${e}`:"ant"),mt=f__namespace.createContext({getPrefixCls:OM,iconPrefixCls:ey}),PM=(e,t,n,r,o)=>{const i=e/2,a=0,s=i,l=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),u=i-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),h=2*i-u,v=d,p=2*i-l,m=c,g=2*i-a,b=s,y=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),w=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(${w}px 100%, 50% ${w}px, ${2*i-w}px 100%, ${w}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${h} ${v} L ${p} ${m} A ${n} ${n} 0 0 0 ${g} ${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"}}},Ki={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Jt=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),js=()=>({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"}}),_M=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),RM=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,
  &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),MM=(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"}}}}},nu=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Uh=e=>({"&:focus-visible":Object.assign({},nu(e))});function mn(e,t,n,r){return o=>{const[i,a,s]=bi(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=f.useContext(mt),d=l(),h={theme:i,token:a,hashId:s,nonce:()=>u==null?void 0:u.nonce};return sf(Object.assign(Object.assign({},h),{path:["Shared",d]}),()=>[{"&":RM(a)}]),[sf(Object.assign(Object.assign({},h),{path:[e,o,c]}),()=>{const{token:v,flush:p}=IM(a),m=a[e],g=typeof n=="function"?n(At(v,m??{})):n,b=Object.assign(Object.assign({},g),m),y=`.${o}`,w=At(v,{componentCls:y,prefixCls:o,iconCls:`.${c}`,antCls:`.${d}`},b),$=t(w,{hashId:s,prefixCls:o,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:a[e]});return p(e,b),[(r==null?void 0:r.resetStyle)===!1?null:MM(a,o),$]}),s]}}const ty=typeof CSSINJS_STATISTIC<"u";let xf=!0;function At(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ty)return Object.assign.apply(Object,[{}].concat(t));xf=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]});});}),xf=!0,r}function TM(){}function IM(e){let t,n=e,r=TM;return ty&&(t=new Set,n=new Proxy(e,{get(o,i){return xf&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t);}),{token:n,keys:t,flush:r}}function ny(e,t){return ys.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const NM=F0(tu),sc={token:eu,hashed:!0},ry=f.createContext(sc);function bi(){const{token:e,hashed:t,theme:n,components:r}=f.useContext(ry),o=`${Z2}-${t||""}`,i=n||NM,[a,s]=NR(i,[eu,e],{salt:o,override:Object.assign({override:e},r),formatToken:EM});return [i,a,t?s:""]}const AM=`-ant-${Date.now()}-${Math.random()}`;function DM(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new nn(a),c=bo(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2];};if(t.primaryColor){o(t.primaryColor,"primary");const a=new nn(t.primaryColor),s=bo(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new nn(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2));}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
  :root {
    ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
`)}
  }
  `.trim()}function kM(e,t){const n=DM(e,t);Mn()&&ca(n,`${AM}-dynamic-theme`);}const $f=f__namespace.createContext(!1),LM=e=>{let{children:t,disabled:n}=e;const r=f__namespace.useContext($f);return f__namespace.createElement($f.Provider,{value:n??r},t)},Bo=$f,FM=e=>{const t=f.useContext(ru);return f.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Or=FM,oy=f__namespace.createContext(void 0),zM=e=>{let{children:t,size:n}=e;const r=Or(n);return f__namespace.createElement(oy.Provider,{value:r},t)},ru=oy;function jM(){const e=f.useContext(Bo),t=f.useContext(ru);return {componentDisabled:e,componentSize:t}}function HM(e,t){const n=e||{},r=n.inherit===!1||!t?sc:t;return Ds(()=>{if(!e)return t;const i=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{i[a]=Object.assign(Object.assign({},i[a]),e.components[a]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:i})},[n,r],(i,a)=>i.some((s,l)=>{const c=a[l];return !Ls(s,c,!0)}))}var BM=["children"],iy=f__namespace.createContext({});function WM(e){var t=e.children,n=Xe(e,BM);return f__namespace.createElement(iy.Provider,{value:n},t)}var VM=function(e){zo(n,e);var t=jo(n);function n(){return vn(this,n),t.apply(this,arguments)}return pn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component);function Ao(e){var t=f__namespace.useRef(!1),n=f__namespace.useState(e),r=K(n,2),o=r[0],i=r[1];f__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function a(s,l){l&&t.current||i(s);}return [o,a]}var Zo="none",ml="appear",gl="enter",bl="leave",ym="none",br="prepare",Hi="start",Bi="active",Gh="end",ay="prepared";function Cm(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 UM(e,t){var n={animationend:Cm("Animation","AnimationEnd"),transitionend:Cm("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var GM=UM(Mn(),typeof window<"u"?window:{}),sy={};if(Mn()){var KM=document.createElement("div");sy=KM.style;}var yl={};function ly(e){if(yl[e])return yl[e];var t=GM[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in sy)return yl[e]=t[i],yl[e]}return ""}var cy=ly("animationend"),uy=ly("transitionend"),dy=!!(cy&&uy),Sm=cy||"animationend",wm=uy||"transitionend";function xm(e,t){if(!e)return null;if(tt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const XM=function(e){var t=f.useRef(),n=f.useRef(e);n.current=e;var r=f__namespace.useCallback(function(a){n.current(a);},[]);function o(a){a&&(a.removeEventListener(wm,r),a.removeEventListener(Sm,r));}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(wm,r),a.addEventListener(Sm,r),t.current=a);}return f__namespace.useEffect(function(){return function(){o(t.current);}},[]),[i,o]};var fy=Mn()?f.useLayoutEffect:f.useEffect;const qM=function(){var e=f__namespace.useRef(null);function t(){wt.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=wt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1);});e.current=i;}return f__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var YM=[br,Hi,Bi,Gh],ZM=[br,ay],hy=!1,QM=!0;function vy(e){return e===Bi||e===Gh}const JM=function(e,t,n){var r=Ao(ym),o=K(r,2),i=o[0],a=o[1],s=qM(),l=K(s,2),c=l[0],u=l[1];function d(){a(br,!0);}var h=t?ZM:YM;return fy(function(){if(i!==ym&&i!==Gh){var v=h.indexOf(i),p=h[v+1],m=n(i);m===hy?a(p,!0):p&&c(function(g){function b(){g.isCanceled()||a(p,!0);}m===!0?b():Promise.resolve(m).then(b);});}},[e,i]),f__namespace.useEffect(function(){return function(){u();}},[]),[d,i]};function eT(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,h=r.onAppearPrepare,v=r.onEnterPrepare,p=r.onLeavePrepare,m=r.onAppearStart,g=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,w=r.onEnterActive,$=r.onLeaveActive,S=r.onAppearEnd,C=r.onEnterEnd,x=r.onLeaveEnd,_=r.onVisibleChanged,M=Ao(),E=K(M,2),I=E[0],O=E[1],R=Ao(Zo),P=K(R,2),T=P[0],A=P[1],N=Ao(null),D=K(N,2),F=D[0],W=D[1],z=f.useRef(!1),L=f.useRef(null);function V(){return n()}var G=f.useRef(!1);function q(){A(Zo,!0),W(null,!0);}function ne(pe){var ue=V();if(!(pe&&!pe.deadline&&pe.target!==ue)){var ye=G.current,Ie;T===ml&&ye?Ie=S==null?void 0:S(ue,pe):T===gl&&ye?Ie=C==null?void 0:C(ue,pe):T===bl&&ye&&(Ie=x==null?void 0:x(ue,pe)),T!==Zo&&ye&&Ie!==!1&&q();}}var Z=XM(ne),Y=K(Z,1),te=Y[0],re=function(ue){var ye,Ie,De;switch(ue){case ml:return ye={},U(ye,br,h),U(ye,Hi,m),U(ye,Bi,y),ye;case gl:return Ie={},U(Ie,br,v),U(Ie,Hi,g),U(Ie,Bi,w),Ie;case bl:return De={},U(De,br,p),U(De,Hi,b),U(De,Bi,$),De;default:return {}}},se=f__namespace.useMemo(function(){return re(T)},[T]),de=JM(T,!e,function(pe){if(pe===br){var ue=se[br];return ue?ue(V()):hy}if(ce in se){var ye;W(((ye=se[ce])===null||ye===void 0?void 0:ye.call(se,V(),null))||null);}return ce===Bi&&(te(V()),u>0&&(clearTimeout(L.current),L.current=setTimeout(function(){ne({deadline:!0});},u))),ce===ay&&q(),QM}),ee=K(de,2),ie=ee[0],ce=ee[1],le=vy(ce);G.current=le,fy(function(){O(t);var pe=z.current;z.current=!0;var ue;!pe&&t&&s&&(ue=ml),pe&&t&&i&&(ue=gl),(pe&&!t&&c||!pe&&d&&!t&&c)&&(ue=bl);var ye=re(ue);ue&&(e||ye[br])?(A(ue),ie()):A(Zo);},[t]),f.useEffect(function(){(T===ml&&!s||T===gl&&!i||T===bl&&!c)&&A(Zo);},[s,i,c]),f.useEffect(function(){return function(){z.current=!1,clearTimeout(L.current);}},[]);var ve=f__namespace.useRef(!1);f.useEffect(function(){I&&(ve.current=!0),I!==void 0&&T===Zo&&((ve.current||I)&&(_==null||_(I)),ve.current=!0);},[I,T]);var oe=F;return se[br]&&ce===Hi&&(oe=H({transition:"none"},oe)),[T,ce,oe,I??t]}function tT(e){var t=e;tt(e)==="object"&&(t=e.transitionSupport);function n(o,i){return !!(o.motionName&&t&&i!==!1)}var r=f__namespace.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,h=o.motionName,v=o.leavedClassName,p=o.eventProps,m=f__namespace.useContext(iy),g=m.motion,b=n(o,g),y=f.useRef(),w=f.useRef();function $(){try{return y.current instanceof HTMLElement?y.current:gs(w.current)}catch{return null}}var S=eT(b,s,$,o),C=K(S,4),x=C[0],_=C[1],M=C[2],E=C[3],I=f__namespace.useRef(E);E&&(I.current=!0);var O=f__namespace.useCallback(function(W){y.current=W,Ah(i,W);},[i]),R,P=H(H({},p),{},{visible:s});if(!d)R=null;else if(x===Zo)E?R=d(H({},P),O):!c&&I.current&&v?R=d(H(H({},P),{},{className:v}),O):u||!c&&!v?R=d(H(H({},P),{},{style:{display:"none"}}),O):R=null;else {var T,A;_===br?A="prepare":vy(_)?A="active":_===Hi&&(A="start");var N=xm(h,"".concat(x,"-").concat(A));R=d(H(H({},P),{},{className:X(xm(h,x),(T={},U(T,N,N&&A),U(T,h,typeof h=="string"),T)),style:M}),O);}if(f__namespace.isValidElement(R)&&Ho(R)){var D=R,F=D.ref;F||(R=f__namespace.cloneElement(R,{ref:O}));}return f__namespace.createElement(VM,{ref:w},R)});return r.displayName="CSSMotion",r}const Pr=tT(dy);var Ef="add",Of="keep",Pf="remove",nd="removed";function nT(e){var t;return e&&tt(e)==="object"&&"key"in e?t=e:t={key:e},H(H({},t),{},{key:String(t.key)})}function _f(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(nT)}function rT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=_f(e),a=_f(t);i.forEach(function(c){for(var u=!1,d=r;d<o;d+=1){var h=a[d];if(h.key===c.key){r<d&&(n=n.concat(a.slice(r,d).map(function(v){return H(H({},v),{},{status:Ef})})),r=d),n.push(H(H({},h),{},{status:Of})),r+=1,u=!0;break}}u||n.push(H(H({},c),{},{status:Pf}));}),r<o&&(n=n.concat(a.slice(r).map(function(c){return H(H({},c),{},{status:Ef})})));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,h=u.status;return d!==c||h!==Pf}),n.forEach(function(u){u.key===c&&(u.status=Of);});}),n}var oT=["component","children","onVisibleChanged","onAllRemoved"],iT=["status"],aT=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pr,n=function(r){zo(i,r);var o=jo(i);function i(){var a;vn(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),U(ut(a),"state",{keyEntities:[]}),U(ut(a),"removeKey",function(u){var d=a.state.keyEntities,h=d.map(function(v){return v.key!==u?v:H(H({},v),{},{status:nd})});return a.setState({keyEntities:h}),h.filter(function(v){var p=v.status;return p!==nd}).length}),a}return pn(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,h=c.onVisibleChanged,v=c.onAllRemoved,p=Xe(c,oT),m=u||f__namespace.Fragment,g={};return aT.forEach(function(b){g[b]=p[b],delete p[b];}),delete p.keys,f__namespace.createElement(m,p,l.map(function(b){var y=b.status,w=Xe(b,iT),$=y===Ef||y===Of;return f__namespace.createElement(t,he({},g,{key:w.key,visible:$,eventProps:w,onVisibleChanged:function(C){if(h==null||h(C,{key:w.key}),!C){var x=s.removeKey(w.key);x===0&&v&&v();}}}),d)}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=_f(c),h=rT(u,d);return {keyEntities:h.filter(function(v){var p=u.find(function(m){var g=m.key;return v.key===g});return !(p&&p.status===nd&&v.status===Pf)})}}}]),i}(f__namespace.Component);return U(n,"defaultProps",{component:"div"}),n}sT(dy);function lT(e){const{children:t}=e,[,n]=bi(),{motion:r}=n,o=f__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?f__namespace.createElement(WM,{motion:r},t):t}const cT=(e,t)=>{const[n,r]=bi();return sf({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},js()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},uT=cT;var dT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const fT=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select"],hT="ant";let py;function vT(){return py||hT}const pT=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(py=t),r&&kM(vT(),r);},mT=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,form:o,locale:i,componentSize:a,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,popupMatchSelectWidth:d,popupOverflow:h,legacyLocale:v,parentContext:p,iconPrefixCls:m,theme:g,componentDisabled:b}=e,y=f__namespace.useCallback((T,A)=>{const{prefixCls:N}=e;if(A)return A;const D=N||p.getPrefixCls("");return T?`${D}-${T}`:D},[p.getPrefixCls,e.prefixCls]),w=m||p.iconPrefixCls||ey,$=w!==p.iconPrefixCls,S=n||p.csp,C=uT(w,S),x=HM(g,p.theme),_={csp:S,autoInsertSpaceInButton:r,locale:i||v,direction:s,space:l,virtual:c,popupMatchSelectWidth:d??u,popupOverflow:h,getPrefixCls:y,iconPrefixCls:w,theme:x},M=Object.assign({},p);Object.keys(_).forEach(T=>{_[T]!==void 0&&(M[T]=_[T]);}),fT.forEach(T=>{const A=e[T];A&&(M[T]=A);});const E=Ds(()=>M,M,(T,A)=>{const N=Object.keys(T),D=Object.keys(A);return N.length!==D.length||N.some(F=>T[F]!==A[F])}),I=f__namespace.useMemo(()=>({prefixCls:w,csp:S}),[w,S]);let O=$?C(t):t;const R=f__namespace.useMemo(()=>{var T,A,N;return ji(((T=da.Form)===null||T===void 0?void 0:T.defaultValidateMessages)||{},((N=(A=E.locale)===null||A===void 0?void 0:A.Form)===null||N===void 0?void 0:N.defaultValidateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[E,o==null?void 0:o.validateMessages]);Object.keys(R).length>0&&(O=f__namespace.createElement(j2.Provider,{value:R},t)),i&&(O=f__namespace.createElement(Y2,{locale:i,_ANT_MARK__:X2},O)),(w||S)&&(O=f__namespace.createElement(jh.Provider,{value:I},O)),a&&(O=f__namespace.createElement(zM,{size:a},O)),O=f__namespace.createElement(lT,null,O);const P=f__namespace.useMemo(()=>{const T=x||{},{algorithm:A,token:N}=T,D=dT(T,["algorithm","token"]),F=A&&(!Array.isArray(A)||A.length>0)?F0(A):void 0;return Object.assign(Object.assign({},D),{theme:F,token:Object.assign(Object.assign({},eu),N)})},[x]);return g&&(O=f__namespace.createElement(ry.Provider,{value:P},O)),b!==void 0&&(O=f__namespace.createElement(LM,{disabled:b},O)),f__namespace.createElement(mt.Provider,{value:E},O)},ya=e=>{const t=f__namespace.useContext(mt),n=f__namespace.useContext(Bh);return f__namespace.createElement(mT,Object.assign({parentContext:t,legacyLocale:n},e))};ya.ConfigContext=mt;ya.SizeContext=ru;ya.config=pT;ya.useConfig=jM;Object.defineProperty(ya,"SizeContext",{get:()=>ru});const Kh=ya;function my(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function gT(e){return my(e)!==(e==null?void 0:e.ownerDocument)}function bT(e){return gT(e)?my(e):null}function yT(e,t){Cn(e,"[@ant-design/icons] ".concat(t));}function $m(e){return tt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(tt(e.icon)==="object"||typeof e.icon=="function")}function Em(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r;}return t},{})}function Rf(e,t,n){return n?f.createElement(e.tag,H(H({key:t},Em(e.attrs)),n),(e.children||[]).map(function(r,o){return Rf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):f.createElement(e.tag,H({key:t},Em(e.attrs)),(e.children||[]).map(function(r,o){return Rf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function gy(e){return bo(e)[0]}function by(e){return e?Array.isArray(e)?e:[e]:[]}var CT=`
.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);
  }
}
`,ST=function(t){var n=f.useContext(jh),r=n.csp,o=n.prefixCls,i=CT;o&&(i=i.replace(/anticon/g,o)),f.useEffect(function(){var a=t.current,s=bT(a);ca(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},wT=["icon","className","onClick","style","primaryColor","secondaryColor"],Ja={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function xT(e){var t=e.primaryColor,n=e.secondaryColor;Ja.primaryColor=t,Ja.secondaryColor=n||gy(t),Ja.calculated=!!n;}function $T(){return H({},Ja)}var ou=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Xe(t,wT),c=f__namespace.useRef(),u=Ja;if(a&&(u={primaryColor:a,secondaryColor:s||gy(a)}),ST(c),yT($m(n),"icon should be icon definiton, but got ".concat(n)),!$m(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=H(H({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Rf(d.icon,"svg-".concat(d.name),H(H({className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};ou.displayName="IconReact";ou.getTwoToneColors=$T;ou.setTwoToneColors=xT;const Xh=ou;function yy(e){var t=by(e),n=K(t,2),r=n[0],o=n[1];return Xh.setTwoToneColors({primaryColor:r,secondaryColor:o})}function ET(){var e=Xh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var OT=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];yy(vM.primary);var iu=f__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Xe(e,OT),d=f__namespace.useContext(jh),h=d.prefixCls,v=h===void 0?"anticon":h,p=d.rootClassName,m=X(p,v,(n={},U(n,"".concat(v,"-").concat(o.name),!!o.name),U(n,"".concat(v,"-spin"),!!i||o.name==="loading"),n),r),g=s;g===void 0&&l&&(g=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=by(c),w=K(y,2),$=w[0],S=w[1];return f__namespace.createElement("span",he({role:"img","aria-label":o.name},u,{ref:t,tabIndex:g,onClick:l,className:m}),f__namespace.createElement(Xh,{icon:o,primaryColor:$,secondaryColor:S,style:b}))});iu.displayName="AntdIcon";iu.getTwoToneColor=ET;iu.setTwoToneColor=yy;const Qn=iu;var PT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};const _T=PT;var RT=function(t,n){return f__namespace.createElement(Qn,he({},t,{ref:n,icon:_T}))};const qh=f__namespace.forwardRef(RT);var MT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const TT=MT;var IT=function(t,n){return f__namespace.createElement(Qn,he({},t,{ref:n,icon:TT}))};const Yh=f__namespace.forwardRef(IT);var NT={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 AT=NT;var DT=function(t,n){return f__namespace.createElement(Qn,he({},t,{ref:n,icon:AT}))};const Cy=f__namespace.forwardRef(DT);function kT(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-")||n==="role")&&!n.startsWith("data-__")&&(t[n]=e[n]),t),{})}const{isValidElement:Zh}=f__namespace;function Sy(e){return e&&Zh(e)&&e.type===f__namespace.Fragment}function LT(e,t,n){return Zh(e)?f__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function $r(e,t){return LT(e,e,t)}function yr(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}var J={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>=J.F1&&n<=J.F12)return !1;switch(n){case J.ALT:case J.CAPS_LOCK:case J.CONTEXT_MENU:case J.CTRL:case J.DOWN:case J.END:case J.ESC:case J.HOME:case J.INSERT:case J.LEFT:case J.MAC_FF_META:case J.META:case J.NUMLOCK:case J.NUM_CENTER:case J.PAGE_DOWN:case J.PAGE_UP:case J.PAUSE:case J.PRINT_SCREEN:case J.RIGHT:case J.SHIFT:case J.UP:case J.WIN_KEY:case J.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=J.ZERO&&t<=J.NINE||t>=J.NUM_ZERO&&t<=J.NUM_MULTIPLY||t>=J.A&&t<=J.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case J.SPACE:case J.QUESTION_MARK:case J.NUM_PLUS:case J.NUM_MINUS:case J.NUM_PERIOD:case J.NUM_DIVISION:case J.SEMICOLON:case J.DASH:case J.EQUALS:case J.COMMA:case J.PERIOD:case J.SLASH:case J.APOSTROPHE:case J.SINGLE_QUOTE:case J.OPEN_SQUARE_BRACKET:case J.BACKSLASH:case J.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},FT={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 zT=FT;var jT=function(t,n){return f__namespace.createElement(Qn,he({},t,{ref:n,icon:zT}))};const wy=f__namespace.forwardRef(jT);var Hs=H({},ra__namespace),HT=Hs.version,BT=Hs.render,WT=Hs.unmountComponentAtNode,au;try{var VT=Number((HT||"").split(".")[0]);VT>=18&&(au=Hs.createRoot);}catch{}function Om(e){var t=Hs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&tt(t)==="object"&&(t.usingClientEntryPoint=e);}var lc="__rc_react_root__";function UT(e,t){Om(!0);var n=t[lc]||au(t);Om(!1),n.render(e),t[lc]=n;}function GT(e,t){BT(e,t);}function KT(e,t){if(au){UT(e,t);return}GT(e,t);}function XT(e){return Mf.apply(this,arguments)}function Mf(){return Mf=gi(Tn().mark(function e(t){return Tn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[lc])===null||o===void 0||o.unmount(),delete t[lc];}));case 1:case"end":return r.stop()}},e)})),Mf.apply(this,arguments)}function qT(e){WT(e);}function YT(e){return Tf.apply(this,arguments)}function Tf(){return Tf=gi(Tn().mark(function e(t){return Tn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(au===void 0){r.next=2;break}return r.abrupt("return",XT(t));case 2:qT(t);case 3:case"end":return r.stop()}},e)})),Tf.apply(this,arguments)}const su=function(e){if(!e)return !1;if(e instanceof Element){if(e.offsetParent)return !0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return !0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return !0}}return !1},ZT=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}}}}},QT=mn("Wave",e=>[ZT(e)]);function JT(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 rd(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&JT(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function eI(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return rd(t)?t:rd(n)?n:rd(r)?r:null}function od(e){return Number.isNaN(e)?0:e}const tI=e=>{const{className:t,target:n}=e,r=f__namespace.useRef(null),[o,i]=f__namespace.useState(null),[a,s]=f__namespace.useState([]),[l,c]=f__namespace.useState(0),[u,d]=f__namespace.useState(0),[h,v]=f__namespace.useState(0),[p,m]=f__namespace.useState(0),[g,b]=f__namespace.useState(!1),y={left:l,top:u,width:h,height:p,borderRadius:a.map($=>`${$}px`).join(" ")};o&&(y["--wave-color"]=o);function w(){const $=getComputedStyle(n);i(eI(n));const S=$.position==="static",{borderLeftWidth:C,borderTopWidth:x}=$;c(S?n.offsetLeft:od(-parseFloat(C))),d(S?n.offsetTop:od(-parseFloat(x))),v(n.offsetWidth),m(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:M,borderBottomLeftRadius:E,borderBottomRightRadius:I}=$;s([_,M,I,E].map(O=>od(parseFloat(O))));}return f__namespace.useEffect(()=>{if(n){const $=wt(()=>{w(),b(!0);});let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(w),S.observe(n)),()=>{wt.cancel($),S==null||S.disconnect();}}},[]),g?f__namespace.createElement(Pr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,S)=>{var C;if(S.deadline||S.propertyName==="opacity"){const x=(C=r.current)===null||C===void 0?void 0:C.parentElement;YT(x).then(()=>{x==null||x.remove();});}return !1}},$=>{let{className:S}=$;return f__namespace.createElement("div",{ref:r,className:X(t,S),style:y})}):null};function nI(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),KT(f__namespace.createElement(tI,{target:e,className:t}),n);}function rI(e,t){function n(){const r=e.current;nI(r,t);}return n}const oI=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=f.useContext(mt),o=f.useRef(null),i=r("wave"),[,a]=QT(i),s=rI(o,X(i,a));if(f.useEffect(()=>{const c=o.current;if(!c||c.nodeType!==1||n)return;const u=d=>{d.target.tagName==="INPUT"||!su(d.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s();};return c.addEventListener("click",u,!0),()=>{c.removeEventListener("click",u,!0);}},[n]),!f.isValidElement(t))return t??null;const l=Ho(t)?Pn(t.ref,o):o;return $r(t,{ref:l})},xy=oI,iI=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},aI=iI,sI=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"}}}},$y=mn("Space",e=>[sI(e),aI(e)],()=>({}),{resetStyle:!1});var Ey=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lu=f__namespace.createContext(null),Bs=(e,t)=>{const n=f__namespace.useContext(lu),r=f__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return X({[`${e}-compact${s}item`]:!0,[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return {compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Cs=e=>{let{children:t}=e;return f__namespace.createElement(lu.Provider,{value:null},t)},lI=e=>{var{children:t}=e,n=Ey(e,["children"]);return f__namespace.createElement(lu.Provider,{value:n},t)},cI=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(mt),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=Ey(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Or(w=>{var $;return ($=r??w)!==null&&$!==void 0?$:"middle"}),h=t("space-compact",a),[v,p]=$y(h),m=X(h,p,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:i,[`${h}-vertical`]:o==="vertical"},s,l),g=f__namespace.useContext(lu),b=wr(c),y=f__namespace.useMemo(()=>b.map((w,$)=>{const S=w&&w.key||`${h}-item-${$}`;return f__namespace.createElement(lI,{key:S,compactSize:d,compactDirection:o,isFirstItem:$===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:$===b.length-1&&(!g||(g==null?void 0:g.isLastItem))},w)}),[r,b,g]);return b.length===0?null:v(f__namespace.createElement("div",Object.assign({className:m},u),y))},uI=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=X(`${i}-icon`,n);return f.createElement("span",{ref:t,className:a,style:r},o)}),Oy=uI,Pm=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=X(`${n}-loading-icon`,r);return f.createElement(Oy,{prefixCls:n,className:a,style:o,ref:t},f.createElement(wy,{className:i}))}),id=()=>({width:0,opacity:0,transform:"scale(0)"}),ad=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),dI=e=>{let{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e;const a=!!n;return r?f.createElement(Pm,{prefixCls:t,className:o,style:i}):f.createElement(Pr,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:id,onAppearActive:ad,onEnterStart:id,onEnterActive:ad,onLeaveStart:ad,onLeaveActive:id},(s,l)=>{let{className:c,style:u}=s;return f.createElement(Pm,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:l,iconClassName:c})})},fI=dI;var hI=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Py=f__namespace.createContext(void 0),vI=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(mt),{prefixCls:r,size:o,className:i}=e,a=hI(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=bi();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=X(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return f__namespace.createElement(Py.Provider,{value:o},f__namespace.createElement("div",Object.assign({},a,{className:u})))},pI=vI,_m=/^[\u4e00-\u9fa5]{2}$/,If=_m.test.bind(_m);function mI(e){return typeof e=="string"}function sd(e){return e==="text"||e==="link"}function gI(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&mI(e.type)&&If(e.props.children)?$r(e,{children:e.props.children.split("").join(n)}):typeof e=="string"?If(e)?f.createElement("span",null,e.split("").join(n)):f.createElement("span",null,e):Sy(e)?f.createElement("span",null,e):e}function bI(e,t){let n=!1;const r=[];return f.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`;}else r.push(o);n=a;}),f.Children.map(r,o=>gI(o,t))}function yI(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function CI(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 cu(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({},yI(e,r,t)),CI(n,r,t))}}function SI(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function wI(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 xI(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},SI(e,t)),wI(e.componentCls,t))}}const Rm=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),$I=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover,
          &:focus,
          &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Rm(`${t}-primary`,o),Rm(`${t}-danger`,i)]}},EI=$I,OI=e=>{const{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> 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({},Uh(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},yo=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),PI=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),_I=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Nf=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),cc=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},yo(Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),Qh=e=>({"&:disabled":Object.assign({},Nf(e))}),_y=e=>Object.assign({},Qh(e)),uc=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Ry=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_y(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),yo({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),cc(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},yo({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),cc(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Qh(e))}),RI=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_y(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),yo({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),cc(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},yo({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),cc(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Qh(e))}),MI=e=>Object.assign(Object.assign({},Ry(e)),{borderStyle:"dashed"}),TI=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},yo({color:e.colorLinkHover},{color:e.colorLinkActive})),uc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},yo({color:e.colorErrorHover},{color:e.colorErrorActive})),uc(e))}),II=e=>Object.assign(Object.assign(Object.assign({},yo({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),uc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},uc(e)),yo({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),NI=e=>Object.assign(Object.assign({},Nf(e)),{[`&${e.componentCls}:hover`]:Object.assign({},Nf(e))}),AI=e=>{const{componentCls:t}=e;return {[`${t}-default`]:Ry(e),[`${t}-primary`]:RI(e),[`${t}-dashed`]:MI(e),[`${t}-link`]:TI(e),[`${t}-text`]:II(e),[`${t}-disabled`]:NI(e)}},Jh=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e,u=Math.max(0,(r-o*i)/2-a),d=l-a,h=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${u}px ${d}px`,borderRadius:s,[`&${h}`]:{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}`]:PI(e)},{[`${n}${n}-round${t}`]:_I(e)}]},DI=e=>Jh(e),kI=e=>{const t=At(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return Jh(t,`${e.componentCls}-sm`)},LI=e=>{const t=At(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return Jh(t,`${e.componentCls}-lg`)},FI=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},zI=mn("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=At(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return [OI(r),kI(r),DI(r),LI(r),FI(r),AI(r),EI(r),cu(e),xI(e)]});var jI=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function My(e){return e==="danger"?{danger:!0}:{type:e}}function HI(e){if(typeof e=="object"&&e){const t=e==null?void 0:e.delay;return {loading:!1,delay:!Number.isNaN(t)&&typeof t=="number"?t:0}}return {loading:!!e,delay:0}}const BI=(e,t)=>{const{loading:n=!1,prefixCls:r,type:o="default",danger:i,shape:a="default",size:s,styles:l,disabled:c,className:u,rootClassName:d,children:h,icon:v,ghost:p=!1,block:m=!1,htmlType:g="button",classNames:b}=e,y=jI(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames"]),{getPrefixCls:w,autoInsertSpaceInButton:$,direction:S}=f.useContext(mt),C=w("btn",r),[x,_]=zI(C),M=f.useContext(Bo),E=c??M,I=f.useContext(Py),O=f.useMemo(()=>HI(n),[n]),[R,P]=f.useState(O.loading),[T,A]=f.useState(!1),D=Pn(t,f.createRef()),F=f.Children.count(h)===1&&!v&&!sd(o);f.useEffect(()=>{let ie=null;O.delay>0?ie=setTimeout(()=>{ie=null,P(!0);},O.delay):P(O.loading);function ce(){ie&&(clearTimeout(ie),ie=null);}return ce},[O]),f.useEffect(()=>{if(!D||!D.current||$===!1)return;const ie=D.current.textContent;F&&If(ie)?T||A(!0):T&&A(!1);},[D]);const W=ie=>{const{onClick:ce}=e;if(R||E){ie.preventDefault();return}ce==null||ce(ie);},z=$!==!1,{compactSize:L,compactItemClassnames:V}=Bs(C,S),G={large:"lg",small:"sm",middle:void 0},q=Or(ie=>{var ce,le;return (le=(ce=L??I)!==null&&ce!==void 0?ce:s)!==null&&le!==void 0?le:ie}),ne=q&&G[q]||"",Z=R?"loading":v,Y=xr(y,["navigate"]),te=Y.href!==void 0&&E,re=X(C,_,{[`${C}-${a}`]:a!=="default"&&a,[`${C}-${o}`]:o,[`${C}-${ne}`]:ne,[`${C}-icon-only`]:!h&&h!==0&&!!Z,[`${C}-background-ghost`]:p&&!sd(o),[`${C}-loading`]:R,[`${C}-two-chinese-chars`]:T&&z&&!R,[`${C}-block`]:m,[`${C}-dangerous`]:!!i,[`${C}-rtl`]:S==="rtl",[`${C}-disabled`]:te},V,u,d),se=v&&!R?f.createElement(Oy,{prefixCls:C,className:b==null?void 0:b.icon,style:l==null?void 0:l.icon},v):f.createElement(fI,{existIcon:!!v,prefixCls:C,loading:!!R}),de=h||h===0?bI(h,F&&z):null;if(Y.href!==void 0)return x(f.createElement("a",Object.assign({},Y,{className:re,onClick:W,ref:D}),se,de));let ee=f.createElement("button",Object.assign({},y,{type:g,className:re,onClick:W,disabled:E,ref:D}),se,de);return sd(o)||(ee=f.createElement(xy,{disabled:!!R},ee)),x(ee)},ev=f.forwardRef(BI);ev.Group=pI;ev.__ANT_BUTTON=!0;const Dn=ev;function Mm(e){return !!(e&&e.then)}const WI=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,quitOnNullishReturnValue:l,actionFn:c}=e,u=f__namespace.useRef(!1),d=f__namespace.useRef(null),[h,v]=Ao(!1),p=function(){i==null||i.apply(void 0,arguments);};f__namespace.useEffect(()=>{let b=null;return a&&(b=setTimeout(()=>{var y;(y=d.current)===null||y===void 0||y.focus();})),()=>{b&&clearTimeout(b);}},[]);const m=b=>{Mm(b)&&(v(!0),b.then(function(){v(!1,!0),p.apply(void 0,arguments),u.current=!1;},y=>(v(!1,!0),u.current=!1,Promise.reject(y))));},g=b=>{if(u.current)return;if(u.current=!0,!c){p();return}let y;if(s){if(y=c(b),l&&!Mm(y)){u.current=!1,p(b);return}}else if(c.length)y=c(i),u.current=!1;else if(y=c(),!y){p();return}m(y);};return f__namespace.createElement(Dn,Object.assign({},My(t),{onClick:g,loading:h,prefixCls:r},o,{ref:d}),n)},VI=WI,ld=()=>({height:0,opacity:0}),Tm=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},UI=e=>({height:e?e.offsetHeight:0}),cd=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",GI=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:ld,onEnterStart:ld,onAppearActive:Tm,onEnterActive:Tm,onLeaveStart:UI,onLeaveActive:ld,onAppearEnd:cd,onEnterEnd:cd,onLeaveEnd:cd,motionDeadline:500}},KI=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",uu=(e,t,n)=>n!==void 0?n:`${e}-${t}`;var Ty=f__namespace.createContext(null),Ht=Mn()?f__namespace.useLayoutEffect:f__namespace.useEffect,Xi=function(t,n){var r=f__namespace.useRef(!0);Ht(function(){if(!r.current)return t()},n),Ht(function(){return r.current=!1,function(){r.current=!0;}},[]);},Im=[];function XI(e,t){var n=f__namespace.useState(function(){if(!Mn())return null;var p=document.createElement("div");return p}),r=K(n,1),o=r[0],i=f__namespace.useRef(!1),a=f__namespace.useContext(Ty),s=f__namespace.useState(Im),l=K(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(p){u(function(m){var g=[p].concat(ge(m));return g});});function h(){o.parentElement||document.body.appendChild(o),i.current=!0;}function v(){var p;(p=o.parentElement)===null||p===void 0||p.removeChild(o),i.current=!1;}return Ht(function(){return e?a?a(h):h():v(),v},[e]),Ht(function(){c.length&&(c.forEach(function(p){return p()}),u(Im));},[c]),[o,d]}var ud;function qI(e){if(typeof document>"u")return 0;if(e||ud===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),ud=o-i;}return ud}function YI(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var ZI="rc-util-locker-".concat(Date.now()),Nm=0;function QI(e){var t=!!e,n=f__namespace.useState(function(){return Nm+=1,"".concat(ZI,"_").concat(Nm)}),r=K(n,1),o=r[0];Ht(function(){if(t){var i=qI(),a=YI();ca(`
html body {
  overflow-y: hidden;
  `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
}`),o);}else oc(o);return function(){oc(o);}},[t,o]);}var Am=!1;function JI(e){return typeof e=="boolean"&&(Am=e),Am}var Dm=function(t){return t===!1?!1:!Mn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Iy=f__namespace.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,s=e.children,l=f__namespace.useState(n),c=K(l,2),u=c[0],d=c[1],h=u||n;f__namespace.useEffect(function(){(a||n)&&d(n);},[n,a]);var v=f__namespace.useState(function(){return Dm(o)}),p=K(v,2),m=p[0],g=p[1];f__namespace.useEffect(function(){var I=Dm(o);g(I??null);});var b=XI(h&&!m),y=K(b,2),w=y[0],$=y[1],S=m??w;QI(r&&n&&Mn()&&(S===w||S===document.body));var C=null;if(s&&Ho(s)&&t){var x=s;C=x.ref;}var _=ks(C,t);if(!h||!Mn()||m===void 0)return null;var M=S===!1||JI(),E=s;return t&&(E=f__namespace.cloneElement(s,{ref:_})),f__namespace.createElement(Ty.Provider,{value:$},M?E:ra.createPortal(E,S))});function eN(){var e=H({},f__namespace);return e.useId}var km=0;function tN(e){var t=f__namespace.useState("ssr-id"),n=K(t,2),r=n[0],o=n[1],i=eN(),a=i==null?void 0:i();return f__namespace.useEffect(function(){if(!i){var s=km;km+=1,o("rc_unique_".concat(s));}},[]),e||a||r}var nN=`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`,rN=`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`,oN="".concat(nN," ").concat(rN).split(/[\s\n]+/),iN="aria-",aN="data-";function Lm(e,t){return e.indexOf(t)===0}function dc(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=H({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Lm(o,iN))||n.data&&Lm(o,aN)||n.attr&&oN.includes(o))&&(r[o]=e[o]);}),r}const sN=()=>Mn()&&window.document.documentElement;let Cl;const lN=()=>{if(!sN())return !1;if(Cl!==void 0)return Cl;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Cl=e.scrollHeight===1,document.body.removeChild(e),Cl},cN=e=>({animationDuration:e,animationFillMode:"both"}),uN=e=>({animationDuration:e,animationFillMode:"both"}),tv=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[`
      ${i}${e}-enter,
      ${i}${e}-appear
    `]:Object.assign(Object.assign({},cN(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},uN(r)),{animationPlayState:"paused"}),[`
      ${i}${e}-enter${e}-enter-active,
      ${i}${e}-appear${e}-appear-active
    `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},dN=new Tt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fN=new Tt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),hN=new Tt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vN=new Tt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pN=new Tt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mN=new Tt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gN=new Tt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bN=new Tt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),yN={"move-up":{inKeyframes:gN,outKeyframes:bN},"move-down":{inKeyframes:dN,outKeyframes:fN},"move-left":{inKeyframes:hN,outKeyframes:vN},"move-right":{inKeyframes:pN,outKeyframes:mN}},Fm=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=yN[t];return [tv(r,o,i,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ny=new Tt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ay=new Tt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Dy=new Tt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ky=new Tt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),CN=new Tt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),SN=new Tt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),wN=new Tt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),xN=new Tt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),$N={"slide-up":{inKeyframes:Ny,outKeyframes:Ay},"slide-down":{inKeyframes:Dy,outKeyframes:ky},"slide-left":{inKeyframes:CN,outKeyframes:SN},"slide-right":{inKeyframes:wN,outKeyframes:xN}},fc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=$N[t];return [tv(r,o,i,e.motionDurationMid),{[`
      ${r}-enter,
      ${r}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},EN=new Tt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ON=new Tt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),zm=new Tt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),jm=new Tt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),PN=new Tt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),_N=new Tt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),RN=new Tt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),MN=new Tt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),TN=new Tt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),IN=new Tt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),NN=new Tt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),AN=new Tt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),DN={zoom:{inKeyframes:EN,outKeyframes:ON},"zoom-big":{inKeyframes:zm,outKeyframes:jm},"zoom-big-fast":{inKeyframes:zm,outKeyframes:jm},"zoom-left":{inKeyframes:RN,outKeyframes:MN},"zoom-right":{inKeyframes:TN,outKeyframes:IN},"zoom-up":{inKeyframes:PN,outKeyframes:_N},"zoom-down":{inKeyframes:NN,outKeyframes:AN}},Ly=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=DN[t];return [tv(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},kN=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`}}}),LN=kN;function dd(e){return e!==void 0}function en(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Ao(function(){return dd(o)?o:dd(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=K(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,h=a?a(d):d,v=yr(i),p=Ao([d]),m=K(p,2),g=m[0],b=m[1];Xi(function(){var w=g[0];c!==w&&v(c,w);},[g]),Xi(function(){dd(o)||u(o);},[o]);var y=yr(function(w,$){u(w,$),b([d],$);});return [h,y]}function Fy(e,t,n,r){return function(i){const{prefixCls:a,style:s}=i,l=f__namespace.useRef(null),[c,u]=f__namespace.useState(0),[d,h]=f__namespace.useState(0),[v,p]=en(!1,{value:i.open}),{getPrefixCls:m}=f__namespace.useContext(mt),g=m(t||"select",a);f__namespace.useEffect(()=>{if(p(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver($=>{const S=$[0].target;u(S.offsetHeight+8),h(S.offsetWidth);}),w=setInterval(()=>{var $;const S=n?`.${n(g)}`:`.${g}-dropdown`,C=($=l.current)===null||$===void 0?void 0:$.querySelector(S);C&&(clearInterval(w),y.observe(C));},10);return ()=>{clearInterval(w),y.disconnect();}}},[]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:v,visible:v,getPopupContainer:()=>l.current});return r&&(b=r(b)),f__namespace.createElement(Kh,{theme:{token:{motion:!1}}},f__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},f__namespace.createElement(e,Object.assign({},b))))}}const Ws=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 zy=f__namespace.createContext(null);function FN(){return f__namespace.useContext(zy)}function zN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f__namespace.useState(!1),n=K(t,2),r=n[0],o=n[1],i=f__namespace.useRef(null),a=function(){window.clearTimeout(i.current);};f__namespace.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u();},e);};return [r,s,a]}function jy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=f__namespace.useRef(null),n=f__namespace.useRef(null);f__namespace.useEffect(function(){return function(){window.clearTimeout(n.current);}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null;},e);}return [function(){return t.current},r]}function jN(e,t,n,r){var o=f__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},f__namespace.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return !c.contains(l)&&c!==l})&&o.current.triggerOpen(!1);}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[]);}var HN=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Oi=void 0;function BN(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,h=e.children,v=e.display,p=e.order,m=e.component,g=m===void 0?"div":m,b=Xe(e,HN),y=a&&!v;function w(_){l(c,_);}f__namespace.useEffect(function(){return function(){w(null);}},[]);var $=i&&o!==Oi?i(o):h,S;r||(S={opacity:y?0:1,height:y?0:Oi,overflowY:y?"hidden":Oi,order:a?p:Oi,pointerEvents:y?"none":Oi,position:y?"absolute":Oi});var C={};y&&(C["aria-hidden"]=!0);var x=f__namespace.createElement(g,he({className:X(!r&&n,u),style:H(H({},S),d)},C,b,{ref:t}),$);return a&&(x=f__namespace.createElement(go,{onResize:function(M){var E=M.offsetWidth;w(E);},disabled:s},x)),x}var es=f__namespace.forwardRef(BN);es.displayName="Item";function WN(e){if(typeof MessageChannel>"u")wt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function VN(){var e=f__namespace.useRef(null),t=function(r){e.current||(e.current=[],WN(function(){ra.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function Ra(e,t){var n=f__namespace.useState(t),r=K(n,2),o=r[0],i=r[1],a=yr(function(s){e(function(){i(s);});});return [o,a]}var UN=["component"],GN=["className"],KN=["className"],XN=function(t,n){var r=f__namespace.useContext(hc);if(!r){var o=t.component,i=o===void 0?"div":o,a=Xe(t,UN);return f__namespace.createElement(i,he({},a,{ref:n}))}var s=r.className,l=Xe(r,GN),c=t.className,u=Xe(t,KN);return f__namespace.createElement(hc.Provider,{value:null},f__namespace.createElement(es,he({ref:n,className:X(s,c)},l,u)))},Hy=f__namespace.forwardRef(XN);Hy.displayName="RawItem";var qN=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],hc=f__namespace.createContext(null),By="responsive",Wy="invalidate";function YN(e){return "+ ".concat(e.length," ...")}function ZN(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,h=e.style,v=e.className,p=e.maxCount,m=e.renderRest,g=e.renderRawRest,b=e.suffix,y=e.component,w=y===void 0?"div":y,$=e.itemComponent,S=e.onVisibleChange,C=Xe(e,qN),x=d==="full",_=VN(),M=Ra(_,null),E=K(M,2),I=E[0],O=E[1],R=I||0,P=Ra(_,new Map),T=K(P,2),A=T[0],N=T[1],D=Ra(_,0),F=K(D,2),W=F[0],z=F[1],L=Ra(_,0),V=K(L,2),G=V[0],q=V[1],ne=Ra(_,0),Z=K(ne,2),Y=Z[0],te=Z[1],re=f.useState(null),se=K(re,2),de=se[0],ee=se[1],ie=f.useState(null),ce=K(ie,2),le=ce[0],ve=ce[1],oe=f__namespace.useMemo(function(){return le===null&&x?Number.MAX_SAFE_INTEGER:le||0},[le,I]),pe=f.useState(!1),ue=K(pe,2),ye=ue[0],Ie=ue[1],De="".concat(r,"-item"),Le=Math.max(W,G),_e=p===By,qe=i.length&&_e,vt=p===Wy,et=qe||typeof p=="number"&&i.length>p,Qe=f.useMemo(function(){var Ne=i;return qe?I===null&&x?Ne=i:Ne=i.slice(0,Math.min(i.length,R/u)):typeof p=="number"&&(Ne=i.slice(0,p)),Ne},[i,u,I,p,qe]),ke=f.useMemo(function(){return qe?i.slice(oe+1):i.slice(Qe.length)},[i,Qe,qe,oe]),ze=f.useCallback(function(Ne,fe){var ae;return typeof l=="function"?l(Ne):(ae=l&&(Ne==null?void 0:Ne[l]))!==null&&ae!==void 0?ae:fe},[l]),dt=f.useCallback(a||function(Ne){return Ne},[a]);function at(Ne,fe,ae){le===Ne&&(fe===void 0||fe===de)||(ve(Ne),ae||(Ie(Ne<i.length-1),S==null||S(Ne)),fe!==void 0&&ee(fe));}function be(Ne,fe){O(fe.clientWidth);}function we(Ne,fe){N(function(ae){var Se=new Map(ae);return fe===null?Se.delete(Ne):Se.set(Ne,fe),Se});}function Ye(Ne,fe){q(fe),z(G);}function Ue(Ne,fe){te(fe);}function ft(Ne){return A.get(ze(Qe[Ne],Ne))}Ht(function(){if(R&&typeof Le=="number"&&Qe){var Ne=Y,fe=Qe.length,ae=fe-1;if(!fe){at(0,null);return}for(var Se=0;Se<fe;Se+=1){var xe=ft(Se);if(x&&(xe=xe||0),xe===void 0){at(Se-1,void 0,!0);break}if(Ne+=xe,ae===0&&Ne<=R||Se===ae-1&&Ne+ft(ae)<=R){at(ae,null);break}else if(Ne+Le>R){at(Se-1,Ne-xe-Y+G);break}}b&&ft(0)+Y>R&&ee(null);}},[R,A,G,Y,ze,Qe]);var $e=ye&&!!ke.length,Ee={};de!==null&&qe&&(Ee={position:"absolute",left:de,top:0});var je={prefixCls:De,responsive:qe,component:$,invalidate:vt},Re=s?function(Ne,fe){var ae=ze(Ne,fe);return f__namespace.createElement(hc.Provider,{key:ae,value:H(H({},je),{},{order:fe,item:Ne,itemKey:ae,registerSize:we,display:fe<=oe})},s(Ne,fe))}:function(Ne,fe){var ae=ze(Ne,fe);return f__namespace.createElement(es,he({},je,{order:fe,key:ae,item:Ne,renderItem:dt,itemKey:ae,registerSize:we,display:fe<=oe}))},Je,Et={order:$e?oe:Number.MAX_SAFE_INTEGER,className:"".concat(De,"-rest"),registerSize:Ye,display:$e};if(g)g&&(Je=f__namespace.createElement(hc.Provider,{value:H(H({},je),Et)},g(ke)));else {var Ft=m||YN;Je=f__namespace.createElement(es,he({},je,Et),typeof Ft=="function"?Ft(ke):Ft);}var kt=f__namespace.createElement(w,he({className:X(!vt&&r,v),style:h,ref:t},C),Qe.map(Re),et?Je:null,b&&f__namespace.createElement(es,he({},je,{responsive:_e,responsiveDisabled:!qe,order:oe,className:"".concat(De,"-suffix"),registerSize:Ue,display:!0,style:Ee}),b));return _e&&(kt=f__namespace.createElement(go,{onResize:be,disabled:!qe},kt)),kt}var Br=f__namespace.forwardRef(ZN);Br.displayName="Overflow";Br.Item=Hy;Br.RESPONSIVE=By;Br.INVALIDATE=Wy;var vc=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,s=t.children,l;return typeof r=="function"?l=r(o):l=r,f__namespace.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),i&&i(u);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},l!==void 0?l:f__namespace.createElement("span",{className:X(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))},QN=function(t,n){var r,o,i=t.prefixCls,a=t.id,s=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,h=t.editable,v=t.activeDescendantId,p=t.value,m=t.maxLength,g=t.onKeyDown,b=t.onMouseDown,y=t.onChange,w=t.onPaste,$=t.onCompositionStart,S=t.onCompositionEnd,C=t.open,x=t.attrs,_=s||f__namespace.createElement("input",null),M=_,E=M.ref,I=M.props,O=I.onKeyDown,R=I.onChange,P=I.onMouseDown,T=I.onCompositionStart,A=I.onCompositionEnd,N=I.style;return "maxLength"in _.props,_=f__namespace.cloneElement(_,H(H(H({type:"search"},I),{},{id:a,ref:Pn(n,E),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:X("".concat(i,"-selection-search-input"),(r=_)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":C,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":v},x),{},{value:h?p:"",maxLength:m,readOnly:!h,unselectable:h?null:"on",style:H(H({},N),{},{opacity:h?null:0}),onKeyDown:function(F){g(F),O&&O(F);},onMouseDown:function(F){b(F),P&&P(F);},onChange:function(F){y(F),R&&R(F);},onCompositionStart:function(F){$(F),T&&T(F);},onCompositionEnd:function(F){S(F),A&&A(F);},onPaste:w})),_},nv=f__namespace.forwardRef(QN);nv.displayName="Input";function Vy(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var JN=typeof window<"u"&&window.document&&window.document.documentElement,eA=JN;function tA(e){return e!=null}function Hm(e){return ["string","number"].includes(tt(e))}function Uy(e){var t=void 0;return e&&(Hm(e.title)?t=e.title.toString():Hm(e.label)&&(t=e.label.toString())),t}function nA(e,t){eA?f__namespace.useLayoutEffect(e,t):f__namespace.useEffect(e,t);}function rA(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var Bm=function(t){t.preventDefault(),t.stopPropagation();},oA=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,h=t.showSearch,v=t.autoFocus,p=t.autoComplete,m=t.activeDescendantId,g=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,w=t.maxTagTextLength,$=t.maxTagPlaceholder,S=$===void 0?function(ee){return "+ ".concat(ee.length," ...")}:$,C=t.tagRender,x=t.onToggleOpen,_=t.onRemove,M=t.onInputChange,E=t.onInputPaste,I=t.onInputKeyDown,O=t.onInputMouseDown,R=t.onInputCompositionStart,P=t.onInputCompositionEnd,T=f__namespace.useRef(null),A=f.useState(0),N=K(A,2),D=N[0],F=N[1],W=f.useState(!1),z=K(W,2),L=z[0],V=z[1],G="".concat(r,"-selection"),q=i||d==="multiple"&&s===!1||d==="tags"?a:"",ne=d==="tags"||d==="multiple"&&s===!1||h&&(i||L);nA(function(){F(T.current.scrollWidth);},[q]);function Z(ee,ie,ce,le,ve){return f__namespace.createElement("span",{className:X("".concat(G,"-item"),U({},"".concat(G,"-item-disabled"),ce)),title:Uy(ee)},f__namespace.createElement("span",{className:"".concat(G,"-item-content")},ie),le&&f__namespace.createElement(vc,{className:"".concat(G,"-item-remove"),onMouseDown:Bm,onClick:ve,customizeIcon:b},"×"))}function Y(ee,ie,ce,le,ve){var oe=function(ue){Bm(ue),x(!i);};return f__namespace.createElement("span",{onMouseDown:oe},C({label:ie,value:ee,disabled:ce,closable:le,onClose:ve}))}function te(ee){var ie=ee.disabled,ce=ee.label,le=ee.value,ve=!u&&!ie,oe=ce;if(typeof w=="number"&&(typeof ce=="string"||typeof ce=="number")){var pe=String(oe);pe.length>w&&(oe="".concat(pe.slice(0,w),"..."));}var ue=function(Ie){Ie&&Ie.stopPropagation(),_(ee);};return typeof C=="function"?Y(le,oe,ie,ve,ue):Z(ee,oe,ie,ve,ue)}function re(ee){var ie=typeof S=="function"?S(ee):S;return Z({title:ie},ie,!1)}var se=f__namespace.createElement("div",{className:"".concat(G,"-search"),style:{width:D},onFocus:function(){V(!0);},onBlur:function(){V(!1);}},f__namespace.createElement(nv,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:v,autoComplete:p,editable:ne,activeDescendantId:m,value:q,onKeyDown:I,onMouseDown:O,onChange:M,onPaste:E,onCompositionStart:R,onCompositionEnd:P,tabIndex:g,attrs:dc(t,!0)}),f__namespace.createElement("span",{ref:T,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},q," ")),de=f__namespace.createElement(Br,{prefixCls:"".concat(G,"-overflow"),data:o,renderItem:te,renderRest:re,suffix:se,itemKey:rA,maxCount:y});return f__namespace.createElement(f__namespace.Fragment,null,de,!o.length&&!q&&f__namespace.createElement("span",{className:"".concat(G,"-placeholder")},c))},iA=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,h=t.values,v=t.placeholder,p=t.tabIndex,m=t.showSearch,g=t.searchValue,b=t.activeValue,y=t.maxLength,w=t.onInputKeyDown,$=t.onInputMouseDown,S=t.onInputChange,C=t.onInputPaste,x=t.onInputCompositionStart,_=t.onInputCompositionEnd,M=t.title,E=f__namespace.useState(!1),I=K(E,2),O=I[0],R=I[1],P=u==="combobox",T=P||m,A=h[0],N=g||"";P&&b&&!O&&(N=b),f__namespace.useEffect(function(){P&&R(!1);},[P,b]);var D=u!=="combobox"&&!d&&!m?!1:!!N,F=M===void 0?Uy(A):M,W=function(){if(A)return null;var L=D?{visibility:"hidden"}:void 0;return f__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:L},v)};return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("span",{className:"".concat(r,"-selection-search")},f__namespace.createElement(nv,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:T,activeDescendantId:c,value:N,onKeyDown:w,onMouseDown:$,onChange:function(L){R(!0),S(L);},onPaste:C,onCompositionStart:x,onCompositionEnd:_,tabIndex:p,attrs:dc(t,!0),maxLength:P?y:void 0})),!P&&A?f__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:F,style:D?{visibility:"hidden"}:void 0},A.label):null,W())};function aA(e){return ![J.ESC,J.SHIFT,J.BACKSPACE,J.TAB,J.WIN_KEY,J.ALT,J.META,J.WIN_KEY_RIGHT,J.CTRL,J.SEMICOLON,J.EQUALS,J.CAPS_LOCK,J.CONTEXT_MENU,J.F1,J.F2,J.F3,J.F4,J.F5,J.F6,J.F7,J.F8,J.F9,J.F10,J.F11,J.F12].includes(e)}var sA=function(t,n){var r=f.useRef(null),o=f.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,h=t.onSearchSubmit,v=t.onToggleOpen,p=t.onInputKeyDown,m=t.domRef;f__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var g=jy(0),b=K(g,2),y=b[0],w=b[1],$=function(N){var D=N.which;(D===J.UP||D===J.DOWN)&&N.preventDefault(),p&&p(N),D===J.ENTER&&s==="tags"&&!o.current&&!a&&(h==null||h(N.target.value)),aA(D)&&v(!0);},S=function(){w(!0);},C=f.useRef(null),x=function(N){d(N,!0,o.current)!==!1&&v(!0);},_=function(){o.current=!0;},M=function(N){o.current=!1,s!=="combobox"&&x(N.target.value);},E=function(N){var D=N.target.value;if(c&&C.current&&/[\r\n]/.test(C.current)){var F=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(F,C.current);}C.current=null,x(D);},I=function(N){var D=N.clipboardData,F=D.getData("text");C.current=F;},O=function(N){var D=N.target;if(D!==r.current){var F=document.body.style.msTouchAction!==void 0;F?setTimeout(function(){r.current.focus();}):r.current.focus();}},R=function(N){var D=y();N.target!==r.current&&!D&&s!=="combobox"&&N.preventDefault(),(s!=="combobox"&&(!l||!D)||!a)&&(a&&u!==!1&&d("",!0,!1),v());},P={inputRef:r,onInputKeyDown:$,onInputMouseDown:S,onInputChange:E,onInputPaste:I,onInputCompositionStart:_,onInputCompositionEnd:M},T=s==="multiple"||s==="tags"?f__namespace.createElement(oA,he({},t,P)):f__namespace.createElement(iA,he({},t,P));return f__namespace.createElement("div",{ref:m,className:"".concat(i,"-selector"),onClick:O,onMouseDown:R},T)},Gy=f__namespace.forwardRef(sA);Gy.displayName="Selector";var Wm=f__namespace.createContext(null);function Vm(e){return e?Array.isArray(e)?e:[e]:[]}function lA(e,t,n,r){return f__namespace.useMemo(function(){var o=Vm(n??t),i=Vm(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function cA(){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 uA(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(cA((s=e[l])===null||s===void 0?void 0:s.points,o,r))return "".concat(t,"-placement-").concat(l)}return ""}function Um(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Vs(e){return e.ownerDocument.defaultView}function Af(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Vs(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement;}return t}function Ss(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ma(e){return Ss(parseFloat(e),0)}function Gm(e,t){var n=H({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement)){var o=Vs(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),h=r.offsetHeight,v=r.clientHeight,p=r.offsetWidth,m=r.clientWidth,g=Ma(s),b=Ma(l),y=Ma(c),w=Ma(u),$=Ss(Math.round(d.width/p*1e3)/1e3),S=Ss(Math.round(d.height/h*1e3)/1e3),C=(p-m-y-w)*$,x=(h-v-g-b)*S,_=g*S,M=b*S,E=y*$,I=w*$,O=0,R=0;if(i==="clip"){var P=Ma(a);O=P*$,R=P*S;}var T=d.x+E-O,A=d.y+_-R,N=T+d.width+2*O-E-I-C,D=A+d.height+2*R-_-M-x;n.left=Math.max(n.left,T),n.top=Math.max(n.top,A),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,D);}}),n}function Km(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 Xm(e,t){var n=t||[],r=K(n,2),o=r[0],i=r[1];return [Km(e.width,o),Km(e.height,i)]}function qm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function Pi(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function xo(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 dA(e,t,n,r,o,i,a){var s=f__namespace.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=K(s,2),c=l[0],u=l[1],d=f__namespace.useRef(0),h=f__namespace.useMemo(function(){return t?Af(t):[]},[t]),v=f__namespace.useRef({}),p=function(){v.current={};};e||p();var m=yr(function(){if(t&&n&&e){let He=function(st,Ot){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ee,zn=E.x+st,xn=E.y+Ot,Rr=zn+L,er=xn+z,Ko=Math.max(zn,zt.left),rl=Math.max(xn,zt.top),xa=Math.min(Rr,zt.right),ol=Math.min(er,zt.bottom);return Math.max(0,(xa-Ko)*(ol-rl))},St=function(){Se=E.y+Ue,xe=Se+z,Ze=E.x+Ye,pt=Ze+L;};var y=t,w=y.style.left,$=y.style.top,S=y.ownerDocument,C=Vs(y),x=H(H({},o[r]),i);y.style.left="0",y.style.top="0";var _;if(Array.isArray(n))_={x:n[0],y:n[1],width:0,height:0};else {var M=n.getBoundingClientRect();_={x:M.x,y:M.y,width:M.width,height:M.height};}var E=y.getBoundingClientRect(),I=C.getComputedStyle(y),O=I.width,R=I.height,P=S.documentElement,T=P.clientWidth,A=P.clientHeight,N=P.scrollWidth,D=P.scrollHeight,F=P.scrollTop,W=P.scrollLeft,z=E.height,L=E.width,V=_.height,G=_.width,q={left:0,top:0,right:T,bottom:A},ne={left:-W,top:-F,right:N-W,bottom:D-F},Z=x.htmlRegion,Y="visible",te="visibleFirst";Z!=="scroll"&&Z!==te&&(Z=Y);var re=Z===te,se=Gm(ne,h),de=Gm(q,h),ee=Z===Y?de:se,ie=re?de:ee;y.style.left=w,y.style.top=$;var ce=Ss(Math.round(L/parseFloat(O)*1e3)/1e3),le=Ss(Math.round(z/parseFloat(R)*1e3)/1e3);if(ce===0||le===0||tc(n)&&!su(n))return;var ve=x.offset,oe=x.targetOffset,pe=Xm(E,ve),ue=K(pe,2),ye=ue[0],Ie=ue[1],De=Xm(_,oe),Le=K(De,2),_e=Le[0],qe=Le[1];_.x-=_e,_.y-=qe;var vt=x.points||[],et=K(vt,2),Qe=et[0],ke=et[1],ze=qm(ke),dt=qm(Qe),at=Pi(_,ze),be=Pi(E,dt),we=H({},x),Ye=at.x-be.x+ye,Ue=at.y-be.y+Ie,ft=He(Ye,Ue),$e=He(Ye,Ue,de),Ee=Pi(_,["t","l"]),je=Pi(E,["t","l"]),Re=Pi(_,["b","r"]),Je=Pi(E,["b","r"]),Et=x.overflow||{},Ft=Et.adjustX,kt=Et.adjustY,Ne=Et.shiftX,fe=Et.shiftY,ae=function(Ot){return typeof Ot=="boolean"?Ot:Ot>=0},Se,xe,Ze,pt;St();var xt=ae(kt),Xt=dt[0]===ze[0];if(xt&&dt[0]==="t"&&(xe>ie.bottom||v.current.bt)){var Vt=Ue;Xt?Vt-=z-V:Vt=Ee.y-Je.y-Ie;var Ae=He(Ye,Vt),Ge=He(Ye,Vt,de);Ae>ft||Ae===ft&&(!re||Ge>=$e)?(v.current.bt=!0,Ue=Vt,we.points=[xo(dt,0),xo(ze,0)]):v.current.bt=!1;}if(xt&&dt[0]==="b"&&(Se<ie.top||v.current.tb)){var Me=Ue;Xt?Me+=z-V:Me=Re.y-je.y-Ie;var $t=He(Ye,Me),yt=He(Ye,Me,de);$t>ft||$t===ft&&(!re||yt>=$e)?(v.current.tb=!0,Ue=Me,we.points=[xo(dt,0),xo(ze,0)]):v.current.tb=!1;}var Zt=ae(Ft),Te=dt[1]===ze[1];if(Zt&&dt[1]==="l"&&(pt>ie.right||v.current.rl)){var We=Ye;Te?We-=L-G:We=Ee.x-Je.x-ye;var lt=He(We,Ue),Pt=He(We,Ue,de);lt>ft||lt===ft&&(!re||Pt>=$e)?(v.current.rl=!0,Ye=We,we.points=[xo(dt,1),xo(ze,1)]):v.current.rl=!1;}if(Zt&&dt[1]==="r"&&(Ze<ie.left||v.current.lr)){var qt=Ye;Te?qt+=L-G:qt=Re.x-je.x-ye;var Bt=He(qt,Ue),wn=He(qt,Ue,de);Bt>ft||Bt===ft&&(!re||wn>=$e)?(v.current.lr=!0,Ye=qt,we.points=[xo(dt,1),xo(ze,1)]):v.current.lr=!1;}St();var Nn=Ne===!0?0:Ne;typeof Nn=="number"&&(Ze<ee.left&&(Ye-=Ze-ee.left,_.x+G<ee.left+Nn&&(Ye+=_.x-ee.left+G-Nn)),pt>ee.right&&(Ye-=pt-ee.right,_.x>ee.right-Nn&&(Ye+=_.x-ee.right+Nn)));var cr=fe===!0?0:fe;typeof cr=="number"&&(Se<ee.top&&(Ue-=Se-ee.top,_.y+V<ee.top+cr&&(Ue+=_.y-ee.top+V-cr)),xe>ee.bottom&&(Ue-=xe-ee.bottom,_.y>ee.bottom-cr&&(Ue+=_.y-ee.bottom+cr)));var Yr=E.x+Ye,_r=Yr+L,Jn=E.y+Ue,_n=Jn+z,Zr=_.x,Wo=Zr+G,Qr=_.y,Jr=Qr+V,eo=Math.max(Yr,Zr),Vo=Math.min(_r,Wo),Uo=(eo+Vo)/2,Go=Uo-Yr,to=Math.max(Jn,Qr),no=Math.min(_n,Jr),Oe=(to+no)/2,Ce=Oe-Jn;a==null||a(t,we),u({ready:!0,offsetX:Ye/ce,offsetY:Ue/le,arrowX:Go/ce,arrowY:Ce/le,scaleX:ce,scaleY:le,align:we});}}),g=function(){d.current+=1;var w=d.current;Promise.resolve().then(function(){d.current===w&&m();});},b=function(){u(function(w){return H(H({},w),{},{ready:!1})});};return Ht(b,[r]),Ht(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function fA(e,t,n,r){Ht(function(){if(e&&t&&n){let u=function(){r();};var o=t,i=n,a=Af(o),s=Af(i),l=Vs(i),c=new Set([l].concat(ge(a),ge(s)));return c.forEach(function(d){d.addEventListener("scroll",u,{passive:!0});}),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach(function(d){d.removeEventListener("scroll",u),l.removeEventListener("resize",u);});}}},[e,t,n]);}function hA(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,h=f__namespace.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],m=n.points[1],g=p[0],b=p[1],y=m[0],w=m[1];g===y||!["t","b"].includes(g)?v.top=d:g==="t"?v.top=0:v.bottom=0,b===w||!["l","r"].includes(b)?v.left=c:b==="l"?v.left=0:v.right=0;}return f__namespace.createElement("div",{ref:h,className:X("".concat(t,"-arrow"),a),style:v},s)}function vA(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?f__namespace.createElement(Pr,he({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return f__namespace.createElement("div",{style:{zIndex:r},className:X("".concat(t,"-mask"),s)})}):null}var pA=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),mA=f__namespace.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.onClick,d=e.mask,h=e.arrow,v=e.arrowPos,p=e.align,m=e.motion,g=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,w=e.autoDestroy,$=e.portal,S=e.zIndex,C=e.onMouseEnter,x=e.onMouseLeave,_=e.ready,M=e.offsetX,E=e.offsetY,I=e.onAlign,O=e.onPrepare,R=e.stretch,P=e.targetWidth,T=e.targetHeight,A=typeof n=="function"?n():n,N=l||c,D=(y==null?void 0:y.length)>0,F=f__namespace.useState(!y||!D),W=K(F,2),z=W[0],L=W[1];if(Ht(function(){!z&&D&&a&&L(!0);},[z,D,a]),!z)return null;var V=_||!l?{left:M,top:E}:{left:"-1000vw",top:"-1000vh"},G={};return R&&(R.includes("height")&&T?G.height=T:R.includes("minHeight")&&T&&(G.minHeight=T),R.includes("width")&&P?G.width=P:R.includes("minWidth")&&P&&(G.minWidth=P)),l||(G.pointerEvents="none"),f__namespace.createElement($,{open:b||N,getContainer:y&&function(){return y(a)},autoDestroy:w},f__namespace.createElement(vA,{prefixCls:o,open:l,zIndex:S,mask:d,motion:g}),f__namespace.createElement(go,{onResize:I,disabled:!l},function(q){return f__namespace.createElement(Pr,he({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:O,onEnterPrepare:O,visible:l,onVisibleChanged:function(Z){var Y;m==null||(Y=m.onVisibleChanged)===null||Y===void 0||Y.call(m,Z),s(Z);}}),function(ne,Z){var Y=ne.className,te=ne.style,re=X(o,Y,r);return f__namespace.createElement("div",{ref:Pn(q,t,Z),className:re,style:H(H(H(H({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},V),G),te),{},{boxSizing:"border-box",zIndex:S},i),onMouseEnter:C,onMouseLeave:x,onClick:u},h&&f__namespace.createElement(hA,{prefixCls:o,arrow:h,arrowPos:v,align:p}),f__namespace.createElement(pA,{cache:!l},A))})}))}),gA=f__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ho(n),i=f__namespace.useCallback(function(s){Ah(t,r?r(s):s);},[r]),a=ks(i,n.ref);return o?f__namespace.cloneElement(n,{ref:a}):n}),bA=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function yA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Iy,t=f__namespace.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,h=n.defaultPopupVisible,v=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,m=n.mouseEnterDelay,g=n.mouseLeaveDelay,b=g===void 0?.1:g,y=n.focusDelay,w=n.blurDelay,$=n.mask,S=n.maskClosable,C=S===void 0?!0:S,x=n.getPopupContainer,_=n.forceRender,M=n.autoDestroy,E=n.destroyPopupOnHide,I=n.popup,O=n.popupClassName,R=n.popupStyle,P=n.popupPlacement,T=n.builtinPlacements,A=T===void 0?{}:T,N=n.popupAlign,D=n.zIndex,F=n.stretch,W=n.getPopupClassNameFromAlign,z=n.alignPoint,L=n.onPopupClick,V=n.onPopupAlign,G=n.arrow,q=n.popupMotion,ne=n.maskMotion,Z=n.popupTransitionName,Y=n.popupAnimation,te=n.maskTransitionName,re=n.maskAnimation,se=n.className,de=n.getTriggerDOMNode,ee=Xe(n,bA),ie=M||E||!1,ce=f__namespace.useState(!1),le=K(ce,2),ve=le[0],oe=le[1];Ht(function(){oe(Ws());},[]);var pe=f__namespace.useRef({}),ue=f__namespace.useContext(Wm),ye=f__namespace.useMemo(function(){return {registerSubPopup:function(nt,It){pe.current[nt]=It,ue==null||ue.registerSubPopup(nt,It);}}},[ue]),Ie=tN(),De=f__namespace.useState(null),Le=K(De,2),_e=Le[0],qe=Le[1],vt=yr(function(Be){tc(Be)&&_e!==Be&&qe(Be),ue==null||ue.registerSubPopup(Ie,Be);}),et=f__namespace.useState(null),Qe=K(et,2),ke=Qe[0],ze=Qe[1],dt=yr(function(Be){tc(Be)&&ke!==Be&&ze(Be);}),at=f__namespace.Children.only(a),be=(at==null?void 0:at.props)||{},we={},Ye=yr(function(Be){var nt,It,jt=ke;return (jt==null?void 0:jt.contains(Be))||(jt==null||(nt=jt.getRootNode())===null||nt===void 0?void 0:nt.host)===Be||Be===jt||(_e==null?void 0:_e.contains(Be))||(_e==null||(It=_e.getRootNode())===null||It===void 0?void 0:It.host)===Be||Be===_e||Object.values(pe.current).some(function(Mt){return (Mt==null?void 0:Mt.contains(Be))||Be===Mt})}),Ue=Um(i,q,Y,Z),ft=Um(i,ne,re,te),$e=f__namespace.useState(h||!1),Ee=K($e,2),je=Ee[0],Re=Ee[1],Je=d??je,Et=yr(function(Be){d===void 0&&Re(Be);});Ht(function(){Re(d||!1);},[d]);var Ft=f__namespace.useRef(Je);Ft.current=Je;var kt=yr(function(Be){Je!==Be&&(Et(Be),v==null||v(Be));}),Ne=f__namespace.useRef(),fe=function(){clearTimeout(Ne.current);},ae=function(nt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;fe(),It===0?kt(nt):Ne.current=setTimeout(function(){kt(nt);},It*1e3);};f__namespace.useEffect(function(){return fe},[]);var Se=f__namespace.useState(!1),xe=K(Se,2),Ze=xe[0],pt=xe[1],xt=f__namespace.useRef(!0);Ht(function(){(!xt.current||Je)&&pt(!0),xt.current=!0;},[Je]);var Xt=f__namespace.useState(null),Vt=K(Xt,2),Ae=Vt[0],Ge=Vt[1],Me=f__namespace.useState([0,0]),$t=K(Me,2),yt=$t[0],Zt=$t[1],Te=function(nt){Zt([nt.clientX,nt.clientY]);},We=dA(Je,_e,z?yt:ke,P,A,N,V),lt=K(We,9),Pt=lt[0],qt=lt[1],Bt=lt[2],wn=lt[3],Nn=lt[4],cr=lt[5],Yr=lt[6],_r=lt[7],Jn=lt[8],_n=yr(function(){Ze||Jn();});fA(Je,ke,_e,_n),Ht(function(){_n();},[yt,P]),Ht(function(){Je&&!(A!=null&&A[P])&&_n();},[JSON.stringify(N)]);var Zr=f__namespace.useMemo(function(){var Be=uA(A,i,_r,z);return X(Be,W==null?void 0:W(_r))},[_r,W,A,i,z]);f__namespace.useImperativeHandle(r,function(){return {forceAlign:_n}});var Wo=function(nt){pt(!1),Jn(),p==null||p(nt);},Qr=function(){return new Promise(function(nt){Ge(function(){return nt});})};Ht(function(){Ae&&(Jn(),Ae(),Ge(null));},[Ae]);var Jr=f__namespace.useState(0),eo=K(Jr,2),Vo=eo[0],Uo=eo[1],Go=f__namespace.useState(0),to=K(Go,2),no=to[0],Oe=to[1],Ce=function(nt,It){if(_n(),F){var jt=It.getBoundingClientRect();Uo(jt.width),Oe(jt.height);}},He=lA(ve,l,c,u),St=K(He,2),st=St[0],Ot=St[1],zt=function(nt,It,jt,Mt){we[nt]=function($a){var Si;Mt==null||Mt($a),ae(It,jt);for(var Xo=arguments.length,wi=new Array(Xo>1?Xo-1:0),il=1;il<Xo;il++)wi[il-1]=arguments[il];(Si=be[nt])===null||Si===void 0||Si.call.apply(Si,[be,$a].concat(wi));};},zn=st.has("click"),xn=Ot.has("click")||Ot.has("contextMenu");(zn||xn)&&(we.onClick=function(Be){var nt;Ft.current&&xn?ae(!1):!Ft.current&&zn&&(Te(Be),ae(!0));for(var It=arguments.length,jt=new Array(It>1?It-1:0),Mt=1;Mt<It;Mt++)jt[Mt-1]=arguments[Mt];(nt=be.onClick)===null||nt===void 0||nt.call.apply(nt,[be,Be].concat(jt));}),f__namespace.useEffect(function(){if(xn&&_e&&(!$||C)){var Be=!1,nt=function(Xo){var wi=Xo.target;Be=Ye(wi);},It=function(Xo){var wi=Xo.target;Ft.current&&!Be&&!Ye(wi)&&ae(!1);},jt=Vs(_e),Mt=ke==null?void 0:ke.getRootNode();jt.addEventListener("mousedown",nt),jt.addEventListener("click",It);var $a=Mt&&Mt!==ke.ownerDocument;return $a&&(Mt.addEventListener("mousedown",nt),Mt.addEventListener("click",It)),function(){jt.removeEventListener("mousedown",nt),jt.removeEventListener("click",It),$a&&(Mt.removeEventListener("mousedown",nt),Mt.removeEventListener("click",It));}}},[xn,ke,_e,$,C]);var Rr=st.has("hover"),er=Ot.has("hover"),Ko,rl;Rr&&(zt("onMouseEnter",!0,m,function(Be){Te(Be);}),Ko=function(){ae(!0,m);},z&&(we.onMouseMove=function(Be){var nt;(nt=be.onMouseMove)===null||nt===void 0||nt.call(be,Be);})),er&&(zt("onMouseLeave",!1,b),rl=function(){ae(!1,b);}),st.has("focus")&&zt("onFocus",!0,y),Ot.has("focus")&&zt("onBlur",!1,w),st.has("contextMenu")&&(we.onContextMenu=function(Be){var nt;Te(Be),ae(!0),Be.preventDefault();for(var It=arguments.length,jt=new Array(It>1?It-1:0),Mt=1;Mt<It;Mt++)jt[Mt-1]=arguments[Mt];(nt=be.onContextMenu)===null||nt===void 0||nt.call.apply(nt,[be,Be].concat(jt));}),se&&(we.className=X(be.className,se));var xa=H(H({},be),we),ol={},aw=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];aw.forEach(function(Be){ee[Be]&&(ol[Be]=function(){for(var nt,It=arguments.length,jt=new Array(It),Mt=0;Mt<It;Mt++)jt[Mt]=arguments[Mt];(nt=xa[Be])===null||nt===void 0||nt.call.apply(nt,[xa].concat(jt)),ee[Be].apply(ee,jt);});});var sw=f__namespace.cloneElement(at,H(H({},xa),ol)),lw={x:wn,y:Nn},cw=G?H({},G!==!0?G:{}):null;return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(go,{disabled:!Je,ref:dt,onResize:Ce},f__namespace.createElement(gA,{getTriggerDOMNode:de},sw)),f__namespace.createElement(Wm.Provider,{value:ye},f__namespace.createElement(mA,{portal:e,ref:vt,prefixCls:i,popup:I,className:X(O,Zr),style:R,target:ke,onMouseEnter:Ko,onMouseLeave:rl,zIndex:D,open:Je,keepDom:Ze,onClick:L,mask:$,motion:Ue,maskMotion:ft,onVisibleChanged:Wo,onPrepare:Qr,forceRender:_,autoDestroy:ie,getPopupContainer:x,align:_r,arrow:cw,arrowPos:lw,ready:Pt,offsetX:qt,offsetY:Bt,onAlign:_n,stretch:F,targetWidth:Vo/cr,targetHeight:no/Yr})))});return t}const rv=yA(Iy);var CA=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],SA=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"}}},wA=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,s=t.containerWidth,l=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,h=t.direction,v=h===void 0?"ltr":h,p=t.placement,m=t.builtinPlacements,g=t.dropdownMatchSelectWidth,b=t.dropdownRender,y=t.dropdownAlign,w=t.getPopupContainer,$=t.empty,S=t.getTriggerDOMNode,C=t.onPopupVisibleChange,x=t.onPopupMouseEnter,_=Xe(t,CA),M="".concat(r,"-dropdown"),E=a;b&&(E=b(a));var I=f__namespace.useMemo(function(){return m||SA(g)},[m,g]),O=l?"".concat(M,"-").concat(l):c,R=f__namespace.useRef(null);f__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return R.current}}});var P=H({minWidth:s},u);return typeof g=="number"?P.width=g:g&&(P.width=s),f__namespace.createElement(rv,he({},_,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:p||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:M,popupTransitionName:O,popup:f__namespace.createElement("div",{ref:R,onMouseEnter:x},E),popupAlign:y,popupVisible:o,getPopupContainer:w,popupClassName:X(d,U({},"".concat(M,"-empty"),$)),popupStyle:P,getTriggerDOMNode:S,onPopupVisibleChange:C}),i)},Ky=f__namespace.forwardRef(wA);Ky.displayName="SelectTrigger";function Ym(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 Xy(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,s=r||(t?"children":"label");return {label:s,value:o||"value",options:i||"options",groupLabel:a||s}}function xA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Xy(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(d,h){d.forEach(function(v){if(h||!(l in v)){var p=v[s];o.push({key:Ym(v,o.length),groupOption:h,data:v,label:v[a],value:p});}else {var m=v[c];m===void 0&&r&&(m=v.label),o.push({key:Ym(v,o.length),group:!0,data:v,label:m}),u(v[l],!0);}});}return u(e,!1),o}function Df(e){var t=H({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return Cn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function $A(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var s=z0(a),l=s[0],c=s.slice(1);if(!l)return [i];var u=i.split(l);return n=n||u.length>1,u.reduce(function(d,h){return [].concat(ge(d),ge(r(h,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var EA=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],OA=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function kf(e){return e==="tags"||e==="multiple"}var PA=f__namespace.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,h=e.onDisplayValuesChange,v=e.emptyOptions,p=e.notFoundContent,m=p===void 0?"Not Found":p,g=e.onClear,b=e.mode,y=e.disabled,w=e.loading,$=e.getInputElement,S=e.getRawInputElement,C=e.open,x=e.defaultOpen,_=e.onDropdownVisibleChange,M=e.activeValue,E=e.onActiveValueChange,I=e.activeDescendantId,O=e.searchValue,R=e.autoClearSearchValue,P=e.onSearch,T=e.onSearchSplit,A=e.tokenSeparators,N=e.allowClear,D=e.showArrow,F=e.inputIcon,W=e.clearIcon,z=e.OptionList,L=e.animation,V=e.transitionName,G=e.dropdownStyle,q=e.dropdownClassName,ne=e.dropdownMatchSelectWidth,Z=e.dropdownRender,Y=e.dropdownAlign,te=e.placement,re=e.builtinPlacements,se=e.getPopupContainer,de=e.showAction,ee=de===void 0?[]:de,ie=e.onFocus,ce=e.onBlur,le=e.onKeyUp,ve=e.onKeyDown,oe=e.onMouseDown,pe=Xe(e,EA),ue=kf(b),ye=(s!==void 0?s:ue)||b==="combobox",Ie=H({},pe);OA.forEach(function(Oe){delete Ie[Oe];}),u==null||u.forEach(function(Oe){delete Ie[Oe];});var De=f__namespace.useState(!1),Le=K(De,2),_e=Le[0],qe=Le[1];f__namespace.useEffect(function(){qe(Ws());},[]);var vt=f__namespace.useRef(null),et=f__namespace.useRef(null),Qe=f__namespace.useRef(null),ke=f__namespace.useRef(null),ze=f__namespace.useRef(null),dt=zN(),at=K(dt,3),be=at[0],we=at[1],Ye=at[2];f__namespace.useImperativeHandle(t,function(){var Oe,Ce;return {focus:(Oe=ke.current)===null||Oe===void 0?void 0:Oe.focus,blur:(Ce=ke.current)===null||Ce===void 0?void 0:Ce.blur,scrollTo:function(St){var st;return (st=ze.current)===null||st===void 0?void 0:st.scrollTo(St)}}});var Ue=f__namespace.useMemo(function(){var Oe;if(b!=="combobox")return O;var Ce=(Oe=d[0])===null||Oe===void 0?void 0:Oe.value;return typeof Ce=="string"||typeof Ce=="number"?String(Ce):""},[O,b,d]),ft=b==="combobox"&&typeof $=="function"&&$()||null,$e=typeof S=="function"&&S(),Ee=ks(et,$e==null||(n=$e.props)===null||n===void 0?void 0:n.ref),je=f__namespace.useState(!1),Re=K(je,2),Je=Re[0],Et=Re[1];Ht(function(){Et(!0);},[]);var Ft=en(!1,{defaultValue:x,value:C}),kt=K(Ft,2),Ne=kt[0],fe=kt[1],ae=Je?Ne:!1,Se=!m&&v;(y||Se&&ae&&b==="combobox")&&(ae=!1);var xe=Se?!1:ae,Ze=f__namespace.useCallback(function(Oe){var Ce=Oe!==void 0?Oe:!ae;y||(fe(Ce),ae!==Ce&&(_==null||_(Ce)));},[y,ae,fe,_]),pt=f__namespace.useMemo(function(){return (A||[]).some(function(Oe){return [`
`,`\r
`].includes(Oe)})},[A]),xt=function(Ce,He,St){var st=!0,Ot=Ce;E==null||E(null);var zt=St?null:$A(Ce,A);return b!=="combobox"&&zt&&(Ot="",T==null||T(zt),Ze(!1),st=!1),P&&Ue!==Ot&&P(Ot,{source:He?"typing":"effect"}),st},Xt=function(Ce){!Ce||!Ce.trim()||P(Ce,{source:"submit"});};f__namespace.useEffect(function(){!ae&&!ue&&b!=="combobox"&&xt("",!1,!1);},[ae]),f__namespace.useEffect(function(){Ne&&y&&fe(!1),y&&we(!1);},[y]);var Vt=jy(),Ae=K(Vt,2),Ge=Ae[0],Me=Ae[1],$t=function(Ce){var He=Ge(),St=Ce.which;if(St===J.ENTER&&(b!=="combobox"&&Ce.preventDefault(),ae||Ze(!0)),Me(!!Ue),St===J.BACKSPACE&&!He&&ue&&!Ue&&d.length){for(var st=ge(d),Ot=null,zt=st.length-1;zt>=0;zt-=1){var zn=st[zt];if(!zn.disabled){st.splice(zt,1),Ot=zn;break}}Ot&&h(st,{type:"remove",values:[Ot]});}for(var xn=arguments.length,Rr=new Array(xn>1?xn-1:0),er=1;er<xn;er++)Rr[er-1]=arguments[er];if(ae&&ze.current){var Ko;(Ko=ze.current).onKeyDown.apply(Ko,[Ce].concat(Rr));}ve==null||ve.apply(void 0,[Ce].concat(Rr));},yt=function(Ce){for(var He=arguments.length,St=new Array(He>1?He-1:0),st=1;st<He;st++)St[st-1]=arguments[st];if(ae&&ze.current){var Ot;(Ot=ze.current).onKeyUp.apply(Ot,[Ce].concat(St));}le==null||le.apply(void 0,[Ce].concat(St));},Zt=function(Ce){var He=d.filter(function(St){return St!==Ce});h(He,{type:"remove",values:[Ce]});},Te=f__namespace.useRef(!1),We=function(){we(!0),y||(ie&&!Te.current&&ie.apply(void 0,arguments),ee.includes("focus")&&Ze(!0)),Te.current=!0;},lt=function(){we(!1,function(){Te.current=!1,Ze(!1);}),!y&&(Ue&&(b==="tags"?P(Ue,{source:"submit"}):b==="multiple"&&P("",{source:"blur"})),ce&&ce.apply(void 0,arguments));},Pt=[];f__namespace.useEffect(function(){return function(){Pt.forEach(function(Oe){return clearTimeout(Oe)}),Pt.splice(0,Pt.length);}},[]);var qt=function(Ce){var He,St=Ce.target,st=(He=Qe.current)===null||He===void 0?void 0:He.getPopupElement();if(st&&st.contains(St)){var Ot=setTimeout(function(){var Rr=Pt.indexOf(Ot);if(Rr!==-1&&Pt.splice(Rr,1),Ye(),!_e&&!st.contains(document.activeElement)){var er;(er=ke.current)===null||er===void 0||er.focus();}});Pt.push(Ot);}for(var zt=arguments.length,zn=new Array(zt>1?zt-1:0),xn=1;xn<zt;xn++)zn[xn-1]=arguments[xn];oe==null||oe.apply(void 0,[Ce].concat(zn));},Bt=f__namespace.useState(null),wn=K(Bt,2),Nn=wn[0],cr=wn[1],Yr=f__namespace.useState({}),_r=K(Yr,2),Jn=_r[1];function _n(){Jn({});}Ht(function(){if(xe){var Oe,Ce=Math.ceil((Oe=vt.current)===null||Oe===void 0?void 0:Oe.offsetWidth);Nn!==Ce&&!Number.isNaN(Ce)&&cr(Ce);}},[xe]);var Zr;$e&&(Zr=function(Ce){Ze(Ce);}),jN(function(){var Oe;return [vt.current,(Oe=Qe.current)===null||Oe===void 0?void 0:Oe.getPopupElement()]},xe,Ze,!!$e);var Wo=f__namespace.useMemo(function(){return H(H({},e),{},{notFoundContent:m,open:ae,triggerOpen:xe,id:o,showSearch:ye,multiple:ue,toggleOpen:Ze})},[e,m,xe,ae,o,ye,ue,Ze]),Qr=D!==void 0?D:w||!ue&&b!=="combobox",Jr;Qr&&(Jr=f__namespace.createElement(vc,{className:X("".concat(i,"-arrow"),U({},"".concat(i,"-arrow-loading"),w)),customizeIcon:F,customizeIconProps:{loading:w,searchValue:Ue,open:ae,focused:be,showSearch:ye}}));var eo,Vo=function(){var Ce;g==null||g(),(Ce=ke.current)===null||Ce===void 0||Ce.focus(),h([],{type:"clear",values:d}),xt("",!1,!1);};!y&&N&&(d.length||Ue)&&!(b==="combobox"&&Ue==="")&&(eo=f__namespace.createElement(vc,{className:"".concat(i,"-clear"),onMouseDown:Vo,customizeIcon:W},"×"));var Uo=f__namespace.createElement(z,{ref:ze}),Go=X(i,a,(r={},U(r,"".concat(i,"-focused"),be),U(r,"".concat(i,"-multiple"),ue),U(r,"".concat(i,"-single"),!ue),U(r,"".concat(i,"-allow-clear"),N),U(r,"".concat(i,"-show-arrow"),Qr),U(r,"".concat(i,"-disabled"),y),U(r,"".concat(i,"-loading"),w),U(r,"".concat(i,"-open"),ae),U(r,"".concat(i,"-customize-input"),ft),U(r,"".concat(i,"-show-search"),ye),r)),to=f__namespace.createElement(Ky,{ref:Qe,disabled:y,prefixCls:i,visible:xe,popupElement:Uo,containerWidth:Nn,animation:L,transitionName:V,dropdownStyle:G,dropdownClassName:q,direction:c,dropdownMatchSelectWidth:ne,dropdownRender:Z,dropdownAlign:Y,placement:te,builtinPlacements:re,getPopupContainer:se,empty:v,getTriggerDOMNode:function(){return et.current},onPopupVisibleChange:Zr,onPopupMouseEnter:_n},$e?f__namespace.cloneElement($e,{ref:Ee}):f__namespace.createElement(Gy,he({},e,{domRef:et,prefixCls:i,inputElement:ft,ref:ke,id:o,showSearch:ye,autoClearSearchValue:R,mode:b,activeDescendantId:I,tagRender:l,values:d,open:ae,onToggleOpen:Ze,activeValue:M,searchValue:Ue,onSearch:xt,onSearchSubmit:Xt,onRemove:Zt,tokenWithEnter:pt}))),no;return $e?no=to:no=f__namespace.createElement("div",he({className:Go},Ie,{ref:vt,onMouseDown:qt,onKeyDown:$t,onKeyUp:yt,onFocus:We,onBlur:lt}),be&&!ae&&f__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map(function(Oe){var Ce=Oe.label,He=Oe.value;return ["number","string"].includes(tt(Ce))?Ce:He}).join(", "))),to,Jr,eo),f__namespace.createElement(zy.Provider,{value:Wo},no)});const _A=function(e,t){var n=f__namespace.useRef({values:new Map,options:new Map}),r=f__namespace.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=e.map(function(d){if(d.label===void 0){var h;return H(H({},d),{},{label:(h=a.get(d.value))===null||h===void 0?void 0:h.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=f__namespace.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return [r,o]};function fd(e,t){return Vy(e).join("").toUpperCase().includes(t)}const RA=function(e,t,n,r,o){return f__namespace.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(v,p){return o?fd(p[o],u):p[i]?fd(p[a!=="children"?a:"label"],u):fd(p[s],u)},h=c?function(v){return Df(v)}:function(v){return v};return e.forEach(function(v){if(v[i]){var p=d(n,h(v));if(p)l.push(v);else {var m=v[i].filter(function(g){return d(n,h(g))});m.length&&l.push(H(H({},v),{},U({},i,m)));}return}d(n,h(v))&&l.push(v);}),l},[e,r,o,n,t])};var Zm=0,MA=Mn();function TA(){var e;return MA?(e=Zm,Zm+=1):e="TEST_OR_SSR",e}function IA(e){var t=f__namespace.useState(),n=K(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){o("rc_select_".concat(TA()));},[]),e||r}var NA=["children","value"],AA=["children"];function DA(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=Xe(r,NA);return H({key:n,value:i!==void 0?i:n,children:o},a)}function qy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return wr(e).map(function(n,r){if(!f__namespace.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=Xe(s,AA);return t||!i?DA(n):H(H({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:qy(l)})}).filter(function(n){return n})}function kA(e,t,n,r,o){return f__namespace.useMemo(function(){var i=e,a=!e;a&&(i=qy(t));var s=new Map,l=new Map,c=function(h,v,p){p&&typeof p=="string"&&h.set(v[p],v);};function u(d){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v<d.length;v+=1){var p=d[v];!p[n.options]||h?(s.set(p[n.value],p),c(l,p,n.label),c(l,p,r),c(l,p,o)):u(p[n.options],!0);}}return u(i),{options:i,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function Qm(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var ov=function(){return null};ov.isSelectOptGroup=!0;var iv=function(){return null};iv.isSelectOption=!0;var Yy=f__namespace.forwardRef(function(e,t){var n=e.height,r=e.offset,o=e.children,i=e.prefixCls,a=e.onInnerResize,s=e.innerProps,l={},c={display:"flex",flexDirection:"column"};return r!==void 0&&(l={height:n,position:"relative",overflow:"hidden"},c=H(H({},c),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),f__namespace.createElement("div",{style:l},f__namespace.createElement(go,{onResize:function(d){var h=d.offsetHeight;h&&a&&a();}},f__namespace.createElement("div",he({style:c,className:X(U({},"".concat(i,"-holder-inner"),i)),ref:t},s),o)))});Yy.displayName="Filler";var LA=20;function Jm(e){return "touches"in e?e.touches[0].pageY:e.pageY}var FA=function(e){zo(n,e);var t=jo(n);function n(){var r;vn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.moveRaf=null,r.scrollbarRef=f__namespace.createRef(),r.thumbRef=f__namespace.createRef(),r.visibleTimeout=null,r.state={dragging:!1,pageY:null,startTop:null,visible:!1},r.delayHidden=function(){clearTimeout(r.visibleTimeout),r.setState({visible:!0}),r.visibleTimeout=setTimeout(function(){r.setState({visible:!1});},2e3);},r.onScrollbarTouchStart=function(s){s.preventDefault();},r.onContainerMouseDown=function(s){s.stopPropagation(),s.preventDefault();},r.patchEvents=function(){window.addEventListener("mousemove",r.onMouseMove),window.addEventListener("mouseup",r.onMouseUp),r.thumbRef.current.addEventListener("touchmove",r.onMouseMove),r.thumbRef.current.addEventListener("touchend",r.onMouseUp);},r.removeEvents=function(){var s;window.removeEventListener("mousemove",r.onMouseMove),window.removeEventListener("mouseup",r.onMouseUp),(s=r.scrollbarRef.current)===null||s===void 0||s.removeEventListener("touchstart",r.onScrollbarTouchStart),r.thumbRef.current&&(r.thumbRef.current.removeEventListener("touchstart",r.onMouseDown),r.thumbRef.current.removeEventListener("touchmove",r.onMouseMove),r.thumbRef.current.removeEventListener("touchend",r.onMouseUp)),wt.cancel(r.moveRaf);},r.onMouseDown=function(s){var l=r.props.onStartMove;r.setState({dragging:!0,pageY:Jm(s),startTop:r.getTop()}),l(),r.patchEvents(),s.stopPropagation(),s.preventDefault();},r.onMouseMove=function(s){var l=r.state,c=l.dragging,u=l.pageY,d=l.startTop,h=r.props.onScroll;if(wt.cancel(r.moveRaf),c){var v=Jm(s)-u,p=d+v,m=r.getEnableScrollRange(),g=r.getEnableHeightRange(),b=g?p/g:0,y=Math.ceil(b*m);r.moveRaf=wt(function(){h(y);});}},r.onMouseUp=function(){var s=r.props.onStopMove;r.setState({dragging:!1}),s(),r.removeEvents();},r.getSpinHeight=function(){var s=r.props,l=s.height,c=s.count,u=l/c*10;return u=Math.max(u,LA),u=Math.min(u,l/2),Math.floor(u)},r.getEnableScrollRange=function(){var s=r.props,l=s.scrollHeight,c=s.height;return l-c||0},r.getEnableHeightRange=function(){var s=r.props.height,l=r.getSpinHeight();return s-l||0},r.getTop=function(){var s=r.props.scrollTop,l=r.getEnableScrollRange(),c=r.getEnableHeightRange();if(s===0||l===0)return 0;var u=s/l;return u*c},r.showScroll=function(){var s=r.props,l=s.height,c=s.scrollHeight;return c>l},r}return pn(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown);}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden();}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout);}},{key:"render",value:function(){var o=this.state,i=o.dragging,a=o.visible,s=this.props,l=s.prefixCls,c=s.direction,u=this.getSpinHeight(),d=this.getTop(),h=this.showScroll(),v=h&&a,p=c==="rtl"?{left:0}:{right:0};return f__namespace.createElement("div",{ref:this.scrollbarRef,className:X("".concat(l,"-scrollbar"),U({},"".concat(l,"-scrollbar-show"),h)),style:H(H({width:8,top:0,bottom:0},p),{},{position:"absolute",display:v?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},f__namespace.createElement("div",{ref:this.thumbRef,className:X("".concat(l,"-scrollbar-thumb"),U({},"".concat(l,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:u,top:d,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(f__namespace.Component);function zA(e){var t=e.children,n=e.setRef,r=f__namespace.useCallback(function(o){n(o);},[]);return f__namespace.cloneElement(t,{ref:r})}function jA(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map(function(s,l){var c=t+l,u=o(s,c,{}),d=a(s);return f__namespace.createElement(zA,{key:d,setRef:function(v){return r(s,v)}},u)})}var HA=function(){function e(){vn(this,e),this.maps=void 0,this.maps=Object.create(null);}return pn(e,[{key:"set",value:function(n,r){this.maps[n]=r;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function BA(e,t,n){var r=f__namespace.useState(0),o=K(r,2),i=o[0],a=o[1],s=f.useRef(new Map),l=f.useRef(new HA),c=f.useRef();function u(){wt.cancel(c.current);}function d(){u(),c.current=wt(function(){s.current.forEach(function(v,p){if(v&&v.offsetParent){var m=gs(v),g=m.offsetHeight;l.current.get(p)!==g&&l.current.set(p,m.offsetHeight);}}),a(function(v){return v+1});});}function h(v,p){var m=e(v),g=s.current.get(m);p?(s.current.set(m,p),d()):s.current.delete(m),!g!=!p&&(p?t==null||t(v):n==null||n(v));}return f.useEffect(function(){return u},[]),[h,d,l.current,i]}function WA(e,t,n,r,o,i,a,s){var l=f__namespace.useRef();return function(c){if(c==null){s();return}if(wt.cancel(l.current),typeof c=="number")a(c);else if(c&&tt(c)==="object"){var u,d=c.align;"index"in c?u=c.index:u=t.findIndex(function(m){return o(m)===c.key});var h=c.offset,v=h===void 0?0:h,p=function m(g,b){if(!(g<0||!e.current)){var y=e.current.clientHeight,w=!1,$=b;if(y){for(var S=b||d,C=0,x=0,_=0,M=Math.min(t.length,u),E=0;E<=M;E+=1){var I=o(t[E]);x=C;var O=n.get(I);_=x+(O===void 0?r:O),C=_,E===u&&O===void 0&&(w=!0);}var R=null;switch(S){case"top":R=x-v;break;case"bottom":R=_-y+v;break;default:{var P=e.current.scrollTop,T=P+y;x<P?$="top":_>T&&($="bottom");}}R!==null&&R!==e.current.scrollTop&&a(R);}l.current=wt(function(){w&&i(),m(g-1,$);},2);}};p(3);}}}function VA(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var s={__EMPTY_ITEM__:!0};function l(p){return p!==void 0?n(p):s}for(var c=null,u=Math.abs(r-o)!==1,d=0;d<a.length;d+=1){var h=l(i[d]),v=l(a[d]);if(h!==v){c=d,u=u||h!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:u}}function UA(e,t,n){var r=f__namespace.useState(e),o=K(r,2),i=o[0],a=o[1],s=f__namespace.useState(null),l=K(s,2),c=l[0],u=l[1];return f__namespace.useEffect(function(){var d=VA(i||[],e||[],t);(d==null?void 0:d.index)!==void 0&&(n==null||n(d.index),u(e[d.index])),a(e);},[e]),[c]}var GA=(typeof navigator>"u"?"undefined":tt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Zy=function(e,t){var n=f.useRef(!1),r=f.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1;},50);}var i=f.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=a<0&&i.current.top||a>0&&i.current.bottom;return s&&l?(clearTimeout(r.current),n.current=!1):(!l||n.current)&&o(),!n.current&&l}};function KA(e,t,n,r){var o=f.useRef(0),i=f.useRef(null),a=f.useRef(null),s=f.useRef(!1),l=Zy(t,n);function c(d){if(e){wt.cancel(i.current);var h=d.deltaY;o.current+=h,a.current=h,!l(h)&&(GA||d.preventDefault(),i.current=wt(function(){var v=s.current?10:1;r(o.current*v),o.current=0;}));}}function u(d){e&&(s.current=d.detail===a.current);}return [c,u]}var XA=14/15;function qA(e,t,n){var r=f.useRef(!1),o=f.useRef(0),i=f.useRef(null),a=f.useRef(null),s,l=function(h){if(r.current){var v=Math.ceil(h.touches[0].pageY),p=o.current-v;o.current=v,n(p)&&h.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){p*=XA,(!n(p,!0)||Math.abs(p)<=.1)&&clearInterval(a.current);},16);}},c=function(){r.current=!1,s();},u=function(h){s(),h.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(h.touches[0].pageY),i.current=h.target,i.current.addEventListener("touchmove",l),i.current.addEventListener("touchend",c));};s=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",c));},Ht(function(){return e&&t.current.addEventListener("touchstart",u),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),s(),clearInterval(a.current);}},[e]);}var YA=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],ZA=[],QA={overflowY:"auto",overflowAnchor:"none"};function JA(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,h=e.itemKey,v=e.virtual,p=e.direction,m=e.component,g=m===void 0?"div":m,b=e.onScroll,y=e.onVisibleChange,w=e.innerProps,$=Xe(e,YA),S=!!(v!==!1&&i&&a),C=S&&u&&a*u.length>i,x=f.useState(0),_=K(x,2),M=_[0],E=_[1],I=f.useState(!1),O=K(I,2),R=O[0],P=O[1],T=X(r,U({},"".concat(r,"-rtl"),p==="rtl"),o),A=u||ZA,N=f.useRef(),D=f.useRef(),F=f.useRef(),W=f__namespace.useCallback(function(be){return typeof h=="function"?h(be):be==null?void 0:be[h]},[h]),z={getKey:W};function L(be){E(function(we){var Ye;typeof be=="function"?Ye=be(we):Ye=be;var Ue=ye(Ye);return N.current.scrollTop=Ue,Ue});}var V=f.useRef({start:0,end:A.length}),G=f.useRef(),q=UA(A,W),ne=K(q,1),Z=ne[0];G.current=Z;var Y=BA(W,null,null),te=K(Y,4),re=te[0],se=te[1],de=te[2],ee=te[3],ie=f__namespace.useMemo(function(){if(!S)return {scrollHeight:void 0,start:0,end:A.length-1,offset:void 0};if(!C){var be;return {scrollHeight:((be=D.current)===null||be===void 0?void 0:be.offsetHeight)||0,start:0,end:A.length-1,offset:void 0}}for(var we=0,Ye,Ue,ft,$e=A.length,Ee=0;Ee<$e;Ee+=1){var je=A[Ee],Re=W(je),Je=de.get(Re),Et=we+(Je===void 0?a:Je);Et>=M&&Ye===void 0&&(Ye=Ee,Ue=we),Et>M+i&&ft===void 0&&(ft=Ee),we=Et;}return Ye===void 0&&(Ye=0,Ue=0,ft=Math.ceil(i/a)),ft===void 0&&(ft=A.length-1),ft=Math.min(ft+1,A.length),{scrollHeight:we,start:Ye,end:ft,offset:Ue}},[C,S,M,A,ee,i]),ce=ie.scrollHeight,le=ie.start,ve=ie.end,oe=ie.offset;V.current.start=le,V.current.end=ve;var pe=ce-i,ue=f.useRef(pe);ue.current=pe;function ye(be){var we=be;return Number.isNaN(ue.current)||(we=Math.min(we,ue.current)),we=Math.max(we,0),we}var Ie=M<=0,De=M>=pe,Le=Zy(Ie,De);function _e(be){var we=be;L(we);}function qe(be){var we=be.currentTarget.scrollTop;we!==M&&L(we),b==null||b(be);}var vt=KA(S,Ie,De,function(be){L(function(we){var Ye=we+be;return Ye});}),et=K(vt,2),Qe=et[0],ke=et[1];qA(S,N,function(be,we){return Le(be,we)?!1:(Qe({preventDefault:function(){},deltaY:be}),!0)}),Ht(function(){function be(we){S&&we.preventDefault();}return N.current.addEventListener("wheel",Qe),N.current.addEventListener("DOMMouseScroll",ke),N.current.addEventListener("MozMousePixelScroll",be),function(){N.current&&(N.current.removeEventListener("wheel",Qe),N.current.removeEventListener("DOMMouseScroll",ke),N.current.removeEventListener("MozMousePixelScroll",be));}},[S]);var ze=WA(N,A,de,a,W,se,L,function(){var be;(be=F.current)===null||be===void 0||be.delayHidden();});f__namespace.useImperativeHandle(t,function(){return {scrollTo:ze}}),Ht(function(){if(y){var be=A.slice(le,ve+1);y(be,A);}},[le,ve,A]);var dt=jA(A,le,ve,re,d,z),at=null;return i&&(at=H(U({},l?"height":"maxHeight",i),QA),S&&(at.overflowY="hidden",R&&(at.pointerEvents="none"))),f__namespace.createElement("div",he({style:H(H({},c),{},{position:"relative"}),className:T},$),f__namespace.createElement(g,{className:"".concat(r,"-holder"),style:at,ref:N,onScroll:qe},f__namespace.createElement(Yy,{prefixCls:r,height:ce,offset:oe,onInnerResize:se,ref:D,innerProps:w},dt)),S&&f__namespace.createElement(FA,{ref:F,prefixCls:r,scrollTop:M,height:i,scrollHeight:ce,count:A.length,direction:p,onScroll:_e,onStartMove:function(){P(!0);},onStopMove:function(){P(!1);}}))}var Qy=f__namespace.forwardRef(JA);Qy.displayName="List";var Jy=f__namespace.createContext(null);function eD(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var tD=["disabled","title","children","style","className"];function eg(e){return typeof e=="string"||typeof e=="number"}var nD=function(t,n){var r=FN(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,h=r.onPopupScroll,v=f__namespace.useContext(Jy),p=v.flattenOptions,m=v.onActiveValue,g=v.defaultActiveFirstOption,b=v.onSelect,y=v.menuItemSelectedIcon,w=v.rawValues,$=v.fieldNames,S=v.virtual,C=v.direction,x=v.listHeight,_=v.listItemHeight,M="".concat(o,"-item"),E=Ds(function(){return p},[a,p],function(Z,Y){return Y[0]&&Z[1]!==Y[1]}),I=f__namespace.useRef(null),O=function(Y){Y.preventDefault();},R=function(Y){I.current&&I.current.scrollTo(typeof Y=="number"?{index:Y}:Y);},P=function(Y){for(var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=E.length,se=0;se<re;se+=1){var de=(Y+se*te+re)%re,ee=E[de],ie=ee.group,ce=ee.data;if(!ie&&!ce.disabled)return de}return -1},T=f__namespace.useState(function(){return P(0)}),A=K(T,2),N=A[0],D=A[1],F=function(Y){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;D(Y);var re={source:te?"keyboard":"mouse"},se=E[Y];if(!se){m(null,-1,re);return}m(se.value,Y,re);};f.useEffect(function(){F(g!==!1?P(0):-1);},[E.length,c]);var W=f__namespace.useCallback(function(Z){return w.has(Z)&&l!=="combobox"},[l,ge(w).toString(),w.size]);f.useEffect(function(){var Z=setTimeout(function(){if(!s&&a&&w.size===1){var te=Array.from(w)[0],re=E.findIndex(function(se){var de=se.data;return de.value===te});re!==-1&&(F(re),R(re));}});if(a){var Y;(Y=I.current)===null||Y===void 0||Y.scrollTo(void 0);}return function(){return clearTimeout(Z)}},[a,c,p.length]);var z=function(Y){Y!==void 0&&b(Y,{selected:!w.has(Y)}),s||u(!1);};if(f__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(Y){var te=Y.which,re=Y.ctrlKey;switch(te){case J.N:case J.P:case J.UP:case J.DOWN:{var se=0;if(te===J.UP?se=-1:te===J.DOWN?se=1:eD()&&re&&(te===J.N?se=1:te===J.P&&(se=-1)),se!==0){var de=P(N+se,se);R(de),F(de,!0);}break}case J.ENTER:{var ee=E[N];ee&&!ee.data.disabled?z(ee.value):z(void 0),a&&Y.preventDefault();break}case J.ESC:u(!1),a&&Y.stopPropagation();}},onKeyUp:function(){},scrollTo:function(Y){R(Y);}}}),E.length===0)return f__namespace.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(M,"-empty"),onMouseDown:O},d);var L=Object.keys($).map(function(Z){return $[Z]}),V=function(Y){return Y.label};function G(Z,Y){var te=Z.group;return {role:te?"presentation":"option",id:"".concat(i,"_list_").concat(Y)}}var q=function(Y){var te=E[Y];if(!te)return null;var re=te.data||{},se=re.value,de=te.group,ee=dc(re,!0),ie=V(te);return te?f__namespace.createElement("div",he({"aria-label":typeof ie=="string"&&!de?ie:null},ee,{key:Y},G(te,Y),{"aria-selected":W(se)}),se):null},ne={role:"listbox",id:"".concat(i,"_list")};return f__namespace.createElement(f__namespace.Fragment,null,S&&f__namespace.createElement("div",he({},ne,{style:{height:0,width:0,overflow:"hidden"}}),q(N-1),q(N),q(N+1)),f__namespace.createElement(Qy,{itemKey:"key",ref:I,data:E,height:x,itemHeight:_,fullHeight:!1,onMouseDown:O,onScroll:h,virtual:S,direction:C,innerProps:S?null:ne},function(Z,Y){var te,re=Z.group,se=Z.groupOption,de=Z.data,ee=Z.label,ie=Z.value,ce=de.key;if(re){var le,ve=(le=de.title)!==null&&le!==void 0?le:eg(ee)?ee.toString():void 0;return f__namespace.createElement("div",{className:X(M,"".concat(M,"-group")),title:ve},ee!==void 0?ee:ce)}var oe=de.disabled,pe=de.title;de.children;var ue=de.style,ye=de.className,Ie=Xe(de,tD),De=xr(Ie,L),Le=W(ie),_e="".concat(M,"-option"),qe=X(M,_e,ye,(te={},U(te,"".concat(_e,"-grouped"),se),U(te,"".concat(_e,"-active"),N===Y&&!oe),U(te,"".concat(_e,"-disabled"),oe),U(te,"".concat(_e,"-selected"),Le),te)),vt=V(Z),et=!y||typeof y=="function"||Le,Qe=typeof vt=="number"?vt:vt||ie,ke=eg(Qe)?Qe.toString():void 0;return pe!==void 0&&(ke=pe),f__namespace.createElement("div",he({},dc(De),S?{}:G(Z,Y),{"aria-selected":Le,className:qe,title:ke,onMouseMove:function(){N===Y||oe||F(Y);},onClick:function(){oe||z(ie);},style:ue}),f__namespace.createElement("div",{className:"".concat(_e,"-content")},Qe),f__namespace.isValidElement(y)||Le,et&&f__namespace.createElement(vc,{className:"".concat(M,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:Le}},Le?"✓":null))}))},eC=f__namespace.forwardRef(nD);eC.displayName="OptionList";var rD=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],oD=["inputValue"];function iD(e){return !e||tt(e)!=="object"}var aD=f__namespace.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,h=d===void 0?!0:d,v=e.onSelect,p=e.onDeselect,m=e.dropdownMatchSelectWidth,g=m===void 0?!0:m,b=e.filterOption,y=e.filterSort,w=e.optionFilterProp,$=e.optionLabelProp,S=e.options,C=e.children,x=e.defaultActiveFirstOption,_=e.menuItemSelectedIcon,M=e.virtual,E=e.direction,I=e.listHeight,O=I===void 0?200:I,R=e.listItemHeight,P=R===void 0?20:R,T=e.value,A=e.defaultValue,N=e.labelInValue,D=e.onChange,F=Xe(e,rD),W=IA(n),z=kf(r),L=!!(!S&&C),V=f__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),G=f__namespace.useMemo(function(){return Xy(s,L)},[JSON.stringify(s),L]),q=en("",{value:c!==void 0?c:l,postState:function(ae){return ae||""}}),ne=K(q,2),Z=ne[0],Y=ne[1],te=kA(S,C,G,w,$),re=te.valueOptions,se=te.labelOptions,de=te.options,ee=f__namespace.useCallback(function(fe){var ae=Vy(fe);return ae.map(function(Se){var xe,Ze,pt,xt,Xt;if(iD(Se))xe=Se;else {var Vt;pt=Se.key,Ze=Se.label,xe=(Vt=Se.value)!==null&&Vt!==void 0?Vt:pt;}var Ae=re.get(xe);if(Ae){var Ge;Ze===void 0&&(Ze=Ae==null?void 0:Ae[$||G.label]),pt===void 0&&(pt=(Ge=Ae==null?void 0:Ae.key)!==null&&Ge!==void 0?Ge:xe),xt=Ae==null?void 0:Ae.disabled,Xt=Ae==null?void 0:Ae.title;}return {label:Ze,value:xe,key:pt,disabled:xt,title:Xt}})},[G,$,re]),ie=en(A,{value:T}),ce=K(ie,2),le=ce[0],ve=ce[1],oe=f__namespace.useMemo(function(){var fe,ae=ee(le);return r==="combobox"&&!((fe=ae[0])!==null&&fe!==void 0&&fe.value)?[]:ae},[le,ee,r]),pe=_A(oe,re),ue=K(pe,2),ye=ue[0],Ie=ue[1],De=f__namespace.useMemo(function(){if(!r&&ye.length===1){var fe=ye[0];if(fe.value===null&&(fe.label===null||fe.label===void 0))return []}return ye.map(function(ae){var Se;return H(H({},ae),{},{label:(Se=ae.label)!==null&&Se!==void 0?Se:ae.value})})},[r,ye]),Le=f__namespace.useMemo(function(){return new Set(ye.map(function(fe){return fe.value}))},[ye]);f__namespace.useEffect(function(){if(r==="combobox"){var fe,ae=(fe=ye[0])===null||fe===void 0?void 0:fe.value;Y(tA(ae)?String(ae):"");}},[ye]);var _e=Qm(function(fe,ae){var Se,xe=ae??fe;return Se={},U(Se,G.value,fe),U(Se,G.label,xe),Se}),qe=f__namespace.useMemo(function(){if(r!=="tags")return de;var fe=ge(de),ae=function(xe){return re.has(xe)};return ge(ye).sort(function(Se,xe){return Se.value<xe.value?-1:1}).forEach(function(Se){var xe=Se.value;ae(xe)||fe.push(_e(xe,Se.label));}),fe},[_e,de,re,ye,r]),vt=RA(qe,G,Z,V,w),et=f__namespace.useMemo(function(){return r!=="tags"||!Z||vt.some(function(fe){return fe[w||"value"]===Z})?vt:[_e(Z)].concat(ge(vt))},[_e,w,r,vt,Z]),Qe=f__namespace.useMemo(function(){return y?ge(et).sort(function(fe,ae){return y(fe,ae)}):et},[et,y]),ke=f__namespace.useMemo(function(){return xA(Qe,{fieldNames:G,childrenAsData:L})},[Qe,G,L]),ze=function(ae){var Se=ee(ae);if(ve(Se),D&&(Se.length!==ye.length||Se.some(function(pt,xt){var Xt;return ((Xt=ye[xt])===null||Xt===void 0?void 0:Xt.value)!==(pt==null?void 0:pt.value)}))){var xe=N?Se:Se.map(function(pt){return pt.value}),Ze=Se.map(function(pt){return Df(Ie(pt.value))});D(z?xe:xe[0],z?Ze:Ze[0]);}},dt=f__namespace.useState(null),at=K(dt,2),be=at[0],we=at[1],Ye=f__namespace.useState(0),Ue=K(Ye,2),ft=Ue[0],$e=Ue[1],Ee=x!==void 0?x:r!=="combobox",je=f__namespace.useCallback(function(fe,ae){var Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xe=Se.source,Ze=xe===void 0?"keyboard":xe;$e(ae),a&&r==="combobox"&&fe!==null&&Ze==="keyboard"&&we(String(fe));},[a,r]),Re=function(ae,Se,xe){var Ze=function(){var Zt,Te=Ie(ae);return [N?{label:Te==null?void 0:Te[G.label],value:ae,key:(Zt=Te==null?void 0:Te.key)!==null&&Zt!==void 0?Zt:ae}:ae,Df(Te)]};if(Se&&v){var pt=Ze(),xt=K(pt,2),Xt=xt[0],Vt=xt[1];v(Xt,Vt);}else if(!Se&&p&&xe!=="clear"){var Ae=Ze(),Ge=K(Ae,2),Me=Ge[0],$t=Ge[1];p(Me,$t);}},Je=Qm(function(fe,ae){var Se,xe=z?ae.selected:!0;xe?Se=z?[].concat(ge(ye),[fe]):[fe]:Se=ye.filter(function(Ze){return Ze.value!==fe}),ze(Se),Re(fe,xe),r==="combobox"?we(""):(!kf||h)&&(Y(""),we(""));}),Et=function(ae,Se){ze(ae);var xe=Se.type,Ze=Se.values;(xe==="remove"||xe==="clear")&&Ze.forEach(function(pt){Re(pt.value,!1,xe);});},Ft=function(ae,Se){if(Y(ae),we(null),Se.source==="submit"){var xe=(ae||"").trim();if(xe){var Ze=Array.from(new Set([].concat(ge(Le),[xe])));ze(Ze),Re(xe,!0),Y("");}return}Se.source!=="blur"&&(r==="combobox"&&ze(ae),u==null||u(ae));},kt=function(ae){var Se=ae;r!=="tags"&&(Se=ae.map(function(Ze){var pt=se.get(Ze);return pt==null?void 0:pt.value}).filter(function(Ze){return Ze!==void 0}));var xe=Array.from(new Set([].concat(ge(Le),ge(Se))));ze(xe),xe.forEach(function(Ze){Re(Ze,!0);});},Ne=f__namespace.useMemo(function(){var fe=M!==!1&&g!==!1;return H(H({},te),{},{flattenOptions:ke,onActiveValue:je,defaultActiveFirstOption:Ee,onSelect:Je,menuItemSelectedIcon:_,rawValues:Le,fieldNames:G,virtual:fe,direction:E,listHeight:O,listItemHeight:P,childrenAsData:L})},[te,ke,je,Ee,Je,_,Le,G,M,g,O,P,L]);return f__namespace.createElement(Jy.Provider,{value:Ne},f__namespace.createElement(PA,he({},F,{id:W,prefixCls:i,ref:t,omitDomProps:oD,mode:r,displayValues:De,onDisplayValuesChange:Et,direction:E,searchValue:Z,onSearch:Ft,autoClearSearchValue:h,onSearchSplit:kt,dropdownMatchSelectWidth:g,OptionList:eC,emptyOptions:!ke.length,activeValue:be,activeDescendantId:"".concat(W,"_list_").concat(ft)})))}),av=aD;av.Option=iv;av.OptGroup=ov;function po(e,t,n){return X({[`${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 du=(e,t)=>t||e,sD=()=>{const[,e]=bi(),n=new nn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return f__namespace.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},f__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},f__namespace.createElement("g",{transform:"translate(24 31.67)"},f__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),f__namespace.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),f__namespace.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),f__namespace.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),f__namespace.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),f__namespace.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),f__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},f__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),f__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},lD=sD,cD=()=>{const[,e]=bi(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=f.useMemo(()=>({borderColor:new nn(t).onBackground(o).toHexShortString(),shadowColor:new nn(n).onBackground(o).toHexShortString(),contentColor:new nn(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return f__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},f__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},f__namespace.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),f__namespace.createElement("g",{fillRule:"nonzero",stroke:i},f__namespace.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),f__namespace.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},uD=cD,dD=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return {[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},fD=mn("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=At(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [dD(r)]});var hD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const tC=f__namespace.createElement(lD,null),nC=f__namespace.createElement(uD,null),sv=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=tC,description:i,children:a,imageStyle:s}=e,l=hD(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);const{getPrefixCls:c,direction:u}=f__namespace.useContext(mt),d=c("empty",r),[h,v]=fD(d),[p]=Wh("Empty"),m=typeof i<"u"?i:p==null?void 0:p.description,g=typeof m=="string"?m:"empty";let b=null;return typeof o=="string"?b=f__namespace.createElement("img",{alt:g,src:o}):b=o,h(f__namespace.createElement("div",Object.assign({className:X(v,d,{[`${d}-normal`]:o===nC,[`${d}-rtl`]:u==="rtl"},t,n)},l),f__namespace.createElement("div",{className:`${d}-image`,style:s},b),m&&f__namespace.createElement("div",{className:`${d}-description`},m),a&&f__namespace.createElement("div",{className:`${d}-footer`},a)))};sv.PRESENTED_IMAGE_DEFAULT=tC;sv.PRESENTED_IMAGE_SIMPLE=nC;const Ta=sv,vD=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(mt),r=n("empty");switch(t){case"Table":case"List":return f.createElement(Ta,{image:Ta.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f.createElement(Ta,{image:Ta.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return f.createElement(Ta,null)}},pD=vD,mD=e=>{const{controlPaddingHorizontal:t}=e;return {position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},gD=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},Jt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
            &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
            &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft
          `]:{animationName:Ny},[`
            &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
            &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft
          `]:{animationName:Dy},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Ay},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:ky},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},mD(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(Object.assign({flex:"auto"},Ki),{"> *":Object.assign({},Ki)}),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},fc(e,"slide-up"),fc(e,"slide-down"),Fm(e,"move-up"),Fm(e,"move-down")]},bD=gD,_i=2,rC=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return [o,i]};function hd(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=rC(e),s=t?`${n}-${t}`:"";return {[`${n}-multiple${s}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-_i}px ${_i*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${_i}px 0`,lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[`
        &${n}-show-arrow ${n}-selector,
        &${n}-allow-clear ${n}-selector
      `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:_i,marginBottom:_i,lineHeight:`${i-e.lineWidth*2}px`,background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:_i*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},js()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,[`
          &-input,
          &-mirror
        `]:{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const yD=e=>{const{componentCls:t}=e,n=At(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=At(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=rC(e);return [hd(e),hd(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},hd(r,"lg")]},CD=yD;function vd(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-e.lineWidth*2,a=Math.ceil(e.fontSize*1.25),s=t?`${n}-${t}`:"";return {[`${n}-single${s}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},Jt(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`
          ${n}-selection-item,
          ${n}-selection-placeholder
        `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
        &${n}-show-arrow ${n}-selection-item,
        &${n}-show-arrow ${n}-selection-placeholder
      `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function SD(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [vd(e),vd(At(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[`
            &${t}-show-arrow ${t}-selection-item,
            &${t}-show-arrow ${t}-selection-placeholder
          `]:{paddingInlineEnd:e.fontSize*1.5}}}},vd(At(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const wD=e=>{const{componentCls:t}=e;return {position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},pd=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,s=n?{[`${r}-selector`]:{borderColor:o}}:{};return {[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},xD=e=>{const{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},$D=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return {[t]:Object.assign(Object.assign({},Jt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},wD(e)),xD(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},Ki),{"> *":Object.assign({lineHeight:"inherit"},Ki)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},Ki),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},js()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},ED=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%"}}},$D(e),SD(e),CD(e),bD(e),{[`${t}-rtl`]:{direction:"rtl"}},pd(t,At(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),pd(`${t}-status-error`,At(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),pd(`${t}-status-warning`,At(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),cu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},OD=mn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=At(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return [ED(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),PD=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible"};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 _D(e,t){return e||PD(t)}function RD(e){return e??!0}var MD={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 TD=MD;var ID=function(t,n){return f__namespace.createElement(Qn,he({},t,{ref:n,icon:TD}))};const ND=f__namespace.forwardRef(ID);var AD={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 DD=AD;var kD=function(t,n){return f__namespace.createElement(Qn,he({},t,{ref:n,icon:DD}))};const oC=f__namespace.forwardRef(kD);var LD={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 FD=LD;var zD=function(t,n){return f__namespace.createElement(Qn,he({},t,{ref:n,icon:FD}))};const iC=f__namespace.forwardRef(zD);function jD(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showArrow:c,feedbackIcon:u}=e;const d=n??f__namespace.createElement(qh,null),h=g=>f__namespace.createElement(f__namespace.Fragment,null,c!==!1&&g,s&&u);let v=null;if(t!==void 0)v=h(t);else if(i)v=h(f__namespace.createElement(wy,{spin:!0}));else {const g=`${l}-suffix`;v=b=>{let{open:y,showSearch:w}=b;return h(y&&w?f__namespace.createElement(iC,{className:g}):f__namespace.createElement(oC,{className:g}))};}let p=null;r!==void 0?p=r:a?p=f__namespace.createElement(ND,null):p=null;let m=null;return o!==void 0?m=o:m=f__namespace.createElement(Yh,null),{clearIcon:d,suffixIcon:v,itemIcon:p,removeIcon:m}}var HD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const aC="SECRET_COMBOBOX_MODE_DO_NOT_USE",BD=(e,t)=>{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:h=24,size:v,disabled:p,notFoundContent:m,status:g,showArrow:b,builtinPlacements:y,dropdownMatchSelectWidth:w,popupMatchSelectWidth:$,direction:S}=e,C=HD(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction"]);const{getPopupContainer:x,getPrefixCls:_,renderEmpty:M,direction:E,virtual:I,popupMatchSelectWidth:O,popupOverflow:R,select:P}=f__namespace.useContext(mt),T=_("select",r),A=_(),N=S??E,{compactSize:D,compactItemClassnames:F}=Bs(T,N),[W,z]=OD(T),L=f__namespace.useMemo(()=>{const{mode:Le}=C;if(Le!=="combobox")return Le===aC?"combobox":Le},[C.mode]),V=L==="multiple"||L==="tags",G=RD(b),q=(n=$??w)!==null&&n!==void 0?n:O,{status:ne,hasFeedback:Z,isFormItemInput:Y,feedbackIcon:te}=f__namespace.useContext(Kr),re=du(ne,g);let se;m!==void 0?se=m:L==="combobox"?se=null:se=(M==null?void 0:M("Select"))||f__namespace.createElement(pD,{componentName:"Select"});const{suffixIcon:de,itemIcon:ee,removeIcon:ie,clearIcon:ce}=jD(Object.assign(Object.assign({},C),{multiple:V,hasFeedback:Z,feedbackIcon:te,showArrow:G,prefixCls:T})),le=xr(C,["suffixIcon","itemIcon"]),ve=X(l||c,{[`${T}-dropdown-${N}`]:N==="rtl"},a,z),oe=Or(Le=>{var _e;return (_e=D??v)!==null&&_e!==void 0?_e:Le}),pe=f__namespace.useContext(Bo),ue=p??pe,ye=X({[`${T}-lg`]:oe==="large",[`${T}-sm`]:oe==="small",[`${T}-rtl`]:N==="rtl",[`${T}-borderless`]:!o,[`${T}-in-form-item`]:Y},po(T,re,Z),F,i,a,z),Ie=f__namespace.useMemo(()=>d!==void 0?d:N==="rtl"?"bottomRight":"bottomLeft",[d,N]),De=_D(y,R);return W(f__namespace.createElement(av,Object.assign({ref:t,virtual:I,showSearch:P==null?void 0:P.showSearch},le,{dropdownMatchSelectWidth:q,builtinPlacements:De,transitionName:uu(A,KI(d),C.transitionName),listHeight:u,listItemHeight:h,mode:L,prefixCls:T,placement:Ie,direction:N,inputIcon:de,menuItemSelectedIcon:ee,removeIcon:ie,clearIcon:ce,notFoundContent:se,className:ye,getPopupContainer:s||x,dropdownClassName:ve,showArrow:Z||G,disabled:ue})))},Ca=f__namespace.forwardRef(BD),WD=Fy(Ca);Ca.SECRET_COMBOBOX_MODE_DO_NOT_USE=aC;Ca.Option=iv;Ca.OptGroup=ov;Ca._InternalPanelDoNotUseOrYouWillBeFired=WD;const VD=Ca,fa=e=>e?typeof e=="function"?e():e:null;var Ri={shiftX:64,adjustY:1},Mi={adjustX:1,shiftY:!0},nr=[0,0],UD={left:{points:["cr","cl"],overflow:Mi,offset:[-4,0],targetOffset:nr},right:{points:["cl","cr"],overflow:Mi,offset:[4,0],targetOffset:nr},top:{points:["bc","tc"],overflow:Ri,offset:[0,-4],targetOffset:nr},bottom:{points:["tc","bc"],overflow:Ri,offset:[0,4],targetOffset:nr},topLeft:{points:["bl","tl"],overflow:Ri,offset:[0,-4],targetOffset:nr},leftTop:{points:["tr","tl"],overflow:Mi,offset:[-4,0],targetOffset:nr},topRight:{points:["br","tr"],overflow:Ri,offset:[0,-4],targetOffset:nr},rightTop:{points:["tl","tr"],overflow:Mi,offset:[4,0],targetOffset:nr},bottomRight:{points:["tr","br"],overflow:Ri,offset:[0,4],targetOffset:nr},rightBottom:{points:["bl","br"],overflow:Mi,offset:[4,0],targetOffset:nr},bottomLeft:{points:["tl","bl"],overflow:Ri,offset:[0,4],targetOffset:nr},leftBottom:{points:["br","bl"],overflow:Mi,offset:[-4,0],targetOffset:nr}};function lv(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return f__namespace.createElement("div",{className:X("".concat(n,"-content"),i),style:a},f__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var GD=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],KD=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,h=d===void 0?"rc-tooltip":d,v=t.children,p=t.onVisibleChange,m=t.afterVisibleChange,g=t.transitionName,b=t.animation,y=t.motion,w=t.placement,$=w===void 0?"right":w,S=t.align,C=S===void 0?{}:S,x=t.destroyTooltipOnHide,_=x===void 0?!1:x,M=t.defaultVisible,E=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var O=t.overlay,R=t.id,P=t.showArrow,T=P===void 0?!0:P,A=Xe(t,GD),N=f.useRef(null);f.useImperativeHandle(n,function(){return N.current});var D=H({},A);"visible"in t&&(D.popupVisible=t.visible);var F=function(){return f__namespace.createElement(lv,{key:"content",prefixCls:h,id:R,overlayInnerStyle:I},O)};return f__namespace.createElement(rv,he({popupClassName:r,prefixCls:h,popup:F,action:i,builtinPlacements:UD,popupPlacement:$,ref:N,popupAlign:C,getPopupContainer:E,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:b,popupMotion:y,defaultPopupVisible:M,autoDestroy:_,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:T},D),v)};const XD=f.forwardRef(KD),sC=8;function lC(e){const t=sC,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function Sl(e,t){return e?t:{}}function cC(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:h,dropdownArrowOffset:v}=lC({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"},PM(r,o,i,s,a)),{"&:before":{background:s}})]},Sl(!!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:v}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:v}}})),Sl(!!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:v}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:v}}})),Sl(!!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:h},[`&-placement-leftBottom ${n}-arrow`]:{bottom:h}})),Sl(!!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:h},[`&-placement-rightBottom ${n}-arrow`]:{bottom:h}}))}}function qD(e,t,n,r){if(r===!1)return {adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.dropdownArrowOffset*2+n;break;case"left":case"right":i.shiftY=t.dropdownArrowOffsetVertical*2+n;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const tg={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"]}},YD={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"]}},ZD=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function QD(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(tg).forEach(c=>{const u=r&&YD[c]||tg[c],d=Object.assign(Object.assign({},u),{offset:[0,0]});switch(l[c]=d,ZD.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 h=lC({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-h.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":d.offset[0]=h.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":d.offset[1]=-h.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":d.offset[1]=h.dropdownArrowOffset+s;break}d.overflow=qD(c,h,t,n),a&&(d.htmlRegion="visibleFirst");}),l}const $o=(e,t)=>new nn(e).setAlpha(t).toRgbString(),Ti=(e,t)=>new nn(e).lighten(t).toHexString(),JD=e=>{const t=bo(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]}},ek=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:$o(r,.85),colorTextSecondary:$o(r,.65),colorTextTertiary:$o(r,.45),colorTextQuaternary:$o(r,.25),colorFill:$o(r,.18),colorFillSecondary:$o(r,.12),colorFillTertiary:$o(r,.08),colorFillQuaternary:$o(r,.04),colorBgElevated:Ti(n,12),colorBgContainer:Ti(n,8),colorBgLayout:Ti(n,0),colorBgSpotlight:Ti(n,26),colorBorder:Ti(n,26),colorBorderSecondary:Ti(n,19)}},tk=(e,t)=>{const n=Object.keys(Vh).map(o=>{const i=bo(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${o}-${l+1}`]=i[l],a[`${o}${l+1}`]=i[l],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??tu(e);return Object.assign(Object.assign(Object.assign({},r),n),Q0(e,{generateColorPalettes:JD,generateNeutralColorPalettes:ek}))},nk=tk;function rk(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 ok=(e,t)=>{const n=t??tu(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),rk(t??e)),J0(r)),{controlHeight:o}),Z0(Object.assign(Object.assign({},n),{controlHeight:o})))},ik=ok;function ak(){const[e,t,n]=bi();return {theme:e,token:t,hashId:n}}const pc={defaultConfig:sc,defaultSeed:sc.token,useToken:ak,defaultAlgorithm:tu,darkAlgorithm:nk,compactAlgorithm:ik},sk=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Jt(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,sC)}},[`${t}-content`]:{position:"relative"}}),ny(e,(h,v)=>{let{darkColor:p}=v;return {[`&${t}-${h}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},cC(At(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},uC=(e,t)=>mn("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:s}=r,l=At(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return [sk(l),Ly(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return {zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),lk=ys.map(e=>`${e}-inverse`),ck=["success","processing","error","default","warning"];function dC(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ge(lk),ge(ys)).includes(e):ys.includes(e)}function uk(e){return ck.includes(e)}function fC(e,t){const n=dC(t),r=X({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function dk(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=f__namespace.useContext(mt),l=s("tooltip",t),[c,u]=uC(l,!0),d=fC(l,i),h=Object.assign(Object.assign({},a),d.overlayStyle),v=d.arrowStyle;return c(f__namespace.createElement("div",{className:X(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className),style:v},f__namespace.createElement("div",{className:`${l}-arrow`}),f__namespace.createElement(lv,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))}var fk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const{useToken:hk}=pc,vk=(e,t)=>{const n={},r=Object.assign({},e);return t.forEach(o=>{e&&o in e&&(n[o]=e[o],delete r[o]);}),{picked:n,omitted:r}};function pk(e,t){const n=e.type;if((n.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||n.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||n.__ANT_RADIO===!0&&e.props.disabled){const{picked:r,omitted:o}=vk(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=Object.assign(Object.assign({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},o),{pointerEvents:"none"}),s=$r(e,{style:a,className:null});return f__namespace.createElement("span",{style:i,className:X(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const hC=f__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:v,arrow:p=!0,title:m,overlay:g,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0}=e,$=!!p,{token:S}=hk(),{getPopupContainer:C,getPrefixCls:x,direction:_}=f__namespace.useContext(mt),M=f__namespace.useRef(null),E=()=>{var oe;(oe=M.current)===null||oe===void 0||oe.forceAlign();};f__namespace.useImperativeHandle(t,()=>({forceAlign:E,forcePopupAlign:()=>{E();}}));const[I,O]=en(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=!m&&!g&&m!==0,P=oe=>{var pe,ue;O(R?!1:oe),R||((pe=e.onOpenChange)===null||pe===void 0||pe.call(e,oe),(ue=e.onVisibleChange)===null||ue===void 0||ue.call(e,oe));},T=f__namespace.useMemo(()=>{var oe,pe;let ue=y;return typeof p=="object"&&(ue=(pe=(oe=p.pointAtCenter)!==null&&oe!==void 0?oe:p.arrowPointAtCenter)!==null&&pe!==void 0?pe:y),b||QD({arrowPointAtCenter:ue,autoAdjustOverflow:w,arrowWidth:$?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})},[y,p,b,S]),A=f__namespace.useMemo(()=>m===0?m:g||m||"",[g,m]),N=f__namespace.createElement(Cs,null,typeof A=="function"?A():A),{getPopupContainer:D,placement:F="top",mouseEnterDelay:W=.1,mouseLeaveDelay:z=.1,overlayStyle:L,rootClassName:V}=e,G=fk(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),q=x("tooltip",o),ne=x(),Z=e["data-popover-inject"];let Y=I;!("open"in e)&&!("visible"in e)&&R&&(Y=!1);const te=pk(Zh(u)&&!Sy(u)?u:f__namespace.createElement("span",null,u),q),re=te.props,se=!re.className||typeof re.className=="string"?X(re.className,{[i||`${q}-open`]:!0}):re.className,[de,ee]=uC(q,!Z),ie=fC(q,l),ce=Object.assign(Object.assign({},c),ie.overlayStyle),le=ie.arrowStyle,ve=X(s,{[`${q}-rtl`]:_==="rtl"},ie.className,V,ee);return de(f__namespace.createElement(XD,Object.assign({},G,{showArrow:$,placement:F,mouseEnterDelay:W,mouseLeaveDelay:z,prefixCls:q,overlayClassName:ve,overlayStyle:Object.assign(Object.assign({},le),L),getTooltipContainer:D||a||C,ref:M,builtinPlacements:T,overlay:N,visible:Y,onVisibleChange:P,afterVisibleChange:d??h,overlayInnerStyle:ce,arrowContent:f__namespace.createElement("span",{className:`${q}-arrow-content`}),motion:{motionName:uu(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),Y?$r(te,{className:se}):te))});hC._InternalPanelDoNotUseOrYouWillBeFired=dk;const fu=hC,mk=e=>{const{componentCls:t,popoverBg:n,popoverColor:r,width:o,fontWeightStrong:i,popoverPadding:a,boxShadowSecondary:s,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,marginXS:d,colorBgElevated:h}=e;return [{[t]:Object.assign(Object.assign({},Jt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":h,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:c,boxShadow:s,padding:a},[`${t}-title`]:{minWidth:o,marginBottom:d,color:l,fontWeight:i},[`${t}-inner-content`]:{color:r}})},cC(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},gk=e=>{const{componentCls:t}=e;return {[t]:ys.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},bk=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,u=a-Math.round(s*l),d=u/2,h=u/2-n,v=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${v}px ${h}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${v}px`}}}},vC=mn("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=At(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return [mk(o),gk(o),r&&bk(o),Ly(o,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return {zIndexPopup:t+30,width:177}});var yk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ck=(e,t,n)=>{if(!(!t&&!n))return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${e}-title`},fa(t)),f__namespace.createElement("div",{className:`${e}-inner-content`},fa(n)))};function Sk(e){const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e;return f__namespace.createElement("div",{className:X(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},f__namespace.createElement("div",{className:`${n}-arrow`}),f__namespace.createElement(lv,Object.assign({},e,{className:t,prefixCls:n}),l||Ck(n,a,s)))}function pC(e){const{prefixCls:t}=e,n=yk(e,["prefixCls"]),{getPrefixCls:r}=f__namespace.useContext(mt),o=r("popover",t),[i,a]=vC(o);return i(f__namespace.createElement(Sk,Object.assign({},n,{prefixCls:o,hashId:a})))}var wk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xk=e=>{let{title:t,content:n,prefixCls:r}=e;return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${r}-title`},fa(t)),f__namespace.createElement("div",{className:`${r}-inner-content`},fa(n)))},mC=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:s="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=wk(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:h}=f__namespace.useContext(mt),v=h("popover",n),[p,m]=vC(v),g=h(),b=X(i,m);return p(f__namespace.createElement(fu,Object.assign({placement:a,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:v,overlayClassName:b,ref:t,overlay:r||o?f__namespace.createElement(xk,{prefixCls:v,title:r,content:o}):null,transitionName:uu(g,"zoom-big",d.transitionName),"data-popover-inject":!0})))});mC._InternalPanelDoNotUseOrYouWillBeFired=pC;const gC=mC;var $k={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 Ek=$k;var Ok=function(t,n){return f__namespace.createElement(Qn,he({},t,{ref:n,icon:Ek}))};const Pk=f__namespace.forwardRef(Ok);var _k=J.ESC,Rk=J.TAB;function Mk(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=f__namespace.useRef(!1),s=function(){if(t){var d,h;(d=n.current)===null||d===void 0||(h=d.focus)===null||h===void 0||h.call(d),r==null||r(!1);}},l=function(){var d;return (d=i.current)!==null&&d!==void 0&&d.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(d){switch(d.keyCode){case _k:s();break;case Rk:{var h=!1;a.current||(h=l()),h?d.preventDefault():s();break}}};f__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&wt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1;}):function(){a.current=!1;}},[t]);}var Tk=f.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=f.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Pn(t,i==null?void 0:i.ref);return f.createElement(f.Fragment,null,r&&f.createElement("div",{className:"".concat(o,"-arrow")}),f.cloneElement(i,{ref:Ho(i)?a:void 0}))}),Ii={adjustX:1,adjustY:1},Ni=[0,0],Ik={topLeft:{points:["bl","tl"],overflow:Ii,offset:[0,-4],targetOffset:Ni},top:{points:["bc","tc"],overflow:Ii,offset:[0,-4],targetOffset:Ni},topRight:{points:["br","tr"],overflow:Ii,offset:[0,-4],targetOffset:Ni},bottomLeft:{points:["tl","bl"],overflow:Ii,offset:[0,4],targetOffset:Ni},bottom:{points:["tc","bc"],overflow:Ii,offset:[0,4],targetOffset:Ni},bottomRight:{points:["tr","br"],overflow:Ii,offset:[0,4],targetOffset:Ni}},Nk=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ak(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,h=e.placements,v=h===void 0?Ik:h,p=e.getPopupContainer,m=e.showAction,g=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,w=e.visible,$=e.trigger,S=$===void 0?["hover"]:$,C=e.autoFocus,x=e.overlay,_=e.children,M=e.onVisibleChange,E=Xe(e,Nk),I=f.useState(),O=K(I,2),R=O[0],P=O[1],T="visible"in e?w:R,A=f.useRef(null),N=f.useRef(null),D=f.useRef(null);f.useImperativeHandle(t,function(){return A.current});var F=function(Y){P(Y),M==null||M(Y);};Mk({visible:T,triggerRef:D,onVisibleChange:F,autoFocus:C,overlayRef:N});var W=function(Y){var te=e.onOverlayClick;P(!1),te&&te(Y);},z=function(){return f.createElement(Tk,{ref:N,overlay:x,prefixCls:a,arrow:o})},L=function(){return typeof x=="function"?z:z()},V=function(){var Y=e.minOverlayWidthMatchTrigger,te=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?Y:!te},G=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(a,"-open")},q=f.cloneElement(_,{className:X((n=_.props)===null||n===void 0?void 0:n.className,T&&G()),ref:Ho(_)?Pn(D,_.ref):void 0}),ne=g;return !ne&&S.indexOf("contextMenu")!==-1&&(ne=["click"]),f.createElement(rv,he({builtinPlacements:v},E,{prefixCls:a,ref:A,popupClassName:X(b,U({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:S,showAction:m,hideAction:ne,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:T,stretch:V()?"minWidth":"",popup:L(),onPopupVisibleChange:F,onPopupClick:W,getPopupContainer:p}),q)}const Dk=f.forwardRef(Ak);var bC=f__namespace.createContext(null);function cv(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function yC(e){var t=f__namespace.useContext(bC);return cv(t,e)}var kk=["children","locked"],Er=f__namespace.createContext(null);function Lk(e,t){var n=H({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function ws(e){var t=e.children,n=e.locked,r=Xe(e,kk),o=f__namespace.useContext(Er),i=Ds(function(){return Lk(o,r)},[o,r],function(a,s){return !n&&(a[0]!==s[0]||!Ls(a[1],s[1],!0))});return f__namespace.createElement(Er.Provider,{value:i},t)}var Fk=[],CC=f__namespace.createContext(null);function hu(){return f__namespace.useContext(CC)}var SC=f__namespace.createContext(Fk);function Us(e){var t=f__namespace.useContext(SC);return f__namespace.useMemo(function(){return e!==void 0?[].concat(ge(t),[e]):t},[t,e])}var wC=f__namespace.createContext(null),uv=f__namespace.createContext({});function ng(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(su(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return !1}function zk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ge(e.querySelectorAll("*")).filter(function(r){return ng(r,t)});return ng(e,t)&&n.unshift(e),n}var Lf=J.LEFT,Ff=J.RIGHT,zf=J.UP,kl=J.DOWN,Ll=J.ENTER,xC=J.ESC,Ia=J.HOME,Na=J.END,rg=[zf,kl,Lf,Ff];function jk(e,t,n,r){var o,i,a,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Ll)return {inlineTrigger:!0};var h=(o={},U(o,zf,l),U(o,kl,c),o),v=(i={},U(i,Lf,n?c:l),U(i,Ff,n?l:c),U(i,kl,u),U(i,Ll,u),i),p=(a={},U(a,zf,l),U(a,kl,c),U(a,Ll,u),U(a,xC,d),U(a,Lf,n?u:d),U(a,Ff,n?d:u),a),m={inline:h,horizontal:v,vertical:p,inlineSub:h,horizontalSub:p,verticalSub:p},g=(s=m["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(g){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 Hk(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function Bk(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function $C(e,t){var n=zk(e,!0);return n.filter(function(r){return t.has(r)})}function og(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=$C(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}function Wk(e,t,n,r,o,i,a,s,l,c){var u=f__namespace.useRef(),d=f__namespace.useRef();d.current=t;var h=function(){wt.cancel(u.current);};return f__namespace.useEffect(function(){return function(){h();}},[]),function(v){var p=v.which;if([].concat(rg,[Ll,xC,Ia,Na]).includes(p)){var m,g,b,y=function(){m=new Set,g=new Map,b=new Map;var T=i();return T.forEach(function(A){var N=document.querySelector("[data-menu-id='".concat(cv(r,A),"']"));N&&(m.add(N),b.set(N,A),g.set(A,N));}),m};y();var w=g.get(t),$=Bk(w,m),S=b.get($),C=jk(e,a(S,!0).length===1,n,p);if(!C&&p!==Ia&&p!==Na)return;(rg.includes(p)||[Ia,Na].includes(p))&&v.preventDefault();var x=function(T){if(T){var A=T,N=T.querySelector("a");N!=null&&N.getAttribute("href")&&(A=N);var D=b.get(T);s(D),h(),u.current=wt(function(){d.current===D&&A.focus();});}};if([Ia,Na].includes(p)||C.sibling||!$){var _;!$||e==="inline"?_=o.current:_=Hk($);var M,E=$C(_,m);p===Ia?M=E[0]:p===Na?M=E[E.length-1]:M=og(_,m,$,C.offset),x(M);}else if(C.inlineTrigger)l(S);else if(C.offset>0)l(S,!0),h(),u.current=wt(function(){y();var P=$.getAttribute("aria-controls"),T=document.getElementById(P),A=og(T,m);x(A);},5);else if(C.offset<0){var I=a(S,!0),O=I[I.length-2],R=g.get(O);l(O,!1),x(R);}}c==null||c(v);}}function Vk(e){Promise.resolve().then(e);}var dv="__RC_UTIL_PATH_SPLIT__",ig=function(t){return t.join(dv)},Uk=function(t){return t.split(dv)},jf="rc-menu-more";function Gk(){var e=f__namespace.useState({}),t=K(e,2),n=t[1],r=f.useRef(new Map),o=f.useRef(new Map),i=f__namespace.useState([]),a=K(i,2),s=a[0],l=a[1],c=f.useRef(0),u=f.useRef(!1),d=function(){u.current||n({});},h=f.useCallback(function(w,$){var S=ig($);o.current.set(S,w),r.current.set(w,S),c.current+=1;var C=c.current;Vk(function(){C===c.current&&d();});},[]),v=f.useCallback(function(w,$){var S=ig($);o.current.delete(S),r.current.delete(w);},[]),p=f.useCallback(function(w){l(w);},[]),m=f.useCallback(function(w,$){var S=r.current.get(w)||"",C=Uk(S);return $&&s.includes(C[0])&&C.unshift(jf),C},[s]),g=f.useCallback(function(w,$){return w.some(function(S){var C=m(S,!0);return C.includes($)})},[m]),b=function(){var $=ge(r.current.keys());return s.length&&$.push(jf),$},y=f.useCallback(function(w){var $="".concat(r.current.get(w)).concat(dv),S=new Set;return ge(o.current.keys()).forEach(function(C){C.startsWith($)&&S.add(o.current.get(C));}),S},[]);return f__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:h,unregisterPath:v,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:m,getKeys:b,getSubPathKeys:y}}function Fi(e){var t=f__namespace.useRef(e);t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var Kk=Math.random().toFixed(5).toString().slice(2),ag=0;function Xk(e){var t=en(e,{value:e}),n=K(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){ag+=1;var i="".concat(Kk,"-").concat(ag);o("rc-menu-uuid-".concat(i));},[]),r}function EC(e,t,n,r){var o=f__namespace.useContext(Er),i=o.activeKey,a=o.onActive,s=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e);},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e);}),l}function OC(e){var t=f__namespace.useContext(Er),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function PC(e){var t=e.icon,n=e.props,r=e.children,o;return typeof t=="function"?o=f__namespace.createElement(t,H({},n)):o=t,o||r||null}var qk=["item"];function mc(e){var t=e.item,n=Xe(e,qk);return Object.defineProperty(n,"item",{get:function(){return Cn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Yk=["title","attribute","elementRef"],Zk=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Qk=["active"],Jk=function(e){zo(n,e);var t=jo(n);function n(){return vn(this,n),t.apply(this,arguments)}return pn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,s=o.elementRef,l=Xe(o,Yk),c=xr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Cn(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f__namespace.createElement(Br.Item,he({},a,{title:typeof i=="string"?i:void 0},c,{ref:s}))}}]),n}(f__namespace.Component),eL=f__namespace.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey;e.warnKey;var a=e.disabled,s=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,h=e.onClick,v=e.onKeyDown,p=e.onFocus,m=Xe(e,Zk),g=yC(i),b=f__namespace.useContext(Er),y=b.prefixCls,w=b.onItemClick,$=b.disabled,S=b.overflowDisabled,C=b.itemIcon,x=b.selectedKeys,_=b.onActive,M=f__namespace.useContext(uv),E=M._internalRenderMenuItem,I="".concat(y,"-item"),O=f__namespace.useRef(),R=f__namespace.useRef(),P=$||a,T=ks(t,R),A=Us(i),N=function(re){return {key:i,keyPath:ge(A).reverse(),item:O.current,domEvent:re}},D=s||C,F=EC(i,P,u,d),W=F.active,z=Xe(F,Qk),L=x.includes(i),V=OC(A.length),G=function(re){if(!P){var se=N(re);h==null||h(mc(se)),w(se);}},q=function(re){if(v==null||v(re),re.which===J.ENTER){var se=N(re);h==null||h(mc(se)),w(se);}},ne=function(re){_(i),p==null||p(re);},Z={};e.role==="option"&&(Z["aria-selected"]=L);var Y=f__namespace.createElement(Jk,he({ref:O,elementRef:T,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":S&&g?null:g},m,z,Z,{component:"li","aria-disabled":a,style:H(H({},V),r),className:X(I,(n={},U(n,"".concat(I,"-active"),W),U(n,"".concat(I,"-selected"),L),U(n,"".concat(I,"-disabled"),P),n),o),onClick:G,onKeyDown:q,onFocus:ne}),l,f__namespace.createElement(PC,{props:H(H({},e),{},{isSelected:L}),icon:D}));return E&&(Y=E(Y,e,{selected:L})),Y});function tL(e,t){var n=e.eventKey,r=hu(),o=Us(n);return f__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:f__namespace.createElement(eL,he({},e,{ref:t}))}const vu=f__namespace.forwardRef(tL);var nL=["className","children"],rL=function(t,n){var r=t.className,o=t.children,i=Xe(t,nL),a=f__namespace.useContext(Er),s=a.prefixCls,l=a.mode,c=a.rtl;return f__namespace.createElement("ul",he({className:X(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},fv=f__namespace.forwardRef(rL);fv.displayName="SubMenuList";var oL=["label","children","key","type"];function hv(e,t){return wr(e).map(function(n,r){if(f__namespace.isValidElement(n)){var o,i,a=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,l=s==null;l&&(s="tmp_key-".concat([].concat(ge(t),[r]).join("-")));var c={key:s,eventKey:s};return f__namespace.cloneElement(n,c)}return n})}function Hf(e){return (e||[]).map(function(t,n){if(t&&tt(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,s=r.type,l=Xe(r,oL),c=a??"tmp-".concat(n);return i||s==="group"?s==="group"?f__namespace.createElement(BC,he({key:c},l,{title:o}),Hf(i)):f__namespace.createElement(yv,he({key:c},l,{title:o}),Hf(i)):s==="divider"?f__namespace.createElement(WC,he({key:c},l)):f__namespace.createElement(vu,he({key:c},l),o)}return null}).filter(function(t){return t})}function iL(e,t,n){var r=e;return t&&(r=Hf(t)),hv(r,n)}function Ha(e,t,n,r){var o=ra.unstable_batchedUpdates?function(a){ra.unstable_batchedUpdates(n,a);}:n;return e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,o,r);}}}var aL=f.forwardRef(function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,i=f.useRef(),a=f.useRef();f.useImperativeHandle(t,function(){return {}});var s=f.useRef(!1);return !s.current&&Mn()&&(a.current=r(),i.current=a.current.parentNode,s.current=!0),f.useEffect(function(){n==null||n(e);}),f.useEffect(function(){return a.current.parentNode===null&&i.current!==null&&i.current.appendChild(a.current),function(){var l,c;(l=a.current)===null||l===void 0||(c=l.parentNode)===null||c===void 0||c.removeChild(a.current);}},[]),a.current?ra.createPortal(o,a.current):null});function sL(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function lL(e,t,n){var r=e[t]||{};return H(H({},r),n)}function cL(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a];if(sL(e[s].points,o,r))return "".concat(t,"-placement-").concat(s)}return ""}function _C(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function uL(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,o=e.mask,i=e.maskMotion,a=e.maskAnimation,s=e.maskTransitionName;if(!o)return null;var l={};return (i||s||a)&&(l=H({motionAppear:!0},_C({motion:i,prefixCls:t,transitionName:s,animation:a}))),f__namespace.createElement(Pr,he({},l,{visible:n,removeOnLeave:!0}),function(c){var u=c.className;return f__namespace.createElement("div",{style:{zIndex:r},className:X("".concat(t,"-mask"),u)})})}function sg(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 lg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sg(Object(n),!0).forEach(function(r){dL(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Bf(e){"@babel/helpers - typeof";return Bf=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},Bf(e)}function dL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Aa,fL={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function gc(){if(Aa!==void 0)return Aa;Aa="";var e=document.createElement("p").style,t="Transform";for(var n in fL)n+t in e&&(Aa=n);return Aa}function RC(){return gc()?"".concat(gc(),"TransitionProperty"):"transitionProperty"}function pu(){return gc()?"".concat(gc(),"Transform"):"transform"}function cg(e,t){var n=RC();n&&(e.style[n]=t,n!=="transitionProperty"&&(e.style.transitionProperty=t));}function md(e,t){var n=pu();n&&(e.style[n]=t,n!=="transform"&&(e.style.transform=t));}function hL(e){return e.style.transitionProperty||e.style[RC()]}function vL(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(pu());if(n&&n!=="none"){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return {x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return {x:0,y:0}}var pL=/matrix\((.*)\)/,mL=/matrix3d\((.*)\)/;function gL(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(pu());if(r&&r!=="none"){var o,i=r.match(pL);if(i)i=i[1],o=i.split(",").map(function(s){return parseFloat(s,10)}),o[4]=t.x,o[5]=t.y,md(e,"matrix(".concat(o.join(","),")"));else {var a=r.match(mL)[1];o=a.split(",").map(function(s){return parseFloat(s,10)}),o[12]=t.x,o[13]=t.y,md(e,"matrix3d(".concat(o.join(","),")"));}}else md(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"));}var bL=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,Gs;function ug(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t;}function qi(e,t,n){var r=n;if(Bf(t)==="object"){for(var o in t)t.hasOwnProperty(o)&&qi(e,o,t[o]);return}if(typeof r<"u"){typeof r=="number"&&(r="".concat(r,"px")),e.style[t]=r;return}return Gs(e,t)}function yL(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),n-=a.clientLeft||i.clientLeft||0,r-=a.clientTop||i.clientTop||0,{left:n,top:r}}function MC(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r]);}return n}function TC(e){return MC(e)}function IC(e){return MC(e,!0)}function xs(e){var t=yL(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=TC(r),t.top+=IC(r),t}function vv(e){return e!=null&&e==e.window}function NC(e){return vv(e)?e.document:e.nodeType===9?e:e.ownerDocument}function CL(e,t,n){var r=n,o="",i=NC(e);return r=r||i.defaultView.getComputedStyle(e,null),r&&(o=r.getPropertyValue(t)||r[t]),o}var SL=new RegExp("^(".concat(bL,")(?!px)[a-z%]+$"),"i"),wL=/^(top|right|bottom|left)$/,gd="currentStyle",bd="runtimeStyle",qo="left",xL="px";function $L(e,t){var n=e[gd]&&e[gd][t];if(SL.test(n)&&!wL.test(t)){var r=e.style,o=r[qo],i=e[bd][qo];e[bd][qo]=e[gd][qo],r[qo]=t==="fontSize"?"1em":n||0,n=r.pixelLeft+xL,r[qo]=o,e[bd][qo]=i;}return n===""?"auto":n}typeof window<"u"&&(Gs=window.getComputedStyle?CL:$L);function wl(e,t){return e==="left"?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function dg(e){if(e==="left")return "right";if(e==="right")return "left";if(e==="top")return "bottom";if(e==="bottom")return "top"}function fg(e,t,n){qi(e,"position")==="static"&&(e.style.position="relative");var r=-999,o=-999,i=wl("left",n),a=wl("top",n),s=dg(i),l=dg(a);i!=="left"&&(r=999),a!=="top"&&(o=999);var c="",u=xs(e);("left"in t||"top"in t)&&(c=hL(e)||"",cg(e,"none")),"left"in t&&(e.style[s]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(o,"px")),ug(e);var d=xs(e),h={};for(var v in t)if(t.hasOwnProperty(v)){var p=wl(v,n),m=v==="left"?r:o,g=u[v]-d[v];p===v?h[p]=m+g:h[p]=m-g;}qi(e,h),ug(e),("left"in t||"top"in t)&&cg(e,c);var b={};for(var y in t)if(t.hasOwnProperty(y)){var w=wl(y,n),$=t[y]-u[y];y===w?b[w]=h[w]+$:b[w]=h[w]-$;}qi(e,b);}function EL(e,t){var n=xs(e),r=vL(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),gL(e,o);}function OL(e,t,n){if(n.ignoreShake){var r=xs(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(o===a&&i===s)return}n.useCssRight||n.useCssBottom?fg(e,t,n):n.useCssTransform&&pu()in document.body.style?EL(e,t):fg(e,t,n);}function pv(e,t){for(var n=0;n<e.length;n++)t(e[n]);}function AC(e){return Gs(e,"boxSizing")==="border-box"}var PL=["margin","border","padding"],Wf=-1,_L=2,Vf=1,RL=0;function ML(e,t,n){var r={},o=e.style,i;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);n.call(e);for(i in t)t.hasOwnProperty(i)&&(o[i]=r[i]);}function Ba(e,t,n){var r=0,o,i,a;for(i=0;i<t.length;i++)if(o=t[i],o)for(a=0;a<n.length;a++){var s=void 0;o==="border"?s="".concat(o).concat(n[a],"Width"):s=o+n[a],r+=parseFloat(Gs(e,s))||0;}return r}var zr={getParent:function(t){var n=t;do n.nodeType===11&&n.host?n=n.host:n=n.parentNode;while(n&&n.nodeType!==1&&n.nodeType!==9);return n}};pv(["Width","Height"],function(e){zr["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],zr["viewport".concat(e)](n))},zr["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement,a=i[n];return r.compatMode==="CSS1Compat"&&a||o&&o[n]||a};});function hg(e,t,n){var r=n;if(vv(e))return t==="width"?zr.viewportWidth(e):zr.viewportHeight(e);if(e.nodeType===9)return t==="width"?zr.docWidth(e):zr.docHeight(e);var o=t==="width"?["Left","Right"]:["Top","Bottom"],i=Math.floor(t==="width"?e.getBoundingClientRect().width:e.getBoundingClientRect().height),a=AC(e),s=0;(i==null||i<=0)&&(i=void 0,s=Gs(e,t),(s==null||Number(s)<0)&&(s=e.style[t]||0),s=Math.floor(parseFloat(s))||0),r===void 0&&(r=a?Vf:Wf);var l=i!==void 0||a,c=i||s;return r===Wf?l?c-Ba(e,["border","padding"],o):s:l?r===Vf?c:c+(r===_L?-Ba(e,["border"],o):Ba(e,["margin"],o)):s+Ba(e,PL.slice(r),o)}var TL={position:"absolute",visibility:"hidden",display:"block"};function vg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return o.offsetWidth!==0?r=hg.apply(void 0,t):ML(o,TL,function(){r=hg.apply(void 0,t);}),r}pv(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);zr["outer".concat(t)]=function(r,o){return r&&vg(r,e,o?RL:Vf)};var n=e==="width"?["Left","Right"]:["Top","Bottom"];zr[e]=function(r,o){var i=o;if(i!==void 0){if(r){var a=AC(r);return a&&(i+=Ba(r,["padding","border"],n)),qi(r,e,i)}return}return r&&vg(r,e,Wf)};});function DC(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var ot={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var n=t.ownerDocument||t;return n.defaultView||n.parentWindow},getDocument:NC,offset:function(t,n,r){if(typeof n<"u")OL(t,n,r||{});else return xs(t)},isWindow:vv,each:pv,css:qi,clone:function(t){var n,r={};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);var o=t.overflow;if(o)for(n in t)t.hasOwnProperty(n)&&(r.overflow[n]=t.overflow[n]);return r},mix:DC,getWindowScrollLeft:function(t){return TC(t)},getWindowScrollTop:function(t){return IC(t)},merge:function(){for(var t={},n=0;n<arguments.length;n++)ot.mix(t,n<0||arguments.length<=n?void 0:arguments[n]);return t},viewportWidth:0,viewportHeight:0};DC(ot,zr);var yd=ot.getParent;function Uf(e){if(ot.isWindow(e)||e.nodeType===9)return null;var t=ot.getDocument(e),n=t.body,r,o=ot.css(e,"position"),i=o==="fixed"||o==="absolute";if(!i)return e.nodeName.toLowerCase()==="html"?null:yd(e);for(r=yd(e);r&&r!==n&&r.nodeType!==9;r=yd(r))if(o=ot.css(r,"position"),o!=="static")return r;return null}var pg=ot.getParent;function IL(e){if(ot.isWindow(e)||e.nodeType===9)return !1;var t=ot.getDocument(e),n=t.body,r=null;for(r=pg(e);r&&r!==n&&r!==t;r=pg(r)){var o=ot.css(r,"position");if(o==="fixed")return !0}return !1}function mv(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Uf(e),o=ot.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,s=o.documentElement;r;){if((navigator.userAgent.indexOf("MSIE")===-1||r.clientWidth!==0)&&r!==a&&r!==s&&ot.css(r,"overflow")!=="visible"){var l=ot.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left);}else if(r===a||r===s)break;r=Uf(r);}var c=null;if(!ot.isWindow(e)&&e.nodeType!==9){c=e.style.position;var u=ot.css(e,"position");u==="absolute"&&(e.style.position="fixed");}var d=ot.getWindowScrollLeft(i),h=ot.getWindowScrollTop(i),v=ot.viewportWidth(i),p=ot.viewportHeight(i),m=s.scrollWidth,g=s.scrollHeight,b=window.getComputedStyle(a);if(b.overflowX==="hidden"&&(m=i.innerWidth),b.overflowY==="hidden"&&(g=i.innerHeight),e.style&&(e.style.position=c),t||IL(e))n.left=Math.max(n.left,d),n.top=Math.max(n.top,h),n.right=Math.min(n.right,d+v),n.bottom=Math.min(n.bottom,h+p);else {var y=Math.max(m,d+v);n.right=Math.min(n.right,y);var w=Math.max(g,h+p);n.bottom=Math.min(n.bottom,w);}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function NL(e,t,n,r){var o=ot.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),ot.mix(o,i)}function gv(e){var t,n,r;if(!ot.isWindow(e)&&e.nodeType!==9)t=ot.offset(e),n=ot.outerWidth(e),r=ot.outerHeight(e);else {var o=ot.getWindow(e);t={left:ot.getWindowScrollLeft(o),top:ot.getWindowScrollTop(o)},n=ot.viewportWidth(o),r=ot.viewportHeight(o);}return t.width=n,t.height=r,t}function mg(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,s=e.top;return n==="c"?s+=i/2:n==="b"&&(s+=i),r==="c"?a+=o/2:r==="r"&&(a+=o),{left:a,top:s}}function xl(e,t,n,r,o){var i=mg(t,n[1]),a=mg(e,n[0]),s=[a.left-i.left,a.top-i.top];return {left:Math.round(e.left-s[0]+r[0]-o[0]),top:Math.round(e.top-s[1]+r[1]-o[1])}}function gg(e,t,n){return e.left<n.left||e.left+t.width>n.right}function bg(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function AL(e,t,n){return e.left>n.right||e.left+t.width<n.left}function DL(e,t,n){return e.top>n.bottom||e.top+t.height<n.top}function $l(e,t,n){var r=[];return ot.each(e,function(o){r.push(o.replace(t,function(i){return n[i]}));}),r}function El(e,t){return e[t]=-e[t],e}function yg(e,t){var n;return /%$/.test(e)?n=parseInt(e.substring(0,e.length-1),10)/100*t:n=parseInt(e,10),n||0}function Cg(e,t){e[0]=yg(e[0],t.width),e[1]=yg(e[1],t.height);}function kC(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;i=[].concat(i),a=[].concat(a),s=s||{};var c={},u=0,d=!!(s&&s.alwaysByViewport),h=mv(l,d),v=gv(l);Cg(i,v),Cg(a,t);var p=xl(v,t,o,i,a),m=ot.merge(v,p);if(h&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&gg(p,v,h)){var g=$l(o,/[lr]/gi,{l:"r",r:"l"}),b=El(i,0),y=El(a,0),w=xl(v,t,g,b,y);AL(w,v,h)||(u=1,o=g,i=b,a=y);}if(s.adjustY&&bg(p,v,h)){var $=$l(o,/[tb]/gi,{t:"b",b:"t"}),S=El(i,1),C=El(a,1),x=xl(v,t,$,S,C);DL(x,v,h)||(u=1,o=$,i=S,a=C);}u&&(p=xl(v,t,o,i,a),ot.mix(m,p));var _=gg(p,v,h),M=bg(p,v,h);if(_||M){var E=o;_&&(E=$l(o,/[lr]/gi,{l:"r",r:"l"})),M&&(E=$l(o,/[tb]/gi,{t:"b",b:"t"})),o=E,i=n.offset||[0,0],a=n.targetOffset||[0,0];}c.adjustX=s.adjustX&&_,c.adjustY=s.adjustY&&M,(c.adjustX||c.adjustY)&&(m=NL(p,v,h,c));}return m.width!==v.width&&ot.css(l,"width",ot.width(l)+m.width-v.width),m.height!==v.height&&ot.css(l,"height",ot.height(l)+m.height-v.height),ot.offset(l,{left:m.left,top:m.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:c}}function kL(e,t){var n=mv(e,t),r=gv(e);return !n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}function bv(e,t,n){var r=n.target||t,o=gv(r),i=!kL(r,n.overflow&&n.overflow.alwaysByViewport);return kC(e,o,n,i)}bv.__getOffsetParent=Uf;bv.__getVisibleRectForElement=mv;function LL(e,t,n){var r,o,i=ot.getDocument(e),a=i.defaultView||i.parentWindow,s=ot.getWindowScrollLeft(a),l=ot.getWindowScrollTop(a),c=ot.viewportWidth(a),u=ot.viewportHeight(a);"pageX"in t?r=t.pageX:r=s+t.clientX,"pageY"in t?o=t.pageY:o=l+t.clientY;var d={left:r,top:o,width:0,height:0},h=r>=0&&r<=s+c&&o>=0&&o<=l+u,v=[n.points[0],"cc"];return kC(e,d,lg(lg({},n),{},{points:v}),h)}const FL=function(e,t){var n=f.useRef(!1),r=f.useRef(null);function o(){window.clearTimeout(r.current);}function i(a){if(o(),!n.current||a===!0){if(e(a)===!1)return;n.current=!0,r.current=window.setTimeout(function(){n.current=!1;},t);}else r.current=window.setTimeout(function(){n.current=!1,i();},t);}return [i,function(){n.current=!1,o();}]};function zL(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function jL(e,t){e!==document.activeElement&&qa(t,e)&&typeof e.focus=="function"&&e.focus();}function Sg(e,t){var n=null,r=null;function o(a){var s=K(a,1),l=s[0].target;if(document.documentElement.contains(l)){var c=l.getBoundingClientRect(),u=c.width,d=c.height,h=Math.floor(u),v=Math.floor(d);(n!==h||r!==v)&&Promise.resolve().then(function(){t({width:h,height:v});}),n=h,r=v;}}var i=new x0(o);return e&&i.observe(e),function(){i.disconnect();}}function wg(e){return typeof e!="function"?null:e()}function xg(e){return tt(e)!=="object"||!e?null:e}var HL=function(t,n){var r=t.children,o=t.disabled,i=t.target,a=t.align,s=t.onAlign,l=t.monitorWindowResize,c=t.monitorBufferTime,u=c===void 0?0:c,d=f.useRef({}),h=f.useRef(),v=f.Children.only(r),p=f.useRef({});p.current.disabled=o,p.current.target=i,p.current.align=a,p.current.onAlign=s;var m=FL(function(){var I=p.current,O=I.disabled,R=I.target,P=I.align,T=I.onAlign,A=h.current;if(!O&&R&&A){var N,D=wg(R),F=xg(R);d.current.element=D,d.current.point=F,d.current.align=P;var W=document,z=W.activeElement;return D&&su(D)?N=bv(A,D,P):F&&(N=LL(A,F,P)),jL(z,A),T&&N&&T(A,N),!0}return !1},u),g=K(m,2),b=g[0],y=g[1],w=f.useState(),$=K(w,2),S=$[0],C=$[1],x=f.useState(),_=K(x,2),M=_[0],E=_[1];return Ht(function(){C(wg(i)),E(xg(i));}),f.useEffect(function(){(d.current.element!==S||!zL(d.current.point,M)||!Ls(d.current.align,a))&&b();}),f.useEffect(function(){var I=Sg(h.current,b);return I},[h.current]),f.useEffect(function(){var I=Sg(S,b);return I},[S]),f.useEffect(function(){o?y():b();},[o]),f.useEffect(function(){if(l){var I=Ha(window,"resize",b);return I.remove}},[l]),f.useEffect(function(){return function(){y();}},[]),f.useImperativeHandle(n,function(){return {forceAlign:function(){return b(!0)}}}),f.isValidElement(v)&&(v=f.cloneElement(v,{ref:Pn(v.ref,h)})),v},LC=f.forwardRef(HL);LC.displayName="Align";var $g=["measure","alignPre","align",null,"motion"];const BL=function(e,t){var n=Ao(null),r=K(n,2),o=r[0],i=r[1],a=f.useRef();function s(u){i(u,!0);}function l(){wt.cancel(a.current);}function c(u){l(),a.current=wt(function(){s(function(d){switch(o){case"align":return "motion";case"motion":return "stable"}return d}),u==null||u();});}return f.useEffect(function(){s("measure");},[e]),f.useEffect(function(){switch(o){case"measure":t();break}o&&(a.current=wt(gi(Tn().mark(function u(){var d,h;return Tn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:d=$g.indexOf(o),h=$g[d+1],h&&d!==-1&&s(h);case 3:case"end":return p.stop()}},u)}))));},[o]),f.useEffect(function(){return function(){l();}},[]),[o,c]},WL=function(e){var t=f__namespace.useState({width:0,height:0}),n=K(t,2),r=n[0],o=n[1];function i(s){var l=s.offsetWidth,c=s.offsetHeight,u=s.getBoundingClientRect(),d=u.width,h=u.height;Math.abs(l-d)<1&&Math.abs(c-h)<1&&(l=d,c=h),o({width:l,height:c});}var a=f__namespace.useMemo(function(){var s={};if(e){var l=r.width,c=r.height;e.indexOf("height")!==-1&&c?s.height=c:e.indexOf("minHeight")!==-1&&c&&(s.minHeight=c),e.indexOf("width")!==-1&&l?s.width=l:e.indexOf("minWidth")!==-1&&l&&(s.minWidth=l);}return s},[e,r]);return [a,i]};var FC=f__namespace.forwardRef(function(e,t){var n=e.visible,r=e.prefixCls,o=e.className,i=e.style,a=e.children,s=e.zIndex,l=e.stretch,c=e.destroyPopupOnHide,u=e.forceRender,d=e.align,h=e.point,v=e.getRootDomNode,p=e.getClassNameFromAlign,m=e.onAlign,g=e.onMouseEnter,b=e.onMouseLeave,y=e.onMouseDown,w=e.onTouchStart,$=e.onClick,S=f.useRef(),C=f.useRef(),x=f.useState(),_=K(x,2),M=_[0],E=_[1],I=WL(l),O=K(I,2),R=O[0],P=O[1];function T(){l&&P(v());}var A=BL(n,T),N=K(A,2),D=N[0],F=N[1],W=f.useState(0),z=K(W,2),L=z[0],V=z[1],G=f.useRef();Ht(function(){D==="alignPre"&&V(0);},[D]);function q(){return h||v}function ne(){var ee;(ee=S.current)===null||ee===void 0||ee.forceAlign();}function Z(ee,ie){var ce=p(ie);M!==ce&&E(ce),V(function(le){return le+1}),D==="align"&&(m==null||m(ee,ie));}Ht(function(){D==="align"&&(L<3?ne():F(function(){var ee;(ee=G.current)===null||ee===void 0||ee.call(G);}));},[L]);var Y=H({},_C(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ee){var ie=Y[ee];Y[ee]=function(ce,le){return F(),ie==null?void 0:ie(ce,le)};});function te(){return new Promise(function(ee){G.current=ee;})}f__namespace.useEffect(function(){!Y.motionName&&D==="motion"&&F();},[Y.motionName,D]),f__namespace.useImperativeHandle(t,function(){return {forceAlign:ne,getElement:function(){return C.current}}});var re=H(H({},R),{},{zIndex:s,opacity:D==="motion"||D==="stable"||!n?void 0:0,pointerEvents:!n&&D!=="stable"?"none":void 0},i),se=!0;d!=null&&d.points&&(D==="align"||D==="stable")&&(se=!1);var de=a;return f__namespace.Children.count(a)>1&&(de=f__namespace.createElement("div",{className:"".concat(r,"-content")},a)),f__namespace.createElement(Pr,he({visible:n,ref:C,leavedClassName:"".concat(r,"-hidden")},Y,{onAppearPrepare:te,onEnterPrepare:te,removeOnLeave:c,forceRender:u}),function(ee,ie){var ce=ee.className,le=ee.style,ve=X(r,o,M,ce);return f__namespace.createElement(LC,{target:q(),key:"popup",ref:S,monitorWindowResize:!0,disabled:se,align:d,onAlign:Z},f__namespace.createElement("div",{ref:ie,className:ve,onMouseEnter:g,onMouseLeave:b,onMouseDownCapture:y,onTouchStartCapture:w,onClick:$,style:H(H({},le),re)},de))})});FC.displayName="PopupInner";var zC=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.visible,o=e.zIndex,i=e.children,a=e.mobile;a=a===void 0?{}:a;var s=a.popupClassName,l=a.popupStyle,c=a.popupMotion,u=c===void 0?{}:c,d=a.popupRender,h=e.onClick,v=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {forceAlign:function(){},getElement:function(){return v.current}}});var p=H({zIndex:o},l),m=i;return f__namespace.Children.count(i)>1&&(m=f__namespace.createElement("div",{className:"".concat(n,"-content")},i)),d&&(m=d(m)),f__namespace.createElement(Pr,he({visible:r,ref:v,removeOnLeave:!0},u),function(g,b){var y=g.className,w=g.style,$=X(n,s,y);return f__namespace.createElement("div",{ref:b,className:$,onClick:h,style:H(H({},w),p)},m)})});zC.displayName="MobilePopupInner";var VL=["visible","mobile"],jC=f__namespace.forwardRef(function(e,t){var n=e.visible,r=e.mobile,o=Xe(e,VL),i=f.useState(n),a=K(i,2),s=a[0],l=a[1],c=f.useState(!1),u=K(c,2),d=u[0],h=u[1],v=H(H({},o),{},{visible:s});f.useEffect(function(){l(n),n&&r&&h(Ws());},[n,r]);var p=d?f__namespace.createElement(zC,he({},v,{mobile:r,ref:t})):f__namespace.createElement(FC,he({},v,{ref:t}));return f__namespace.createElement("div",null,f__namespace.createElement(uL,v),p)});jC.displayName="Popup";var Eg=f__namespace.createContext(null);function Cd(){}function UL(){return ""}function GL(e){return e?e.ownerDocument:window.document}var KL=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function XL(e){var t=function(n){zo(o,n);var r=jo(o);function o(i){var a;vn(this,o),a=r.call(this,i),U(ut(a),"popupRef",f__namespace.createRef()),U(ut(a),"triggerRef",f__namespace.createRef()),U(ut(a),"portalContainer",void 0),U(ut(a),"attachId",void 0),U(ut(a),"clickOutsideHandler",void 0),U(ut(a),"touchOutsideHandler",void 0),U(ut(a),"contextMenuOutsideHandler1",void 0),U(ut(a),"contextMenuOutsideHandler2",void 0),U(ut(a),"mouseDownTimeout",void 0),U(ut(a),"focusTime",void 0),U(ut(a),"preClickTime",void 0),U(ut(a),"preTouchTime",void 0),U(ut(a),"delayTimer",void 0),U(ut(a),"hasPopupMouseDown",void 0),U(ut(a),"onMouseEnter",function(l){var c=a.props.mouseEnterDelay;a.fireEvents("onMouseEnter",l),a.delaySetPopupVisible(!0,c,c?null:l);}),U(ut(a),"onMouseMove",function(l){a.fireEvents("onMouseMove",l),a.setPoint(l);}),U(ut(a),"onMouseLeave",function(l){a.fireEvents("onMouseLeave",l),a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay);}),U(ut(a),"onPopupMouseEnter",function(){a.clearDelayTimer();}),U(ut(a),"onPopupMouseLeave",function(l){var c;l.relatedTarget&&!l.relatedTarget.setTimeout&&qa((c=a.popupRef.current)===null||c===void 0?void 0:c.getElement(),l.relatedTarget)||a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay);}),U(ut(a),"onFocus",function(l){a.fireEvents("onFocus",l),a.clearDelayTimer(),a.isFocusToShow()&&(a.focusTime=Date.now(),a.delaySetPopupVisible(!0,a.props.focusDelay));}),U(ut(a),"onMouseDown",function(l){a.fireEvents("onMouseDown",l),a.preClickTime=Date.now();}),U(ut(a),"onTouchStart",function(l){a.fireEvents("onTouchStart",l),a.preTouchTime=Date.now();}),U(ut(a),"onBlur",function(l){a.fireEvents("onBlur",l),a.clearDelayTimer(),a.isBlurToHide()&&a.delaySetPopupVisible(!1,a.props.blurDelay);}),U(ut(a),"onContextMenu",function(l){l.preventDefault(),a.fireEvents("onContextMenu",l),a.setPopupVisible(!0,l);}),U(ut(a),"onContextMenuClose",function(){a.isContextMenuToShow()&&a.close();}),U(ut(a),"onClick",function(l){if(a.fireEvents("onClick",l),a.focusTime){var c;if(a.preClickTime&&a.preTouchTime?c=Math.min(a.preClickTime,a.preTouchTime):a.preClickTime?c=a.preClickTime:a.preTouchTime&&(c=a.preTouchTime),Math.abs(c-a.focusTime)<20)return;a.focusTime=0;}a.preClickTime=0,a.preTouchTime=0,a.isClickToShow()&&(a.isClickToHide()||a.isBlurToHide())&&l&&l.preventDefault&&l.preventDefault();var u=!a.state.popupVisible;(a.isClickToHide()&&!u||u&&a.isClickToShow())&&a.setPopupVisible(!a.state.popupVisible,l);}),U(ut(a),"onPopupMouseDown",function(){if(a.hasPopupMouseDown=!0,clearTimeout(a.mouseDownTimeout),a.mouseDownTimeout=window.setTimeout(function(){a.hasPopupMouseDown=!1;},0),a.context){var l;(l=a.context).onPopupMouseDown.apply(l,arguments);}}),U(ut(a),"onDocumentClick",function(l){if(!(a.props.mask&&!a.props.maskClosable)){var c=l.target,u=a.getRootDomNode(),d=a.getPopupDomNode();(!qa(u,c)||a.isContextMenuOnly())&&!qa(d,c)&&!a.hasPopupMouseDown&&a.close();}}),U(ut(a),"getRootDomNode",function(){var l=a.props.getTriggerDOMNode;if(l)return l(a.triggerRef.current);try{var c=gs(a.triggerRef.current);if(c)return c}catch{}return ra.findDOMNode(ut(a))}),U(ut(a),"getPopupClassNameFromAlign",function(l){var c=[],u=a.props,d=u.popupPlacement,h=u.builtinPlacements,v=u.prefixCls,p=u.alignPoint,m=u.getPopupClassNameFromAlign;return d&&h&&c.push(cL(h,v,l,p)),m&&c.push(m(l)),c.join(" ")}),U(ut(a),"getComponent",function(){var l=a.props,c=l.prefixCls,u=l.destroyPopupOnHide,d=l.popupClassName,h=l.onPopupAlign,v=l.popupMotion,p=l.popupAnimation,m=l.popupTransitionName,g=l.popupStyle,b=l.mask,y=l.maskAnimation,w=l.maskTransitionName,$=l.maskMotion,S=l.zIndex,C=l.popup,x=l.stretch,_=l.alignPoint,M=l.mobile,E=l.forceRender,I=l.onPopupClick,O=a.state,R=O.popupVisible,P=O.point,T=a.getPopupAlign(),A={};return a.isMouseEnterToShow()&&(A.onMouseEnter=a.onPopupMouseEnter),a.isMouseLeaveToHide()&&(A.onMouseLeave=a.onPopupMouseLeave),A.onMouseDown=a.onPopupMouseDown,A.onTouchStart=a.onPopupMouseDown,f__namespace.createElement(jC,he({prefixCls:c,destroyPopupOnHide:u,visible:R,point:_&&P,className:d,align:T,onAlign:h,animation:p,getClassNameFromAlign:a.getPopupClassNameFromAlign},A,{stretch:x,getRootDomNode:a.getRootDomNode,style:g,mask:b,zIndex:S,transitionName:m,maskAnimation:y,maskTransitionName:w,maskMotion:$,ref:a.popupRef,motion:v,mobile:M,forceRender:E,onClick:I}),typeof C=="function"?C():C)}),U(ut(a),"attachParent",function(l){wt.cancel(a.attachId);var c=a.props,u=c.getPopupContainer,d=c.getDocument,h=a.getRootDomNode(),v;u?(h||u.length===0)&&(v=u(h)):v=d(a.getRootDomNode()).body,v?v.appendChild(l):a.attachId=wt(function(){a.attachParent(l);});}),U(ut(a),"getContainer",function(){if(!a.portalContainer){var l=a.props.getDocument,c=l(a.getRootDomNode()).createElement("div");c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.width="100%",a.portalContainer=c;}return a.attachParent(a.portalContainer),a.portalContainer}),U(ut(a),"setPoint",function(l){var c=a.props.alignPoint;!c||!l||a.setState({point:{pageX:l.pageX,pageY:l.pageY}});}),U(ut(a),"handlePortalUpdate",function(){a.state.prevPopupVisible!==a.state.popupVisible&&a.props.afterPopupVisibleChange(a.state.popupVisible);}),U(ut(a),"triggerContextValue",{onPopupMouseDown:a.onPopupMouseDown});var s;return "popupVisible"in i?s=!!i.popupVisible:s=!!i.defaultPopupVisible,a.state={prevPopupVisible:s,popupVisible:s},KL.forEach(function(l){a["fire".concat(l)]=function(c){a.fireEvents(l,c);};}),a}return pn(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate();}},{key:"componentDidUpdate",value:function(){var a=this.props,s=this.state;if(s.popupVisible){var l;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(l=a.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Ha(l,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(l=l||a.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Ha(l,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(l=l||a.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Ha(l,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Ha(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler();}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),wt.cancel(this.attachId);}},{key:"getPopupDomNode",value:function(){var a;return ((a=this.popupRef.current)===null||a===void 0?void 0:a.getElement())||null}},{key:"getPopupAlign",value:function(){var a=this.props,s=a.popupPlacement,l=a.popupAlign,c=a.builtinPlacements;return s&&c?lL(c,s,l):l}},{key:"setPopupVisible",value:function(a,s){var l=this.props.alignPoint,c=this.state.popupVisible;this.clearDelayTimer(),c!==a&&("popupVisible"in this.props||this.setState({popupVisible:a,prevPopupVisible:c}),this.props.onPopupVisibleChange(a)),l&&s&&a&&this.setPoint(s);}},{key:"delaySetPopupVisible",value:function(a,s,l){var c=this,u=s*1e3;if(this.clearDelayTimer(),u){var d=l?{pageX:l.pageX,pageY:l.pageY}:null;this.delayTimer=window.setTimeout(function(){c.setPopupVisible(a,d),c.clearDelayTimer();},u);}else this.setPopupVisible(a,l);}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null);}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null);}},{key:"createTwoChains",value:function(a){var s=this.props.children.props,l=this.props;return s[a]&&l[a]?this["fire".concat(a)]:s[a]||l[a]}},{key:"isClickToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var a=this.props.action;return a==="contextMenu"||a.length===1&&a[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("contextMenu")!==-1||l.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("hover")!==-1||l.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("hover")!==-1||l.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("focus")!==-1||l.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("focus")!==-1||l.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var a;(a=this.popupRef.current)===null||a===void 0||a.forceAlign();}}},{key:"fireEvents",value:function(a,s){var l=this.props.children.props[a];l&&l(s);var c=this.props[a];c&&c(s);}},{key:"close",value:function(){this.setPopupVisible(!1);}},{key:"render",value:function(){var a=this.state.popupVisible,s=this.props,l=s.children,c=s.forceRender,u=s.alignPoint,d=s.className,h=s.autoDestroy,v=f__namespace.Children.only(l),p={key:"trigger"};this.isContextMenuToShow()?p.onContextMenu=this.onContextMenu:p.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(p.onClick=this.onClick,p.onMouseDown=this.onMouseDown,p.onTouchStart=this.onTouchStart):(p.onClick=this.createTwoChains("onClick"),p.onMouseDown=this.createTwoChains("onMouseDown"),p.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(p.onMouseEnter=this.onMouseEnter,u&&(p.onMouseMove=this.onMouseMove)):p.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?p.onMouseLeave=this.onMouseLeave:p.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(p.onFocus=this.onFocus,p.onBlur=this.onBlur):(p.onFocus=this.createTwoChains("onFocus"),p.onBlur=this.createTwoChains("onBlur"));var m=X(v&&v.props&&v.props.className,d);m&&(p.className=m);var g=H({},p);Ho(v)&&(g.ref=Pn(this.triggerRef,v.ref));var b=f__namespace.cloneElement(v,g),y;return (a||this.popupRef.current||c)&&(y=f__namespace.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!a&&h&&(y=null),f__namespace.createElement(Eg.Provider,{value:this.triggerContextValue},b,y)}}],[{key:"getDerivedStateFromProps",value:function(a,s){var l=a.popupVisible,c={};return l!==void 0&&s.popupVisible!==l&&(c.popupVisible=l,c.prevPopupVisible=s.popupVisible),c}}]),o}(f__namespace.Component);return U(t,"contextType",Eg),U(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:UL,getDocument:GL,onPopupVisibleChange:Cd,afterPopupVisibleChange:Cd,onPopupAlign:Cd,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}const qL=XL(aL);var No={adjustX:1,adjustY:1},YL={topLeft:{points:["bl","tl"],overflow:No,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:No,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:No,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:No,offset:[4,0]}},ZL={topLeft:{points:["bl","tl"],overflow:No,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:No,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:No,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:No,offset:[4,0]}};function HC(e,t,n){if(t)return t;if(n)return n[e]||n.other}var QL={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function JL(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupClassName,a=e.popupOffset,s=e.disabled,l=e.mode,c=e.onVisibleChange,u=f__namespace.useContext(Er),d=u.getPopupContainer,h=u.rtl,v=u.subMenuOpenDelay,p=u.subMenuCloseDelay,m=u.builtinPlacements,g=u.triggerSubMenuAction,b=u.forceSubMenuRender,y=u.rootClassName,w=u.motion,$=u.defaultMotions,S=f__namespace.useState(!1),C=K(S,2),x=C[0],_=C[1],M=H(h?H({},ZL):H({},YL),m),E=QL[l],I=HC(l,w,$),O=f__namespace.useRef(I);l!=="inline"&&(O.current=I);var R=H(H({},O.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=f__namespace.useRef();return f__namespace.useEffect(function(){return P.current=wt(function(){_(n);}),function(){wt.cancel(P.current);}},[n]),f__namespace.createElement(qL,{prefixCls:t,popupClassName:X("".concat(t,"-popup"),U({},"".concat(t,"-rtl"),h),i,y),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:M,popupPlacement:E,popupVisible:x,popup:o,popupAlign:a&&{offset:a},action:s?[]:[g],mouseEnterDelay:v,mouseLeaveDelay:p,onPopupVisibleChange:c,forceRender:b,popupMotion:R},r)}function eF(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=f__namespace.useContext(Er),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,h=f__namespace.useRef(!1);h.current=d===i;var v=f__namespace.useState(!h.current),p=K(v,2),m=p[0],g=p[1],b=h.current?n:!1;f__namespace.useEffect(function(){h.current&&g(!1);},[d]);var y=H({},HC(i,c,u));r.length>1&&(y.motionAppear=!1);var w=y.onVisibleChanged;return y.onVisibleChanged=function($){return !h.current&&!$&&g(!0),w==null?void 0:w($)},m?null:f__namespace.createElement(ws,{mode:i,locked:!h.current},f__namespace.createElement(Pr,he({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function($){var S=$.className,C=$.style;return f__namespace.createElement(fv,{id:t,className:S,style:C},o)}))}var tF=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],nF=["active"],rF=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var s=t.disabled,l=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,h=t.popupClassName,v=t.popupOffset,p=t.onClick,m=t.onMouseEnter,g=t.onMouseLeave,b=t.onTitleClick,y=t.onTitleMouseEnter,w=t.onTitleMouseLeave,$=Xe(t,tF),S=yC(a),C=f__namespace.useContext(Er),x=C.prefixCls,_=C.mode,M=C.openKeys,E=C.disabled,I=C.overflowDisabled,O=C.activeKey,R=C.selectedKeys,P=C.itemIcon,T=C.expandIcon,A=C.onItemClick,N=C.onOpenChange,D=C.onActive,F=f__namespace.useContext(uv),W=F._internalRenderSubMenuItem,z=f__namespace.useContext(wC),L=z.isSubPathKey,V=Us(),G="".concat(x,"-submenu"),q=E||s,ne=f__namespace.useRef(),Z=f__namespace.useRef(),Y=u||P,te=d||T,re=M.includes(a),se=!I&&re,de=L(R,a),ee=EC(a,q,y,w),ie=ee.active,ce=Xe(ee,nF),le=f__namespace.useState(!1),ve=K(le,2),oe=ve[0],pe=ve[1],ue=function(we){q||pe(we);},ye=function(we){ue(!0),m==null||m({key:a,domEvent:we});},Ie=function(we){ue(!1),g==null||g({key:a,domEvent:we});},De=f__namespace.useMemo(function(){return ie||(_!=="inline"?oe||L([O],a):!1)},[_,ie,O,oe,a,L]),Le=OC(V.length),_e=function(we){q||(b==null||b({key:a,domEvent:we}),_==="inline"&&N(a,!re));},qe=Fi(function(be){p==null||p(mc(be)),A(be);}),vt=function(we){_!=="inline"&&N(a,we);},et=function(){D(a);},Qe=S&&"".concat(S,"-popup"),ke=f__namespace.createElement("div",he({role:"menuitem",style:Le,className:"".concat(G,"-title"),tabIndex:q?null:-1,ref:ne,title:typeof i=="string"?i:null,"data-menu-id":I&&S?null:S,"aria-expanded":se,"aria-haspopup":!0,"aria-controls":Qe,"aria-disabled":q,onClick:_e,onFocus:et},ce),i,f__namespace.createElement(PC,{icon:_!=="horizontal"?te:null,props:H(H({},t),{},{isOpen:se,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(G,"-arrow")}))),ze=f__namespace.useRef(_);if(_!=="inline"&&V.length>1?ze.current="vertical":ze.current=_,!I){var dt=ze.current;ke=f__namespace.createElement(JL,{mode:dt,prefixCls:G,visible:!l&&se&&_!=="inline",popupClassName:h,popupOffset:v,popup:f__namespace.createElement(ws,{mode:dt==="horizontal"?"vertical":dt},f__namespace.createElement(fv,{id:Qe,ref:Z},c)),disabled:q,onVisibleChange:vt},ke);}var at=f__namespace.createElement(Br.Item,he({role:"none"},$,{component:"li",style:r,className:X(G,"".concat(G,"-").concat(_),o,(n={},U(n,"".concat(G,"-open"),se),U(n,"".concat(G,"-active"),De),U(n,"".concat(G,"-selected"),de),U(n,"".concat(G,"-disabled"),q),n)),onMouseEnter:ye,onMouseLeave:Ie}),ke,!I&&f__namespace.createElement(eF,{id:Qe,open:se,keyPath:V},c));return W&&(at=W(at,t,{selected:de,active:De,open:se,disabled:q})),f__namespace.createElement(ws,{onItemClick:qe,mode:_==="horizontal"?"vertical":_,itemIcon:Y,expandIcon:te},at)};function yv(e){var t=e.eventKey,n=e.children,r=Us(t),o=hv(n,r),i=hu();f__namespace.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r);}},[r]);var a;return i?a=o:a=f__namespace.createElement(rF,e,o),f__namespace.createElement(SC.Provider,{value:r},a)}var oF=["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"],Ai=[],iF=f__namespace.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,d=u===void 0?0:u,h=o.items,v=o.children,p=o.direction,m=o.id,g=o.mode,b=g===void 0?"vertical":g,y=o.inlineCollapsed,w=o.disabled,$=o.disabledOverflow,S=o.subMenuOpenDelay,C=S===void 0?.1:S,x=o.subMenuCloseDelay,_=x===void 0?.1:x,M=o.forceSubMenuRender,E=o.defaultOpenKeys,I=o.openKeys,O=o.activeKey,R=o.defaultActiveFirst,P=o.selectable,T=P===void 0?!0:P,A=o.multiple,N=A===void 0?!1:A,D=o.defaultSelectedKeys,F=o.selectedKeys,W=o.onSelect,z=o.onDeselect,L=o.inlineIndent,V=L===void 0?24:L,G=o.motion,q=o.defaultMotions,ne=o.triggerSubMenuAction,Z=ne===void 0?"hover":ne,Y=o.builtinPlacements,te=o.itemIcon,re=o.expandIcon,se=o.overflowedIndicator,de=se===void 0?"...":se,ee=o.overflowedIndicatorPopupClassName,ie=o.getPopupContainer,ce=o.onClick,le=o.onOpenChange,ve=o.onKeyDown;o.openAnimation,o.openTransitionName;var oe=o._internalRenderMenuItem,pe=o._internalRenderSubMenuItem,ue=Xe(o,oF),ye=f__namespace.useMemo(function(){return iL(v,h,Ai)},[v,h]),Ie=f__namespace.useState(!1),De=K(Ie,2),Le=De[0],_e=De[1],qe=f__namespace.useRef(),vt=Xk(m),et=p==="rtl",Qe=en(E,{value:I,postState:function(Ce){return Ce||Ai}}),ke=K(Qe,2),ze=ke[0],dt=ke[1],at=function(Ce){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function St(){dt(Ce),le==null||le(Ce);}He?ra.flushSync(St):St();},be=f__namespace.useState(ze),we=K(be,2),Ye=we[0],Ue=we[1],ft=f__namespace.useRef(!1),$e=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),Ee=K($e,2),je=Ee[0],Re=Ee[1],Je=je==="inline",Et=f__namespace.useState(je),Ft=K(Et,2),kt=Ft[0],Ne=Ft[1],fe=f__namespace.useState(Re),ae=K(fe,2),Se=ae[0],xe=ae[1];f__namespace.useEffect(function(){Ne(je),xe(Re),ft.current&&(Je?dt(Ye):at(Ai));},[je,Re]);var Ze=f__namespace.useState(0),pt=K(Ze,2),xt=pt[0],Xt=pt[1],Vt=xt>=ye.length-1||kt!=="horizontal"||$;f__namespace.useEffect(function(){Je&&Ue(ze);},[ze]),f__namespace.useEffect(function(){return ft.current=!0,function(){ft.current=!1;}},[]);var Ae=Gk(),Ge=Ae.registerPath,Me=Ae.unregisterPath,$t=Ae.refreshOverflowKeys,yt=Ae.isSubPathKey,Zt=Ae.getKeyPath,Te=Ae.getKeys,We=Ae.getSubPathKeys,lt=f__namespace.useMemo(function(){return {registerPath:Ge,unregisterPath:Me}},[Ge,Me]),Pt=f__namespace.useMemo(function(){return {isSubPathKey:yt}},[yt]);f__namespace.useEffect(function(){$t(Vt?Ai:ye.slice(xt+1).map(function(Oe){return Oe.key}));},[xt,Vt]);var qt=en(O||R&&((n=ye[0])===null||n===void 0?void 0:n.key),{value:O}),Bt=K(qt,2),wn=Bt[0],Nn=Bt[1],cr=Fi(function(Oe){Nn(Oe);}),Yr=Fi(function(){Nn(void 0);});f.useImperativeHandle(t,function(){return {list:qe.current,focus:function(Ce){var He,St=wn??((He=ye.find(function(zn){return !zn.props.disabled}))===null||He===void 0?void 0:He.key);if(St){var st,Ot,zt;(st=qe.current)===null||st===void 0||(Ot=st.querySelector("li[data-menu-id='".concat(cv(vt,St),"']")))===null||Ot===void 0||(zt=Ot.focus)===null||zt===void 0||zt.call(Ot,Ce);}}}});var _r=en(D||[],{value:F,postState:function(Ce){return Array.isArray(Ce)?Ce:Ce==null?Ai:[Ce]}}),Jn=K(_r,2),_n=Jn[0],Zr=Jn[1],Wo=function(Ce){if(T){var He=Ce.key,St=_n.includes(He),st;N?St?st=_n.filter(function(zt){return zt!==He}):st=[].concat(ge(_n),[He]):st=[He],Zr(st);var Ot=H(H({},Ce),{},{selectedKeys:st});St?z==null||z(Ot):W==null||W(Ot);}!N&&ze.length&&kt!=="inline"&&at(Ai);},Qr=Fi(function(Oe){ce==null||ce(mc(Oe)),Wo(Oe);}),Jr=Fi(function(Oe,Ce){var He=ze.filter(function(st){return st!==Oe});if(Ce)He.push(Oe);else if(kt!=="inline"){var St=We(Oe);He=He.filter(function(st){return !St.has(st)});}Ls(ze,He,!0)||at(He,!0);}),eo=Fi(ie),Vo=function(Ce,He){var St=He??!ze.includes(Ce);Jr(Ce,St);},Uo=Wk(kt,wn,et,vt,qe,Te,Zt,Nn,Vo,ve);f__namespace.useEffect(function(){_e(!0);},[]);var Go=f__namespace.useMemo(function(){return {_internalRenderMenuItem:oe,_internalRenderSubMenuItem:pe}},[oe,pe]),to=kt!=="horizontal"||$?ye:ye.map(function(Oe,Ce){return f__namespace.createElement(ws,{key:Oe.key,overflowDisabled:Ce>xt},Oe)}),no=f__namespace.createElement(Br,he({id:m,ref:qe,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:vu,className:X(a,"".concat(a,"-root"),"".concat(a,"-").concat(kt),c,(r={},U(r,"".concat(a,"-inline-collapsed"),Se),U(r,"".concat(a,"-rtl"),et),r),s),dir:p,style:l,role:"menu",tabIndex:d,data:to,renderRawItem:function(Ce){return Ce},renderRawRest:function(Ce){var He=Ce.length,St=He?ye.slice(-He):null;return f__namespace.createElement(yv,{eventKey:jf,title:de,disabled:Vt,internalPopupClose:He===0,popupClassName:ee},St)},maxCount:kt!=="horizontal"||$?Br.INVALIDATE:Br.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ce){Xt(Ce);},onKeyDown:Uo},ue));return f__namespace.createElement(uv.Provider,{value:Go},f__namespace.createElement(bC.Provider,{value:vt},f__namespace.createElement(ws,{prefixCls:a,rootClassName:s,mode:kt,openKeys:ze,rtl:et,disabled:w,motion:Le?G:null,defaultMotions:Le?q:null,activeKey:wn,onActive:cr,onInactive:Yr,selectedKeys:_n,inlineIndent:V,subMenuOpenDelay:C,subMenuCloseDelay:_,forceSubMenuRender:M,builtinPlacements:Y,triggerSubMenuAction:Z,getPopupContainer:eo,itemIcon:te,expandIcon:re,onItemClick:Qr,onOpenChange:Jr},f__namespace.createElement(wC.Provider,{value:Pt},no),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement(CC.Provider,{value:lt},ye)))))}),aF=["className","title","eventKey","children"],sF=["children"],lF=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=Xe(t,aF),a=f__namespace.useContext(Er),s=a.prefixCls,l="".concat(s,"-item-group");return f__namespace.createElement("li",he({role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:X(l,n)}),f__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),f__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function BC(e){var t=e.children,n=Xe(e,sF),r=Us(n.eventKey),o=hv(t,r),i=hu();return i?o:f__namespace.createElement(lF,xr(n,["warnKey"]),o)}function WC(e){var t=e.className,n=e.style,r=f__namespace.useContext(Er),o=r.prefixCls,i=hu();return i?null:f__namespace.createElement("li",{className:X("".concat(o,"-item-divider"),t),style:n})}var Ks=iF;Ks.Item=vu;Ks.SubMenu=yv;Ks.ItemGroup=BC;Ks.Divider=WC;var cF={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 uF=cF;var dF=function(t,n){return f__namespace.createElement(Qn,he({},t,{ref:n,icon:uF}))};const fF=f__namespace.forwardRef(dF),hF=()=>{const[e,t]=f__namespace.useState(!1);return f__namespace.useEffect(()=>{t(lN());},[]),e};function vF(e){let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:s}=e;const{horizontalSize:l,verticalSize:c,latestIndex:u,supportFlexGap:d}=f__namespace.useContext(VC);let h={};return d||(n==="vertical"?r<u&&(h={marginBottom:l/(a?2:1)}):h=Object.assign(Object.assign({},r<u&&{[o]:l/(a?2:1)}),s&&{paddingBottom:c})),i==null?null:f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("div",{className:t,style:h},i),r<u&&a&&f__namespace.createElement("span",{className:`${t}-split`,style:h},a))}var pF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const VC=f__namespace.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),mF={small:8,middle:16,large:24};function gF(e){return typeof e=="string"?mF[e]:e||0}const bF=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,space:r,direction:o}=f__namespace.useContext(mt),{size:i=(r==null?void 0:r.size)||"small",align:a,className:s,rootClassName:l,children:c,direction:u="horizontal",prefixCls:d,split:h,style:v,wrap:p=!1}=e,m=pF(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),g=hF(),[b,y]=f__namespace.useMemo(()=>(Array.isArray(i)?i:[i,i]).map(T=>gF(T)),[i]),w=wr(c,{keepEmpty:!0}),$=a===void 0&&u==="horizontal"?"center":a,S=n("space",d),[C,x]=$y(S),_=X(S,x,`${S}-${u}`,{[`${S}-rtl`]:o==="rtl",[`${S}-align-${$}`]:$},s,l),M=`${S}-item`,E=o==="rtl"?"marginLeft":"marginRight";let I=0;const O=w.map((T,A)=>{T!=null&&(I=A);const N=T&&T.key||`${M}-${A}`;return f__namespace.createElement(vF,{className:M,key:N,direction:u,index:A,marginDirection:E,split:h,wrap:p},T)}),R=f__namespace.useMemo(()=>({horizontalSize:b,verticalSize:y,latestIndex:I,supportFlexGap:g}),[b,y,I,g]);if(w.length===0)return null;const P={};return p&&(P.flexWrap="wrap",g||(P.marginBottom=-y)),g&&(P.columnGap=b,P.rowGap=y),C(f__namespace.createElement("div",Object.assign({ref:t,className:_,style:Object.assign(Object.assign({},P),v)},m),f__namespace.createElement(VC.Provider,{value:R},O)))}),UC=bF;UC.Compact=cI;const Cv=UC,GC=f__namespace.createContext(null),yF=GC.Provider,KC=f__namespace.createContext(null),CF=KC.Provider;var SF=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],XC=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,i=e.className,a=e.style,s=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,h=d===void 0?"checkbox":d,v=e.onChange,p=Xe(e,SF),m=f.useRef(null),g=en(u,{value:s}),b=K(g,2),y=b[0],w=b[1];f.useImperativeHandle(t,function(){return {focus:function(){var x;(x=m.current)===null||x===void 0||x.focus();},blur:function(){var x;(x=m.current)===null||x===void 0||x.blur();},input:m.current}});var $=X(o,i,(n={},U(n,"".concat(o,"-checked"),y),U(n,"".concat(o,"-disabled"),l),n)),S=function(x){l||("checked"in e||w(x.target.checked),v==null||v({target:H(H({},e),{},{checked:x.target.checked}),stopPropagation:function(){x.stopPropagation();},preventDefault:function(){x.preventDefault();},nativeEvent:x.nativeEvent}));};return f__namespace.createElement("span",{className:$,style:a},f__namespace.createElement("input",he({},p,{className:"".concat(o,"-input"),ref:m,onChange:S,disabled:l,checked:!!y,type:h})),f__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const wF=new Tt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),xF=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},Jt(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"}})}},$F=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:l,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:h,colorBgContainerDisabled:v,colorTextDisabled:p,paddingXS:m,radioDotDisabledColor:g,lineType:b,radioDotDisabledSize:y,wireframe:w,colorWhite:$}=e,S=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},Jt(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${b} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:wF,animationDuration:i,animationTimingFunction:s,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},Jt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,
        &:hover ${S}`]:{borderColor:r},[`${t}-input:focus-visible + ${S}`]:Object.assign({},nu(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:w?r:$,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[S]:{borderColor:r,backgroundColor:w?c:r,"&::after":{transform:`scale(${h/o})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:v,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[S]:{"&::after":{transform:`scale(${y/o})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},EF=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:h,controlHeightLG:v,controlHeightSM:p,paddingXS:m,borderRadius:g,borderRadiusSM:b,borderRadiusLG:y,radioCheckedColor:w,radioButtonCheckedBg:$,radioButtonHoverColor:S,radioButtonActiveColor:C,radioSolidCheckedColor:x,colorTextDisabled:_,colorBgContainerDisabled:M,radioDisabledButtonCheckedColor:E,radioDisabledButtonCheckedBg:I}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-o*2}px`,background:d,border:`${o}px ${i} ${a}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`border-color ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${i} ${a}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:v,fontSize:h,lineHeight:`${v-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:p,paddingInline:m-o,paddingBlock:0,lineHeight:`${p-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:w},"&:has(:focus-visible)":Object.assign({},nu(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:w,background:$,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:S,borderColor:S,"&::before":{backgroundColor:S}},"&:active":{color:C,borderColor:C,"&::before":{backgroundColor:C}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:w,borderColor:w,"&:hover":{color:x,background:S,borderColor:S},"&:active":{color:x,background:C,borderColor:C}},"&-disabled":{color:_,backgroundColor:M,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:_,backgroundColor:M,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:I,borderColor:a,boxShadow:"none"}}}},qC=mn("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:o,colorBgContainer:i,fontSizeLG:a,controlOutline:s,colorPrimaryHover:l,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:h,controlOutlineWidth:v,colorTextLightSolid:p,wireframe:m}=e,g=`0 0 0 ${v}px ${s}`,b=g,y=a,w=4,$=y-w*2,S=m?$:y-(w+n)*2,C=d,x=u,_=l,M=c,E=t-n,R=At(e,{radioFocusShadow:g,radioButtonFocusShadow:b,radioSize:y,radioDotSize:S,radioDotDisabledSize:$,radioCheckedColor:C,radioDotDisabledColor:o,radioSolidCheckedColor:p,radioButtonBg:i,radioButtonCheckedBg:i,radioButtonColor:x,radioButtonHoverColor:_,radioButtonActiveColor:M,radioButtonPaddingHorizontal:E,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:o,radioWrapperMarginRight:h});return [xF(R),$F(R),EF(R)]});var OF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const PF=(e,t)=>{var n,r;const o=f__namespace.useContext(GC),i=f__namespace.useContext(KC),{getPrefixCls:a,direction:s}=f__namespace.useContext(mt),l=f__namespace.useRef(null),c=Pn(t,l),{isFormItemInput:u}=f__namespace.useContext(Kr),d=M=>{var E,I;(E=e.onChange)===null||E===void 0||E.call(e,M),(I=o==null?void 0:o.onChange)===null||I===void 0||I.call(o,M);},{prefixCls:h,className:v,rootClassName:p,children:m,style:g}=e,b=OF(e,["prefixCls","className","rootClassName","children","style"]),y=a("radio",h),w=((o==null?void 0:o.optionType)||i)==="button"?`${y}-button`:y,[$,S]=qC(y),C=Object.assign({},b),x=f__namespace.useContext(Bo);o&&(C.name=o.name,C.onChange=d,C.checked=e.value===o.value,C.disabled=(n=C.disabled)!==null&&n!==void 0?n:o.disabled),C.disabled=(r=C.disabled)!==null&&r!==void 0?r:x;const _=X(`${w}-wrapper`,{[`${w}-wrapper-checked`]:C.checked,[`${w}-wrapper-disabled`]:C.disabled,[`${w}-wrapper-rtl`]:s==="rtl",[`${w}-wrapper-in-form-item`]:u},v,p,S);return $(f__namespace.createElement("label",{className:_,style:g,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},f__namespace.createElement(XC,Object.assign({},C,{type:"radio",prefixCls:w,ref:c})),m!==void 0?f__namespace.createElement("span",null,m):null))},_F=f__namespace.forwardRef(PF),bc=_F,RF=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(mt),[o,i]=en(e.defaultValue,{value:e.value}),a=O=>{const R=o,P=O.target.value;"value"in e||i(P);const{onChange:T}=e;T&&P!==R&&T(O);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:h,children:v,size:p,style:m,id:g,onMouseEnter:b,onMouseLeave:y,onFocus:w,onBlur:$}=e,S=n("radio",s),C=`${S}-group`,[x,_]=qC(S);let M=v;u&&u.length>0&&(M=u.map(O=>typeof O=="string"||typeof O=="number"?f__namespace.createElement(bc,{key:O.toString(),prefixCls:S,disabled:h,value:O,checked:o===O},O):f__namespace.createElement(bc,{key:`radio-group-value-options-${O.value}`,prefixCls:S,disabled:O.disabled||h,value:O.value,checked:o===O.value,style:O.style},O.label)));const E=Or(p),I=X(C,`${C}-${d}`,{[`${C}-${E}`]:E,[`${C}-rtl`]:r==="rtl"},l,c,_);return x(f__namespace.createElement("div",Object.assign({},kT(e),{className:I,style:m,onMouseEnter:b,onMouseLeave:y,onFocus:w,onBlur:$,id:g,ref:t}),f__namespace.createElement(yF,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},M)))}),MF=f__namespace.memo(RF);var TF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const IF=(e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(mt),{prefixCls:r}=e,o=TF(e,["prefixCls"]),i=n("radio",r);return f__namespace.createElement(CF,{value:"button"},f__namespace.createElement(bc,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},NF=f__namespace.forwardRef(IF),mu=bc;mu.Button=NF;mu.Group=MF;mu.__ANT_RADIO=!0;const ri=mu,YC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Xs=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),yc=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),Sv=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Xs(At(e,{inputBorderHoverColor:e.colorBorder})))}),ZC=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return {padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},QC=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),gu=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},yc(At(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},yc(At(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},bu=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},YC(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Xs(e)),"&:focus, &-focused":Object.assign({},yc(e)),"&-disabled, &[disabled]":Object.assign({},Sv(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({},ZC(e)),"&-sm":Object.assign({},QC(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),JC=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({},ZC(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},QC(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},_M()),{[`${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`]:{display:"inline-flex"},[`& > ${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}}}})}},AF=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,i=(n-r*2-o)/2;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Jt(e)),bu(e)),gu(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},DF=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`}}}},kF=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bu(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Xs(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{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}}}),DF(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),gu(e,`${t}-affix-wrapper`))}},LF=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Jt(e)),JC(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},Sv(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}}}})}},FF=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return {[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
        > ${t},
        ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function eS(e){return At(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const zF=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return {[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},wv=mn("Input",e=>{const t=eS(e);return [AF(t),zF(t),kF(t),LF(t),FF(t),cu(t)]});var jF={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 HF=jF;var BF=function(t,n){return f__namespace.createElement(Qn,he({},t,{ref:n,icon:HF}))};const WF=f__namespace.forwardRef(BF),yu=f.createContext(null);var tS=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return f__namespace.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:X(n,a&&"".concat(n,"-active"),r),ref:t},l)}),VF=["key","forceRender","style","className"];function UF(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=f__namespace.useContext(yu),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return f__namespace.createElement("div",{className:X("".concat(s,"-content-holder"))},f__namespace.createElement("div",{className:X("".concat(s,"-content"),"".concat(s,"-content-").concat(o),U({},"".concat(s,"-content-animated"),c))},l.map(function(d){var h=d.key,v=d.forceRender,p=d.style,m=d.className,g=Xe(d,VF),b=h===n;return f__namespace.createElement(Pr,he({key:h,visible:b,forceRender:v,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(y,w){var $=y.style,S=y.className;return f__namespace.createElement(tS,he({},g,{prefixCls:u,id:t,tabKey:h,animated:c,active:b,style:H(H({},p),$),className:X(m,S),ref:w}))})})))}var Og={width:0,height:0,left:0,top:0};function GF(e,t,n){return f.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Og,a=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||Og;}var d=o.get(l)||H({},c);d.right=a-d.left-d.width,o.set(l,d);}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Pg(e,t){var n=f__namespace.useRef(e),r=f__namespace.useState({}),o=K(r,2),i=o[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,i({});}return [n.current,a]}var KF=.1,_g=.01,Fl=20,Rg=Math.pow(.995,Fl);function XF(e,t){var n=f.useState(),r=K(n,2),o=r[0],i=r[1],a=f.useState(0),s=K(a,2),l=s[0],c=s[1],u=f.useState(0),d=K(u,2),h=d[0],v=d[1],p=f.useState(),m=K(p,2),g=m[0],b=m[1],y=f.useRef();function w(M){var E=M.touches[0],I=E.screenX,O=E.screenY;i({x:I,y:O}),window.clearInterval(y.current);}function $(M){if(o){M.preventDefault();var E=M.touches[0],I=E.screenX,O=E.screenY;i({x:I,y:O});var R=I-o.x,P=O-o.y;t(R,P);var T=Date.now();c(T),v(T-l),b({x:R,y:P});}}function S(){if(o&&(i(null),b(null),g)){var M=g.x/h,E=g.y/h,I=Math.abs(M),O=Math.abs(E);if(Math.max(I,O)<KF)return;var R=M,P=E;y.current=window.setInterval(function(){if(Math.abs(R)<_g&&Math.abs(P)<_g){window.clearInterval(y.current);return}R*=Rg,P*=Rg,t(R*Fl,P*Fl);},Fl);}}var C=f.useRef();function x(M){var E=M.deltaX,I=M.deltaY,O=0,R=Math.abs(E),P=Math.abs(I);R===P?O=C.current==="x"?E:I:R>P?(O=E,C.current="x"):(O=I,C.current="y"),t(-O,-O)&&M.preventDefault();}var _=f.useRef(null);_.current={onTouchStart:w,onTouchMove:$,onTouchEnd:S,onWheel:x},f__namespace.useEffect(function(){function M(R){_.current.onTouchStart(R);}function E(R){_.current.onTouchMove(R);}function I(R){_.current.onTouchEnd(R);}function O(R){_.current.onWheel(R);}return document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",I,{passive:!1}),e.current.addEventListener("touchstart",M,{passive:!1}),e.current.addEventListener("wheel",O),function(){document.removeEventListener("touchmove",E),document.removeEventListener("touchend",I);}},[]);}function nS(e){var t=f.useState(0),n=K(t,2),r=n[0],o=n[1],i=f.useRef(0),a=f.useRef();return a.current=e,Xi(function(){var s;(s=a.current)===null||s===void 0||s.call(a);},[r]),function(){i.current===r&&(i.current+=1,o(i.current));}}function qF(e){var t=f.useRef([]),n=f.useState({}),r=K(n,2),o=r[1],i=f.useRef(typeof e=="function"?e():e),a=nS(function(){var l=i.current;t.current.forEach(function(c){l=c(l);}),t.current=[],i.current=l,o({});});function s(l){t.current.push(l),a();}return [i.current,s]}var Mg={width:0,height:0,left:0,top:0,right:0};function YF(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,h;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",h=Math.abs(n)):(u="height",d="top",h=-n),f.useMemo(function(){if(!s.length)return [0,0];for(var v=s.length,p=v,m=0;m<v;m+=1){var g=e.get(s[m].key)||Mg;if(g[d]+g[u]>h+t){p=m-1;break}}for(var b=0,y=v-1;y>=0;y-=1){var w=e.get(s[y].key)||Mg;if(w[d]<h){b=y+1;break}}return [b,p]},[e,t,r,o,i,h,l,s.map(function(v){return v.key}).join("_"),c])}function Tg(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var ZF="TABS_DQ";function rS(e){return String(e).replace(/"/g,ZF)}function QF(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return !r||r.showAdd===!1?null:f__namespace.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s});}},r.addIcon||"+")}const oS=f__namespace.forwardRef(QF);var Ig=f__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return tt(o)==="object"&&!f__namespace.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?f__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});function JF(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.moreIcon,l=s===void 0?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,h=e.editable,v=e.tabBarGutter,p=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,w=f.useState(!1),$=K(w,2),S=$[0],C=$[1],x=f.useState(null),_=K(x,2),M=_[0],E=_[1],I="".concat(r,"-more-popup"),O="".concat(n,"-dropdown"),R=M!==null?"".concat(I,"-").concat(M):null,P=i==null?void 0:i.dropdownAriaLabel;function T(L,V){L.preventDefault(),L.stopPropagation(),h.onEdit("remove",{key:V,event:L});}var A=f__namespace.createElement(Ks,{onClick:function(V){var G=V.key,q=V.domEvent;g(G,q),C(!1);},prefixCls:"".concat(O,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[M],"aria-label":P!==void 0?P:"expanded dropdown"},o.map(function(L){var V=h&&L.closable!==!1&&!L.disabled;return f__namespace.createElement(vu,{key:L.key,id:"".concat(I,"-").concat(L.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(L.key),disabled:L.disabled},f__namespace.createElement("span",null,L.label),V&&f__namespace.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(O,"-menu-item-remove"),onClick:function(q){q.stopPropagation(),T(q,L.key);}},L.closeIcon||h.removeIcon||"×"))}));function N(L){for(var V=o.filter(function(Y){return !Y.disabled}),G=V.findIndex(function(Y){return Y.key===M})||0,q=V.length,ne=0;ne<q;ne+=1){G=(G+L+q)%q;var Z=V[G];if(!Z.disabled){E(Z.key);return}}}function D(L){var V=L.which;if(!S){[J.DOWN,J.SPACE,J.ENTER].includes(V)&&(C(!0),L.preventDefault());return}switch(V){case J.UP:N(-1),L.preventDefault();break;case J.DOWN:N(1),L.preventDefault();break;case J.ESC:C(!1);break;case J.SPACE:case J.ENTER:M!==null&&g(M,L);break}}f.useEffect(function(){var L=document.getElementById(R);L&&L.scrollIntoView&&L.scrollIntoView(!1);},[M]),f.useEffect(function(){S||E(null);},[S]);var F=U({},p?"marginRight":"marginLeft",v);o.length||(F.visibility="hidden",F.order=1);var W=X(U({},"".concat(O,"-rtl"),p)),z=a?null:f__namespace.createElement(Dk,{prefixCls:O,overlay:A,trigger:["hover"],visible:o.length?S:!1,transitionName:c,onVisibleChange:C,overlayClassName:X(W,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},f__namespace.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:F,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":I,id:"".concat(r,"-more"),"aria-expanded":S,onKeyDown:D},l));return f__namespace.createElement("div",{className:X("".concat(n,"-nav-operations"),d),style:u,ref:t},z,f__namespace.createElement(oS,{prefixCls:n,locale:i,editable:h}))}const e3=f__namespace.memo(f__namespace.forwardRef(JF),function(e,t){return t.tabMoving});function t3(e){var t,n=e.prefixCls,r=e.id,o=e.active,i=e.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=e.closable,d=e.renderWrapper,h=e.removeAriaLabel,v=e.editable,p=e.onClick,m=e.onFocus,g=e.style,b="".concat(n,"-tab"),y=v&&u!==!1&&!l;function w(C){l||p(C);}function $(C){C.preventDefault(),C.stopPropagation(),v.onEdit("remove",{key:a,event:C});}var S=f__namespace.createElement("div",{key:a,"data-node-key":rS(a),className:X(b,(t={},U(t,"".concat(b,"-with-remove"),y),U(t,"".concat(b,"-active"),o),U(t,"".concat(b,"-disabled"),l),t)),style:g,onClick:w},f__namespace.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(x){x.stopPropagation(),w(x);},onKeyDown:function(x){[J.SPACE,J.ENTER].includes(x.which)&&(x.preventDefault(),w(x));},onFocus:m},s),y&&f__namespace.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(x){x.stopPropagation(),$(x);}},c||v.removeIcon||"×"));return d?d(S):S}var Di=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;return [o,a]},Ol=function(t,n){return t[n?0:1]};function n3(e,t){var n,r=f__namespace.useContext(yu),o=r.prefixCls,i=r.tabs,a=e.className,s=e.style,l=e.id,c=e.animated,u=e.activeKey,d=e.rtl,h=e.extra,v=e.editable,p=e.locale,m=e.tabPosition,g=e.tabBarGutter,b=e.children,y=e.onTabClick,w=e.onTabScroll,$=f.useRef(),S=f.useRef(),C=f.useRef(),x=f.useRef(),_=f.useRef(),M=f.useRef(),E=f.useRef(),I=m==="top"||m==="bottom",O=Pg(0,function(Te,We){I&&w&&w({direction:Te>We?"left":"right"});}),R=K(O,2),P=R[0],T=R[1],A=Pg(0,function(Te,We){!I&&w&&w({direction:Te>We?"top":"bottom"});}),N=K(A,2),D=N[0],F=N[1],W=f.useState([0,0]),z=K(W,2),L=z[0],V=z[1],G=f.useState([0,0]),q=K(G,2),ne=q[0],Z=q[1],Y=f.useState([0,0]),te=K(Y,2),re=te[0],se=te[1],de=f.useState([0,0]),ee=K(de,2),ie=ee[0],ce=ee[1],le=qF(new Map),ve=K(le,2),oe=ve[0],pe=ve[1],ue=GF(i,oe,ne[0]),ye=Ol(L,I),Ie=Ol(ne,I),De=Ol(re,I),Le=Ol(ie,I),_e=ye<Ie+De,qe=_e?ye-Le:ye-De,vt="".concat(o,"-nav-operations-hidden"),et=0,Qe=0;I&&d?(et=0,Qe=Math.max(0,Ie-qe)):(et=Math.min(0,qe-Ie),Qe=0);function ke(Te){return Te<et?et:Te>Qe?Qe:Te}var ze=f.useRef(),dt=f.useState(),at=K(dt,2),be=at[0],we=at[1];function Ye(){we(Date.now());}function Ue(){window.clearTimeout(ze.current);}XF(x,function(Te,We){function lt(Pt,qt){Pt(function(Bt){var wn=ke(Bt+qt);return wn});}return _e?(I?lt(T,Te):lt(F,We),Ue(),Ye(),!0):!1}),f.useEffect(function(){return Ue(),be&&(ze.current=window.setTimeout(function(){we(0);},100)),Ue},[be]);var ft=YF(ue,qe,I?P:D,Ie,De,Le,H(H({},e),{},{tabs:i})),$e=K(ft,2),Ee=$e[0],je=$e[1],Re=yr(function(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,We=ue.get(Te)||{width:0,height:0,left:0,right:0,top:0};if(I){var lt=P;d?We.right<P?lt=We.right:We.right+We.width>P+qe&&(lt=We.right+We.width-qe):We.left<-P?lt=-We.left:We.left+We.width>-P+qe&&(lt=-(We.left+We.width-qe)),F(0),T(ke(lt));}else {var Pt=D;We.top<-D?Pt=-We.top:We.top+We.height>-D+qe&&(Pt=-(We.top+We.height-qe)),T(0),F(ke(Pt));}}),Je={};m==="top"||m==="bottom"?Je[d?"marginRight":"marginLeft"]=g:Je.marginTop=g;var Et=i.map(function(Te,We){var lt=Te.key;return f__namespace.createElement(t3,{id:l,prefixCls:o,key:lt,tab:Te,style:We===0?void 0:Je,closable:Te.closable,editable:v,active:lt===u,renderWrapper:b,removeAriaLabel:p==null?void 0:p.removeAriaLabel,onClick:function(qt){y(lt,qt);},onFocus:function(){Re(lt),Ye(),x.current&&(d||(x.current.scrollLeft=0),x.current.scrollTop=0);}})}),Ft=function(){return pe(function(){var We=new Map;return i.forEach(function(lt){var Pt,qt=lt.key,Bt=(Pt=_.current)===null||Pt===void 0?void 0:Pt.querySelector('[data-node-key="'.concat(rS(qt),'"]'));Bt&&We.set(qt,{width:Bt.offsetWidth,height:Bt.offsetHeight,left:Bt.offsetLeft,top:Bt.offsetTop});}),We})};f.useEffect(function(){Ft();},[i.map(function(Te){return Te.key}).join("_")]);var kt=nS(function(){var Te=Di($),We=Di(S),lt=Di(C);V([Te[0]-We[0]-lt[0],Te[1]-We[1]-lt[1]]);var Pt=Di(E);se(Pt);var qt=Di(M);ce(qt);var Bt=Di(_);Z([Bt[0]-Pt[0],Bt[1]-Pt[1]]),Ft();}),Ne=i.slice(0,Ee),fe=i.slice(je+1),ae=[].concat(ge(Ne),ge(fe)),Se=f.useState(),xe=K(Se,2),Ze=xe[0],pt=xe[1],xt=ue.get(u),Xt=f.useRef();function Vt(){wt.cancel(Xt.current);}f.useEffect(function(){var Te={};return xt&&(I?(d?Te.right=xt.right:Te.left=xt.left,Te.width=xt.width):(Te.top=xt.top,Te.height=xt.height)),Vt(),Xt.current=wt(function(){pt(Te);}),Vt},[xt,I,d]),f.useEffect(function(){Re();},[u,et,Qe,Tg(xt),Tg(ue),I]),f.useEffect(function(){kt();},[d]);var Ae=!!ae.length,Ge="".concat(o,"-nav-wrap"),Me,$t,yt,Zt;return I?d?($t=P>0,Me=P!==Qe):(Me=P<0,$t=P!==et):(yt=D<0,Zt=D!==et),f__namespace.createElement(go,{onResize:kt},f__namespace.createElement("div",{ref:ks(t,$),role:"tablist",className:X("".concat(o,"-nav"),a),style:s,onKeyDown:function(){Ye();}},f__namespace.createElement(Ig,{ref:S,position:"left",extra:h,prefixCls:o}),f__namespace.createElement("div",{className:X(Ge,(n={},U(n,"".concat(Ge,"-ping-left"),Me),U(n,"".concat(Ge,"-ping-right"),$t),U(n,"".concat(Ge,"-ping-top"),yt),U(n,"".concat(Ge,"-ping-bottom"),Zt),n)),ref:x},f__namespace.createElement(go,{onResize:kt},f__namespace.createElement("div",{ref:_,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(P,"px, ").concat(D,"px)"),transition:be?"none":void 0}},Et,f__namespace.createElement(oS,{ref:E,prefixCls:o,locale:p,editable:v,style:H(H({},Et.length===0?void 0:Je),{},{visibility:Ae?"hidden":null})}),f__namespace.createElement("div",{className:X("".concat(o,"-ink-bar"),U({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:Ze})))),f__namespace.createElement(e3,he({},e,{removeAriaLabel:p==null?void 0:p.removeAriaLabel,ref:M,prefixCls:o,tabs:ae,className:!Ae&&vt,tabMoving:!!be})),f__namespace.createElement(Ig,{ref:C,position:"right",extra:h,prefixCls:o})))}const Ng=f__namespace.forwardRef(n3);var r3=["renderTabBar"],o3=["label","key"];function i3(e){var t=e.renderTabBar,n=Xe(e,r3),r=f__namespace.useContext(yu),o=r.tabs;if(t){var i=H(H({},n),{},{panes:o.map(function(a){var s=a.label,l=a.key,c=Xe(a,o3);return f__namespace.createElement(tS,he({tab:s,key:l,tabKey:l},c))})});return t(i,Ng)}return f__namespace.createElement(Ng,n)}function a3(){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=H({inkBar:!0},tt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var s3=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],Ag=0;function l3(e,t){var n,r=e.id,o=e.prefixCls,i=o===void 0?"rc-tabs":o,a=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,h=e.animated,v=e.tabPosition,p=v===void 0?"top":v,m=e.tabBarGutter,g=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,w=e.moreIcon,$=e.moreTransitionName,S=e.destroyInactiveTabPane,C=e.renderTabBar,x=e.onChange,_=e.onTabClick,M=e.onTabScroll,E=e.getPopupContainer,I=e.popupClassName,O=Xe(e,s3),R=f__namespace.useMemo(function(){return (s||[]).filter(function(le){return le&&tt(le)==="object"&&"key"in le})},[s]),P=l==="rtl",T=a3(h),A=f.useState(!1),N=K(A,2),D=N[0],F=N[1];f.useEffect(function(){F(Ws());},[]);var W=en(function(){var le;return (le=R[0])===null||le===void 0?void 0:le.key},{value:c,defaultValue:u}),z=K(W,2),L=z[0],V=z[1],G=f.useState(function(){return R.findIndex(function(le){return le.key===L})}),q=K(G,2),ne=q[0],Z=q[1];f.useEffect(function(){var le=R.findIndex(function(oe){return oe.key===L});if(le===-1){var ve;le=Math.max(0,Math.min(ne,R.length-1)),V((ve=R[le])===null||ve===void 0?void 0:ve.key);}Z(le);},[R.map(function(le){return le.key}).join("_"),L,ne]);var Y=en(null,{value:r}),te=K(Y,2),re=te[0],se=te[1];f.useEffect(function(){r||(se("rc-tabs-".concat(Ag)),Ag+=1);},[]);function de(le,ve){_==null||_(le,ve);var oe=le!==L;V(le),oe&&(x==null||x(le));}var ee={id:re,activeKey:L,animated:T,tabPosition:p,rtl:P,mobile:D},ie,ce=H(H({},ee),{},{editable:d,locale:y,moreIcon:w,moreTransitionName:$,tabBarGutter:m,onTabClick:de,onTabScroll:M,extra:b,style:g,panes:null,getPopupContainer:E,popupClassName:I});return f__namespace.createElement(yu.Provider,{value:{tabs:R,prefixCls:i}},f__namespace.createElement("div",he({ref:t,id:r,className:X(i,"".concat(i,"-").concat(p),(n={},U(n,"".concat(i,"-mobile"),D),U(n,"".concat(i,"-editable"),d),U(n,"".concat(i,"-rtl"),P),n),a)},O),ie,f__namespace.createElement(i3,he({},ce,{renderTabBar:C})),f__namespace.createElement(UF,he({destroyInactiveTabPane:S},ee,{animated:T}))))}var c3=f__namespace.forwardRef(l3);const u3=()=>null,d3=u3,f3={motionAppear:!1,motionEnter:!0,motionLeave:!0};function h3(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({},f3),{motionName:uu(e,"switch")})),n}var v3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function p3(e){return e.filter(t=>t)}function m3(e,t){if(e)return e;const n=wr(t).map(r=>{if(f__namespace.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=v3(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return p3(n)}const g3=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}`}}}}},[fc(e,"slide-up"),fc(e,"slide-down")]]},b3=g3,y3=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:o,colorBorderSecondary:i}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,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}}}}}}},C3=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},Jt(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({},Ki),{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"}}})}})}},S3=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::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:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${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}}}}}},w3=e=>{const{componentCls:t,padding:n}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${n}px`}},[`&${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:`${e.paddingXS}px ${n}px ${e.paddingXXS*1.5}px`}}}}}},x3=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:r,iconCls:o,tabsHorizontalGutter:i}=e,a=`${t}-tab`;return {[a]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Uh(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},[`&${a}-active ${a}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${a}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${a}-disabled ${a}-btn, &${a}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${a}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${a} + ${a}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${i}px`}}}},$3=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:o}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${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}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},E3=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:o,tabsHoverColor:i,tabsActiveColor:a,colorBorderSecondary:s}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Jt(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}px`,marginLeft:{_skip_check_:!0,value:`${o}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Uh(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),x3(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"}}}}}},O3=mn("Tabs",e=>{const t=e.controlHeightLG,n=At(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return [w3(n),$3(n),S3(n),C3(n),y3(n),E3(n),b3(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var P3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function iS(e){var{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:h}=e,v=P3(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated"]);const{prefixCls:p,moreIcon:m=f__namespace.createElement(fF,null)}=v,{direction:g,getPrefixCls:b,getPopupContainer:y}=f__namespace.useContext(mt),w=b("tabs",p),[$,S]=O3(w);let C;t==="editable-card"&&(C={onEdit:(I,O)=>{let{key:R,event:P}=O;i==null||i(I==="add"?P:R,I);},removeIcon:f__namespace.createElement(Yh,null),addIcon:l||f__namespace.createElement(WF,null),showAdd:a!==!0});const x=b(),_=m3(d,u),M=h3(w,h),E=Or(o);return $(f__namespace.createElement(c3,Object.assign({direction:g,getPopupContainer:y,moreTransitionName:`${x}-slide-up`},v,{items:_,className:X({[`${w}-${E}`]:E,[`${w}-card`]:["card","editable-card"].includes(t),[`${w}-editable-card`]:t==="editable-card",[`${w}-centered`]:s},n,r,S),popupClassName:X(c,S),editable:C,moreIcon:m,prefixCls:w,animated:M})))}iS.TabPane=d3;const _3=new Tt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),R3=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Jt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Jt(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({},Jt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},nu(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}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&: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}:hover ${t}:after`]:{visibility:"visible"},[`
        ${n}:not(${n}-disabled),
        ${t}:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:_3,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`
        ${n}-checked:not(${n}-disabled),
        ${t}-checked:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${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 M3(e,t){const n=At(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [R3(n)]}const aS=mn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [M3(n,e)]});var T3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sS=f__namespace.createContext(null),I3=(e,t)=>{var{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=T3(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:d,direction:h}=f__namespace.useContext(mt),[v,p]=f__namespace.useState(u.value||n||[]),[m,g]=f__namespace.useState([]);f__namespace.useEffect(()=>{"value"in u&&p(u.value||[]);},[u.value]);const b=()=>o.map(O=>typeof O=="string"||typeof O=="number"?{label:O,value:O}:O),y=O=>{g(R=>R.filter(P=>P!==O));},w=O=>{g(R=>[].concat(ge(R),[O]));},$=O=>{const R=v.indexOf(O.value),P=ge(v);R===-1?P.push(O.value):P.splice(R,1),"value"in u||p(P);const T=b();c==null||c(P.filter(A=>m.includes(A)).sort((A,N)=>{const D=T.findIndex(W=>W.value===A),F=T.findIndex(W=>W.value===N);return D-F}));},S=d("checkbox",i),C=`${S}-group`,[x,_]=aS(S),M=xr(u,["value","disabled"]);o&&o.length>0&&(r=b().map(O=>f__namespace.createElement(lS,{prefixCls:S,key:O.value.toString(),disabled:"disabled"in O?O.disabled:u.disabled,value:O.value,checked:v.includes(O.value),onChange:O.onChange,className:`${C}-item`,style:O.style},O.label)));const E={toggleOption:$,value:v,disabled:u.disabled,name:u.name,registerValue:w,cancelValue:y},I=X(C,{[`${C}-rtl`]:h==="rtl"},a,s,_);return x(f__namespace.createElement("div",Object.assign({className:I,style:l},M,{ref:t}),f__namespace.createElement(sS.Provider,{value:E},r)))},N3=f__namespace.forwardRef(I3),A3=f__namespace.memo(N3);var D3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const k3=(e,t)=>{var n,{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:h}=e,v=D3(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:p,direction:m}=f__namespace.useContext(mt),g=f__namespace.useContext(sS),{isFormItemInput:b}=f__namespace.useContext(Kr),y=f__namespace.useContext(Bo),w=(n=(g==null?void 0:g.disabled)||h)!==null&&n!==void 0?n:y,$=f__namespace.useRef(v.value);f__namespace.useEffect(()=>{g==null||g.registerValue(v.value);},[]),f__namespace.useEffect(()=>{if(!d)return v.value!==$.current&&(g==null||g.cancelValue($.current),g==null||g.registerValue(v.value),$.current=v.value),()=>g==null?void 0:g.cancelValue(v.value)},[v.value]);const S=p("checkbox",r),[C,x]=aS(S),_=Object.assign({},v);g&&!d&&(_.onChange=function(){v.onChange&&v.onChange.apply(v,arguments),g.toggleOption&&g.toggleOption({label:a,value:v.value});},_.name=g.name,_.checked=g.value.includes(v.value));const M=X({[`${S}-wrapper`]:!0,[`${S}-rtl`]:m==="rtl",[`${S}-wrapper-checked`]:_.checked,[`${S}-wrapper-disabled`]:w,[`${S}-wrapper-in-form-item`]:b},o,i,x),E=X({[`${S}-indeterminate`]:s},x),I=s?"mixed":void 0;return C(f__namespace.createElement("label",{className:M,style:l,onMouseEnter:c,onMouseLeave:u},f__namespace.createElement(XC,Object.assign({"aria-checked":I},_,{prefixCls:S,className:E,disabled:w,ref:t})),a!==void 0&&f__namespace.createElement("span",null,a)))},L3=f__namespace.forwardRef(k3),lS=L3,xv=lS;xv.Group=A3;xv.__ANT_CHECKBOX=!0;const F3=xv;var cS=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=f.useState(l||o),d=K(u,2),h=d[0],v=d[1];return f.useEffect(function(){(o||l)&&v(!0);},[o,l]),h?f.createElement("div",{ref:t,className:X("".concat(r,"-content"),(n={},U(n,"".concat(r,"-content-active"),l),U(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},f.createElement("div",{className:"".concat(r,"-content-box")},s)):null});cS.displayName="PanelContent";var z3=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],j3=f.forwardRef(function(e,t){var n,r,o=e.showArrow,i=o===void 0?!0:o,a=e.headerClass,s=e.isActive,l=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,h=e.collapsible,v=e.accordion,p=e.panelKey,m=e.extra,g=e.header,b=e.expandIcon,y=e.openMotion,w=e.destroyInactivePanel,$=e.children,S=Xe(e,z3),C=h==="disabled",x=h==="header",_=h==="icon",M=m!=null&&typeof m!="boolean",E=function(){l==null||l(p);},I=function(N){(N.key==="Enter"||N.keyCode===J.ENTER||N.which===J.ENTER)&&E();},O=typeof b=="function"?b(e):f.createElement("i",{className:"arrow"});O&&(O=f.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(h)?E:void 0},O));var R=X((n={},U(n,"".concat(d,"-item"),!0),U(n,"".concat(d,"-item-active"),s),U(n,"".concat(d,"-item-disabled"),C),n),u),P=X((r={},U(r,"".concat(d,"-header"),!0),U(r,"headerClass",a),U(r,"".concat(d,"-header-collapsible-only"),x),U(r,"".concat(d,"-icon-collapsible-only"),_),r)),T={className:P,"aria-expanded":s,"aria-disabled":C,onKeyPress:I};return !x&&!_&&(T.onClick=E,T.role=v?"tab":"button",T.tabIndex=C?-1:0),f.createElement("div",he({},S,{ref:t,className:R}),f.createElement("div",T,i&&O,f.createElement("span",{className:"".concat(d,"-header-text"),onClick:h==="header"?E:void 0},g),M&&f.createElement("div",{className:"".concat(d,"-extra")},m)),f.createElement(Pr,he({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:w}),function(A,N){var D=A.className,F=A.style;return f.createElement(cS,{ref:N,prefixCls:d,className:D,style:F,isActive:s,forceRender:c,role:v?"tabpanel":void 0},$)}))});function H3(e){var t=e;if(!Array.isArray(t)){var n=tt(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var B3=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,a=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,h=e.expandIcon,v=e.activeKey,p=e.defaultActiveKey,m=e.onChange,g=X(r,l),b=en([],{value:v,onChange:function(M){return m==null?void 0:m(M)},defaultValue:p,postState:H3}),y=K(b,2),w=y[0],$=y[1],S=function(M){return $(function(){if(s)return w[0]===M?[]:[M];var E=w.indexOf(M),I=E>-1;return I?w.filter(function(O){return O!==M}):[].concat(ge(w),[M])})},C=function(M,E){if(!M)return null;var I=M.key||String(E),O=M.props,R=O.header,P=O.headerClass,T=O.destroyInactivePanel,A=O.collapsible,N=O.onItemClick,D=!1;s?D=w[0]===I:D=w.indexOf(I)>-1;var F=A??u,W=function(V){F!=="disabled"&&(S(V),N==null||N(V));},z={key:I,panelKey:I,header:R,headerClass:P,isActive:D,prefixCls:r,destroyInactivePanel:T??i,openMotion:d,accordion:s,children:M.props.children,onItemClick:W,expandIcon:h,collapsible:F};return typeof M.type=="string"?M:(Object.keys(z).forEach(function(L){typeof z[L]>"u"&&delete z[L];}),f.cloneElement(M,z))},x=wr(c).map(C);return f.createElement("div",{ref:t,className:g,style:a,role:s?"tablist":void 0},x)});const $v=Object.assign(B3,{Panel:j3});$v.Panel;const W3=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(mt),{prefixCls:r,className:o="",showArrow:i=!0}=e,a=n("collapse",r),s=X({[`${a}-no-arrow`]:!i},o);return f__namespace.createElement($v.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),V3=W3,U3=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:h,colorText:v,colorTextHeading:p,colorTextDisabled:m,fontSize:g,fontSizeLG:b,lineHeight:y,marginSM:w,paddingSM:$,paddingLG:S,motionDurationSlow:C,fontSizeIcon:x}=e,_=`${u}px ${d} ${h}`;return {[t]:Object.assign(Object.assign({},Jt(e)),{backgroundColor:i,border:_,borderBottom:0,borderRadius:`${c}px`,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:_,["&:last-child"]:{[`
            &,
            & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:p,lineHeight:y,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*y,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},js()),{fontSize:x,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:$}}},[`${t}-content`]:{color:v,backgroundColor:n,borderTop:_,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s},[`> ${t}-content > ${t}-content-box`]:{padding:$}}},["&-large"]:{[`> ${t}-item`]:{fontSize:b,[`> ${t}-header`]:{padding:l,[`> ${t}-expand-icon`]:{height:b*y}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{[`
          &,
          & > .arrow
        `]:{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},G3=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},K3=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return {[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`
        > ${t}-item:last-child,
        > ${t}-item:last-child ${t}-header
      `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},X3=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}}}}}},q3=mn("Collapse",e=>{const t=At(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return [U3(t),K3(t),X3(t),G3(t),LN(t)]}),Y3=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(mt),{prefixCls:o,className:i,rootClassName:a,bordered:s=!0,ghost:l,size:c,expandIconPosition:u="start",children:d,expandIcon:h}=e,v=Or(x=>{var _;return (_=c??x)!==null&&_!==void 0?_:"middle"}),p=n("collapse",o),m=n(),[g,b]=q3(p),y=f__namespace.useMemo(()=>u==="left"?"start":u==="right"?"end":u,[u]),w=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const _=h?h(x):f__namespace.createElement(Pk,{rotate:x.isActive?90:void 0});return $r(_,()=>({className:X(_.props.className,`${p}-arrow`)}))},$=X(`${p}-icon-position-${y}`,{[`${p}-borderless`]:!s,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!l,[`${p}-${v}`]:v!=="middle"},i,a,b),S=Object.assign(Object.assign({},GI(m)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),C=f__namespace.useMemo(()=>wr(d).map((x,_)=>{var M,E;if(!((M=x.props)===null||M===void 0)&&M.disabled){const I=(E=x.key)!==null&&E!==void 0?E:String(_),{disabled:O,collapsible:R}=x.props,P=Object.assign(Object.assign({},xr(x.props,["disabled"])),{key:I,collapsible:R??(O?"disabled":void 0)});return $r(x,P)}return x}),[d]);return g(f__namespace.createElement($v,Object.assign({ref:t,openMotion:S},xr(e,["rootClassName"]),{expandIcon:w,prefixCls:p,className:$}),C))}),uS=Object.assign(Y3,{Panel:V3});var Z3=["v"],Gf=function(e){zo(n,e);var t=jo(n);function n(r){return vn(this,n),t.call(this,e5(r))}return pn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=ci(o.s*100),a=ci(o.b*100),s=ci(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv();tt(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var i=o;i.v;var a=Xe(i,Z3);return H(H({},a),{},{b:o.v})}}]),n}(nn),Q3=["b"],J3="rc-color-picker",ci=function(t){return Math.round(Number(t||0))},e5=function(t){if(t&&tt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Xe(n,Q3);return H(H({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Do=function(t){return t instanceof Gf?t:new Gf(t)},t5=Do("#1677ff"),dS=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),d=u.width,h=u.height,v=d/2,p=h/2,m=(n.x+v)/l,g=1-(n.y+p)/c,b=i.toHsb(),y=m,w=(n.x+v)/l*360;if(a)switch(a){case"hue":return Do(H(H({},b),{},{h:w<=0?0:w}));case"alpha":return Do(H(H({},b),{},{a:y<=0?0:y}))}return Do({h:b.h,s:m<=0?0:m,b:g>=1?1:g,a:b.a})},fS=function(t,n,r,o){var i=t.current.getBoundingClientRect(),a=i.width,s=i.height,l=n.current.getBoundingClientRect(),c=l.width,u=l.height,d=c/2,h=u/2,v=r.toHsb();if(!(c===0&&u===0||c!==u)){if(o)switch(o){case"hue":return {x:v.h/360*a-d,y:-h/3};case"alpha":return {x:v.a/1*a-d,y:-h/3}}return {x:v.s*a-d,y:(1-v.b)*s-h}}},Ev=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(r,"-color-block");return f.createElement("div",{className:X(s,o),style:i,onClick:a},f.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function n5(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 hS(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,s=e.calculate,l=e.color,c=e.disabledDrag,u=f.useState(t||{x:0,y:0}),d=K(u,2),h=d[0],v=d[1],p=f.useRef(null),m=f.useRef(null),g=f.useRef({flag:!1});f.useEffect(function(){if(g.current.flag===!1){var S=s==null?void 0:s(r);S&&v(S);}},[l,r]),f.useEffect(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null;}},[]);var b=function(C){var x=n5(C),_=x.pageX,M=x.pageY,E=r.current.getBoundingClientRect(),I=E.x,O=E.y,R=E.width,P=E.height,T=n.current.getBoundingClientRect(),A=T.width,N=T.height,D=A/2,F=N/2,W=Math.max(0,Math.min(_-I,R))-D,z=Math.max(0,Math.min(M-O,P))-F,L={x:W,y:o==="x"?h.y:z};if(A===0&&N===0||A!==N)return !1;v(L),i==null||i(L);},y=function(C){C.preventDefault(),b(C);},w=function(C){C.preventDefault(),g.current.flag=!1,document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null,a==null||a();},$=function(C){c||(b(C),g.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.addEventListener("touchmove",y),document.addEventListener("touchend",w),p.current=y,m.current=w);};return [h,$]}var vS=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return f.createElement("div",{className:X("".concat(i,"-handler"),U({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},pS=function(t){var n=t.children,r=t.style,o=t.prefixCls;return f.createElement("div",{className:"".concat(o,"-palette"),style:H({position:"relative"},r)},n)},mS=f.forwardRef(function(e,t){var n=e.children,r=e.offset;return f.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),r5=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=f.useRef(),l=f.useRef(),c=hS({color:n,containerRef:s,targetRef:l,calculate:function(p){return fS(p,l,n)},onDragChange:function(p){return r(dS({offset:p,targetRef:l,containerRef:s,color:n}))},onDragChangeComplete:i,disabledDrag:a}),u=K(c,2),d=u[0],h=u[1];return f.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},f.createElement(pS,{prefixCls:o},f.createElement(mS,{offset:d,ref:l},f.createElement(vS,{color:n.toRgbString(),prefixCls:o})),f.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},o5=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,s=t.prefixCls,l=f.useMemo(function(){return n.map(function(c,u){var d=Do(c);return a==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,a]);return f.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},r)},Dg=function(t){var n=t.gradientColors,r=t.direction,o=t.type,i=o===void 0?"hue":o,a=t.color,s=t.value,l=t.onChange,c=t.onChangeComplete,u=t.disabled,d=t.prefixCls,h=f.useRef(),v=f.useRef(),p=hS({color:a,targetRef:v,containerRef:h,calculate:function(w){return fS(w,v,a,i)},onDragChange:function(w){l(dS({offset:w,targetRef:v,containerRef:h,color:a,type:i}));},onDragChangeComplete:function(){c==null||c(i);},direction:"x",disabledDrag:u}),m=K(p,2),g=m[0],b=m[1];return f.createElement("div",{ref:h,className:X("".concat(d,"-slider"),"".concat(d,"-slider-").concat(i)),onMouseDown:b,onTouchStart:b},f.createElement(pS,{prefixCls:d},f.createElement(mS,{offset:g,ref:v},f.createElement(vS,{size:"small",color:s,prefixCls:d})),f.createElement(o5,{colors:n,direction:r,type:i,prefixCls:d})))};function kg(e){return e!==void 0}var i5=function(t,n){var r=n.defaultValue,o=n.value,i=f.useState(function(){var c;return kg(o)?c=o:kg(r)?c=r:c=t,Do(c)}),a=K(i,2),s=a[0],l=a[1];return f.useEffect(function(){o&&l(Do(o));},[o]),[s,l]},a5=["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 s5=f.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?J3:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,h=d===void 0?!1:d,v=e.disabled,p=v===void 0?!1:v,m=i5(t5,{value:n,defaultValue:r}),g=K(m,2),b=g[0],y=g[1],w=f.useMemo(function(){var _=Do(b.toRgbString());return _.setAlpha(1),_.toRgbString()},[b]),$=X("".concat(i,"-panel"),l,U({},"".concat(i,"-panel-disabled"),p)),S={prefixCls:i,onChangeComplete:s,disabled:p},C=function(M,E){n||y(M),a==null||a(M,E);},x=f.createElement(f.Fragment,null,f.createElement(r5,he({color:b,onChange:C},S)),f.createElement("div",{className:"".concat(i,"-slider-container")},f.createElement("div",{className:X("".concat(i,"-slider-group"),U({},"".concat(i,"-slider-group-disabled-alpha"),h))},f.createElement(Dg,he({gradientColors:a5,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(M){return C(M,"hue")}},S)),!h&&f.createElement(Dg,he({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",w],color:b,value:b.toRgbString(),onChange:function(M){return C(M,"alpha")}},S))),f.createElement(Ev,{color:b.toRgbString(),prefixCls:i})));return f.createElement("div",{className:$,style:c,ref:t},typeof u=="function"?u(x):x)}),l5=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return {[t]:Object.assign(Object.assign({},Jt(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},c5=mn("Divider",e=>{const t=At(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return [l5(t)]},{sizePaddingEdgeHorizontal:0});var u5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const d5=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(mt),{prefixCls:r,type:o="horizontal",orientation:i="center",orientationMargin:a,className:s,rootClassName:l,children:c,dashed:u,plain:d}=e,h=u5(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain"]),v=t("divider",r),[p,m]=c5(v),g=i.length>0?`-${i}`:i,b=!!c,y=i==="left"&&a!=null,w=i==="right"&&a!=null,$=X(v,m,`${v}-${o}`,{[`${v}-with-text`]:b,[`${v}-with-text${g}`]:b,[`${v}-dashed`]:!!u,[`${v}-plain`]:!!d,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:y,[`${v}-no-default-orientation-margin-right`]:w},s,l),S=Object.assign(Object.assign({},y&&{marginLeft:a}),w&&{marginRight:a});return p(f__namespace.createElement("div",Object.assign({className:$},h,{role:"separator"}),c&&o!=="vertical"&&f__namespace.createElement("span",{className:`${v}-inner-text`,style:S},c)))},f5=d5;let Lg=function(){function e(t){vn(this,e),this.metaColor=new Gf(t);}return pn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return p5(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 h5="ant-color-picker",Ln=e=>e instanceof Lg?e:new Lg(e),v5=e=>ci(e.toHsb().a*100),zl=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",p5=(e,t)=>e?zl(e,t):"",m5=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=()=>{if(n){const i=n.toHsb();i.a=0;const a=Ln(i);r==null||r(a);}};return f.createElement("div",{className:`${t}-clear`,onClick:o})},gS=m5;var lo;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(lo||(lo={}));var g5={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 b5=g5;var y5=function(t,n){return f__namespace.createElement(Qn,he({},t,{ref:n,icon:b5}))};const C5=f__namespace.forwardRef(y5);function Kf(){return typeof BigInt=="function"}function ui(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return {negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function Ov(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function $s(e){var t=String(e);if(Ov(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(".")&&Pv(t)?t.length-t.indexOf(".")-1:0}function Cu(e){var t=String(e);if(Ov(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Kf()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Kf()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed($s(t));}return ui(t).fullStr}function Pv(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 bS(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var S5=function(){function e(t){if(vn(this,e),U(this,"origin",""),U(this,"number",void 0),U(this,"empty",void 0),bS(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return pn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max($s(this.number),$s(r));return new e(o.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Cu(this.number):this.origin}}]),e}(),w5=function(){function e(t){if(vn(this,e),U(this,"origin",""),U(this,"negative",void 0),U(this,"integer",void 0),U(this,"decimal",void 0),U(this,"decimalLen",void 0),U(this,"empty",void 0),U(this,"nan",void 0),bS(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Ov(n)&&(n=Number(n)),n=typeof n=="string"?n:Cu(n),Pv(n)){var r=ui(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length;}else this.nan=!0;}return pn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),i=this.alignDecimal(o),a=r.alignDecimal(o),s=(i+a).toString(),l=ui(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()?"":ui("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function dr(e){return Kf()?new w5(e):new S5(e)}function jl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=ui(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=dr(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return jl(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)}var x5=function(){var t=f.useState(!1),n=K(t,2),r=n[0],o=n[1];return Ht(function(){o(Ws());},[]),r},$5=200,E5=600;function O5(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=f__namespace.useRef(),l=f__namespace.useRef();l.current=a;var c=function(b,y){b.preventDefault(),l.current(y);function w(){l.current(y),s.current=setTimeout(w,$5);}s.current=setTimeout(w,E5);},u=function(){clearTimeout(s.current);};f__namespace.useEffect(function(){return u},[]);var d=x5();if(d)return null;var h="".concat(t,"-handler"),v=X(h,"".concat(h,"-up"),U({},"".concat(h,"-up-disabled"),o)),p=X(h,"".concat(h,"-down"),U({},"".concat(h,"-down-disabled"),i)),m={unselectable:"on",role:"button",onMouseUp:u,onMouseLeave:u};return f__namespace.createElement("div",{className:"".concat(h,"-wrap")},f__namespace.createElement("span",he({},m,{onMouseDown:function(b){c(b,!0);},"aria-label":"Increase Value","aria-disabled":o,className:v}),n||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f__namespace.createElement("span",he({},m,{onMouseDown:function(b){c(b,!1);},"aria-label":"Decrease Value","aria-disabled":i,className:p}),r||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Fg(e){var t=typeof e=="number"?Cu(e):ui(e).fullStr,n=t.includes(".");return n?ui(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function P5(e,t){var n=f.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);n.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c};}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.endsWith(l))u=i.length-n.current.afterTxt.length;else if(i.startsWith(s))u=s.length;else {var d=s[c-1],h=i.indexOf(d,c-1);h!==-1&&(u=h+1);}e.setSelectionRange(u,u);}catch(v){Cn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message));}}return [r,o]}const _5=function(){var e=f.useRef(0),t=function(){wt.cancel(e.current);};return f.useEffect(function(){return t},[]),function(n){t(),e.current=wt(function(){n();});}};var R5=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],zg=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},jg=function(t){var n=dr(t);return n.isInvalidate()?null:n},yS=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,i=e.className,a=e.style,s=e.min,l=e.max,c=e.step,u=c===void 0?1:c,d=e.defaultValue,h=e.value,v=e.disabled,p=e.readOnly,m=e.upHandler,g=e.downHandler,b=e.keyboard,y=e.controls,w=y===void 0?!0:y,$=e.stringMode,S=e.parser,C=e.formatter,x=e.precision,_=e.decimalSeparator,M=e.onChange,E=e.onInput,I=e.onPressEnter,O=e.onStep,R=Xe(e,R5),P="".concat(o,"-input"),T=f__namespace.useRef(null),A=f__namespace.useState(!1),N=K(A,2),D=N[0],F=N[1],W=f__namespace.useRef(!1),z=f__namespace.useRef(!1),L=f__namespace.useRef(!1),V=f__namespace.useState(function(){return dr(h??d)}),G=K(V,2),q=G[0],ne=G[1];function Z($e){h===void 0&&ne($e);}var Y=f__namespace.useCallback(function($e,Ee){if(!Ee)return x>=0?x:Math.max($s($e),$s(u))},[x,u]),te=f__namespace.useCallback(function($e){var Ee=String($e);if(S)return S(Ee);var je=Ee;return _&&(je=je.replace(_,".")),je.replace(/[^\w.-]+/g,"")},[S,_]),re=f__namespace.useRef(""),se=f__namespace.useCallback(function($e,Ee){if(C)return C($e,{userTyping:Ee,input:String(re.current)});var je=typeof $e=="number"?Cu($e):$e;if(!Ee){var Re=Y(je,Ee);if(Pv(je)&&(_||Re>=0)){var Je=_||".";je=jl(je,Je,Re);}}return je},[C,Y,_]),de=f__namespace.useState(function(){var $e=d??h;return q.isInvalidate()&&["string","number"].includes(tt($e))?Number.isNaN($e)?"":$e:se(q.toString(),!1)}),ee=K(de,2),ie=ee[0],ce=ee[1];re.current=ie;function le($e,Ee){ce(se($e.isInvalidate()?$e.toString(!1):$e.toString(!Ee),Ee));}var ve=f__namespace.useMemo(function(){return jg(l)},[l,x]),oe=f__namespace.useMemo(function(){return jg(s)},[s,x]),pe=f__namespace.useMemo(function(){return !ve||!q||q.isInvalidate()?!1:ve.lessEquals(q)},[ve,q]),ue=f__namespace.useMemo(function(){return !oe||!q||q.isInvalidate()?!1:q.lessEquals(oe)},[oe,q]),ye=P5(T.current,D),Ie=K(ye,2),De=Ie[0],Le=Ie[1],_e=function(Ee){return ve&&!Ee.lessEquals(ve)?ve:oe&&!oe.lessEquals(Ee)?oe:null},qe=function(Ee){return !_e(Ee)},vt=function(Ee,je){var Re=Ee,Je=qe(Re)||Re.isEmpty();if(!Re.isEmpty()&&!je&&(Re=_e(Re)||Re,Je=!0),!p&&!v&&Je){var Et=Re.toString(),Ft=Y(Et,je);return Ft>=0&&(Re=dr(jl(Et,".",Ft)),qe(Re)||(Re=dr(jl(Et,".",Ft,!0)))),Re.equals(q)||(Z(Re),M==null||M(Re.isEmpty()?null:zg($,Re)),h===void 0&&le(Re,je)),Re}return q},et=_5(),Qe=function $e(Ee){if(De(),ce(Ee),!z.current){var je=te(Ee),Re=dr(je);Re.isNaN()||vt(Re,!0);}E==null||E(Ee),et(function(){var Je=Ee;S||(Je=Ee.replace(/。/g,".")),Je!==Ee&&$e(Je);});},ke=function(){z.current=!0;},ze=function(){z.current=!1,Qe(T.current.value);},dt=function(Ee){Qe(Ee.target.value);},at=function(Ee){var je;if(!(Ee&&pe||!Ee&&ue)){W.current=!1;var Re=dr(L.current?Fg(u):u);Ee||(Re=Re.negate());var Je=(q||dr(0)).add(Re.toString()),Et=vt(Je,!1);O==null||O(zg($,Et),{offset:L.current?Fg(u):u,type:Ee?"up":"down"}),(je=T.current)===null||je===void 0||je.focus();}},be=function(Ee){var je=dr(te(ie)),Re=je;je.isNaN()?Re=q:Re=vt(je,Ee),h!==void 0?le(q,!1):Re.isNaN()||le(Re,!1);},we=function(){W.current=!0;},Ye=function(Ee){var je=Ee.which,Re=Ee.shiftKey;W.current=!0,Re?L.current=!0:L.current=!1,je===J.ENTER&&(z.current||(W.current=!1),be(!1),I==null||I(Ee)),b!==!1&&!z.current&&[J.UP,J.DOWN].includes(je)&&(at(J.UP===je),Ee.preventDefault());},Ue=function(){W.current=!1,L.current=!1;},ft=function(){be(!1),F(!1),W.current=!1;};return Xi(function(){q.isInvalidate()||le(q,!1);},[x]),Xi(function(){var $e=dr(h);ne($e);var Ee=dr(te(ie));(!$e.equals(Ee)||!W.current||C)&&le($e,W.current);},[h]),Xi(function(){C&&Le();},[ie]),f__namespace.createElement("div",{className:X(o,i,(n={},U(n,"".concat(o,"-focused"),D),U(n,"".concat(o,"-disabled"),v),U(n,"".concat(o,"-readonly"),p),U(n,"".concat(o,"-not-a-number"),q.isNaN()),U(n,"".concat(o,"-out-of-range"),!q.isInvalidate()&&!qe(q)),n)),style:a,onFocus:function(){F(!0);},onBlur:ft,onKeyDown:Ye,onKeyUp:Ue,onCompositionStart:ke,onCompositionEnd:ze,onBeforeInput:we},w&&f__namespace.createElement(O5,{prefixCls:o,upNode:m,downNode:g,upDisabled:pe,downDisabled:ue,onStep:at}),f__namespace.createElement("div",{className:"".concat(P,"-wrap")},f__namespace.createElement("input",he({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":q.isInvalidate()?null:q.toString(),step:u},R,{ref:Pn(T,t),className:P,value:ie,onChange:dt,disabled:v,readOnly:p}))))});yS.displayName="InputNumber";const M5=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:h,colorPrimary:v,controlHeight:p,inputPaddingHorizontal:m,colorBgContainer:g,colorTextDisabled:b,borderRadiusSM:y,borderRadiusLG:w,controlWidth:$,handleVisible:S}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Jt(e)),bu(e)),gu(e,t)),{display:"inline-block",width:$,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:w,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:y,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},Xs(e)),"&-focused":Object.assign({},yc(e)),"&-disabled":Object.assign(Object.assign({},Sv(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Jt(e)),JC(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:w}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}}}}),[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Jt(e)),{width:"100%",height:p-2*n,padding:`0 ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit"}),YC(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:g,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:S===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${h} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},js()),{color:d,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
          ${t}-handler-up-disabled,
          ${t}-handler-down-disabled
        `]:{cursor:"not-allowed"},[`
          ${t}-handler-up-disabled:hover &-handler-up-inner,
          ${t}-handler-down-disabled:hover &-handler-down-inner
        `]:{color:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},T5=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:o,borderRadiusLG:i,borderRadiusSM:a}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},bu(e)),gu(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i},"&-sm":{borderRadius:a},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Xs(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},I5=mn("InputNumber",e=>{const t=eS(e);return [M5(t),T5(t),cu(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var N5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const CS=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(mt),[o,i]=f__namespace.useState(!1),a=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>a.current);const{className:s,rootClassName:l,size:c,disabled:u,prefixCls:d,addonBefore:h,addonAfter:v,prefix:p,bordered:m=!0,readOnly:g,status:b,controls:y}=e,w=N5(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),$=n("input-number",d),[S,C]=I5($),{compactSize:x,compactItemClassnames:_}=Bs($,r);let M=f__namespace.createElement(C5,{className:`${$}-handler-up-inner`}),E=f__namespace.createElement(oC,{className:`${$}-handler-down-inner`});const I=typeof y=="boolean"?y:void 0;typeof y=="object"&&(M=typeof y.upIcon>"u"?M:f__namespace.createElement("span",{className:`${$}-handler-up-inner`},y.upIcon),E=typeof y.downIcon>"u"?E:f__namespace.createElement("span",{className:`${$}-handler-down-inner`},y.downIcon));const{hasFeedback:O,status:R,isFormItemInput:P,feedbackIcon:T}=f__namespace.useContext(Kr),A=du(R,b),N=Or(G=>{var q;return (q=x??c)!==null&&q!==void 0?q:G}),D=p!=null||O,F=!!(h||v),W=f__namespace.useContext(Bo),z=u??W,L=X({[`${$}-lg`]:N==="large",[`${$}-sm`]:N==="small",[`${$}-rtl`]:r==="rtl",[`${$}-borderless`]:!m,[`${$}-in-form-item`]:P},po($,A),_,C,s,!D&&!F&&l);let V=f__namespace.createElement(yS,Object.assign({ref:a,disabled:z,className:L,upHandler:M,downHandler:E,prefixCls:$,readOnly:g,controls:I},w));if(D){const G=X(`${$}-affix-wrapper`,po(`${$}-affix-wrapper`,A,O),{[`${$}-affix-wrapper-focused`]:o,[`${$}-affix-wrapper-disabled`]:e.disabled,[`${$}-affix-wrapper-sm`]:N==="small",[`${$}-affix-wrapper-lg`]:N==="large",[`${$}-affix-wrapper-rtl`]:r==="rtl",[`${$}-affix-wrapper-readonly`]:g,[`${$}-affix-wrapper-borderless`]:!m},!F&&s,!F&&l,C);V=f__namespace.createElement("div",{className:G,style:e.style,onMouseUp:()=>a.current.focus()},p&&f__namespace.createElement("span",{className:`${$}-prefix`},p),$r(V,{style:null,value:e.value,onFocus:q=>{var ne;i(!0),(ne=e.onFocus)===null||ne===void 0||ne.call(e,q);},onBlur:q=>{var ne;i(!1),(ne=e.onBlur)===null||ne===void 0||ne.call(e,q);}}),O&&f__namespace.createElement("span",{className:`${$}-suffix`},T));}if(F){const G=`${$}-group`,q=`${G}-addon`,ne=h?f__namespace.createElement("div",{className:q},h):null,Z=v?f__namespace.createElement("div",{className:q},v):null,Y=X(`${$}-wrapper`,G,C,{[`${G}-rtl`]:r==="rtl"}),te=X(`${$}-group-wrapper`,{[`${$}-group-wrapper-sm`]:N==="small",[`${$}-group-wrapper-lg`]:N==="large",[`${$}-group-wrapper-rtl`]:r==="rtl"},po(`${$}-group-wrapper`,A,O),C,s,l);V=f__namespace.createElement("div",{className:te,style:e.style},f__namespace.createElement("div",{className:Y},ne&&f__namespace.createElement(Cs,null,f__namespace.createElement(ac,{status:!0,override:!0},ne)),$r(V,{style:null,disabled:z}),Z&&f__namespace.createElement(Cs,null,f__namespace.createElement(ac,{status:!0,override:!0},Z))));}return S(V)}),SS=CS,A5=e=>f__namespace.createElement(Kh,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(CS,Object.assign({},e)));SS._InternalPanelDoNotUseOrYouWillBeFired=A5;const Xf=SS,D5=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:i,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,u]=f.useState(o);return f.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),f.createElement(Xf,{className:X(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),i==null||i(d);}})},di=D5,k5=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=f.useState(Ln(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=l=>{const c=i.toHsb();c.a=(l||0)/100;const u=Ln(c);n||a(u),r==null||r(u);};return f.createElement(di,{value:v5(i),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},L5=k5,F5=e=>{const{getPrefixCls:t,direction:n}=f.useContext(mt),{prefixCls:r,className:o=""}=e,i=t("input-group",r),a=t("input"),[s,l]=wv(a),c=X(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),u=f.useContext(Kr),d=f.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(f__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},f__namespace.createElement(Kr.Provider,{value:d},e.children)))},z5=F5;function ki(e){return !!(e.addonBefore||e.addonAfter)}function Sd(e){return !!(e.prefix||e.suffix||e.allowClear)}function ts(e,t,n,r){if(n){var o=t;if(t.type==="click"){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",n(o);return}if(r!==void 0){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(o);return}n(o);}}function j5(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o);}}}}function qf(e){return typeof e>"u"||e===null?"":String(e)}var wS=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,s=t.suffix,l=t.addonBefore,c=t.addonAfter,u=t.className,d=t.style,h=t.disabled,v=t.readOnly,p=t.focused,m=t.triggerFocus,g=t.allowClear,b=t.value,y=t.handleReset,w=t.hidden,$=t.classes,S=t.classNames,C=t.dataAttrs,x=t.styles,_=f.useRef(null),M=function(z){var L;(L=_.current)!==null&&L!==void 0&&L.contains(z.target)&&(m==null||m());},E=function(){var z;if(!g)return null;var L=!h&&!v&&b,V="".concat(i,"-clear-icon"),G=tt(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"✖";return f.createElement("span",{onClick:y,onMouseDown:function(ne){return ne.preventDefault()},className:X(V,(z={},U(z,"".concat(V,"-hidden"),!L),U(z,"".concat(V,"-has-suffix"),!!s),z)),role:"button",tabIndex:-1},G)},I=f.cloneElement(o,{value:b,hidden:w,className:X((n=o.props)===null||n===void 0?void 0:n.className,!Sd(t)&&!ki(t)&&u)||null,style:H(H({},(r=o.props)===null||r===void 0?void 0:r.style),!Sd(t)&&!ki(t)?d:{})});if(Sd(t)){var O,R="".concat(i,"-affix-wrapper"),P=X(R,(O={},U(O,"".concat(R,"-disabled"),h),U(O,"".concat(R,"-focused"),p),U(O,"".concat(R,"-readonly"),v),U(O,"".concat(R,"-input-with-clear-btn"),s&&g&&b),O),!ki(t)&&u,$==null?void 0:$.affixWrapper),T=(s||g)&&f.createElement("span",{className:X("".concat(i,"-suffix"),S==null?void 0:S.suffix),style:x==null?void 0:x.suffix},E(),s);I=f.createElement("span",he({className:P,style:ki(t)?void 0:d,hidden:!ki(t)&&w,onClick:M},C==null?void 0:C.affixWrapper,{ref:_}),a&&f.createElement("span",{className:X("".concat(i,"-prefix"),S==null?void 0:S.prefix),style:x==null?void 0:x.prefix},a),f.cloneElement(o,{value:b,hidden:null}),T);}if(ki(t)){var A="".concat(i,"-group"),N="".concat(A,"-addon"),D=X("".concat(i,"-wrapper"),A,$==null?void 0:$.wrapper),F=X("".concat(i,"-group-wrapper"),u,$==null?void 0:$.group);return f.createElement("span",{className:F,style:d,hidden:w},f.createElement("span",{className:D},l&&f.createElement("span",{className:N},l),f.cloneElement(I,{hidden:null}),c&&f.createElement("span",{className:N},c)))}return I},H5=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],B5=f.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=l===void 0?"rc-input":l,u=e.disabled,d=e.htmlSize,h=e.className,v=e.maxLength,p=e.suffix,m=e.showCount,g=e.type,b=g===void 0?"text":g,y=e.classes,w=e.classNames,$=e.styles,S=Xe(e,H5),C=en(e.defaultValue,{value:e.value}),x=K(C,2),_=x[0],M=x[1],E=f.useState(!1),I=K(E,2),O=I[0],R=I[1],P=f.useRef(null),T=function(G){P.current&&j5(P.current,G);};f.useImperativeHandle(t,function(){return {focus:T,blur:function(){var G;(G=P.current)===null||G===void 0||G.blur();},setSelectionRange:function(G,q,ne){var Z;(Z=P.current)===null||Z===void 0||Z.setSelectionRange(G,q,ne);},select:function(){var G;(G=P.current)===null||G===void 0||G.select();},input:P.current}}),f.useEffect(function(){R(function(V){return V&&u?!1:V});},[u]);var A=function(G){e.value===void 0&&M(G.target.value),P.current&&ts(P.current,G,r);},N=function(G){a&&G.key==="Enter"&&a(G),s==null||s(G);},D=function(G){R(!0),o==null||o(G);},F=function(G){R(!1),i==null||i(G);},W=function(G){M(""),T(),P.current&&ts(P.current,G,r);},z=function(){var G=xr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return f.createElement("input",he({autoComplete:n},G,{onChange:A,onFocus:D,onBlur:F,onKeyDown:N,className:X(c,U({},"".concat(c,"-disabled"),u),w==null?void 0:w.input),style:$==null?void 0:$.input,ref:P,size:d,type:b}))},L=function(){var G=Number(v)>0;if(p||m){var q=qf(_),ne=ge(q).length,Z=tt(m)==="object"?m.formatter({value:q,count:ne,maxLength:v}):"".concat(ne).concat(G?" / ".concat(v):"");return f.createElement(f.Fragment,null,!!m&&f.createElement("span",{className:X("".concat(c,"-show-count-suffix"),U({},"".concat(c,"-show-count-has-suffix"),!!p),w==null?void 0:w.count),style:H({},$==null?void 0:$.count)},Z),p)}return null};return f.createElement(wS,he({},S,{prefixCls:c,className:h,inputElement:z(),handleReset:W,value:qf(_),focused:O,triggerFocus:T,suffix:L(),disabled:u,classes:y,classNames:w,styles:$}))});function xS(e,t){const n=f.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"));}));};return f.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function W5(e){return !!(e.prefix||e.suffix||e.allowClear)}var V5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function U5(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 G5=f.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:d,addonBefore:h,className:v,rootClassName:p,onChange:m,classNames:g}=e,b=V5(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","rootClassName","onChange","classNames"]),{getPrefixCls:y,direction:w,input:$}=f.useContext(mt),S=y("input",n),C=f.useRef(null),[x,_]=wv(S),{compactSize:M,compactItemClassnames:E}=Bs(S,w),I=Or(ne=>{var Z;return (Z=M??i)!==null&&Z!==void 0?Z:ne}),O=f.useContext(Bo),R=a??O,{status:P,hasFeedback:T,feedbackIcon:A}=f.useContext(Kr),N=du(P,o),D=W5(e)||!!T,F=f.useRef(D);f.useEffect(()=>{D&&F.current,F.current=D;},[D]);const W=xS(C,!0),z=ne=>{W(),s==null||s(ne);},L=ne=>{W(),l==null||l(ne);},V=ne=>{W(),m==null||m(ne);},G=(T||c)&&f.createElement(f.Fragment,null,c,T&&A);let q;return typeof u=="object"&&(u!=null&&u.clearIcon)?q=u:u&&(q={clearIcon:f.createElement(qh,null)}),x(f.createElement(B5,Object.assign({ref:Pn(t,C),prefixCls:S,autoComplete:$==null?void 0:$.autoComplete},b,{disabled:R,onBlur:z,onFocus:L,suffix:G,allowClear:q,className:X(v,p,E),onChange:V,addonAfter:d&&f.createElement(Cs,null,f.createElement(ac,{override:!0,status:!0},d)),addonBefore:h&&f.createElement(Cs,null,f.createElement(ac,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign({},g),{input:X({[`${S}-sm`]:I==="small",[`${S}-lg`]:I==="large",[`${S}-rtl`]:w==="rtl",[`${S}-borderless`]:!r},!D&&po(S,N),g==null?void 0:g.input,_)}),classes:{affixWrapper:X({[`${S}-affix-wrapper-sm`]:I==="small",[`${S}-affix-wrapper-lg`]:I==="large",[`${S}-affix-wrapper-rtl`]:w==="rtl",[`${S}-affix-wrapper-borderless`]:!r},po(`${S}-affix-wrapper`,N,T),_),wrapper:X({[`${S}-group-rtl`]:w==="rtl"},_),group:X({[`${S}-group-wrapper-sm`]:I==="small",[`${S}-group-wrapper-lg`]:I==="large",[`${S}-group-wrapper-rtl`]:w==="rtl",[`${S}-group-wrapper-disabled`]:R},po(`${S}-group-wrapper`,N,T),_)}})))}),_v=G5;var K5={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 X5=K5;var q5=function(t,n){return f__namespace.createElement(Qn,he({},t,{ref:n,icon:X5}))};const Y5=f__namespace.forwardRef(q5);var Z5={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 Q5=Z5;var J5=function(t,n){return f__namespace.createElement(Qn,he({},t,{ref:n,icon:Q5}))};const e4=f__namespace.forwardRef(J5);var t4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const n4=e=>e?f__namespace.createElement(e4,null):f__namespace.createElement(Y5,null),r4={click:"onClick",hover:"onMouseOver"},o4=f__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=f.useState(()=>r?n.visible:!1),a=f.useRef(null);f__namespace.useEffect(()=>{r&&i(n.visible);},[r,n]);const s=xS(a),l=()=>{const{disabled:S}=e;S||(o&&s(),i(C=>{var x;const _=!C;return typeof n=="object"&&((x=n.onVisibleChange)===null||x===void 0||x.call(n,_)),_}));},c=S=>{const{action:C="click",iconRender:x=n4}=e,_=r4[C]||"",M=x(o),E={[_]:l,className:`${S}-icon`,key:"passwordIcon",onMouseDown:I=>{I.preventDefault();},onMouseUp:I=>{I.preventDefault();}};return f__namespace.cloneElement(f__namespace.isValidElement(M)?M:f__namespace.createElement("span",null,M),E)},{className:u,prefixCls:d,inputPrefixCls:h,size:v}=e,p=t4(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=f__namespace.useContext(mt),g=m("input",h),b=m("input-password",d),y=n&&c(b),w=X(b,u,{[`${b}-${v}`]:!!v}),$=Object.assign(Object.assign({},xr(p,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:w,prefixCls:g,suffix:y});return v&&($.size=v),f__namespace.createElement(_v,Object.assign({ref:Pn(t,a)},$))}),i4=o4;var a4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const s4=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:h,onCompositionStart:v,onCompositionEnd:p}=e,m=a4(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:b}=f__namespace.useContext(mt),y=f__namespace.useRef(!1),w=g("input-search",n),$=g("input",r),{compactSize:S}=Bs(w,b),C=Or(W=>{var z;return (z=S??i)!==null&&z!==void 0?z:W}),x=f__namespace.useRef(null),_=W=>{W&&W.target&&W.type==="click"&&d&&d(W.target.value,W),h&&h(W);},M=W=>{var z;document.activeElement===((z=x.current)===null||z===void 0?void 0:z.input)&&W.preventDefault();},E=W=>{var z,L;d&&d((L=(z=x.current)===null||z===void 0?void 0:z.input)===null||L===void 0?void 0:L.value,W);},I=W=>{y.current||c||E(W);},O=typeof s=="boolean"?f__namespace.createElement(iC,null):null,R=`${w}-button`;let P;const T=s||{},A=T.type&&T.type.__ANT_BUTTON===!0;A||T.type==="button"?P=$r(T,Object.assign({onMouseDown:M,onClick:W=>{var z,L;(L=(z=T==null?void 0:T.props)===null||z===void 0?void 0:z.onClick)===null||L===void 0||L.call(z,W),E(W);},key:"enterButton"},A?{className:R,size:C}:{})):P=f__namespace.createElement(Dn,{className:R,type:s?"primary":void 0,size:C,disabled:u,key:"enterButton",onMouseDown:M,onClick:E,loading:c,icon:O},s),l&&(P=[P,$r(l,{key:"addonAfter"})]);const N=X(w,{[`${w}-rtl`]:b==="rtl",[`${w}-${C}`]:!!C,[`${w}-with-button`]:!!s},o),D=W=>{y.current=!0,v==null||v(W);},F=W=>{y.current=!1,p==null||p(W);};return f__namespace.createElement(_v,Object.assign({ref:Pn(x,t),onPressEnter:I},m,{size:C,onCompositionStart:D,onCompositionEnd:F,prefixCls:$,addonAfter:P,suffix:a,onChange:_,className:N,disabled:u}))}),l4=s4;var c4=`
  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;
`,u4=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],wd={},rr;function d4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&wd[n])return wd[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=u4.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(wd[n]=l),l}function f4(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;rr||(rr=document.createElement("textarea"),rr.setAttribute("tab-index","-1"),rr.setAttribute("aria-hidden","true"),document.body.appendChild(rr)),e.getAttribute("wrap")?rr.setAttribute("wrap",e.getAttribute("wrap")):rr.removeAttribute("wrap");var o=d4(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;rr.setAttribute("style","".concat(l,";").concat(c4)),rr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,h=rr.scrollHeight;if(s==="border-box"?h+=a:s==="content-box"&&(h-=i),n!==null||r!==null){rr.value=" ";var v=rr.scrollHeight-i;n!==null&&(c=v*n,s==="border-box"&&(c=c+i+a),h=Math.max(c,h)),r!==null&&(u=v*r,s==="border-box"&&(u=u+i+a),d=h>u?"":"hidden",h=Math.min(u,h));}var p={height:h,overflowY:d,resize:"none"};return c&&(p.minHeight=c),u&&(p.maxHeight=u),p}var h4=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],xd=0,$d=1,Ed=2,v4=f__namespace.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var h=Xe(n,h4),v=en(o,{value:i,postState:function(G){return G??""}}),p=K(v,2),m=p[0],g=p[1],b=function(G){g(G.target.value),d==null||d(G);},y=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var w=f__namespace.useMemo(function(){return a&&tt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),$=K(w,2),S=$[0],C=$[1],x=!!a,_=function(){try{if(document.activeElement===y.current){var G=y.current,q=G.selectionStart,ne=G.selectionEnd,Z=G.scrollTop;y.current.setSelectionRange(q,ne),y.current.scrollTop=Z;}}catch{}},M=f__namespace.useState(Ed),E=K(M,2),I=E[0],O=E[1],R=f__namespace.useState(),P=K(R,2),T=P[0],A=P[1],N=function(){O(xd);};Ht(function(){x&&N();},[i,S,C,x]),Ht(function(){if(I===xd)O($d);else if(I===$d){var V=f4(y.current,!1,S,C);O(Ed),A(V);}else _();},[I]);var D=f__namespace.useRef(),F=function(){wt.cancel(D.current);},W=function(G){I===Ed&&(s==null||s(G),a&&(F(),D.current=wt(function(){N();})));};f__namespace.useEffect(function(){return F},[]);var z=x?T:null,L=H(H({},c),z);return (I===xd||I===$d)&&(L.overflowY="hidden",L.overflowX="hidden"),f__namespace.createElement(go,{onResize:W,disabled:!(a||s)},f__namespace.createElement("textarea",he({},h,{ref:y,style:L,className:X(r,l,U({},"".concat(r,"-disabled"),u)),disabled:u,value:m,onChange:b})))}),p4=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles"];function $S(e,t){return ge(e||"").slice(0,t).join("")}function Hg(e,t,n,r){var o=n;return e?o=$S(n,r):ge(t||"").length<n.length&&ge(n||"").length>r&&(o=t),o}var m4=f.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,h=e.suffix,v=e.prefixCls,p=v===void 0?"rc-textarea":v,m=e.classes,g=e.showCount,b=e.className,y=e.style,w=e.disabled,$=e.hidden,S=e.classNames,C=e.styles,x=Xe(e,p4),_=en(r,{value:o,defaultValue:r}),M=K(_,2),E=M[0],I=M[1],O=f.useRef(null),R=f.useState(!1),P=K(R,2),T=P[0],A=P[1],N=f.useState(!1),D=K(N,2),F=D[0],W=D[1],z=f.useRef(),L=f.useRef(0),V=function(){O.current.textArea.focus();};f.useImperativeHandle(t,function(){return {resizableTextArea:O.current,focus:V,blur:function(){O.current.textArea.blur();}}}),f.useEffect(function(){A(function(ve){return !w&&ve});},[w]);var G=Number(c)>0,q=function(oe){W(!0),z.current=E,L.current=oe.currentTarget.selectionStart,u==null||u(oe);},ne=function(oe){W(!1);var pe=oe.currentTarget.value;if(G){var ue,ye=L.current>=c+1||L.current===((ue=z.current)===null||ue===void 0?void 0:ue.length);pe=Hg(ye,z.current,pe,c);}pe!==E&&(I(pe),ts(oe.currentTarget,oe,s,pe)),d==null||d(oe);},Z=function(oe){var pe=oe.target.value;if(!F&&G){var ue=oe.target.selectionStart>=c+1||oe.target.selectionStart===pe.length||!oe.target.selectionStart;pe=Hg(ue,E,pe,c);}I(pe),ts(oe.currentTarget,oe,s,pe);},Y=function(oe){var pe=x.onPressEnter,ue=x.onKeyDown;oe.key==="Enter"&&pe&&pe(oe),ue==null||ue(oe);},te=function(oe){A(!0),i==null||i(oe);},re=function(oe){A(!1),a==null||a(oe);},se=function(oe){I(""),V(),ts(O.current.textArea,oe,s);},de=qf(E);!F&&G&&o==null&&(de=$S(de,c));var ee=h,ie;if(g){var ce=ge(de).length;tt(g)==="object"?ie=g.formatter({value:de,count:ce,maxLength:c}):ie="".concat(ce).concat(G?" / ".concat(c):""),ee=f.createElement(f.Fragment,null,ee,f.createElement("span",{className:X("".concat(p,"-data-count"),S==null?void 0:S.count),style:C==null?void 0:C.count},ie));}var le=f.createElement(wS,{value:de,allowClear:l,handleReset:se,suffix:ee,prefixCls:p,classes:{affixWrapper:X(m==null?void 0:m.affixWrapper,(n={},U(n,"".concat(p,"-show-count"),g),U(n,"".concat(p,"-textarea-allow-clear"),l),n))},disabled:w,focused:T,className:b,style:y,dataAttrs:{affixWrapper:{"data-count":typeof ie=="string"?ie:void 0}},hidden:$,inputElement:f.createElement(v4,he({},x,{onKeyDown:Y,onChange:Z,onFocus:te,onBlur:re,onCompositionStart:q,onCompositionEnd:ne,className:S==null?void 0:S.textarea,style:H(H({},C==null?void 0:C.textarea),{},{resize:y==null?void 0:y.resize}),disabled:w,prefixCls:p,ref:O}))});return le}),g4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const b4=f.forwardRef((e,t)=>{var{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c}=e,u=g4(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]);const{getPrefixCls:d,direction:h}=f__namespace.useContext(mt),v=Or(o),p=f__namespace.useContext(Bo),m=i??p,{status:g,hasFeedback:b,feedbackIcon:y}=f__namespace.useContext(Kr),w=du(g,a),$=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>{var M;return {resizableTextArea:(M=$.current)===null||M===void 0?void 0:M.resizableTextArea,focus:E=>{var I,O;U5((O=(I=$.current)===null||I===void 0?void 0:I.resizableTextArea)===null||O===void 0?void 0:O.textArea,E);},blur:()=>{var E;return (E=$.current)===null||E===void 0?void 0:E.blur()}}});const S=d("input",n);let C;typeof s=="object"&&(s!=null&&s.clearIcon)?C=s:s&&(C={clearIcon:f__namespace.createElement(qh,null)});const[x,_]=wv(S);return x(f__namespace.createElement(m4,Object.assign({},u,{disabled:m,allowClear:C,classes:{affixWrapper:X(`${S}-textarea-affix-wrapper`,{[`${S}-affix-wrapper-rtl`]:h==="rtl",[`${S}-affix-wrapper-borderless`]:!r,[`${S}-affix-wrapper-sm`]:v==="small",[`${S}-affix-wrapper-lg`]:v==="large",[`${S}-textarea-show-count`]:l},po(`${S}-affix-wrapper`,w),_)},classNames:Object.assign(Object.assign({},c),{textarea:X({[`${S}-borderless`]:!r,[`${S}-sm`]:v==="small",[`${S}-lg`]:v==="large"},po(S,w),_,c==null?void 0:c.textarea)}),prefixCls:S,suffix:b&&f__namespace.createElement("span",{className:`${S}-textarea-suffix`},y),showCount:l,ref:$})))}),y4=b4,qs=_v;qs.Group=z5;qs.Search=l4;qs.TextArea=y4;qs.Password=i4;const C4=qs,S4=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Bg=e=>S4.test(`#${e}`),w4=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[i,a]=f.useState(n==null?void 0:n.toHex());f.useEffect(()=>{const l=n==null?void 0:n.toHex();Bg(l)&&n&&a(zl(l));},[n]);const s=l=>{const c=l.target.value;a(zl(c)),Bg(zl(c,!0))&&(r==null||r(Ln(c)));};return f.createElement(C4,{className:o,value:i==null?void 0:i.toUpperCase(),prefix:"#",onChange:s,size:"small"})},x4=w4,$4=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=f.useState(Ln(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const u=i.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=Ln(u);n||a(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(di,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:l=>ci(l||0).toString(),onChange:l=>s(Number(l),"h")}),f.createElement(di,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${ci(l||0)}%`,onChange:l=>s(Number(l),"s")}),f.createElement(di,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${ci(l||0)}%`,onChange:l=>s(Number(l),"b")}))},E4=$4,O4=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=f.useState(Ln(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const u=i.toRgb();u[c]=l||0;const d=Ln(u);n||a(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(di,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),f.createElement(di,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),f.createElement(di,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},P4=O4,_4=[lo.hex,lo.hsb,lo.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),R4=e=>{const{prefixCls:t,format:n,value:r,onFormatChange:o,onChange:i}=e,[a,s]=en(lo.hex,{value:n,onChange:o}),l=`${t}-input`,c=d=>{s(d);},u=f.useMemo(()=>{const d={value:r,prefixCls:t,onChange:i};switch(a){case lo.hsb:return f.createElement(E4,Object.assign({},d));case lo.rgb:return f.createElement(P4,Object.assign({},d));case lo.hex:default:return f.createElement(x4,Object.assign({},d))}},[a,t,r,i]);return f.createElement("div",{className:`${l}-container`},f.createElement(VD,{value:a,bordered:!1,getPopupContainer:d=>d,popupMatchSelectWidth:68,placement:"bottomRight",onChange:c,className:`${t}-format-select`,size:"small",options:_4}),f.createElement("div",{className:l},u),f.createElement(L5,{prefixCls:t,value:r,onChange:i}))},M4=R4,{Panel:T4}=uS,Od=e=>e.map(t=>(t.colors=t.colors.map(Ln),t)),I4=e=>{const{r:t,g:n,b:r,a:o}=e.toRgb();return o<=.5?!0:t*.299+n*.587+r*.114>192},N4=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=Wh("ColorPicker"),[a]=en(Od(n),{value:Od(n),postState:Od}),s=`${t}-presets`,l=f.useMemo(()=>a.map(u=>`panel-${u.label}`),[a]),c=u=>{o==null||o(u);};return f.createElement("div",{className:s},f.createElement(uS,{defaultActiveKey:l,ghost:!0},a.map(u=>{var d;return f.createElement(T4,{header:f.createElement("div",{className:`${s}-label`},u==null?void 0:u.label),key:`panel-${u==null?void 0:u.label}`},f.createElement("div",{className:`${s}-items`},Array.isArray(u==null?void 0:u.colors)&&((d=u.colors)===null||d===void 0?void 0:d.length)>0?u.colors.map(h=>f.createElement(Ev,{key:`preset-${h.toHexString()}`,color:Ln(h).toRgbString(),prefixCls:t,className:X(`${s}-color`,{[`${s}-color-checked`]:h.toHexString()===(r==null?void 0:r.toHexString()),[`${s}-color-bright`]:I4(h)}),onClick:()=>c(h)})):f.createElement("span",{className:`${s}-empty`},i.presetEmpty)))})))},A4=N4;var D4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const k4=e=>{const{prefixCls:t,allowClear:n,presets:r,onChange:o,onClear:i,onChangeComplete:a,color:s}=e,l=D4(e,["prefixCls","allowClear","presets","onChange","onClear","onChangeComplete","color"]),c=`${t}-inner-panel`,u=d=>f.createElement("div",{className:c},n&&f.createElement(gS,Object.assign({prefixCls:t,value:s,onChange:h=>{o==null||o(h),i==null||i(!0);}},l)),d,f.createElement(M4,Object.assign({value:s,onChange:o,prefixCls:t},l)),Array.isArray(r)&&f.createElement(f.Fragment,null,f.createElement(f5,{className:`${c}-divider`}),f.createElement(A4,{value:s,presets:r,prefixCls:t,onChange:o})));return f.createElement(s5,{prefixCls:t,value:s==null?void 0:s.toHsb(),onChange:(d,h)=>o==null?void 0:o(d,h,!0),panelRender:u,onChangeComplete:a})},L4=k4;var F4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const z4=f.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:i,disabled:a,className:s}=e,l=F4(e,["color","prefixCls","open","colorCleared","disabled","className"]),c=`${r}-trigger`,u=f.useMemo(()=>i?f.createElement(gS,{prefixCls:r}):f.createElement(Ev,{prefixCls:r,color:n.toRgbString()}),[n,i,r]);return f.createElement("div",Object.assign({ref:t,className:X(c,s,{[`${c}-active`]:o,[`${c}-disabled`]:a})},l),u)}),j4=z4;function Wg(e){return e!==void 0}const H4=(e,t)=>{const{defaultValue:n,value:r}=t,[o,i]=f.useState(()=>{let a;return Wg(r)?a=r:Wg(n)?a=n:a=e,Ln(a||"")});return f.useEffect(()=>{r&&i(Ln(r));},[r]),[o,i]},B4=H4,Vg="#EEE",ES=e=>({backgroundImage:`conic-gradient(${Vg} 0 25%, transparent 0 50%, ${Vg} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),W4=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return {[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},ES("50%")),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${i}px solid ${a}`,borderRadius:"inherit"}})}},OS=W4,V4=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:h,colorPickerInputNumberHandleWidth:v,lineWidth:p}=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:v}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${i}px`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:u+a,fontSize:r,lineHeight:`${l}px`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${d}px`,[`${n}-input`]:{fontSize:r,lineHeight:`${l-2*p}px`},[`${n}-input-prefix`]:{color:h}}}}}},U4=V4,G4=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:u,colorPickerSliderHeight:d,colorPickerPreviewSize:h}=e;return Object.assign({[`${t}-select`]:{[`${t}-palette`]:{minHeight:n*4,overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${l}px solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`,"&-sm":{width:u,height:u}},[`${t}-slider`]:{borderRadius:d/2,[`${t}-palette`]:{height:d},[`${t}-gradient`]:{borderRadius:d/2,boxShadow:o},"&-alpha":ES(`${d}px`),marginBottom:i},[`${t}-slider-container`]:{display:"flex",gap:i,[`${t}-slider-group`]:{flex:1}}},OS(e,h))},K4=G4,X4=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:h,colorTextTertiary:v,marginXXS:p,paddingXS:m}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:a*l,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${m}px 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:p*1.5,[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:i+4*c,height:i+4*c,position:"absolute",top:-2*c,insetInlineStart:-2*c,borderRadius:u,border:`${c}px solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:i/13*5,height:i/13*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:h,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:v}}}}},"&-empty":{fontSize:a,color:r}}}},q4=X4,Y4=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),Z4=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Ug=(e,t)=>{const{componentCls:n,borderRadiusSM:r,lineWidth:o,colorSplit:i,red6:a}=e;return {[`${n}-clear`]:{width:t,height:t,borderRadius:r,border:`${o}px solid ${i}`,position:"relative",cursor:"pointer",overflow:"hidden","&::after":{content:'""',position:"absolute",insetInlineEnd:o,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:a}}}},Q4=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:i,colorTextDisabled:a,colorBgContainerDisabled:s,borderRadius:l,marginXS:c,marginSM:u,controlHeight:d,controlHeightSM:h,colorBgTextActive:v,colorPickerPresetColorSize:p,lineWidth:m,colorBorder:g}=e;return [{[t]:Object.assign({[`${t}-panel`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:n,[`${t}-inner-panel`]:{[`${t}-clear`]:{marginInlineStart:"auto",marginBottom:c},"&-divider":{margin:`${u}px 0 ${c}px`}}},K4(e)),U4(e)),q4(e)),Ug(e,p)),"&-trigger":Object.assign(Object.assign({width:d,height:d,borderRadius:l,border:`${m}px solid ${g}`,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:`all ${o}`,background:i,"&-active":Object.assign(Object.assign({},Y4(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:a,background:s,cursor:"not-allowed","&:hover":{borderColor:v}}},Ug(e,h)),OS(e,h))},Z4(e))}]},J4=mn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=At(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 [Q4(o)]}),Rv=e=>{const{value:t,defaultValue:n,format:r,allowClear:o=!1,presets:i,children:a,trigger:s="click",open:l,disabled:c,placement:u="bottomLeft",arrow:d=!0,style:h,className:v,rootClassName:p,styles:m,onFormatChange:g,onChange:b,onOpenChange:y,getPopupContainer:w,autoAdjustOverflow:$=!0}=e,{getPrefixCls:S,direction:C}=f.useContext(mt),{token:x}=pc.useToken(),[_,M]=B4(x.colorPrimary,{value:t,defaultValue:n}),[E,I]=en(!1,{value:l,postState:Z=>!c&&Z,onChange:y}),[O,R]=f.useState(!1),P=S("color-picker",h5),[T,A]=J4(P),N={[`${P}-rtl`]:C},D=X(p,N),F=X(D,v,A),W=X(P,N),z=f.useRef(!0),L=(Z,Y,te)=>{let re=Ln(Z);if(O){R(!1);const se=re.toHsb();_.toHsb().a===0&&Y!=="alpha"&&(se.a=1,re=Ln(se));}t||M(re),te&&(z.current=!1),b==null||b(re,re.toHexString());},V=Z=>{R(Z);},G=()=>{z.current=!0;},q={open:E,trigger:s,placement:u,arrow:d,rootClassName:p,getPopupContainer:w,autoAdjustOverflow:$},ne={prefixCls:P,color:_,allowClear:o,colorCleared:O,disabled:c,presets:i,format:r,onFormatChange:g};return f.useEffect(()=>{O&&I(!1);},[O]),T(f.createElement(gC,Object.assign({style:m==null?void 0:m.popup,onOpenChange:Z=>{z.current&&I(Z);},content:f.createElement(L4,Object.assign({},ne,{onChange:L,onChangeComplete:G,onClear:V})),overlayClassName:W},q),a||f.createElement(j4,{open:E,className:F,style:h,color:_,prefixCls:P,disabled:c,colorCleared:O})))},ez=Fy(Rv,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));Rv._InternalPanelDoNotUseOrYouWillBeFired=ez;const tz=Rv,nz=e=>{const{componentCls:t,iconCls:n,zIndexPopup:r,colorText:o,colorWarning:i,marginXXS:a,marginXS:s,fontSize:l,fontWeightStrong:c}=e;return {[t]:{zIndex:r,color:o,[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:l,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:c,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:a}},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:s}}}}},PS=mn("Popconfirm",e=>nz(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}});var rz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _S=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=f__namespace.createElement(Cy,null),showCancel:u=!0,close:d,onConfirm:h,onCancel:v,onPopupClick:p}=e,{getPrefixCls:m}=f__namespace.useContext(mt),[g]=Wh("Popconfirm",da.Popconfirm),b=fa(o),y=fa(i);return f__namespace.createElement("div",{className:`${t}-inner-content`,onClick:p},f__namespace.createElement("div",{className:`${t}-message`},c&&f__namespace.createElement("span",{className:`${t}-message-icon`},c),f__namespace.createElement("div",{className:`${t}-message-text`},b&&f__namespace.createElement("div",{className:X(`${t}-title`)},b),y&&f__namespace.createElement("div",{className:`${t}-description`},y))),f__namespace.createElement("div",{className:`${t}-buttons`},u&&f__namespace.createElement(Dn,Object.assign({onClick:v,size:"small"},r),a??(g==null?void 0:g.cancelText)),f__namespace.createElement(VI,{buttonProps:Object.assign(Object.assign({size:"small"},My(l)),n),actionFn:h,close:d,prefixCls:m("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(g==null?void 0:g.okText))))};function oz(e){const{prefixCls:t,placement:n,className:r,style:o}=e,i=rz(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=f__namespace.useContext(mt),s=a("popconfirm",t),[l]=PS(s);return l(f__namespace.createElement(pC,{placement:n,className:X(s,r),style:o,content:f__namespace.createElement(_S,Object.assign({prefixCls:s},i))}))}var iz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const RS=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o="click",okType:i="primary",icon:a=f__namespace.createElement(Cy,null),children:s,overlayClassName:l,onOpenChange:c,onVisibleChange:u}=e,d=iz(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:h}=f__namespace.useContext(mt),[v,p]=en(!1,{value:e.open,defaultValue:e.defaultOpen}),m=(_,M)=>{p(_,!0),u==null||u(_),c==null||c(_,M);},g=_=>{m(!1,_);},b=_=>{var M;return (M=e.onConfirm)===null||M===void 0?void 0:M.call(globalThis,_)},y=_=>{var M;m(!1,_),(M=e.onCancel)===null||M===void 0||M.call(globalThis,_);},w=_=>{_.keyCode===J.ESC&&v&&m(!1,_);},$=_=>{const{disabled:M=!1}=e;M||m(_);},S=h("popconfirm",n),C=X(S,l),[x]=PS(S);return x(f__namespace.createElement(gC,Object.assign({},xr(d,["title"]),{trigger:o,placement:r,onOpenChange:$,open:v,ref:t,overlayClassName:C,content:f__namespace.createElement(_S,Object.assign({okType:i,icon:a},e,{prefixCls:S,close:g,onConfirm:b,onCancel:y})),"data-popover-inject":!0}),$r(s,{onKeyDown:_=>{var M,E;f__namespace.isValidElement(s)&&((E=s==null?void 0:(M=s.props).onKeyDown)===null||E===void 0||E.call(M,_)),w(_);}})))});RS._InternalPanelDoNotUseOrYouWillBeFired=oz;const az=RS;var yi=f__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function Yf(e,t,n){return (e-t)/(n-t)}function Mv(e,t,n,r){var o=Yf(t,n,r),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function Wi(e,t){return Array.isArray(e)?e[t]:e}var sz=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],lz=f__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,h=Xe(e,sz),v=f__namespace.useContext(yi),p=v.min,m=v.max,g=v.direction,b=v.disabled,y=v.keyboard,w=v.range,$=v.tabIndex,S=v.ariaLabelForHandle,C=v.ariaLabelledByForHandle,x=v.ariaValueTextFormatterForHandle,_="".concat(o,"-handle"),M=function(P){b||s(P,a);},E=function(P){if(!b&&y){var T=null;switch(P.which||P.keyCode){case J.LEFT:T=g==="ltr"||g==="btt"?-1:1;break;case J.RIGHT:T=g==="ltr"||g==="btt"?1:-1;break;case J.UP:T=g!=="ttb"?1:-1;break;case J.DOWN:T=g!=="ttb"?-1:1;break;case J.HOME:T="min";break;case J.END:T="max";break;case J.PAGE_UP:T=2;break;case J.PAGE_DOWN:T=-2;break}T!==null&&(P.preventDefault(),d(T,a));}},I=Mv(g,i,p,m),O=f__namespace.createElement("div",he({ref:t,className:X(_,(n={},U(n,"".concat(_,"-").concat(a+1),w),U(n,"".concat(_,"-dragging"),u),n)),style:H(H({},I),l),onMouseDown:M,onTouchStart:M,onKeyDown:E,tabIndex:b?null:Wi($,a),role:"slider","aria-valuemin":p,"aria-valuemax":m,"aria-valuenow":i,"aria-disabled":b,"aria-label":Wi(S,a),"aria-labelledby":Wi(C,a),"aria-valuetext":(r=Wi(x,a))===null||r===void 0?void 0:r(i)},h));return c&&(O=c(O,{index:a,prefixCls:o,value:i,dragging:u})),O}),cz=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],uz=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=Xe(e,cz),u=f__namespace.useRef({});return f__namespace.useImperativeHandle(t,function(){return {focus:function(h){var v;(v=u.current[h])===null||v===void 0||v.focus();}}}),f__namespace.createElement(f__namespace.Fragment,null,a.map(function(d,h){return f__namespace.createElement(lz,he({ref:function(p){p?u.current[h]=p:delete u.current[h];},dragging:l===h,prefixCls:n,style:Wi(r,h),key:h,value:d,valueIndex:h,onStartMove:o,onOffsetChange:i,render:s},c))}))});function Gg(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function dz(e,t,n,r,o,i,a,s,l){var c=f__namespace.useState(null),u=K(c,2),d=u[0],h=u[1],v=f__namespace.useState(-1),p=K(v,2),m=p[0],g=p[1],b=f__namespace.useState(n),y=K(b,2),w=y[0],$=y[1],S=f__namespace.useState(n),C=K(S,2),x=C[0],_=C[1],M=f__namespace.useRef(null),E=f__namespace.useRef(null);f__namespace.useEffect(function(){m===-1&&$(n);},[n,m]),f__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",M.current),document.removeEventListener("mouseup",E.current),document.removeEventListener("touchmove",M.current),document.removeEventListener("touchend",E.current);}},[]);var I=function(N,D){w.some(function(F,W){return F!==N[W]})&&(D!==void 0&&h(D),$(N),a(N));},O=function(N,D){if(N===-1){var F=x[0],W=x[x.length-1],z=r-F,L=o-W,V=D*(o-r);V=Math.max(V,z),V=Math.min(V,L);var G=i(F+V);V=G-F;var q=x.map(function(te){return te+V});I(q);}else {var ne=(o-r)*D,Z=ge(w);Z[N]=x[N];var Y=l(Z,ne,N,"dist");I(Y.values,Y.value);}},R=f__namespace.useRef(O);R.current=O;var P=function(N,D){N.stopPropagation();var F=n[D];g(D),h(F),_(n);var W=Gg(N),z=W.pageX,L=W.pageY,V=function(ne){ne.preventDefault();var Z=Gg(ne),Y=Z.pageX,te=Z.pageY,re=Y-z,se=te-L,de=e.current.getBoundingClientRect(),ee=de.width,ie=de.height,ce;switch(t){case"btt":ce=-se/ie;break;case"ttb":ce=se/ie;break;case"rtl":ce=-re/ee;break;default:ce=re/ee;}R.current(D,ce);},G=function q(ne){ne.preventDefault(),document.removeEventListener("mouseup",q),document.removeEventListener("mousemove",V),document.removeEventListener("touchend",q),document.removeEventListener("touchmove",V),M.current=null,E.current=null,g(-1),s();};document.addEventListener("mouseup",G),document.addEventListener("mousemove",V),document.addEventListener("touchend",G),document.addEventListener("touchmove",V),M.current=V,E.current=G;},T=f__namespace.useMemo(function(){var A=ge(n).sort(function(D,F){return D-F}),N=ge(w).sort(function(D,F){return D-F});return A.every(function(D,F){return D===N[F]})?w:n},[n,w]);return [m,d,T,P]}function fz(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,s=f__namespace.useContext(yi),l=s.direction,c=s.min,u=s.max,d=s.disabled,h=s.range,v="".concat(t,"-track"),p=Yf(r,c,u),m=Yf(o,c,u),g=function(w){!d&&a&&a(w,-1);},b={};switch(l){case"rtl":b.right="".concat(p*100,"%"),b.width="".concat(m*100-p*100,"%");break;case"btt":b.bottom="".concat(p*100,"%"),b.height="".concat(m*100-p*100,"%");break;case"ttb":b.top="".concat(p*100,"%"),b.height="".concat(m*100-p*100,"%");break;default:b.left="".concat(p*100,"%"),b.width="".concat(m*100-p*100,"%");}return f__namespace.createElement("div",{className:X(v,h&&"".concat(v,"-").concat(i+1)),style:H(H({},b),n),onMouseDown:g,onTouchStart:g})}function hz(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=f__namespace.useContext(yi),s=a.included,l=a.range,c=a.min,u=f__namespace.useMemo(function(){if(!l){if(r.length===0)return [];var d=o??c,h=r[0];return [{start:Math.min(d,h),end:Math.max(d,h)}]}for(var v=[],p=0;p<r.length-1;p+=1)v.push({start:r[p],end:r[p+1]});return v},[r,l,o,c]);return s?u.map(function(d,h){var v=d.start,p=d.end;return f__namespace.createElement(fz,{index:h,prefixCls:t,style:Wi(n,h),start:v,end:p,key:h,onStartMove:i})}):null}function vz(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=f__namespace.useContext(yi),s=a.min,l=a.max,c=a.direction,u=a.includedStart,d=a.includedEnd,h=a.included,v="".concat(t,"-text"),p=Mv(c,o,s,l);return f__namespace.createElement("span",{className:X(v,U({},"".concat(v,"-active"),h&&u<=o&&o<=d)),style:H(H({},p),n),onMouseDown:function(g){g.stopPropagation();},onClick:function(){i(o);}},r)}function pz(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?f__namespace.createElement("div",{className:o},n.map(function(i){var a=i.value,s=i.style,l=i.label;return f__namespace.createElement(vz,{key:a,prefixCls:o,style:s,value:a,onClick:r},l)})):null}function mz(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=f__namespace.useContext(yi),a=i.min,s=i.max,l=i.direction,c=i.included,u=i.includedStart,d=i.includedEnd,h="".concat(t,"-dot"),v=c&&u<=n&&n<=d,p=H(H({},Mv(l,n,a,s)),typeof r=="function"?r(n):r);return v&&(p=H(H({},p),typeof o=="function"?o(n):o)),f__namespace.createElement("span",{className:X(h,U({},"".concat(h,"-active"),v)),style:p})}function gz(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=f__namespace.useContext(yi),s=a.min,l=a.max,c=a.step,u=f__namespace.useMemo(function(){var d=new Set;if(n.forEach(function(v){d.add(v.value);}),r&&c!==null)for(var h=s;h<=l;)d.add(h),h+=c;return Array.from(d)},[s,l,c,r,n]);return f__namespace.createElement("div",{className:"".concat(t,"-step")},u.map(function(d){return f__namespace.createElement(mz,{prefixCls:t,key:d,value:d,style:o,activeStyle:i})}))}function bz(e,t,n,r,o,i){var a=f__namespace.useCallback(function(v){var p=isFinite(v)?v:e;return p=Math.min(t,v),p=Math.max(e,p),p},[e,t]),s=f__namespace.useCallback(function(v){if(n!==null){var p=e+Math.round((a(v)-e)/n)*n,m=function(w){return (String(w).split(".")[1]||"").length},g=Math.max(m(n),m(t),m(e)),b=Number(p.toFixed(g));return e<=b&&b<=t?b:null}return null},[n,e,t,a]),l=f__namespace.useCallback(function(v){var p=a(v),m=r.map(function(y){return y.value});n!==null&&m.push(s(v)),m.push(e,t);var g=m[0],b=t-e;return m.forEach(function(y){var w=Math.abs(p-y);w<=b&&(g=y,b=w);}),g},[e,t,r,n,a,s]),c=function v(p,m,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var y,w=p[g],$=w+m,S=[];r.forEach(function(E){S.push(E.value);}),S.push(e,t),S.push(s(w));var C=m>0?1:-1;b==="unit"?S.push(s(w+C*n)):S.push(s($)),S=S.filter(function(E){return E!==null}).filter(function(E){return m<0?E<=w:E>=w}),b==="unit"&&(S=S.filter(function(E){return E!==w}));var x=b==="unit"?w:$;y=S[0];var _=Math.abs(y-x);if(S.forEach(function(E){var I=Math.abs(E-x);I<_&&(y=E,_=I);}),y===void 0)return m<0?e:t;if(b==="dist")return y;if(Math.abs(m)>1){var M=ge(p);return M[g]=y,v(M,m-C,g,b)}return y}else {if(m==="min")return e;if(m==="max")return t}},u=function(p,m,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=p[g],w=c(p,m,g,b);return {value:w,changed:w!==y}},d=function(p){return i===null&&p===0||typeof i=="number"&&p<i},h=function(p,m,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=p.map(l),w=y[g],$=c(y,m,g,b);if(y[g]=$,o===!1){var S=i||0;g>0&&y[g-1]!==w&&(y[g]=Math.max(y[g],y[g-1]+S)),g<y.length-1&&y[g+1]!==w&&(y[g]=Math.min(y[g],y[g+1]-S));}else if(typeof i=="number"||i===null){for(var C=g+1;C<y.length;C+=1)for(var x=!0;d(y[C]-y[C-1])&&x;){var _=u(y,1,C);y[C]=_.value,x=_.changed;}for(var M=g;M>0;M-=1)for(var E=!0;d(y[M]-y[M-1])&&E;){var I=u(y,-1,M-1);y[M-1]=I.value,E=I.changed;}for(var O=y.length-1;O>0;O-=1)for(var R=!0;d(y[O]-y[O-1])&&R;){var P=u(y,-1,O-1);y[O-1]=P.value,R=P.changed;}for(var T=0;T<y.length-1;T+=1)for(var A=!0;d(y[T+1]-y[T])&&A;){var N=u(y,1,T+1);y[T+1]=N.value,A=N.changed;}}return {value:y[g],values:y}};return [l,h]}var yz=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-slider":r,i=e.className,a=e.style,s=e.disabled,l=s===void 0?!1:s,c=e.keyboard,u=c===void 0?!0:c,d=e.autoFocus,h=e.onFocus,v=e.onBlur,p=e.min,m=p===void 0?0:p,g=e.max,b=g===void 0?100:g,y=e.step,w=y===void 0?1:y,$=e.value,S=e.defaultValue,C=e.range,x=e.count,_=e.onChange,M=e.onBeforeChange,E=e.onAfterChange,I=e.allowCross,O=I===void 0?!0:I,R=e.pushable,P=R===void 0?!1:R,T=e.draggableTrack,A=e.reverse,N=e.vertical,D=e.included,F=D===void 0?!0:D,W=e.startPoint,z=e.trackStyle,L=e.handleStyle,V=e.railStyle,G=e.dotStyle,q=e.activeDotStyle,ne=e.marks,Z=e.dots,Y=e.handleRender,te=e.tabIndex,re=te===void 0?0:te,se=e.ariaLabelForHandle,de=e.ariaLabelledByForHandle,ee=e.ariaValueTextFormatterForHandle,ie=f__namespace.useRef(),ce=f__namespace.useRef(),le=f__namespace.useMemo(function(){return N?A?"ttb":"btt":A?"rtl":"ltr"},[A,N]),ve=f__namespace.useMemo(function(){return isFinite(m)?m:0},[m]),oe=f__namespace.useMemo(function(){return isFinite(b)?b:100},[b]),pe=f__namespace.useMemo(function(){return w!==null&&w<=0?1:w},[w]),ue=f__namespace.useMemo(function(){return P===!0?pe:P>=0?P:!1},[P,pe]),ye=f__namespace.useMemo(function(){var Ae=Object.keys(ne||{});return Ae.map(function(Ge){var Me=ne[Ge],$t={value:Number(Ge)};return Me&&tt(Me)==="object"&&!f__namespace.isValidElement(Me)&&("label"in Me||"style"in Me)?($t.style=Me.style,$t.label=Me.label):$t.label=Me,$t}).filter(function(Ge){var Me=Ge.label;return Me||typeof Me=="number"}).sort(function(Ge,Me){return Ge.value-Me.value})},[ne]),Ie=bz(ve,oe,pe,ye,O,ue),De=K(Ie,2),Le=De[0],_e=De[1],qe=en(S,{value:$}),vt=K(qe,2),et=vt[0],Qe=vt[1],ke=f__namespace.useMemo(function(){var Ae=et==null?[]:Array.isArray(et)?et:[et],Ge=K(Ae,1),Me=Ge[0],$t=Me===void 0?ve:Me,yt=et===null?[]:[$t];if(C){if(yt=ge(Ae),x||et===void 0){var Zt=x>=0?x+1:2;for(yt=yt.slice(0,Zt);yt.length<Zt;){var Te;yt.push((Te=yt[yt.length-1])!==null&&Te!==void 0?Te:ve);}}yt.sort(function(We,lt){return We-lt});}return yt.forEach(function(We,lt){yt[lt]=Le(We);}),yt},[et,C,ve,x,Le]),ze=f__namespace.useRef(ke);ze.current=ke;var dt=function(Ge){return C?Ge:Ge[0]},at=function(Ge){var Me=ge(Ge).sort(function($t,yt){return $t-yt});_&&!Ls(Me,ze.current,!0)&&_(dt(Me)),Qe(Me);},be=function(Ge){if(!l){var Me=0,$t=oe-ve;ke.forEach(function(Zt,Te){var We=Math.abs(Ge-Zt);We<=$t&&($t=We,Me=Te);});var yt=ge(ke);yt[Me]=Ge,C&&!ke.length&&x===void 0&&yt.push(Ge),M==null||M(dt(yt)),at(yt),E==null||E(dt(yt));}},we=function(Ge){Ge.preventDefault();var Me=ce.current.getBoundingClientRect(),$t=Me.width,yt=Me.height,Zt=Me.left,Te=Me.top,We=Me.bottom,lt=Me.right,Pt=Ge.clientX,qt=Ge.clientY,Bt;switch(le){case"btt":Bt=(We-qt)/yt;break;case"ttb":Bt=(qt-Te)/yt;break;case"rtl":Bt=(lt-Pt)/$t;break;default:Bt=(Pt-Zt)/$t;}var wn=ve+Bt*(oe-ve);be(Le(wn));},Ye=f__namespace.useState(null),Ue=K(Ye,2),ft=Ue[0],$e=Ue[1],Ee=function(Ge,Me){if(!l){var $t=_e(ke,Ge,Me);M==null||M(dt(ke)),at($t.values),E==null||E(dt($t.values)),$e($t.value);}};f__namespace.useEffect(function(){if(ft!==null){var Ae=ke.indexOf(ft);Ae>=0&&ie.current.focus(Ae);}$e(null);},[ft]);var je=f__namespace.useMemo(function(){return T&&pe===null?!1:T},[T,pe]),Re=function(){E==null||E(dt(ze.current));},Je=dz(ce,le,ke,ve,oe,Le,at,Re,_e),Et=K(Je,4),Ft=Et[0],kt=Et[1],Ne=Et[2],fe=Et[3],ae=function(Ge,Me){fe(Ge,Me),M==null||M(dt(ze.current));},Se=Ft!==-1;f__namespace.useEffect(function(){if(!Se){var Ae=ke.lastIndexOf(kt);ie.current.focus(Ae);}},[Se]);var xe=f__namespace.useMemo(function(){return ge(Ne).sort(function(Ae,Ge){return Ae-Ge})},[Ne]),Ze=f__namespace.useMemo(function(){return C?[xe[0],xe[xe.length-1]]:[ve,xe[0]]},[xe,C,ve]),pt=K(Ze,2),xt=pt[0],Xt=pt[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){ie.current.focus(0);},blur:function(){var Ge=document,Me=Ge.activeElement;ce.current.contains(Me)&&(Me==null||Me.blur());}}}),f__namespace.useEffect(function(){d&&ie.current.focus(0);},[]);var Vt=f__namespace.useMemo(function(){return {min:ve,max:oe,direction:le,disabled:l,keyboard:u,step:pe,included:F,includedStart:xt,includedEnd:Xt,range:C,tabIndex:re,ariaLabelForHandle:se,ariaLabelledByForHandle:de,ariaValueTextFormatterForHandle:ee}},[ve,oe,le,l,u,pe,F,xt,Xt,C,re,se,de,ee]);return f__namespace.createElement(yi.Provider,{value:Vt},f__namespace.createElement("div",{ref:ce,className:X(o,i,(n={},U(n,"".concat(o,"-disabled"),l),U(n,"".concat(o,"-vertical"),N),U(n,"".concat(o,"-horizontal"),!N),U(n,"".concat(o,"-with-marks"),ye.length),n)),style:a,onMouseDown:we},f__namespace.createElement("div",{className:"".concat(o,"-rail"),style:V}),f__namespace.createElement(hz,{prefixCls:o,style:z,values:xe,startPoint:W,onStartMove:je?ae:null}),f__namespace.createElement(gz,{prefixCls:o,marks:ye,dots:Z,style:G,activeStyle:q}),f__namespace.createElement(uz,{ref:ie,prefixCls:o,style:L,values:Ne,draggingIndex:Ft,onStartMove:ae,onOffsetChange:Ee,onFocus:h,onBlur:v,handleRender:Y}),f__namespace.createElement(pz,{prefixCls:o,marks:ye,onClick:be})))});const Cz=f__namespace.forwardRef((e,t)=>{const{open:n}=e,r=f.useRef(null),o=f.useRef(null);function i(){wt.cancel(o.current),o.current=null;}function a(){o.current=wt(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),o.current=null;});}return f__namespace.useEffect(()=>(n?a():i(),i),[n,e.title]),f__namespace.createElement(fu,Object.assign({ref:Pn(r,t)},e))}),Sz=Cz,wz=e=>{const{componentCls:t,controlSize:n,dotSize:r,marginFull:o,marginPart:i,colorFillContentHover:a}=e;return {[t]:Object.assign(Object.assign({},Jt(e)),{position:"relative",height:n,margin:`${i}px ${o}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${o}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:a},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,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.colorPrimary}`,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:r,height:r,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[`
          ${t}-dot
        `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,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 nn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`
          ${t}-mark-text,
          ${t}-dot
        `]:{cursor:"not-allowed !important"}}})}},MS=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart";return {[a]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track`]:{[l]:r},[`${n}-handle`]:{[c]:(r*3-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[u]:o,[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-i)/2}}},xz=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},MS(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},$z=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},MS(e,!1)),{height:"100%"})}},Ez=mn("Slider",e=>{const t=At(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [wz(t),xz(t),$z(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*3;return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:i}});var Oz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Pz=e=>typeof e=="number"?e.toString():"",_z=f.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,tooltipPrefixCls:a,tipFormatter:s,tooltipVisible:l,getTooltipPopupContainer:c,tooltipPlacement:u}=e,d=Oz(e,["prefixCls","range","className","rootClassName","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:h,direction:v,getPopupContainer:p}=f.useContext(mt),[m,g]=f.useState({}),b=(E,I)=>{g(O=>Object.assign(Object.assign({},O),{[E]:I}));},y=(E,I)=>E||(I?v==="rtl"?"left":"right":"top"),w=h("slider",n),[$,S]=Ez(w),C=X(o,i,{[`${w}-rtl`]:v==="rtl"},S);v==="rtl"&&!d.vertical&&(d.reverse=!d.reverse);const[x,_]=f.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),M=(E,I)=>{var O;const{index:R,dragging:P}=I,{tooltip:T={},vertical:A}=e,N=Object.assign({},T),{open:D,placement:F,getPopupContainer:W,prefixCls:z,formatter:L}=N;let V;L||L===null?V=L:s||s===null?V=s:V=Pz;const G=V?m[R]||P:!1,q=(O=D??l)!==null&&O!==void 0?O:D===void 0&&G,ne=Object.assign(Object.assign({},E.props),{onMouseEnter:()=>b(R,!0),onMouseLeave:()=>b(R,!1)}),Z=h("tooltip",z??a);return f.createElement(Sz,{prefixCls:Z,title:V?V(I.value):"",open:q,placement:y(F??u,A),key:R,overlayClassName:`${w}-tooltip`,getPopupContainer:W||c||p},f.cloneElement(E,ne))};return $(f.createElement(yz,Object.assign({},d,{step:d.step,range:x,draggableTrack:_,className:C,ref:t,prefixCls:w,handleRender:M})))}),Rz=_z;function Mz(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Pl=(e,t,n)=>{const r=Mz(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},Tz=e=>ny(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return {[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),Iz=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return {[o]:Object.assign(Object.assign({},Jt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},TS=mn("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,fontSizeIcon:o}=e,i=Math.round(t*n),a=e.fontSizeSM,s=i-r*2,l=e.colorFillQuaternary,c=e.colorText,u=At(e,{tagFontSize:a,tagLineHeight:s,tagDefaultBg:l,tagDefaultColor:c,tagIconSize:o-2*r,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [Iz(u),Tz(u),Pl(u,"success","Success"),Pl(u,"processing","Info"),Pl(u,"error","Error"),Pl(u,"warning","Warning")]});var Nz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Az=e=>{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=Nz(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=f__namespace.useContext(mt),l=v=>{o==null||o(!r),i==null||i(v);},c=s("tag",t),[u,d]=TS(c),h=X(c,{[`${c}-checkable`]:!0,[`${c}-checkable-checked`]:r},n,d);return u(f__namespace.createElement("span",Object.assign({},a,{className:h,onClick:l})))},Dz=Az;var kz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Lz=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d=!1,bordered:h=!0}=e,v=kz(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:p,direction:m}=f__namespace.useContext(mt),[g,b]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in v&&b(v.visible);},[v.visible]);const y=dC(l)||uk(l),w=Object.assign({backgroundColor:l&&!y?l:void 0},i),$=p("tag",n),[S,C]=TS($),x=X($,{[`${$}-${l}`]:y,[`${$}-has-color`]:l&&!y,[`${$}-hidden`]:!g,[`${$}-rtl`]:m==="rtl",[`${$}-borderless`]:!h},r,o,C),_=P=>{P.stopPropagation(),c==null||c(P),!P.defaultPrevented&&b(!1);},M=f__namespace.useMemo(()=>d?u?f__namespace.createElement("span",{className:`${$}-close-icon`,onClick:_},u):f__namespace.createElement(Yh,{className:`${$}-close-icon`,onClick:_}):null,[d,u,$,_]),E=typeof v.onClick=="function"||a&&a.type==="a",I=s||null,O=I?f__namespace.createElement(f__namespace.Fragment,null,I,f__namespace.createElement("span",null,a)):a,R=f__namespace.createElement("span",Object.assign({},v,{ref:t,className:x,style:w}),O,M);return S(E?f__namespace.createElement(xy,null,R):R)},IS=f__namespace.forwardRef(Lz);IS.CheckableTag=Dz;const Da=IS;var Su={},NS={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;})(NS);var Tv=NS.exports,wu={};Object.defineProperty(wu,"__esModule",{value:!0});wu.default=void 0;var Fz={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:"页码"};wu.default=Fz;var xu={},Ys={},$u={};Object.defineProperty($u,"__esModule",{value:!0});$u.default=void 0;var zz={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:"下一世纪"},jz=zz;$u.default=jz;var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.default=void 0;const Hz={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var Bz=Hz;Zs.default=Bz;var AS=Tv.default;Object.defineProperty(Ys,"__esModule",{value:!0});Ys.default=void 0;var Wz=AS($u),Vz=AS(Zs);const DS={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Wz.default),timePickerLocale:Object.assign({},Vz.default)};DS.lang.ok="确定";var Uz=DS;Ys.default=Uz;var Gz=Tv.default;Object.defineProperty(xu,"__esModule",{value:!0});xu.default=void 0;var Kz=Gz(Ys),Xz=Kz.default;xu.default=Xz;var Eu=Tv.default;Object.defineProperty(Su,"__esModule",{value:!0});Su.default=void 0;var qz=Eu(wu),Yz=Eu(xu),Zz=Eu(Ys),Qz=Eu(Zs);const Bn="${label}不是一个有效的${type}",Jz={locale:"zh-cn",Pagination:qz.default,DatePicker:Zz.default,TimePicker:Qz.default,Calendar:Yz.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:Bn,method:Bn,array:Bn,object:Bn,number:Bn,date:Bn,boolean:Bn,integer:Bn,float:Bn,regexp:Bn,email:Bn,url:Bn,hex:Bn},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新"},ColorPicker:{presetEmpty:"暂无"}};var ej=Jz;Su.default=ej;var tj=Su;const nj=Xr(tj);var Iv={},Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.DEFAULT_ICON_CONFIGS=void 0;Fn.IconConverter=FS;Fn.IconProvider=void 0;Fn.IconWrapper=uj;var Hl=rj(f);function kS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return (kS=function(r){return r?n:t})(e)}function rj(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return {default:e};var n=kS(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i];}return r.default=e,n&&n.set(e,r),r}var oj=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function Kg(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 Xg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(n),!0).forEach(function(r){ij(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function ij(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aj(e,t){if(e==null)return {};var n=sj(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function sj(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var LS={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"};Fn.DEFAULT_ICON_CONFIGS=LS;function lj(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function FS(e,t,n){var r=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],i=t.theme||n.theme;switch(i){case"outline":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none");break;case"filled":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("#FFF"),o.push("#FFF");break;case"two-tone":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone);break;case"multi-color":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.multiColor.outFillColor),o.push(typeof r[2]=="string"?r[2]:n.colors.multiColor.innerStrokeColor),o.push(typeof r[3]=="string"?r[3]:n.colors.multiColor.innerFillColor);break}return {size:t.size||n.size,strokeWidth:t.strokeWidth||n.strokeWidth,strokeLinecap:t.strokeLinecap||n.strokeLinecap,strokeLinejoin:t.strokeLinejoin||n.strokeLinejoin,colors:o,id:e}}var zS=(0, Hl.createContext)(LS),cj=zS.Provider;Fn.IconProvider=cj;function uj(e,t,n){return function(r){var o=r.size,i=r.strokeWidth,a=r.strokeLinecap,s=r.strokeLinejoin,l=r.theme,c=r.fill,u=r.className,d=r.spin,h=aj(r,oj),v=(0, Hl.useContext)(zS),p=(0, Hl.useMemo)(lj,[]),m=FS(p,{size:o,strokeWidth:i,strokeLinecap:a,strokeLinejoin:s,theme:l,fill:c},v),g=[v.prefix+"-icon"];return g.push(v.prefix+"-icon-"+e),t&&v.rtl&&g.push(v.prefix+"-icon-rtl"),d&&g.push(v.prefix+"-icon-spin"),u&&g.push(u),Hl.default.createElement("span",Xg(Xg({},h),{},{className:g.join(" ")}),n(m))}}Object.defineProperty(Iv,"__esModule",{value:!0});var jS=Iv.default=void 0,Pd=fj(f),dj=Fn;function fj(e){return e&&e.__esModule?e:{default:e}}var hj=(0, dj.IconWrapper)("close",!1,function(e){return Pd.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Pd.default.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Pd.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});jS=Iv.default=hj;var Nv={};Object.defineProperty(Nv,"__esModule",{value:!0});var HS=Nv.default=void 0,_d=pj(f),vj=Fn;function pj(e){return e&&e.__esModule?e:{default:e}}var mj=(0, vj.IconWrapper)("config",!1,function(e){return _d.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},_d.default.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}),_d.default.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}))});HS=Nv.default=mj;var Av={};Object.defineProperty(Av,"__esModule",{value:!0});var BS=Av.default=void 0,ka=bj(f),gj=Fn;function bj(e){return e&&e.__esModule?e:{default:e}}var yj=(0, gj.IconWrapper)("distraught-face",!1,function(e){return ka.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},ka.default.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}),ka.default.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}),ka.default.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),ka.default.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});BS=Av.default=yj;var Dv={};Object.defineProperty(Dv,"__esModule",{value:!0});var WS=Dv.default=void 0,La=Sj(f),Cj=Fn;function Sj(e){return e&&e.__esModule?e:{default:e}}var wj=(0, Cj.IconWrapper)("info",!0,function(e){return La.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},La.default.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}),La.default.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]}),La.default.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),La.default.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});WS=Dv.default=wj;var kv={};Object.defineProperty(kv,"__esModule",{value:!0});var VS=kv.default=void 0,Rd=$j(f),xj=Fn;function $j(e){return e&&e.__esModule?e:{default:e}}var Ej=(0, xj.IconWrapper)("loading",!0,function(e){return Rd.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Rd.default.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}),Rd.default.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}))});VS=kv.default=Ej;var Lv={};Object.defineProperty(Lv,"__esModule",{value:!0});var US=Lv.default=void 0,Mr=Pj(f),Oj=Fn;function Pj(e){return e&&e.__esModule?e:{default:e}}var _j=(0, Oj.IconWrapper)("loading-three",!1,function(e){return Mr.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Mr.default.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}),Mr.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});US=Lv.default=_j;var Fv={};Object.defineProperty(Fv,"__esModule",{value:!0});var GS=Fv.default=void 0,Md=Mj(f),Rj=Fn;function Mj(e){return e&&e.__esModule?e:{default:e}}var Tj=(0, Rj.IconWrapper)("return",!0,function(e){return Md.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Md.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Md.default.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}))});GS=Fv.default=Tj;const Ij={Close:jS,Config:HS,DistraughtFace:BS,Return:GS,Loading:VS,LoadingThree:US,Info:WS};function Lo({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24);const i=Zc();r||(r=i?"#fff":"#333");const a=Ij[e];return B(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}function ir({configKey:e,label:t,className:n,extraAction:r,tooltip:o}){const a=!!sr()[e],s=f.useCallback(c=>{const u=c.target.checked;vo({[e]:u}),r==null||r(u);},[]);let l=t||e;return o&&(l=B(fu,{title:o,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),B(F3,{className:n,checked:a,onChange:s,children:l})}var Nj={name:"1qkltea",styles:"margin-left:5px"};const Aj=function(){const e=Nj;return me(Yt,{children:[B(ir,{configKey:"initialShowMore",label:"自动查看更多",css:e}),B(ir,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function Cc({tooltip:e,iconProps:t}){return B(Yt,{children:e&&B(Wj,{title:e,children:B(Lo,{...t,name:"Info",style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}function ar(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ga(t)}const Dj=[{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)"}],ha={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},zv={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function kj(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 KS="UP长期洗涤",Lj=kj(KS,`
  #0545b2 理想之蓝
  #f4cd00 柠檬黄
  #ef2729 石榴红
  #f89c00 鹿箭
  #233728 黛绿
  #f2b9b7 和熙粉
  #f3cc91 芝士黄
  #6b4c68 葡萄紫
  #ff7227 落日橙
  #004d62 碧海天
  #23909b 洗碧空
  #aeb400 芥丝绿
  #425a17 箬叶青

  #002FA7 克莱因蓝
  #003153 普鲁士蓝
  #01847F 马尔斯绿
  #FBD26A 申布伦黄
  #470024 勃艮第红
  #492D22 凡戴克棕
  `),XS=[{name:"App",themes:[ha,{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500FF"},zv]},{name:"LX Themes",themes:Dj,tooltip:me(Yt,{children:["提取自"," ",B("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),B("br",{}),"Apache License 2.0"]})},{name:KS,themes:Lj,tooltip:me(Yt,{children:["提取自"," ",B("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",B("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})}],qS=XS.map(e=>e.themes).flat();function Fj(){const e=qS.find(t=>t.id===(gt.theme||ha.id))||ha;return e.id===zv.id&&gt.colorPickerThemeSelectedColor&&(e.colorPrimary=gt.colorPickerThemeSelectedColor),e}function Sa(){let{theme:e,colorPickerThemeSelectedColor:t}=sr();return e||(e=ha.id),f.useMemo(()=>{const n=qS.find(r=>r.id===e)||ha;return n.id===zv.id&&t&&(n.colorPrimary=t),n},[e,t])}var zj={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},jj={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},Hj={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function Bj(){const e=Sa().id,{colorPickerThemeSelectedColor:t}=sr(),[n,r]=f.useState(t||ha.colorPrimary),o=f.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return B("div",{children:XS.map(({name:i,themes:a,tooltip:s})=>me(f.Fragment,{children:[me("div",{css:Hj,children:[i,B(Cc,{tooltip:s,iconProps:{size:22}})]}),B("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:a.map(l=>{const c=e===l.id,u=l.isCustom,d=B("div",{className:"preview",css:ar("width:100%;height:100%;background-color:",u?o:l.colorPrimary,";border-radius:5px;","")});let h=B("div",{className:"preview-wrapper",css:[jj,c&&ar("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(h=B(tz,{value:n,onChange:v=>r(v),onOpenChange:v=>{v||vo({colorPickerThemeSelectedColor:o});},children:h})),me("div",{css:zj,onClick:v=>{vo({theme:l.id});},children:[h,l.name]},l.id)})})]},i))})}function YS({children:e}){const t=Zc(),{colorPrimary:n}=Sa();return B(Kh,{locale:nj,theme:{algorithm:t?pc.darkAlgorithm:pc.defaultAlgorithm,token:{colorPrimary:n,zIndexPopupBase:11e3}},children:e})}function Wj(e){return B(fu,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}var jv={exports:{}};const Vj=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),qg=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},Yg=({clearTimeout:e,setTimeout:t,willResolve:n})=>(r,{value:o,signal:i}={})=>{if(i&&i.aborted)return Promise.reject(qg());let a,s,l;const c=e||clearTimeout,u=()=>{c(a),l(qg());},d=()=>{i&&i.removeEventListener("abort",u);},h=new Promise((v,p)=>{s=()=>{d(),n?v(o):p(o);},l=p,a=(t||setTimeout)(s,r);});return i&&i.addEventListener("abort",u,{once:!0}),h.clear=()=>{c(a),a=null,s();},h},ZS=e=>{const t=Yg({...e,willResolve:!0});return t.reject=Yg({...e,willResolve:!1}),t.range=(n,r,o)=>t(Vj(n,r),o),t},Hv=ZS();Hv.createWithTimers=ZS;jv.exports=Hv;jv.exports.default=Hv;var Uj=jv.exports;const Ou=Xr(Uj),Gj=wh.extend("utility:dom"),Kj=10*1e3,Xj=200;async function QS(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const a=performance.now()+Kj;for(;!r.length&&performance.now()<a;)await Ou(Xj),o();if(!r.length){console.warn(`[${Fo}]: tryAction timeout, selector = %s`,e);return}Gj("tryAction: selector=%s count=%s",e,r.length);for(const s of r)await Promise.resolve(t(s));}async function ns(e,t,n){return typeof n=="number"&&await Ou(n),QS(e,r=>r.remove(),t)}function Pu(){var t;const e=(((t=document.activeElement)==null?void 0:t.tagName)||"").toLowerCase();return !!(["input","textarea"].includes(e)||document.querySelector(".center-search__bar.is-focus"))}var _u,Zg=ra;_u=Zg.createRoot,Zg.hydrateRoot;function Qg(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Jg(e,t,n){var r=[],o=Sh(e,r,n);return r.length<2?n:o+t(r)}var qj=function(t){var n=Ob(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=Ga(c,n.registered,void 0);return Ib(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=Ga(c,n.registered),h="animation-"+d.name;return Qg(n,{name:d.name,styles:"@keyframes "+h+"{"+d.styles+"}"}),h},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Ga(c,n.registered);Qg(n,d);},a=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return Jg(n.registered,r,Yj(c))};return {css:r,cx:a,injectGlobal:i,keyframes:o,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0;});},flush:function(){n.registered={},n.inserted={},n.sheet.flush();},sheet:n.sheet,cache:n,getRegisteredStyles:Sh.bind(null,n.registered),merge:Jg.bind(null,n.registered,r)}},Yj=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else {i="";for(var a in o)o[a]&&a&&(i&&(i+=" "),i+=a);}break}default:i=o;}i&&(n&&(n+=" "),n+=i);}}return n},Zj=qj({key:"css"}),eb=Zj.css,JS=function(e){return function(t,n){var r=f.useRef(!1);e(function(){return function(){r.current=!1;}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n);}},Cr=function(){return Cr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);}return t},Cr.apply(this,arguments)};function e1(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 Qj(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i);})}return new(n||(n=Promise))(function(i,a){function s(u){try{c(r.next(u));}catch(d){a(d);}}function l(u){try{c(r.throw(u));}catch(d){a(d);}}function c(u){u.done?i(u.value):o(u.value).then(s,l);}c((r=r.apply(e,t||[])).next());})}function Jj(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n);}catch(u){c=[6,u],o=0;}finally{r=i=0;}if(c[0]&5)throw c[1];return {value:c[0]?c[1]:void 0,done:!0}}}function Zf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Qt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value);}catch(s){a={error:s};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(a)throw a.error}}return i}function On(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var wa=function(e){return typeof e=="function"},e6=function(e){return typeof e=="string"},t1=function(e){return typeof e=="number"};function Nt(e){var t=f.useRef(e);t.current=f.useMemo(function(){return e},[e]);var n=f.useRef();return n.current||(n.current=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.current.apply(this,r)}),n.current}const Sc=JS(f.useEffect);var n1=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?!0:r,i=t.defaultParams,a=i===void 0?[]:i,s=t.refreshDeps,l=s===void 0?[]:s,c=t.refreshDepsAction,u=f.useRef(!1);return u.current=!1,Sc(function(){!n&&o&&(u.current=!0,e.run.apply(e,On([],Qt(a),!1)));},[o]),Sc(function(){u.current||n||(u.current=!0,c?c():e.refresh());},On([],Qt(l),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};n1.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const n6=n1;function Qf(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 r1(e,t){var n=f.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!Qf(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function va(e){var t=f.useRef(e);return t.current=e,t}var r6=function(e){var t=va(e);f.useEffect(function(){return function(){t.current();}},[]);};const Qs=r6;var Bl=new Map,o6=function(e,t,n){var r=Bl.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){Bl.delete(e);},t)),Bl.set(e,Cr(Cr({},n),{timer:o}));},i6=function(e){return Bl.get(e)},Wl=new Map,a6=function(e){return Wl.get(e)},s6=function(e,t){Wl.set(e,t),t.then(function(n){return Wl.delete(e),n}).catch(function(){Wl.delete(e);});},Jo={},l6=function(e,t){Jo[e]&&Jo[e].forEach(function(n){return n(t)});},Td=function(e,t){return Jo[e]||(Jo[e]=[]),Jo[e].push(t),function(){var r=Jo[e].indexOf(t);Jo[e].splice(r,1);}},c6=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,i=t.staleTime,a=i===void 0?0:i,s=t.setCache,l=t.getCache,c=f.useRef(),u=f.useRef(),d=function(v,p){s?s(p):o6(v,o,p),l6(v,p.data);},h=function(v,p){return p===void 0&&(p=[]),l?l(p):i6(v)};return r1(function(){if(n){var v=h(n);v&&Object.hasOwnProperty.call(v,"data")&&(e.state.data=v.data,e.state.params=v.params,(a===-1||new Date().getTime()-v.time<=a)&&(e.state.loading=!1)),c.current=Td(n,function(p){e.setState({data:p});});}},[]),Qs(function(){var v;(v=c.current)===null||v===void 0||v.call(c);}),n?{onBefore:function(v){var p=h(n,v);return !p||!Object.hasOwnProperty.call(p,"data")?{}:a===-1||new Date().getTime()-p.time<=a?{loading:!1,data:p==null?void 0:p.data,error:void 0,returnNow:!0}:{data:p==null?void 0:p.data,error:void 0}},onRequest:function(v,p){var m=a6(n);return m&&m!==u.current?{servicePromise:m}:(m=v.apply(void 0,On([],Qt(p),!1)),u.current=m,s6(n,m),{servicePromise:m})},onSuccess:function(v,p){var m;n&&((m=c.current)===null||m===void 0||m.call(c),d(n,{data:v,params:p,time:new Date().getTime()}),c.current=Td(n,function(g){e.setState({data:g});}));},onMutate:function(v){var p;n&&((p=c.current)===null||p===void 0||p.call(c),d(n,{data:v,params:e.state.params,time:new Date().getTime()}),c.current=Td(n,function(m){e.setState({data:m});}));}}:{}};const u6=c6;var d6=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,a=f.useRef(),s=f.useMemo(function(){var l={};return r!==void 0&&(l.leading=r),o!==void 0&&(l.trailing=o),i!==void 0&&(l.maxWait=i),l},[r,o,i]);return f.useEffect(function(){if(n){var l=e.runAsync.bind(e);return a.current=e0(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,h){var v;(v=a.current)===null||v===void 0||v.call(a,function(){l.apply(void 0,On([],Qt(c),!1)).then(d).catch(h);});})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=l;}}},[n,s]),n?{onCancel:function(){var l;(l=a.current)===null||l===void 0||l.cancel();}}:{}};const f6=d6;var h6=function(e,t){var n=t.loadingDelay,r=t.ready,o=f.useRef();if(!n)return {};var i=function(){o.current&&clearTimeout(o.current);};return {onBefore:function(){return i(),r!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0});},n)),{loading:!1}},onFinally:function(){i();},onCancel:function(){i();}}};const v6=h6;var p6=!!(typeof window<"u"&&window.document&&window.document.createElement);const Js=p6;function Bv(){return Js?document.visibilityState!=="hidden":!0}var rs=[];function m6(e){return rs.push(e),function(){var n=rs.indexOf(e);rs.splice(n,1);}}if(Js){var g6=function(){if(Bv())for(var e=0;e<rs.length;e++){var t=rs[e];t();}};window.addEventListener("visibilitychange",g6,!1);}var b6=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,o=r===void 0?!0:r,i=t.pollingErrorRetryCount,a=i===void 0?-1:i,s=f.useRef(),l=f.useRef(),c=f.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l);};return Sc(function(){n||u();},[n]),n?{onBefore:function(){u();},onError:function(){c.current+=1;},onSuccess:function(){c.current=0;},onFinally:function(){a===-1||a!==-1&&c.current<=a?s.current=setTimeout(function(){!o&&!Bv()?l.current=m6(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){u();}}:{}};const y6=b6;function C6(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,On([],Qt(r),!1)),setTimeout(function(){n=!1;},t));}}function S6(){return Js&&typeof navigator.onLine<"u"?navigator.onLine:!0}var os=[];function w6(e){return os.push(e),function(){var n=os.indexOf(e);n>-1&&os.splice(n,1);}}if(Js){var tb=function(){if(!(!Bv()||!S6()))for(var e=0;e<os.length;e++){var t=os[e];t();}};window.addEventListener("visibilitychange",tb,!1),window.addEventListener("focus",tb,!1);}var x6=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,i=f.useRef(),a=function(){var s;(s=i.current)===null||s===void 0||s.call(i);};return f.useEffect(function(){if(n){var s=C6(e.refresh.bind(e),o);i.current=w6(function(){s();});}return function(){a();}},[n,o]),Qs(function(){a();}),{}};const $6=x6;var E6=function(e,t){var n=t.retryInterval,r=t.retryCount,o=f.useRef(),i=f.useRef(0),a=f.useRef(!1);return r?{onBefore:function(){a.current||(i.current=0),a.current=!1,o.current&&clearTimeout(o.current);},onSuccess:function(){i.current=0;},onError:function(){if(i.current+=1,r===-1||i.current<=r){var s=n??Math.min(1e3*Math.pow(2,i.current),3e4);o.current=setTimeout(function(){a.current=!0,e.refresh();},s);}else i.current=0;},onCancel:function(){i.current=0,o.current&&clearTimeout(o.current);}}:{}};const O6=E6;var P6=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,i=f.useRef(),a={};return r!==void 0&&(a.leading=r),o!==void 0&&(a.trailing=o),f.useEffect(function(){if(n){var s=e.runAsync.bind(e);return i.current=JP(function(l){l();},n,a),e.runAsync=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new Promise(function(u,d){var h;(h=i.current)===null||h===void 0||h.call(i,function(){s.apply(void 0,On([],Qt(l),!1)).then(u).catch(d);});})},function(){var l;e.runAsync=s,(l=i.current)===null||l===void 0||l.cancel();}}},[n,r,o]),n?{onCancel:function(){var s;(s=i.current)===null||s===void 0||s.cancel();}}:{}};const _6=P6;var R6=function(e){f.useEffect(function(){e==null||e();},[]);};const Wv=R6;var M6=function(){var e=Qt(f.useState({}),2),t=e[1];return f.useCallback(function(){return t({})},[])};const T6=M6;var I6=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=Cr(Cr(Cr({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Cr(Cr({},this.state),t),this.subscribe();},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.pluginImpls.map(function(i){var a;return (a=i[t])===null||a===void 0?void 0:a.call.apply(a,On([i],Qt(n),!1))}).filter(Boolean);return Object.assign.apply(Object,On([{}],Qt(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,i,a,s,l,c,u,d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];return Qj(this,void 0,void 0,function(){var v,p,m,g,b,y,w,$,S,C,x;return Jj(this,function(_){switch(_.label){case 0:if(this.count+=1,v=this.count,p=this.runPluginHandler("onBefore",d),m=p.stopNow,g=m===void 0?!1:m,b=p.returnNow,y=b===void 0?!1:b,w=e1(p,["stopNow","returnNow"]),g)return [2,new Promise(function(){})];if(this.setState(Cr({loading:!0,params:d},w)),y)return [2,Promise.resolve(w.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),_.label=1;case 1:return _.trys.push([1,3,,4]),$=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,$||($=(x=this.serviceRef).current.apply(x,On([],Qt(d),!1))),[4,$];case 2:return S=_.sent(),v!==this.count?[2,new Promise(function(){})]:(this.setState({data:S,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,S,d),this.runPluginHandler("onSuccess",S,d),(a=(i=this.options).onFinally)===null||a===void 0||a.call(i,d,S,void 0),v===this.count&&this.runPluginHandler("onFinally",d,S,void 0),[2,S]);case 3:if(C=_.sent(),v!==this.count)return [2,new Promise(function(){})];throw this.setState({error:C,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,C,d),this.runPluginHandler("onError",C,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,C),v===this.count&&this.runPluginHandler("onFinally",d,void 0,C),C;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,On([],Qt(n),!1)).catch(function(o){t.options.onError||console.error(o);});},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel");},e.prototype.refresh=function(){this.run.apply(this,On([],Qt(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,On([],Qt(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=wa(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const N6=I6;function A6(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,i=e1(t,["manual"]);var a=Cr({manual:o},i),s=va(e),l=T6(),c=r1(function(){var u=n.map(function(d){var h;return (h=d==null?void 0:d.onInit)===null||h===void 0?void 0:h.call(d,a)}).filter(Boolean);return new N6(s,a,l,Object.assign.apply(Object,On([{}],Qt(u),!1)))},[]);return c.options=a,c.pluginImpls=n.map(function(u){return u(c,a)}),Wv(function(){if(!o){var u=c.state.params||t.defaultParams||[];c.run.apply(c,On([],Qt(u),!1));}}),Qs(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:Nt(c.cancel.bind(c)),refresh:Nt(c.refresh.bind(c)),refreshAsync:Nt(c.refreshAsync.bind(c)),run:Nt(c.run.bind(c)),runAsync:Nt(c.runAsync.bind(c)),mutate:Nt(c.mutate.bind(c))}}function o1(e,t,n){return A6(e,t,On(On([],Qt(n||[]),!1),[f6,v6,y6,$6,_6,n6,u6,O6],!1))}function i1(e,t){e===void 0&&(e=!1);var n=Qt(f.useState(e),2),r=n[0],o=n[1],i=f.useMemo(function(){var a=t===void 0?!e:t,s=function(){return o(function(d){return d===e?a:e})},l=function(d){return o(d)},c=function(){return o(e)},u=function(){return o(a)};return {toggle:s,set:l,setLeft:c,setRight:u}},[]);return [r,i]}function D6(e){e===void 0&&(e=!1);var t=Qt(i1(!!e),2),n=t[0],r=t[1],o=r.toggle,i=r.set,a=f.useMemo(function(){var s=function(){return i(!0)},l=function(){return i(!1)};return {toggle:o,set:function(c){return i(!!c)},setTrue:s,setFalse:l}},[]);return [n,a]}function Mu(e,t){if(Js){if(!e)return t;var n;return wa(e)?n=e():"current"in e?n=e.current:n=e,n}}var k6=function(e){var t=function(n,r,o){var i=f.useRef(!1),a=f.useRef([]),s=f.useRef([]),l=f.useRef();e(function(){var c,u=Array.isArray(o)?o:[o],d=u.map(function(h){return Mu(h)});if(!i.current){i.current=!0,a.current=d,s.current=r,l.current=n();return}(d.length!==a.current.length||!Qf(d,a.current)||!Qf(r,s.current))&&((c=l.current)===null||c===void 0||c.call(l),a.current=d,s.current=r,l.current=n());}),Qs(function(){var c;(c=l.current)===null||c===void 0||c.call(l),i.current=!1;});};return t};const L6=k6;var F6=L6(f.useEffect);const a1=F6;function fi(e,t,n){n===void 0&&(n={});var r=va(t);a1(function(){var o=Mu(n.target,window);if(o!=null&&o.addEventListener){var i=function(a){return r.current(a)};return o.addEventListener(e,i,{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,i,{capture:n.capture});}}},[e,n.capture,n.once,n.passive],n.target);}function s1(e){var t=Qt(f.useState(e),2),n=t[0],r=t[1],o=f.useRef(n);o.current=n;var i=f.useCallback(function(){return o.current},[]);return [n,r,i]}const Id=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,i=n.onChange,a=Qt(D6(!1),2),s=a[0],l=a[1],c=l.setTrue,u=l.setFalse;return fi("mouseenter",function(){r==null||r(),c(),i==null||i(!0);},{target:e}),fi("mouseleave",function(){o==null||o(),u(),i==null||i(!1);},{target:e}),s};var z6=function(e,t){return t===void 0&&(t=[]),GP(e,t)},j6=function(e,t,n){var r=f.useRef(),o=f.useRef(0);z6(t,r.current)||(r.current=t,o.current+=1),a1(e,[o.current],n);};const H6=j6;var B6=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const W6=B6;var l1={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:W6?[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},Jf={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"?l1.meta.includes(e.keyCode):e.metaKey}};function V6(e){var t=Object.keys(Jf).reduce(function(n,r){return Jf[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function nb(e,t,n){var r,o;if(!e.key)return !1;if(t1(t))return e.keyCode===t;var i=t.split("."),a=0;try{for(var s=Zf(i),l=s.next();!l.done;l=s.next()){var c=l.value,u=Jf[c],d=l1[c.toLowerCase()];(u&&u(e)||d&&d===e.keyCode)&&a++;}}catch(h){r={error:h};}finally{try{l&&!l.done&&(o=s.return)&&o.call(s);}finally{if(r)throw r.error}}return n?a===i.length&&V6(e)===i.length:a===i.length}function U6(e,t){return wa(e)?e:e6(e)||t1(e)?function(n){return nb(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return nb(n,r,t)})}:function(){return !!e}}var G6=["keydown"];function cn(e,t,n){var r=n||{},o=r.events,i=o===void 0?G6:o,a=r.target,s=r.exactMatch,l=s===void 0?!1:s,c=r.useCapture,u=c===void 0?!1:c,d=va(t),h=va(e);H6(function(){var v,p,m,g=Mu(a,window);if(g){var b=function(S){var C,x=U6(h.current,l);if(x(S))return (C=d.current)===null||C===void 0?void 0:C.call(d,S)};try{for(var y=Zf(i),w=y.next();!w.done;w=y.next()){var $=w.value;(m=g==null?void 0:g.addEventListener)===null||m===void 0||m.call(g,$,b,u);}}catch(S){v={error:S};}finally{try{w&&!w.done&&(p=y.return)&&p.call(y);}finally{if(v)throw v.error}}return function(){var S,C,x;try{for(var _=Zf(i),M=_.next();!M.done;M=_.next()){var E=M.value;(x=g==null?void 0:g.removeEventListener)===null||x===void 0||x.call(g,E,b,u);}}catch(I){S={error:I};}finally{try{M&&!M.done&&(C=_.return)&&C.call(_);}finally{if(S)throw S.error}}}}},[i],a);}function c1(e){var t=f.useRef(0),n=Qt(f.useState(e),2),r=n[0],o=n[1],i=f.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(a);});},[]);return Qs(function(){cancelAnimationFrame(t.current);}),[r,i]}var K6={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 X6=function(e){var t=Qt(c1(K6),2),n=t[0],r=t[1];return fi("mousemove",function(o){var i=o.screenX,a=o.screenY,s=o.clientX,l=o.clientY,c=o.pageX,u=o.pageY,d={screenX:i,screenY:a,clientX:s,clientY:l,pageX:c,pageY:u,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},h=Mu(e);if(h){var v=h.getBoundingClientRect(),p=v.left,m=v.top,g=v.width,b=v.height;d.elementPosX=p+window.pageXOffset,d.elementPosY=m+window.pageYOffset,d.elementX=c-d.elementPosX,d.elementY=u-d.elementPosY,d.elementW=g,d.elementH=b;}r(d);},{target:function(){return document}}),n};var q6=function(){var e=f.useRef(!1);return f.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const Y6=q6,Z6=JS(f.useLayoutEffect),Q6="_modal-mask_1isor_1",J6="_modal_1isor_1",eH="_modal-header_1isor_23",tH="_modal-body_1isor_30",nH="_modal-title_1isor_35",rH="_btn-close_1isor_42",Wr={modalMask:Q6,modal:J6,modalHeader:eH,modalBody:tH,modalTitle:nH,btnClose:rH};let Wa=0;const oH=()=>{Wa++,document.body.style.overflow="hidden";},iH=()=>{Wa--,Wa<0&&(Wa=0),Wa===0&&(document.body.style.overflow="");};function Vv({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:i,clsModal:a,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){f.useLayoutEffect(()=>{e?oH():iH();},[e]);const u=f.useRef(null),d=Zc(),{bg:h,c:v}=f.useMemo(()=>{const y=window.getComputedStyle(document.body)["background-color"],w=window.getComputedStyle(document.body).color;return {bg:y,c:w}},[d]),p=f.useMemo(()=>d?{"--bg":h,"--c":v,backgroundColor:h,color:v}:{},[h,v,d]),m=f.useId(),g=f.useMemo(()=>{const y=document.createElement("div");return y.setAttribute("data-id","base-modal-"+m),document.body.appendChild(y),y},[]),b=Nt(y=>{var $;const w=y.target;($=u.current)!=null&&$.contains(w)||w.closest('.ant-tooltip-inner[role="tooltip"]')||w.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return cn("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?ra.createPortal(B("div",{className:X(Wr.modalMask,o),style:r,onClick:b,children:B("div",{className:X(Wr.modal,a),style:{...p,width:s,...i},ref:u,children:n})}),g):null}const Uv=e=>B(Lo,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),aH="_toast-container_185m9_1",sH="_single-line_185m9_17";function In(e,t=2e3){const n=document.createElement("div");n.className=aH,n.innerText=e;const{colorPrimary:r}=Fj();n.style.backgroundColor=r,!e.includes(`
`)&&!e.includes("<br")&&n.classList.add(sH),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const lH="请求失败, 请重试 !!!",cH="操作失败, 请重试 !!!";function u1(){return In(lH)}function d1(){return In(cH)}function uH(e){const t=Ns({data:Array.from(e||[]),has(n){return this.data.some(r=>r[0]===n)},set(n,r){const o=this.data.find(i=>i[0]===n);return o?o[1]=r:this.data.push([n,r]),this},get(n){var r;return (r=this.data.find(o=>o[0]===n))==null?void 0:r[1]},delete(n){const r=this.data.findIndex(o=>o[0]===n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(n){this.data.forEach(r=>{n(r[1],r[0],this);});},keys(){return this.data.map(n=>n[0]).values()},values(){return this.data.map(n=>n[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return "Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}const f1="27eb53fc9058f8c3";async function dH(){var c,u;const t=(await hh.get("https://passport.bilibili.com/login/app/third",{params:{appkey:f1,api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((c=t==null?void 0:t.data)!=null&&c.has_login))return {errmsg:"你必须登录(不可用)B站之后才能使用授权",json:t};if(!((u=t==null?void 0:t.data)!=null&&u.confirm_uri))return {errmsg:"无法获得授权网址",json:t};const n=t.data.confirm_uri;let r,o;const i=new Promise(d=>{const h=v=>{if(v.origin!="https://www.mcbbs.net"||!v.data)return;const p=v.data.match(/access_key=([0-9a-z]{32})/);if(!p||!p[1])return d({errmsg:"没有获得匹配的密钥"});d({access_key:p[1]});};window.addEventListener("message",h),o=()=>window.removeEventListener("message",h),r=setTimeout(()=>{d({errmsg:"获取授权超时"});},10*1e3);}),a=document.createElement("iframe");a.src=n,a.style.display="none",document.body.appendChild(a);function s(){a==null||a.remove(),o==null||o(),o=void 0,r&&(clearTimeout(r),r=void 0);}const l=await i;return s(),l}async function fH(){const e=await dH();if(!e.access_key)return In(e.errmsg||"");const t=e.access_key;return gt.accessKey=t,In("获取成功"),t}function hH(){gt.accessKey="",In("已删除 access_key");}const vH="https://api.bilibili.com",h1="https://app.bilibili.com",el=hh.create({baseURL:vH,withCredentials:!0});el.interceptors.request.use(function(e){var t;return (t=e.params)!=null&&t._||(e.params={...e.params,_:Date.now()}),e},function(e){return Promise.reject(e)});const Tu=hh.create({adapter:ww});Tu.interceptors.request.use(function(e){return e.params={appkey:f1,access_key:gt.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});Tu.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){const t=new TextDecoder,n=new Uint8Array(e.data),r=t.decode(n);e.data=r;try{e.data=JSON.parse(r);}catch{}}return e});function v1(){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 pH(){const e=v1().bili_jct;if(!e)throw In("找不到 csrf token, 请检查是否登录(不可用)"),new Error("找不到 csrf token, 请检查是否登录(不可用)");return e}function Gv(){return !!v1().DedeUserID}function p1(){return f.useMemo(()=>Gv(),[document.cookie])}const Fa=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,m1=new Set,eh=typeof process=="object"&&process?process:{},g1=(e,t,n,r)=>{typeof eh.emitWarning=="function"?eh.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`);};let wc=globalThis.AbortController,rb=globalThis.AbortSignal;var fb;if(typeof wc>"u"){rb=class{constructor(){bt(this,"onabort");bt(this,"_onabort",[]);bt(this,"reason");bt(this,"aborted",!1);}addEventListener(r,o){this._onabort.push(o);}},wc=class{constructor(){bt(this,"signal",new rb);t();}abort(r){var o,i;if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(const a of this.signal._onabort)a(r);(i=(o=this.signal).onabort)==null||i.call(o,r);}}};let e=((fb=eh.env)==null?void 0:fb.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const t=()=>{e&&(e=!1,g1("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t));};}const mH=e=>!m1.has(e),Eo=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),b1=e=>Eo(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Vl:null:null;class Vl extends Array{constructor(t){super(t),this.fill(0);}}var Qi;const Vi=class{constructor(t,n){bt(this,"heap");bt(this,"length");if(!k(Vi,Qi))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0;}static create(t){const n=b1(t);if(!n)return [];Ke(Vi,Qi,!0);const r=new Vi(t,n);return Ke(Vi,Qi,!1),r}push(t){this.heap[this.length++]=t;}pop(){return this.heap[--this.length]}};let Ul=Vi;Qi=new WeakMap,ct(Ul,Qi,!1);var fr,Un,Nr,hr,Ji,sn,vr,ln,Ut,it,Rn,Gn,En,fn,pr,gn,io,ao,mr,Ar,Mo,An,Os,nh,ii,so,Ps,Kn,_c,y1,ai,ea,_s,Dr,Oo,kr,Po,Rs,rh,ta,Gl,na,Kl,Wt,Kt,Ms,oh,si,Va;const op=class{constructor(t){ct(this,Os);ct(this,_c);ct(this,Dr);ct(this,kr);ct(this,Rs);ct(this,ta);ct(this,na);ct(this,Wt);ct(this,Ms);ct(this,si);ct(this,fr,void 0);ct(this,Un,void 0);ct(this,Nr,void 0);ct(this,hr,void 0);ct(this,Ji,void 0);bt(this,"ttl");bt(this,"ttlResolution");bt(this,"ttlAutopurge");bt(this,"updateAgeOnGet");bt(this,"updateAgeOnHas");bt(this,"allowStale");bt(this,"noDisposeOnSet");bt(this,"noUpdateTTL");bt(this,"maxEntrySize");bt(this,"sizeCalculation");bt(this,"noDeleteOnFetchRejection");bt(this,"noDeleteOnStaleGet");bt(this,"allowStaleOnFetchAbort");bt(this,"allowStaleOnFetchRejection");bt(this,"ignoreFetchAbort");ct(this,sn,void 0);ct(this,vr,void 0);ct(this,ln,void 0);ct(this,Ut,void 0);ct(this,it,void 0);ct(this,Rn,void 0);ct(this,Gn,void 0);ct(this,En,void 0);ct(this,fn,void 0);ct(this,pr,void 0);ct(this,gn,void 0);ct(this,io,void 0);ct(this,ao,void 0);ct(this,mr,void 0);ct(this,Ar,void 0);ct(this,Mo,void 0);ct(this,An,void 0);ct(this,ii,()=>{});ct(this,so,()=>{});ct(this,Ps,()=>{});ct(this,Kn,()=>!1);ct(this,ai,t=>{});ct(this,ea,(t,n,r)=>{});ct(this,_s,(t,n,r,o)=>{if(r||o)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:n=0,ttl:r,ttlResolution:o=1,ttlAutopurge:i,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:c,disposeAfter:u,noDisposeOnSet:d,noUpdateTTL:h,maxSize:v=0,maxEntrySize:p=0,sizeCalculation:m,fetchMethod:g,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:y,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:$,ignoreFetchAbort:S}=t;if(n!==0&&!Eo(n))throw new TypeError("max option must be a nonnegative integer");const C=n?b1(n):Array;if(!C)throw new Error("invalid max value: "+n);if(Ke(this,fr,n),Ke(this,Un,v),this.maxEntrySize=p||k(this,Un),this.sizeCalculation=m,this.sizeCalculation){if(!k(this,Un)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(Ke(this,Ji,g),Ke(this,Mo,!!g),Ke(this,ln,new Map),Ke(this,Ut,new Array(n).fill(void 0)),Ke(this,it,new Array(n).fill(void 0)),Ke(this,Rn,new C(n)),Ke(this,Gn,new C(n)),Ke(this,En,0),Ke(this,fn,0),Ke(this,pr,Ul.create(n)),Ke(this,sn,0),Ke(this,vr,0),typeof c=="function"&&Ke(this,Nr,c),typeof u=="function"?(Ke(this,hr,u),Ke(this,gn,[])):(Ke(this,hr,void 0),Ke(this,gn,void 0)),Ke(this,Ar,!!k(this,Nr)),Ke(this,An,!!k(this,hr)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!$,this.ignoreFetchAbort=!!S,this.maxEntrySize!==0){if(k(this,Un)!==0&&!Eo(k(this,Un)))throw new TypeError("maxSize must be a positive integer if specified");if(!Eo(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Fe(this,_c,y1).call(this);}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!y,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=Eo(o)||o===0?o:1,this.ttlAutopurge=!!i,this.ttl=r||0,this.ttl){if(!Eo(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Fe(this,Os,nh).call(this);}if(k(this,fr)===0&&this.ttl===0&&k(this,Un)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!k(this,fr)&&!k(this,Un)){const x="LRU_CACHE_UNBOUNDED";mH(x)&&(m1.add(x),g1("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",x,op));}}static unsafeExposeInternals(t){return {starts:k(t,ao),ttls:k(t,mr),sizes:k(t,io),keyMap:k(t,ln),keyList:k(t,Ut),valList:k(t,it),next:k(t,Rn),prev:k(t,Gn),get head(){return k(t,En)},get tail(){return k(t,fn)},free:k(t,pr),isBackgroundFetch:n=>{var r;return Fe(r=t,Wt,Kt).call(r,n)},backgroundFetch:(n,r,o,i)=>{var a;return Fe(a=t,na,Kl).call(a,n,r,o,i)},moveToTail:n=>{var r;return Fe(r=t,si,Va).call(r,n)},indexes:n=>{var r;return Fe(r=t,Dr,Oo).call(r,n)},rindexes:n=>{var r;return Fe(r=t,kr,Po).call(r,n)},isStale:n=>{var r;return k(r=t,Kn).call(r,n)}}}get max(){return k(this,fr)}get maxSize(){return k(this,Un)}get calculatedSize(){return k(this,vr)}get size(){return k(this,sn)}get fetchMethod(){return k(this,Ji)}get dispose(){return k(this,Nr)}get disposeAfter(){return k(this,hr)}getRemainingTTL(t){return k(this,ln).has(t)?1/0:0}*entries(){for(const t of Fe(this,Dr,Oo).call(this))k(this,it)[t]!==void 0&&k(this,Ut)[t]!==void 0&&!Fe(this,Wt,Kt).call(this,k(this,it)[t])&&(yield [k(this,Ut)[t],k(this,it)[t]]);}*rentries(){for(const t of Fe(this,kr,Po).call(this))k(this,it)[t]!==void 0&&k(this,Ut)[t]!==void 0&&!Fe(this,Wt,Kt).call(this,k(this,it)[t])&&(yield [k(this,Ut)[t],k(this,it)[t]]);}*keys(){for(const t of Fe(this,Dr,Oo).call(this)){const n=k(this,Ut)[t];n!==void 0&&!Fe(this,Wt,Kt).call(this,k(this,it)[t])&&(yield n);}}*rkeys(){for(const t of Fe(this,kr,Po).call(this)){const n=k(this,Ut)[t];n!==void 0&&!Fe(this,Wt,Kt).call(this,k(this,it)[t])&&(yield n);}}*values(){for(const t of Fe(this,Dr,Oo).call(this))k(this,it)[t]!==void 0&&!Fe(this,Wt,Kt).call(this,k(this,it)[t])&&(yield k(this,it)[t]);}*rvalues(){for(const t of Fe(this,kr,Po).call(this))k(this,it)[t]!==void 0&&!Fe(this,Wt,Kt).call(this,k(this,it)[t])&&(yield k(this,it)[t]);}[Symbol.iterator](){return this.entries()}find(t,n={}){for(const r of Fe(this,Dr,Oo).call(this)){const o=k(this,it)[r],i=Fe(this,Wt,Kt).call(this,o)?o.__staleWhileFetching:o;if(i!==void 0&&t(i,k(this,Ut)[r],this))return this.get(k(this,Ut)[r],n)}}forEach(t,n=this){for(const r of Fe(this,Dr,Oo).call(this)){const o=k(this,it)[r],i=Fe(this,Wt,Kt).call(this,o)?o.__staleWhileFetching:o;i!==void 0&&t.call(n,i,k(this,Ut)[r],this);}}rforEach(t,n=this){for(const r of Fe(this,kr,Po).call(this)){const o=k(this,it)[r],i=Fe(this,Wt,Kt).call(this,o)?o.__staleWhileFetching:o;i!==void 0&&t.call(n,i,k(this,Ut)[r],this);}}purgeStale(){let t=!1;for(const n of Fe(this,kr,Po).call(this,{allowStale:!0}))k(this,Kn).call(this,n)&&(this.delete(k(this,Ut)[n]),t=!0);return t}dump(){const t=[];for(const n of Fe(this,Dr,Oo).call(this,{allowStale:!0})){const r=k(this,Ut)[n],o=k(this,it)[n],i=Fe(this,Wt,Kt).call(this,o)?o.__staleWhileFetching:o;if(i===void 0||r===void 0)continue;const a={value:i};if(k(this,mr)&&k(this,ao)){a.ttl=k(this,mr)[n];const s=Fa.now()-k(this,ao)[n];a.start=Math.floor(Date.now()-s);}k(this,io)&&(a.size=k(this,io)[n]),t.unshift([r,a]);}return t}load(t){this.clear();for(const[n,r]of t){if(r.start){const o=Date.now()-r.start;r.start=Fa.now()-o;}this.set(n,r.value,r);}}set(t,n,r={}){var h,v,p;if(n===void 0)return this.delete(t),this;const{ttl:o=this.ttl,start:i,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=r;let{noUpdateTTL:c=this.noUpdateTTL}=r;const u=k(this,_s).call(this,t,n,r.size||0,s);if(this.maxEntrySize&&u>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(t),this;let d=k(this,sn)===0?void 0:k(this,ln).get(t);if(d===void 0)d=k(this,sn)===0?k(this,fn):k(this,pr).length!==0?k(this,pr).pop():k(this,sn)===k(this,fr)?Fe(this,ta,Gl).call(this,!1):k(this,sn),k(this,Ut)[d]=t,k(this,it)[d]=n,k(this,ln).set(t,d),k(this,Rn)[k(this,fn)]=d,k(this,Gn)[d]=k(this,fn),Ke(this,fn,d),al(this,sn)._++,k(this,ea).call(this,d,u,l),l&&(l.set="add"),c=!1;else {Fe(this,si,Va).call(this,d);const m=k(this,it)[d];if(n!==m){if(k(this,Mo)&&Fe(this,Wt,Kt).call(this,m)?m.__abortController.abort(new Error("replaced")):a||(k(this,Ar)&&((h=k(this,Nr))==null||h.call(this,m,t,"set")),k(this,An)&&((v=k(this,gn))==null||v.push([m,t,"set"]))),k(this,ai).call(this,d),k(this,ea).call(this,d,u,l),k(this,it)[d]=n,l){l.set="replace";const g=m&&Fe(this,Wt,Kt).call(this,m)?m.__staleWhileFetching:m;g!==void 0&&(l.oldValue=g);}}else l&&(l.set="update");}if(o!==0&&!k(this,mr)&&Fe(this,Os,nh).call(this),k(this,mr)&&(c||k(this,Ps).call(this,d,o,i),l&&k(this,so).call(this,l,d)),!a&&k(this,An)&&k(this,gn)){const m=k(this,gn);let g;for(;g=m==null?void 0:m.shift();)(p=k(this,hr))==null||p.call(this,...g);}return this}pop(){var t;try{for(;k(this,sn);){const n=k(this,it)[k(this,En)];if(Fe(this,ta,Gl).call(this,!0),Fe(this,Wt,Kt).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(k(this,An)&&k(this,gn)){const n=k(this,gn);let r;for(;r=n==null?void 0:n.shift();)(t=k(this,hr))==null||t.call(this,...r);}}}has(t,n={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:o}=n,i=k(this,ln).get(t);if(i!==void 0){const a=k(this,it)[i];if(Fe(this,Wt,Kt).call(this,a)&&a.__staleWhileFetching===void 0)return !1;if(k(this,Kn).call(this,i))o&&(o.has="stale",k(this,so).call(this,o,i));else return r&&k(this,ii).call(this,i),o&&(o.has="hit",k(this,so).call(this,o,i)),!0}else o&&(o.has="miss");return !1}peek(t,n={}){const{allowStale:r=this.allowStale}=n,o=k(this,ln).get(t);if(o!==void 0&&(r||!k(this,Kn).call(this,o))){const i=k(this,it)[o];return Fe(this,Wt,Kt).call(this,i)?i.__staleWhileFetching:i}}async fetch(t,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:v=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:g=!1,status:b,signal:y}=n;if(!k(this,Mo))return b&&(b.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:i,status:b});const w={allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:p,ignoreFetchAbort:v,status:b,signal:y};let $=k(this,ln).get(t);if($===void 0){b&&(b.fetch="miss");const S=Fe(this,na,Kl).call(this,t,$,w,m);return S.__returned=S}else {const S=k(this,it)[$];if(Fe(this,Wt,Kt).call(this,S)){const E=r&&S.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",E&&(b.returnedStale=!0)),E?S.__staleWhileFetching:S.__returned=S}const C=k(this,Kn).call(this,$);if(!g&&!C)return b&&(b.fetch="hit"),Fe(this,si,Va).call(this,$),o&&k(this,ii).call(this,$),b&&k(this,so).call(this,b,$),S;const x=Fe(this,na,Kl).call(this,t,$,w,m),M=x.__staleWhileFetching!==void 0&&r;return b&&(b.fetch=C?"stale":"refresh",M&&C&&(b.returnedStale=!0)),M?x.__staleWhileFetching:x.__returned=x}}get(t,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=n,s=k(this,ln).get(t);if(s!==void 0){const l=k(this,it)[s],c=Fe(this,Wt,Kt).call(this,l);return a&&k(this,so).call(this,a,s),k(this,Kn).call(this,s)?(a&&(a.get="stale"),c?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(i||this.delete(t),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),c?l.__staleWhileFetching:(Fe(this,si,Va).call(this,s),o&&k(this,ii).call(this,s),l))}else a&&(a.get="miss");}delete(t){var r,o,i,a;let n=!1;if(k(this,sn)!==0){const s=k(this,ln).get(t);if(s!==void 0)if(n=!0,k(this,sn)===1)this.clear();else {k(this,ai).call(this,s);const l=k(this,it)[s];Fe(this,Wt,Kt).call(this,l)?l.__abortController.abort(new Error("deleted")):(k(this,Ar)||k(this,An))&&(k(this,Ar)&&((r=k(this,Nr))==null||r.call(this,l,t,"delete")),k(this,An)&&((o=k(this,gn))==null||o.push([l,t,"delete"]))),k(this,ln).delete(t),k(this,Ut)[s]=void 0,k(this,it)[s]=void 0,s===k(this,fn)?Ke(this,fn,k(this,Gn)[s]):s===k(this,En)?Ke(this,En,k(this,Rn)[s]):(k(this,Rn)[k(this,Gn)[s]]=k(this,Rn)[s],k(this,Gn)[k(this,Rn)[s]]=k(this,Gn)[s]),al(this,sn)._--,k(this,pr).push(s);}}if(k(this,An)&&((i=k(this,gn))!=null&&i.length)){const s=k(this,gn);let l;for(;l=s==null?void 0:s.shift();)(a=k(this,hr))==null||a.call(this,...l);}return n}clear(){var t,n,r;for(const o of Fe(this,kr,Po).call(this,{allowStale:!0})){const i=k(this,it)[o];if(Fe(this,Wt,Kt).call(this,i))i.__abortController.abort(new Error("deleted"));else {const a=k(this,Ut)[o];k(this,Ar)&&((t=k(this,Nr))==null||t.call(this,i,a,"delete")),k(this,An)&&((n=k(this,gn))==null||n.push([i,a,"delete"]));}}if(k(this,ln).clear(),k(this,it).fill(void 0),k(this,Ut).fill(void 0),k(this,mr)&&k(this,ao)&&(k(this,mr).fill(0),k(this,ao).fill(0)),k(this,io)&&k(this,io).fill(0),Ke(this,En,0),Ke(this,fn,0),k(this,pr).length=0,Ke(this,vr,0),Ke(this,sn,0),k(this,An)&&k(this,gn)){const o=k(this,gn);let i;for(;i=o==null?void 0:o.shift();)(r=k(this,hr))==null||r.call(this,...i);}}};let th=op;fr=new WeakMap,Un=new WeakMap,Nr=new WeakMap,hr=new WeakMap,Ji=new WeakMap,sn=new WeakMap,vr=new WeakMap,ln=new WeakMap,Ut=new WeakMap,it=new WeakMap,Rn=new WeakMap,Gn=new WeakMap,En=new WeakMap,fn=new WeakMap,pr=new WeakMap,gn=new WeakMap,io=new WeakMap,ao=new WeakMap,mr=new WeakMap,Ar=new WeakMap,Mo=new WeakMap,An=new WeakMap,Os=new WeakSet,nh=function(){const t=new Vl(k(this,fr)),n=new Vl(k(this,fr));Ke(this,mr,t),Ke(this,ao,n),Ke(this,Ps,(i,a,s=Fa.now())=>{if(n[i]=a!==0?s:0,t[i]=a,a!==0&&this.ttlAutopurge){const l=setTimeout(()=>{k(this,Kn).call(this,i)&&this.delete(k(this,Ut)[i]);},a+1);l.unref&&l.unref();}}),Ke(this,ii,i=>{n[i]=t[i]!==0?Fa.now():0;}),Ke(this,so,(i,a)=>{if(t[a]){const s=t[a],l=n[a];i.ttl=s,i.start=l,i.now=r||o();const c=i.now-l;i.remainingTTL=s-c;}});let r=0;const o=()=>{const i=Fa.now();if(this.ttlResolution>0){r=i;const a=setTimeout(()=>r=0,this.ttlResolution);a.unref&&a.unref();}return i};this.getRemainingTTL=i=>{const a=k(this,ln).get(i);if(a===void 0)return 0;const s=t[a],l=n[a];if(s===0||l===0)return 1/0;const c=(r||o())-l;return s-c},Ke(this,Kn,i=>t[i]!==0&&n[i]!==0&&(r||o())-n[i]>t[i]);},ii=new WeakMap,so=new WeakMap,Ps=new WeakMap,Kn=new WeakMap,_c=new WeakSet,y1=function(){const t=new Vl(k(this,fr));Ke(this,vr,0),Ke(this,io,t),Ke(this,ai,n=>{Ke(this,vr,k(this,vr)-t[n]),t[n]=0;}),Ke(this,_s,(n,r,o,i)=>{if(Fe(this,Wt,Kt).call(this,r))return 0;if(!Eo(o))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(o=i(r,n),!Eo(o))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return o}),Ke(this,ea,(n,r,o)=>{if(t[n]=r,k(this,Un)){const i=k(this,Un)-t[n];for(;k(this,vr)>i;)Fe(this,ta,Gl).call(this,!0);}Ke(this,vr,k(this,vr)+t[n]),o&&(o.entrySize=r,o.totalCalculatedSize=k(this,vr));});},ai=new WeakMap,ea=new WeakMap,_s=new WeakMap,Dr=new WeakSet,Oo=function*({allowStale:t=this.allowStale}={}){if(k(this,sn))for(let n=k(this,fn);!(!Fe(this,Rs,rh).call(this,n)||((t||!k(this,Kn).call(this,n))&&(yield n),n===k(this,En)));)n=k(this,Gn)[n];},kr=new WeakSet,Po=function*({allowStale:t=this.allowStale}={}){if(k(this,sn))for(let n=k(this,En);!(!Fe(this,Rs,rh).call(this,n)||((t||!k(this,Kn).call(this,n))&&(yield n),n===k(this,fn)));)n=k(this,Rn)[n];},Rs=new WeakSet,rh=function(t){return t!==void 0&&k(this,ln).get(k(this,Ut)[t])===t},ta=new WeakSet,Gl=function(t){var i,a;const n=k(this,En),r=k(this,Ut)[n],o=k(this,it)[n];return k(this,Mo)&&Fe(this,Wt,Kt).call(this,o)?o.__abortController.abort(new Error("evicted")):(k(this,Ar)||k(this,An))&&(k(this,Ar)&&((i=k(this,Nr))==null||i.call(this,o,r,"evict")),k(this,An)&&((a=k(this,gn))==null||a.push([o,r,"evict"]))),k(this,ai).call(this,n),t&&(k(this,Ut)[n]=void 0,k(this,it)[n]=void 0,k(this,pr).push(n)),k(this,sn)===1?(Ke(this,En,Ke(this,fn,0)),k(this,pr).length=0):Ke(this,En,k(this,Rn)[n]),k(this,ln).delete(r),al(this,sn)._--,n},na=new WeakSet,Kl=function(t,n,r,o){const i=n===void 0?void 0:k(this,it)[n];if(Fe(this,Wt,Kt).call(this,i))return i;const a=new wc,{signal:s}=r;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});const l={signal:a.signal,options:r,context:o},c=(m,g=!1)=>{const{aborted:b}=a.signal,y=r.ignoreFetchAbort&&m!==void 0;if(r.status&&(b&&!g?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,y&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),b&&!y&&!g)return d(a.signal.reason);const w=v;return k(this,it)[n]===v&&(m===void 0?w.__staleWhileFetching?k(this,it)[n]=w.__staleWhileFetching:this.delete(t):(r.status&&(r.status.fetchUpdated=!0),this.set(t,m,l.options))),m},u=m=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=m),d(m)),d=m=>{const{aborted:g}=a.signal,b=g&&r.allowStaleOnFetchAbort,y=b||r.allowStaleOnFetchRejection,w=y||r.noDeleteOnFetchRejection,$=v;if(k(this,it)[n]===v&&(!w||$.__staleWhileFetching===void 0?this.delete(t):b||(k(this,it)[n]=$.__staleWhileFetching)),y)return r.status&&$.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),$.__staleWhileFetching;if($.__returned===$)throw m},h=(m,g)=>{var y;const b=(y=k(this,Ji))==null?void 0:y.call(this,t,i,l);b&&b instanceof Promise&&b.then(w=>m(w),g),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(m(),r.allowStaleOnFetchAbort&&(m=w=>c(w,!0)));});};r.status&&(r.status.fetchDispatched=!0);const v=new Promise(h).then(c,u),p=Object.assign(v,{__abortController:a,__staleWhileFetching:i,__returned:void 0});return n===void 0?(this.set(t,p,{...l.options,status:void 0}),n=k(this,ln).get(t)):k(this,it)[n]=p,p},Wt=new WeakSet,Kt=function(t){if(!k(this,Mo))return !1;const n=t;return !!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof wc},Ms=new WeakSet,oh=function(t,n){k(this,Gn)[n]=t,k(this,Rn)[t]=n;},si=new WeakSet,Va=function(t){t!==k(this,fn)&&(t===k(this,En)?Ke(this,En,k(this,Rn)[t]):Fe(this,Ms,oh).call(this,k(this,Gn)[t],k(this,Rn)[t]),Fe(this,Ms,oh).call(this,k(this,fn),t),Ke(this,fn,t));};async function gH(e){return (await el.get("/pvideo",{params:{aid:e}})).data.data}async function bH(e){return []}const Nd=new th({max:200});async function yH(e){if(Nd.has(e))return Nd.get(e);const[t,n]=await Promise.all([gH(e),bH()]);return Nd.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function C1(e){return async function(n){const r=new FormData;r.append("aid",n),r.append("csrf",pH());const i=(await el.post("/x/v2/history/toview/"+e,r,{withCredentials:!0})).data,a=(i==null?void 0:i.code)===0&&(i==null?void 0:i.message)==="0";return a||In((i==null?void 0:i.message)||"出错了"),a}}const CH=C1("add"),SH=C1("del"),S1=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const i=(await Tu.get(h1+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return (i==null?void 0:i.code)===0&&(i==null?void 0:i.message)==="0"}},wH=S1("dislike"),xH=S1("cancel"),$H="_modal_1rloz_1",EH="_title-desc_1rloz_4",OH="_reason-list_1rloz_8",PH="_reason_1rloz_8",_H="_active_1rloz_29",RH="_reason-no_1rloz_33",MH="_tips-container_1rloz_47",TH="_tips_1rloz_47",or={modal:$H,titleDesc:EH,reasonList:OH,reason:PH,active:_H,reasonNo:RH,tipsContainer:MH,tips:TH},Iu=uH();function IH(){return ba(Iu)}function NH(e){const t=IH();if(e)return t.get(e)}function AH({show:e,onHide:t,item:n}){const[r,o]=f.useState(!1),i=Nt(async p=>{if(!n)return;let m=!1,g;try{o(!0),m=await wH(n,p.id);}catch(b){g=b;}finally{o(!1);}if(g)return console.error(g.stack||g),u1();m?In("已标记不想看"):d1(),m&&(Iu.set(n.param,{...p}),t());}),a=f.useMemo(()=>{var p;return ((p=n==null?void 0:n.three_point)==null?void 0:p.dislike_reasons)||[]},[n]),s=()=>!!e&&!!n,l=["1","2","3","4","5","6"];cn(l,p=>{if(!s()||!l.includes(p.key))return;const m=Number(p.key)-1;u(m);const g=document.querySelectorAll(`.${or.reason}`)[m]||null;g==null||g.click();});const[c,u]=f.useState(a.length-1);Z6(()=>{u(a.length-1);},[a]);const d=p=>()=>{if(!s())return;const m=c+p;m<0||m>a.length-1||u(m);};cn("leftarrow",d(-1)),cn("rightarrow",d(1)),cn("uparrow",d(-2)),cn("downarrow",d(2)),cn("enter",p=>{var m;s()&&(c<0||c>a.length-1||(p.preventDefault(),p.stopImmediatePropagation(),(m=document.querySelector(`.${or.reason}.${or.active}`))==null||m.click()));});const h=f.useMemo(()=>{var p;return ((p=a[c])==null?void 0:p.name)||""},[a,c]),{colorPrimary:v}=Sa();return me(Vv,{show:e,onHide:t,clsModal:or.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[me("div",{className:Wr.modalHeader,children:[me("div",{className:Wr.modalTitle,children:["我不想看",B("span",{className:or.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),B("div",{className:"space",style:{flex:1}}),B(Uv,{onClick:t})]}),me("div",{className:Wr.modalBody,children:[B("div",{className:or.reasonList,children:a.map((p,m)=>me("button",{className:X(or.reason,{[or.active]:m===c}),style:{...m===c&&{borderColor:v}},"data-id":p.id,onClick:()=>{u(m),i(p);},disabled:r,children:[B("span",{className:or.reasonNo,style:{backgroundColor:v},children:m+1}),p.name]},p.id))}),me("div",{className:or.tipsContainer,children:[me("div",{className:or.tips,children:[B(Lo,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹框, 数字键选择, Esc 关闭"]}),h&&me("div",{className:or.tips,children:[B(Lo,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",h,"」, 回车键提交"]})]})]})]})}const Xl={show:!1,onHide:x1,item:null},w1=Ns({value:Xl.show}),DH=function(){return ba(w1).value};function x1(){setTimeout(()=>{$1({show:!1,item:null});});}function $1(e){Object.assign(Xl,e),w1.value=Xl.show,kH().render(B(AH,{...Xl,onHide:x1}));}let Ad;function kH(){if(!Ad){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),Ad=_u(e);}return Ad}function LH(e){e!=null&&e.param&&Iu.has(e.param)||$1({show:!0,item:e});}function FH(e){if(!e)return 0;const t=[1,60,360];return e.split(":").map(o=>Number(o)).reverse().reduce((o,i,a)=>o+i*t[a],0)}function E1(e){return e||(e=0),As.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function Dd(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function xc(e){if(e){if(e==="-")return 0;if(/^\d+$/.test(e))return Number(e);if(/^\d+(\.\d+?)?万$/.test(e))return Number(e.slice(0,-1))*1e4}}const zH=As().format("YYYY");function O1(e){if(!e)return "";const t=As.unix(e);return t.format("YYYY")===zH?t.format("M-D"):t.format("YY-M-D")}const jH="_bili-video-card_mlccj_1",HH="_image-wrapper_mlccj_4",BH="_preview-card-wrapper_mlccj_8",WH="_preview-card-inner_mlccj_21",VH="_watch-later_mlccj_25",UH="_badge_mlccj_28",GH="_recommend-reason_mlccj_37",KH="_bangumi-desc_mlccj_52",XH="_btn-dislike_mlccj_55",qH="_btn-dislike-icon_mlccj_70",YH="_btn-dislike-tip_mlccj_77",ZH="_disliked-wrapper_mlccj_92",QH="_dislike-content-cover_mlccj_106",JH="_dislike-content-cover-inner_mlccj_112",e8="_dislike-icon_mlccj_123",t8="_dislike-reason_mlccj_126",n8="_dislike-desc_mlccj_130",r8="_dislike-content-action_mlccj_134",o8="_skeleton-active_mlccj_151",i8="_ant-skeleton-loading_mlccj_1",un={biliVideoCard:jH,imageWrapper:HH,previewCardWrapper:BH,previewCardInner:WH,watchLater:VH,badge:UH,recommendReason:GH,bangumiDesc:KH,btnDislike:XH,btnDislikeIcon:qH,btnDislikeTip:YH,dislikedWrapper:ZH,dislikeContentCover:QH,dislikeContentCoverInner:JH,dislikeIcon:e8,dislikeReason:t8,dislikeDesc:n8,dislikeContentAction:r8,skeletonActive:o8,antSkeletonLoading:i8};function a8(...e){for(const t of e)if(!isNaN(t))return t;return 0}function s8({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const i=f.useRef(null),a=X6(i),[s,l]=f.useState(()=>({width:0,height:0}));Wv(()=>{var h;const d=(h=i.current)==null?void 0:h.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof o=="number")c=o;else {const d=a8(a.elementX,r||0);s.width&&d&&!isNaN(d)&&(c=d/s.width,c<0&&(c=0),c>1&&(c=1));}const u={videoDuration:t,pvideo:n,elWidth:s.width,elHeight:s.height,progress:c};return B("div",{ref:i,className:X(un.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&B(l8,{...u})})}function l8({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var S;const i=Math.floor((e||0)*o);let a=f.useMemo(()=>{const C=(t==null?void 0:t.index)||[];let x=u8(C,i);return x!==-1?x:i>C[C.length-1]?(x=Math.floor(C.length*o)-1,x<0&&(x=0),x):0},[t,i]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:u}=t,d=l*s;a=a+1;const h=Math.floor(a/d),v=a-h*d,p=((S=t.image)==null?void 0:S[h])||"",m=Math.floor(v/s)+1,g=v-(m-1)*s,b=n*s,y=r*l,w=(m-1)*r,$=(g-1)*n;return B("div",{className:un.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${p})`,backgroundPosition:`-${$}px -${w}px`,backgroundSize:`${b}px ${y}px`},children:B(c8,{progress:o})})}function c8({progress:e}){const{colorPrimary:t}=Sa();return B("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:B("div",{className:"bar",style:{backgroundColor:t,height:"100%",width:`${e*100}%`}})})}function u8(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const s=Math.floor((n+r)/2),l=e[s];if(t===l)return s;l<t?(n=s+1,o=s):r=s-1;}if(o===-1)return -1;const i=e[o],a=e[o+1]??0;return i<t&&t<a?o:-1}const Ua={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},Es={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},d8={bangumiFollow:1.3},f8=e=>{const t=Es[e]||Es[1];return Ua[t]},h8=e=>{const t=Es[e];if(t)return d8[t]};function ob(e){return {iconSvgName:f8(e),iconSvgScale:h8(e)}}const cs=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}};let _o=cs;bt(_o,"TABEL","fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF"),bt(_o,"TR",{}),bt(_o,"S",[11,10,3,8,4,6]),bt(_o,"XOR",177451812),bt(_o,"ADD",8728348608),(()=>{const t=cs.TABEL.length;for(let n=0;n<t;n++)cs.TR[cs.TABEL[n]]=n;})();function P1(e){const t=e.api==="pc",n=e.api==="app";return e.api,t?v8(e):n?p8(e):m8(e)}function v8(e){var t;return {avid:String(e.id),bvid:e.bvid,goto:e.goto,href:e.goto==="av"?`/video/${e.bvid}/`:e.uri,title:e.title,coverRaw:e.pic,pubts:e.pubdate,pubdate:O1(e.pubdate),duration:e.duration,durationStr:E1(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 p8(e){var i,a,s;const t=l=>{const{cover_left_icon_1:c,cover_left_text_1:u,cover_left_icon_2:d,cover_left_text_2:h}=e;if(c&&Es[c]===l)return xc(u);if(d&&Es[d]===l)return xc(h)},n=e.param,r=_o.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(`[${Fo}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const c=(l=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:l[1];return c?`/read/cv${c}`:e.uri}return e.uri})();return {avid:n,bvid:r,goto:e.goto,href:o,title:e.title,coverRaw:e.cover,pubts:void 0,pubdate:void 0,duration:((i=e.player_args)==null?void 0:i.duration)||0,durationStr:E1((a=e.player_args)==null?void 0:a.duration),recommendReason:e.rcmd_reason,play:t("play"),like:void 0,coin:void 0,danmaku:t("danmaku"),favorite:void 0,authorName:e.args.up_name,authorFace:void 0,authorMid:String(e.args.up_id),appBadge:e.badge,appBadgeDesc:((s=e.desc_button)==null?void 0:s.text)||e.desc||""}}function m8(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=As().subtract(2,"days").unix(),o=(()=>{const i=n.pub_ts;return i>r?n.pub_time:O1(i)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,coverRaw:t.cover,pubts:n.pub_ts,pubdate:o,duration:FH(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:xc(t.stat.play),danmaku:xc(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}const g8=e=>(e||"").replace(/^http:\/\//,"https://"),$c=f.memo(f.forwardRef(function({style:t,className:n,item:r,loading:o,active:i,...a},s){o=o??!r;const l=me("div",{className:X("bili-video-card__skeleton",{hide:!o,[un.skeletonActive]:o}),children:[B("div",{className:"bili-video-card__skeleton--cover"}),B("div",{className:"bili-video-card__skeleton--info",children:me("div",{className:"bili-video-card__skeleton--right",children:[B("p",{className:"bili-video-card__skeleton--text"}),B("p",{className:"bili-video-card__skeleton--text short"}),B("p",{className:"bili-video-card__skeleton--light"})]})})]}),c=NH((r==null?void 0:r.api)==="app"&&r.param),u=f.useRef(null),d=f.useRef(null);return f.useImperativeHandle(s,()=>({async onCancelDislike(){var h;await((h=u.current)==null?void 0:h.onCancelDislike());},async onToggleWatchLater(){var h;await((h=d.current)==null?void 0:h.onToggleWatchLater());},onTriggerDislike(){var h;(h=d.current)==null||h.onTriggerDislike();},onStartPreviewAnimation(){var h;(h=d.current)==null||h.onStartPreviewAnimation();},onHotkeyPreviewAnimation(){var h;(h=d.current)==null||h.onHotkeyPreviewAnimation();}}),[u,d]),me("div",{style:t,className:X("bili-video-card",un.biliVideoCard,n),...a,children:[l,!o&&r&&(c?B(b8,{ref:u,item:r,dislikedReason:c}):B(y8,{ref:d,item:r,active:i}))]})})),b8=f.memo(f.forwardRef(function({dislikedReason:t,item:n},r){const o=Nt(async()=>{if(!(t!=null&&t.id))return;let i=!1,a;try{i=await xH(n,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),u1();i?In("已撤销"):d1(),i&&Iu.delete(n.param);});return f.useImperativeHandle(r,()=>({onCancelDislike:o}),[]),me("div",{className:X(un.dislikedWrapper),children:[B("div",{className:un.dislikeContentCover,children:me("div",{className:un.dislikeContentCoverInner,children:[B(Lo,{name:"DistraughtFace",size:32,className:un.dislikeIcon}),B("div",{className:un.dislikeReason,children:t==null?void 0:t.name}),B("div",{className:un.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),B("div",{className:un.dislikeContentAction,children:me("button",{onClick:o,children:[B(Lo,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})})),y8=f.memo(f.forwardRef(function({item:t,active:n=!1},r){const o=t.api==="pc",i=t.api==="app",a=t.api==="dynamic",{avid:s,bvid:l,goto:c,href:u,title:d,coverRaw:h,pubdate:v,duration:p,durationStr:m,recommendReason:g,play:b,like:y,coin:w,danmaku:$,favorite:S,authorName:C,authorFace:x,authorMid:_,appBadge:M,appBadgeDesc:E}=f.useMemo(()=>P1(t),[t]),I=a||t.goto==="av";["av","bangumi","picture"].includes(c)||console.warn(`[${Fo}]: none (av,bangumi,picture) goto type %s`,c,t);const O=f.useMemo(()=>g8(h),[h]),[R,P]=f.useState(null),T=f.useRef(!1),A=Nt(async()=>{if(!R&&!T.current)try{T.current=!0,P(await yH(s));}finally{T.current=!1;}}),N=f.useRef(null),[D,F]=f.useState(void 0);fi("mouseenter",De=>{var vt;const Le=(vt=N.current)==null?void 0:vt.getBoundingClientRect();if(!Le)return;const{x:_e}=Le,qe=De.pageX-window.pageXOffset-_e;F(qe);},{target:N});const W=Id(N),{autoPreviewWhenHover:z}=sr(),{onStartPreviewAnimation:L,onHotkeyPreviewAnimation:V,previewAnimationProgress:G}=C8({bvid:l,title:d,autoPreviewWhenHover:z,active:n,tryFetchVideoData:A,videoPreviewWrapperRef:N});Sc(()=>{n&&(unsafeWindow[`${_x}_activeItem`]=t,gt.autoPreviewWhenKeyboardSelect&&L());},[n]);const q=f.useRef(null),ne=Id(q),[Z,Y]=f.useState(!1),{accessKey:te}=sr(),re=!!te;f.useEffect(()=>{W&&A();},[W]),f.useImperativeHandle(r,()=>({onToggleWatchLater:ee,onTriggerDislike:le,onStartPreviewAnimation:L,onHotkeyPreviewAnimation:V}),[]);const[se,de]=f.useState(!1),ee=Nt(async De=>{if(De==null||De.preventDefault(),se)return;de(!0);const Le=Z?SH:CH;let _e=!1;try{_e=await Le(s);}finally{de(!1);}_e&&Y(qe=>!qe);}),ie=f.useRef(null),ce=Id(ie),le=Nt(De=>{De==null||De.stopPropagation(),De==null||De.preventDefault(),i&&LH(t);}),ve=f.useMemo(()=>Dd(b),[b]),oe=f.useMemo(()=>Dd(y),[y]),pe=f.useMemo(()=>Dd(S),[S]),ue=o?oe:pe,ye=Nt(De=>{if(!gt.openInIINAWhenRightClick)return;const Le=new URL(u,location.href).href,_e=`iina://open?url=${encodeURIComponent(Le)}`;window.open(_e,"_self"),De.preventDefault();}),Ie=({text:De,iconSvgName:Le,iconSvgScale:_e})=>me("span",{className:"bili-video-card__stats--item",children:[B("svg",{className:"bili-video-card__stats--icon",style:{transform:_e?`scale(${_e})`:void 0},children:B("use",{href:Le})}),B("span",{className:"bili-video-card__stats--text",children:De})]});return me("div",{className:"bili-video-card__wrap __scale-wrap",onContextMenu:ye,children:[B("a",{href:u,target:"_blank",children:me("div",{className:"bili-video-card__image __scale-player-wrap",ref:N,children:[me("div",{className:X("bili-video-card__image--wrap",un.imageWrapper),children:[me("picture",{className:"v-img bili-video-card__cover",children:[B("source",{srcSet:`${O}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),B("source",{srcSet:`${O}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),B("img",{src:`${O}@672w_378h_1c_!web-home-common-cover`,alt:d,loading:"eager"})]}),(W||typeof G=="number")&&B(s8,{videoDuration:p,pvideo:R==null?void 0:R.pvideoData,mouseEnterRelativeX:D,previewAnimationProgress:G}),me("div",{className:`bili-watch-later ${un.watchLater}`,style:{display:W||n?"flex":"none"},ref:q,onClick:ee,children:[B("svg",{className:"bili-watch-later__icon",children:B("use",{href:Z?"#widget-watch-save":"#widget-watch-later"})}),B("span",{className:"bili-watch-later__tip",style:{display:ne?"block":"none"},children:Z?"移除":"稍后再看"})]}),i&&re&&me("div",{ref:ie,className:un.btnDislike,onClick:le,style:{display:W?"flex":"none"},children:[B("svg",{className:un.btnDislikeIcon,children:B("use",{href:"#widget-close"})}),B("span",{className:un.btnDislikeTip,style:{display:ce?"block":"none"},children:"我不想看"})]})]}),B("div",{className:"bili-video-card__mask",children:me("div",{className:"bili-video-card__stats",children:[B("div",{className:"bili-video-card__stats--left",children:o?me(Yt,{children:[Ie({text:ve,iconSvgName:Ua.play}),Ie({text:c==="av"?oe:ue,iconSvgName:Ua.like})]}):i?me(Yt,{children:[t.cover_left_text_1&&Ie({...ob(t.cover_left_icon_1),text:c==="picture"?t.cover_left_text_1+(t.cover_left_1_content_description||""):t.cover_left_text_1}),t.cover_left_text_2&&Ie({...ob(t.cover_left_icon_2),text:c==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]}):me(Yt,{children:[Ie({text:ve,iconSvgName:Ua.play}),Ie({text:($||0).toString(),iconSvgName:Ua.danmaku})]})}),B("span",{className:"bili-video-card__stats__duration",children:I&&m})]})})]})}),B("div",{className:"bili-video-card__info __scale-disable",children:me("div",{className:"bili-video-card__info--right",children:[B("a",{href:u,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:B("h3",{className:"bili-video-card__info--tit",title:d,children:d})}),B("p",{className:"bili-video-card__info--bottom",children:I?me("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${_}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[g?B("span",{className:un.recommendReason,children:g}):B("svg",{className:"bili-video-card__info--owner__up",children:B("use",{href:"#widget-up"})}),B("span",{className:"bili-video-card__info--author",children:C}),v&&me("span",{className:"bili-video-card__info--date",children:["· ",v]})]}):M||E?me("a",{className:"bili-video-card__info--owner",href:u,target:"_blank",children:[B("span",{className:un.badge,children:M||""}),B("span",{className:un.bangumiDesc,children:E||""})]}):null})]})})]})}));function C8({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:i}){const[s,l]=c1(void 0),[c,u]=f.useState(!1),d=f.useRef(!1),h=f.useRef(!1);fi("mouseenter",_=>{d.current=!0,n&&!p.current&&x(!0);},{target:i}),fi("mouseleave",_=>{d.current=!1;},{target:i}),fi("mousemove",_=>{u(!0),n||g();},{target:i});const v=Y6(),p=f.useRef(void 0),m=Nt(()=>{if(v.current)return !0;if(n){if(h.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),g=Nt((_=!1)=>{p.current&&cancelAnimationFrame(p.current),p.current=void 0,l(void 0),y(!1);}),[b,y,w]=s1(!1),$=f.useRef(),S=Nt(()=>{var _;if(!p.current){x();return}y(M=>!M),b&&((_=$.current)==null||_.call($,s||0));}),C=Nt(()=>s||0),x=Nt((_=!1)=>{h.current=_,u(!1),y(!1),o(),g(!0),l(P=>typeof P>"u"?0:P);const M=8e3,E=()=>typeof gt.autoPreviewUpdateInterval=="number"?gt.autoPreviewUpdateInterval:400;let I=performance.now(),O=0;$.current=()=>{I=performance.now()-C()*M;};function R(P){if(m()){g();return}const T=()=>{const A=performance.now()-I,N=Math.min(A%M/M,1);l(N);};w()||(E()?(!O||performance.now()-O>=E())&&(O=performance.now(),T()):T()),p.current=requestAnimationFrame(R);}p.current=requestAnimationFrame(R);});return {onHotkeyPreviewAnimation:S,onStartPreviewAnimation:x,previewAnimationProgress:s}}const Kv="_video-grid_tu03i_9",S8="_limit-two-lines_tu03i_19",_1="_internal-testing_tu03i_51",w8="_narrow-mode_tu03i_79";function x8({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:i,changeScrollY:a,videoCardRefs:s}){const[l,c]=f.useState(void 0),u=Nt(()=>!(!e||Pu())),d=Nt(()=>{var x;if(typeof l!="number"||!o.current)return !1;const S=i(),C=(x=o.current.querySelector(`.${Zi.card}.${Zi.cardActive}`))==null?void 0:x.getBoundingClientRect();return !(!S||!C||C.top-S.top<-(S.height+C.height)||C.top-S.top>S.height*2+C.height)}),h=S=>C=>{if(!u())return;C==null||C.preventDefault();let x=typeof S=="number"?S:S();const _=d()?l+x:m();if(_<n){w(n);return}if(_>r){w(r);return}c(_),w(_);};cn("leftarrow",h(-1),{exactMatch:!0}),cn("rightarrow",h(1),{exactMatch:!0});const v=()=>Xv(o.current);cn("uparrow",h(()=>-v()),{exactMatch:!0}),cn("downarrow",h(v),{exactMatch:!0});const p=()=>{u()&&c(void 0);};cn("esc",p),cn("enter",()=>{!u()||typeof l!="number"||$(l);}),cn("backspace",()=>{var S;!u()||typeof l!="number"||(S=s[l])==null||S.onTriggerDislike();}),cn(["s","w"],()=>{var S;!u()||typeof l!="number"||(S=s[l])==null||S.onToggleWatchLater();},{exactMatch:!0}),cn(["period","p"],()=>{var S;!u()||typeof l!="number"||(S=s[l])==null||S.onHotkeyPreviewAnimation();},{exactMatch:!0});function m(){const S=i();if(!S)return 0;const C=b();for(let x=0;x<C.length;x++)if(C[x].getBoundingClientRect().top>=S.top)return x;return 0}const g=`.${Zi.card}`;function b(){var S;return [...((S=o.current)==null?void 0:S.querySelectorAll(g))||[]]}function y(S){return b()[S]}function w(S){var M;const C=y(S);(M=C==null?void 0:C.scrollIntoViewIfNeeded)==null||M.call(C,!1);const x=i(),_=C.getBoundingClientRect();if(!(!x||!_)){if(_.top<=x.top){const E=-(x.top-_.top+10);a==null||a({offset:E});return}if(x.bottom-_.bottom<10){const E=10-(x.bottom-_.bottom);a==null||a({offset:E});return}}}function $(S){const C=y(S);if(!C)return;const x=C.querySelector(".bili-video-card__wrap > a");x==null||x.click();}return {activeIndex:l,clearActiveIndex:p}}const ib=new Map;function Xv(e,t=!0){if(t&&gt.useNarrowMode)return 2;let n=ib.get(window.innerWidth);if(n)return n;if(e||(e=document.querySelector(`.${Kv}`)),!e)return 0;const r=window.getComputedStyle(e);return r.display!=="grid"?0:(n=r.gridTemplateColumns.split(" ").length,ib.set(window.innerWidth,n),n)}function R1(){const{onlyFollowMode:e,useDynamicApi:t}=sr();return p1()?e?"onlyFollow":t?"dynamic":"normal":"normal"}function is(){const{onlyFollowMode:e,useDynamicApi:t}=gt;return Gv()?e?"onlyFollow":t?"dynamic":"normal":"normal"}function M1(){return gt.filterMinDurationEnabled||gt.filterMinPlayCountEnabled||gt.onlyFollowMode}function T1(e){return M1()?e.filter(t=>{const{play:n,duration:r,recommendReason:o}=P1(t),i=o==="已关注"||(o==null?void 0:o.includes("关注"));return gt.onlyFollowMode&&Gv()?i:!gt.enableFilterForFollowed&&i?!0:!(typeof n=="number"&&gt.filterMinPlayCountEnabled&&gt.filterMinPlayCount&&n<gt.filterMinPlayCount||r&&gt.filterMinDurationEnabled&&gt.filterMinDuration&&r<gt.filterMinDuration)}):e}var Nu={exports:{}},qv={exports:{}},I1={exports:{}},rn=I1.exports={},Tr,Ir;function ih(){throw new Error("setTimeout has not been defined")}function ah(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Tr=setTimeout:Tr=ih;}catch{Tr=ih;}try{typeof clearTimeout=="function"?Ir=clearTimeout:Ir=ah;}catch{Ir=ah;}})();function N1(e){if(Tr===setTimeout)return setTimeout(e,0);if((Tr===ih||!Tr)&&setTimeout)return Tr=setTimeout,setTimeout(e,0);try{return Tr(e,0)}catch{try{return Tr.call(null,e,0)}catch{return Tr.call(this,e,0)}}}function $8(e){if(Ir===clearTimeout)return clearTimeout(e);if((Ir===ah||!Ir)&&clearTimeout)return Ir=clearTimeout,clearTimeout(e);try{return Ir(e)}catch{try{return Ir.call(null,e)}catch{return Ir.call(this,e)}}}var co=[],Yi=!1,oi,ql=-1;function E8(){!Yi||!oi||(Yi=!1,oi.length?co=oi.concat(co):ql=-1,co.length&&A1());}function A1(){if(!Yi){var e=N1(E8);Yi=!0;for(var t=co.length;t;){for(oi=co,co=[];++ql<t;)oi&&oi[ql].run();ql=-1,t=co.length;}oi=null,Yi=!1,$8(e);}}rn.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];co.push(new D1(e,t)),co.length===1&&!Yi&&N1(A1);};function D1(e,t){this.fun=e,this.array=t;}D1.prototype.run=function(){this.fun.apply(null,this.array);};rn.title="browser";rn.browser=!0;rn.env={};rn.argv=[];rn.version="";rn.versions={};function wo(){}rn.on=wo;rn.addListener=wo;rn.once=wo;rn.off=wo;rn.removeListener=wo;rn.removeAllListeners=wo;rn.emit=wo;rn.prependListener=wo;rn.prependOnceListener=wo;rn.listeners=function(e){return []};rn.binding=function(e){throw new Error("process.binding is not supported")};rn.cwd=function(){return "/"};rn.chdir=function(e){throw new Error("process.chdir is not supported")};rn.umask=function(){return 0};var O8=I1.exports;const kd=Xr(O8);var sh;typeof Object.create=="function"?sh=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:sh=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const k1=sh;var P8=/%[sdj%]/g;function pa(e){if(!nl(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Vr(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,i=String(e).replace(P8,function(s){if(s==="%%")return "%";if(n>=o)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return "[Circular]"}default:return s}}),a=r[n];n<o;a=r[++n])tl(a)||!Ci(a)?i+=" "+a:i+=" "+Vr(a);return i}function Yv(e,t){if(jr(global.process))return function(){return Yv(e,t).apply(this,arguments)};if(kd.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(kd.throwDeprecation)throw new Error(t);kd.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var _l={},Ld;function L1(e){if(jr(Ld)&&(Ld={}.NODE_DEBUG||""),e=e.toUpperCase(),!_l[e])if(new RegExp("\\b"+e+"\\b","i").test(Ld)){var t=0;_l[e]=function(){var n=pa.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else _l[e]=function(){};return _l[e]}function Vr(e,t){var n={seen:[],stylize:R8};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Au(t)?n.showHidden=t:t&&ep(n,t),jr(n.showHidden)&&(n.showHidden=!1),jr(n.depth)&&(n.depth=2),jr(n.colors)&&(n.colors=!1),jr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=_8),Ec(n,e,n.depth)}Vr.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]};Vr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function _8(e,t){var n=Vr.styles[t];return n?"\x1B["+Vr.colors[n][0]+"m"+e+"\x1B["+Vr.colors[n][1]+"m":e}function R8(e,t){return e}function M8(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function Ec(e,t,n){if(e.customInspect&&t&&ls(t.inspect)&&t.inspect!==Vr&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return nl(r)||(r=Ec(e,r,n)),r}var o=T8(e,t);if(o)return o;var i=Object.keys(t),a=M8(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),ss(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Fd(t);if(i.length===0){if(ls(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(as(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Oc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(ss(t))return Fd(t)}var l="",c=!1,u=["{","}"];if(Zv(t)&&(c=!0,u=["[","]"]),ls(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(as(t)&&(l=" "+RegExp.prototype.toString.call(t)),Oc(t)&&(l=" "+Date.prototype.toUTCString.call(t)),ss(t)&&(l=" "+Fd(t)),i.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return as(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return c?h=I8(e,t,n,a,i):h=i.map(function(v){return lh(e,t,n,a,v,c)}),e.seen.pop(),N8(h,l,u)}function T8(e,t){if(jr(t))return e.stylize("undefined","undefined");if(nl(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(Qv(t))return e.stylize(""+t,"number");if(Au(t))return e.stylize(""+t,"boolean");if(tl(t))return e.stylize("null","null")}function Fd(e){return "["+Error.prototype.toString.call(e)+"]"}function I8(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)W1(t,String(a))?i.push(lh(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(l){l.match(/^\d+$/)||i.push(lh(e,t,n,r,l,!0));}),i}function lh(e,t,n,r,o,i){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},l.get?l.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),W1(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(tl(n)?s=Ec(e,l.value,null):s=Ec(e,l.value,n-1),s.indexOf(`
`)>-1&&(i?s=s.split(`
`).map(function(c){return "  "+c}).join(`
`).substr(2):s=`
`+s.split(`
`).map(function(c){return "   "+c}).join(`
`))):s=e.stylize("[Circular]","special")),jr(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"));}return a+": "+s}function N8(e,t,n){var r=e.reduce(function(o,i){return i.indexOf(`
`)>=0,o+i.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(t===""?"":t+`
 `)+" "+e.join(`,
  `)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function Zv(e){return Array.isArray(e)}function Au(e){return typeof e=="boolean"}function tl(e){return e===null}function F1(e){return e==null}function Qv(e){return typeof e=="number"}function nl(e){return typeof e=="string"}function z1(e){return typeof e=="symbol"}function jr(e){return e===void 0}function as(e){return Ci(e)&&Jv(e)==="[object RegExp]"}function Ci(e){return typeof e=="object"&&e!==null}function Oc(e){return Ci(e)&&Jv(e)==="[object Date]"}function ss(e){return Ci(e)&&(Jv(e)==="[object Error]"||e instanceof Error)}function ls(e){return typeof e=="function"}function j1(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function H1(e){return Buffer.isBuffer(e)}function Jv(e){return Object.prototype.toString.call(e)}function zd(e){return e<10?"0"+e.toString(10):e.toString(10)}var A8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D8(){var e=new Date,t=[zd(e.getHours()),zd(e.getMinutes()),zd(e.getSeconds())].join(":");return [e.getDate(),A8[e.getMonth()],t].join(" ")}function B1(){console.log("%s - %s",D8(),pa.apply(null,arguments));}function ep(e,t){if(!t||!Ci(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function W1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const k8={inherits:k1,_extend:ep,log:B1,isBuffer:H1,isPrimitive:j1,isFunction:ls,isError:ss,isDate:Oc,isObject:Ci,isRegExp:as,isUndefined:jr,isSymbol:z1,isString:nl,isNumber:Qv,isNullOrUndefined:F1,isNull:tl,isBoolean:Au,isArray:Zv,inspect:Vr,deprecate:Yv,format:pa,debuglog:L1},L8=Object.freeze(Object.defineProperty({__proto__:null,_extend:ep,debuglog:L1,default:k8,deprecate:Yv,format:pa,inherits:k1,inspect:Vr,isArray:Zv,isBoolean:Au,isBuffer:H1,isDate:Oc,isError:ss,isFunction:ls,isNull:tl,isNullOrUndefined:F1,isNumber:Qv,isObject:Ci,isPrimitive:j1,isRegExp:as,isString:nl,isSymbol:z1,isUndefined:jr,log:B1},Symbol.toStringTag,{value:"Module"})),F8=xw(L8);var z8=F8.format;function j8(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function H8(e,t){return function(){var n=this,r=[].slice.call(arguments);j8();var o=new AbortController;return r.push(o.signal),new Promise(function(i,a){var s=setTimeout(function(){var l=new V1(t);a(l),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(l){clearTimeout(s),i(l);},function(l){clearTimeout(s),a(l);});})}}let V1=class U1 extends Error{constructor(t){super(),this.timeout=t,this.message=z8("timeout of %sms exceed",t),Error.captureStackTrace(this,U1);}};qv.exports=H8;qv.exports.TimeoutError=V1;var B8=qv.exports;const G1=B8,W8=G1.TimeoutError;Nu.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,i=n.timeout;i&&(t=G1(t,i));const a=n.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(o);for(let u=0;u<o;u++){let d,h;try{d=await t.apply(s,l);}catch(v){h=v;}if(!h)return d;if(h instanceof TypeError)throw h;if(h instanceof V8)throw h.originalError;c[u]=h,a&&a(h,u);}throw new K1({times:o,timeout:i,fn:r,errors:c})}};class K1 extends Error{constructor(t){super(),this.times=t.times,this.timeout=t.timeout,this.fn=t.fn,this.errors=t.errors,this.name="RetryError",this.message=`tried function ${this.fn.name||"<anonymous>"} ${this.times} times`,this.timeout&&(this.message+=` with timeout = ${this.timeout}ms`),Error.captureStackTrace(this,this.constructor);}}class V8 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 U8=Nu.exports.RetryError=K1;Nu.exports.TimeoutError=W8;var G8=Nu.exports;const K8=Xr(G8);class tp extends Error{constructor(n){super();bt(this,"json");Error.captureStackTrace(this,tp),this.json=n,this.message=n.message||JSON.stringify(n);}}const X8=10;async function q8(){var r;const t=(await Tu.get(h1+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)+"0"+Math.trunc(Math.random()*1e3).toString().padStart(3,"0")}})).data;if(!t.data){if(t.code===-663)throw new tp(t);return In(`${Fo}: 未知错误, 请联系开发者

  code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const Y8=K8(q8,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",Fo,t,e);}});async function ab(){try{return await Y8()}catch(e){if(e instanceof U8){console.error(e.errors);const t=[pa("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>pa("  %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(`
`);In(t,5e3);}throw e}}async function X1(e){let t=[];const n=async()=>{t=(await Promise.all(new Array(e).fill(0).map(()=>ab()))).flat();},r=async()=>{for(let o=1;o<=e;o++)t=t.concat(await ab());};return await(gt.useParallelRequest?n:r)(),t=Yc(t,o=>o.param),t.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}const ip=class{constructor(){bt(this,"page",0);}async getRecommend(){const t=++this.page;return (await el.get("/x/web-interface/index/top/rcmd",{params:{fresh_type:3,version:1,ps:ip.PAGE_SIZE,fresh_idx:t,fresh_idx_1h:t,homepage_ver:1}})).data.data.item}async getRecommendTimes(t){let n=[];const r=async()=>{n=(await Promise.all(new Array(t).fill(0).map(()=>this.getRecommend()))).flat();},o=async()=>{for(let i=1;i<=t;i++)n=n.concat(await this.getRecommend());};return await(gt.useParallelRequest?r:o)(),n=Yc(n,i=>i.id),n.forEach(i=>{var a,s;((a=i.rcmd_reason)==null?void 0:a.reason_type)===1&&((s=i.rcmd_reason).content||(s.content="已关注"));}),n.map(i=>({...i,uniqId:i.id+"-"+crypto.randomUUID(),api:"pc"}))}};let hi=ip;bt(hi,"PAGE_SIZE",14);const sb=wh.extend("service"),Yl=e=>e.api==="pc"?e.id:e.api==="app"?e.param:e.modules.module_dynamic.major.archive.aid;function Z8(e,t){const n=e.map(Yl);return t=Yc(t,Yl),e.concat(t.filter(r=>!n.includes(Yl(r))))}const ch=()=>is()==="onlyFollow"||is()==="normal"&&gt.usePcDesktopApi;async function q1(e,t,n,r=5){let o=[],i=async a=>{let s=[];if(is()==="dynamic"){s=await n.next()||[],o=o.concat(s);return}let l;if(is()==="onlyFollow")l=8,sb("getMinCount: addMore(restCount = %s) times=%s",a,l);else {const c=ch()?hi.PAGE_SIZE:X8,u=M1()?r:1.2;l=Math.ceil(a*u/c),sb("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",a,u,c,l);}s=ch()?await t.getRecommendTimes(l):await X1(l),s=T1(s),o=o.concat(s),o=Yc(o,Yl);};for(await i(e);!(o.length>=e||is()==="dynamic"&&!n.hasMore);)await i(e-o.length);return o}async function Q8(e,t){return q1(Xv(void 0,!1)*2,e,t,3)}async function J8(e,t){return q1(Xv()*3,e,t,5)}async function eB(e,t){let n=ch()?await t.getRecommendTimes(e):await X1(e);return n=T1(n),n}class Pc{constructor(){bt(this,"offset");bt(this,"page",0);bt(this,"hasMore",!0);}async next(){if(!this.hasMore)return;this.page++;const t={timezone_offset:"-480",type:"video",features:"itemOpusStyle",page:this.page};this.offset&&(t.offset=this.offset);const r=(await el.get("/x/polymer/web-dynamic/v1/feed/all",{params:t})).data;return this.hasMore=r.data.has_more,this.offset=r.data.offset,r.data.items.map(a=>({...a,api:"dynamic",uniqId:crypto.randomUUID()}))}}bt(Pc,"PAGE_SIZE",15);var Y1={exports:{}},tB="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",nB=tB,rB=nB;function Z1(){}function Q1(){}Q1.resetWarningCache=Z1;var oB=function(){function e(r,o,i,a,s,l){if(l!==rB){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Q1,resetWarningCache:Z1};return n.PropTypes=n,n};Y1.exports=oB();var iB=Y1.exports;const Wn=Xr(iB);class uh extends f.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this);}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener();}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1;}this.attachScrollListener();}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener();}isPassiveSupported(){let t=!1;const n={get passive(){t=!0;}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n);}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t;}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture);}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture);}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener();}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault();}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let o;if(this.props.useWindow){const i=document.documentElement||document.body.parentNode||document.body,a=n.pageYOffset!==void 0?n.pageYOffset:i.scrollTop;this.props.isReverse?o=a:o=this.calculateOffset(t,a);}else this.props.isReverse?o=r.scrollTop:o=t.scrollHeight-r.scrollTop-r.clientHeight;o<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=r.scrollHeight,this.beforeScrollTop=r.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0));}calculateOffset(t,n){return t?this.calculateTopPosition(t)+(t.offsetHeight-n-window.innerHeight):0}calculateTopPosition(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}render(){const t=this.filterProps(this.props),{children:n,element:r,hasMore:o,initialLoad:i,isReverse:a,loader:s,loadMore:l,pageStart:c,ref:u,threshold:d,useCapture:h,useWindow:v,getScrollParent:p,...m}=t;m.ref=b=>{this.scrollComponent=b,u&&u(b);};const g=[n];return o&&(s?a?g.unshift(s):g.push(s):this.defaultLoader&&(a?g.unshift(this.defaultLoader):g.push(this.defaultLoader))),f.createElement(r,m,g)}}bt(uh,"propTypes",{children:Wn.node.isRequired,element:Wn.node,hasMore:Wn.bool,initialLoad:Wn.bool,isReverse:Wn.bool,loader:Wn.node,loadMore:Wn.func.isRequired,pageStart:Wn.number,ref:Wn.func,getScrollParent:Wn.func,threshold:Wn.number,useCapture:Wn.bool,useWindow:Wn.bool}),bt(uh,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const Rl=wh.extend("components:RecGrid"),Zi={card:eb`
    border: 2px solid transparent;

    /* global class under .card */
    .bili-video-card__info {
      padding-left: 2px;
      padding-bottom: 1px;
      margin-top: calc(var(--info-margin-top) - 1px);
    }
  `,cardActive:eb`
    border-color: #fb7299;
    border-radius: 6px;
    overflow: hidden;
  `};var aB={name:"1uugokx",styles:"text-align:center;line-height:60px;font-size:120%"};const J1=f.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:i},a)=>{const{useDynamicApi:s,useNarrowMode:l}=sr(),c=va(s),[u,d]=f.useState([]),[h,v]=f.useState(!1),[p,m]=f.useState(!0),[g,b,y]=s1(()=>Date.now()),[w,$]=f.useState(0),[S,C]=f.useState(()=>new hi),[x,_]=f.useState(()=>new Pc),M=Nt(async()=>{const z=performance.now();if(Rl("call refresh()"),h)return;await(n==null?void 0:n()),v(!0),i(!0),b(Date.now()),D(),d([]);const L=new Pc;_(L);const V=new hi;C(V);try{d(await J8(V,L));}catch(q){throw v(!1),i(!1),q}$(1),D(),v(!1),i(!1);const G=performance.now()-z;Rl("refresh cost %s ms",G.toFixed(0)),O();});Wv(M),f.useImperativeHandle(a,()=>({refresh:M}),[]);const E=f.useRef(!1),I=Nt(async()=>{if(!p||h||E.current)return;E.current=!0;const z=g;let L=u;try{if(c.current)L=L.concat(await x.next()||[]),m(x.hasMore);else for(;!(L.length>u.length);){const V=await eB(2,S);L=Z8(L,V);}}catch(V){throw E.current=!1,V}if(z!==y()){Rl("fetchMore: skip update for mismatch refreshedAt, %s != %s",z,y()),E.current=!1;return}Rl("fetchMore: seq(%s) len %s -> %s",w+1,u.length,L.length),d(L),$(V=>V+1),O(),E.current=!1;}),O=Nt(()=>{setTimeout(()=>{const z=e?window:o==null?void 0:o.current;z==null||z.dispatchEvent(new CustomEvent("scroll"));});}),R=f.useRef(null),P=Nt(()=>{var z;if(e){const L=f0+50;return new DOMRect(0,L,window.innerWidth,window.innerHeight-L)}else return (z=o==null?void 0:o.current)==null?void 0:z.getBoundingClientRect()}),T=DH(),A=f.useMemo(()=>new Array(u.length).fill(void 0),[u.length]),{activeIndex:N,clearActiveIndex:D}=x8({enabled:t&&!T,refresh:M,maxIndex:u.length-1,containerRef:R,getScrollerRect:P,videoCardRefs:A,changeScrollY:e?function({offset:z,absolute:L}){const V=document.documentElement;if(typeof z=="number"){V.scrollTop+=z;return}if(typeof L=="number"){V.scrollTop=L;return}}:void 0}),F=sa(),{colorPrimary:W}=Sa();return B(uh,{pageStart:0,hasMore:p,loadMore:I,initialLoad:!1,useWindow:e,threshold:window.innerHeight,style:{minHeight:"100%"},loader:B("div",{css:aB,children:"加载中..."},-1),children:B("div",{ref:R,className:X(Kv,{[_1]:F},{[w8]:l},r),children:h?new Array(24).fill(void 0).map((z,L)=>B($c,{loading:!0,className:Zi.card},L)):u.map((z,L)=>{const V=L===N;return B($c,{ref:G=>A[L]=G,className:X(Zi.card,{[Zi.cardActive]:V}),css:[V&&ar("border-color:",W,";",""),"",""],item:z,active:V},z.uniqId)})})})}),lb=B(Dn,{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 ew({style:e,className:t}){const{runAsync:n,loading:r}=o1(fH,{manual:!0}),{accessKey:o}=sr();return B(Cv,{size:"small",style:e,className:t,children:o?me(Yt,{children:[B(Dn,{onClick:n,disabled:r,children:B("span",{children:"重新获取 access_key"})}),B(Dn,{onClick:hH,children:B("span",{children:"删除 access_key"})}),lb]}):me(Yt,{children:[B(Dn,{onClick:n,disabled:r,size:"middle",children:B("span",{children:"获取 access_key"})}),lb]})})}const sB="_config-icon_18r5p_1",lB="_settings-group_18r5p_6",cB="_settings-group-title_18r5p_9",uB="_settings-group-sub-title_18r5p_14",dB="_settings-group-content_18r5p_20",fB="_row_18r5p_26",hB="_check_18r5p_34",vB="_setting-tabs_18r5p_39",pB="_tab-pane_18r5p_42",rt={configIcon:sB,settingsGroup:lB,settingsGroupTitle:cB,settingsGroupSubTitle:uB,settingsGroupContent:dB,row:fB,check:hB,settingTabs:vB,tabPane:pB};async function tw(){In("即将刷新网页"),await Ou(500),location.reload();}function mB(){return R_(),tw()}function jd(e,t,n){return cn(e,r=>{if(Pu())return;gt[t]=!gt[t];const o=!gt[t];In(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function gB({show:e,onHide:t}){const{usePcDesktopApi:n,autoPreviewUpdateInterval:r,filterMinPlayCount:o,filterMinPlayCountEnabled:i,filterMinDuration:a,filterMinDurationEnabled:s}=sr();return jd(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),jd(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),jd(["shift.c"],"useNarrowMode","居中模式"),me(Vv,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[me("div",{className:Wr.modalHeader,children:[me("div",{className:Wr.modalTitle,children:[B(Lo,{name:"Config",className:rt.configIcon}),"设置项"]}),B("div",{className:"space",style:{flex:1}}),B(Uv,{onClick:t})]}),B("main",{className:Wr.modalBody,children:B(iS,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:rt.settingTabs,items:[{label:"常规设置",key:"normal",children:me("div",{className:rt.tabPane,children:[me("div",{className:rt.settingsGroup,children:[me("div",{className:rt.settingsGroupTitle,children:["API 切换",B(Cc,{tooltip:B(Yt,{children:"只对推荐 Tab 生效, 详细信息查看 GitHub 主页说明"})})]}),me("div",{className:X(rt.settingsGroupContent),children:[me(ri.Group,{buttonStyle:"solid",value:n?"desktop":"app",onChange:l=>{const c=l.target.value;gt.usePcDesktopApi=c==="desktop";},children:[B(ri.Button,{value:"desktop",children:"使用桌面端 API"}),B(ri.Button,{value:"app",children:"使用 App 端 API"})]}),!n&&B("div",{className:rt.row,style:{marginTop:5},children:B(ew,{})})]})]}),me("div",{className:rt.settingsGroup,children:[B("div",{className:rt.settingsGroupTitle,children:"开关"}),me("div",{className:X(rt.settingsGroupContent,rt.row),children:[B(ir,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:me(Yt,{children:["首页只保留推荐",B("br",{}),"P.S 需要刷新网页~"]}),className:rt.check,extraAction:tw}),B(ir,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹框",className:rt.check,extraAction:l=>{l&&In("已开启自动查看更多: 下次打开首页时将直接展示推荐弹框");}}),B(ir,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:me(Yt,{children:["居中两列",B("br",{}),"切换设置快捷键: ",B(Da,{color:"green",children:"shift+c"})]}),className:rt.check}),B(ir,{configKey:"useParallelRequest",label:"批量请求时使用并行",tooltip:me(Yt,{children:["并行快但可能有重复",B("br",{}),"推荐视频大量重复时关闭这个试试~"]}),className:rt.check})]})]}),me("div",{className:rt.settingsGroup,children:[B("div",{className:rt.settingsGroupTitle,children:"预览"}),me("div",{className:X(rt.settingsGroupContent,rt.row),children:[B(ir,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:rt.check,tooltip:me(Yt,{children:["手动预览快捷键: ",B(Da,{color:"green",children:"."})," or ",B(Da,{color:"green",children:"p"}),B("br",{}),"切换设置快捷键: ",B(Da,{color:"green",children:"shift+p"})]})}),B(ir,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:rt.check,tooltip:me(Yt,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",B("br",{}),"切换设置快捷键: ",B(Da,{color:"green",children:"shift+m"})]})}),me("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["预览更新间隔",B(Rz,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>gt.autoPreviewUpdateInterval=l,value:r}),me("span",{style:{width:"65px"},children:["(",r,"ms)"]})]})]})]}),me("div",{className:rt.settingsGroup,children:[B("div",{className:rt.settingsGroupTitle,children:"帮助"}),B("div",{className:X(rt.settingsGroupContent),children:B("div",{className:rt.row,children:me(Cv,{size:"small",children:[B(Dn,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),B(Dn,{href:"https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),B(Dn,{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:"查看可用的快捷键"})]})})})]})]})},{label:"视频过滤",key:"filter",children:B("div",{className:rt.tabPane,children:me("div",{className:rt.settingsGroup,children:[me("div",{className:rt.settingsGroupTitle,children:["视频过滤",B(Cc,{tooltip:me(Yt,{children:["启用视频过滤会大幅降低加载速度, 谨慎开启! ",B("br",{}),"只对推荐 Tab 生效"]})})]}),me("div",{className:X(rt.settingsGroupContent),children:[B("div",{className:rt.settingsGroupSubTitle,children:"过滤范围"}),B(ir,{configKey:"enableFilterForFollowed",label:"对推荐理由为「已关注」的视频启用过滤",tooltip:B(Yt,{children:"默认不过滤「已关注」"})}),B("div",{className:rt.settingsGroupSubTitle,children:"过滤器"}),me("div",{className:rt.row,children:[B(ir,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:B(Yt,{children:"不显示播放量很少的视频"})}),B(Xf,{size:"small",min:1,step:1e3,value:o,onChange:l=>l&&vo({filterMinPlayCount:l}),disabled:!i})]}),me("div",{className:rt.row,style:{marginTop:8},children:[B(ir,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:B(Yt,{children:"不显示短视频"})}),B(Xf,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:l=>l&&vo({filterMinDuration:l}),disabled:!s})]})]})]})})},{label:"外观设置",key:"UI",children:B("div",{className:rt.tabPane,children:me("div",{className:rt.settingsGroup,children:[B("div",{className:rt.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),B("div",{className:X(rt.settingsGroupContent),children:B(Bj,{})})]})})},{label:"高级设置",key:"advance",children:B("div",{className:rt.tabPane,children:me("div",{className:rt.settingsGroup,children:[B("div",{className:rt.settingsGroupTitle,children:"高级"}),me("div",{className:X(rt.settingsGroupContent),children:[B("div",{className:rt.row,children:B(az,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:mB,children:B(Dn,{danger:!0,type:"primary",children:"恢复默认设置"})})}),B("div",{className:rt.row,style:{marginTop:10},children:B(ir,{configKey:"openInIINAWhenRightClick",label:"右键在 IINA 中打开",className:rt.check})})]})]})})}]})})]})}var np={};Object.defineProperty(np,"__esModule",{value:!0});var nw=np.useSticky=void 0;const Hd=f;function bB(){const e=(0, Hd.useRef)(null),[t,n]=(0, Hd.useState)(!1);return (0, Hd.useEffect)(()=>{function r(){if(!e.current)return;const o=e.current.getBoundingClientRect().top,i=parseInt(getComputedStyle(e.current).top),a=o<=i;a&&!t?n(!0):!a&&t&&n(!1);}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]}nw=np.useSticky=bB;const yB="_expand-btn_wdzp9_1",CB="_expanded_wdzp9_12",cb={expandBtn:yB,expanded:CB},SB=f.forwardRef(function({children:t},n){const[r,o]=i1(!1);f.useImperativeHandle(n,()=>o,[o]);const i=B("button",{className:X("primary-btn",cb.expandBtn),onClick:o.toggle,children:B("svg",{className:X({[cb.expanded]:r}),children:B("use",{href:"#widget-arrow"})})});return me(Yt,{children:[i,r&&t]})}),wB="_modal-mask_7bwzz_1",xB="_narrow-mode_7bwzz_1",$B="_modal_7bwzz_1",EB="_modal-header_7bwzz_18",OB="_modal-body_7bwzz_19",PB="_btn-refresh_7bwzz_22",za={modalMask:wB,narrowMode:xB,modal:$B,modalHeader:EB,modalBody:OB,btnRefresh:PB};var _B={name:"1q4vxyr",styles:"margin-left:8px"};const RB=f.memo(function({show:t,onHide:n}){const r=f.useRef(null),o=f.useRef(null),{useNarrowMode:i}=sr(),a=f.useMemo(()=>({[za.narrowMode]:i}),[i]),s=Nt(()=>{var p;return (p=o.current)==null?void 0:p.refresh()}),l=Nt(()=>{r.current&&(r.current.scrollTop=0);}),c=Zc(),{colorPrimary:u}=Sa(),d=f.useMemo(()=>c?{border:`1px solid ${u}`}:void 0,[c,u]),[h,v]=f.useState(!1);return me(Vv,{show:t,onHide:n,clsModalMask:X(a),clsModal:X(za.modal,a),styleModal:{...d},children:[me("div",{className:X(Wr.modalHeader,za.modalHeader),children:[B(ow,{refreshing:h,onRefresh:s}),B("div",{className:"space",style:{flex:1}}),B(SB,{children:B(Aj,{})}),B(iw,{css:_B,refreshing:h,onClick:s,className:za.btnRefresh,refreshHotkeyEnabled:t}),B(Uv,{onClick:n})]}),B("div",{className:X(Wr.modalBody,za.modalBody),ref:r,children:B(J1,{ref:o,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:v})})]})}),rp=ar`
  display: flex;
  align-items: center;
  justify-content: center;
`,ub={btn:ar`
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    ${rp}
  `,icon:ar`
    svg {
      width: 14px;
      height: 14px;
    }
  `},ko=Ns({modalFeedVisible:gt.initialShowMore,modalConfigVisible:!1}),MB=function(){return ba(ko)},TB=()=>{ko.modalFeedVisible=!0;},IB=()=>{ko.modalFeedVisible=!1;},NB=()=>{ko.modalConfigVisible=!0;},AB=()=>{ko.modalConfigVisible=!1;};function rw({onRefresh:e,refreshing:t}){const{accessKey:n,pureRecommend:r,usePcDesktopApi:o}=sr(),{modalFeedVisible:i,modalConfigVisible:a}=ba(ko);cn(["shift.comma"],c=>{Pu()||(ko.modalConfigVisible=!ko.modalConfigVisible);},{exactMatch:!0});const[s,l]=nw();return me(Yt,{children:[me("div",{ref:s,className:"area-header",css:[ar`
            margin-bottom: 0;
            height: 50px;
          `,r&&ar`
              position: sticky;
              top: ${f0}px;
              z-index: 1000;
            `,r&&l&&ar`
              background-color: var(--bg1_float);
              box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
            `,"",""],children:[me("div",{className:"left",children:[B("svg",{className:"icon",children:B("use",{href:"#channel-cinephile"})}),B(ow,{refreshing:t,onRefresh:e})]}),B("div",{className:"right",children:me(Cv,{size:"small",children:[!o&&!n&&B(ew,{style:{marginLeft:5}}),B(Dn,{onClick:NB,css:ub.btn,children:B(Lo,{name:"Config",css:ub.icon})}),B(iw,{refreshing:t,onClick:e,refreshHotkeyEnabled:!(a||i)}),!r&&me(Dn,{css:rp,onClick:TB,children:[B("span",{children:"查看更多"}),B("svg",{css:ar`
                    width: 12px;
                    height: 12px;
                    margin-left: 2px;
                  `,children:B("use",{href:"#widget-arrow"})})]})]})})]}),B(RB,{show:i,onHide:IB}),B(gB,{show:a,onHide:AB})]})}function db(){return In("你需要登录(不可用)B站后使用该功能!")}function ow({onRefresh:e,refreshing:t}){const n=p1(),r=R1();return me(Yt,{children:[me(ri.Group,{disabled:t,optionType:"button",buttonStyle:"solid",size:"middle",value:r,style:{overflow:"hidden"},onChange:o=>{switch(o.target.value){case"onlyFollow":if(!n)return db();vo({onlyFollowMode:!0,useDynamicApi:!1});break;case"dynamic":if(!n)return db();vo({onlyFollowMode:!1,useDynamicApi:!0});break;case"normal":default:vo({onlyFollowMode:!1,useDynamicApi:!1});break}e();},children:[B(ri.Button,{value:"normal",children:"推荐"}),B(ri.Button,{value:"onlyFollow",children:"已关注"}),B(ri.Button,{value:"dynamic",children:"动态"})]}),B(Cc,{iconProps:{size:18,style:{marginLeft:10}},tooltip:me(Yt,{children:["已关注: 推荐中只保留「已关注」,会很慢",B("br",{}),"动态: 视频投稿动态"]})})]})}const iw=f.forwardRef(function({onClick:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},i){r??(r=!0);const[a,s]=f.useState(0),l=Nt(h=>(s(v=>v+360),e==null?void 0:e(h))),c=f.useRef(null);f.useImperativeHandle(i,()=>({click(){var h;(h=c.current)==null||h.click();}}),[]),cn("r",()=>{Pu()||r&&c.current&&(c.current.disabled||c.current.click());},{exactMatch:!0});const d=R1()==="dynamic"?"刷新":"换一换";return me(Dn,{disabled:o,className:t,style:n,css:ar`
        ${rp}
        &.ant-btn:not(:disabled):focus-visible {
          outline: none;
        }
      `,ref:c,onClick:l,children:[B("svg",{style:{transform:`rotate(${a}deg)`,width:"11px",height:"11px",marginRight:5,transition:a===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{s(0);},children:B("use",{href:"#widget-roll"})}),B("span",{children:d})]})}),DB={grid:ar`
    /* card=299 col-gap=20  */
    width: ${299*2+20}px;
    margin: 0 auto;
  `};function kB(){const{useNarrowMode:e}=sr(),{modalFeedVisible:t,modalConfigVisible:n}=MB(),r=f.useRef(null),o=Nt(()=>{var l;return (l=r.current)==null?void 0:l.refresh()}),i=Nt(()=>{document.documentElement.scrollTop=0;}),[a,s]=f.useState(!1);return me("section",{"data-area":"推荐",children:[B(rw,{refreshing:a,onRefresh:o}),B(J1,{ref:r,css:[e&&DB.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:i,setRefreshing:s})]})}function LB(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=sa(),n=f.useMemo(()=>new Pc,[]),r=f.useMemo(()=>new hi,[]),{data:o,loading:i,error:a,refresh:s}=o1(()=>Q8(r,n));return a&&console.error(a.stack||a),me("section",{"data-area":"推荐",children:[B(rw,{refreshing:i,onRefresh:s}),B("div",{className:X(Kv,S8,{[_1]:t}),style:{marginBottom:t?30:0},children:i||a?e.map(l=>B($c,{},l)):o.map(l=>B($c,{item:l},l.uniqId))})]})}As.extend(I_);(function(){var t;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?"))return window.stop(),(t=window.top)==null?void 0:t.postMessage(location.href,"https://www.bilibili.com");if(location.pathname==="/"||location.pathname==="/index.html")return FB()})();async function FB(){return ns(".adblock-tips"),QS("html.gray",e=>e.classList.remove("gray")),gt.pureRecommend?jB():zB()}async function zB(){const t=Date.now()+1e4;let n;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const i=document.querySelector(".bili-layout > section.bili-grid");n=a=>i==null?void 0:i.insertAdjacentElement("afterend",a);break}if(sa()&&document.querySelector(".bili-feed4-layout")){n=i=>{var a;return (a=document.querySelector(".bili-feed4-layout"))==null?void 0:a.insertAdjacentElement("afterbegin",i)};break}await Ou(200);}if(!n){console.error(`[${Fo}]: init fail`);return}const r=document.createElement("section");n(r),_u(r).render(B(YS,{children:B(LB,{})})),sa()&&ns(".bili-feed4 .header-channel");}async function jB(){var o,i;sa()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),ns(".bili-feed4 .header-channel")):((i=document.querySelector(".bili-layout"))==null||i.remove(),ns(".bili-footer"),ns(".palette-button-wrap > .primary-btn",a=>a.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(a=>{a.classList.remove("hidden"),a.classList.contains("top-btn")&&a.classList.remove("top-btn");});}));const e=document.createElement("div");e.classList.add(sa()?"bili-feed4-layout":"bili-layout","pure-recommend");const t=document.querySelector(".bili-header");t==null||t.insertAdjacentElement("afterend",e);const n=document.createElement("section");e==null||e.appendChild(n),_u(n).render(B(YS,{children:B(kB,{})}));}});HB();

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

QingJ © 2025

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