Greasy Fork

Greasy Fork is available in English.

bilibili-app-recommend

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

当前为 2023-08-20 提交的版本,查看 最新版本

// ==UserScript==
// @name         bilibili-app-recommend
// @namespace    https://magicdawn.fun
// @version      0.17.5
// @author       magicdawn
// @description  为 B 站首页添加像 App 一样的推荐
// @license      MIT
// @icon         https://www.bilibili.com/favicon.ico
// @homepageURL  http://greasyfork.icu/zh-CN/scripts/443530-bilibili-app-recommend
// @supportURL   https://github.com/magicdawn/bilibili-app-recommend/issues
// @match        https://www.bilibili.com/
// @match        https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png
// @match        https://www.bilibili.com/index.html
// @match        https://www.bilibili.com/?*
// @match        https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?*
// @match        https://www.bilibili.com/index.html?*
// @require      https://lf9-cdn-tos.bytecdntp.com/cdn/expire-10-y/react/18.2.0/umd/react.production.min.js
// @require      https://lf9-cdn-tos.bytecdntp.com/cdn/expire-10-y/react-dom/18.2.0/umd/react-dom.production.min.js
// @connect      app.bilibili.com
// @connect      passport.bilibili.com
// @connect      link.acg.tv
// @connect      www.mcbbs.net
// @grant        GM.deleteValue
// @grant        GM.getValue
// @grant        GM.setClipboard
// @grant        GM.setValue
// @grant        GM.xmlHttpRequest
// @grant        unsafeWindow
// ==/UserScript==

(e=>{const t=document.createElement("style");t.dataset.source="vite-plugin-monkey",t.textContent=e,document.head.append(t)})(" ._toast-container_185m9_1{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:90000;padding:12px 24px;font-size:14px;min-width:200px;width:max-content;max-width:450px;background-color:#ffb243;color:#fff;border-radius:6px;white-space:pre-wrap}._toast-container_185m9_1._single-line_185m9_17{text-align:center}.i-icon{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.i-icon-spin svg{animation:i-icon-spin 1s infinite linear}.i-icon-rtl{transform:scaleX(-1)}@keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px;line-height:24px}.ant-btn:disabled{cursor:wait}.ant-radio-button-wrapper-disabled{cursor:wait}body .ant-tooltip a{color:#1677ff;transition:color .3s}body .ant-tooltip a:visited{color:#1677ff}body .ant-tooltip a:hover{color:#69b1ff}body .ant-tooltip a:active{color:#0958d9}body button:where(.ant-switch):focus,body button:where(.ant-switch):active{background-color:#00000040;outline:unset}._modal-mask_1j5wc_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:10002;display:flex;align-items:center;justify-content:center}._modal_1j5wc_1{width:500px;max-height:calc(90vh - 50px);background-color:#fff;border-radius:10px;padding:0 15px 15px;display:flex;flex-direction:column;overflow:hidden}._modal-header_1j5wc_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1j5wc_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1j5wc_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1j5wc_42{margin-left:10px}._btn-close_1j5wc_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1j5wc_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._modal_1rloz_1{width:500px}._title-desc_1rloz_4{margin-left:5px;font-size:40%}._reason-list_1rloz_8{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_1rloz_8{color:inherit;width:48%;text-align:center;line-height:20px;position:relative;border:1px solid #eee;padding-top:5px;padding-bottom:5px;margin-top:5px;margin-bottom:5px}body.dark ._reason_1rloz_8{border:1px solid #333}._reason_1rloz_8._active_1rloz_29{border-color:#f69;border-radius:4px}._reason-no_1rloz_33{position:absolute;left:6px;width:20px;height:20px;border-radius:50%;top:6px;display:flex;align-items:center;justify-content:center;background-color:#6a5acd;background-color:#f69;color:#fff}._tips-container_1rloz_47{margin-top:20px}._tips_1rloz_47{display:flex;align-items:center}._config-icon_1xtyf_1{line-height:1;margin-right:5px;font-size:0}._settings-group_1xtyf_6{margin-bottom:10px}._settings-group_1xtyf_6 ._settings-group-title_1xtyf_9{font-size:2em;display:flex;align-items:center}._settings-group_1xtyf_6 ._settings-group-sub-title_1xtyf_14{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20{color:default}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20 button:first-child{margin-left:0}._row_1xtyf_26{display:flex;align-items:center;flex-wrap:wrap}._row_1xtyf_26 .primary-btn:first-child{margin-left:0}._check_1xtyf_34{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_1xtyf_39.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_1xtyf_42{min-height:min(360px,calc(90vh - 121px));max-height:calc(90vh - 121px);overflow-y:scroll}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._modal-mask_7bwzz_1._narrow-mode_7bwzz_1{background-color:#000000e6}._modal_7bwzz_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}._modal_7bwzz_1._narrow-mode_7bwzz_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_7bwzz_1._narrow-mode_7bwzz_1{border:none}._modal-header_7bwzz_18,._modal-body_7bwzz_19{padding-right:15px}body.dark ._btn-refresh_7bwzz_22{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._bili-video-card_mnvtu_1{position:relative}._preview-card-wrapper_mnvtu_4{position:absolute;top:0;left:0;right:0;bottom:0;z-index:4;overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}._preview-card-wrapper_mnvtu_4 ._preview-card-inner_mnvtu_17{width:100%;height:100%}._watch-later_mnvtu_21{z-index:5}._badge_mnvtu_24{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_mnvtu_33{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;color:var(--Or5);background-color:var(--Or1);border-radius:4px;margin-right:4px;font-size:var(--follow-icon-font-size);line-height:var(--follow-icon-line-height);height:var(--follow-icon-line-height);padding:0 4px;cursor:default}._bangumi-desc_mnvtu_48{color:default}._btn-dislike_mnvtu_51{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;left:8px;width:28px;height:28px;border-radius:6px;cursor:pointer;background-color:#212121cc;z-index:9;transform:translateZ(0)}._btn-dislike_mnvtu_51 ._btn-dislike-icon_mnvtu_66{pointer-events:none;-webkit-user-select:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mnvtu_51 ._btn-dislike-tip_mnvtu_73{pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;bottom:-6px;left:-5px;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._disliked-wrapper_mnvtu_88{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:var(--video-card-border-radius);border:1px solid #eee}body.dark ._disliked-wrapper_mnvtu_88{border:1px solid #333}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-icon_mnvtu_119{margin-bottom:5px}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-reason_mnvtu_122{font-size:20px;text-align:center}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-desc_mnvtu_126{font-size:16px;text-align:center}._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130{border-top:1px solid #333}._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mnvtu_147 .bili-video-card__skeleton--cover,._skeleton-active_mnvtu_147 .bili-video-card__skeleton--text,._skeleton-active_mnvtu_147 .bili-video-card__skeleton--light{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation-name:_ant-skeleton-loading_mnvtu_1;animation-duration:2.165s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mnvtu_1{0%{background-position:100% 50%}61.8%,to{background-position:0 50%}}._video-grid_t2sr7_9{--video-card-border-radius: 6px;display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(4,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(5,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(6,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+13){display:none!important}}@media (min-width: 2200px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(7,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+15){display:none!important}}._video-grid-internal-testing_t2sr7_52{grid-gap:20px 20px}@media (max-width: 1399px){._video-grid-internal-testing_t2sr7_52{grid-template-columns:repeat(4,1fr)}._video-grid-internal-testing_t2sr7_52._limit-one-line_t2sr7_59>*:nth-of-type(n+5){display:none!important}._video-grid-internal-testing_t2sr7_52._limit-two-lines_t2sr7_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1400px){._video-grid-internal-testing_t2sr7_52{grid-template-columns:repeat(5,1fr)}._video-grid-internal-testing_t2sr7_52._limit-one-line_t2sr7_59>*:nth-of-type(n+6){display:none!important}._video-grid-internal-testing_t2sr7_52._limit-two-lines_t2sr7_20>*:nth-of-type(n+11){display:none!important}}._video-grid-container_t2sr7_80{container-name:video-grid-container;container-type:inline-size}._video-grid-youtube-like_t2sr7_84{--video-card-border-radius: 12px;grid-gap:40px 16px;grid-template-columns:repeat(5,1fr)}@container video-grid-container (width >= 616px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(2,1fr)}}@container video-grid-container (width >= 932px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(3,1fr)}}@container video-grid-container (width >= 1248px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(4,1fr)}}@container video-grid-container (width >= 1564px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(5,1fr)}}._narrow-mode_t2sr7_112{grid-template-columns:repeat(2,1fr)!important} ");

(async function (m, s0) {
  'use strict';

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

  const m__namespace = /*#__PURE__*/_interopNamespaceDefault(m);
  const s0__namespace = /*#__PURE__*/_interopNamespaceDefault(s0);

  var Kx=Object.defineProperty;var Gx=(e,t,n)=>t in e?Kx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var wt=(e,t,n)=>(Gx(e,typeof t!="symbol"?t+"":t,n),n);var Eo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function e$(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype;}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}});}),n}var u0={exports:{}},ic={};/**
   * @license React
   * react-jsx-runtime.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var t$=m,n$=Symbol.for("react.element"),r$=Symbol.for("react.fragment"),o$=Object.prototype.hasOwnProperty,i$=t$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a$={key:!0,ref:!0,__self:!0,__source:!0};function d0(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)o$.call(t,r)&&!a$.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:n$,type:e,key:i,ref:a,props:o,_owner:i$.current}}ic.Fragment=r$;ic.jsx=d0;ic.jsxs=d0;u0.exports=ic;var ka=u0.exports;function s$(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 l$(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 c$=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(l$(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=s$(o);try{i.insertRule(r,i.cssRules.length);}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++;},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0;},e}(),vn="-ms-",yl="-moz-",xt="-webkit-",f0="comm",sm="rule",lm="decl",u$="@import",m0="@keyframes",d$="@layer",f$=Math.abs,ac=String.fromCharCode,m$=Object.assign;function h$(e,t){return fn(e,0)^45?(((t<<2^fn(e,0))<<2^fn(e,1))<<2^fn(e,2))<<2^fn(e,3):0}function h0(e){return e.trim()}function v$(e,t){return (e=t.exec(e))?e[0]:e}function $t(e,t,n){return e.replace(t,n)}function jd(e,t){return e.indexOf(t)}function fn(e,t){return e.charCodeAt(t)|0}function Aa(e,t,n){return e.slice(t,n)}function pr(e){return e.length}function cm(e){return e.length}function Ms(e,t){return t.push(e),e}function g$(e,t){return e.map(t).join("")}var sc=1,Pi=1,v0=0,Mn=0,nn=0,Ui="";function lc(e,t,n,r,o,i,a){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:sc,column:Pi,length:a,return:""}}function ia(e,t){return m$(lc("",null,null,"",null,null,0),e,{length:-e.length},t)}function p$(){return nn}function b$(){return nn=Mn>0?fn(Ui,--Mn):0,Pi--,nn===10&&(Pi=1,sc--),nn}function Bn(){return nn=Mn<v0?fn(Ui,Mn++):0,Pi++,nn===10&&(Pi=1,sc++),nn}function Cr(){return fn(Ui,Mn)}function el(){return Mn}function ns(e,t){return Aa(Ui,e,t)}function La(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function g0(e){return sc=Pi=1,v0=pr(Ui=e),Mn=0,[]}function p0(e){return Ui="",e}function tl(e){return h0(ns(Mn-1,Bd(e===91?e+2:e===40?e+1:e)))}function y$(e){for(;(nn=Cr())&&nn<33;)Bn();return La(e)>2||La(nn)>3?"":" "}function C$(e,t){for(;--t&&Bn()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return ns(e,el()+(t<6&&Cr()==32&&Bn()==32))}function Bd(e){for(;Bn();)switch(nn){case e:return Mn;case 34:case 39:e!==34&&e!==39&&Bd(nn);break;case 40:e===41&&Bd(e);break;case 92:Bn();break}return Mn}function S$(e,t){for(;Bn()&&e+nn!==47+10;)if(e+nn===42+42&&Cr()===47)break;return "/*"+ns(t,Mn-1)+"*"+ac(e===47?e:Bn())}function w$(e){for(;!La(Cr());)Bn();return ns(e,Mn)}function b0(e){return p0(nl("",null,null,null,[""],e=g0(e),0,[0],e))}function nl(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,v=0,g=1,p=1,b=1,y=0,S="",E=o,C=i,$=r,x=S;p;)switch(v=y,y=Bn()){case 40:if(v!=108&&fn(x,d-1)==58){jd(x+=$t(tl(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:x+=tl(y);break;case 9:case 10:case 13:case 32:x+=y$(v);break;case 92:x+=C$(el()-1,7);continue;case 47:switch(Cr()){case 42:case 47:Ms(x$(S$(Bn(),el()),t,n),l);break;default:x+="/";}break;case 123*g:s[c++]=pr(x)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(x=$t(x,/\f/g,"")),h>0&&pr(x)-d&&Ms(h>32?$v(x+";",r,n,d-1):$v($t(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(Ms($=xv(x,t,n,c,u,o,s,S,E=[],C=[],d),i),y===123)if(u===0)nl(x,t,$,$,E,i,d,s,C);else switch(f===99&&fn(x,3)===110?100:f){case 100:case 108:case 109:case 115:nl(e,$,$,r&&Ms(xv(e,$,$,0,0,o,s,S,o,E=[],d),C),o,C,d,s,r?E:C);break;default:nl(x,$,$,$,[""],C,0,s,C);}}c=u=h=0,g=b=1,S=x="",d=a;break;case 58:d=1+pr(x),h=v;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&b$()==125)continue}switch(x+=ac(y),y*g){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(pr(x)-1)*b,b=1;break;case 64:Cr()===45&&(x+=tl(Bn())),f=Cr(),u=d=pr(S=x+=w$(el())),y++;break;case 45:v===45&&pr(x)==2&&(g=0);}}return i}function xv(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],h=cm(f),v=0,g=0,p=0;v<r;++v)for(var b=0,y=Aa(e,d+1,d=f$(g=a[v])),S=e;b<h;++b)(S=h0(g>0?f[b]+" "+y:$t(y,/&\f/g,f[b])))&&(l[p++]=S);return lc(e,t,n,o===0?sm:s,l,c,u)}function x$(e,t,n){return lc(e,t,n,f0,ac(p$()),Aa(e,2,-2),0)}function $v(e,t,n,r){return lc(e,t,n,lm,Aa(e,0,r),Aa(e,r+1,-1),r)}function Po(e,t){for(var n="",r=cm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function y0(e,t,n,r){switch(e.type){case d$:if(e.children.length)break;case u$:case lm:return e.return=e.return||e.value;case f0:return "";case m0:return e.return=e.value+"{"+Po(e.children,r)+"}";case sm:e.value=e.props.join(",");}return pr(n=Po(e.children,r))?e.return=e.value+"{"+n+"}":""}function $$(e){var t=cm(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function E$(e){return function(t){t.root||(t=t.return)&&e(t);}}function O$(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var I$=function(t,n,r){for(var o=0,i=0;o=i,i=Cr(),o===38&&i===12&&(n[r]=1),!La(i);)Bn();return ns(t,Mn)},P$=function(t,n){var r=-1,o=44;do switch(La(o)){case 0:o===38&&Cr()===12&&(n[r]=1),t[r]+=I$(Mn-1,n,r);break;case 2:t[r]+=tl(o);break;case 4:if(o===44){t[++r]=Cr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ac(o);}while(o=Bn());return t},R$=function(t,n){return p0(P$(g0(t),n))},Ev=new WeakMap,_$=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ev.get(r))&&!o){Ev.set(t,!0);for(var i=[],a=R$(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];}}},T$=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function C0(e,t){switch(h$(e,t)){case 5103:return xt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xt+e+yl+e+vn+e+e;case 6828:case 4268:return xt+e+vn+e+e;case 6165:return xt+e+vn+"flex-"+e+e;case 5187:return xt+e+$t(e,/(\w+).+(:[^]+)/,xt+"box-$1$2"+vn+"flex-$1$2")+e;case 5443:return xt+e+vn+"flex-item-"+$t(e,/flex-|-self/,"")+e;case 4675:return xt+e+vn+"flex-line-pack"+$t(e,/align-content|flex-|-self/,"")+e;case 5548:return xt+e+vn+$t(e,"shrink","negative")+e;case 5292:return xt+e+vn+$t(e,"basis","preferred-size")+e;case 6060:return xt+"box-"+$t(e,"-grow","")+xt+e+vn+$t(e,"grow","positive")+e;case 4554:return xt+$t(e,/([^-])(transform)/g,"$1"+xt+"$2")+e;case 6187:return $t($t($t(e,/(zoom-|grab)/,xt+"$1"),/(image-set)/,xt+"$1"),e,"")+e;case 5495:case 3959:return $t(e,/(image-set\([^]*)/,xt+"$1$`$1");case 4968:return $t($t(e,/(.+:)(flex-)?(.*)/,xt+"box-pack:$3"+vn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xt+e+e;case 4095:case 3583:case 4068:case 2532:return $t(e,/(.+)-inline(.+)/,xt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(pr(e)-1-t>6)switch(fn(e,t+1)){case 109:if(fn(e,t+4)!==45)break;case 102:return $t(e,/(.+:)(.+)-([^]+)/,"$1"+xt+"$2-$3$1"+yl+(fn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~jd(e,"stretch")?C0($t(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(fn(e,t+1)!==115)break;case 6444:switch(fn(e,pr(e)-3-(~jd(e,"!important")&&10))){case 107:return $t(e,":",":"+xt)+e;case 101:return $t(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xt+(fn(e,14)===45?"inline-":"")+"box$3$1"+xt+"$2$3$1"+vn+"$2box$3")+e}break;case 5936:switch(fn(e,t+11)){case 114:return xt+e+vn+$t(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xt+e+vn+$t(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xt+e+vn+$t(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xt+e+vn+e+e}return e}var M$=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case lm:t.return=C0(t.value,t.length);break;case m0:return Po([ia(t,{value:$t(t.value,"@","@"+xt)})],o);case sm:if(t.length)return g$(t.props,function(i){switch(v$(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Po([ia(t,{props:[$t(i,/:(read-\w+)/,":"+yl+"$1")]})],o);case"::placeholder":return Po([ia(t,{props:[$t(i,/:(plac\w+)/,":"+xt+"input-$1")]}),ia(t,{props:[$t(i,/:(plac\w+)/,":"+yl+"$1")]}),ia(t,{props:[$t(i,/:(plac\w+)/,vn+"input-$1")]})],o)}return ""})}},N$=[M$],S0=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var p=g.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""));});}var o=t.stylisPlugins||N$,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var p=g.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)i[p[b]]=!0;s.push(g);});var l,c=[_$,T$];{var u,d=[y0,E$(function(g){u.insert(g);})],f=$$(c.concat(o,d)),h=function(p){return Po(b0(p),f)};l=function(p,b,y,S){u=y,h(p?p+"{"+b.styles+"}":b.styles),S&&(v.inserted[b.name]=!0);};}var v={key:n,sheet:new c$({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(s),v},w0={exports:{}},Pt={};/** @license React v16.13.1
   * react-is.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var ln=typeof Symbol=="function"&&Symbol.for,um=ln?Symbol.for("react.element"):60103,dm=ln?Symbol.for("react.portal"):60106,cc=ln?Symbol.for("react.fragment"):60107,uc=ln?Symbol.for("react.strict_mode"):60108,dc=ln?Symbol.for("react.profiler"):60114,fc=ln?Symbol.for("react.provider"):60109,mc=ln?Symbol.for("react.context"):60110,fm=ln?Symbol.for("react.async_mode"):60111,hc=ln?Symbol.for("react.concurrent_mode"):60111,vc=ln?Symbol.for("react.forward_ref"):60112,gc=ln?Symbol.for("react.suspense"):60113,k$=ln?Symbol.for("react.suspense_list"):60120,pc=ln?Symbol.for("react.memo"):60115,bc=ln?Symbol.for("react.lazy"):60116,A$=ln?Symbol.for("react.block"):60121,L$=ln?Symbol.for("react.fundamental"):60117,D$=ln?Symbol.for("react.responder"):60118,z$=ln?Symbol.for("react.scope"):60119;function Fn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case um:switch(e=e.type,e){case fm:case hc:case cc:case dc:case uc:case gc:return e;default:switch(e=e&&e.$$typeof,e){case mc:case vc:case bc:case pc:case fc:return e;default:return t}}case dm:return t}}}function x0(e){return Fn(e)===hc}Pt.AsyncMode=fm;Pt.ConcurrentMode=hc;Pt.ContextConsumer=mc;Pt.ContextProvider=fc;Pt.Element=um;Pt.ForwardRef=vc;Pt.Fragment=cc;Pt.Lazy=bc;Pt.Memo=pc;Pt.Portal=dm;Pt.Profiler=dc;Pt.StrictMode=uc;Pt.Suspense=gc;Pt.isAsyncMode=function(e){return x0(e)||Fn(e)===fm};Pt.isConcurrentMode=x0;Pt.isContextConsumer=function(e){return Fn(e)===mc};Pt.isContextProvider=function(e){return Fn(e)===fc};Pt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===um};Pt.isForwardRef=function(e){return Fn(e)===vc};Pt.isFragment=function(e){return Fn(e)===cc};Pt.isLazy=function(e){return Fn(e)===bc};Pt.isMemo=function(e){return Fn(e)===pc};Pt.isPortal=function(e){return Fn(e)===dm};Pt.isProfiler=function(e){return Fn(e)===dc};Pt.isStrictMode=function(e){return Fn(e)===uc};Pt.isSuspense=function(e){return Fn(e)===gc};Pt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===cc||e===hc||e===dc||e===uc||e===gc||e===k$||typeof e=="object"&&e!==null&&(e.$$typeof===bc||e.$$typeof===pc||e.$$typeof===fc||e.$$typeof===mc||e.$$typeof===vc||e.$$typeof===L$||e.$$typeof===D$||e.$$typeof===z$||e.$$typeof===A$)};Pt.typeOf=Fn;w0.exports=Pt;var mm=w0.exports,$0=mm,j$={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},B$={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},E0={};E0[$0.ForwardRef]=j$;E0[$0.Memo]=B$;var H$=!0;function hm(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var O0=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||H$===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},vm=function(t,n,r){O0(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function F$(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 W$={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},V$=/[A-Z]|^ms/g,U$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,I0=function(t){return t.charCodeAt(1)===45},Ov=function(t){return t!=null&&typeof t!="boolean"},Eu=O$(function(e){return I0(e)?e:e.replace(V$,"-$&").toLowerCase()}),Iv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(U$,function(r,o,i){return br={name:o,styles:i,next:br},o})}return W$[t]!==1&&!I0(t)&&typeof n=="number"&&n!==0?n+"px":n};function Da(e,t,n){if(n==null)return "";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return "";case"object":{if(n.anim===1)return br={name:n.name,styles:n.styles,next:br},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)br={name:r.name,styles:r.styles,next:br},r=r.next;var o=n.styles+";";return o}return K$(e,t,n)}case"function":{if(e!==void 0){var i=br,a=n(e);return br=i,Da(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function K$(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Da(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":Ov(a)&&(r+=Eu(i)+":"+Iv(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Ov(a[s])&&(r+=Eu(i)+":"+Iv(i,a[s])+";");else {var l=Da(e,t,a);switch(i){case"animation":case"animationName":{r+=Eu(i)+":"+l+";";break}default:r+=i+"{"+l+"}";}}}return r}var Pv=/label:\s*([^\s;\n{]+)\s*(;|$)/g,br,wi=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";br=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=Da(r,n,a)):i+=a[0];for(var s=1;s<t.length;s++)i+=Da(r,n,t[s]),o&&(i+=a[s]);Pv.lastIndex=0;for(var l="",c;(c=Pv.exec(i))!==null;)l+="-"+c[1];var u=F$(i)+l;return {name:u,styles:i,next:br}},G$=function(t){return t()},P0=m__namespace["useInsertionEffect"]?m__namespace["useInsertionEffect"]:!1,X$=P0||G$,Rv=P0||m__namespace.useLayoutEffect,yc={}.hasOwnProperty,R0=m__namespace.createContext(typeof HTMLElement<"u"?S0({key:"css"}):null);R0.Provider;var _0=function(t){return m.forwardRef(function(n,r){var o=m.useContext(R0);return t(n,o,r)})},T0=m__namespace.createContext({}),Hd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",M0=function(t,n){var r={};for(var o in n)yc.call(n,o)&&(r[o]=n[o]);return r[Hd]=t,r},q$=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return O0(n,r,o),X$(function(){return vm(n,r,o)}),null},Y$=_0(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Hd],i=[r],a="";typeof e.className=="string"?a=hm(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=wi(i,void 0,m__namespace.useContext(T0));a+=t.key+"-"+s.name;var l={};for(var c in e)yc.call(e,c)&&c!=="css"&&c!==Hd&&(l[c]=e[c]);return l.ref=n,l.className=a,m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(q$,{cache:t,serialized:s,isStringTag:typeof o=="string"}),m__namespace.createElement(o,l))}),N0=Y$,Ct=ka.Fragment;function D(e,t,n){return yc.call(t,"css")?ka.jsx(N0,M0(e,t),n):ka.jsx(e,t,n)}function Ce(e,t,n){return yc.call(t,"css")?ka.jsxs(N0,M0(e,t),n):ka.jsxs(e,t,n)}function gm(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Z$(){this.__data__=[],this.size=0;}function pm(e,t){return e===t||e!==e&&t!==t}function Cc(e,t){for(var n=e.length;n--;)if(pm(e[n][0],t))return n;return -1}var Q$=Array.prototype,J$=Q$.splice;function eE(e){var t=this.__data__,n=Cc(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():J$.call(t,n,1),--this.size,!0}function tE(e){var t=this.__data__,n=Cc(t,e);return n<0?void 0:t[n][1]}function nE(e){return Cc(this.__data__,e)>-1}function rE(e,t){var n=this.__data__,r=Cc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Vr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1]);}}Vr.prototype.clear=Z$;Vr.prototype.delete=eE;Vr.prototype.get=tE;Vr.prototype.has=nE;Vr.prototype.set=rE;function oE(){this.__data__=new Vr,this.size=0;}function iE(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function aE(e){return this.__data__.get(e)}function sE(e){return this.__data__.has(e)}var lE=typeof global=="object"&&global&&global.Object===Object&&global;const k0=lE;var cE=typeof self=="object"&&self&&self.Object===Object&&self,uE=k0||cE||Function("return this")();const fr=uE;var dE=fr.Symbol;const Zn=dE;var A0=Object.prototype,fE=A0.hasOwnProperty,mE=A0.toString,aa=Zn?Zn.toStringTag:void 0;function hE(e){var t=fE.call(e,aa),n=e[aa];try{e[aa]=void 0;var r=!0;}catch{}var o=mE.call(e);return r&&(t?e[aa]=n:delete e[aa]),o}var vE=Object.prototype,gE=vE.toString;function pE(e){return gE.call(e)}var bE="[object Null]",yE="[object Undefined]",_v=Zn?Zn.toStringTag:void 0;function Bo(e){return e==null?e===void 0?yE:bE:_v&&_v in Object(e)?hE(e):pE(e)}function Qn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var CE="[object AsyncFunction]",SE="[object Function]",wE="[object GeneratorFunction]",xE="[object Proxy]";function L0(e){if(!Qn(e))return !1;var t=Bo(e);return t==SE||t==wE||t==CE||t==xE}var $E=fr["__core-js_shared__"];const Ou=$E;var Tv=function(){var e=/[^.]+$/.exec(Ou&&Ou.keys&&Ou.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function EE(e){return !!Tv&&Tv in e}var OE=Function.prototype,IE=OE.toString;function Ho(e){if(e!=null){try{return IE.call(e)}catch{}try{return e+""}catch{}}return ""}var PE=/[\\^$.*+?()[\]{}|]/g,RE=/^\[object .+?Constructor\]$/,_E=Function.prototype,TE=Object.prototype,ME=_E.toString,NE=TE.hasOwnProperty,kE=RegExp("^"+ME.call(NE).replace(PE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function AE(e){if(!Qn(e)||EE(e))return !1;var t=L0(e)?kE:RE;return t.test(Ho(e))}function LE(e,t){return e==null?void 0:e[t]}function Fo(e,t){var n=LE(e,t);return AE(n)?n:void 0}var DE=Fo(fr,"Map");const za=DE;var zE=Fo(Object,"create");const ja=zE;function jE(){this.__data__=ja?ja(null):{},this.size=0;}function BE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HE="__lodash_hash_undefined__",FE=Object.prototype,WE=FE.hasOwnProperty;function VE(e){var t=this.__data__;if(ja){var n=t[e];return n===HE?void 0:n}return WE.call(t,e)?t[e]:void 0}var UE=Object.prototype,KE=UE.hasOwnProperty;function GE(e){var t=this.__data__;return ja?t[e]!==void 0:KE.call(t,e)}var XE="__lodash_hash_undefined__";function qE(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ja&&t===void 0?XE:t,this}function ko(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1]);}}ko.prototype.clear=jE;ko.prototype.delete=BE;ko.prototype.get=VE;ko.prototype.has=GE;ko.prototype.set=qE;function YE(){this.size=0,this.__data__={hash:new ko,map:new(za||Vr),string:new ko};}function ZE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Sc(e,t){var n=e.__data__;return ZE(t)?n[typeof t=="string"?"string":"hash"]:n.map}function QE(e){var t=Sc(this,e).delete(e);return this.size-=t?1:0,t}function JE(e){return Sc(this,e).get(e)}function e2(e){return Sc(this,e).has(e)}function t2(e,t){var n=Sc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ur(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1]);}}Ur.prototype.clear=YE;Ur.prototype.delete=QE;Ur.prototype.get=JE;Ur.prototype.has=e2;Ur.prototype.set=t2;var n2=200;function r2(e,t){var n=this.__data__;if(n instanceof Vr){var r=n.__data__;if(!za||r.length<n2-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ur(r);}return n.set(e,t),this.size=n.size,this}function Sr(e){var t=this.__data__=new Vr(e);this.size=t.size;}Sr.prototype.clear=oE;Sr.prototype.delete=iE;Sr.prototype.get=aE;Sr.prototype.has=sE;Sr.prototype.set=r2;function o2(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var i2=function(){try{var e=Fo(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Cl=i2;function D0(e,t,n){t=="__proto__"&&Cl?Cl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}var a2=Object.prototype,s2=a2.hasOwnProperty;function bm(e,t,n){var r=e[t];(!(s2.call(e,t)&&pm(r,n))||n===void 0&&!(t in e))&&D0(e,t,n);}function rs(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?D0(n,s,l):bm(n,s,l);}return n}function l2(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Dr(e){return e!=null&&typeof e=="object"}var c2="[object Arguments]";function Mv(e){return Dr(e)&&Bo(e)==c2}var z0=Object.prototype,u2=z0.hasOwnProperty,d2=z0.propertyIsEnumerable,f2=Mv(function(){return arguments}())?Mv:function(e){return Dr(e)&&u2.call(e,"callee")&&!d2.call(e,"callee")};const ym=f2;var m2=Array.isArray;const Jn=m2;function h2(){return !1}var j0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Nv=j0&&typeof module=="object"&&module&&!module.nodeType&&module,v2=Nv&&Nv.exports===j0,kv=v2?fr.Buffer:void 0,g2=kv?kv.isBuffer:void 0,p2=g2||h2;const Sl=p2;var b2=9007199254740991,y2=/^(?:0|[1-9]\d*)$/;function Cm(e,t){var n=typeof e;return t=t??b2,!!t&&(n=="number"||n!="symbol"&&y2.test(e))&&e>-1&&e%1==0&&e<t}var C2=9007199254740991;function Sm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=C2}var S2="[object Arguments]",w2="[object Array]",x2="[object Boolean]",$2="[object Date]",E2="[object Error]",O2="[object Function]",I2="[object Map]",P2="[object Number]",R2="[object Object]",_2="[object RegExp]",T2="[object Set]",M2="[object String]",N2="[object WeakMap]",k2="[object ArrayBuffer]",A2="[object DataView]",L2="[object Float32Array]",D2="[object Float64Array]",z2="[object Int8Array]",j2="[object Int16Array]",B2="[object Int32Array]",H2="[object Uint8Array]",F2="[object Uint8ClampedArray]",W2="[object Uint16Array]",V2="[object Uint32Array]",zt={};zt[L2]=zt[D2]=zt[z2]=zt[j2]=zt[B2]=zt[H2]=zt[F2]=zt[W2]=zt[V2]=!0;zt[S2]=zt[w2]=zt[k2]=zt[x2]=zt[A2]=zt[$2]=zt[E2]=zt[O2]=zt[I2]=zt[P2]=zt[R2]=zt[_2]=zt[T2]=zt[M2]=zt[N2]=!1;function U2(e){return Dr(e)&&Sm(e.length)&&!!zt[Bo(e)]}function wm(e){return function(t){return e(t)}}var B0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sa=B0&&typeof module=="object"&&module&&!module.nodeType&&module,K2=Sa&&Sa.exports===B0,Iu=K2&&k0.process,G2=function(){try{var e=Sa&&Sa.require&&Sa.require("util").types;return e||Iu&&Iu.binding&&Iu.binding("util")}catch{}}();const Ri=G2;var Av=Ri&&Ri.isTypedArray,X2=Av?wm(Av):U2;const H0=X2;var q2=Object.prototype,Y2=q2.hasOwnProperty;function F0(e,t){var n=Jn(e),r=!n&&ym(e),o=!n&&!r&&Sl(e),i=!n&&!r&&!o&&H0(e),a=n||r||o||i,s=a?l2(e.length,String):[],l=s.length;for(var c in e)(t||Y2.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Cm(c,l)))&&s.push(c);return s}var Z2=Object.prototype;function xm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Z2;return e===n}function W0(e,t){return function(n){return e(t(n))}}var Q2=W0(Object.keys,Object);const J2=Q2;var eO=Object.prototype,tO=eO.hasOwnProperty;function nO(e){if(!xm(e))return J2(e);var t=[];for(var n in Object(e))tO.call(e,n)&&n!="constructor"&&t.push(n);return t}function V0(e){return e!=null&&Sm(e.length)&&!L0(e)}function os(e){return V0(e)?F0(e):nO(e)}function rO(e,t){return e&&rs(t,os(t),e)}function oO(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var iO=Object.prototype,aO=iO.hasOwnProperty;function sO(e){if(!Qn(e))return oO(e);var t=xm(e),n=[];for(var r in e)r=="constructor"&&(t||!aO.call(e,r))||n.push(r);return n}function $m(e){return V0(e)?F0(e,!0):sO(e)}function lO(e,t){return e&&rs(t,$m(t),e)}var U0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Lv=U0&&typeof module=="object"&&module&&!module.nodeType&&module,cO=Lv&&Lv.exports===U0,Dv=cO?fr.Buffer:void 0,zv=Dv?Dv.allocUnsafe:void 0;function uO(e,t){if(t)return e.slice();var n=e.length,r=zv?zv(n):new e.constructor(n);return e.copy(r),r}function K0(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function dO(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a);}return i}function G0(){return []}var fO=Object.prototype,mO=fO.propertyIsEnumerable,jv=Object.getOwnPropertySymbols,hO=jv?function(e){return e==null?[]:(e=Object(e),dO(jv(e),function(t){return mO.call(e,t)}))}:G0;const Em=hO;function vO(e,t){return rs(e,Em(e),t)}function Om(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var gO=W0(Object.getPrototypeOf,Object);const Im=gO;var pO=Object.getOwnPropertySymbols,bO=pO?function(e){for(var t=[];e;)Om(t,Em(e)),e=Im(e);return t}:G0;const X0=bO;function yO(e,t){return rs(e,X0(e),t)}function q0(e,t,n){var r=t(e);return Jn(e)?r:Om(r,n(e))}function Fd(e){return q0(e,os,Em)}function Y0(e){return q0(e,$m,X0)}var CO=Fo(fr,"DataView");const Wd=CO;var SO=Fo(fr,"Promise");const Vd=SO;var wO=Fo(fr,"Set");const xi=wO;var xO=Fo(fr,"WeakMap");const Ud=xO;var Bv="[object Map]",$O="[object Object]",Hv="[object Promise]",Fv="[object Set]",Wv="[object WeakMap]",Vv="[object DataView]",EO=Ho(Wd),OO=Ho(za),IO=Ho(Vd),PO=Ho(xi),RO=Ho(Ud),yo=Bo;(Wd&&yo(new Wd(new ArrayBuffer(1)))!=Vv||za&&yo(new za)!=Bv||Vd&&yo(Vd.resolve())!=Hv||xi&&yo(new xi)!=Fv||Ud&&yo(new Ud)!=Wv)&&(yo=function(e){var t=Bo(e),n=t==$O?e.constructor:void 0,r=n?Ho(n):"";if(r)switch(r){case EO:return Vv;case OO:return Bv;case IO:return Hv;case PO:return Fv;case RO:return Wv}return t});const Ba=yo;var _O=Object.prototype,TO=_O.hasOwnProperty;function MO(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&TO.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var NO=fr.Uint8Array;const wl=NO;function Pm(e){var t=new e.constructor(e.byteLength);return new wl(t).set(new wl(e)),t}function kO(e,t){var n=t?Pm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var AO=/\w*$/;function LO(e){var t=new e.constructor(e.source,AO.exec(e));return t.lastIndex=e.lastIndex,t}var Uv=Zn?Zn.prototype:void 0,Kv=Uv?Uv.valueOf:void 0;function DO(e){return Kv?Object(Kv.call(e)):{}}function zO(e,t){var n=t?Pm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var jO="[object Boolean]",BO="[object Date]",HO="[object Map]",FO="[object Number]",WO="[object RegExp]",VO="[object Set]",UO="[object String]",KO="[object Symbol]",GO="[object ArrayBuffer]",XO="[object DataView]",qO="[object Float32Array]",YO="[object Float64Array]",ZO="[object Int8Array]",QO="[object Int16Array]",JO="[object Int32Array]",eI="[object Uint8Array]",tI="[object Uint8ClampedArray]",nI="[object Uint16Array]",rI="[object Uint32Array]";function oI(e,t,n){var r=e.constructor;switch(t){case GO:return Pm(e);case jO:case BO:return new r(+e);case XO:return kO(e,n);case qO:case YO:case ZO:case QO:case JO:case eI:case tI:case nI:case rI:return zO(e,n);case HO:return new r;case FO:case UO:return new r(e);case WO:return LO(e);case VO:return new r;case KO:return DO(e)}}var Gv=Object.create,iI=function(){function e(){}return function(t){if(!Qn(t))return {};if(Gv)return Gv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const aI=iI;function sI(e){return typeof e.constructor=="function"&&!xm(e)?aI(Im(e)):{}}var lI="[object Map]";function cI(e){return Dr(e)&&Ba(e)==lI}var Xv=Ri&&Ri.isMap,uI=Xv?wm(Xv):cI;const dI=uI;var fI="[object Set]";function mI(e){return Dr(e)&&Ba(e)==fI}var qv=Ri&&Ri.isSet,hI=qv?wm(qv):mI;const vI=hI;var gI=1,pI=2,bI=4,Z0="[object Arguments]",yI="[object Array]",CI="[object Boolean]",SI="[object Date]",wI="[object Error]",Q0="[object Function]",xI="[object GeneratorFunction]",$I="[object Map]",EI="[object Number]",J0="[object Object]",OI="[object RegExp]",II="[object Set]",PI="[object String]",RI="[object Symbol]",_I="[object WeakMap]",TI="[object ArrayBuffer]",MI="[object DataView]",NI="[object Float32Array]",kI="[object Float64Array]",AI="[object Int8Array]",LI="[object Int16Array]",DI="[object Int32Array]",zI="[object Uint8Array]",jI="[object Uint8ClampedArray]",BI="[object Uint16Array]",HI="[object Uint32Array]",At={};At[Z0]=At[yI]=At[TI]=At[MI]=At[CI]=At[SI]=At[NI]=At[kI]=At[AI]=At[LI]=At[DI]=At[$I]=At[EI]=At[J0]=At[OI]=At[II]=At[PI]=At[RI]=At[zI]=At[jI]=At[BI]=At[HI]=!0;At[wI]=At[Q0]=At[_I]=!1;function wa(e,t,n,r,o,i){var a,s=t&gI,l=t&pI,c=t&bI;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!Qn(e))return e;var u=Jn(e);if(u){if(a=MO(e),!s)return K0(e,a)}else {var d=Ba(e),f=d==Q0||d==xI;if(Sl(e))return uO(e,s);if(d==J0||d==Z0||f&&!o){if(a=l||f?{}:sI(e),!s)return l?yO(e,lO(a,e)):vO(e,rO(a,e))}else {if(!At[d])return o?e:{};a=oI(e,d,s);}}i||(i=new Sr);var h=i.get(e);if(h)return h;i.set(e,a),vI(e)?e.forEach(function(p){a.add(wa(p,t,n,p,e,i));}):dI(e)&&e.forEach(function(p,b){a.set(b,wa(p,t,n,b,e,i));});var v=c?l?Y0:Fd:l?$m:os,g=u?void 0:v(e);return o2(g||e,function(p,b){g&&(b=p,p=e[b]),bm(a,b,wa(p,t,n,b,e,i));}),a}var FI="[object Symbol]";function wc(e){return typeof e=="symbol"||Dr(e)&&Bo(e)==FI}var WI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,VI=/^\w*$/;function Rm(e,t){if(Jn(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||wc(e)?!0:VI.test(e)||!WI.test(e)||t!=null&&e in Object(t)}var UI="Expected a function";function _m(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(UI);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(_m.Cache||Ur),n}_m.Cache=Ur;var KI=500;function GI(e){var t=_m(e,function(r){return n.size===KI&&n.clear(),r}),n=t.cache;return t}var XI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qI=/\\(\\)?/g,YI=GI(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(XI,function(n,r,o,i){t.push(o?i.replace(qI,"$1"):r||n);}),t});const ZI=YI;var QI=1/0,Yv=Zn?Zn.prototype:void 0,Zv=Yv?Yv.toString:void 0;function ey(e){if(typeof e=="string")return e;if(Jn(e))return gm(e,ey)+"";if(wc(e))return Zv?Zv.call(e):"";var t=e+"";return t=="0"&&1/e==-QI?"-0":t}function JI(e){return e==null?"":ey(e)}function Ki(e,t){return Jn(e)?e:Rm(e,t)?[e]:ZI(JI(e))}function eP(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var tP=1/0;function Gi(e){if(typeof e=="string"||wc(e))return e;var t=e+"";return t=="0"&&1/e==-tP?"-0":t}function xc(e,t){t=Ki(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Gi(t[n++])];return n&&n==r?e:void 0}function nP(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function rP(e,t){return t.length<2?e:xc(e,nP(t,0,-1))}function oP(e,t){return t=Ki(t,e),e=rP(e,t),e==null||delete e[Gi(eP(t))]}var iP="[object Object]",aP=Function.prototype,sP=Object.prototype,ty=aP.toString,lP=sP.hasOwnProperty,cP=ty.call(Object);function uP(e){if(!Dr(e)||Bo(e)!=iP)return !1;var t=Im(e);if(t===null)return !0;var n=lP.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ty.call(n)==cP}function dP(e){return uP(e)?void 0:e}var Qv=Zn?Zn.isConcatSpreadable:void 0;function fP(e){return Jn(e)||ym(e)||!!(Qv&&e&&e[Qv])}function ny(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=fP),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?ny(s,t-1,n,r,o):Om(o,s):r||(o[o.length]=s);}return o}function mP(e){var t=e==null?0:e.length;return t?ny(e,1):[]}function hP(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Jv=Math.max;function vP(e,t,n){return t=Jv(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Jv(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),hP(e,this,s)}}function gP(e){return function(){return e}}function ry(e){return e}var pP=Cl?function(e,t){return Cl(e,"toString",{configurable:!0,enumerable:!1,value:gP(t),writable:!0})}:ry;const bP=pP;var yP=800,CP=16,SP=Date.now;function wP(e){var t=0,n=0;return function(){var r=SP(),o=CP-(r-n);if(n=r,o>0){if(++t>=yP)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var xP=wP(bP);const $P=xP;function oy(e){return $P(vP(e,void 0,mP),e+"")}var EP=1,OP=2,IP=4,PP=oy(function(e,t){var n={};if(e==null)return n;var r=!1;t=gm(t,function(i){return i=Ki(i,e),r||(r=i.length>1),i}),rs(e,Y0(e),n),r&&(n=wa(n,EP|OP|IP,dP));for(var o=t.length;o--;)oP(n,t[o]);return n});const RP=PP;var _P=function(){return fr.Date.now()};const Pu=_P;var TP=/\s/;function MP(e){for(var t=e.length;t--&&TP.test(e.charAt(t)););return t}var NP=/^\s+/;function kP(e){return e&&e.slice(0,MP(e)+1).replace(NP,"")}var eg=0/0,AP=/^[-+]0x[0-9a-f]+$/i,LP=/^0b[01]+$/i,DP=/^0o[0-7]+$/i,zP=parseInt;function Kd(e){if(typeof e=="number")return e;if(wc(e))return eg;if(Qn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qn(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=kP(e);var n=LP.test(e);return n||DP.test(e)?zP(e.slice(2),n?2:8):AP.test(e)?eg:+e}var jP="Expected a function",BP=Math.max,HP=Math.min;function iy(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(jP);t=Kd(t)||0,Qn(n)&&(u=!!n.leading,d="maxWait"in n,i=d?BP(Kd(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function h($){var x=r,w=o;return r=o=void 0,c=$,a=e.apply(w,x),a}function v($){return c=$,s=setTimeout(b,t),u?h($):a}function g($){var x=$-l,w=$-c,O=t-x;return d?HP(O,i-w):O}function p($){var x=$-l,w=$-c;return l===void 0||x>=t||x<0||d&&w>=i}function b(){var $=Pu();if(p($))return y($);s=setTimeout(b,g($));}function y($){return s=void 0,f&&r?h($):(r=o=void 0,a)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function E(){return s===void 0?a:y(Pu())}function C(){var $=Pu(),x=p($);if(r=arguments,o=this,l=$,x){if(s===void 0)return v(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),a}return C.cancel=S,C.flush=E,C}var FP="Expected a function";function ay(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(FP);return Qn(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),iy(e,t,{leading:r,maxWait:t,trailing:o})}function WP(e,t,n,r){if(!Qn(e))return e;t=Ki(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=Gi(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=Qn(u)?u:Cm(t[o+1])?[]:{});}bm(s,l,c),s=s[l];}return e}function VP(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=xc(e,a);n(s,a)&&WP(i,Ki(a,e),s);}return i}function UP(e,t){return e!=null&&t in Object(e)}function KP(e,t,n){t=Ki(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Gi(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a];}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Sm(o)&&Cm(a,o)&&(Jn(e)||ym(e)))}function sy(e,t){return e!=null&&KP(e,t,UP)}function GP(e,t){return VP(e,t,function(n,r){return sy(e,r)})}var XP=oy(function(e,t){return e==null?{}:GP(e,t)});const Tm=XP;var Gd={exports:{}},Ru,tg;function qP(){if(tg)return Ru;tg=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;Ru=function(u,d){d=d||{};var f=typeof u;if(f==="string"&&u.length>0)return a(u);if(f==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var f=parseFloat(d[1]),h=(d[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return f*i;case"weeks":case"week":case"w":return f*o;case"days":case"day":case"d":return f*r;case"hours":case"hour":case"hrs":case"hr":case"h":return f*n;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function s(u){var d=Math.abs(u);return d>=r?Math.round(u/r)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=r?c(u,d,r,"day"):d>=n?c(u,d,n,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,f,h){var v=d>=f*1.5;return Math.round(u/f)+" "+h+(v?"s":"")}return Ru}function YP(e){n.debug=n,n.default=n,n.coerce=l,n.disable=i,n.enable=o,n.enabled=a,n.humanize=qP(),n.destroy=c,Object.keys(e).forEach(u=>{n[u]=e[u];}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let f=0;f<u.length;f++)d=(d<<5)-d+u.charCodeAt(f),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,f=null,h,v;function g(...p){if(!g.enabled)return;const b=g,y=Number(new Date),S=y-(d||y);b.diff=S,b.prev=d,b.curr=y,d=y,p[0]=n.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let E=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,($,x)=>{if($==="%%")return "%";E++;const w=n.formatters[x];if(typeof w=="function"){const O=p[E];$=w.call(b,O),p.splice(E,1),E--;}return $}),n.formatArgs.call(b,p),(b.log||n.log).apply(b,p);}return g.namespace=u,g.useColors=n.useColors(),g.color=n.selectColor(u),g.extend=r,g.destroy=n.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(h!==n.namespaces&&(h=n.namespaces,v=n.enabled(u)),v),set:p=>{f=p;}}),typeof n.init=="function"&&n.init(g),g}function r(u,d){const f=n(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const f=(typeof u=="string"?u:"").split(/[\s,]+/),h=f.length;for(d=0;d<h;d++)f[d]&&(u=f[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")));}function i(){const u=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),u}function a(u){if(u[u.length-1]==="*")return !0;let d,f;for(d=0,f=n.skips.length;d<f;d++)if(n.skips[d].test(u))return !1;for(d=0,f=n.names.length;d<f;d++)if(n.names[d].test(u))return !0;return !1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");}return n.enable(n.load()),n}var ZP=YP;(function(e,t){t.formatArgs=r,t.save=o,t.load=i,t.useColors=n,t.storage=a(),t.destroy=(()=>{let l=!1;return ()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(d=u));}),l.splice(d,0,c);}t.log=console.debug||console.log||(()=>{});function o(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug");}catch{}}function i(){let l;try{l=t.storage.getItem("debug");}catch{}return !l&&typeof process<"u"&&"env"in process&&(l={}.DEBUG),l}function a(){try{return localStorage}catch{}}e.exports=ZP(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Gd,Gd.exports);var QP=Gd.exports;const JP=sn(QP),rn="bilibili-app-recommend",eR="bilibili_app_recommend",Xi=JP(rn),ly="https://api.bilibili.com",cy="https://app.bilibili.com";var Mm={exports:{}},uy=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return t.apply(n,o)}},tR=uy,Nm=Object.prototype.toString,km=function(e){return function(t){var n=Nm.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function Wo(e){return e=e.toLowerCase(),function(n){return km(n)===e}}function Am(e){return Array.isArray(e)}function xl(e){return typeof e>"u"}function nR(e){return e!==null&&!xl(e)&&e.constructor!==null&&!xl(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var dy=Wo("ArrayBuffer");function rR(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&dy(e.buffer),t}function oR(e){return typeof e=="string"}function iR(e){return typeof e=="number"}function fy(e){return e!==null&&typeof e=="object"}function rl(e){if(km(e)!=="object")return !1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var aR=Wo("Date"),sR=Wo("File"),lR=Wo("Blob"),cR=Wo("FileList");function Lm(e){return Nm.call(e)==="[object Function]"}function uR(e){return fy(e)&&Lm(e.pipe)}function dR(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Nm.call(e)===t||Lm(e.toString)&&e.toString()===t)}var fR=Wo("URLSearchParams");function mR(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function hR(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Dm(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Am(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e);}function Xd(){var e={};function t(o,i){rl(e[i])&&rl(o)?e[i]=Xd(e[i],o):rl(o)?e[i]=Xd({},o):Am(o)?e[i]=o.slice():e[i]=o;}for(var n=0,r=arguments.length;n<r;n++)Dm(arguments[n],t);return e}function vR(e,t,n){return Dm(t,function(o,i){n&&typeof o=="function"?e[i]=tR(o,n):e[i]=o;}),e}function gR(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function pR(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n);}function bR(e,t,n){var r,o,i,a={};t=t||{};do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],a[i]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e);}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function yR(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function CR(e){if(!e)return null;var t=e.length;if(xl(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var SR=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),cn={isArray:Am,isArrayBuffer:dy,isBuffer:nR,isFormData:dR,isArrayBufferView:rR,isString:oR,isNumber:iR,isObject:fy,isPlainObject:rl,isUndefined:xl,isDate:aR,isFile:sR,isBlob:lR,isFunction:Lm,isStream:uR,isURLSearchParams:fR,isStandardBrowserEnv:hR,forEach:Dm,merge:Xd,extend:vR,trim:mR,stripBOM:gR,inherits:pR,toFlatObject:bR,kindOf:km,kindOfTest:Wo,endsWith:yR,toArray:CR,isTypedArray:SR,isFileList:cR};const ng=sn(cn);var Qo=cn;function rg(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var zm=function(t,n,r){if(!n)return t;var o;if(r)o=r(n);else if(Qo.isURLSearchParams(n))o=n.toString();else {var i=[];Qo.forEach(n,function(l,c){l===null||typeof l>"u"||(Qo.isArray(l)?c=c+"[]":l=[l],Qo.forEach(l,function(d){Qo.isDate(d)?d=d.toISOString():Qo.isObject(d)&&(d=JSON.stringify(d)),i.push(rg(c)+"="+rg(d));}));}),o=i.join("&");}if(o){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o;}return t};const wR=sn(zm);var xR=cn;function $c(){this.handlers=[];}$c.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};$c.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null);};$c.prototype.forEach=function(t){xR.forEach(this.handlers,function(r){r!==null&&t(r);});};var $R=$c,ER=cn,OR=function(t,n){ER.forEach(t,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[i]);});},my=cn;function _i(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o);}my.inherits(_i,Error,{toJSON:function(){return {message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var hy=_i.prototype,vy={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){vy[e]={value:e};});Object.defineProperties(_i,vy);Object.defineProperty(hy,"isAxiosError",{value:!0});_i.from=function(e,t,n,r,o,i){var a=Object.create(hy);return my.toFlatObject(e,a,function(l){return l!==Error.prototype}),_i.call(a,e.message,t,n,r,o),a.name=e.name,i&&Object.assign(a,i),a};var qi=_i,gy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rr=cn;function IR(e,t){t=t||new FormData;var n=[];function r(i){return i===null?"":rr.isDate(i)?i.toISOString():rr.isArrayBuffer(i)||rr.isTypedArray(i)?typeof Blob=="function"?new Blob([i]):Buffer.from(i):i}function o(i,a){if(rr.isPlainObject(i)||rr.isArray(i)){if(n.indexOf(i)!==-1)throw Error("Circular reference detected in "+a);n.push(i),rr.forEach(i,function(l,c){if(!rr.isUndefined(l)){var u=a?a+"."+c:c,d;if(l&&!a&&typeof l=="object"){if(rr.endsWith(c,"{}"))l=JSON.stringify(l);else if(rr.endsWith(c,"[]")&&(d=rr.toArray(l))){d.forEach(function(f){!rr.isUndefined(f)&&t.append(u,r(f));});return}}o(l,u);}}),n.pop();}else t.append(a,r(i));}return o(e),t}var py=IR,_u=qi,by=function(t,n,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?t(r):n(new _u("Request failed with status code "+r.status,[_u.ERR_BAD_REQUEST,_u.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r));};const PR=sn(by);var Tu,og;function RR(){if(og)return Tu;og=1;var e=cn;return Tu=e.isStandardBrowserEnv()?function(){return {write:function(r,o,i,a,s,l){var c=[];c.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),e.isString(a)&&c.push("path="+a),e.isString(s)&&c.push("domain="+s),l===!0&&c.push("secure"),document.cookie=c.join("; ");},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5);}}}():function(){return {write:function(){},read:function(){return null},remove:function(){}}}(),Tu}var _R=function(t){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},TR=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},MR=_R,NR=TR,jm=function(t,n){return t&&!MR(n)?NR(t,n):n};const kR=sn(jm);var Mu=cn,AR=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],yy=function(t){var n={},r,o,i;return t&&Mu.forEach(t.split(`
`),function(s){if(i=s.indexOf(":"),r=Mu.trim(s.substr(0,i)).toLowerCase(),o=Mu.trim(s.substr(i+1)),r){if(n[r]&&AR.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([o]):n[r]=n[r]?n[r]+", "+o:o;}}),n};const LR=sn(yy);var Nu,ig;function DR(){if(ig)return Nu;ig=1;var e=cn;return Nu=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function i(a){var s=a;return n&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=i(window.location.href),function(s){var l=e.isString(s)?i(s):s;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return !0}}(),Nu}var ku,ag;function Ec(){if(ag)return ku;ag=1;var e=qi,t=cn;function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError";}return t.inherits(n,e,{__CANCEL__:!0}),ku=n,ku}var Au,sg;function zR(){return sg||(sg=1,Au=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),Au}var Lu,lg;function cg(){if(lg)return Lu;lg=1;var e=cn,t=by,n=RR(),r=zm,o=jm,i=yy,a=DR(),s=gy,l=qi,c=Ec(),u=zR();return Lu=function(f){return new Promise(function(v,g){var p=f.data,b=f.headers,y=f.responseType,S;function E(){f.cancelToken&&f.cancelToken.unsubscribe(S),f.signal&&f.signal.removeEventListener("abort",S);}e.isFormData(p)&&e.isStandardBrowserEnv()&&delete b["Content-Type"];var C=new XMLHttpRequest;if(f.auth){var $=f.auth.username||"",x=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";b.Authorization="Basic "+btoa($+":"+x);}var w=o(f.baseURL,f.url);C.open(f.method.toUpperCase(),r(w,f.params,f.paramsSerializer),!0),C.timeout=f.timeout;function O(){if(C){var _="getAllResponseHeaders"in C?i(C.getAllResponseHeaders()):null,I=!y||y==="text"||y==="json"?C.responseText:C.response,P={data:I,status:C.status,statusText:C.statusText,headers:_,config:f,request:C};t(function(N){v(N),E();},function(N){g(N),E();},P),C=null;}}if("onloadend"in C?C.onloadend=O:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(O);},C.onabort=function(){C&&(g(new l("Request aborted",l.ECONNABORTED,f,C)),C=null);},C.onerror=function(){g(new l("Network Error",l.ERR_NETWORK,f,C,C)),C=null;},C.ontimeout=function(){var I=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",P=f.transitional||s;f.timeoutErrorMessage&&(I=f.timeoutErrorMessage),g(new l(I,P.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,f,C)),C=null;},e.isStandardBrowserEnv()){var R=(f.withCredentials||a(w))&&f.xsrfCookieName?n.read(f.xsrfCookieName):void 0;R&&(b[f.xsrfHeaderName]=R);}"setRequestHeader"in C&&e.forEach(b,function(I,P){typeof p>"u"&&P.toLowerCase()==="content-type"?delete b[P]:C.setRequestHeader(P,I);}),e.isUndefined(f.withCredentials)||(C.withCredentials=!!f.withCredentials),y&&y!=="json"&&(C.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&C.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&C.upload&&C.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(S=function(_){C&&(g(!_||_&&_.type?new c:_),C.abort(),C=null);},f.cancelToken&&f.cancelToken.subscribe(S),f.signal&&(f.signal.aborted?S():f.signal.addEventListener("abort",S))),p||(p=null);var A=u(w);if(A&&["http","https","file"].indexOf(A)===-1){g(new l("Unsupported protocol "+A+":",l.ERR_BAD_REQUEST,f));return}C.send(p);})},Lu}var Du,ug;function jR(){return ug||(ug=1,Du=null),Du}var an=cn,dg=OR,fg=qi,BR=gy,HR=py,FR={"Content-Type":"application/x-www-form-urlencoded"};function mg(e,t){!an.isUndefined(e)&&an.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t);}function WR(){var e;return (typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=cg()),e}function VR(e,t,n){if(an.isString(e))try{return (t||JSON.parse)(e),an.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return (n||JSON.stringify)(e)}var Oc={transitional:BR,adapter:WR(),transformRequest:[function(t,n){if(dg(n,"Accept"),dg(n,"Content-Type"),an.isFormData(t)||an.isArrayBuffer(t)||an.isBuffer(t)||an.isStream(t)||an.isFile(t)||an.isBlob(t))return t;if(an.isArrayBufferView(t))return t.buffer;if(an.isURLSearchParams(t))return mg(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=an.isObject(t),o=n&&n["Content-Type"],i;if((i=an.isFileList(t))||r&&o==="multipart/form-data"){var a=this.env&&this.env.FormData;return HR(i?{"files[]":t}:t,a&&new a)}else if(r||o==="application/json")return mg(n,"application/json"),VR(t);return t}],transformResponse:[function(t){var n=this.transitional||Oc.transitional,r=n&&n.silentJSONParsing,o=n&&n.forcedJSONParsing,i=!r&&this.responseType==="json";if(i||o&&an.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?fg.from(a,fg.ERR_BAD_RESPONSE,this,null,this.response):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jR()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};an.forEach(["delete","get","head"],function(t){Oc.headers[t]={};});an.forEach(["post","put","patch"],function(t){Oc.headers[t]=an.merge(FR);});var Bm=Oc,UR=cn,KR=Bm,GR=function(t,n,r){var o=this||KR;return UR.forEach(r,function(a){t=a.call(o,t,n);}),t},zu,hg;function Cy(){return hg||(hg=1,zu=function(t){return !!(t&&t.__CANCEL__)}),zu}var vg=cn,ju=GR,XR=Cy(),qR=Bm,YR=Ec();function Bu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new YR}var ZR=function(t){Bu(t),t.headers=t.headers||{},t.data=ju.call(t,t.data,t.headers,t.transformRequest),t.headers=vg.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),vg.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o];});var n=t.adapter||qR.adapter;return n(t).then(function(o){return Bu(t),o.data=ju.call(t,o.data,o.headers,t.transformResponse),o},function(o){return XR(o)||(Bu(t),o&&o.response&&(o.response.data=ju.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},Ln=cn,Sy=function(t,n){n=n||{};var r={};function o(u,d){return Ln.isPlainObject(u)&&Ln.isPlainObject(d)?Ln.merge(u,d):Ln.isPlainObject(d)?Ln.merge({},d):Ln.isArray(d)?d.slice():d}function i(u){if(Ln.isUndefined(n[u])){if(!Ln.isUndefined(t[u]))return o(void 0,t[u])}else return o(t[u],n[u])}function a(u){if(!Ln.isUndefined(n[u]))return o(void 0,n[u])}function s(u){if(Ln.isUndefined(n[u])){if(!Ln.isUndefined(t[u]))return o(void 0,t[u])}else return o(void 0,n[u])}function l(u){if(u in n)return o(t[u],n[u]);if(u in t)return o(void 0,t[u])}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return Ln.forEach(Object.keys(t).concat(Object.keys(n)),function(d){var f=c[d]||i,h=f(d);Ln.isUndefined(h)&&f!==l||(r[d]=h);}),r},Hu,gg;function wy(){return gg||(gg=1,Hu={version:"0.27.2"}),Hu}var QR=wy().version,to=qi,Hm={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Hm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e};});var pg={};Hm.transitional=function(t,n,r){function o(i,a){return "[Axios v"+QR+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return function(i,a,s){if(t===!1)throw new to(o(a," has been removed"+(n?" in "+n:"")),to.ERR_DEPRECATED);return n&&!pg[a]&&(pg[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function JR(e,t,n){if(typeof e!="object")throw new to("options must be an object",to.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new to("option "+i+" must be "+l,to.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new to("Unknown option "+i,to.ERR_BAD_OPTION)}}var e_={assertOptions:JR,validators:Hm},xy=cn,t_=zm,bg=$R,yg=ZR,Ic=Sy,n_=jm,$y=e_,Jo=$y.validators;function Ti(e){this.defaults=e,this.interceptors={request:new bg,response:new bg};}Ti.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ic(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&$y.assertOptions(r,{silentJSONParsing:Jo.transitional(Jo.boolean),forcedJSONParsing:Jo.transitional(Jo.boolean),clarifyTimeoutError:Jo.transitional(Jo.boolean)},!1);var o=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(i=i&&h.synchronous,o.unshift(h.fulfilled,h.rejected));});var a=[];this.interceptors.response.forEach(function(h){a.push(h.fulfilled,h.rejected);});var s;if(!i){var l=[yg,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(a),s=Promise.resolve(n);l.length;)s=s.then(l.shift(),l.shift());return s}for(var c=n;o.length;){var u=o.shift(),d=o.shift();try{c=u(c);}catch(f){d(f);break}}try{s=yg(c);}catch(f){return Promise.reject(f)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};Ti.prototype.getUri=function(t){t=Ic(this.defaults,t);var n=n_(t.baseURL,t.url);return t_(n,t.params,t.paramsSerializer)};xy.forEach(["delete","get","head","options"],function(t){Ti.prototype[t]=function(n,r){return this.request(Ic(r||{},{method:t,url:n,data:(r||{}).data}))};});xy.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(Ic(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ti.prototype[t]=n(),Ti.prototype[t+"Form"]=n(!0);});var r_=Ti,Fu,Cg;function o_(){if(Cg)return Fu;Cg=1;var e=Ec();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(a){r=a;});var o=this;this.promise.then(function(i){if(o._listeners){var a,s=o._listeners.length;for(a=0;a<s;a++)o._listeners[a](i);o._listeners=null;}}),this.promise.then=function(i){var a,s=new Promise(function(l){o.subscribe(l),a=l;}).then(i);return s.cancel=function(){o.unsubscribe(a);},s},n(function(a){o.reason||(o.reason=new e(a),r(o.reason));});}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r];},t.prototype.unsubscribe=function(r){if(this._listeners){var o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1);}},t.source=function(){var r,o=new t(function(a){r=a;});return {token:o,cancel:r}},Fu=t,Fu}var Wu,Sg;function i_(){return Sg||(Sg=1,Wu=function(t){return function(r){return t.apply(null,r)}}),Wu}var Vu,wg;function a_(){if(wg)return Vu;wg=1;var e=cn;return Vu=function(n){return e.isObject(n)&&n.isAxiosError===!0},Vu}var xg=cn,s_=uy,ol=r_,l_=Sy,c_=Bm;function Ey(e){var t=new ol(e),n=s_(ol.prototype.request,t);return xg.extend(n,ol.prototype,t),xg.extend(n,t),n.create=function(o){return Ey(l_(e,o))},n}var Nn=Ey(c_);Nn.Axios=ol;Nn.CanceledError=Ec();Nn.CancelToken=o_();Nn.isCancel=Cy();Nn.VERSION=wy().version;Nn.toFormData=py;Nn.AxiosError=qi;Nn.Cancel=Nn.CanceledError;Nn.all=function(t){return Promise.all(t)};Nn.spread=i_();Nn.isAxiosError=a_();Mm.exports=Nn;Mm.exports.default=Nn;var u_=Mm.exports,mi=u_;const Pc=sn(mi);var Oy={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Eo,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",v="date",g="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var P=["th","st","nd","rd"],T=I%100;return "["+I+(P[(T-20)%10]||P[T]||P[0])+"]"}},S=function(I,P,T){var N=String(I);return !N||N.length>=P?I:""+Array(P+1-N.length).join(T)+I},E={s:S,z:function(I){var P=-I.utcOffset(),T=Math.abs(P),N=Math.floor(T/60),M=T%60;return (P<=0?"+":"-")+S(N,2,"0")+":"+S(M,2,"0")},m:function I(P,T){if(P.date()<T.date())return -I(T,P);var N=12*(T.year()-P.year())+(T.month()-P.month()),M=P.clone().add(N,d),L=T-M<0,z=P.clone().add(N+(L?-1:1),d);return +(-(N+(T-M)/(L?M-z:z-M))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return {M:d,y:h,w:u,d:c,D:v,h:l,m:s,s:a,ms:i,Q:f}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},C="en",$={};$[C]=y;var x=function(I){return I instanceof A},w=function I(P,T,N){var M;if(!P)return C;if(typeof P=="string"){var L=P.toLowerCase();$[L]&&(M=L),T&&($[L]=T,M=L);var z=P.split("-");if(!M&&z.length>1)return I(z[0])}else {var H=P.name;$[H]=P,M=H;}return !N&&M&&(C=M),M||!N&&C},O=function(I,P){if(x(I))return I.clone();var T=typeof P=="object"?P:{};return T.date=I,T.args=arguments,new A(T)},R=E;R.l=w,R.i=x,R.w=function(I,P){return O(I,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var A=function(){function I(T){this.$L=w(T.locale,null,!0),this.parse(T);}var P=I.prototype;return P.parse=function(T){this.$d=function(N){var M=N.date,L=N.utc;if(M===null)return new Date(NaN);if(R.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var z=M.match(p);if(z){var H=z[2]-1||0,W=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],H,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)):new Date(z[1],H,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)}}return new Date(M)}(T),this.$x=T.x||{},this.init();},P.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds();},P.$utils=function(){return R},P.isValid=function(){return this.$d.toString()!==g},P.isSame=function(T,N){var M=O(T);return this.startOf(N)<=M&&M<=this.endOf(N)},P.isAfter=function(T,N){return O(T)<this.startOf(N)},P.isBefore=function(T,N){return this.endOf(N)<O(T)},P.$g=function(T,N,M){return R.u(T)?this[N]:this.set(M,T)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(T,N){var M=this,L=!!R.u(N)||N,z=R.p(T),H=function(U,X){var ie=R.w(M.$u?Date.UTC(M.$y,X,U):new Date(M.$y,X,U),M);return L?ie:ie.endOf(c)},W=function(U,X){return R.w(M.toDate()[U].apply(M.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(X)),M)},B=this.$W,V=this.$M,j=this.$D,K="set"+(this.$u?"UTC":"");switch(z){case h:return L?H(1,0):H(31,11);case d:return L?H(1,V):H(0,V+1);case u:var ee=this.$locale().weekStart||0,q=(B<ee?B+7:B)-ee;return H(L?j-q:j+(6-q),V);case c:case v:return W(K+"Hours",0);case l:return W(K+"Minutes",1);case s:return W(K+"Seconds",2);case a:return W(K+"Milliseconds",3);default:return this.clone()}},P.endOf=function(T){return this.startOf(T,!1)},P.$set=function(T,N){var M,L=R.p(T),z="set"+(this.$u?"UTC":""),H=(M={},M[c]=z+"Date",M[v]=z+"Date",M[d]=z+"Month",M[h]=z+"FullYear",M[l]=z+"Hours",M[s]=z+"Minutes",M[a]=z+"Seconds",M[i]=z+"Milliseconds",M)[L],W=L===c?this.$D+(N-this.$W):N;if(L===d||L===h){var B=this.clone().set(v,1);B.$d[H](W),B.init(),this.$d=B.set(v,Math.min(this.$D,B.daysInMonth())).$d;}else H&&this.$d[H](W);return this.init(),this},P.set=function(T,N){return this.clone().$set(T,N)},P.get=function(T){return this[R.p(T)]()},P.add=function(T,N){var M,L=this;T=Number(T);var z=R.p(N),H=function(V){var j=O(L);return R.w(j.date(j.date()+Math.round(V*T)),L)};if(z===d)return this.set(d,this.$M+T);if(z===h)return this.set(h,this.$y+T);if(z===c)return H(1);if(z===u)return H(7);var W=(M={},M[s]=r,M[l]=o,M[a]=n,M)[z]||1,B=this.$d.getTime()+T*W;return R.w(B,this)},P.subtract=function(T,N){return this.add(-1*T,N)},P.format=function(T){var N=this,M=this.$locale();if(!this.isValid())return M.invalidDate||g;var L=T||"YYYY-MM-DDTHH:mm:ssZ",z=R.z(this),H=this.$H,W=this.$m,B=this.$M,V=M.weekdays,j=M.months,K=M.meridiem,ee=function(X,ie,de,ge){return X&&(X[ie]||X(N,L))||de[ie].slice(0,ge)},q=function(X){return R.s(H%12||12,X,"0")},U=K||function(X,ie,de){var ge=X<12?"AM":"PM";return de?ge.toLowerCase():ge};return L.replace(b,function(X,ie){return ie||function(de){switch(de){case"YY":return String(N.$y).slice(-2);case"YYYY":return R.s(N.$y,4,"0");case"M":return B+1;case"MM":return R.s(B+1,2,"0");case"MMM":return ee(M.monthsShort,B,j,3);case"MMMM":return ee(j,B);case"D":return N.$D;case"DD":return R.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return ee(M.weekdaysMin,N.$W,V,2);case"ddd":return ee(M.weekdaysShort,N.$W,V,3);case"dddd":return V[N.$W];case"H":return String(H);case"HH":return R.s(H,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return U(H,W,!0);case"A":return U(H,W,!1);case"m":return String(W);case"mm":return R.s(W,2,"0");case"s":return String(N.$s);case"ss":return R.s(N.$s,2,"0");case"SSS":return R.s(N.$ms,3,"0");case"Z":return z}return null}(X)||z.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(T,N,M){var L,z=this,H=R.p(N),W=O(T),B=(W.utcOffset()-this.utcOffset())*r,V=this-W,j=function(){return R.m(z,W)};switch(H){case h:L=j()/12;break;case d:L=j();break;case f:L=j()/3;break;case u:L=(V-B)/6048e5;break;case c:L=(V-B)/864e5;break;case l:L=V/o;break;case s:L=V/r;break;case a:L=V/n;break;default:L=V;}return M?L:R.a(L)},P.daysInMonth=function(){return this.endOf(d).$D},P.$locale=function(){return $[this.$L]},P.locale=function(T,N){if(!T)return this.$L;var M=this.clone(),L=w(T,N,!0);return L&&(M.$L=L),M},P.clone=function(){return R.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},I}(),_=A.prototype;return O.prototype=_,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",c],["$M",d],["$y",h],["$D",v]].forEach(function(I){_[I[1]]=function(P){return this.$g(P,I[0],I[1])};}),O.extend=function(I,P){return I.$i||(I(P,A,O),I.$i=!0),O},O.locale=w,O.isDayjs=x,O.unix=function(I){return O(1e3*I)},O.en=$[C],O.Ls=$,O.p={},O});})(Oy);var d_=Oy.exports;const Vo=sn(d_);var Iy={exports:{}},Py={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],o=0,i=0;o<n.length;o++,i+=8)r[i>>>5]|=n[o]<<24-i%32;return r},wordsToBytes:function(n){for(var r=[],o=0;o<n.length*32;o+=8)r.push(n[o>>>5]>>>24-o%32&255);return r},bytesToHex:function(n){for(var r=[],o=0;o<n.length;o++)r.push((n[o]>>>4).toString(16)),r.push((n[o]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],o=0;o<n.length;o+=2)r.push(parseInt(n.substr(o,2),16));return r},bytesToBase64:function(n){for(var r=[],o=0;o<n.length;o+=3)for(var i=n[o]<<16|n[o+1]<<8|n[o+2],a=0;a<4;a++)o*8+a*6<=n.length*8?r.push(e.charAt(i>>>6*(3-a)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],o=0,i=0;o<n.length;i=++o%4)i!=0&&r.push((e.indexOf(n.charAt(o-1))&Math.pow(2,-2*i+8)-1)<<i*2|e.indexOf(n.charAt(o))>>>6-i*2);return r}};Py.exports=t;})();var f_=Py.exports,qd={utf8:{stringToBytes:function(e){return qd.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(qd.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},$g=qd;/*!
   * Determine if an object is a Buffer
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   */var m_=function(e){return e!=null&&(Ry(e)||h_(e)||!!e._isBuffer)};function Ry(e){return !!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function h_(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Ry(e.slice(0,0))}(function(){var e=f_,t=$g.utf8,n=m_,r=$g.bin,o=function(i,a){i.constructor==String?a&&a.encoding==="binary"?i=r.stringToBytes(i):i=t.stringToBytes(i):n(i)?i=Array.prototype.slice.call(i,0):!Array.isArray(i)&&i.constructor!==Uint8Array&&(i=i.toString());for(var s=e.bytesToWords(i),l=i.length*8,c=1732584193,u=-271733879,d=-1732584194,f=271733878,h=0;h<s.length;h++)s[h]=(s[h]<<8|s[h]>>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360;s[l>>>5]|=128<<l%32,s[(l+64>>>9<<4)+14]=l;for(var v=o._ff,g=o._gg,p=o._hh,b=o._ii,h=0;h<s.length;h+=16){var y=c,S=u,E=d,C=f;c=v(c,u,d,f,s[h+0],7,-680876936),f=v(f,c,u,d,s[h+1],12,-389564586),d=v(d,f,c,u,s[h+2],17,606105819),u=v(u,d,f,c,s[h+3],22,-1044525330),c=v(c,u,d,f,s[h+4],7,-176418897),f=v(f,c,u,d,s[h+5],12,1200080426),d=v(d,f,c,u,s[h+6],17,-1473231341),u=v(u,d,f,c,s[h+7],22,-45705983),c=v(c,u,d,f,s[h+8],7,1770035416),f=v(f,c,u,d,s[h+9],12,-1958414417),d=v(d,f,c,u,s[h+10],17,-42063),u=v(u,d,f,c,s[h+11],22,-1990404162),c=v(c,u,d,f,s[h+12],7,1804603682),f=v(f,c,u,d,s[h+13],12,-40341101),d=v(d,f,c,u,s[h+14],17,-1502002290),u=v(u,d,f,c,s[h+15],22,1236535329),c=g(c,u,d,f,s[h+1],5,-165796510),f=g(f,c,u,d,s[h+6],9,-1069501632),d=g(d,f,c,u,s[h+11],14,643717713),u=g(u,d,f,c,s[h+0],20,-373897302),c=g(c,u,d,f,s[h+5],5,-701558691),f=g(f,c,u,d,s[h+10],9,38016083),d=g(d,f,c,u,s[h+15],14,-660478335),u=g(u,d,f,c,s[h+4],20,-405537848),c=g(c,u,d,f,s[h+9],5,568446438),f=g(f,c,u,d,s[h+14],9,-1019803690),d=g(d,f,c,u,s[h+3],14,-187363961),u=g(u,d,f,c,s[h+8],20,1163531501),c=g(c,u,d,f,s[h+13],5,-1444681467),f=g(f,c,u,d,s[h+2],9,-51403784),d=g(d,f,c,u,s[h+7],14,1735328473),u=g(u,d,f,c,s[h+12],20,-1926607734),c=p(c,u,d,f,s[h+5],4,-378558),f=p(f,c,u,d,s[h+8],11,-2022574463),d=p(d,f,c,u,s[h+11],16,1839030562),u=p(u,d,f,c,s[h+14],23,-35309556),c=p(c,u,d,f,s[h+1],4,-1530992060),f=p(f,c,u,d,s[h+4],11,1272893353),d=p(d,f,c,u,s[h+7],16,-155497632),u=p(u,d,f,c,s[h+10],23,-1094730640),c=p(c,u,d,f,s[h+13],4,681279174),f=p(f,c,u,d,s[h+0],11,-358537222),d=p(d,f,c,u,s[h+3],16,-722521979),u=p(u,d,f,c,s[h+6],23,76029189),c=p(c,u,d,f,s[h+9],4,-640364487),f=p(f,c,u,d,s[h+12],11,-421815835),d=p(d,f,c,u,s[h+15],16,530742520),u=p(u,d,f,c,s[h+2],23,-995338651),c=b(c,u,d,f,s[h+0],6,-198630844),f=b(f,c,u,d,s[h+7],10,1126891415),d=b(d,f,c,u,s[h+14],15,-1416354905),u=b(u,d,f,c,s[h+5],21,-57434055),c=b(c,u,d,f,s[h+12],6,1700485571),f=b(f,c,u,d,s[h+3],10,-1894986606),d=b(d,f,c,u,s[h+10],15,-1051523),u=b(u,d,f,c,s[h+1],21,-2054922799),c=b(c,u,d,f,s[h+8],6,1873313359),f=b(f,c,u,d,s[h+15],10,-30611744),d=b(d,f,c,u,s[h+6],15,-1560198380),u=b(u,d,f,c,s[h+13],21,1309151649),c=b(c,u,d,f,s[h+4],6,-145523070),f=b(f,c,u,d,s[h+11],10,-1120210379),d=b(d,f,c,u,s[h+2],15,718787259),u=b(u,d,f,c,s[h+9],21,-343485551),c=c+y>>>0,u=u+S>>>0,d=d+E>>>0,f=f+C>>>0;}return e.endian([c,u,d,f])};o._ff=function(i,a,s,l,c,u,d){var f=i+(a&s|~a&l)+(c>>>0)+d;return (f<<u|f>>>32-u)+a},o._gg=function(i,a,s,l,c,u,d){var f=i+(a&l|s&~l)+(c>>>0)+d;return (f<<u|f>>>32-u)+a},o._hh=function(i,a,s,l,c,u,d){var f=i+(a^s^l)+(c>>>0)+d;return (f<<u|f>>>32-u)+a},o._ii=function(i,a,s,l,c,u,d){var f=i+(s^(a|~l))+(c>>>0)+d;return (f<<u|f>>>32-u)+a},o._blocksize=16,o._digestsize=16,Iy.exports=function(i,a){if(i==null)throw new Error("Illegal argument "+i);var s=e.wordsToBytes(o(i,a));return a&&a.asBytes?s:a&&a.asString?r.bytesToString(s):e.bytesToHex(s)};})();var v_=Iy.exports;const g_=sn(v_);var Mi=1e3,Ni=Mi*60,ki=Ni*60,Ao=ki*24,p_=Ao*7,b_=Ao*365.25,y_=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return C_(e);if(n==="number"&&isFinite(e))return t.long?w_(e):S_(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function C_(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*b_;case"weeks":case"week":case"w":return n*p_;case"days":case"day":case"d":return n*Ao;case"hours":case"hour":case"hrs":case"hr":case"h":return n*ki;case"minutes":case"minute":case"mins":case"min":case"m":return n*Ni;case"seconds":case"second":case"secs":case"sec":case"s":return n*Mi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function S_(e){var t=Math.abs(e);return t>=Ao?Math.round(e/Ao)+"d":t>=ki?Math.round(e/ki)+"h":t>=Ni?Math.round(e/Ni)+"m":t>=Mi?Math.round(e/Mi)+"s":e+"ms"}function w_(e){var t=Math.abs(e);return t>=Ao?Ns(e,t,Ao,"day"):t>=ki?Ns(e,t,ki,"hour"):t>=Ni?Ns(e,t,Ni,"minute"):t>=Mi?Ns(e,t,Mi,"second"):e+" ms"}function Ns(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const Fm=sn(y_),x_=[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,39,12,38,41,13,37,48,7,16,24,55,40,61,26,17,0,1,60,51,30,4,22,25,54,21,56,59,6,63,57,62,11,36,20,34,44,52];function $_(e){let t="";return x_.forEach(n=>{t+=e[n];}),t.slice(0,32)}async function E_(e){const{img_key:t,sub_key:n}=await O_(),r=$_(t+n),o=Math.round(Date.now()/1e3),i=/[!'()*]/g;let a=[];e={...e,wts:o},Object.keys(e).sort().forEach(c=>{a.push(`${encodeURIComponent(c)}=${encodeURIComponent(e[c].toString().replace(i,""))}`);});const s=a.join("&"),l=g_(s+r);return {wts:o,w_rid:l}}let Uu,Ku,Gu;async function O_(){const e=()=>Vo().format("YYYYMMDD");if(Uu&&Ku&&Gu&&Gu===e()&&Date.now()-Ku<=Fm("6h"))return Uu;const r=(await Pc.get("/x/web-interface/nav",{baseURL:ly})).data,o=r.data.wbi_img.img_url,i=r.data.wbi_img.sub_url,a={img_key:o.slice(o.lastIndexOf("/")+1,o.lastIndexOf(".")),sub_key:i.slice(i.lastIndexOf("/")+1,i.lastIndexOf("."))};return Uu=a,Gu=e(),Ku=Date.now(),a}var _y={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;})();})(_y);var I_=_y.exports;const F=sn(I_);function Ty(e){if(Array.isArray(e))return e}function P_(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 Yd(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 Wm(e,t){if(e){if(typeof e=="string")return Yd(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 Yd(e,t)}}function My(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(e,t){return Ty(e)||P_(e,t)||Wm(e,t)||My()}function Tn(e){var t=m__namespace.useRef();t.current=e;var n=m__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function er(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}var Eg=er()?m__namespace.useLayoutEffect:m__namespace.useEffect,Ft=function(t,n){var r=m__namespace.useRef(!0);Eg(function(){return t(r.current)},n),Eg(function(){return r.current=!1,function(){r.current=!0;}},[]);},$i=function(t,n){Ft(function(r){if(!r)return t()},n);};function Ro(e){var t=m__namespace.useRef(!1),n=m__namespace.useState(e),r=G(n,2),o=r[0],i=r[1];m__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function a(s,l){l&&t.current||i(s);}return [o,a]}function Xu(e){return e!==void 0}function Dt(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Ro(function(){return Xu(o)?o:Xu(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=G(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,f=a?a(d):d,h=Tn(i),v=Ro([d]),g=G(v,2),p=g[0],b=g[1];$i(function(){var S=p[0];c!==S&&h(c,S);},[p]),$i(function(){Xu(o)||u(o);},[o]);var y=Tn(function(S,E){u(S,E),b([d],E);});return [f,y]}function R_(e){if(Array.isArray(e))return Yd(e)}function Ny(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function __(){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 Ze(e){return R_(e)||Ny(e)||Wm(e)||__()}function at(e){"@babel/helpers - typeof";return at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},at(e)}function T_(e,t){if(at(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(at(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function ky(e){var t=T_(e,"string");return at(t)==="symbol"?t:String(t)}function Z(e,t,n){return t=ky(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r);}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Og(Object(n),!0).forEach(function(r){Z(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Og(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Vm(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 M_(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Je(e,t){if(e==null)return {};var n=M_(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 Cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ig(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ky(r.key),r);}}function Sn(e,t,n){return t&&Ig(e.prototype,t),n&&Ig(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Pg="%",N_=function(){function e(t){Cn(this,e),Z(this,"instanceId",void 0),Z(this,"cache",new Map),this.instanceId=t;}return Sn(e,[{key:"get",value:function(n){return this.cache.get(n.join(Pg))||null}},{key:"update",value:function(n,r){var o=n.join(Pg),i=this.cache.get(o),a=r(i);a===null?this.cache.delete(o):this.cache.set(o,a);}}]),e}(),Zd="data-token-hash",_o="data-css-hash",pi="__cssinjs_instance__";function k_(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(_o,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[pi]=o[pi]||e,o[pi]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(_o,"]"))).forEach(function(o){var i=o.getAttribute(_o);if(r[i]){if(o[pi]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o);}}else r[i]=!0;});}return new N_(e)}var A_=m__namespace.createContext({hashPriority:"low",cache:k_(),defaultCache:!0});const Um=A_;function Yi(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}function L_(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 Rg="data-rc-order",_g="data-rc-priority",D_="rc-util-key",Qd=new Map;function Ay(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):D_}function Rc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function z_(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ly(e){return Array.from((Qd.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Dy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Yi())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=z_(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(Rg,a),s&&i&&l.setAttribute(_g,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Rc(t),u=c.firstChild;if(r){if(s){var d=Ly(c).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(Rg)))return !1;var h=Number(f.getAttribute(_g)||0);return i>=h});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u);}else c.appendChild(l);return l}function zy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Rc(t);return Ly(n).find(function(r){return r.getAttribute(Ay(t))===e})}function jy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=zy(e,t);if(n){var r=Rc(t);r.removeChild(n);}}function j_(e,t){var n=Qd.get(e);if(!n||!L_(document,n)){var r=Dy("",t),o=r.parentNode;Qd.set(e,o),e.removeChild(r);}}function Jd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Rc(n);j_(r,n);var o=zy(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=Dy(e,n);return l.setAttribute(Ay(n),t),l}function B_(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 Km=function(){function e(){Cn(this,e),Z(this,"cache",void 0),Z(this,"keys",void 0),Z(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return Sn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else {var l,c;a=(l=a)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s);}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return (r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return !!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var d=G(c,2),f=d[1];return o.internalGet(u)[1]<f?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=G(i,1),s=a[0];this.delete(s);}this.keys.push(n);}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else {var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map;}});}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return (!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return !B_(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();Z(Km,"MAX_CACHE_SIZE",20);Z(Km,"MAX_CACHE_OFFSET",5);var Tg=0,By=function(){function e(t){Cn(this,e),Z(this,"derivatives",void 0),Z(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Tg,t.length===0&&(t.length>0,void 0),Tg+=1;}return Sn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),qu=new Km;function Ha(e){var t=Array.isArray(e)?e:[e];return qu.has(t)||qu.set(t,new By(t)),qu.get(t)}function $l(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof By?t+=r.id:r&&at(r)==="object"?t+=$l(r):t+=r;}),t}function H_(e,t){return Vm("".concat(t,"_").concat($l(e)))}var xa="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Hy="_bAmBoO_";function F_(e,t,n){if(Yi()){var r,o;Jd(e,xa);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i);var a=n?n(i):(r=getComputedStyle(i).content)===null||r===void 0?void 0:r.includes(Hy);return (o=i.parentNode)===null||o===void 0||o.removeChild(i),jy(xa),a}return !1}var Yu=void 0;function W_(){return Yu===void 0&&(Yu=F_("@layer ".concat(xa," { .").concat(xa,' { content: "').concat(Hy,'"!important; } }'),function(e){e.className=xa;})),Yu}var Mg=Yi()?m__namespace.useLayoutEffect:m__namespace.useEffect,V_=function(t,n){var r=m__namespace.useRef(!0);Mg(function(){return t(r.current)},n),Mg(function(){return r.current=!1,function(){r.current=!0;}},[]);},U_=Q({},m__namespace),Ng=U_.useInsertionEffect,K_=function(t,n,r){m__namespace.useMemo(t,r),V_(function(){return n(!0)},r);},G_=Ng?function(e,t,n){return Ng(function(){return e(),t()},n)}:K_;const X_=G_;var q_=Q({},m__namespace),Y_=q_.useInsertionEffect,Z_=function(t){var n=[],r=!1;function o(i){r||n.push(i);}return m__namespace.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()});}},t),o},Q_=function(){return function(t){t();}},J_=typeof Y_<"u"?Z_:Q_;const eT=J_;function Fy(e,t,n,r,o){var i=m__namespace.useContext(Um),a=i.cache,s=[e].concat(Ze(t)),l=s.join("_"),c=eT([l]),u=function(v){a.update(s,function(g){var p=g||[],b=G(p,2),y=b[0],S=y===void 0?0:y,E=b[1],C=E,$=C||n(),x=[S,$];return v?v(x):x});};m__namespace.useMemo(function(){u();},[l]);var d=a.get(s),f=d[1];return X_(function(){o==null||o(f);},function(h){return u(function(v){var g=G(v,2),p=g[0],b=g[1];return h&&p===0&&(o==null||o(f)),[p+1,b]}),function(){a.update(s,function(v){var g=v||[],p=G(g,2),b=p[0],y=b===void 0?0:b,S=p[1],E=y-1;return E===0?(c(function(){return r==null?void 0:r(S,!1)}),null):[y-1,S]});}},[l]),f}var tT={},nT="css",wo=new Map;function rT(e){wo.set(e,(wo.get(e)||0)+1);}function oT(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Zd,'="').concat(e,'"]'));n.forEach(function(r){if(r[pi]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}var iT=0;function aT(e,t){wo.set(e,(wo.get(e)||0)-1);var n=Array.from(wo.keys()),r=n.filter(function(o){var i=wo.get(o)||0;return i<=0});n.length-r.length>iT&&r.forEach(function(o){oT(o,t),wo.delete(o);});}var Wy=function(t,n,r,o){var i=r.getDerivativeToken(t),a=Q(Q({},i),n);return o&&(a=o(a)),a};function sT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=m.useContext(Um),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,s=n.override,l=s===void 0?tT:s,c=n.formatToken,u=n.getComputedToken,d=m__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(Ze(t)))},[t]),f=m__namespace.useMemo(function(){return $l(d)},[d]),h=m__namespace.useMemo(function(){return $l(l)},[l]),v=Fy("token",[a,e.id,f,h],function(){var g=u?u(d,l,e):Wy(d,l,e,c),p=H_(g,a);g._tokenKey=p,rT(p);var b="".concat(nT,"-").concat(Vm(p));return g._hashId=b,[g,b]},function(g){aT(g[0]._tokenKey,o);});return v}function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Oe.apply(this,arguments)}var lT={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},kg="data-ant-cssinjs-cache-path",Vy="_FILE_STYLE__",To,Uy=!0;function cT(){if(!To&&(To={},Yi())){var e=document.createElement("div");e.className=kg,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=G(i,2),s=a[0],l=a[1];To[s]=l;});var n=document.querySelector("style[".concat(kg,"]"));if(n){var r;Uy=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n);}document.body.removeChild(e);}}function uT(e){return cT(),!!To[e]}function dT(e){var t=To[e],n=null;if(t&&Yi())if(Uy)n=Vy;else {var r=document.querySelector("style[".concat(_o,'="').concat(To[e],'"]'));r?n=r.innerHTML:delete To[e];}return [n,t]}var Ag=Yi(),fT="_skip_check_",Ky="_multi_value_";function Lg(e){var t=Po(b0(e),y0);return t.replace(/\{%%%\:[^;];}/g,";")}function mT(e){return at(e)==="object"&&e&&(fT in e||Ky in e)}function hT(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(Ze(l.slice(1))).join(" ")});return i.join(",")}var vT=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var f="",h={};function v(S){var E=S.getName(s);if(!h[E]){var C=e(S.style,n,{root:!1,parentSelectors:a}),$=G(C,1),x=$[0];h[E]="@keyframes ".concat(S.getName(s)).concat(x);}}function g(S){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(C){Array.isArray(C)?g(C,E):C&&E.push(C);}),E}var p=g(Array.isArray(t)?t:[t]);if(p.forEach(function(S){var E=typeof S=="string"&&!o?{}:S;if(typeof E=="string")f+="".concat(E,`
`);else if(E._keyframe)v(E);else {var C=d.reduce(function($,x){var w;return (x==null||(w=x.visit)===null||w===void 0?void 0:w.call(x,$))||$},E);Object.keys(C).forEach(function($){var x=C[$];if(at(x)==="object"&&x&&($!=="animationName"||!x._keyframe)&&!mT(x)){var w=!1,O=$.trim(),R=!1;(o||i)&&s?O.startsWith("@")?w=!0:O=hT($,s,c):o&&!s&&(O==="&"||O==="")&&(O="",R=!0);var A=e(x,n,{root:R,injectHash:w,parentSelectors:[].concat(Ze(a),[O])}),_=G(A,2),I=_[0],P=_[1];h=Q(Q({},h),P),f+="".concat(O).concat(I);}else {let M=function(L,z){var H=L.replace(/[A-Z]/g,function(B){return "-".concat(B.toLowerCase())}),W=z;!lT[L]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),L==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(v(z),W=z.getName(s)),f+="".concat(H,":").concat(W,";");};var T,N=(T=x==null?void 0:x.value)!==null&&T!==void 0?T:x;at(x)==="object"&&x!==null&&x!==void 0&&x[Ky]&&Array.isArray(N)?N.forEach(function(L){M($,L);}):M($,N);}});}}),!o)f="{".concat(f,"}");else if(l&&W_()){var b=l.split(","),y=b[b.length-1].trim();f="@layer ".concat(y," {").concat(f,"}"),b.length>1&&(f="@layer ".concat(l,"{%%%:%}").concat(f));}return [f,h]};function gT(e,t){return Vm("".concat(e.join("%")).concat(t))}function pT(){return null}function ef(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=m__namespace.useContext(Um),d=u.autoClear;u.mock;var f=u.defaultCache,h=u.hashPriority,v=u.container,g=u.ssrInline,p=u.transformers,b=u.linters,y=u.cache,S=n._tokenKey,E=[S].concat(Ze(r)),C=Ag,$=Fy("style",E,function(){var A=E.join("|");if(uT(A)){var _=dT(A),I=G(_,2),P=I[0],T=I[1];if(P)return [P,S,T,{},s,c]}var N=t(),M=vT(N,{hashId:o,hashPriority:h,layer:i,path:r.join("-"),transformers:p,linters:b}),L=G(M,2),z=L[0],H=L[1],W=Lg(z),B=gT(E,W);return [W,S,B,H,s,c]},function(A,_){var I=G(A,3),P=I[2];(_||d)&&Ag&&jy(P,{mark:_o});},function(A){var _=G(A,4),I=_[0];_[1];var P=_[2],T=_[3];if(C&&I!==Vy){var N={mark:_o,prepend:"queue",attachTo:v,priority:c},M=typeof a=="function"?a():a;M&&(N.csp={nonce:M});var L=Jd(I,P,N);L[pi]=y.instanceId,L.setAttribute(Zd,S),Object.keys(T).forEach(function(z){Jd(Lg(T[z]),"_effect-".concat(z),N);});}}),x=G($,3),w=x[0],O=x[1],R=x[2];return function(A){var _;if(!g||C||!f)_=m__namespace.createElement(pT,null);else {var I;_=m__namespace.createElement("style",Oe({},(I={},Z(I,Zd,O),Z(I,_o,R),I),{dangerouslySetInnerHTML:{__html:w}}));}return m__namespace.createElement(m__namespace.Fragment,null,_,A)}}var Rt=function(){function e(t,n){Cn(this,e),Z(this,"name",void 0),Z(this,"style",void 0),Z(this,"_keyframe",!0),this.name=t,this.style=n;}return Sn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function ei(e){return e.notSplit=!0,e}ei(["borderTop","borderBottom"]),ei(["borderTop"]),ei(["borderBottom"]),ei(["borderLeft","borderRight"]),ei(["borderLeft"]),ei(["borderRight"]);var bT=m.createContext({});const Gm=bT;function is(e,t,n){var r=m__namespace.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Gy(e){return Ty(e)||Ny(e)||Wm(e)||My()}function tf(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function Xy(e,t,n,r){if(!t.length)return n;var o=Gy(t),i=o[0],a=o.slice(1),s;return !e&&typeof i=="number"?s=[]:Array.isArray(e)?s=Ze(e):s=Q({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=Xy(s[i],a,n,r),s}function Zu(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!tf(e,t.slice(0,-1))?e:Xy(e,t,n,r)}function yT(e){return at(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Dg(e){return Array.isArray(e)?[]:{}}var CT=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ST(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Dg(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),c=tf(o,a),u=Array.isArray(c);if(u||yT(c)){if(!l.has(c)){l.add(c);var d=tf(r,a);u?r=Zu(r,a,[]):(!d||at(d)!=="object")&&(r=Zu(r,a,Dg(c))),CT(c).forEach(function(f){i([].concat(Ze(a),[f]),l);});}}else r=Zu(r,a,c);}i([]);}),r}var nf={},wT=function(t){};function xT(e,t){}function $T(e,t){}function ET(){nf={};}function qy(e,t,n){!t&&!nf[n]&&(e(!1,n),nf[n]=!0);}function Ir(e,t){qy(xT,e,t);}function OT(e,t){qy($T,e,t);}Ir.preMessage=wT;Ir.resetWarned=ET;Ir.noteOnce=OT;const IT=m.createContext(void 0),Yy={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 PT={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 RT={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Zy=RT,_T={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"]},PT),timePickerLocale:Object.assign({},Zy)},zg=_T,Dn="${label} is not a valid ${type}",TT={locale:"en",Pagination:Yy,DatePicker:zg,TimePicker:Zy,Calendar:zg,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:Dn,method:Dn,array:Dn,object:Dn,number:Dn,date:Dn,boolean:Dn,integer:Dn,float:Dn,regexp:Dn,email:Dn,url:Dn,hex:Dn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}},zr=TT;Object.assign({},zr.Modal);let il=[];const jg=()=>il.reduce((e,t)=>Object.assign(Object.assign({},e),t),zr.Modal);function MT(e){if(e){const t=Object.assign({},e);return il.push(t),jg(),()=>{il=il.filter(n=>n!==t),jg();}}Object.assign({},zr.Modal);}const NT=m.createContext(void 0),Xm=NT,kT=(e,t)=>{const n=m__namespace.useContext(Xm),r=m__namespace.useMemo(()=>{var i;const a=t||zr[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=m__namespace.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?zr.locale:i},[n]);return [r,o]},Zi=kT,AT="internalMark",LT=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;m__namespace.useEffect(()=>MT(t&&t.Modal),[t]);const o=m__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return m__namespace.createElement(Xm.Provider,{value:o},n)},DT=LT,Fa=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],zT="5.8.4";function mn(e,t){jT(e)&&(e="100%");var n=BT(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 ks(e){return Math.min(1,Math.max(0,e))}function jT(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function BT(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Qy(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function As(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Oo(e){return e.length===1?"0"+e:String(e)}function HT(e,t,n){return {r:mn(e,255)*255,g:mn(t,255)*255,b:mn(n,255)*255}}function Bg(e,t,n){e=mn(e,255),t=mn(t,255),n=mn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else {var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6;}return {h:i,s:a,l:s}}function Qu(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 FT(e,t,n){var r,o,i;if(e=mn(e,360),t=mn(t,100),n=mn(n,100),t===0)o=n,i=n,r=n;else {var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Qu(s,a,e+1/3),o=Qu(s,a,e),i=Qu(s,a,e-1/3);}return {r:r*255,g:o*255,b:i*255}}function rf(e,t,n){e=mn(e,255),t=mn(t,255),n=mn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else {switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6;}return {h:i,s:l,v:a}}function WT(e,t,n){e=mn(e,360)*6,t=mn(t,100),n=mn(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,a,i,i,s,n][l],u=[s,n,n,a,i,i][l],d=[i,i,s,n,n,a][l];return {r:c*255,g:u*255,b:d*255}}function of(e,t,n,r){var o=[Oo(Math.round(e).toString(16)),Oo(Math.round(t).toString(16)),Oo(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function VT(e,t,n,r,o){var i=[Oo(Math.round(e).toString(16)),Oo(Math.round(t).toString(16)),Oo(Math.round(n).toString(16)),Oo(UT(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 UT(e){return Math.round(parseFloat(e)*255).toString(16)}function Hg(e){return jn(e)/255}function jn(e){return parseInt(e,16)}function KT(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var af={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function hi(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=qT(e)),typeof e=="object"&&(Tr(e.r)&&Tr(e.g)&&Tr(e.b)?(t=HT(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Tr(e.h)&&Tr(e.s)&&Tr(e.v)?(r=As(e.s),o=As(e.v),t=WT(e.h,r,o),a=!0,s="hsv"):Tr(e.h)&&Tr(e.s)&&Tr(e.l)&&(r=As(e.s),i=As(e.l),t=FT(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Qy(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 GT="[-\\+]?\\d+%?",XT="[-\\+]?\\d*\\.\\d+%?",oo="(?:".concat(XT,")|(?:").concat(GT,")"),Ju="[\\s|\\(]+(".concat(oo,")[,|\\s]+(").concat(oo,")[,|\\s]+(").concat(oo,")\\s*\\)?"),ed="[\\s|\\(]+(".concat(oo,")[,|\\s]+(").concat(oo,")[,|\\s]+(").concat(oo,")[,|\\s]+(").concat(oo,")\\s*\\)?"),or={CSS_UNIT:new RegExp(oo),rgb:new RegExp("rgb"+Ju),rgba:new RegExp("rgba"+ed),hsl:new RegExp("hsl"+Ju),hsla:new RegExp("hsla"+ed),hsv:new RegExp("hsv"+Ju),hsva:new RegExp("hsva"+ed),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 qT(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(af[e])e=af[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=or.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=or.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=or.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=or.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=or.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=or.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=or.hex8.exec(e),n?{r:jn(n[1]),g:jn(n[2]),b:jn(n[3]),a:Hg(n[4]),format:t?"name":"hex8"}:(n=or.hex6.exec(e),n?{r:jn(n[1]),g:jn(n[2]),b:jn(n[3]),format:t?"name":"hex"}:(n=or.hex4.exec(e),n?{r:jn(n[1]+n[1]),g:jn(n[2]+n[2]),b:jn(n[3]+n[3]),a:Hg(n[4]+n[4]),format:t?"name":"hex8"}:(n=or.hex3.exec(e),n?{r:jn(n[1]+n[1]),g:jn(n[2]+n[2]),b:jn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Tr(e){return !!or.CSS_UNIT.exec(String(e))}var Wt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=KT(t)),this.originalInput=t;var o=hi(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok;}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return !this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return (t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Qy(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=rf(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=rf(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Bg(this.r,this.g,this.b);return {h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Bg(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),of(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),VT(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return {r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return "".concat(Math.round(mn(n,255)*100),"%")};return {r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(mn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return "transparent";if(this.a<1)return !1;for(var t="#"+of(this.r,this.g,this.b,!1),n=0,r=Object.entries(af);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=ks(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=ks(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=ks(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=ks(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}(),Ls=2,Fg=.16,YT=.05,ZT=.05,QT=.15,Jy=5,e1=4,JT=[{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 Wg(e){var t=e.r,n=e.g,r=e.b,o=rf(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function Ds(e){var t=e.r,n=e.g,r=e.b;return "#".concat(of(t,n,r,!1))}function eM(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 Vg(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ls*t:Math.round(e.h)+Ls*t:r=n?Math.round(e.h)+Ls*t:Math.round(e.h)-Ls*t,r<0?r+=360:r>=360&&(r-=360),r}function Ug(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Fg*t:t===e1?r=e.s+Fg:r=e.s+YT*t,r>1&&(r=1),n&&t===Jy&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Kg(e,t,n){var r;return n?r=e.v+ZT*t:r=e.v-QT*t,r>1&&(r=1),Number(r.toFixed(2))}function jr(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=hi(e),o=Jy;o>0;o-=1){var i=Wg(r),a=Ds(hi({h:Vg(i,o,!0),s:Ug(i,o,!0),v:Kg(i,o,!0)}));n.push(a);}n.push(Ds(r));for(var s=1;s<=e1;s+=1){var l=Wg(r),c=Ds(hi({h:Vg(l,s),s:Ug(l,s),v:Kg(l,s)}));n.push(c);}return t.theme==="dark"?JT.map(function(u){var d=u.index,f=u.opacity,h=Ds(eM(hi(t.backgroundColor||"#141414"),hi(n[d]),f*100));return h}):n}var td={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},al={},nd={};Object.keys(td).forEach(function(e){al[e]=jr(td[e]),al[e].primary=al[e][5],nd[e]=jr(td[e],{theme:"dark",backgroundColor:"#141414"}),nd[e].primary=nd[e][5];});var tM=al.blue;const nM=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},t1=nM;function rM(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 qm={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"},oM=Object.assign(Object.assign({},qm),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),as=oM;function n1(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(o),h=n(i),v=n(a),g=n(s),p=r(c,u),b=e.colorLink||e.colorInfo,y=n(b);return Object.assign(Object.assign({},p),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Wt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const iM=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}},aM=iM;function sM(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},aM(r))}const Mr=(e,t)=>new Wt(e).setAlpha(t).toRgbString(),sa=(e,t)=>new Wt(e).darken(t).toHexString(),lM=e=>{const t=jr(e);return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},cM=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:Mr(r,.88),colorTextSecondary:Mr(r,.65),colorTextTertiary:Mr(r,.45),colorTextQuaternary:Mr(r,.25),colorFill:Mr(r,.15),colorFillSecondary:Mr(r,.06),colorFillTertiary:Mr(r,.04),colorFillQuaternary:Mr(r,.02),colorBgLayout:sa(n,4),colorBgContainer:sa(n,0),colorBgElevated:sa(n,0),colorBgSpotlight:Mr(r,.85),colorBorder:sa(n,15),colorBorderSecondary:sa(n,6)}};function uM(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 dM=e=>{const t=uM(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]}},r1=dM;function ss(e){const t=Object.keys(qm).map(n=>{const r=jr(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),n1(e,{generateColorPalettes:lM,generateNeutralColorPalettes:cM})),r1(e.fontSize)),rM(e)),t1(e)),sM(e))}const o1=Ha(ss),El={token:as,hashed:!0},i1=m.createContext(El);function rd(e){return e>=0&&e<=255}function zs(e,t){const{r:n,g:r,b:o,a:i}=new Wt(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Wt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),f=Math.round((o-l*(1-c))/c);if(rd(u)&&rd(d)&&rd(f))return new Wt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new Wt({r:n,g:r,b:o,a:1}).toRgbString()}var fM=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 Ym(e){const{override:t}=e,n=fM(e,["override"]),r=Object.assign({},t);Object.keys(as).forEach(f=>{delete r[f];});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const f="0s";o.motionDurationFast=f,o.motionDurationMid=f,o.motionDurationSlow=f;}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:zs(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:zs(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:zs(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:zs(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new Wt("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new Wt("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new Wt("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Gg=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 a1=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Gg(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Ym(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Gg(c,["theme"]);let f=d;u&&(f=a1(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=f;}),a};function Kr(){const{token:e,hashed:t,theme:n,components:r}=m.useContext(i1),o=`${zT}-${t||""}`,i=n||o1,[a,s]=sT(i,[as,e],{salt:o,override:Object.assign({override:e},r),getComputedToken:a1,formatToken:Ym});return [i,a,t?s:""]}const s1="anticon",mM=(e,t)=>t||(e?`ant-${e}`:"ant"),nt=m__namespace.createContext({getPrefixCls:mM,iconPrefixCls:s1}),hM=(e,t,n,r,o)=>{const i=e/2,a=0,s=i,l=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),u=i-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),f=2*i-u,h=d,v=2*i-l,g=c,p=2*i-a,b=s,y=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),S=n*(Math.sqrt(2)-1);return {pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${S}px 100%, 50% ${S}px, ${2*i-S}px 100%, ${S}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${f} ${h} L ${v} ${g} A ${n} ${n} 0 0 0 ${p} ${b} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:y,height:y,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},Lo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Tt=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Uo=()=>({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"}}),sf=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),vM=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n  &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),gM=(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"}}}}},Do=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),zo=e=>({"&:focus-visible":Object.assign({},Do(e))}),l1=typeof CSSINJS_STATISTIC<"u";let lf=!0;function ft(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!l1)return Object.assign.apply(Object,[{}].concat(t));lf=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]});});}),lf=!0,r}function pM(){}function bM(e){let t,n=e,r=pM;return l1&&(t=new Set,n=new Proxy(e,{get(o,i){return lf&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t);}),{token:n,keys:t,flush:r}}function Vt(e,t,n,r){return o=>{const[i,a,s]=Kr(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=m.useContext(nt),d=l(),f={theme:i,token:a,hashId:s,nonce:()=>u==null?void 0:u.nonce,clientOnly:r==null?void 0:r.clientOnly,order:-999};return ef(Object.assign(Object.assign({},f),{clientOnly:!1,path:["Shared",d]}),()=>[{"&":vM(a)}]),[ef(Object.assign(Object.assign({},f),{path:[e,o,c]}),()=>{const{token:h,flush:v}=bM(a),g=Object.assign({},a[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:C}=r;C.forEach($=>{let[x,w]=$;var O;(g!=null&&g[x]||g!=null&&g[w])&&((O=g[w])!==null&&O!==void 0||(g[w]=g==null?void 0:g[x]));});}const p=typeof n=="function"?n(ft(h,g??{})):n,b=Object.assign(Object.assign({},p),g),y=`.${o}`,S=ft(h,{componentCls:y,prefixCls:o,iconCls:`.${c}`,antCls:`.${d}`},b),E=t(S,{hashId:s,prefixCls:o,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:g});return v(e,b),[(r==null?void 0:r.resetStyle)===!1?null:gM(a,o),E]}),s]}}function c1(e,t){return Fa.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}function yM(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 Xg="data-rc-order",CM="rc-util-key",cf=new Map;function u1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):CM}function _c(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function SM(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function d1(e){return Array.from((cf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function f1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!er())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(Xg,SM(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=_c(t),a=i.firstChild;if(r){if(r==="queue"){var s=d1(i).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(Xg))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,a);}else i.appendChild(o);return o}function m1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=_c(t);return d1(n).find(function(r){return r.getAttribute(u1(t))===e})}function qg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=m1(e,t);if(n){var r=_c(t);r.removeChild(n);}}function wM(e,t){var n=cf.get(e);if(!n||!yM(document,n)){var r=f1("",t),o=r.parentNode;cf.set(e,o),e.removeChild(r);}}function Zm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=_c(n);wM(r,n);var o=m1(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=f1(e,n);return l.setAttribute(u1(n),t),l}const xM=`-ant-${Date.now()}-${Math.random()}`;function $M(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new Wt(a),c=jr(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2];};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Wt(t.primaryColor),s=jr(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new Wt(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2));}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
  :root {
    ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
`)}
  }
  `.trim()}function EM(e,t){const n=$M(e,t);er()&&Zm(n,`${xM}-dynamic-theme`);}const uf=m__namespace.createContext(!1),OM=e=>{let{children:t,disabled:n}=e;const r=m__namespace.useContext(uf);return m__namespace.createElement(uf.Provider,{value:n??r},t)},Pr=uf,df=m__namespace.createContext(void 0),IM=e=>{let{children:t,size:n}=e;const r=m__namespace.useContext(df);return m__namespace.createElement(df.Provider,{value:n||r},t)},Tc=df;function PM(){const e=m.useContext(Pr),t=m.useContext(Tc);return {componentDisabled:e,componentSize:t}}function Mc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(Ir(!l,"Warning: There may be circular references"),l)return !1;if(i===a)return !0;if(n&&s>1)return !1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return !1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return !1;return !0}if(i&&a&&at(i)==="object"&&at(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(f){return o(i[f],a[f],c)})}return !1}return o(e,t)}function RM(e,t){const n=e||{},r=n.inherit===!1||!t?El:t;return is(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(i=>{o[i]=Object.assign(Object.assign({},o[i]),e.components[i]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,i)=>o.some((a,s)=>{const l=i[s];return !Mc(a,l,!0)}))}function Ol(e){return e instanceof HTMLElement||e instanceof SVGElement}function Il(e){return Ol(e)?e:e instanceof m.Component?s0.findDOMNode(e):null}function Qm(e,t){typeof e=="function"?e(t):at(e)==="object"&&e&&"current"in e&&(e.current=t);}function In(){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){Qm(i,o);});}}function ls(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return is(function(){return In.apply(void 0,t)},t,function(r,o){return r.length===o.length&&r.every(function(i,a){return i===o[a]})})}function Ko(e){var t,n,r=mm.isMemo(e)?e.type.type:e.type;return !(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}var _M=["children"],h1=m__namespace.createContext({});function TM(e){var t=e.children,n=Je(e,_M);return m__namespace.createElement(h1.Provider,{value:n},t)}function ff(e,t){return ff=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ff(e,t)}function fo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ff(e,t);}function Pl(e){return Pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pl(e)}function MM(){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 mf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NM(e,t){if(t&&(at(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mf(e)}function mo(e){var t=MM();return function(){var r=Pl(e),o;if(t){var i=Pl(this).constructor;o=Reflect.construct(r,arguments,i);}else o=r.apply(this,arguments);return NM(this,o)}}var kM=function(e){fo(n,e);var t=mo(n);function n(){return Cn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(m__namespace.Component),Co="none",js="appear",Bs="enter",Hs="leave",Yg="none",ar="prepare",bi="start",yi="active",Jm="end",v1="prepared";function Zg(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 AM(e,t){var n={animationend:Zg("Animation","AnimationEnd"),transitionend:Zg("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var LM=AM(er(),typeof window<"u"?window:{}),g1={};if(er()){var DM=document.createElement("div");g1=DM.style;}var Fs={};function p1(e){if(Fs[e])return Fs[e];var t=LM[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 g1)return Fs[e]=t[i],Fs[e]}return ""}var b1=p1("animationend"),y1=p1("transitionend"),C1=!!(b1&&y1),Qg=b1||"animationend",Jg=y1||"transitionend";function ep(e,t){if(!e)return null;if(at(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const zM=function(e){var t=m.useRef(),n=m.useRef(e);n.current=e;var r=m__namespace.useCallback(function(a){n.current(a);},[]);function o(a){a&&(a.removeEventListener(Jg,r),a.removeEventListener(Qg,r));}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(Jg,r),a.addEventListener(Qg,r),t.current=a);}return m__namespace.useEffect(function(){return function(){o(t.current);}},[]),[i,o]};var S1=er()?m.useLayoutEffect:m.useEffect,w1=function(t){return +setTimeout(t,16)},x1=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(w1=function(t){return window.requestAnimationFrame(t)},x1=function(t){return window.cancelAnimationFrame(t)});var tp=0,eh=new Map;function $1(e){eh.delete(e);}var gt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;tp+=1;var r=tp;function o(i){if(i===0)$1(r),t();else {var a=w1(function(){o(i-1);});eh.set(r,a);}}return o(n),r};gt.cancel=function(e){var t=eh.get(e);return $1(t),x1(t)};const jM=function(){var e=m__namespace.useRef(null);function t(){gt.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=gt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1);});e.current=i;}return m__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var BM=[ar,bi,yi,Jm],HM=[ar,v1],E1=!1,FM=!0;function O1(e){return e===yi||e===Jm}const WM=function(e,t,n){var r=Ro(Yg),o=G(r,2),i=o[0],a=o[1],s=jM(),l=G(s,2),c=l[0],u=l[1];function d(){a(ar,!0);}var f=t?HM:BM;return S1(function(){if(i!==Yg&&i!==Jm){var h=f.indexOf(i),v=f[h+1],g=n(i);g===E1?a(v,!0):v&&c(function(p){function b(){p.isCanceled()||a(v,!0);}g===!0?b():Promise.resolve(g).then(b);});}},[e,i]),m__namespace.useEffect(function(){return function(){u();}},[]),[d,i]};function VM(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,h=r.onEnterPrepare,v=r.onLeavePrepare,g=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,S=r.onEnterActive,E=r.onLeaveActive,C=r.onAppearEnd,$=r.onEnterEnd,x=r.onLeaveEnd,w=r.onVisibleChanged,O=Ro(),R=G(O,2),A=R[0],_=R[1],I=Ro(Co),P=G(I,2),T=P[0],N=P[1],M=Ro(null),L=G(M,2),z=L[0],H=L[1],W=m.useRef(!1),B=m.useRef(null);function V(){return n()}var j=m.useRef(!1);function K(){N(Co,!0),H(null,!0);}function ee(me){var he=V();if(!(me&&!me.deadline&&me.target!==he)){var ye=j.current,Re;T===js&&ye?Re=C==null?void 0:C(he,me):T===Bs&&ye?Re=$==null?void 0:$(he,me):T===Hs&&ye&&(Re=x==null?void 0:x(he,me)),T!==Co&&ye&&Re!==!1&&K();}}var q=zM(ee),U=G(q,1),X=U[0],ie=function(he){var ye,Re,Be;switch(he){case js:return ye={},Z(ye,ar,f),Z(ye,bi,g),Z(ye,yi,y),ye;case Bs:return Re={},Z(Re,ar,h),Z(Re,bi,p),Z(Re,yi,S),Re;case Hs:return Be={},Z(Be,ar,v),Z(Be,bi,b),Z(Be,yi,E),Be;default:return {}}},de=m__namespace.useMemo(function(){return ie(T)},[T]),ge=WM(T,!e,function(me){if(me===ar){var he=de[ar];return he?he(V()):E1}if(ue in de){var ye;H(((ye=de[ue])===null||ye===void 0?void 0:ye.call(de,V(),null))||null);}return ue===yi&&(X(V()),u>0&&(clearTimeout(B.current),B.current=setTimeout(function(){ee({deadline:!0});},u))),ue===v1&&K(),FM}),re=G(ge,2),se=re[0],ue=re[1],Y=O1(ue);j.current=Y,S1(function(){_(t);var me=W.current;W.current=!0;var he;!me&&t&&s&&(he=js),me&&t&&i&&(he=Bs),(me&&!t&&c||!me&&d&&!t&&c)&&(he=Hs);var ye=ie(he);he&&(e||ye[ar])?(N(he),se()):N(Co);},[t]),m.useEffect(function(){(T===js&&!s||T===Bs&&!i||T===Hs&&!c)&&N(Co);},[s,i,c]),m.useEffect(function(){return function(){W.current=!1,clearTimeout(B.current);}},[]);var ne=m__namespace.useRef(!1);m.useEffect(function(){A&&(ne.current=!0),A!==void 0&&T===Co&&((ne.current||A)&&(w==null||w(A)),ne.current=!0);},[A,T]);var J=z;return de[ar]&&ue===bi&&(J=Q({transition:"none"},J)),[T,ue,J,A??t]}function UM(e){var t=e;at(e)==="object"&&(t=e.transitionSupport);function n(o,i){return !!(o.motionName&&t&&i!==!1)}var r=m__namespace.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,f=o.motionName,h=o.leavedClassName,v=o.eventProps,g=m__namespace.useContext(h1),p=g.motion,b=n(o,p),y=m.useRef(),S=m.useRef();function E(){try{return y.current instanceof HTMLElement?y.current:Il(S.current)}catch{return null}}var C=VM(b,s,E,o),$=G(C,4),x=$[0],w=$[1],O=$[2],R=$[3],A=m__namespace.useRef(R);R&&(A.current=!0);var _=m__namespace.useCallback(function(H){y.current=H,Qm(i,H);},[i]),I,P=Q(Q({},v),{},{visible:s});if(!d)I=null;else if(x===Co)R?I=d(Q({},P),_):!c&&A.current&&h?I=d(Q(Q({},P),{},{className:h}),_):u||!c&&!h?I=d(Q(Q({},P),{},{style:{display:"none"}}),_):I=null;else {var T,N;w===ar?N="prepare":O1(w)?N="active":w===bi&&(N="start");var M=ep(f,"".concat(x,"-").concat(N));I=d(Q(Q({},P),{},{className:F(ep(f,x),(T={},Z(T,M,M&&N),Z(T,f,typeof f=="string"),T)),style:O}),_);}if(m__namespace.isValidElement(I)&&Ko(I)){var L=I,z=L.ref;z||(I=m__namespace.cloneElement(I,{ref:_}));}return m__namespace.createElement(kM,{ref:S},I)});return r.displayName="CSSMotion",r}const ho=UM(C1);var hf="add",vf="keep",gf="remove",od="removed";function KM(e){var t;return e&&at(e)==="object"&&"key"in e?t=e:t={key:e},Q(Q({},t),{},{key:String(t.key)})}function pf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(KM)}function XM(){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=pf(e),a=pf(t);i.forEach(function(c){for(var u=!1,d=r;d<o;d+=1){var f=a[d];if(f.key===c.key){r<d&&(n=n.concat(a.slice(r,d).map(function(h){return Q(Q({},h),{},{status:hf})})),r=d),n.push(Q(Q({},f),{},{status:vf})),r+=1,u=!0;break}}u||n.push(Q(Q({},c),{},{status:gf}));}),r<o&&(n=n.concat(a.slice(r).map(function(c){return Q(Q({},c),{},{status:hf})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1;});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==gf}),n.forEach(function(u){u.key===c&&(u.status=vf);});}),n}var qM=["component","children","onVisibleChanged","onAllRemoved"],YM=["status"],ZM=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function QM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ho,n=function(r){fo(i,r);var o=mo(i);function i(){var a;Cn(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),Z(mf(a),"state",{keyEntities:[]}),Z(mf(a),"removeKey",function(u){var d=a.state.keyEntities,f=d.map(function(h){return h.key!==u?h:Q(Q({},h),{},{status:od})});return a.setState({keyEntities:f}),f.filter(function(h){var v=h.status;return v!==od}).length}),a}return Sn(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged,h=c.onAllRemoved,v=Je(c,qM),g=u||m__namespace.Fragment,p={};return ZM.forEach(function(b){p[b]=v[b],delete v[b];}),delete v.keys,m__namespace.createElement(g,v,l.map(function(b){var y=b.status,S=Je(b,YM),E=y===hf||y===vf;return m__namespace.createElement(t,Oe({},p,{key:S.key,visible:E,eventProps:S,onVisibleChanged:function($){if(f==null||f($,{key:S.key}),!$){var x=s.removeKey(S.key);x===0&&h&&h();}}}),d)}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=pf(c),f=XM(u,d);return {keyEntities:f.filter(function(h){var v=u.find(function(g){var p=g.key;return h.key===p});return !(v&&v.status===od&&h.status===gf)})}}}]),i}(m__namespace.Component);return Z(n,"defaultProps",{component:"div"}),n}QM(C1);function JM(e){const{children:t}=e,[,n]=Kr(),{motion:r}=n,o=m__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?m__namespace.createElement(TM,{motion:r},t):t}const eN=(e,t)=>{const[n,r]=Kr();return ef({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Uo()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},tN=eN;var nN=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 rN=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],oN="ant";let I1;function iN(){return I1||oN}function aN(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const sN=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(I1=t),r&&aN(r)&&EM(iN(),r);},lN=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:g,parentContext:p,iconPrefixCls:b,theme:y,componentDisabled:S,segmented:E,statistic:C,spin:$,calendar:x,carousel:w,cascader:O,collapse:R,typography:A,checkbox:_,descriptions:I,divider:P,drawer:T,skeleton:N,steps:M,image:L,layout:z,list:H,mentions:W,modal:B,progress:V,result:j,slider:K,breadcrumb:ee,menu:q,pagination:U,input:X,empty:ie,badge:de,radio:ge,rate:re,switch:se,transfer:ue,avatar:Y,message:ne,tag:J,table:me,card:he,tabs:ye,timeline:Re,timePicker:Be,upload:_e,notification:ae,tree:ve,colorPicker:be,datePicker:Se,wave:Ae}=e,ke=m__namespace.useCallback((oe,Ee)=>{const{prefixCls:He}=e;if(Ee)return Ee;const Qe=He||p.getPrefixCls("");return oe?`${Qe}-${oe}`:Qe},[p.getPrefixCls,e.prefixCls]),we=b||p.iconPrefixCls||s1,Ie=we!==p.iconPrefixCls,Fe=n||p.csp,xe=tN(we,Fe),Me=RM(y,p.theme),tt={csp:Fe,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:h??f,popupOverflow:v,getPrefixCls:ke,iconPrefixCls:we,theme:Me,segmented:E,statistic:C,spin:$,calendar:x,carousel:w,cascader:O,collapse:R,typography:A,checkbox:_,descriptions:I,divider:P,drawer:T,skeleton:N,steps:M,image:L,input:X,layout:z,list:H,mentions:W,modal:B,progress:V,result:j,slider:K,breadcrumb:ee,menu:q,pagination:U,empty:ie,badge:de,radio:ge,rate:re,switch:se,transfer:ue,avatar:Y,message:ne,tag:J,table:me,card:he,tabs:ye,timeline:Re,timePicker:Be,upload:_e,notification:ae,tree:ve,colorPicker:be,datePicker:Se,wave:Ae},ut=Object.assign({},p);Object.keys(tt).forEach(oe=>{tt[oe]!==void 0&&(ut[oe]=tt[oe]);}),rN.forEach(oe=>{const Ee=e[oe];Ee&&(ut[oe]=Ee);});const qe=is(()=>ut,ut,(oe,Ee)=>{const He=Object.keys(oe),Qe=Object.keys(Ee);return He.length!==Qe.length||He.some(ze=>oe[ze]!==Ee[ze])}),ct=m__namespace.useMemo(()=>({prefixCls:we,csp:Fe}),[we,Fe]);let Pe=Ie?xe(t):t;const te=m__namespace.useMemo(()=>{var oe,Ee,He,Qe;return ST(((oe=zr.Form)===null||oe===void 0?void 0:oe.defaultValidateMessages)||{},((He=(Ee=qe.locale)===null||Ee===void 0?void 0:Ee.Form)===null||He===void 0?void 0:He.defaultValidateMessages)||{},((Qe=qe.form)===null||Qe===void 0?void 0:Qe.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[qe,a==null?void 0:a.validateMessages]);Object.keys(te).length>0&&(Pe=m__namespace.createElement(IT.Provider,{value:te},t)),s&&(Pe=m__namespace.createElement(DT,{locale:s,_ANT_MARK__:AT},Pe)),(we||Fe)&&(Pe=m__namespace.createElement(Gm.Provider,{value:ct},Pe)),l&&(Pe=m__namespace.createElement(IM,{size:l},Pe)),Pe=m__namespace.createElement(JM,null,Pe);const fe=m__namespace.useMemo(()=>{const oe=Me||{},{algorithm:Ee,token:He,components:Qe}=oe,ze=nN(oe,["algorithm","token","components"]),pe=Ee&&(!Array.isArray(Ee)||Ee.length>0)?Ha(Ee):o1,$e={};return Object.entries(Qe||{}).forEach(Te=>{let[Ne,st]=Te;const et=Object.assign({},st);"algorithm"in et&&(et.algorithm===!0?et.theme=pe:(Array.isArray(et.algorithm)||typeof et.algorithm=="function")&&(et.theme=Ha(et.algorithm)),delete et.algorithm),$e[Ne]=et;}),Object.assign(Object.assign({},ze),{theme:pe,token:Object.assign(Object.assign({},as),He),components:$e})},[Me]);return y&&(Pe=m__namespace.createElement(i1.Provider,{value:fe},Pe)),S!==void 0&&(Pe=m__namespace.createElement(OM,{disabled:S},Pe)),m__namespace.createElement(nt.Provider,{value:qe},Pe)},Qi=e=>{const t=m__namespace.useContext(nt),n=m__namespace.useContext(Xm);return m__namespace.createElement(lN,Object.assign({parentContext:t,legacyLocale:n},e))};Qi.ConfigContext=nt;Qi.SizeContext=Tc;Qi.config=sN;Qi.useConfig=PM;Object.defineProperty(Qi,"SizeContext",{get:()=>Tc});const th=Qi;function cN(e){return function(n){return m__namespace.createElement(th,{theme:{token:{motion:!1,zIndexPopupBase:0}}},m__namespace.createElement(e,Object.assign({},n)))}}function nh(e,t,n,r){function o(i){const{prefixCls:a,style:s}=i,l=m__namespace.useRef(null),[c,u]=m__namespace.useState(0),[d,f]=m__namespace.useState(0),[h,v]=Dt(!1,{value:i.open}),{getPrefixCls:g}=m__namespace.useContext(nt),p=g(t||"select",a);m__namespace.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(E=>{const C=E[0].target;u(C.offsetHeight+8),f(C.offsetWidth);}),S=setInterval(()=>{var E;const C=n?`.${n(p)}`:`.${p}-dropdown`,$=(E=l.current)===null||E===void 0?void 0:E.querySelector(C);$&&(clearInterval(S),y.observe($));},10);return ()=>{clearInterval(S),y.disconnect();}}},[]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:h,visible:h,getPopupContainer:()=>l.current});return r&&(b=r(b)),m__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},m__namespace.createElement(e,Object.assign({},b)))}return cN(o)}function lr(e,t,n){return F({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const cs=(e,t)=>t||e,uN=e=>{const t=m.useContext(Tc);return m.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Wn=uN;function cr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return m.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(cr(r)):mm.isFragment(r)&&r.props?n=n.concat(cr(r.props.children,t)):n.push(r));}),n}function Wa(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(_,I,P){_[I]=P.value;},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(_,I,P){return Object.defineProperty(_,I,{value:P,enumerable:!0,configurable:!0,writable:!0}),_[I]}try{l({},"");}catch{l=function(P,T,N){return P[T]=N};}function c(_,I,P,T){var N=I&&I.prototype instanceof f?I:f,M=Object.create(N.prototype),L=new O(T||[]);return r(M,"_invoke",{value:C(_,P,L)}),M}function u(_,I,P){try{return {type:"normal",arg:_.call(I,P)}}catch(T){return {type:"throw",arg:T}}}e.wrap=c;var d={};function f(){}function h(){}function v(){}var g={};l(g,i,function(){return this});var p=Object.getPrototypeOf,b=p&&p(p(R([])));b&&b!==t&&n.call(b,i)&&(g=b);var y=v.prototype=f.prototype=Object.create(g);function S(_){["next","throw","return"].forEach(function(I){l(_,I,function(P){return this._invoke(I,P)});});}function E(_,I){function P(N,M,L,z){var H=u(_[N],_,M);if(H.type!=="throw"){var W=H.arg,B=W.value;return B&&at(B)=="object"&&n.call(B,"__await")?I.resolve(B.__await).then(function(V){P("next",V,L,z);},function(V){P("throw",V,L,z);}):I.resolve(B).then(function(V){W.value=V,L(W);},function(V){return P("throw",V,L,z)})}z(H.arg);}var T;r(this,"_invoke",{value:function(M,L){function z(){return new I(function(H,W){P(M,L,H,W);})}return T=T?T.then(z,z):z()}});}function C(_,I,P){var T="suspendedStart";return function(N,M){if(T==="executing")throw new Error("Generator is already running");if(T==="completed"){if(N==="throw")throw M;return A()}for(P.method=N,P.arg=M;;){var L=P.delegate;if(L){var z=$(L,P);if(z){if(z===d)continue;return z}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(T==="suspendedStart")throw T="completed",P.arg;P.dispatchException(P.arg);}else P.method==="return"&&P.abrupt("return",P.arg);T="executing";var H=u(_,I,P);if(H.type==="normal"){if(T=P.done?"completed":"suspendedYield",H.arg===d)continue;return {value:H.arg,done:P.done}}H.type==="throw"&&(T="completed",P.method="throw",P.arg=H.arg);}}}function $(_,I){var P=I.method,T=_.iterator[P];if(T===void 0)return I.delegate=null,P==="throw"&&_.iterator.return&&(I.method="return",I.arg=void 0,$(_,I),I.method==="throw")||P!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+P+"' method")),d;var N=u(T,_.iterator,I.arg);if(N.type==="throw")return I.method="throw",I.arg=N.arg,I.delegate=null,d;var M=N.arg;return M?M.done?(I[_.resultName]=M.value,I.next=_.nextLoc,I.method!=="return"&&(I.method="next",I.arg=void 0),I.delegate=null,d):M:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,d)}function x(_){var I={tryLoc:_[0]};1 in _&&(I.catchLoc=_[1]),2 in _&&(I.finallyLoc=_[2],I.afterLoc=_[3]),this.tryEntries.push(I);}function w(_){var I=_.completion||{};I.type="normal",delete I.arg,_.completion=I;}function O(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(x,this),this.reset(!0);}function R(_){if(_){var I=_[i];if(I)return I.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var P=-1,T=function N(){for(;++P<_.length;)if(n.call(_,P))return N.value=_[P],N.done=!1,N;return N.value=void 0,N.done=!0,N};return T.next=T}}return {next:A}}function A(){return {value:void 0,done:!0}}return h.prototype=v,r(y,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(_){var I=typeof _=="function"&&_.constructor;return !!I&&(I===h||(I.displayName||I.name)==="GeneratorFunction")},e.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,v):(_.__proto__=v,l(_,s,"GeneratorFunction")),_.prototype=Object.create(y),_},e.awrap=function(_){return {__await:_}},S(E.prototype),l(E.prototype,a,function(){return this}),e.AsyncIterator=E,e.async=function(_,I,P,T,N){N===void 0&&(N=Promise);var M=new E(c(_,I,P,T),N);return e.isGeneratorFunction(I)?M:M.next().then(function(L){return L.done?L.value:M.next()})},S(y),l(y,s,"Generator"),l(y,i,function(){return this}),l(y,"toString",function(){return "[object Generator]"}),e.keys=function(_){var I=Object(_),P=[];for(var T in I)P.push(T);return P.reverse(),function N(){for(;P.length;){var M=P.pop();if(M in I)return N.value=M,N.done=!1,N}return N.done=!0,N}},e.values=R,O.prototype={constructor:O,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!I)for(var P in this)P.charAt(0)==="t"&&n.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=void 0);},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var P=this;function T(W,B){return L.type="throw",L.arg=I,P.next=W,B&&(P.method="next",P.arg=void 0),!!B}for(var N=this.tryEntries.length-1;N>=0;--N){var M=this.tryEntries[N],L=M.completion;if(M.tryLoc==="root")return T("end");if(M.tryLoc<=this.prev){var z=n.call(M,"catchLoc"),H=n.call(M,"finallyLoc");if(z&&H){if(this.prev<M.catchLoc)return T(M.catchLoc,!0);if(this.prev<M.finallyLoc)return T(M.finallyLoc)}else if(z){if(this.prev<M.catchLoc)return T(M.catchLoc,!0)}else {if(!H)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return T(M.finallyLoc)}}}},abrupt:function(I,P){for(var T=this.tryEntries.length-1;T>=0;--T){var N=this.tryEntries[T];if(N.tryLoc<=this.prev&&n.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var M=N;break}}M&&(I==="break"||I==="continue")&&M.tryLoc<=P&&P<=M.finallyLoc&&(M=null);var L=M?M.completion:{};return L.type=I,L.arg=P,M?(this.method="next",this.next=M.finallyLoc,d):this.complete(L)},complete:function(I,P){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&P&&(this.next=P),d},finish:function(I){for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P];if(T.finallyLoc===I)return this.complete(T.completion,T.afterLoc),w(T),d}},catch:function(I){for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P];if(T.tryLoc===I){var N=T.completion;if(N.type==="throw"){var M=N.arg;w(T);}return M}}throw new Error("illegal catch attempt")},delegateYield:function(I,P,T){return this.delegate={iterator:R(I),resultName:P,nextLoc:T},this.method==="next"&&(this.arg=void 0),d}},e}function np(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 P1(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){np(i,r,o,a,s,"next",l);}function s(l){np(i,r,o,a,s,"throw",l);}a(void 0);})}}function yn(e,t){var n=Q({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}const tr=m__namespace.createContext({}),Va=e=>{let{children:t,status:n,override:r}=e;const o=m.useContext(tr),i=m.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return m__namespace.createElement(tr.Provider,{value:i},t)},Ai=e=>e?typeof e=="function"?e():e:null,id=()=>({height:0,opacity:0}),rp=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},dN=e=>({height:e?e.offsetHeight:0}),ad=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",R1=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:id,onEnterStart:id,onAppearActive:rp,onEnterActive:rp,onLeaveStart:dN,onLeaveActive:id,onAppearEnd:ad,onEnterEnd:ad,onLeaveEnd:ad,motionDeadline:500}},Nc=(e,t,n)=>n!==void 0?n:`${e}-${t}`;var _1=m__namespace.createContext(null),op=[];function fN(e,t){var n=m__namespace.useState(function(){if(!er())return null;var v=document.createElement("div");return v}),r=G(n,1),o=r[0],i=m__namespace.useRef(!1),a=m__namespace.useContext(_1),s=m__namespace.useState(op),l=G(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(v){u(function(g){var p=[v].concat(Ze(g));return p});});function f(){o.parentElement||document.body.appendChild(o),i.current=!0;}function h(){var v;(v=o.parentElement)===null||v===void 0||v.removeChild(o),i.current=!1;}return Ft(function(){return e?a?a(f):f():h(),h},[e]),Ft(function(){c.length&&(c.forEach(function(v){return v()}),u(op));},[c]),[o,d]}var sd;function mN(e){if(typeof document>"u")return 0;if(e||sd===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),sd=o-i;}return sd}function hN(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var vN="rc-util-locker-".concat(Date.now()),ip=0;function gN(e){var t=!!e,n=m__namespace.useState(function(){return ip+=1,"".concat(vN,"_").concat(ip)}),r=G(n,1),o=r[0];Ft(function(){if(t){var i=mN(),a=hN();Zm(`
html body {
  overflow-y: hidden;
  `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
}`),o);}else qg(o);return function(){qg(o);}},[t,o]);}var ap=!1;function pN(e){return typeof e=="boolean"&&(ap=e),ap}var sp=function(t){return t===!1?!1:!er()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},T1=m__namespace.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,s=e.children,l=m__namespace.useState(n),c=G(l,2),u=c[0],d=c[1],f=u||n;m__namespace.useEffect(function(){(a||n)&&d(n);},[n,a]);var h=m__namespace.useState(function(){return sp(o)}),v=G(h,2),g=v[0],p=v[1];m__namespace.useEffect(function(){var A=sp(o);p(A??null);});var b=fN(f&&!g),y=G(b,2),S=y[0],E=y[1],C=g??S;gN(r&&n&&er()&&(C===S||C===document.body));var $=null;if(s&&Ko(s)&&t){var x=s;$=x.ref;}var w=ls($,t);if(!f||!er()||g===void 0)return null;var O=C===!1||pN(),R=s;return t&&(R=m__namespace.cloneElement(s,{ref:w})),m__namespace.createElement(_1.Provider,{value:E},O?R:s0.createPortal(R,C))}),M1=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}()}(),bf=typeof window<"u"&&typeof document<"u"&&window.document===document,Rl=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")()}(),bN=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Rl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),yN=2;function CN(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s();}function a(){bN(i);}function s(){var l=Date.now();if(n){if(l-o<yN)return;r=!0;}else n=!0,r=!1,setTimeout(a,t);o=l;}return s}var SN=20,wN=["top","right","bottom","left","width","height","size","weight"],xN=typeof MutationObserver<"u",$N=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=CN(this.refresh.bind(this),SN);}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(){!bf||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),xN?(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(){!bf||!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=wN.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}(),N1=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},Li=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Rl},k1=kc(0,0,0,0);function _l(e){return parseFloat(e)||0}function lp(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+_l(i)},0)}function EN(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]=_l(a);}return n}function ON(e){var t=e.getBBox();return kc(0,0,t.width,t.height)}function IN(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return k1;var r=Li(e).getComputedStyle(e),o=EN(r),i=o.left+o.right,a=o.top+o.bottom,s=_l(r.width),l=_l(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=lp(r,"left","right")+i),Math.round(l+a)!==n&&(l-=lp(r,"top","bottom")+a)),!RN(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 kc(o.left,o.top,s,l)}var PN=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Li(e).SVGGraphicsElement}:function(e){return e instanceof Li(e).SVGElement&&typeof e.getBBox=="function"}}();function RN(e){return e===Li(e).document.documentElement}function _N(e){return bf?PN(e)?ON(e):IN(e):k1}function TN(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 N1(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function kc(e,t,n,r){return {x:e,y:t,width:n,height:r}}var MN=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=kc(0,0,0,0),this.target=t;}return e.prototype.isActive=function(){var t=_N(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}(),NN=function(){function e(t,n){var r=TN(n);N1(this,{target:t,contentRect:r});}return e}(),kN=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new M1,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 Li(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new MN(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 Li(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 NN(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}(),A1=typeof WeakMap<"u"?new WeakMap:new M1,L1=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=$N.getInstance(),r=new kN(t,n,this);A1.set(this,r);}return e}();["observe","unobserve","disconnect"].forEach(function(e){L1.prototype[e]=function(){var t;return (t=A1.get(this))[e].apply(t,arguments)};});var AN=function(){return typeof Rl.ResizeObserver<"u"?Rl.ResizeObserver:L1}(),io=new Map;function LN(e){e.forEach(function(t){var n,r=t.target;(n=io.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var D1=new AN(LN);function DN(e,t){io.has(e)||(io.set(e,new Set),D1.observe(e)),io.get(e).add(t);}function zN(e,t){io.has(e)&&(io.get(e).delete(t),io.get(e).size||(D1.unobserve(e),io.delete(e)));}var jN=function(e){fo(n,e);var t=mo(n);function n(){return Cn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(m__namespace.Component),yf=m__namespace.createContext(null);function BN(e){var t=e.children,n=e.onBatchResize,r=m__namespace.useRef(0),o=m__namespace.useRef([]),i=m__namespace.useContext(yf),a=m__namespace.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[]);}),i==null||i(s,l,c);},[n,i]);return m__namespace.createElement(yf.Provider,{value:a},t)}function HN(e,t){var n=e.children,r=e.disabled,o=m__namespace.useRef(null),i=m__namespace.useRef(null),a=m__namespace.useContext(yf),s=typeof n=="function",l=s?n(o):n,c=m__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&m__namespace.isValidElement(l)&&Ko(l),d=u?l.ref:null,f=m__namespace.useMemo(function(){return In(d,o)},[d,o]),h=function(){return Il(o.current)||Il(i.current)};m__namespace.useImperativeHandle(t,function(){return h()});var v=m__namespace.useRef(e);v.current=e;var g=m__namespace.useCallback(function(p){var b=v.current,y=b.onResize,S=b.data,E=p.getBoundingClientRect(),C=E.width,$=E.height,x=p.offsetWidth,w=p.offsetHeight,O=Math.floor(C),R=Math.floor($);if(c.current.width!==O||c.current.height!==R||c.current.offsetWidth!==x||c.current.offsetHeight!==w){var A={width:O,height:R,offsetWidth:x,offsetHeight:w};c.current=A;var _=x===Math.round(C)?C:x,I=w===Math.round($)?$:w,P=Q(Q({},A),{},{offsetWidth:_,offsetHeight:I});a==null||a(P,p,S),y&&Promise.resolve().then(function(){y(P,p);});}},[]);return m__namespace.useEffect(function(){var p=h();return p&&!r&&DN(p,g),function(){return zN(p,g)}},[o.current,r]),m__namespace.createElement(jN,{ref:i},u?m__namespace.cloneElement(l,{ref:f}):l)}var FN=m__namespace.forwardRef(HN),WN="rc-observer-key";function VN(e,t){var n=e.children,r=typeof n=="function"?[n]:cr(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(WN,"-").concat(i);return m__namespace.createElement(FN,Oe({},e,{key:a,ref:i===0?t:void 0}),o)})}var Br=m__namespace.forwardRef(VN);Br.Collection=BN;function z1(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function UN(e){return z1(e)!==(e==null?void 0:e.ownerDocument)}function Tl(e){return UN(e)?z1(e):null}function KN(){var e=Q({},m__namespace);return e.useId}var cp=0;function GN(e){var t=m__namespace.useState("ssr-id"),n=G(t,2),r=n[0],o=n[1],i=KN(),a=i==null?void 0:i();return m__namespace.useEffect(function(){if(!i){var s=cp;cp+=1,o("rc_unique_".concat(s));}},[]),e||a||r}const Ac=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 up=m__namespace.createContext(null);function dp(e){return e?Array.isArray(e)?e:[e]:[]}function XN(e,t,n,r){return m__namespace.useMemo(function(){var o=dp(n??t),i=dp(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}const rh=function(e){if(!e)return !1;if(e instanceof Element){if(e.offsetParent)return !0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return !0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return !0}}return !1};function qN(){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 YN(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(qN((s=e[l])===null||s===void 0?void 0:s.points,o,r))return "".concat(t,"-placement-").concat(l)}return ""}function fp(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function us(e){return e.ownerDocument.defaultView}function Cf(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=us(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 Ua(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function la(e){return Ua(parseFloat(e),0)}function mp(e,t){var n=Q({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=us(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,h=r.clientHeight,v=r.offsetWidth,g=r.clientWidth,p=la(s),b=la(l),y=la(c),S=la(u),E=Ua(Math.round(d.width/v*1e3)/1e3),C=Ua(Math.round(d.height/f*1e3)/1e3),$=(v-g-y-S)*E,x=(f-h-p-b)*C,w=p*C,O=b*C,R=y*E,A=S*E,_=0,I=0;if(i==="clip"){var P=la(a);_=P*E,I=P*C;}var T=d.x+R-_,N=d.y+w-I,M=T+d.width+2*_-R-A-$,L=N+d.height+2*I-w-O-x;n.left=Math.max(n.left,T),n.top=Math.max(n.top,N),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,L);}}),n}function hp(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 vp(e,t){var n=t||[],r=G(n,2),o=r[0],i=r[1];return [hp(e.width,o),hp(e.height,i)]}function gp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function ti(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Qr(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function ZN(e,t,n,r,o,i,a){var s=m__namespace.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=G(s,2),c=l[0],u=l[1],d=m__namespace.useRef(0),f=m__namespace.useMemo(function(){return t?Cf(t):[]},[t]),h=m__namespace.useRef({}),v=function(){h.current={};};e||v();var g=Tn(function(){if(t&&n&&e){let Yt=function(Zo,Yr){var Zr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me,oa=z.x+Zo,Rs=z.y+Yr,Su=oa+U,wu=Rs+q,xu=Math.max(oa,Zr.left),Ve=Math.max(Rs,Zr.top),lt=Math.min(Su,Zr.right),kt=Math.min(wu,Zr.bottom);return Math.max(0,(lt-xu)*(kt-Ve))},bo=function(){Ge=z.y+Ee,Ye=Ge+q,Ue=z.x+oe,mt=Ue+U;};var y,S,E=t,C=E.ownerDocument,$=us(E),x=$.getComputedStyle(E),w=x.width,O=x.height,R=x.position,A=E.style.left,_=E.style.top,I=E.style.right,P=E.style.bottom,T=Q(Q({},o[r]),i),N=C.createElement("div");(y=E.parentElement)===null||y===void 0||y.appendChild(N),N.style.left="".concat(E.offsetLeft,"px"),N.style.top="".concat(E.offsetTop,"px"),N.style.position=R,N.style.height="".concat(E.offsetHeight,"px"),N.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto";var M;if(Array.isArray(n))M={x:n[0],y:n[1],width:0,height:0};else {var L=n.getBoundingClientRect();M={x:L.x,y:L.y,width:L.width,height:L.height};}var z=E.getBoundingClientRect(),H=C.documentElement,W=H.clientWidth,B=H.clientHeight,V=H.scrollWidth,j=H.scrollHeight,K=H.scrollTop,ee=H.scrollLeft,q=z.height,U=z.width,X=M.height,ie=M.width,de={left:0,top:0,right:W,bottom:B},ge={left:-ee,top:-K,right:V-ee,bottom:j-K},re=T.htmlRegion,se="visible",ue="visibleFirst";re!=="scroll"&&re!==ue&&(re=se);var Y=re===ue,ne=mp(ge,f),J=mp(de,f),me=re===se?J:ne,he=Y?J:me;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var ye=E.getBoundingClientRect();E.style.left=A,E.style.top=_,E.style.right=I,E.style.bottom=P,(S=E.parentElement)===null||S===void 0||S.removeChild(N);var Re=Ua(Math.round(U/parseFloat(w)*1e3)/1e3),Be=Ua(Math.round(q/parseFloat(O)*1e3)/1e3);if(Re===0||Be===0||Ol(n)&&!rh(n))return;var _e=T.offset,ae=T.targetOffset,ve=vp(z,_e),be=G(ve,2),Se=be[0],Ae=be[1],ke=vp(M,ae),we=G(ke,2),Ie=we[0],Fe=we[1];M.x-=Ie,M.y-=Fe;var xe=T.points||[],Me=G(xe,2),tt=Me[0],ut=Me[1],qe=gp(ut),ct=gp(tt),Pe=ti(M,qe),te=ti(z,ct),fe=Q({},T),oe=Pe.x-te.x+Se,Ee=Pe.y-te.y+Ae,He=Yt(oe,Ee),Qe=Yt(oe,Ee,J),ze=ti(M,["t","l"]),pe=ti(z,["t","l"]),$e=ti(M,["b","r"]),Te=ti(z,["b","r"]),Ne=T.overflow||{},st=Ne.adjustX,et=Ne.adjustY,St=Ne.shiftX,Bt=Ne.shiftY,Ht=function(Yr){return typeof Yr=="boolean"?Yr:Yr>=0},Ge,Ye,Ue,mt;bo();var ht=Ht(et),_t=ct[0]===qe[0];if(ht&&ct[0]==="t"&&(Ye>he.bottom||h.current.bt)){var Xe=Ee;_t?Xe-=q-X:Xe=ze.y-Te.y-Ae;var We=Yt(oe,Xe),dt=Yt(oe,Xe,J);We>He||We===He&&(!Y||dt>=Qe)?(h.current.bt=!0,Ee=Xe,Ae=-Ae,fe.points=[Qr(ct,0),Qr(qe,0)]):h.current.bt=!1;}if(ht&&ct[0]==="b"&&(Ge<he.top||h.current.tb)){var Et=Ee;_t?Et+=q-X:Et=$e.y-pe.y-Ae;var en=Yt(oe,Et),Mt=Yt(oe,Et,J);en>He||en===He&&(!Y||Mt>=Qe)?(h.current.tb=!0,Ee=Et,Ae=-Ae,fe.points=[Qr(ct,0),Qr(qe,0)]):h.current.tb=!1;}var un=Ht(st),hr=ct[1]===qe[1];if(un&&ct[1]==="l"&&(mt>he.right||h.current.rl)){var nr=oe;hr?nr-=U-ie:nr=ze.x-Te.x-Se;var Xr=Yt(nr,Ee),vo=Yt(nr,Ee,J);Xr>He||Xr===He&&(!Y||vo>=Qe)?(h.current.rl=!0,oe=nr,Se=-Se,fe.points=[Qr(ct,1),Qr(qe,1)]):h.current.rl=!1;}if(un&&ct[1]==="r"&&(Ue<he.left||h.current.lr)){var wn=oe;hr?wn+=U-ie:wn=$e.x-pe.x-Se;var Rn=Yt(wn,Ee),go=Yt(wn,Ee,J);Rn>He||Rn===He&&(!Y||go>=Qe)?(h.current.lr=!0,oe=wn,Se=-Se,fe.points=[Qr(ct,1),Qr(qe,1)]):h.current.lr=!1;}bo();var An=St===!0?0:St;typeof An=="number"&&(Ue<J.left&&(oe-=Ue-J.left-Se,M.x+ie<J.left+An&&(oe+=M.x-J.left+ie-An)),mt>J.right&&(oe-=mt-J.right-Se,M.x>J.right-An&&(oe+=M.x-J.right+An)));var xn=Bt===!0?0:Bt;typeof xn=="number"&&(Ge<J.top&&(Ee-=Ge-J.top-Ae,M.y+X<J.top+xn&&(Ee+=M.y-J.top+X-xn)),Ye>J.bottom&&(Ee-=Ye-J.bottom-Ae,M.y>J.bottom-xn&&(Ee+=M.y-J.bottom+xn)));var _n=z.x+oe,Rr=_n+U,Vn=z.y+Ee,Un=Vn+q,qr=M.x,po=qr+ie,Ot=M.y,vt=Ot+X,De=Math.max(_n,qr),je=Math.min(Rr,po),pt=(De+je)/2,Nt=pt-_n,It=Math.max(Vn,Ot),tn=Math.min(Un,vt),$n=(It+tn)/2,_r=$n-Vn;a==null||a(t,fe);var Kn=ye.right-z.x-(oe+z.width),En=ye.bottom-z.y-(Ee+z.height);u({ready:!0,offsetX:oe/Re,offsetY:Ee/Be,offsetR:Kn/Re,offsetB:En/Be,arrowX:Nt/Re,arrowY:_r/Be,scaleX:Re,scaleY:Be,align:fe});}}),p=function(){d.current+=1;var S=d.current;Promise.resolve().then(function(){d.current===S&&g();});},b=function(){u(function(S){return Q(Q({},S),{},{ready:!1})});};return Ft(b,[r]),Ft(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function QN(e,t,n,r,o){Ft(function(){if(e&&t&&n){let d=function(){r(),o();};var i=t,a=n,s=Cf(i),l=Cf(a),c=us(a),u=new Set([c].concat(Ze(s),Ze(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0});}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d);});}}},[e,t,n]);}function JN(e,t,n,r,o,i,a,s){var l=m__namespace.useRef(e),c=m__namespace.useRef(!1);l.current!==e&&(c.current=!0,l.current=e),m__namespace.useEffect(function(){var u=gt(function(){c.current=!1;});return function(){gt.cancel(u);}},[e]),m__namespace.useEffect(function(){if(t&&r&&(!o||i)){var u=function(){var $=!1,x=function(R){var A=R.target;$=a(A);},w=function(R){var A=R.target;!c.current&&l.current&&!$&&!a(A)&&s(!1);};return [x,w]},d=u(),f=G(d,2),h=f[0],v=f[1],g=u(),p=G(g,2),b=p[0],y=p[1],S=us(r);S.addEventListener("mousedown",h,!0),S.addEventListener("click",v,!0),S.addEventListener("contextmenu",v,!0);var E=Tl(n);return E&&(E.addEventListener("mousedown",b,!0),E.addEventListener("click",y,!0),E.addEventListener("contextmenu",y,!0)),function(){S.removeEventListener("mousedown",h,!0),S.removeEventListener("click",v,!0),S.removeEventListener("contextmenu",v,!0),E&&(E.removeEventListener("mousedown",b,!0),E.removeEventListener("click",y,!0),E.removeEventListener("contextmenu",y,!0));}}},[t,n,r,o,i]);}function e3(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,f=m__namespace.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var v=n.points[0],g=n.points[1],p=v[0],b=v[1],y=g[0],S=g[1];p===y||!["t","b"].includes(p)?h.top=d:p==="t"?h.top=0:h.bottom=0,b===S||!["l","r"].includes(b)?h.left=c:b==="l"?h.left=0:h.right=0;}return m__namespace.createElement("div",{ref:f,className:F("".concat(t,"-arrow"),a),style:h},s)}function t3(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?m__namespace.createElement(ho,Oe({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return m__namespace.createElement("div",{style:{zIndex:r},className:F("".concat(t,"-mask"),s)})}):null}var n3=m__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),r3=m__namespace.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.onClick,d=e.mask,f=e.arrow,h=e.arrowPos,v=e.align,g=e.motion,p=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,S=e.autoDestroy,E=e.portal,C=e.zIndex,$=e.onMouseEnter,x=e.onMouseLeave,w=e.onPointerEnter,O=e.ready,R=e.offsetX,A=e.offsetY,_=e.offsetR,I=e.offsetB,P=e.onAlign,T=e.onPrepare,N=e.stretch,M=e.targetWidth,L=e.targetHeight,z=typeof n=="function"?n():n,H=l||c,W=(y==null?void 0:y.length)>0,B=m__namespace.useState(!y||!W),V=G(B,2),j=V[0],K=V[1];if(Ft(function(){!j&&W&&a&&K(!0);},[j,W,a]),!j)return null;var ee="auto",q={left:"-1000vw",top:"-1000vh",right:ee,bottom:ee};if(O||!l){var U=v.points,X=v._experimental,ie=X==null?void 0:X.dynamicInset,de=ie&&U[0][1]==="r",ge=ie&&U[0][0]==="b";de?(q.right=_,q.left=ee):(q.left=R,q.right=ee),ge?(q.bottom=I,q.top=ee):(q.top=A,q.bottom=ee);}var re={};return N&&(N.includes("height")&&L?re.height=L:N.includes("minHeight")&&L&&(re.minHeight=L),N.includes("width")&&M?re.width=M:N.includes("minWidth")&&M&&(re.minWidth=M)),l||(re.pointerEvents="none"),m__namespace.createElement(E,{open:b||H,getContainer:y&&function(){return y(a)},autoDestroy:S},m__namespace.createElement(t3,{prefixCls:o,open:l,zIndex:C,mask:d,motion:p}),m__namespace.createElement(Br,{onResize:P,disabled:!l},function(se){return m__namespace.createElement(ho,Oe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:T,onEnterPrepare:T,visible:l,onVisibleChanged:function(Y){var ne;g==null||(ne=g.onVisibleChanged)===null||ne===void 0||ne.call(g,Y),s(Y);}}),function(ue,Y){var ne=ue.className,J=ue.style,me=F(o,ne,r);return m__namespace.createElement("div",{ref:In(se,t,Y),className:me,style:Q(Q(Q(Q({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},q),re),J),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:$,onMouseLeave:x,onPointerEnter:w,onClick:u},f&&m__namespace.createElement(e3,{prefixCls:o,arrow:f,arrowPos:h,align:v}),m__namespace.createElement(n3,{cache:!l},z))})}))}),o3=m__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ko(n),i=m__namespace.useCallback(function(s){Qm(t,r?r(s):s);},[r]),a=ls(i,n.ref);return o?m__namespace.cloneElement(n,{ref:a}):n}),i3=["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 a3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:T1,t=m__namespace.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,h=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,g=n.mouseEnterDelay,p=n.mouseLeaveDelay,b=p===void 0?.1:p,y=n.focusDelay,S=n.blurDelay,E=n.mask,C=n.maskClosable,$=C===void 0?!0:C,x=n.getPopupContainer,w=n.forceRender,O=n.autoDestroy,R=n.destroyPopupOnHide,A=n.popup,_=n.popupClassName,I=n.popupStyle,P=n.popupPlacement,T=n.builtinPlacements,N=T===void 0?{}:T,M=n.popupAlign,L=n.zIndex,z=n.stretch,H=n.getPopupClassNameFromAlign,W=n.alignPoint,B=n.onPopupClick,V=n.onPopupAlign,j=n.arrow,K=n.popupMotion,ee=n.maskMotion,q=n.popupTransitionName,U=n.popupAnimation,X=n.maskTransitionName,ie=n.maskAnimation,de=n.className,ge=n.getTriggerDOMNode,re=Je(n,i3),se=O||R||!1,ue=m__namespace.useState(!1),Y=G(ue,2),ne=Y[0],J=Y[1];Ft(function(){J(Ac());},[]);var me=m__namespace.useRef({}),he=m__namespace.useContext(up),ye=m__namespace.useMemo(function(){return {registerSubPopup:function(lt,kt){me.current[lt]=kt,he==null||he.registerSubPopup(lt,kt);}}},[he]),Re=GN(),Be=m__namespace.useState(null),_e=G(Be,2),ae=_e[0],ve=_e[1],be=Tn(function(Ve){Ol(Ve)&&ae!==Ve&&ve(Ve),he==null||he.registerSubPopup(Re,Ve);}),Se=m__namespace.useState(null),Ae=G(Se,2),ke=Ae[0],we=Ae[1],Ie=Tn(function(Ve){Ol(Ve)&&ke!==Ve&&we(Ve);}),Fe=m__namespace.Children.only(a),xe=(Fe==null?void 0:Fe.props)||{},Me={},tt=Tn(function(Ve){var lt,kt,Kt=ke;return (Kt==null?void 0:Kt.contains(Ve))||((lt=Tl(Kt))===null||lt===void 0?void 0:lt.host)===Ve||Ve===Kt||(ae==null?void 0:ae.contains(Ve))||((kt=Tl(ae))===null||kt===void 0?void 0:kt.host)===Ve||Ve===ae||Object.values(me.current).some(function(Gt){return (Gt==null?void 0:Gt.contains(Ve))||Ve===Gt})}),ut=fp(i,K,U,q),qe=fp(i,ee,ie,X),ct=m__namespace.useState(f||!1),Pe=G(ct,2),te=Pe[0],fe=Pe[1],oe=d??te,Ee=Tn(function(Ve){d===void 0&&fe(Ve);});Ft(function(){fe(d||!1);},[d]);var He=m__namespace.useRef(oe);He.current=oe;var Qe=Tn(function(Ve){s0.flushSync(function(){oe!==Ve&&(Ee(Ve),h==null||h(Ve));});}),ze=m__namespace.useRef(),pe=function(){clearTimeout(ze.current);},$e=function(lt){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;pe(),kt===0?Qe(lt):ze.current=setTimeout(function(){Qe(lt);},kt*1e3);};m__namespace.useEffect(function(){return pe},[]);var Te=m__namespace.useState(!1),Ne=G(Te,2),st=Ne[0],et=Ne[1];Ft(function(Ve){(!Ve||oe)&&et(!0);},[oe]);var St=m__namespace.useState(null),Bt=G(St,2),Ht=Bt[0],Ge=Bt[1],Ye=m__namespace.useState([0,0]),Ue=G(Ye,2),mt=Ue[0],ht=Ue[1],_t=function(lt){ht([lt.clientX,lt.clientY]);},Xe=ZN(oe,ae,W?mt:ke,P,N,M,V),We=G(Xe,11),dt=We[0],Et=We[1],en=We[2],Mt=We[3],un=We[4],hr=We[5],nr=We[6],Xr=We[7],vo=We[8],wn=We[9],Rn=We[10],go=XN(ne,l,c,u),An=G(go,2),xn=An[0],_n=An[1],Rr=xn.has("click"),Vn=_n.has("click")||_n.has("contextMenu"),Un=Tn(function(){st||Rn();}),qr=function(){He.current&&W&&Vn&&$e(!1);};QN(oe,ke,ae,Un,qr),Ft(function(){Un();},[mt,P]),Ft(function(){oe&&!(N!=null&&N[P])&&Un();},[JSON.stringify(M)]);var po=m__namespace.useMemo(function(){var Ve=YN(N,i,wn,W);return F(Ve,H==null?void 0:H(wn))},[wn,H,N,i,W]);m__namespace.useImperativeHandle(r,function(){return {forceAlign:Un}});var Ot=function(lt){et(!1),Rn(),v==null||v(lt);},vt=function(){return new Promise(function(lt){Ge(function(){return lt});})};Ft(function(){Ht&&(Rn(),Ht(),Ge(null));},[Ht]);var De=m__namespace.useState(0),je=G(De,2),pt=je[0],Nt=je[1],It=m__namespace.useState(0),tn=G(It,2),$n=tn[0],_r=tn[1],Kn=function(lt,kt){if(Un(),z){var Kt=kt.getBoundingClientRect();Nt(Kt.width),_r(Kt.height);}};function En(Ve,lt,kt,Kt){Me[Ve]=function(Gt){var _s;Kt==null||Kt(Gt),$e(lt,kt);for(var $u=arguments.length,Sv=new Array($u>1?$u-1:0),Ts=1;Ts<$u;Ts++)Sv[Ts-1]=arguments[Ts];(_s=xe[Ve])===null||_s===void 0||_s.call.apply(_s,[xe,Gt].concat(Sv));};}(Rr||Vn)&&(Me.onClick=function(Ve){var lt;He.current&&Vn?$e(!1):!He.current&&Rr&&(_t(Ve),$e(!0));for(var kt=arguments.length,Kt=new Array(kt>1?kt-1:0),Gt=1;Gt<kt;Gt++)Kt[Gt-1]=arguments[Gt];(lt=xe.onClick)===null||lt===void 0||lt.call.apply(lt,[xe,Ve].concat(Kt));}),JN(oe,Vn,ke,ae,E,$,tt,$e);var Yt=xn.has("hover"),bo=_n.has("hover"),Zo,Yr;Yt&&(En("onMouseEnter",!0,g,function(Ve){_t(Ve);}),En("onPointerEnter",!0,g,function(Ve){_t(Ve);}),Zo=function(){(oe||st)&&$e(!0,g);},W&&(Me.onMouseMove=function(Ve){var lt;(lt=xe.onMouseMove)===null||lt===void 0||lt.call(xe,Ve);})),bo&&(En("onMouseLeave",!1,b),En("onPointerLeave",!1,b),Yr=function(){$e(!1,b);}),xn.has("focus")&&En("onFocus",!0,y),_n.has("focus")&&En("onBlur",!1,S),xn.has("contextMenu")&&(Me.onContextMenu=function(Ve){var lt;He.current&&_n.has("contextMenu")?$e(!1):(_t(Ve),$e(!0)),Ve.preventDefault();for(var kt=arguments.length,Kt=new Array(kt>1?kt-1:0),Gt=1;Gt<kt;Gt++)Kt[Gt-1]=arguments[Gt];(lt=xe.onContextMenu)===null||lt===void 0||lt.call.apply(lt,[xe,Ve].concat(Kt));}),de&&(Me.className=F(xe.className,de));var Zr=Q(Q({},xe),Me),oa={},Rs=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Rs.forEach(function(Ve){re[Ve]&&(oa[Ve]=function(){for(var lt,kt=arguments.length,Kt=new Array(kt),Gt=0;Gt<kt;Gt++)Kt[Gt]=arguments[Gt];(lt=Zr[Ve])===null||lt===void 0||lt.call.apply(lt,[Zr].concat(Kt)),re[Ve].apply(re,Kt);});});var Su=m__namespace.cloneElement(Fe,Q(Q({},Zr),oa)),wu={x:hr,y:nr},xu=j?Q({},j!==!0?j:{}):null;return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(Br,{disabled:!oe,ref:Ie,onResize:Kn},m__namespace.createElement(o3,{getTriggerDOMNode:ge},Su)),m__namespace.createElement(up.Provider,{value:ye},m__namespace.createElement(r3,{portal:e,ref:be,prefixCls:i,popup:A,className:F(_,po),style:I,target:ke,onMouseEnter:Zo,onMouseLeave:Yr,onPointerEnter:Zo,zIndex:L,open:oe,keepDom:st,onClick:B,mask:E,motion:ut,maskMotion:qe,onVisibleChanged:Ot,onPrepare:vt,forceRender:w,autoDestroy:se,getPopupContainer:x,align:wn,arrow:xu,arrowPos:wu,ready:dt,offsetX:Et,offsetY:en,offsetR:Mt,offsetB:un,onAlign:Un,stretch:z,targetWidth:pt/Xr,targetHeight:$n/vo})))});return t}const Lc=a3(T1);var ni={shiftX:64,adjustY:1},ri={adjustX:1,shiftY:!0},Gn=[0,0],s3={left:{points:["cr","cl"],overflow:ri,offset:[-4,0],targetOffset:Gn},right:{points:["cl","cr"],overflow:ri,offset:[4,0],targetOffset:Gn},top:{points:["bc","tc"],overflow:ni,offset:[0,-4],targetOffset:Gn},bottom:{points:["tc","bc"],overflow:ni,offset:[0,4],targetOffset:Gn},topLeft:{points:["bl","tl"],overflow:ni,offset:[0,-4],targetOffset:Gn},leftTop:{points:["tr","tl"],overflow:ri,offset:[-4,0],targetOffset:Gn},topRight:{points:["br","tr"],overflow:ni,offset:[0,-4],targetOffset:Gn},rightTop:{points:["tl","tr"],overflow:ri,offset:[4,0],targetOffset:Gn},bottomRight:{points:["tr","br"],overflow:ni,offset:[0,4],targetOffset:Gn},rightBottom:{points:["bl","br"],overflow:ri,offset:[4,0],targetOffset:Gn},bottomLeft:{points:["tl","bl"],overflow:ni,offset:[0,4],targetOffset:Gn},leftBottom:{points:["br","bl"],overflow:ri,offset:[-4,0],targetOffset:Gn}};function oh(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return m__namespace.createElement("div",{className:F("".concat(n,"-content"),i),style:a},m__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var l3=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],c3=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,h=t.children,v=t.onVisibleChange,g=t.afterVisibleChange,p=t.transitionName,b=t.animation,y=t.motion,S=t.placement,E=S===void 0?"right":S,C=t.align,$=C===void 0?{}:C,x=t.destroyTooltipOnHide,w=x===void 0?!1:x,O=t.defaultVisible,R=t.getTooltipContainer,A=t.overlayInnerStyle;t.arrowContent;var _=t.overlay,I=t.id,P=t.showArrow,T=P===void 0?!0:P,N=Je(t,l3),M=m.useRef(null);m.useImperativeHandle(n,function(){return M.current});var L=Q({},N);"visible"in t&&(L.popupVisible=t.visible);var z=function(){return m__namespace.createElement(oh,{key:"content",prefixCls:f,id:I,overlayInnerStyle:A},_)};return m__namespace.createElement(Lc,Oe({popupClassName:r,prefixCls:f,popup:z,action:i,builtinPlacements:s3,popupPlacement:E,ref:M,popupAlign:$,getPopupContainer:R,onPopupVisibleChange:v,afterPopupVisibleChange:g,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:O,autoDestroy:w,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:T},L),h)};const u3=m.forwardRef(c3),j1=8;function ih(e){const t=j1,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function Ws(e,t){return e?t:{}}function ah(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:h}=ih({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"},hM(r,o,i,s,a)),{"&:before":{background:s}})]},Ws(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),Ws(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),Ws(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f}})),Ws(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f}}))}}function d3(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 pp={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"]}},f3={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"]}},m3=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function B1(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(pp).forEach(c=>{const u=r&&f3[c]||pp[c],d=Object.assign(Object.assign({},u),{offset:[0,0]});switch(l[c]=d,m3.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+o;break}const f=ih({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-f.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":d.offset[0]=f.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":d.offset[1]=-f.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":d.offset[1]=f.dropdownArrowOffset+s;break}d.overflow=d3(c,f,t,n),a&&(d.htmlRegion="visibleFirst");}),l}const{isValidElement:Hr}=m__namespace;function H1(e){return e&&Hr(e)&&e.type===m__namespace.Fragment}function h3(e,t,n){return Hr(e)?m__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Hn(e,t){return h3(e,e,t)}const v3=e=>{const{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},g3=v3,p3=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"}}}},F1=Vt("Space",e=>[p3(e),g3(e)],()=>({}),{resetStyle:!1});var W1=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Dc=m__namespace.createContext(null),Ji=(e,t)=>{const n=m__namespace.useContext(Dc),r=m__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return F(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return {compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Di=e=>{let{children:t}=e;return m__namespace.createElement(Dc.Provider,{value:null},t)},b3=e=>{var{children:t}=e,n=W1(e,["children"]);return m__namespace.createElement(Dc.Provider,{value:n},t)},y3=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(nt),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=W1(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Wn(S=>r??S),f=t("space-compact",a),[h,v]=F1(f),g=F(f,v,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:i,[`${f}-vertical`]:o==="vertical"},s,l),p=m__namespace.useContext(Dc),b=cr(c),y=m__namespace.useMemo(()=>b.map((S,E)=>{const C=S&&S.key||`${f}-item-${E}`;return m__namespace.createElement(b3,{key:C,compactSize:d,compactDirection:o,isFirstItem:E===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:E===b.length-1&&(!p||(p==null?void 0:p.isLastItem))},S)}),[r,b,p]);return b.length===0?null:h(m__namespace.createElement("div",Object.assign({className:g},u),y))},C3=y3,S3=e=>{const t=e!=null&&e.algorithm?Ha(e.algorithm):Ha(ss),n=Object.assign(Object.assign({},as),e==null?void 0:e.token);return Wy(n,{override:e==null?void 0:e.token},t,Ym)},w3=S3;function x3(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 $3=(e,t)=>{const n=t??ss(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),x3(t??e)),r1(r)),{controlHeight:o}),t1(Object.assign(Object.assign({},n),{controlHeight:o})))},E3=$3,Jr=(e,t)=>new Wt(e).setAlpha(t).toRgbString(),oi=(e,t)=>new Wt(e).lighten(t).toHexString(),O3=e=>{const t=jr(e,{theme:"dark"});return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},I3=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:Jr(r,.85),colorTextSecondary:Jr(r,.65),colorTextTertiary:Jr(r,.45),colorTextQuaternary:Jr(r,.25),colorFill:Jr(r,.18),colorFillSecondary:Jr(r,.12),colorFillTertiary:Jr(r,.08),colorFillQuaternary:Jr(r,.04),colorBgElevated:oi(n,12),colorBgContainer:oi(n,8),colorBgLayout:oi(n,0),colorBgSpotlight:oi(n,26),colorBorder:oi(n,26),colorBorderSecondary:oi(n,19)}},P3=(e,t)=>{const n=Object.keys(qm).map(o=>{const i=jr(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${o}-${l+1}`]=i[l],a[`${o}${l+1}`]=i[l],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??ss(e);return Object.assign(Object.assign(Object.assign({},r),n),n1(e,{generateColorPalettes:O3,generateNeutralColorPalettes:I3}))},R3=P3;function _3(){const[e,t,n]=Kr();return {theme:e,token:t,hashId:n}}const zi={defaultConfig:El,defaultSeed:El.token,useToken:_3,defaultAlgorithm:ss,darkAlgorithm:R3,compactAlgorithm:E3,getDesignToken:w3},T3=e=>({animationDuration:e,animationFillMode:"both"}),M3=e=>({animationDuration:e,animationFillMode:"both"}),sh=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({},T3(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},M3(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"}}},N3=new Rt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),k3=new Rt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),A3=new Rt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),L3=new Rt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),D3=new Rt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),z3=new Rt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),j3=new Rt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),B3=new Rt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),H3={"move-up":{inKeyframes:j3,outKeyframes:B3},"move-down":{inKeyframes:N3,outKeyframes:k3},"move-left":{inKeyframes:A3,outKeyframes:L3},"move-right":{inKeyframes:D3,outKeyframes:z3}},Ml=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=H3[t];return [sh(r,o,i,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},lh=new Rt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ch=new Rt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),uh=new Rt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),dh=new Rt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),F3=new Rt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),W3=new Rt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),V3=new Rt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),U3=new Rt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),K3={"slide-up":{inKeyframes:lh,outKeyframes:ch},"slide-down":{inKeyframes:uh,outKeyframes:dh},"slide-left":{inKeyframes:F3,outKeyframes:W3},"slide-right":{inKeyframes:V3,outKeyframes:U3}},uo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=K3[t];return [sh(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}}]},G3=new Rt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),X3=new Rt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),bp=new Rt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),yp=new Rt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),q3=new Rt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Y3=new Rt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Z3=new Rt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Q3=new Rt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),J3=new Rt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ek=new Rt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),tk=new Rt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),nk=new Rt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),rk={zoom:{inKeyframes:G3,outKeyframes:X3},"zoom-big":{inKeyframes:bp,outKeyframes:yp},"zoom-big-fast":{inKeyframes:bp,outKeyframes:yp},"zoom-left":{inKeyframes:Z3,outKeyframes:Q3},"zoom-right":{inKeyframes:J3,outKeyframes:ek},"zoom-up":{inKeyframes:q3,outKeyframes:Y3},"zoom-down":{inKeyframes:tk,outKeyframes:nk}},zc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=rk[t];return [sh(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}}]},ok=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`}}}),V1=ok,ik=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({},Tt(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,j1)}},[`${t}-content`]:{position:"relative"}}),c1(e,(f,h)=>{let{darkColor:v}=h;return {[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},ah(ft(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},U1=(e,t)=>Vt("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:s}=r,l=ft(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return [ik(l),zc(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return {zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),ak=Fa.map(e=>`${e}-inverse`),sk=["success","processing","error","default","warning"];function K1(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ze(ak),Ze(Fa)).includes(e):Fa.includes(e)}function lk(e){return sk.includes(e)}function G1(e,t){const n=K1(t),r=F({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const ck=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=m__namespace.useContext(nt),l=s("tooltip",t),[c,u]=U1(l,!0),d=G1(l,i),f=d.arrowStyle,h=Object.assign(Object.assign({},a),d.overlayStyle),v=F(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(m__namespace.createElement("div",{className:v,style:f},m__namespace.createElement("div",{className:`${l}-arrow`}),m__namespace.createElement(oh,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))},uk=ck;var dk=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:fk}=zi,mk=(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 hk(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}=mk(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=Object.assign(Object.assign({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},o),{pointerEvents:"none"}),s=Hn(e,{style:a,className:null});return m__namespace.createElement("span",{style:i,className:F(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const X1=m__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:h,arrow:v=!0,title:g,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:S=!0}=e,E=!!v,{token:C}=fk(),{getPopupContainer:$,getPrefixCls:x,direction:w}=m__namespace.useContext(nt),O=m__namespace.useRef(null),R=()=>{var J;(J=O.current)===null||J===void 0||J.forceAlign();};m__namespace.useImperativeHandle(t,()=>({forceAlign:R,forcePopupAlign:()=>{R();}}));const[A,_]=Dt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),I=!g&&!p&&g!==0,P=J=>{var me,he;_(I?!1:J),I||((me=e.onOpenChange)===null||me===void 0||me.call(e,J),(he=e.onVisibleChange)===null||he===void 0||he.call(e,J));},T=m__namespace.useMemo(()=>{var J,me;let he=y;return typeof v=="object"&&(he=(me=(J=v.pointAtCenter)!==null&&J!==void 0?J:v.arrowPointAtCenter)!==null&&me!==void 0?me:y),b||B1({arrowPointAtCenter:he,autoAdjustOverflow:S,arrowWidth:E?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[y,v,b,C]),N=m__namespace.useMemo(()=>g===0?g:p||g||"",[p,g]),M=m__namespace.createElement(Di,null,typeof N=="function"?N():N),{getPopupContainer:L,placement:z="top",mouseEnterDelay:H=.1,mouseLeaveDelay:W=.1,overlayStyle:B,rootClassName:V}=e,j=dk(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),K=x("tooltip",o),ee=x(),q=e["data-popover-inject"];let U=A;!("open"in e)&&!("visible"in e)&&I&&(U=!1);const X=hk(Hr(u)&&!H1(u)?u:m__namespace.createElement("span",null,u),K),ie=X.props,de=!ie.className||typeof ie.className=="string"?F(ie.className,i||`${K}-open`):ie.className,[ge,re]=U1(K,!q),se=G1(K,l),ue=se.arrowStyle,Y=Object.assign(Object.assign({},c),se.overlayStyle),ne=F(s,{[`${K}-rtl`]:w==="rtl"},se.className,V,re);return ge(m__namespace.createElement(u3,Object.assign({},j,{showArrow:E,placement:z,mouseEnterDelay:H,mouseLeaveDelay:W,prefixCls:K,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ue),B),getTooltipContainer:L||a||$,ref:O,builtinPlacements:T,overlay:M,visible:U,onVisibleChange:P,afterVisibleChange:d??f,overlayInnerStyle:Y,arrowContent:m__namespace.createElement("span",{className:`${K}-arrow-content`}),motion:{motionName:Nc(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),U?Hn(X,{className:de}):X))});X1._InternalPanelDoNotUseOrYouWillBeFired=uk;const ds=X1,vk=e=>{const{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:o,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,marginXS:u,colorBgElevated:d,popoverBg:f}=e;return [{[t]:Object.assign(Object.assign({},Tt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},ah(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]:Fa.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},pk=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,u=a-Math.round(s*l),d=u/2,f=u/2-n,h=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${h}px ${f}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${h}px`}}}},q1=Vt("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=ft(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [vk(o),gk(o),r&&pk(o),zc(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]});var bk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yk=(e,t,n)=>{if(!(!t&&!n))return m__namespace.createElement(m__namespace.Fragment,null,t&&m__namespace.createElement("div",{className:`${e}-title`},Ai(t)),m__namespace.createElement("div",{className:`${e}-inner-content`},Ai(n)))},Ck=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e;return m__namespace.createElement("div",{className:F(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},m__namespace.createElement("div",{className:`${n}-arrow`}),m__namespace.createElement(oh,Object.assign({},e,{className:t,prefixCls:n}),l||yk(n,a,s)))},Sk=e=>{const{prefixCls:t}=e,n=bk(e,["prefixCls"]),{getPrefixCls:r}=m__namespace.useContext(nt),o=r("popover",t),[i,a]=q1(o);return i(m__namespace.createElement(Ck,Object.assign({},n,{prefixCls:o,hashId:a})))},Y1=Sk;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 m__namespace.createElement(m__namespace.Fragment,null,t&&m__namespace.createElement("div",{className:`${r}-title`},Ai(t)),m__namespace.createElement("div",{className:`${r}-inner-content`},Ai(n)))},Z1=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:s="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=wk(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=m__namespace.useContext(nt),h=f("popover",n),[v,g]=q1(h),p=f(),b=F(i,g);return v(m__namespace.createElement(ds,Object.assign({placement:a,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:h,overlayClassName:b,ref:t,overlay:r||o?m__namespace.createElement(xk,{prefixCls:h,title:r,content:o}):null,transitionName:Nc(p,"zoom-big",d.transitionName),"data-popover-inject":!0})))});Z1._InternalPanelDoNotUseOrYouWillBeFired=Y1;const fh=Z1,$k=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return {[t]:Object.assign(Object.assign({},Tt(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}}})}},Ek=Vt("Divider",e=>{const t=ft(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return [$k(t)]},{sizePaddingEdgeHorizontal:0});var Ok=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ik=e=>{const{getPrefixCls:t,direction:n,divider:r}=m__namespace.useContext(nt),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:f,style:h}=e,v=Ok(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=t("divider",o),[p,b]=Ek(g),y=a.length>0?`-${a}`:a,S=!!u,E=a==="left"&&s!=null,C=a==="right"&&s!=null,$=F(g,r==null?void 0:r.className,b,`${g}-${i}`,{[`${g}-with-text`]:S,[`${g}-with-text${y}`]:S,[`${g}-dashed`]:!!d,[`${g}-plain`]:!!f,[`${g}-rtl`]:n==="rtl",[`${g}-no-default-orientation-margin-left`]:E,[`${g}-no-default-orientation-margin-right`]:C},l,c),x=m__namespace.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),w=Object.assign(Object.assign({},E&&{marginLeft:x}),C&&{marginRight:x});return p(m__namespace.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},v,{role:"separator"}),u&&i!=="vertical"&&m__namespace.createElement("span",{className:`${g}-inner-text`,style:w},u)))},Pk=Ik;var Rk=["b"],_k=["v"],ld=function(t){return Math.round(Number(t||0))},Tk=function(t){if(t&&at(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Je(n,Rk);return Q(Q({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Nl=function(e){fo(n,e);var t=mo(n);function n(r){return Cn(this,n),t.call(this,Tk(r))}return Sn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=ld(o.s*100),a=ld(o.b*100),s=ld(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv();at(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var i=o;i.v;var a=Je(i,_k);return Q(Q({},a),{},{b:o.v})}}]),n}(Wt),Mk="rc-color-picker",so=function(t){return t instanceof Nl?t:new Nl(t)},Nk=so("#1677ff"),Q1=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),d=u.width,f=u.height,h=d/2,v=f/2,g=(n.x+h)/l,p=1-(n.y+v)/c,b=i.toHsb(),y=g,S=(n.x+h)/l*360;if(a)switch(a){case"hue":return so(Q(Q({},b),{},{h:S<=0?0:S}));case"alpha":return so(Q(Q({},b),{},{a:y<=0?0:y}))}return so({h:b.h,s:g<=0?0:g,b:p>=1?1:p,a:b.a})},J1=function(t,n,r,o){var i=t.current.getBoundingClientRect(),a=i.width,s=i.height,l=n.current.getBoundingClientRect(),c=l.width,u=l.height,d=c/2,f=u/2,h=r.toHsb();if(!(c===0&&u===0||c!==u)){if(o)switch(o){case"hue":return {x:h.h/360*a-d,y:-f/3};case"alpha":return {x:h.a/1*a-d,y:-f/3}}return {x:h.s*a-d,y:(1-h.b)*s-f}}},mh=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(r,"-color-block");return m.createElement("div",{className:F(s,o),style:i,onClick:a},m.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function kk(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 eC(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,s=e.calculate,l=e.color,c=e.disabledDrag,u=m.useState(t||{x:0,y:0}),d=G(u,2),f=d[0],h=d[1],v=m.useRef(null),g=m.useRef(null),p=m.useRef({flag:!1});m.useEffect(function(){if(p.current.flag===!1){var C=s==null?void 0:s(r);C&&h(C);}},[l,r]),m.useEffect(function(){return function(){document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",g.current),v.current=null,g.current=null;}},[]);var b=function($){var x=kk($),w=x.pageX,O=x.pageY,R=r.current.getBoundingClientRect(),A=R.x,_=R.y,I=R.width,P=R.height,T=n.current.getBoundingClientRect(),N=T.width,M=T.height,L=N/2,z=M/2,H=Math.max(0,Math.min(w-A,I))-L,W=Math.max(0,Math.min(O-_,P))-z,B={x:H,y:o==="x"?f.y:W};if(N===0&&M===0||N!==M)return !1;h(B),i==null||i(B);},y=function($){$.preventDefault(),b($);},S=function($){$.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",g.current),v.current=null,g.current=null,a==null||a();},E=function($){c||(b($),p.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),v.current=y,g.current=S);};return [f,E]}var tC=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return m.createElement("div",{className:F("".concat(i,"-handler"),Z({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},nC=function(t){var n=t.children,r=t.style,o=t.prefixCls;return m.createElement("div",{className:"".concat(o,"-palette"),style:Q({position:"relative"},r)},n)},rC=m.forwardRef(function(e,t){var n=e.children,r=e.offset;return m.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),Ak=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=m.useRef(),l=m.useRef(),c=m.useRef(n),u=eC({color:n,containerRef:s,targetRef:l,calculate:function(g){return J1(g,l,n)},onDragChange:function(g){var p=Q1({offset:g,targetRef:l,containerRef:s,color:n});c.current=p,r(p);},onDragChangeComplete:function(){return i==null?void 0:i(c.current)},disabledDrag:a}),d=G(u,2),f=d[0],h=d[1];return m.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},m.createElement(nC,{prefixCls:o},m.createElement(rC,{offset:f,ref:l},m.createElement(tC,{color:n.toRgbString(),prefixCls:o})),m.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Lk=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,s=t.prefixCls,l=m.useMemo(function(){return n.map(function(c,u){var d=so(c);return a==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,a]);return m.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},r)},Cp=function(t){var n=t.gradientColors,r=t.direction,o=t.type,i=o===void 0?"hue":o,a=t.color,s=t.value,l=t.onChange,c=t.onChangeComplete,u=t.disabled,d=t.prefixCls,f=m.useRef(),h=m.useRef(),v=m.useRef(a),g=eC({color:a,targetRef:h,containerRef:f,calculate:function(E){return J1(E,h,a,i)},onDragChange:function(E){var C=Q1({offset:E,targetRef:h,containerRef:f,color:a,type:i});v.current=C,l(C);},onDragChangeComplete:function(){c==null||c(v.current,i);},direction:"x",disabledDrag:u}),p=G(g,2),b=p[0],y=p[1];return m.createElement("div",{ref:f,className:F("".concat(d,"-slider"),"".concat(d,"-slider-").concat(i)),onMouseDown:y,onTouchStart:y},m.createElement(nC,{prefixCls:d},m.createElement(rC,{offset:b,ref:h},m.createElement(tC,{size:"small",color:s,prefixCls:d})),m.createElement(Lk,{colors:n,direction:r,type:i,prefixCls:d})))};function Sp(e){return e!==void 0}var Dk=function(t,n){var r=n.defaultValue,o=n.value,i=m.useState(function(){var c;return Sp(o)?c=o:Sp(r)?c=r:c=t,so(c)}),a=G(i,2),s=a[0],l=a[1];return m.useEffect(function(){o&&l(so(o));},[o]),[s,l]},zk=["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 jk=m.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?Mk:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=d===void 0?!1:d,h=e.disabled,v=h===void 0?!1:h,g=Dk(Nk,{value:n,defaultValue:r}),p=G(g,2),b=p[0],y=p[1],S=m.useMemo(function(){var w=so(b.toRgbString());return w.setAlpha(1),w.toRgbString()},[b]),E=F("".concat(i,"-panel"),l,Z({},"".concat(i,"-panel-disabled"),v)),C={prefixCls:i,onChangeComplete:s,disabled:v},$=function(O,R){n||y(O),a==null||a(O,R);},x=m.createElement(m.Fragment,null,m.createElement(Ak,Oe({color:b,onChange:$},C)),m.createElement("div",{className:"".concat(i,"-slider-container")},m.createElement("div",{className:F("".concat(i,"-slider-group"),Z({},"".concat(i,"-slider-group-disabled-alpha"),f))},m.createElement(Cp,Oe({gradientColors:zk,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(O){return $(O,"hue")}},C)),!f&&m.createElement(Cp,Oe({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",S],color:b,value:b.toRgbString(),onChange:function(O){return $(O,"alpha")}},C))),m.createElement(mh,{color:b.toRgbString(),prefixCls:i})));return m.createElement("div",{className:E,style:c,ref:t},typeof u=="function"?u(x):x)}),oC=m.createContext({}),iC=m.createContext({}),{Provider:Bk}=oC,{Provider:Hk}=iC,sl=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",Fk=(e,t)=>e?sl(e,t):"";let wp=function(){function e(t){Cn(this,e),this.metaColor=new Nl(t),t||this.metaColor.setAlpha(0);}return Sn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Fk(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 Wk="ant-color-picker",bn=e=>e instanceof wp?e:new wp(e),ll=e=>Math.round(Number(e||0)),kl=e=>ll(e.toHsb().a*100),cd=(e,t)=>{const n=e.toHsb();return n.a=t||1,bn(n)},Vk=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const i=()=>{if(n&&!r){const a=n.toHsb();a.a=0;const s=bn(a);o==null||o(s);}};return m.createElement("div",{className:`${t}-clear`,onClick:i})},aC=Vk;var ce={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>=ce.F1&&n<=ce.F12)return !1;switch(n){case ce.ALT:case ce.CAPS_LOCK:case ce.CONTEXT_MENU:case ce.CTRL:case ce.DOWN:case ce.END:case ce.ESC:case ce.HOME:case ce.INSERT:case ce.LEFT:case ce.MAC_FF_META:case ce.META:case ce.NUMLOCK:case ce.NUM_CENTER:case ce.PAGE_DOWN:case ce.PAGE_UP:case ce.PAUSE:case ce.PRINT_SCREEN:case ce.RIGHT:case ce.SHIFT:case ce.UP:case ce.WIN_KEY:case ce.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=ce.ZERO&&t<=ce.NINE||t>=ce.NUM_ZERO&&t<=ce.NUM_MULTIPLY||t>=ce.A&&t<=ce.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case ce.SPACE:case ce.QUESTION_MARK:case ce.NUM_PLUS:case ce.NUM_MINUS:case ce.NUM_PERIOD:case ce.NUM_DIVISION:case ce.SEMICOLON:case ce.DASH:case ce.EQUALS:case ce.COMMA:case ce.PERIOD:case ce.SLASH:case ce.APOSTROPHE:case ce.SINGLE_QUOTE:case ce.OPEN_SQUARE_BRACKET:case ce.BACKSLASH:case ce.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},sC=m__namespace.createContext(null);function Uk(){return m__namespace.useContext(sC)}function Kk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=m__namespace.useState(!1),n=G(t,2),r=n[0],o=n[1],i=m__namespace.useRef(null),a=function(){window.clearTimeout(i.current);};m__namespace.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u();},e);};return [r,s,a]}function lC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=m__namespace.useRef(null),n=m__namespace.useRef(null);m__namespace.useEffect(function(){return function(){window.clearTimeout(n.current);}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null;},e);}return [function(){return t.current},r]}function Gk(e,t,n,r){var o=m__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},m__namespace.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return !c.contains(l)&&c!==l})&&o.current.triggerOpen(!1);}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[]);}var Xk=`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`,qk=`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`,Yk="".concat(Xk," ").concat(qk).split(/[\s\n]+/),Zk="aria-",Qk="data-";function xp(e,t){return e.indexOf(t)===0}function ji(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Q({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||xp(o,Zk))||n.data&&xp(o,Qk)||n.attr&&Yk.includes(o))&&(r[o]=e[o]);}),r}var Jk=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ii=void 0;function e4(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,h=e.display,v=e.order,g=e.component,p=g===void 0?"div":g,b=Je(e,Jk),y=a&&!h;function S(w){l(c,w);}m__namespace.useEffect(function(){return function(){S(null);}},[]);var E=i&&o!==ii?i(o):f,C;r||(C={opacity:y?0:1,height:y?0:ii,overflowY:y?"hidden":ii,order:a?v:ii,pointerEvents:y?"none":ii,position:y?"absolute":ii});var $={};y&&($["aria-hidden"]=!0);var x=m__namespace.createElement(p,Oe({className:F(!r&&n,u),style:Q(Q({},C),d)},$,b,{ref:t}),E);return a&&(x=m__namespace.createElement(Br,{onResize:function(O){var R=O.offsetWidth;S(R);},disabled:s},x)),x}var $a=m__namespace.forwardRef(e4);$a.displayName="Item";function t4(e){if(typeof MessageChannel>"u")gt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function n4(){var e=m__namespace.useRef(null),t=function(r){e.current||(e.current=[],t4(function(){s0.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function ca(e,t){var n=m__namespace.useState(t),r=G(n,2),o=r[0],i=r[1],a=Tn(function(s){e(function(){i(s);});});return [o,a]}var Al=m.createContext(null),r4=["component"],o4=["className"],i4=["className"],a4=function(t,n){var r=m__namespace.useContext(Al);if(!r){var o=t.component,i=o===void 0?"div":o,a=Je(t,r4);return m__namespace.createElement(i,Oe({},a,{ref:n}))}var s=r.className,l=Je(r,o4),c=t.className,u=Je(t,i4);return m__namespace.createElement(Al.Provider,{value:null},m__namespace.createElement($a,Oe({ref:n,className:F(s,c)},l,u)))},cC=m__namespace.forwardRef(a4);cC.displayName="RawItem";var s4=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],uC="responsive",dC="invalidate";function l4(e){return "+ ".concat(e.length," ...")}function c4(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,f=e.style,h=e.className,v=e.maxCount,g=e.renderRest,p=e.renderRawRest,b=e.suffix,y=e.component,S=y===void 0?"div":y,E=e.itemComponent,C=e.onVisibleChange,$=Je(e,s4),x=d==="full",w=n4(),O=ca(w,null),R=G(O,2),A=R[0],_=R[1],I=A||0,P=ca(w,new Map),T=G(P,2),N=T[0],M=T[1],L=ca(w,0),z=G(L,2),H=z[0],W=z[1],B=ca(w,0),V=G(B,2),j=V[0],K=V[1],ee=ca(w,0),q=G(ee,2),U=q[0],X=q[1],ie=m.useState(null),de=G(ie,2),ge=de[0],re=de[1],se=m.useState(null),ue=G(se,2),Y=ue[0],ne=ue[1],J=m__namespace.useMemo(function(){return Y===null&&x?Number.MAX_SAFE_INTEGER:Y||0},[Y,A]),me=m.useState(!1),he=G(me,2),ye=he[0],Re=he[1],Be="".concat(r,"-item"),_e=Math.max(H,j),ae=v===uC,ve=i.length&&ae,be=v===dC,Se=ve||typeof v=="number"&&i.length>v,Ae=m.useMemo(function(){var ze=i;return ve?A===null&&x?ze=i:ze=i.slice(0,Math.min(i.length,I/u)):typeof v=="number"&&(ze=i.slice(0,v)),ze},[i,u,A,v,ve]),ke=m.useMemo(function(){return ve?i.slice(J+1):i.slice(Ae.length)},[i,Ae,ve,J]),we=m.useCallback(function(ze,pe){var $e;return typeof l=="function"?l(ze):($e=l&&(ze==null?void 0:ze[l]))!==null&&$e!==void 0?$e:pe},[l]),Ie=m.useCallback(a||function(ze){return ze},[a]);function Fe(ze,pe,$e){Y===ze&&(pe===void 0||pe===ge)||(ne(ze),$e||(Re(ze<i.length-1),C==null||C(ze)),pe!==void 0&&re(pe));}function xe(ze,pe){_(pe.clientWidth);}function Me(ze,pe){M(function($e){var Te=new Map($e);return pe===null?Te.delete(ze):Te.set(ze,pe),Te});}function tt(ze,pe){K(pe),W(j);}function ut(ze,pe){X(pe);}function qe(ze){return N.get(we(Ae[ze],ze))}Ft(function(){if(I&&typeof _e=="number"&&Ae){var ze=U,pe=Ae.length,$e=pe-1;if(!pe){Fe(0,null);return}for(var Te=0;Te<pe;Te+=1){var Ne=qe(Te);if(x&&(Ne=Ne||0),Ne===void 0){Fe(Te-1,void 0,!0);break}if(ze+=Ne,$e===0&&ze<=I||Te===$e-1&&ze+qe($e)<=I){Fe($e,null);break}else if(ze+_e>I){Fe(Te-1,ze-Ne-U+j);break}}b&&qe(0)+U>I&&re(null);}},[I,N,j,U,we,Ae]);var ct=ye&&!!ke.length,Pe={};ge!==null&&ve&&(Pe={position:"absolute",left:ge,top:0});var te={prefixCls:Be,responsive:ve,component:E,invalidate:be},fe=s?function(ze,pe){var $e=we(ze,pe);return m__namespace.createElement(Al.Provider,{key:$e,value:Q(Q({},te),{},{order:pe,item:ze,itemKey:$e,registerSize:Me,display:pe<=J})},s(ze,pe))}:function(ze,pe){var $e=we(ze,pe);return m__namespace.createElement($a,Oe({},te,{order:pe,key:$e,item:ze,renderItem:Ie,itemKey:$e,registerSize:Me,display:pe<=J}))},oe,Ee={order:ct?J:Number.MAX_SAFE_INTEGER,className:"".concat(Be,"-rest"),registerSize:tt,display:ct};if(p)p&&(oe=m__namespace.createElement(Al.Provider,{value:Q(Q({},te),Ee)},p(ke)));else {var He=g||l4;oe=m__namespace.createElement($a,Oe({},te,Ee),typeof He=="function"?He(ke):He);}var Qe=m__namespace.createElement(S,Oe({className:F(!be&&r,h),style:f,ref:t},$),Ae.map(fe),Se?oe:null,b&&m__namespace.createElement($a,Oe({},te,{responsive:ae,responsiveDisabled:!ve,order:J,className:"".concat(Be,"-suffix"),registerSize:ut,display:!0,style:Pe}),b));return ae&&(Qe=m__namespace.createElement(Br,{onResize:xe,disabled:!ve},Qe)),Qe}var wr=m__namespace.forwardRef(c4);wr.displayName="Overflow";wr.Item=cC;wr.RESPONSIVE=uC;wr.INVALIDATE=dC;var jc=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,s=t.children,l;return typeof r=="function"?l=r(o):l=r,m__namespace.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),i&&i(u);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},l!==void 0?l:m__namespace.createElement("span",{className:F(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))},u4=function(t,n){var r,o,i=t.prefixCls,a=t.id,s=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,h=t.activeDescendantId,v=t.value,g=t.maxLength,p=t.onKeyDown,b=t.onMouseDown,y=t.onChange,S=t.onPaste,E=t.onCompositionStart,C=t.onCompositionEnd,$=t.open,x=t.attrs,w=s||m__namespace.createElement("input",null),O=w,R=O.ref,A=O.props,_=A.onKeyDown,I=A.onChange,P=A.onMouseDown,T=A.onCompositionStart,N=A.onCompositionEnd,M=A.style;return "maxLength"in w.props,w=m__namespace.cloneElement(w,Q(Q(Q({type:"search"},A),{},{id:a,ref:In(n,R),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:F("".concat(i,"-selection-search-input"),(r=w)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-label":"Search","aria-expanded":$,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":$?h:void 0},x),{},{value:f?v:"",maxLength:g,readOnly:!f,unselectable:f?null:"on",style:Q(Q({},M),{},{opacity:f?null:0}),onKeyDown:function(z){p(z),_&&_(z);},onMouseDown:function(z){b(z),P&&P(z);},onChange:function(z){y(z),I&&I(z);},onCompositionStart:function(z){E(z),T&&T(z);},onCompositionEnd:function(z){C(z),N&&N(z);},onPaste:S})),w},hh=m__namespace.forwardRef(u4);hh.displayName="Input";function fC(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var d4=typeof window<"u"&&window.document&&window.document.documentElement,f4=d4;function m4(e){return e!=null}function h4(e){return !e&&e!==0}function $p(e){return ["string","number"].includes(at(e))}function mC(e){var t=void 0;return e&&($p(e.title)?t=e.title.toString():$p(e.label)&&(t=e.label.toString())),t}function v4(e,t){f4?m__namespace.useLayoutEffect(e,t):m__namespace.useEffect(e,t);}function g4(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var Ep=function(t){t.preventDefault(),t.stopPropagation();},p4=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,f=t.showSearch,h=t.autoFocus,v=t.autoComplete,g=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,S=t.maxTagTextLength,E=t.maxTagPlaceholder,C=E===void 0?function(re){return "+ ".concat(re.length," ...")}:E,$=t.tagRender,x=t.onToggleOpen,w=t.onRemove,O=t.onInputChange,R=t.onInputPaste,A=t.onInputKeyDown,_=t.onInputMouseDown,I=t.onInputCompositionStart,P=t.onInputCompositionEnd,T=m__namespace.useRef(null),N=m.useState(0),M=G(N,2),L=M[0],z=M[1],H=m.useState(!1),W=G(H,2),B=W[0],V=W[1],j="".concat(r,"-selection"),K=i||d==="multiple"&&s===!1||d==="tags"?a:"",ee=d==="tags"||d==="multiple"&&s===!1||f&&(i||B);v4(function(){z(T.current.scrollWidth);},[K]);function q(re,se,ue,Y,ne){return m__namespace.createElement("span",{className:F("".concat(j,"-item"),Z({},"".concat(j,"-item-disabled"),ue)),title:mC(re)},m__namespace.createElement("span",{className:"".concat(j,"-item-content")},se),Y&&m__namespace.createElement(jc,{className:"".concat(j,"-item-remove"),onMouseDown:Ep,onClick:ne,customizeIcon:b},"×"))}function U(re,se,ue,Y,ne){var J=function(he){Ep(he),x(!i);};return m__namespace.createElement("span",{onMouseDown:J},$({label:se,value:re,disabled:ue,closable:Y,onClose:ne}))}function X(re){var se=re.disabled,ue=re.label,Y=re.value,ne=!u&&!se,J=ue;if(typeof S=="number"&&(typeof ue=="string"||typeof ue=="number")){var me=String(J);me.length>S&&(J="".concat(me.slice(0,S),"..."));}var he=function(Re){Re&&Re.stopPropagation(),w(re);};return typeof $=="function"?U(Y,J,se,ne,he):q(re,J,se,ne,he)}function ie(re){var se=typeof C=="function"?C(re):C;return q({title:se},se,!1)}var de=m__namespace.createElement("div",{className:"".concat(j,"-search"),style:{width:L},onFocus:function(){V(!0);},onBlur:function(){V(!1);}},m__namespace.createElement(hh,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:v,editable:ee,activeDescendantId:g,value:K,onKeyDown:A,onMouseDown:_,onChange:O,onPaste:R,onCompositionStart:I,onCompositionEnd:P,tabIndex:p,attrs:ji(t,!0)}),m__namespace.createElement("span",{ref:T,className:"".concat(j,"-search-mirror"),"aria-hidden":!0},K," ")),ge=m__namespace.createElement(wr,{prefixCls:"".concat(j,"-overflow"),data:o,renderItem:X,renderRest:ie,suffix:de,itemKey:g4,maxCount:y});return m__namespace.createElement(m__namespace.Fragment,null,ge,!o.length&&!K&&m__namespace.createElement("span",{className:"".concat(j,"-placeholder")},c))},b4=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,f=t.values,h=t.placeholder,v=t.tabIndex,g=t.showSearch,p=t.searchValue,b=t.activeValue,y=t.maxLength,S=t.onInputKeyDown,E=t.onInputMouseDown,C=t.onInputChange,$=t.onInputPaste,x=t.onInputCompositionStart,w=t.onInputCompositionEnd,O=t.title,R=m__namespace.useState(!1),A=G(R,2),_=A[0],I=A[1],P=u==="combobox",T=P||g,N=f[0],M=p||"";P&&b&&!_&&(M=b),m__namespace.useEffect(function(){P&&I(!1);},[P,b]);var L=u!=="combobox"&&!d&&!g?!1:!!M,z=O===void 0?mC(N):O,H=function(){if(N)return null;var B=L?{visibility:"hidden"}:void 0;return m__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:B},h)};return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("span",{className:"".concat(r,"-selection-search")},m__namespace.createElement(hh,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:T,activeDescendantId:c,value:M,onKeyDown:S,onMouseDown:E,onChange:function(B){I(!0),C(B);},onPaste:$,onCompositionStart:x,onCompositionEnd:w,tabIndex:v,attrs:ji(t,!0),maxLength:P?y:void 0})),!P&&N?m__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:L?{visibility:"hidden"}:void 0},N.label):null,H())};function y4(e){return ![ce.ESC,ce.SHIFT,ce.BACKSPACE,ce.TAB,ce.WIN_KEY,ce.ALT,ce.META,ce.WIN_KEY_RIGHT,ce.CTRL,ce.SEMICOLON,ce.EQUALS,ce.CAPS_LOCK,ce.CONTEXT_MENU,ce.F1,ce.F2,ce.F3,ce.F4,ce.F5,ce.F6,ce.F7,ce.F8,ce.F9,ce.F10,ce.F11,ce.F12].includes(e)}var C4=function(t,n){var r=m.useRef(null),o=m.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,f=t.onSearchSubmit,h=t.onToggleOpen,v=t.onInputKeyDown,g=t.domRef;m__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=lC(0),b=G(p,2),y=b[0],S=b[1],E=function(M){var L=M.which;(L===ce.UP||L===ce.DOWN)&&M.preventDefault(),v&&v(M),L===ce.ENTER&&s==="tags"&&!o.current&&!a&&(f==null||f(M.target.value)),y4(L)&&h(!0);},C=function(){S(!0);},$=m.useRef(null),x=function(M){d(M,!0,o.current)!==!1&&h(!0);},w=function(){o.current=!0;},O=function(M){o.current=!1,s!=="combobox"&&x(M.target.value);},R=function(M){var L=M.target.value;if(c&&$.current&&/[\r\n]/.test($.current)){var z=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(z,$.current);}$.current=null,x(L);},A=function(M){var L=M.clipboardData,z=L.getData("text");$.current=z;},_=function(M){var L=M.target;if(L!==r.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){r.current.focus();}):r.current.focus();}},I=function(M){var L=y();M.target!==r.current&&!L&&s!=="combobox"&&M.preventDefault(),(s!=="combobox"&&(!l||!L)||!a)&&(a&&u!==!1&&d("",!0,!1),h());},P={inputRef:r,onInputKeyDown:E,onInputMouseDown:C,onInputChange:R,onInputPaste:A,onInputCompositionStart:w,onInputCompositionEnd:O},T=s==="multiple"||s==="tags"?m__namespace.createElement(p4,Oe({},t,P)):m__namespace.createElement(b4,Oe({},t,P));return m__namespace.createElement("div",{ref:g,className:"".concat(i,"-selector"),onClick:_,onMouseDown:I},T)},hC=m__namespace.forwardRef(C4);hC.displayName="Selector";var S4=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],w4=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"}}},x4=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,s=t.containerWidth,l=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,h=f===void 0?"ltr":f,v=t.placement,g=t.builtinPlacements,p=t.dropdownMatchSelectWidth,b=t.dropdownRender,y=t.dropdownAlign,S=t.getPopupContainer,E=t.empty,C=t.getTriggerDOMNode,$=t.onPopupVisibleChange,x=t.onPopupMouseEnter,w=Je(t,S4),O="".concat(r,"-dropdown"),R=a;b&&(R=b(a));var A=m__namespace.useMemo(function(){return g||w4(p)},[g,p]),_=l?"".concat(O,"-").concat(l):c,I=m__namespace.useRef(null);m__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return I.current}}});var P=Q({minWidth:s},u);return typeof p=="number"?P.width=p:p&&(P.width=s),m__namespace.createElement(Lc,Oe({},w,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:v||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:A,prefixCls:O,popupTransitionName:_,popup:m__namespace.createElement("div",{ref:I,onMouseEnter:x},R),popupAlign:y,popupVisible:o,getPopupContainer:S,popupClassName:F(d,Z({},"".concat(O,"-empty"),E)),popupStyle:P,getTriggerDOMNode:C,onPopupVisibleChange:$}),i)},vC=m__namespace.forwardRef(x4);vC.displayName="SelectTrigger";function Op(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 gC(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 $4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=gC(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(d,f){d.forEach(function(h){if(f||!(l in h)){var v=h[s];o.push({key:Op(h,o.length),groupOption:f,data:h,label:h[a],value:v});}else {var g=h[c];g===void 0&&r&&(g=h.label),o.push({key:Op(h,o.length),group:!0,data:h,label:g}),u(h[l],!0);}});}return u(e,!1),o}function Sf(e){var t=Q({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return Ir(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function E4(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var s=Gy(a),l=s[0],c=s.slice(1);if(!l)return [i];var u=i.split(l);return n=n||u.length>1,u.reduce(function(d,f){return [].concat(Ze(d),Ze(r(f,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}function O4(e,t,n,r,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=m.useMemo(function(){if(at(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=m.useMemo(function(){return !!(!i&&r&&(n.length||a)&&!(s==="combobox"&&a===""))},[r,i,n.length,a,s]);return {allowClear:c,clearIcon:m.createElement(jc,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}var I4=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],P4=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function wf(e){return e==="tags"||e==="multiple"}var R4=m__namespace.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,h=e.emptyOptions,v=e.notFoundContent,g=v===void 0?"Not Found":v,p=e.onClear,b=e.mode,y=e.disabled,S=e.loading,E=e.getInputElement,C=e.getRawInputElement,$=e.open,x=e.defaultOpen,w=e.onDropdownVisibleChange,O=e.activeValue,R=e.onActiveValueChange,A=e.activeDescendantId,_=e.searchValue,I=e.autoClearSearchValue,P=e.onSearch,T=e.onSearchSplit,N=e.tokenSeparators,M=e.allowClear,L=e.suffixIcon,z=e.clearIcon,H=e.OptionList,W=e.animation,B=e.transitionName,V=e.dropdownStyle,j=e.dropdownClassName,K=e.dropdownMatchSelectWidth,ee=e.dropdownRender,q=e.dropdownAlign,U=e.placement,X=e.builtinPlacements,ie=e.getPopupContainer,de=e.showAction,ge=de===void 0?[]:de,re=e.onFocus,se=e.onBlur,ue=e.onKeyUp,Y=e.onKeyDown,ne=e.onMouseDown,J=Je(e,I4),me=wf(b),he=(s!==void 0?s:me)||b==="combobox",ye=Q({},J);P4.forEach(function(De){delete ye[De];}),u==null||u.forEach(function(De){delete ye[De];});var Re=m__namespace.useState(!1),Be=G(Re,2),_e=Be[0],ae=Be[1];m__namespace.useEffect(function(){ae(Ac());},[]);var ve=m__namespace.useRef(null),be=m__namespace.useRef(null),Se=m__namespace.useRef(null),Ae=m__namespace.useRef(null),ke=m__namespace.useRef(null),we=Kk(),Ie=G(we,3),Fe=Ie[0],xe=Ie[1],Me=Ie[2];m__namespace.useImperativeHandle(t,function(){var De,je;return {focus:(De=Ae.current)===null||De===void 0?void 0:De.focus,blur:(je=Ae.current)===null||je===void 0?void 0:je.blur,scrollTo:function(Nt){var It;return (It=ke.current)===null||It===void 0?void 0:It.scrollTo(Nt)}}});var tt=m__namespace.useMemo(function(){var De;if(b!=="combobox")return _;var je=(De=d[0])===null||De===void 0?void 0:De.value;return typeof je=="string"||typeof je=="number"?String(je):""},[_,b,d]),ut=b==="combobox"&&typeof E=="function"&&E()||null,qe=typeof C=="function"&&C(),ct=ls(be,qe==null||(n=qe.props)===null||n===void 0?void 0:n.ref),Pe=m__namespace.useState(!1),te=G(Pe,2),fe=te[0],oe=te[1];Ft(function(){oe(!0);},[]);var Ee=Dt(!1,{defaultValue:x,value:$}),He=G(Ee,2),Qe=He[0],ze=He[1],pe=fe?Qe:!1,$e=!g&&h;(y||$e&&pe&&b==="combobox")&&(pe=!1);var Te=$e?!1:pe,Ne=m__namespace.useCallback(function(De){var je=De!==void 0?De:!pe;y||(ze(je),pe!==je&&(w==null||w(je)));},[y,pe,ze,w]),st=m__namespace.useMemo(function(){return (N||[]).some(function(De){return [`
`,`\r
`].includes(De)})},[N]),et=function(je,pt,Nt){var It=!0,tn=je;R==null||R(null);var $n=Nt?null:E4(je,N);return b!=="combobox"&&$n&&(tn="",T==null||T($n),Ne(!1),It=!1),P&&tt!==tn&&P(tn,{source:pt?"typing":"effect"}),It},St=function(je){!je||!je.trim()||P(je,{source:"submit"});};m__namespace.useEffect(function(){!pe&&!me&&b!=="combobox"&&et("",!1,!1);},[pe]),m__namespace.useEffect(function(){Qe&&y&&ze(!1),y&&xe(!1);},[y]);var Bt=lC(),Ht=G(Bt,2),Ge=Ht[0],Ye=Ht[1],Ue=function(je){var pt=Ge(),Nt=je.which;if(Nt===ce.ENTER&&(b!=="combobox"&&je.preventDefault(),pe||Ne(!0)),Ye(!!tt),Nt===ce.BACKSPACE&&!pt&&me&&!tt&&d.length){for(var It=Ze(d),tn=null,$n=It.length-1;$n>=0;$n-=1){var _r=It[$n];if(!_r.disabled){It.splice($n,1),tn=_r;break}}tn&&f(It,{type:"remove",values:[tn]});}for(var Kn=arguments.length,En=new Array(Kn>1?Kn-1:0),Yt=1;Yt<Kn;Yt++)En[Yt-1]=arguments[Yt];if(pe&&ke.current){var bo;(bo=ke.current).onKeyDown.apply(bo,[je].concat(En));}Y==null||Y.apply(void 0,[je].concat(En));},mt=function(je){for(var pt=arguments.length,Nt=new Array(pt>1?pt-1:0),It=1;It<pt;It++)Nt[It-1]=arguments[It];if(pe&&ke.current){var tn;(tn=ke.current).onKeyUp.apply(tn,[je].concat(Nt));}ue==null||ue.apply(void 0,[je].concat(Nt));},ht=function(je){var pt=d.filter(function(Nt){return Nt!==je});f(pt,{type:"remove",values:[je]});},_t=m__namespace.useRef(!1),Xe=function(){xe(!0),y||(re&&!_t.current&&re.apply(void 0,arguments),ge.includes("focus")&&Ne(!0)),_t.current=!0;},We=function(){xe(!1,function(){_t.current=!1,Ne(!1);}),!y&&(tt&&(b==="tags"?P(tt,{source:"submit"}):b==="multiple"&&P("",{source:"blur"})),se&&se.apply(void 0,arguments));},dt=[];m__namespace.useEffect(function(){return function(){dt.forEach(function(De){return clearTimeout(De)}),dt.splice(0,dt.length);}},[]);var Et=function(je){var pt,Nt=je.target,It=(pt=Se.current)===null||pt===void 0?void 0:pt.getPopupElement();if(It&&It.contains(Nt)){var tn=setTimeout(function(){var En=dt.indexOf(tn);if(En!==-1&&dt.splice(En,1),Me(),!_e&&!It.contains(document.activeElement)){var Yt;(Yt=Ae.current)===null||Yt===void 0||Yt.focus();}});dt.push(tn);}for(var $n=arguments.length,_r=new Array($n>1?$n-1:0),Kn=1;Kn<$n;Kn++)_r[Kn-1]=arguments[Kn];ne==null||ne.apply(void 0,[je].concat(_r));},en=m__namespace.useState(null),Mt=G(en,2),un=Mt[0],hr=Mt[1],nr=m__namespace.useState({}),Xr=G(nr,2),vo=Xr[1];function wn(){vo({});}Ft(function(){if(Te){var De,je=Math.ceil((De=ve.current)===null||De===void 0?void 0:De.getBoundingClientRect().width);un!==je&&!Number.isNaN(je)&&hr(je);}},[Te]);var Rn;qe&&(Rn=function(je){Ne(je);}),Gk(function(){var De;return [ve.current,(De=Se.current)===null||De===void 0?void 0:De.getPopupElement()]},Te,Ne,!!qe);var go=m__namespace.useMemo(function(){return Q(Q({},e),{},{notFoundContent:g,open:pe,triggerOpen:Te,id:o,showSearch:he,multiple:me,toggleOpen:Ne})},[e,g,Te,pe,o,he,me,Ne]),An=!!L||S,xn;An&&(xn=m__namespace.createElement(jc,{className:F("".concat(i,"-arrow"),Z({},"".concat(i,"-arrow-loading"),S)),customizeIcon:L,customizeIconProps:{loading:S,searchValue:tt,open:pe,focused:Fe,showSearch:he}}));var _n=function(){var je;p==null||p(),(je=Ae.current)===null||je===void 0||je.focus(),f([],{type:"clear",values:d}),et("",!1,!1);},Rr=O4(i,_n,d,M,z,y,tt,b),Vn=Rr.allowClear,Un=Rr.clearIcon,qr=m__namespace.createElement(H,{ref:ke}),po=F(i,a,(r={},Z(r,"".concat(i,"-focused"),Fe),Z(r,"".concat(i,"-multiple"),me),Z(r,"".concat(i,"-single"),!me),Z(r,"".concat(i,"-allow-clear"),M),Z(r,"".concat(i,"-show-arrow"),An),Z(r,"".concat(i,"-disabled"),y),Z(r,"".concat(i,"-loading"),S),Z(r,"".concat(i,"-open"),pe),Z(r,"".concat(i,"-customize-input"),ut),Z(r,"".concat(i,"-show-search"),he),r)),Ot=m__namespace.createElement(vC,{ref:Se,disabled:y,prefixCls:i,visible:Te,popupElement:qr,containerWidth:un,animation:W,transitionName:B,dropdownStyle:V,dropdownClassName:j,direction:c,dropdownMatchSelectWidth:K,dropdownRender:ee,dropdownAlign:q,placement:U,builtinPlacements:X,getPopupContainer:ie,empty:h,getTriggerDOMNode:function(){return be.current},onPopupVisibleChange:Rn,onPopupMouseEnter:wn},qe?m__namespace.cloneElement(qe,{ref:ct}):m__namespace.createElement(hC,Oe({},e,{domRef:be,prefixCls:i,inputElement:ut,ref:Ae,id:o,showSearch:he,autoClearSearchValue:I,mode:b,activeDescendantId:A,tagRender:l,values:d,open:pe,onToggleOpen:Ne,activeValue:O,searchValue:tt,onSearch:et,onSearchSubmit:St,onRemove:ht,tokenWithEnter:st}))),vt;return qe?vt=Ot:vt=m__namespace.createElement("div",Oe({className:po},ye,{ref:ve,onMouseDown:Et,onKeyDown:Ue,onKeyUp:mt,onFocus:Xe,onBlur:We}),Fe&&!pe&&m__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map(function(De){var je=De.label,pt=De.value;return ["number","string"].includes(at(je))?je:pt}).join(", "))),Ot,xn,Vn&&Un),m__namespace.createElement(sC.Provider,{value:go},vt)});const _4=function(e,t){var n=m__namespace.useRef({values:new Map,options:new Map}),r=m__namespace.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=e.map(function(d){if(d.label===void 0){var f;return Q(Q({},d),{},{label:(f=a.get(d.value))===null||f===void 0?void 0:f.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value));}),n.current.values=c,n.current.options=u,l},[e,t]),o=m__namespace.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return [r,o]};function ud(e,t){return fC(e).join("").toUpperCase().includes(t)}const T4=function(e,t,n,r,o){return m__namespace.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(h,v){return o?ud(v[o],u):v[i]?ud(v[a!=="children"?a:"label"],u):ud(v[s],u)},f=c?function(h){return Sf(h)}:function(h){return h};return e.forEach(function(h){if(h[i]){var v=d(n,f(h));if(v)l.push(h);else {var g=h[i].filter(function(p){return d(n,f(p))});g.length&&l.push(Q(Q({},h),{},Z({},i,g)));}return}d(n,f(h))&&l.push(h);}),l},[e,r,o,n,t])};var Ip=0,M4=er();function N4(){var e;return M4?(e=Ip,Ip+=1):e="TEST_OR_SSR",e}function k4(e){var t=m__namespace.useState(),n=G(t,2),r=n[0],o=n[1];return m__namespace.useEffect(function(){o("rc_select_".concat(N4()));},[]),e||r}var A4=["children","value"],L4=["children"];function D4(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=Je(r,A4);return Q({key:n,value:i!==void 0?i:n,children:o},a)}function pC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return cr(e).map(function(n,r){if(!m__namespace.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=Je(s,L4);return t||!i?D4(n):Q(Q({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:pC(l)})}).filter(function(n){return n})}function z4(e,t,n,r,o){return m__namespace.useMemo(function(){var i=e,a=!e;a&&(i=pC(t));var s=new Map,l=new Map,c=function(f,h,v){v&&typeof v=="string"&&f.set(h[v],h);};function u(d){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<d.length;h+=1){var v=d[h];!v[n.options]||f?(s.set(v[n.value],v),c(l,v,n.label),c(l,v,r),c(l,v,o)):u(v[n.options],!0);}}return u(i),{options:i,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function Pp(e){var t=m__namespace.useRef();t.current=e;var n=m__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var vh=function(){return null};vh.isSelectOptGroup=!0;var gh=function(){return null};gh.isSelectOption=!0;var bC=m__namespace.forwardRef(function(e,t){var n=e.height,r=e.offset,o=e.children,i=e.prefixCls,a=e.onInnerResize,s=e.innerProps,l={},c={display:"flex",flexDirection:"column"};return r!==void 0&&(l={height:n,position:"relative",overflow:"hidden"},c=Q(Q({},c),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),m__namespace.createElement("div",{style:l},m__namespace.createElement(Br,{onResize:function(d){var f=d.offsetHeight;f&&a&&a();}},m__namespace.createElement("div",Oe({style:c,className:F(Z({},"".concat(i,"-holder-inner"),i)),ref:t},s),o)))});bC.displayName="Filler";var j4=20;function Rp(e){return "touches"in e?e.touches[0].pageY:e.pageY}var B4=function(e){fo(n,e);var t=mo(n);function n(){var r;Cn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.moveRaf=null,r.scrollbarRef=m__namespace.createRef(),r.thumbRef=m__namespace.createRef(),r.visibleTimeout=null,r.state={dragging:!1,pageY:null,startTop:null,visible:!1},r.delayHidden=function(){clearTimeout(r.visibleTimeout),r.setState({visible:!0}),r.visibleTimeout=setTimeout(function(){r.setState({visible:!1});},2e3);},r.onScrollbarTouchStart=function(s){s.preventDefault();},r.onContainerMouseDown=function(s){s.stopPropagation(),s.preventDefault();},r.patchEvents=function(){window.addEventListener("mousemove",r.onMouseMove),window.addEventListener("mouseup",r.onMouseUp),r.thumbRef.current.addEventListener("touchmove",r.onMouseMove),r.thumbRef.current.addEventListener("touchend",r.onMouseUp);},r.removeEvents=function(){var s;window.removeEventListener("mousemove",r.onMouseMove),window.removeEventListener("mouseup",r.onMouseUp),(s=r.scrollbarRef.current)===null||s===void 0||s.removeEventListener("touchstart",r.onScrollbarTouchStart),r.thumbRef.current&&(r.thumbRef.current.removeEventListener("touchstart",r.onMouseDown),r.thumbRef.current.removeEventListener("touchmove",r.onMouseMove),r.thumbRef.current.removeEventListener("touchend",r.onMouseUp)),gt.cancel(r.moveRaf);},r.onMouseDown=function(s){var l=r.props.onStartMove;r.setState({dragging:!0,pageY:Rp(s),startTop:r.getTop()}),l(),r.patchEvents(),s.stopPropagation(),s.preventDefault();},r.onMouseMove=function(s){var l=r.state,c=l.dragging,u=l.pageY,d=l.startTop,f=r.props.onScroll;if(gt.cancel(r.moveRaf),c){var h=Rp(s)-u,v=d+h,g=r.getEnableScrollRange(),p=r.getEnableHeightRange(),b=p?v/p:0,y=Math.ceil(b*g);r.moveRaf=gt(function(){f(y);});}},r.onMouseUp=function(){var s=r.props.onStopMove;r.setState({dragging:!1}),s(),r.removeEvents();},r.getSpinHeight=function(){var s=r.props,l=s.height,c=s.count,u=l/c*10;return u=Math.max(u,j4),u=Math.min(u,l/2),Math.floor(u)},r.getEnableScrollRange=function(){var s=r.props,l=s.scrollHeight,c=s.height;return l-c||0},r.getEnableHeightRange=function(){var s=r.props.height,l=r.getSpinHeight();return s-l||0},r.getTop=function(){var s=r.props.scrollTop,l=r.getEnableScrollRange(),c=r.getEnableHeightRange();if(s===0||l===0)return 0;var u=s/l;return u*c},r.showScroll=function(){var s=r.props,l=s.height,c=s.scrollHeight;return c>l},r}return Sn(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown);}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden();}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout);}},{key:"render",value:function(){var o=this.state,i=o.dragging,a=o.visible,s=this.props,l=s.prefixCls,c=s.direction,u=this.getSpinHeight(),d=this.getTop(),f=this.showScroll(),h=f&&a,v=c==="rtl"?{left:0}:{right:0};return m__namespace.createElement("div",{ref:this.scrollbarRef,className:F("".concat(l,"-scrollbar"),Z({},"".concat(l,"-scrollbar-show"),f)),style:Q(Q({width:8,top:0,bottom:0},v),{},{position:"absolute",display:h?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},m__namespace.createElement("div",{ref:this.thumbRef,className:F("".concat(l,"-scrollbar-thumb"),Z({},"".concat(l,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:u,top:d,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(m__namespace.Component);function H4(e){var t=e.children,n=e.setRef,r=m__namespace.useCallback(function(o){n(o);},[]);return m__namespace.cloneElement(t,{ref:r})}function F4(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map(function(s,l){var c=t+l,u=o(s,c,{}),d=a(s);return m__namespace.createElement(H4,{key:d,setRef:function(h){return r(s,h)}},u)})}var W4=function(){function e(){Cn(this,e),this.maps=void 0,this.maps=Object.create(null);}return Sn(e,[{key:"set",value:function(n,r){this.maps[n]=r;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function V4(e,t,n){var r=m__namespace.useState(0),o=G(r,2),i=o[0],a=o[1],s=m.useRef(new Map),l=m.useRef(new W4),c=m.useRef();function u(){gt.cancel(c.current);}function d(){u(),c.current=gt(function(){s.current.forEach(function(h,v){if(h&&h.offsetParent){var g=Il(h),p=g.offsetHeight;l.current.get(v)!==p&&l.current.set(v,g.offsetHeight);}}),a(function(h){return h+1});});}function f(h,v){var g=e(h),p=s.current.get(g);v?(s.current.set(g,v),d()):s.current.delete(g),!p!=!v&&(v?t==null||t(h):n==null||n(h));}return m.useEffect(function(){return u},[]),[f,d,l.current,i]}function U4(e,t,n,r,o,i,a,s){var l=m__namespace.useRef();return function(c){if(c==null){s();return}if(gt.cancel(l.current),typeof c=="number")a(c);else if(c&&at(c)==="object"){var u,d=c.align;"index"in c?u=c.index:u=t.findIndex(function(g){return o(g)===c.key});var f=c.offset,h=f===void 0?0:f,v=function g(p,b){if(!(p<0||!e.current)){var y=e.current.clientHeight,S=!1,E=b;if(y){for(var C=b||d,$=0,x=0,w=0,O=Math.min(t.length,u),R=0;R<=O;R+=1){var A=o(t[R]);x=$;var _=n.get(A);w=x+(_===void 0?r:_),$=w,R===u&&_===void 0&&(S=!0);}var I=null;switch(C){case"top":I=x-h;break;case"bottom":I=w-y+h;break;default:{var P=e.current.scrollTop,T=P+y;x<P?E="top":w>T&&(E="bottom");}}I!==null&&I!==e.current.scrollTop&&a(I);}l.current=gt(function(){S&&i(),g(p-1,E);},2);}};v(3);}}}function K4(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var s={__EMPTY_ITEM__:!0};function l(v){return v!==void 0?n(v):s}for(var c=null,u=Math.abs(r-o)!==1,d=0;d<a.length;d+=1){var f=l(i[d]),h=l(a[d]);if(f!==h){c=d,u=u||f!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:u}}function G4(e,t,n){var r=m__namespace.useState(e),o=G(r,2),i=o[0],a=o[1],s=m__namespace.useState(null),l=G(s,2),c=l[0],u=l[1];return m__namespace.useEffect(function(){var d=K4(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 X4=(typeof navigator>"u"?"undefined":at(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const yC=function(e,t){var n=m.useRef(!1),r=m.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1;},50);}var i=m.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=a<0&&i.current.top||a>0&&i.current.bottom;return s&&l?(clearTimeout(r.current),n.current=!1):(!l||n.current)&&o(),!n.current&&l}};function q4(e,t,n,r){var o=m.useRef(0),i=m.useRef(null),a=m.useRef(null),s=m.useRef(!1),l=yC(t,n);function c(d){if(e){gt.cancel(i.current);var f=d.deltaY;o.current+=f,a.current=f,!l(f)&&(X4||d.preventDefault(),i.current=gt(function(){var h=s.current?10:1;r(o.current*h),o.current=0;}));}}function u(d){e&&(s.current=d.detail===a.current);}return [c,u]}var Y4=14/15;function Z4(e,t,n){var r=m.useRef(!1),o=m.useRef(0),i=m.useRef(null),a=m.useRef(null),s,l=function(f){if(r.current){var h=Math.ceil(f.touches[0].pageY),v=o.current-h;o.current=h,n(v)&&f.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){v*=Y4,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(a.current);},16);}},c=function(){r.current=!1,s();},u=function(f){s(),f.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(f.touches[0].pageY),i.current=f.target,i.current.addEventListener("touchmove",l),i.current.addEventListener("touchend",c));};s=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",c));},Ft(function(){return e&&t.current.addEventListener("touchstart",u),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),s(),clearInterval(a.current);}},[e]);}var Q4=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],J4=[],eA={overflowY:"auto",overflowAnchor:"none"};function tA(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,f=e.itemKey,h=e.virtual,v=e.direction,g=e.component,p=g===void 0?"div":g,b=e.onScroll,y=e.onVisibleChange,S=e.innerProps,E=Je(e,Q4),C=!!(h!==!1&&i&&a),$=C&&u&&a*u.length>i,x=m.useState(0),w=G(x,2),O=w[0],R=w[1],A=m.useState(!1),_=G(A,2),I=_[0],P=_[1],T=F(r,Z({},"".concat(r,"-rtl"),v==="rtl"),o),N=u||J4,M=m.useRef(),L=m.useRef(),z=m.useRef(),H=m__namespace.useCallback(function(xe){return typeof f=="function"?f(xe):xe==null?void 0:xe[f]},[f]),W={getKey:H};function B(xe){R(function(Me){var tt;typeof xe=="function"?tt=xe(Me):tt=xe;var ut=ye(tt);return M.current.scrollTop=ut,ut});}var V=m.useRef({start:0,end:N.length}),j=m.useRef(),K=G4(N,H),ee=G(K,1),q=ee[0];j.current=q;var U=V4(H,null,null),X=G(U,4),ie=X[0],de=X[1],ge=X[2],re=X[3],se=m__namespace.useMemo(function(){if(!C)return {scrollHeight:void 0,start:0,end:N.length-1,offset:void 0};if(!$){var xe;return {scrollHeight:((xe=L.current)===null||xe===void 0?void 0:xe.offsetHeight)||0,start:0,end:N.length-1,offset:void 0}}for(var Me=0,tt,ut,qe,ct=N.length,Pe=0;Pe<ct;Pe+=1){var te=N[Pe],fe=H(te),oe=ge.get(fe),Ee=Me+(oe===void 0?a:oe);Ee>=O&&tt===void 0&&(tt=Pe,ut=Me),Ee>O+i&&qe===void 0&&(qe=Pe),Me=Ee;}return tt===void 0&&(tt=0,ut=0,qe=Math.ceil(i/a)),qe===void 0&&(qe=N.length-1),qe=Math.min(qe+1,N.length),{scrollHeight:Me,start:tt,end:qe,offset:ut}},[$,C,O,N,re,i]),ue=se.scrollHeight,Y=se.start,ne=se.end,J=se.offset;V.current.start=Y,V.current.end=ne;var me=ue-i,he=m.useRef(me);he.current=me;function ye(xe){var Me=xe;return Number.isNaN(he.current)||(Me=Math.min(Me,he.current)),Me=Math.max(Me,0),Me}var Re=O<=0,Be=O>=me,_e=yC(Re,Be);function ae(xe){var Me=xe;B(Me);}function ve(xe){var Me=xe.currentTarget.scrollTop;Me!==O&&B(Me),b==null||b(xe);}var be=q4(C,Re,Be,function(xe){B(function(Me){var tt=Me+xe;return tt});}),Se=G(be,2),Ae=Se[0],ke=Se[1];Z4(C,M,function(xe,Me){return _e(xe,Me)?!1:(Ae({preventDefault:function(){},deltaY:xe}),!0)}),Ft(function(){function xe(Me){C&&Me.preventDefault();}return M.current.addEventListener("wheel",Ae),M.current.addEventListener("DOMMouseScroll",ke),M.current.addEventListener("MozMousePixelScroll",xe),function(){M.current&&(M.current.removeEventListener("wheel",Ae),M.current.removeEventListener("DOMMouseScroll",ke),M.current.removeEventListener("MozMousePixelScroll",xe));}},[C]);var we=U4(M,N,ge,a,H,de,B,function(){var xe;(xe=z.current)===null||xe===void 0||xe.delayHidden();});m__namespace.useImperativeHandle(t,function(){return {scrollTo:we}}),Ft(function(){if(y){var xe=N.slice(Y,ne+1);y(xe,N);}},[Y,ne,N]);var Ie=F4(N,Y,ne,ie,d,W),Fe=null;return i&&(Fe=Q(Z({},l?"height":"maxHeight",i),eA),C&&(Fe.overflowY="hidden",I&&(Fe.pointerEvents="none"))),m__namespace.createElement("div",Oe({style:Q(Q({},c),{},{position:"relative"}),className:T},E),m__namespace.createElement(p,{className:"".concat(r,"-holder"),style:Fe,ref:M,onScroll:ve},m__namespace.createElement(bC,{prefixCls:r,height:ue,offset:J,onInnerResize:de,ref:L,innerProps:S},Ie)),C&&m__namespace.createElement(B4,{ref:z,prefixCls:r,scrollTop:O,height:i,scrollHeight:ue,count:N.length,direction:v,onScroll:ae,onStartMove:function(){P(!0);},onStopMove:function(){P(!1);}}))}var CC=m__namespace.forwardRef(tA);CC.displayName="List";var SC=m__namespace.createContext(null);function nA(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var rA=["disabled","title","children","style","className"];function _p(e){return typeof e=="string"||typeof e=="number"}var oA=function(t,n){var r=Uk(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,h=m__namespace.useContext(SC),v=h.flattenOptions,g=h.onActiveValue,p=h.defaultActiveFirstOption,b=h.onSelect,y=h.menuItemSelectedIcon,S=h.rawValues,E=h.fieldNames,C=h.virtual,$=h.direction,x=h.listHeight,w=h.listItemHeight,O="".concat(o,"-item"),R=is(function(){return v},[a,v],function(q,U){return U[0]&&q[1]!==U[1]}),A=m__namespace.useRef(null),_=function(U){U.preventDefault();},I=function(U){A.current&&A.current.scrollTo(typeof U=="number"?{index:U}:U);},P=function(U){for(var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ie=R.length,de=0;de<ie;de+=1){var ge=(U+de*X+ie)%ie,re=R[ge],se=re.group,ue=re.data;if(!se&&!ue.disabled)return ge}return -1},T=m__namespace.useState(function(){return P(0)}),N=G(T,2),M=N[0],L=N[1],z=function(U){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;L(U);var ie={source:X?"keyboard":"mouse"},de=R[U];if(!de){g(null,-1,ie);return}g(de.value,U,ie);};m.useEffect(function(){z(p!==!1?P(0):-1);},[R.length,c]);var H=m__namespace.useCallback(function(q){return S.has(q)&&l!=="combobox"},[l,Ze(S).toString(),S.size]);m.useEffect(function(){var q=setTimeout(function(){if(!s&&a&&S.size===1){var X=Array.from(S)[0],ie=R.findIndex(function(de){var ge=de.data;return ge.value===X});ie!==-1&&(z(ie),I(ie));}});if(a){var U;(U=A.current)===null||U===void 0||U.scrollTo(void 0);}return function(){return clearTimeout(q)}},[a,c,v.length]);var W=function(U){U!==void 0&&b(U,{selected:!S.has(U)}),s||u(!1);};if(m__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(U){var X=U.which,ie=U.ctrlKey;switch(X){case ce.N:case ce.P:case ce.UP:case ce.DOWN:{var de=0;if(X===ce.UP?de=-1:X===ce.DOWN?de=1:nA()&&ie&&(X===ce.N?de=1:X===ce.P&&(de=-1)),de!==0){var ge=P(M+de,de);I(ge),z(ge,!0);}break}case ce.ENTER:{var re=R[M];re&&!re.data.disabled?W(re.value):W(void 0),a&&U.preventDefault();break}case ce.ESC:u(!1),a&&U.stopPropagation();}},onKeyUp:function(){},scrollTo:function(U){I(U);}}}),R.length===0)return m__namespace.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(O,"-empty"),onMouseDown:_},d);var B=Object.keys(E).map(function(q){return E[q]}),V=function(U){return U.label};function j(q,U){var X=q.group;return {role:X?"presentation":"option",id:"".concat(i,"_list_").concat(U)}}var K=function(U){var X=R[U];if(!X)return null;var ie=X.data||{},de=ie.value,ge=X.group,re=ji(ie,!0),se=V(X);return X?m__namespace.createElement("div",Oe({"aria-label":typeof se=="string"&&!ge?se:null},re,{key:U},j(X,U),{"aria-selected":H(de)}),de):null},ee={role:"listbox",id:"".concat(i,"_list")};return m__namespace.createElement(m__namespace.Fragment,null,C&&m__namespace.createElement("div",Oe({},ee,{style:{height:0,width:0,overflow:"hidden"}}),K(M-1),K(M),K(M+1)),m__namespace.createElement(CC,{itemKey:"key",ref:A,data:R,height:x,itemHeight:w,fullHeight:!1,onMouseDown:_,onScroll:f,virtual:C,direction:$,innerProps:C?null:ee},function(q,U){var X,ie=q.group,de=q.groupOption,ge=q.data,re=q.label,se=q.value,ue=ge.key;if(ie){var Y,ne=(Y=ge.title)!==null&&Y!==void 0?Y:_p(re)?re.toString():void 0;return m__namespace.createElement("div",{className:F(O,"".concat(O,"-group")),title:ne},re!==void 0?re:ue)}var J=ge.disabled,me=ge.title;ge.children;var he=ge.style,ye=ge.className,Re=Je(ge,rA),Be=yn(Re,B),_e=H(se),ae="".concat(O,"-option"),ve=F(O,ae,ye,(X={},Z(X,"".concat(ae,"-grouped"),de),Z(X,"".concat(ae,"-active"),M===U&&!J),Z(X,"".concat(ae,"-disabled"),J),Z(X,"".concat(ae,"-selected"),_e),X)),be=V(q),Se=!y||typeof y=="function"||_e,Ae=typeof be=="number"?be:be||se,ke=_p(Ae)?Ae.toString():void 0;return me!==void 0&&(ke=me),m__namespace.createElement("div",Oe({},ji(Be),C?{}:j(q,U),{"aria-selected":_e,className:ve,title:ke,onMouseMove:function(){M===U||J||z(U);},onClick:function(){J||W(se);},style:he}),m__namespace.createElement("div",{className:"".concat(ae,"-content")},Ae),m__namespace.isValidElement(y)||_e,Se&&m__namespace.createElement(jc,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:_e}},_e?"✓":null))}))},wC=m__namespace.forwardRef(oA);wC.displayName="OptionList";var iA=["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"],aA=["inputValue"];function sA(e){return !e||at(e)!=="object"}var lA=m__namespace.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=d===void 0?!0:d,h=e.onSelect,v=e.onDeselect,g=e.dropdownMatchSelectWidth,p=g===void 0?!0:g,b=e.filterOption,y=e.filterSort,S=e.optionFilterProp,E=e.optionLabelProp,C=e.options,$=e.children,x=e.defaultActiveFirstOption,w=e.menuItemSelectedIcon,O=e.virtual,R=e.direction,A=e.listHeight,_=A===void 0?200:A,I=e.listItemHeight,P=I===void 0?20:I,T=e.value,N=e.defaultValue,M=e.labelInValue,L=e.onChange,z=Je(e,iA),H=k4(n),W=wf(r),B=!!(!C&&$),V=m__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),j=m__namespace.useMemo(function(){return gC(s,B)},[JSON.stringify(s),B]),K=Dt("",{value:c!==void 0?c:l,postState:function($e){return $e||""}}),ee=G(K,2),q=ee[0],U=ee[1],X=z4(C,$,j,S,E),ie=X.valueOptions,de=X.labelOptions,ge=X.options,re=m__namespace.useCallback(function(pe){var $e=fC(pe);return $e.map(function(Te){var Ne,st,et,St,Bt;if(sA(Te))Ne=Te;else {var Ht;et=Te.key,st=Te.label,Ne=(Ht=Te.value)!==null&&Ht!==void 0?Ht:et;}var Ge=ie.get(Ne);if(Ge){var Ye;st===void 0&&(st=Ge==null?void 0:Ge[E||j.label]),et===void 0&&(et=(Ye=Ge==null?void 0:Ge.key)!==null&&Ye!==void 0?Ye:Ne),St=Ge==null?void 0:Ge.disabled,Bt=Ge==null?void 0:Ge.title;}return {label:st,value:Ne,key:et,disabled:St,title:Bt}})},[j,E,ie]),se=Dt(N,{value:T}),ue=G(se,2),Y=ue[0],ne=ue[1],J=m__namespace.useMemo(function(){var pe,$e=re(Y);return r==="combobox"&&h4((pe=$e[0])===null||pe===void 0?void 0:pe.value)?[]:$e},[Y,re,r]),me=_4(J,ie),he=G(me,2),ye=he[0],Re=he[1],Be=m__namespace.useMemo(function(){if(!r&&ye.length===1){var pe=ye[0];if(pe.value===null&&(pe.label===null||pe.label===void 0))return []}return ye.map(function($e){var Te;return Q(Q({},$e),{},{label:(Te=$e.label)!==null&&Te!==void 0?Te:$e.value})})},[r,ye]),_e=m__namespace.useMemo(function(){return new Set(ye.map(function(pe){return pe.value}))},[ye]);m__namespace.useEffect(function(){if(r==="combobox"){var pe,$e=(pe=ye[0])===null||pe===void 0?void 0:pe.value;U(m4($e)?String($e):"");}},[ye]);var ae=Pp(function(pe,$e){var Te,Ne=$e??pe;return Te={},Z(Te,j.value,pe),Z(Te,j.label,Ne),Te}),ve=m__namespace.useMemo(function(){if(r!=="tags")return ge;var pe=Ze(ge),$e=function(Ne){return ie.has(Ne)};return Ze(ye).sort(function(Te,Ne){return Te.value<Ne.value?-1:1}).forEach(function(Te){var Ne=Te.value;$e(Ne)||pe.push(ae(Ne,Te.label));}),pe},[ae,ge,ie,ye,r]),be=T4(ve,j,q,V,S),Se=m__namespace.useMemo(function(){return r!=="tags"||!q||be.some(function(pe){return pe[S||"value"]===q})||be.some(function(pe){return pe[j.value]===q})?be:[ae(q)].concat(Ze(be))},[ae,S,r,be,q,j]),Ae=m__namespace.useMemo(function(){return y?Ze(Se).sort(function(pe,$e){return y(pe,$e)}):Se},[Se,y]),ke=m__namespace.useMemo(function(){return $4(Ae,{fieldNames:j,childrenAsData:B})},[Ae,j,B]),we=function($e){var Te=re($e);if(ne(Te),L&&(Te.length!==ye.length||Te.some(function(et,St){var Bt;return ((Bt=ye[St])===null||Bt===void 0?void 0:Bt.value)!==(et==null?void 0:et.value)}))){var Ne=M?Te:Te.map(function(et){return et.value}),st=Te.map(function(et){return Sf(Re(et.value))});L(W?Ne:Ne[0],W?st:st[0]);}},Ie=m__namespace.useState(null),Fe=G(Ie,2),xe=Fe[0],Me=Fe[1],tt=m__namespace.useState(0),ut=G(tt,2),qe=ut[0],ct=ut[1],Pe=x!==void 0?x:r!=="combobox",te=m__namespace.useCallback(function(pe,$e){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ne=Te.source,st=Ne===void 0?"keyboard":Ne;ct($e),a&&r==="combobox"&&pe!==null&&st==="keyboard"&&Me(String(pe));},[a,r]),fe=function($e,Te,Ne){var st=function(){var _t,Xe=Re($e);return [M?{label:Xe==null?void 0:Xe[j.label],value:$e,key:(_t=Xe==null?void 0:Xe.key)!==null&&_t!==void 0?_t:$e}:$e,Sf(Xe)]};if(Te&&h){var et=st(),St=G(et,2),Bt=St[0],Ht=St[1];h(Bt,Ht);}else if(!Te&&v&&Ne!=="clear"){var Ge=st(),Ye=G(Ge,2),Ue=Ye[0],mt=Ye[1];v(Ue,mt);}},oe=Pp(function(pe,$e){var Te,Ne=W?$e.selected:!0;Ne?Te=W?[].concat(Ze(ye),[pe]):[pe]:Te=ye.filter(function(st){return st.value!==pe}),we(Te),fe(pe,Ne),r==="combobox"?Me(""):(!wf||f)&&(U(""),Me(""));}),Ee=function($e,Te){we($e);var Ne=Te.type,st=Te.values;(Ne==="remove"||Ne==="clear")&&st.forEach(function(et){fe(et.value,!1,Ne);});},He=function($e,Te){if(U($e),Me(null),Te.source==="submit"){var Ne=($e||"").trim();if(Ne){var st=Array.from(new Set([].concat(Ze(_e),[Ne])));we(st),fe(Ne,!0),U("");}return}Te.source!=="blur"&&(r==="combobox"&&we($e),u==null||u($e));},Qe=function($e){var Te=$e;r!=="tags"&&(Te=$e.map(function(st){var et=de.get(st);return et==null?void 0:et.value}).filter(function(st){return st!==void 0}));var Ne=Array.from(new Set([].concat(Ze(_e),Ze(Te))));we(Ne),Ne.forEach(function(st){fe(st,!0);});},ze=m__namespace.useMemo(function(){var pe=O!==!1&&p!==!1;return Q(Q({},X),{},{flattenOptions:ke,onActiveValue:te,defaultActiveFirstOption:Pe,onSelect:oe,menuItemSelectedIcon:w,rawValues:_e,fieldNames:j,virtual:pe,direction:R,listHeight:_,listItemHeight:P,childrenAsData:B})},[X,ke,te,Pe,oe,w,_e,j,O,p,_,P,B]);return m__namespace.createElement(SC.Provider,{value:ze},m__namespace.createElement(R4,Oe({},z,{id:H,prefixCls:i,ref:t,omitDomProps:aA,mode:r,displayValues:Be,onDisplayValuesChange:Ee,direction:R,searchValue:q,onSearch:He,autoClearSearchValue:f,onSearchSplit:Qe,dropdownMatchSelectWidth:p,OptionList:wC,emptyOptions:!ke.length,activeValue:xe,activeDescendantId:"".concat(H,"_list_").concat(qe)})))}),ph=lA;ph.Option=gh;ph.OptGroup=vh;const cA=()=>{const[,e]=Kr(),n=new Wt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return m__namespace.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},m__namespace.createElement("g",{transform:"translate(24 31.67)"},m__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m__namespace.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),m__namespace.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),m__namespace.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),m__namespace.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),m__namespace.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),m__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},m__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},uA=cA,dA=()=>{const[,e]=Kr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=m.useMemo(()=>({borderColor:new Wt(t).onBackground(o).toHexShortString(),shadowColor:new Wt(n).onBackground(o).toHexShortString(),contentColor:new Wt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return m__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m__namespace.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),m__namespace.createElement("g",{fillRule:"nonzero",stroke:i},m__namespace.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),m__namespace.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},fA=dA,mA=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}}}}},hA=Vt("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=ft(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [mA(r)]});var vA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xC=m__namespace.createElement(uA,null),$C=m__namespace.createElement(fA,null),bh=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=xC,description:i,children:a,imageStyle:s,style:l}=e,c=vA(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=m__namespace.useContext(nt),h=u("empty",r),[v,g]=hA(h),[p]=Zi("Empty"),b=typeof i<"u"?i:p==null?void 0:p.description,y=typeof b=="string"?b:"empty";let S=null;return typeof o=="string"?S=m__namespace.createElement("img",{alt:y,src:o}):S=o,v(m__namespace.createElement("div",Object.assign({className:F(g,h,f==null?void 0:f.className,{[`${h}-normal`]:o===$C,[`${h}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},f==null?void 0:f.style),l)},c),m__namespace.createElement("div",{className:`${h}-image`,style:s},S),b&&m__namespace.createElement("div",{className:`${h}-description`},b),a&&m__namespace.createElement("div",{className:`${h}-footer`},a)))};bh.PRESENTED_IMAGE_DEFAULT=xC;bh.PRESENTED_IMAGE_SIMPLE=$C;const ua=bh,gA=e=>{const{componentName:t}=e,{getPrefixCls:n}=m.useContext(nt),r=n("empty");switch(t){case"Table":case"List":return m.createElement(ua,{image:ua.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return m.createElement(ua,{image:ua.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return m.createElement(ua,null)}},EC=gA;function pA(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 bA(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return {[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Bc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return {[r]:Object.assign(Object.assign({},pA(e,r,t)),bA(n,r,t))}}const yA=e=>{const{controlPaddingHorizontal:t,controlHeight:n,fontSize:r,lineHeight:o}=e;return {position:"relative",display:"block",minHeight:n,padding:`${(n-r*o)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:o,boxSizing:"border-box"}},CA=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},Tt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
          ${o}${s}bottomLeft,
          ${i}${s}bottomLeft
        `]:{animationName:lh},[`
          ${o}${s}topLeft,
          ${i}${s}topLeft,
          ${o}${s}topRight,
          ${i}${s}topRight
        `]:{animationName:uh},[`${a}${s}bottomLeft`]:{animationName:ch},[`
          ${a}${s}topLeft,
          ${a}${s}topRight
        `]:{animationName:dh},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},yA(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Lo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},uo(e,"slide-up"),uo(e,"slide-down"),Ml(e,"move-up"),Ml(e,"move-down")]},SA=CA,ai=2,OC=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return [o,i]};function dd(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=OC(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-ai}px ${ai*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:`${ai}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:ai,marginBottom:ai,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:ai*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({},Uo()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n          &-input,\n          &-mirror\n        ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const wA=e=>{const{componentCls:t}=e,n=ft(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=ft(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=OC(e);return [dd(e),dd(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},dd(r,"lg")]},xA=wA;function fd(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({},Tt(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 $A(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [fd(e),fd(ft(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[`
            &${t}-show-arrow ${t}-selection-item,
            &${t}-show-arrow ${t}-selection-placeholder
          `]:{paddingInlineEnd:e.fontSize*1.5}}}},fd(ft(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const EA=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"}}}},md=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}})}}},OA=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"}}}},IA=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return {[t]:Object.assign(Object.assign({},Tt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},EA(e)),OA(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Lo),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},Lo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},Uo()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},PA=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%"}}},IA(e),$A(e),xA(e),SA(e),{[`${t}-rtl`]:{direction:"rtl"}},md(t,ft(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),md(`${t}-status-error`,ft(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),md(`${t}-status-warning`,ft(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Bc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},RA=Vt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=ft(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return [PA(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),_A=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return {bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function TA(e,t){return e||_A(t)}function MA(e,t){return t!==void 0?t:e!==null}var NA={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 kA=NA;var AA=1/0,LA="[object Symbol]",DA=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,zA=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Hc="\\ud800-\\udfff",IC="\\u0300-\\u036f\\ufe20-\\ufe23",PC="\\u20d0-\\u20f0",RC="\\u2700-\\u27bf",_C="a-z\\xdf-\\xf6\\xf8-\\xff",jA="\\xac\\xb1\\xd7\\xf7",BA="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",HA="\\u2000-\\u206f",FA=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",TC="A-Z\\xc0-\\xd6\\xd8-\\xde",MC="\\ufe0e\\ufe0f",NC=jA+BA+HA+FA,yh="['’]",WA="["+Hc+"]",Tp="["+NC+"]",Ll="["+IC+PC+"]",kC="\\d+",VA="["+RC+"]",AC="["+_C+"]",LC="[^"+Hc+NC+kC+RC+_C+TC+"]",xf="\\ud83c[\\udffb-\\udfff]",UA="(?:"+Ll+"|"+xf+")",DC="[^"+Hc+"]",Ch="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",vi="["+TC+"]",zC="\\u200d",Mp="(?:"+AC+"|"+LC+")",KA="(?:"+vi+"|"+LC+")",Np="(?:"+yh+"(?:d|ll|m|re|s|t|ve))?",kp="(?:"+yh+"(?:D|LL|M|RE|S|T|VE))?",jC=UA+"?",BC="["+MC+"]?",GA="(?:"+zC+"(?:"+[DC,Ch,Sh].join("|")+")"+BC+jC+")*",HC=BC+jC+GA,XA="(?:"+[VA,Ch,Sh].join("|")+")"+HC,qA="(?:"+[DC+Ll+"?",Ll,Ch,Sh,WA].join("|")+")",YA=RegExp(yh,"g"),ZA=RegExp(Ll,"g"),QA=RegExp(xf+"(?="+xf+")|"+qA+HC,"g"),JA=RegExp([vi+"?"+AC+"+"+Np+"(?="+[Tp,vi,"$"].join("|")+")",KA+"+"+kp+"(?="+[Tp,vi+Mp,"$"].join("|")+")",vi+"?"+Mp+"+"+Np,vi+"+"+kp,kC,XA].join("|"),"g"),eL=RegExp("["+zC+Hc+IC+PC+MC+"]"),tL=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nL={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},rL=typeof Eo=="object"&&Eo&&Eo.Object===Object&&Eo,oL=typeof self=="object"&&self&&self.Object===Object&&self,iL=rL||oL||Function("return this")();function aL(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function sL(e){return e.split("")}function lL(e){return e.match(DA)||[]}function cL(e){return function(t){return e==null?void 0:e[t]}}var uL=cL(nL);function FC(e){return eL.test(e)}function dL(e){return tL.test(e)}function fL(e){return FC(e)?mL(e):sL(e)}function mL(e){return e.match(QA)||[]}function hL(e){return e.match(JA)||[]}var vL=Object.prototype,gL=vL.toString,Ap=iL.Symbol,Lp=Ap?Ap.prototype:void 0,Dp=Lp?Lp.toString:void 0;function pL(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function bL(e){if(typeof e=="string")return e;if(xL(e))return Dp?Dp.call(e):"";var t=e+"";return t=="0"&&1/e==-AA?"-0":t}function yL(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:pL(e,t,n)}function CL(e){return function(t){t=Fc(t);var n=FC(t)?fL(t):void 0,r=n?n[0]:t.charAt(0),o=n?yL(n,1).join(""):t.slice(1);return r[e]()+o}}function SL(e){return function(t){return aL(PL(OL(t).replace(YA,"")),e,"")}}function wL(e){return !!e&&typeof e=="object"}function xL(e){return typeof e=="symbol"||wL(e)&&gL.call(e)==LA}function Fc(e){return e==null?"":bL(e)}var $L=SL(function(e,t,n){return t=t.toLowerCase(),e+(n?EL(t):t)});function EL(e){return IL(Fc(e).toLowerCase())}function OL(e){return e=Fc(e),e&&e.replace(zA,uL).replace(ZA,"")}var IL=CL("toUpperCase");function PL(e,t,n){return e=Fc(e),t=n?void 0:t,t===void 0?dL(e)?hL(e):lL(e):e.match(t)||[]}var RL=$L;const _L=sn(RL);function TL(e,t){Ir(e,"[@ant-design/icons] ".concat(t));}function zp(e){return at(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(at(e.icon)==="object"||typeof e.icon=="function")}function jp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[_L(n)]=r;}return t},{})}function $f(e,t,n){return n?m.createElement(e.tag,Q(Q({key:t},jp(e.attrs)),n),(e.children||[]).map(function(r,o){return $f(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):m.createElement(e.tag,Q({key:t},jp(e.attrs)),(e.children||[]).map(function(r,o){return $f(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function WC(e){return jr(e)[0]}function VC(e){return e?Array.isArray(e)?e:[e]:[]}var ML=`
.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);
  }
}
`,NL=function(t){var n=m.useContext(Gm),r=n.csp,o=n.prefixCls,i=ML;o&&(i=i.replace(/anticon/g,o)),m.useEffect(function(){var a=t.current,s=Tl(a);Zm(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},kL=["icon","className","onClick","style","primaryColor","secondaryColor"],Ea={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function AL(e){var t=e.primaryColor,n=e.secondaryColor;Ea.primaryColor=t,Ea.secondaryColor=n||WC(t),Ea.calculated=!!n;}function LL(){return Q({},Ea)}var Wc=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Je(t,kL),c=m__namespace.useRef(),u=Ea;if(a&&(u={primaryColor:a,secondaryColor:s||WC(a)}),NL(c),TL(zp(n),"icon should be icon definiton, but got ".concat(n)),!zp(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=Q(Q({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),$f(d.icon,"svg-".concat(d.name),Q(Q({className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Wc.displayName="IconReact";Wc.getTwoToneColors=LL;Wc.setTwoToneColors=AL;const wh=Wc;function UC(e){var t=VC(e),n=G(t,2),r=n[0],o=n[1];return wh.setTwoToneColors({primaryColor:r,secondaryColor:o})}function DL(){var e=wh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var zL=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];UC(tM.primary);var Vc=m__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Je(e,zL),d=m__namespace.useContext(Gm),f=d.prefixCls,h=f===void 0?"anticon":f,v=d.rootClassName,g=F(v,h,(n={},Z(n,"".concat(h,"-").concat(o.name),!!o.name),Z(n,"".concat(h,"-spin"),!!i||o.name==="loading"),n),r),p=s;p===void 0&&l&&(p=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=VC(c),S=G(y,2),E=S[0],C=S[1];return m__namespace.createElement("span",Oe({role:"img","aria-label":o.name},u,{ref:t,tabIndex:p,onClick:l,className:g}),m__namespace.createElement(wh,{icon:o,primaryColor:E,secondaryColor:C,style:b}))});Vc.displayName="AntdIcon";Vc.getTwoToneColor=DL;Vc.setTwoToneColor=UC;const hn=Vc;var jL=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:kA}))};const BL=m__namespace.forwardRef(jL);var HL={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const FL=HL;var WL=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:FL}))};const xh=m__namespace.forwardRef(WL);var VL={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const UL=VL;var KL=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:UL}))};const Uc=m__namespace.forwardRef(KL);var GL={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 XL=GL;var qL=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:XL}))};const $h=m__namespace.forwardRef(qL);var YL={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 ZL=YL;var QL=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:ZL}))};const Eh=m__namespace.forwardRef(QL);var JL={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 e5=JL;var t5=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:e5}))};const Oh=m__namespace.forwardRef(t5);function n5(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;const h=n??m__namespace.createElement(xh,null),v=y=>t===null&&!s&&!d?null:m__namespace.createElement(m__namespace.Fragment,null,c!==!1&&y,s&&u);let g=null;if(t!==void 0)g=v(t);else if(i)g=v(m__namespace.createElement(Eh,{spin:!0}));else {const y=`${l}-suffix`;g=S=>{let{open:E,showSearch:C}=S;return v(E&&C?m__namespace.createElement(Oh,{className:y}):m__namespace.createElement($h,{className:y}))};}let p=null;r!==void 0?p=r:a?p=m__namespace.createElement(BL,null):p=null;let b=null;return o!==void 0?b=o:b=m__namespace.createElement(Uc,null),{clearIcon:h,suffixIcon:g,itemIcon:p,removeIcon:b}}var r5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const KC="SECRET_COMBOBOX_MODE_DO_NOT_USE",o5=(e,t)=>{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:f=24,size:h,disabled:v,notFoundContent:g,status:p,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:S,direction:E,style:C,allowClear:$}=e,x=r5(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:w,getPrefixCls:O,renderEmpty:R,direction:A,virtual:_,popupMatchSelectWidth:I,popupOverflow:P,select:T}=m__namespace.useContext(nt),N=O("select",r),M=O(),L=E??A,{compactSize:z,compactItemClassnames:H}=Ji(N,L),[W,B]=RA(N),V=m__namespace.useMemo(()=>{const{mode:ve}=x;if(ve!=="combobox")return ve===KC?"combobox":ve},[x.mode]),j=V==="multiple"||V==="tags",K=MA(x.suffixIcon,x.showArrow),ee=(n=S??y)!==null&&n!==void 0?n:I,{status:q,hasFeedback:U,isFormItemInput:X,feedbackIcon:ie}=m__namespace.useContext(tr),de=cs(q,p);let ge;g!==void 0?ge=g:V==="combobox"?ge=null:ge=(R==null?void 0:R("Select"))||m__namespace.createElement(EC,{componentName:"Select"});const{suffixIcon:re,itemIcon:se,removeIcon:ue,clearIcon:Y}=n5(Object.assign(Object.assign({},x),{multiple:j,hasFeedback:U,feedbackIcon:ie,showSuffixIcon:K,prefixCls:N,showArrow:x.showArrow,componentName:"Select"})),ne=$===!0?{clearIcon:Y}:$,J=yn(x,["suffixIcon","itemIcon"]),me=F(l||c,{[`${N}-dropdown-${L}`]:L==="rtl"},a,B),he=Wn(ve=>{var be;return (be=h??z)!==null&&be!==void 0?be:ve}),ye=m__namespace.useContext(Pr),Re=v??ye,Be=F({[`${N}-lg`]:he==="large",[`${N}-sm`]:he==="small",[`${N}-rtl`]:L==="rtl",[`${N}-borderless`]:!o,[`${N}-in-form-item`]:X},lr(N,de,U),H,T==null?void 0:T.className,i,a,B),_e=m__namespace.useMemo(()=>d!==void 0?d:L==="rtl"?"bottomRight":"bottomLeft",[d,L]),ae=TA(b,P);return W(m__namespace.createElement(ph,Object.assign({ref:t,virtual:_,showSearch:T==null?void 0:T.showSearch},J,{style:Object.assign(Object.assign({},T==null?void 0:T.style),C),dropdownMatchSelectWidth:ee,builtinPlacements:ae,transitionName:Nc(M,"slide-up",x.transitionName),listHeight:u,listItemHeight:f,mode:V,prefixCls:N,placement:_e,direction:L,suffixIcon:re,menuItemSelectedIcon:se,removeIcon:ue,allowClear:ne,notFoundContent:ge,className:Be,getPopupContainer:s||w,dropdownClassName:me,disabled:Re})))},ea=m__namespace.forwardRef(o5),i5=nh(ea);ea.SECRET_COMBOBOX_MODE_DO_NOT_USE=KC;ea.Option=gh;ea.OptGroup=vh;ea._InternalPanelDoNotUseOrYouWillBeFired=i5;const fs=ea;var kr;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(kr||(kr={}));var a5={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 s5=a5;var l5=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:s5}))};const c5=m__namespace.forwardRef(l5);function Ef(){return typeof BigInt=="function"}function Mo(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return {negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function Ih(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function Ka(e){var t=String(e);if(Ih(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Ph(t)?t.length-t.indexOf(".")-1:0}function Kc(e){var t=String(e);if(Ih(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Ef()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Ef()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Ka(t));}return Mo(t).fullStr}function Ph(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 GC(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var u5=function(){function e(t){if(Cn(this,e),Z(this,"origin",""),Z(this,"number",void 0),Z(this,"empty",void 0),GC(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return Sn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(Ka(this.number),Ka(r));return new e(o.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Kc(this.number):this.origin}}]),e}(),d5=function(){function e(t){if(Cn(this,e),Z(this,"origin",""),Z(this,"negative",void 0),Z(this,"integer",void 0),Z(this,"decimal",void 0),Z(this,"decimalLen",void 0),Z(this,"empty",void 0),Z(this,"nan",void 0),GC(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Ih(n)&&(n=Number(n)),n=typeof n=="string"?n:Kc(n),Ph(n)){var r=Mo(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length;}else this.nan=!0;}return Sn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),i=this.alignDecimal(o),a=r.alignDecimal(o),s=(i+a).toString(),l=Mo(s),c=l.negativeStr,u=l.trimStr,d="".concat(c).concat(u.padStart(o+1,"0"));return new e("".concat(d.slice(0,-o),".").concat(d.slice(-o)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Mo("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function ir(e){return Ef()?new d5(e):new u5(e)}function cl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=Mo(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=ir(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return cl(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function si(e){return !!(e.addonBefore||e.addonAfter)}function hd(e){return !!(e.prefix||e.suffix||e.allowClear)}function Oa(e,t,n,r){if(n){var o=t;if(t.type==="click"){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",n(o);return}if(r!==void 0){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(o);return}n(o);}}function XC(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o);}}}}function Of(e){return typeof e>"u"||e===null?"":String(e)}var Rh=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,s=t.suffix,l=t.addonBefore,c=t.addonAfter,u=t.className,d=t.style,f=t.disabled,h=t.readOnly,v=t.focused,g=t.triggerFocus,p=t.allowClear,b=t.value,y=t.handleReset,S=t.hidden,E=t.classes,C=t.classNames,$=t.dataAttrs,x=t.styles,w=t.components,O=(w==null?void 0:w.affixWrapper)||"span",R=(w==null?void 0:w.groupWrapper)||"span",A=(w==null?void 0:w.wrapper)||"span",_=(w==null?void 0:w.groupAddon)||"span",I=m.useRef(null),P=function(ee){var q;(q=I.current)!==null&&q!==void 0&&q.contains(ee.target)&&(g==null||g());},T=function(){var ee;if(!p)return null;var q=!f&&!h&&b,U="".concat(i,"-clear-icon"),X=at(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return m.createElement("span",{onClick:y,onMouseDown:function(de){return de.preventDefault()},className:F(U,(ee={},Z(ee,"".concat(U,"-hidden"),!q),Z(ee,"".concat(U,"-has-suffix"),!!s),ee)),role:"button",tabIndex:-1},X)},N=m.cloneElement(o,{value:b,hidden:S,className:F((n=o.props)===null||n===void 0?void 0:n.className,!hd(t)&&!si(t)&&u)||null,style:Q(Q({},(r=o.props)===null||r===void 0?void 0:r.style),!hd(t)&&!si(t)?d:{})});if(hd(t)){var M,L="".concat(i,"-affix-wrapper"),z=F(L,(M={},Z(M,"".concat(L,"-disabled"),f),Z(M,"".concat(L,"-focused"),v),Z(M,"".concat(L,"-readonly"),h),Z(M,"".concat(L,"-input-with-clear-btn"),s&&p&&b),M),!si(t)&&u,E==null?void 0:E.affixWrapper,C==null?void 0:C.affixWrapper),H=(s||p)&&m.createElement("span",{className:F("".concat(i,"-suffix"),C==null?void 0:C.suffix),style:x==null?void 0:x.suffix},T(),s);N=m.createElement(O,Oe({className:z,style:si(t)?void 0:d,hidden:!si(t)&&S,onClick:P},$==null?void 0:$.affixWrapper,{ref:I}),a&&m.createElement("span",{className:F("".concat(i,"-prefix"),C==null?void 0:C.prefix),style:x==null?void 0:x.prefix},a),m.cloneElement(o,{value:b,hidden:null}),H);}if(si(t)){var W="".concat(i,"-group"),B="".concat(W,"-addon"),V=F("".concat(i,"-wrapper"),W,E==null?void 0:E.wrapper),j=F("".concat(i,"-group-wrapper"),u,E==null?void 0:E.group);return m.createElement(R,{className:j,style:d,hidden:S},m.createElement(A,{className:V},l&&m.createElement(_,{className:B},l),m.cloneElement(N,{hidden:null}),c&&m.createElement(_,{className:B},c)))}return N},f5=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],m5=m.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=l===void 0?"rc-input":l,u=e.disabled,d=e.htmlSize,f=e.className,h=e.maxLength,v=e.suffix,g=e.showCount,p=e.type,b=p===void 0?"text":p,y=e.classes,S=e.classNames,E=e.styles,C=Je(e,f5),$=Dt(e.defaultValue,{value:e.value}),x=G($,2),w=x[0],O=x[1],R=m.useState(!1),A=G(R,2),_=A[0],I=A[1],P=m.useRef(null),T=function(j){P.current&&XC(P.current,j);};m.useImperativeHandle(t,function(){return {focus:T,blur:function(){var j;(j=P.current)===null||j===void 0||j.blur();},setSelectionRange:function(j,K,ee){var q;(q=P.current)===null||q===void 0||q.setSelectionRange(j,K,ee);},select:function(){var j;(j=P.current)===null||j===void 0||j.select();},input:P.current}}),m.useEffect(function(){I(function(V){return V&&u?!1:V});},[u]);var N=function(j){e.value===void 0&&O(j.target.value),P.current&&Oa(P.current,j,r);},M=function(j){a&&j.key==="Enter"&&a(j),s==null||s(j);},L=function(j){I(!0),o==null||o(j);},z=function(j){I(!1),i==null||i(j);},H=function(j){O(""),T(),P.current&&Oa(P.current,j,r);},W=function(){var j=yn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return m.createElement("input",Oe({autoComplete:n},j,{onChange:N,onFocus:L,onBlur:z,onKeyDown:M,className:F(c,Z({},"".concat(c,"-disabled"),u),S==null?void 0:S.input),style:E==null?void 0:E.input,ref:P,size:d,type:b}))},B=function(){var j=Number(h)>0;if(v||g){var K=Of(w),ee=Ze(K).length,q=at(g)==="object"?g.formatter({value:K,count:ee,maxLength:h}):"".concat(ee).concat(j?" / ".concat(h):"");return m.createElement(m.Fragment,null,!!g&&m.createElement("span",{className:F("".concat(c,"-show-count-suffix"),Z({},"".concat(c,"-show-count-has-suffix"),!!v),S==null?void 0:S.count),style:Q({},E==null?void 0:E.count)},q),v)}return null};return m.createElement(Rh,Oe({},C,{prefixCls:c,className:f,inputElement:W(),handleReset:H,value:Of(w),focused:_,triggerFocus:T,suffix:B(),disabled:u,classes:y,classNames:S,styles:E}))});function h5(e,t){var n=m.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);n.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c};}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.endsWith(l))u=i.length-n.current.afterTxt.length;else if(i.startsWith(s))u=s.length;else {var d=s[c-1],f=i.indexOf(d,c-1);f!==-1&&(u=f+1);}e.setSelectionRange(u,u);}catch(h){Ir(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message));}}return [r,o]}var v5=function(){var t=m.useState(!1),n=G(t,2),r=n[0],o=n[1];return Ft(function(){o(Ac());},[]),r},g5=200,p5=600;function b5(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=m__namespace.useRef(),l=m__namespace.useRef([]),c=m__namespace.useRef();c.current=a;var u=function(){clearTimeout(s.current);},d=function(S,E){S.preventDefault(),u(),c.current(E);function C(){c.current(E),s.current=setTimeout(C,g5);}s.current=setTimeout(C,p5);};m__namespace.useEffect(function(){return function(){u(),l.current.forEach(function(y){return gt.cancel(y)});}},[]);var f=v5();if(f)return null;var h="".concat(t,"-handler"),v=F(h,"".concat(h,"-up"),Z({},"".concat(h,"-up-disabled"),o)),g=F(h,"".concat(h,"-down"),Z({},"".concat(h,"-down-disabled"),i)),p=function(){return l.current.push(gt(u))},b={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return m__namespace.createElement("div",{className:"".concat(h,"-wrap")},m__namespace.createElement("span",Oe({},b,{onMouseDown:function(S){d(S,!0);},"aria-label":"Increase Value","aria-disabled":o,className:v}),n||m__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),m__namespace.createElement("span",Oe({},b,{onMouseDown:function(S){d(S,!1);},"aria-label":"Decrease Value","aria-disabled":i,className:g}),r||m__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Bp(e){var t=typeof e=="number"?Kc(e):Mo(e).fullStr,n=t.includes(".");return n?Mo(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const y5=function(){var e=m.useRef(0),t=function(){gt.cancel(e.current);};return m.useEffect(function(){return t},[]),function(n){t(),e.current=gt(function(){n();});}};var C5=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],S5=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Hp=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Fp=function(t){var n=ir(t);return n.isInvalidate()?null:n},w5=m__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,i=e.className,a=e.style,s=e.min,l=e.max,c=e.step,u=c===void 0?1:c,d=e.defaultValue,f=e.value,h=e.disabled,v=e.readOnly,g=e.upHandler,p=e.downHandler,b=e.keyboard,y=e.controls,S=y===void 0?!0:y,E=e.classNames,C=e.stringMode,$=e.parser,x=e.formatter,w=e.precision,O=e.decimalSeparator,R=e.onChange,A=e.onInput,_=e.onPressEnter,I=e.onStep,P=Je(e,C5),T="".concat(o,"-input"),N=m__namespace.useRef(null),M=m__namespace.useState(!1),L=G(M,2),z=L[0],H=L[1],W=m__namespace.useRef(!1),B=m__namespace.useRef(!1),V=m__namespace.useRef(!1),j=m__namespace.useState(function(){return ir(f??d)}),K=G(j,2),ee=K[0],q=K[1];function U(Pe){f===void 0&&q(Pe);}var X=m__namespace.useCallback(function(Pe,te){if(!te)return w>=0?w:Math.max(Ka(Pe),Ka(u))},[w,u]),ie=m__namespace.useCallback(function(Pe){var te=String(Pe);if($)return $(te);var fe=te;return O&&(fe=fe.replace(O,".")),fe.replace(/[^\w.-]+/g,"")},[$,O]),de=m__namespace.useRef(""),ge=m__namespace.useCallback(function(Pe,te){if(x)return x(Pe,{userTyping:te,input:String(de.current)});var fe=typeof Pe=="number"?Kc(Pe):Pe;if(!te){var oe=X(fe,te);if(Ph(fe)&&(O||oe>=0)){var Ee=O||".";fe=cl(fe,Ee,oe);}}return fe},[x,X,O]),re=m__namespace.useState(function(){var Pe=d??f;return ee.isInvalidate()&&["string","number"].includes(at(Pe))?Number.isNaN(Pe)?"":Pe:ge(ee.toString(),!1)}),se=G(re,2),ue=se[0],Y=se[1];de.current=ue;function ne(Pe,te){Y(ge(Pe.isInvalidate()?Pe.toString(!1):Pe.toString(!te),te));}var J=m__namespace.useMemo(function(){return Fp(l)},[l,w]),me=m__namespace.useMemo(function(){return Fp(s)},[s,w]),he=m__namespace.useMemo(function(){return !J||!ee||ee.isInvalidate()?!1:J.lessEquals(ee)},[J,ee]),ye=m__namespace.useMemo(function(){return !me||!ee||ee.isInvalidate()?!1:ee.lessEquals(me)},[me,ee]),Re=h5(N.current,z),Be=G(Re,2),_e=Be[0],ae=Be[1],ve=function(te){return J&&!te.lessEquals(J)?J:me&&!me.lessEquals(te)?me:null},be=function(te){return !ve(te)},Se=function(te,fe){var oe=te,Ee=be(oe)||oe.isEmpty();if(!oe.isEmpty()&&!fe&&(oe=ve(oe)||oe,Ee=!0),!v&&!h&&Ee){var He=oe.toString(),Qe=X(He,fe);return Qe>=0&&(oe=ir(cl(He,".",Qe)),be(oe)||(oe=ir(cl(He,".",Qe,!0)))),oe.equals(ee)||(U(oe),R==null||R(oe.isEmpty()?null:Hp(C,oe)),f===void 0&&ne(oe,fe)),oe}return ee},Ae=y5(),ke=function Pe(te){if(_e(),de.current=te,Y(te),!B.current){var fe=ie(te),oe=ir(fe);oe.isNaN()||Se(oe,!0);}A==null||A(te),Ae(function(){var Ee=te;$||(Ee=te.replace(/。/g,".")),Ee!==te&&Pe(Ee);});},we=function(){B.current=!0;},Ie=function(){B.current=!1,ke(N.current.value);},Fe=function(te){ke(te.target.value);},xe=function(te){var fe;if(!(te&&he||!te&&ye)){W.current=!1;var oe=ir(V.current?Bp(u):u);te||(oe=oe.negate());var Ee=(ee||ir(0)).add(oe.toString()),He=Se(Ee,!1);I==null||I(Hp(C,He),{offset:V.current?Bp(u):u,type:te?"up":"down"}),(fe=N.current)===null||fe===void 0||fe.focus();}},Me=function(te){var fe=ir(ie(ue)),oe=fe;fe.isNaN()?oe=ee:oe=Se(fe,te),f!==void 0?ne(ee,!1):oe.isNaN()||ne(oe,!1);},tt=function(){W.current=!0;},ut=function(te){var fe=te.key,oe=te.shiftKey;W.current=!0,V.current=oe,fe==="Enter"&&(B.current||(W.current=!1),Me(!1),_==null||_(te)),b!==!1&&!B.current&&["Up","ArrowUp","Down","ArrowDown"].includes(fe)&&(xe(fe==="Up"||fe==="ArrowUp"),te.preventDefault());},qe=function(){W.current=!1,V.current=!1;},ct=function(){Me(!1),H(!1),W.current=!1;};return $i(function(){ee.isInvalidate()||ne(ee,!1);},[w]),$i(function(){var Pe=ir(f);q(Pe);var te=ir(ie(ue));(!Pe.equals(te)||!W.current||x)&&ne(Pe,W.current);},[f]),$i(function(){x&&ae();},[ue]),m__namespace.createElement("div",{className:F(o,E==null?void 0:E.input,i,(n={},Z(n,"".concat(o,"-focused"),z),Z(n,"".concat(o,"-disabled"),h),Z(n,"".concat(o,"-readonly"),v),Z(n,"".concat(o,"-not-a-number"),ee.isNaN()),Z(n,"".concat(o,"-out-of-range"),!ee.isInvalidate()&&!be(ee)),n)),style:a,onFocus:function(){H(!0);},onBlur:ct,onKeyDown:ut,onKeyUp:qe,onCompositionStart:we,onCompositionEnd:Ie,onBeforeInput:tt},S&&m__namespace.createElement(b5,{prefixCls:o,upNode:g,downNode:p,upDisabled:he,downDisabled:ye,onStep:xe}),m__namespace.createElement("div",{className:"".concat(T,"-wrap")},m__namespace.createElement("input",Oe({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":ee.isInvalidate()?null:ee.toString(),step:u},P,{ref:In(N,t),className:T,value:ue,onChange:Fe,disabled:h,readOnly:v}))))}),qC=m__namespace.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,f=e.classNames,h=Je(e,S5),v=m__namespace.useRef(null),g=function(b){v.current&&XC(v.current,b);};return m__namespace.createElement(Rh,{inputElement:m__namespace.createElement(w5,Oe({prefixCls:o,disabled:n,classNames:f,ref:In(v,t)},h)),className:d,triggerFocus:g,prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});qC.displayName="InputNumber";const YC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ms=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),Dl=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),_h=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},ms(ft(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}},Th=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Gc=(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({},Dl(ft(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},Dl(ft(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},hs=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({},ms(e)),"&:focus, &-focused":Object.assign({},Dl(e)),"&-disabled, &[disabled]":Object.assign({},_h(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({},Th(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),QC=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({},Th(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"},sf()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
        & > ${t}-affix-wrapper,
        & > ${t}-number-affix-wrapper,
        & > ${n}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
      & > ${n}-select-auto-complete ${t},
      & > ${n}-cascader-picker ${t},
      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${n}-select:first-child > ${n}-select-selector,
      & > ${n}-select-auto-complete:first-child ${t},
      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
      & > ${n}-select:last-child > ${n}-select-selector,
      & > ${n}-cascader-picker:last-child ${t},
      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},x5=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({},Tt(e)),hs(e)),Gc(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"}})}},$5=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`}}}},E5=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({},hs(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},ms(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),$5(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),Gc(e,`${t}-affix-wrapper`))}},O5=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Tt(e)),QC(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},_h(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}}}})}},I5=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 Mh(e){return ft(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const P5=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"}}}}}},Nh=Vt("Input",e=>{const t=Mh(e);return [x5(t),P5(t),E5(t),O5(t),I5(t),Bc(t)]}),Wp=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i=t==="lg"?o:r;return {[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},R5=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:f,colorPrimary:h,inputPaddingHorizontal:v,inputPaddingVertical:g,colorBgContainer:p,colorTextDisabled:b,borderRadiusSM:y,borderRadiusLG:S,controlWidth:E,handleVisible:C}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),hs(e)),Gc(e,t)),{display:"inline-block",width:E,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:S,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:y,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},ms(e)),"&-focused":Object.assign({},Dl(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Tt(e)),QC(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:S,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},_h(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),{width:"100%",padding:`${g}px ${v}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${f} linear`,appearance:"textfield",fontSize:"inherit"}),YC(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:p,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:C===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${f} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Uo()),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i}},Wp(e,"lg")),Wp(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
          ${t}-handler-up-disabled,
          ${t}-handler-down-disabled
        `]:{cursor:"not-allowed"},[`
          ${t}-handler-up-disabled:hover &-handler-up-inner,
          ${t}-handler-down-disabled:hover &-handler-down-inner
        `]:{color:b}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},_5=e=>{const{componentCls:t,inputPaddingVertical:n,inputPaddingHorizontal:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},hs(e)),Gc(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},ms(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},T5=Vt("InputNumber",e=>{const t=Mh(e);return [R5(t),_5(t),Bc(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var M5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const JC=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m__namespace.useContext(nt),o=m__namespace.useRef(null);m__namespace.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,bordered:h=!0,readOnly:v,status:g,controls:p}=e,b=M5(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[S,E]=T5(y),{compactSize:C,compactItemClassnames:$}=Ji(y,r);let x=m__namespace.createElement(c5,{className:`${y}-handler-up-inner`}),w=m__namespace.createElement($h,{className:`${y}-handler-down-inner`});const O=typeof p=="boolean"?p:void 0;typeof p=="object"&&(x=typeof p.upIcon>"u"?x:m__namespace.createElement("span",{className:`${y}-handler-up-inner`},p.upIcon),w=typeof p.downIcon>"u"?w:m__namespace.createElement("span",{className:`${y}-handler-down-inner`},p.downIcon));const{hasFeedback:R,status:A,isFormItemInput:_,feedbackIcon:I}=m__namespace.useContext(tr),P=cs(A,g),T=Wn(W=>{var B;return (B=s??C)!==null&&B!==void 0?B:W}),N=m__namespace.useContext(Pr),M=l??N,L=F({[`${y}-lg`]:T==="large",[`${y}-sm`]:T==="small",[`${y}-rtl`]:r==="rtl",[`${y}-borderless`]:!h,[`${y}-in-form-item`]:_},lr(y,P),$,E),z=`${y}-group`,H=m__namespace.createElement(qC,Object.assign({ref:o,disabled:M,className:F(i,a),upHandler:x,downHandler:w,prefixCls:y,readOnly:v,controls:O,prefix:f,suffix:R&&I,addonAfter:d&&m__namespace.createElement(Di,null,m__namespace.createElement(Va,{override:!0,status:!0},d)),addonBefore:u&&m__namespace.createElement(Di,null,m__namespace.createElement(Va,{override:!0,status:!0},u)),classNames:{input:L},classes:{affixWrapper:F(lr(`${y}-affix-wrapper`,P,R),{[`${y}-affix-wrapper-sm`]:T==="small",[`${y}-affix-wrapper-lg`]:T==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl",[`${y}-affix-wrapper-borderless`]:!h},E),wrapper:F({[`${z}-rtl`]:r==="rtl",[`${y}-wrapper-disabled`]:M},E),group:F({[`${y}-group-wrapper-sm`]:T==="small",[`${y}-group-wrapper-lg`]:T==="large",[`${y}-group-wrapper-rtl`]:r==="rtl"},lr(`${y}-group-wrapper`,P,R),E)}},b));return S(H)}),eS=JC,N5=e=>m__namespace.createElement(th,{theme:{components:{InputNumber:{handleVisible:!0}}}},m__namespace.createElement(JC,Object.assign({},e)));eS._InternalPanelDoNotUseOrYouWillBeFired=N5;const If=eS,k5=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:i,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,u]=m.useState(o);return m.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),m.createElement(If,{className:F(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),i==null||i(d);}})},No=k5,A5=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=m.useState(bn(n||"#000"));m.useEffect(()=>{n&&a(n);},[n]);const s=l=>{const c=i.toHsb();c.a=(l||0)/100;const u=bn(c);n||a(u),r==null||r(u);};return m.createElement(No,{value:kl(i),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},L5=A5,D5=e=>{const{getPrefixCls:t,direction:n}=m.useContext(nt),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=Nh(a),c=F(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),u=m.useContext(tr),d=m.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(m__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},m__namespace.createElement(tr.Provider,{value:d},e.children)))},z5=D5;function tS(e,t){const n=m.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"));}));};return m.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function j5(e){return !!(e.prefix||e.suffix||e.allowClear)}var B5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function H5(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 F5=m.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:h,className:v,style:g,styles:p,rootClassName:b,onChange:y,classNames:S}=e,E=B5(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:C,direction:$,input:x}=m.useContext(nt),w=C("input",r),O=m.useRef(null),[R,A]=Nh(w),{compactSize:_,compactItemClassnames:I}=Ji(w,$),P=Wn(X=>{var ie;return (ie=a??_)!==null&&ie!==void 0?ie:X}),T=m.useContext(Pr),N=s??T,{status:M,hasFeedback:L,feedbackIcon:z}=m.useContext(tr),H=cs(M,i),W=j5(e)||!!L,B=m.useRef(W);m.useEffect(()=>{W&&B.current,B.current=W;},[W]);const V=tS(O,!0),j=X=>{V(),l==null||l(X);},K=X=>{V(),c==null||c(X);},ee=X=>{V(),y==null||y(X);},q=(L||u)&&m.createElement(m.Fragment,null,u,L&&z);let U;return typeof d=="object"&&(d!=null&&d.clearIcon)?U=d:d&&(U={clearIcon:m.createElement(xh,null)}),R(m.createElement(m5,Object.assign({ref:In(t,O),prefixCls:w,autoComplete:x==null?void 0:x.autoComplete},E,{disabled:N,onBlur:j,onFocus:K,style:Object.assign(Object.assign({},x==null?void 0:x.style),g),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),p),suffix:q,allowClear:U,className:F(v,b,I,x==null?void 0:x.className),onChange:ee,addonAfter:f&&m.createElement(Di,null,m.createElement(Va,{override:!0,status:!0},f)),addonBefore:h&&m.createElement(Di,null,m.createElement(Va,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign(Object.assign({},S),x==null?void 0:x.classNames),{input:F({[`${w}-sm`]:P==="small",[`${w}-lg`]:P==="large",[`${w}-rtl`]:$==="rtl",[`${w}-borderless`]:!o},!W&&lr(w,H),S==null?void 0:S.input,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.input,A)}),classes:{affixWrapper:F({[`${w}-affix-wrapper-sm`]:P==="small",[`${w}-affix-wrapper-lg`]:P==="large",[`${w}-affix-wrapper-rtl`]:$==="rtl",[`${w}-affix-wrapper-borderless`]:!o},lr(`${w}-affix-wrapper`,H,L),A),wrapper:F({[`${w}-group-rtl`]:$==="rtl"},A),group:F({[`${w}-group-wrapper-sm`]:P==="small",[`${w}-group-wrapper-lg`]:P==="large",[`${w}-group-wrapper-rtl`]:$==="rtl",[`${w}-group-wrapper-disabled`]:N},lr(`${w}-group-wrapper`,H,L),A)}})))}),kh=F5;var W5={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 V5=W5;var U5=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:V5}))};const K5=m__namespace.forwardRef(U5);var G5={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 X5=G5;var q5=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:X5}))};const Y5=m__namespace.forwardRef(q5);var Z5=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 Q5=e=>e?m__namespace.createElement(Y5,null):m__namespace.createElement(K5,null),J5={click:"onClick",hover:"onMouseOver"},eD=m__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=m.useState(()=>r?n.visible:!1),a=m.useRef(null);m__namespace.useEffect(()=>{r&&i(n.visible);},[r,n]);const s=tS(a),l=()=>{const{disabled:C}=e;C||(o&&s(),i($=>{var x;const w=!$;return typeof n=="object"&&((x=n.onVisibleChange)===null||x===void 0||x.call(n,w)),w}));},c=C=>{const{action:$="click",iconRender:x=Q5}=e,w=J5[$]||"",O=x(o),R={[w]:l,className:`${C}-icon`,key:"passwordIcon",onMouseDown:A=>{A.preventDefault();},onMouseUp:A=>{A.preventDefault();}};return m__namespace.cloneElement(m__namespace.isValidElement(O)?O:m__namespace.createElement("span",null,O),R)},{className:u,prefixCls:d,inputPrefixCls:f,size:h}=e,v=Z5(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=m__namespace.useContext(nt),p=g("input",f),b=g("input-password",d),y=n&&c(b),S=F(b,u,{[`${b}-${h}`]:!!h}),E=Object.assign(Object.assign({},yn(v,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:S,prefixCls:p,suffix:y});return h&&(E.size=h),m__namespace.createElement(kh,Object.assign({ref:In(t,a)},E))}),tD=eD,nD=e=>{const{componentCls:t,colorPrimary:n}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},rD=Vt("Wave",e=>[nD(e)]);var vs=Q({},s0__namespace),oD=vs.version,iD=vs.render,aD=vs.unmountComponentAtNode,Xc;try{var sD=Number((oD||"").split(".")[0]);sD>=18&&(Xc=vs.createRoot);}catch{}function Vp(e){var t=vs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&at(t)==="object"&&(t.usingClientEntryPoint=e);}var zl="__rc_react_root__";function lD(e,t){Vp(!0);var n=t[zl]||Xc(t);Vp(!1),n.render(e),t[zl]=n;}function cD(e,t){iD(e,t);}function uD(e,t){if(Xc){lD(e,t);return}cD(e,t);}function dD(e){return Pf.apply(this,arguments)}function Pf(){return Pf=P1(Wa().mark(function e(t){return Wa().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[zl])===null||o===void 0||o.unmount(),delete t[zl];}));case 1:case"end":return r.stop()}},e)})),Pf.apply(this,arguments)}function fD(e){aD(e);}function mD(e){return Rf.apply(this,arguments)}function Rf(){return Rf=P1(Wa().mark(function e(t){return Wa().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Xc===void 0){r.next=2;break}return r.abrupt("return",dD(t));case 2:fD(t);case 3:case"end":return r.stop()}},e)})),Rf.apply(this,arguments)}function hD(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 vd(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&hD(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function vD(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return vd(t)?t:vd(n)?n:vd(r)?r:null}const qc="ant-wave-target";function gd(e){return Number.isNaN(e)?0:e}const gD=e=>{const{className:t,target:n,component:r}=e,o=m__namespace.useRef(null),[i,a]=m__namespace.useState(null),[s,l]=m__namespace.useState([]),[c,u]=m__namespace.useState(0),[d,f]=m__namespace.useState(0),[h,v]=m__namespace.useState(0),[g,p]=m__namespace.useState(0),[b,y]=m__namespace.useState(!1),S={left:c,top:d,width:h,height:g,borderRadius:s.map($=>`${$}px`).join(" ")};i&&(S["--wave-color"]=i);function E(){const $=getComputedStyle(n);a(vD(n));const x=$.position==="static",{borderLeftWidth:w,borderTopWidth:O}=$;u(x?n.offsetLeft:gd(-parseFloat(w))),f(x?n.offsetTop:gd(-parseFloat(O))),v(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:A,borderBottomLeftRadius:_,borderBottomRightRadius:I}=$;l([R,A,I,_].map(P=>gd(parseFloat(P))));}if(m__namespace.useEffect(()=>{if(n){const $=gt(()=>{E(),y(!0);});let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(E),x.observe(n)),()=>{gt.cancel($),x==null||x.disconnect();}}},[]),!b)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(qc));return m__namespace.createElement(ho,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,x)=>{var w;if(x.deadline||x.propertyName==="opacity"){const O=(w=o.current)===null||w===void 0?void 0:w.parentElement;mD(O).then(()=>{O==null||O.remove();});}return !1}},$=>{let{className:x}=$;return m__namespace.createElement("div",{ref:o,className:F(t,{"wave-quick":C},x),style:S})})},pD=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),uD(m__namespace.createElement(gD,Object.assign({},t,{target:e})),o);},bD=pD;function yD(e,t,n){const{wave:r}=m__namespace.useContext(nt),[,o,i]=Kr(),a=Tn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${qc}`)||u,{showEffect:f}=r||{};(f||bD)(d,{className:t,token:o,component:n,event:c,hashId:i});}),s=m__namespace.useRef();return c=>{gt.cancel(s.current),s.current=gt(()=>{a(c);});}}const CD=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=m.useContext(nt),i=m.useRef(null),a=o("wave"),[,s]=rD(a),l=yD(i,F(a,s),r);if(m.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const d=f=>{!rh(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f);};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0);}},[n]),!m.isValidElement(t))return t??null;const c=Ko(t)?In(t.ref,i):i;return Hn(t,{ref:c})},gs=CD,SD=m.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=F(`${i}-icon`,n);return m.createElement("span",{ref:t,className:a,style:r},o)}),nS=SD,Up=m.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=F(`${n}-loading-icon`,r);return m.createElement(nS,{prefixCls:n,className:a,style:o,ref:t},m.createElement(Eh,{className:i}))}),pd=()=>({width:0,opacity:0,transform:"scale(0)"}),bd=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),wD=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?m.createElement(Up,{prefixCls:t,className:o,style:i}):m.createElement(ho,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:pd,onAppearActive:bd,onEnterStart:pd,onEnterActive:bd,onLeaveStart:bd,onLeaveActive:pd},(s,l)=>{let{className:c,style:u}=s;return m.createElement(Up,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:l,iconClassName:c})})},xD=wD;var $D=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const rS=m__namespace.createContext(void 0),ED=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(nt),{prefixCls:r,size:o,className:i}=e,a=$D(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Kr();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=F(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return m__namespace.createElement(rS.Provider,{value:o},m__namespace.createElement("div",Object.assign({},a,{className:u})))},OD=ED,Kp=/^[\u4e00-\u9fa5]{2}$/,_f=Kp.test.bind(Kp);function Gp(e){return typeof e=="string"}function yd(e){return e==="text"||e==="link"}function ID(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Gp(e.type)&&_f(e.props.children)?Hn(e,{children:e.props.children.split("").join(n)}):Gp(e)?_f(e)?m.createElement("span",null,e.split("").join(n)):m.createElement("span",null,e):H1(e)?m.createElement("span",null,e):e}function PD(e,t){let n=!1;const r=[];return m.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`;}else r.push(o);n=a;}),m.Children.map(r,o=>ID(o,t))}function RD(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function _D(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 TD(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},RD(e,t)),_D(e.componentCls,t))}}const Xp=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),MD=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n          &:focus,\n          &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Xp(`${t}-primary`,o),Xp(`${t}-danger`,i)]}},ND=MD,kD=e=>{const{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},zo(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Fr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),AD=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),LD=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),DD=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Ga=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Fr(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),Ah=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},DD(e))}),oS=e=>Object.assign({},Ah(e)),jl=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),iS=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},oS(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Fr(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Ga(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Fr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ga(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Ah(e))}),zD=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},oS(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Fr(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Ga(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Fr(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Ga(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ah(e))}),jD=e=>Object.assign(Object.assign({},iS(e)),{borderStyle:"dashed"}),BD=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Fr(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),jl(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Fr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),jl(e))}),HD=e=>Object.assign(Object.assign(Object.assign({},Fr(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),jl(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},jl(e)),Fr(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),FD=e=>{const{componentCls:t}=e;return {[`${t}-default`]:iS(e),[`${t}-primary`]:zD(e),[`${t}-dashed`]:jD(e),[`${t}-link`]:BD(e),[`${t}-text`]:HD(e),[`${t}-ghost`]:Ga(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Lh=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e,u=Math.max(0,(r-o*i)/2-a),d=l-a,f=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${u}px ${d}px`,borderRadius:s,[`&${f}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:AD(e)},{[`${n}${n}-round${t}`]:LD(e)}]},WD=e=>Lh(e),VD=e=>{const t=ft(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return Lh(t,`${e.componentCls}-sm`)},UD=e=>{const t=ft(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return Lh(t,`${e.componentCls}-lg`)},KD=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},GD=Vt("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=ft(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return [kD(r),VD(r),WD(r),UD(r),KD(r),FD(r),ND(r),Bc(e),TD(e)]});var XD=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 aS(e){return e==="danger"?{danger:!0}:{type:e}}function qD(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 YD=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:f,rootClassName:h,children:v,icon:g,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:S,style:E={}}=e,C=XD(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:$,autoInsertSpaceInButton:x,direction:w,button:O}=m.useContext(nt),R=$("btn",i),[A,_]=GD(R),I=m.useContext(Pr),P=d??I,T=m.useContext(rS),N=m.useMemo(()=>qD(o),[o]),[M,L]=m.useState(N.loading),[z,H]=m.useState(!1),B=In(t,m.createRef()),V=m.Children.count(v)===1&&!g&&!yd(a);m.useEffect(()=>{let he=null;N.delay>0?he=setTimeout(()=>{he=null,L(!0);},N.delay):L(N.loading);function ye(){he&&(clearTimeout(he),he=null);}return ye},[N]),m.useEffect(()=>{if(!B||!B.current||x===!1)return;const he=B.current.textContent;V&&_f(he)?z||H(!0):z&&H(!1);},[B]);const j=he=>{const{onClick:ye}=e;if(M||P){he.preventDefault();return}ye==null||ye(he);},K=x!==!1,{compactSize:ee,compactItemClassnames:q}=Ji(R,w),U={large:"lg",small:"sm",middle:void 0},X=Wn(he=>{var ye,Re;return (Re=(ye=c??ee)!==null&&ye!==void 0?ye:T)!==null&&Re!==void 0?Re:he}),ie=X&&U[X]||"",de=M?"loading":g,ge=yn(C,["navigate"]),re=F(R,_,{[`${R}-${l}`]:l!=="default"&&l,[`${R}-${a}`]:a,[`${R}-${ie}`]:ie,[`${R}-icon-only`]:!v&&v!==0&&!!de,[`${R}-background-ghost`]:p&&!yd(a),[`${R}-loading`]:M,[`${R}-two-chinese-chars`]:z&&K&&!M,[`${R}-block`]:b,[`${R}-dangerous`]:!!s,[`${R}-rtl`]:w==="rtl"},q,f,h,O==null?void 0:O.className),se=Object.assign(Object.assign({},O==null?void 0:O.style),E),ue=F(S==null?void 0:S.icon,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.icon),Y=Object.assign(Object.assign({},(u==null?void 0:u.icon)||{}),((r=O==null?void 0:O.styles)===null||r===void 0?void 0:r.icon)||{}),ne=g&&!M?m.createElement(nS,{prefixCls:R,className:ue,style:Y},g):m.createElement(xD,{existIcon:!!g,prefixCls:R,loading:!!M}),J=v||v===0?PD(v,V&&K):null;if(ge.href!==void 0)return A(m.createElement("a",Object.assign({},ge,{className:F(re,{[`${R}-disabled`]:P}),style:se,onClick:j,ref:B}),ne,J));let me=m.createElement("button",Object.assign({},C,{type:y,className:re,style:se,onClick:j,disabled:P,ref:B}),ne,J);return yd(a)||(me=m.createElement(gs,{component:"Button",disabled:!!M},me)),A(me)},Dh=m.forwardRef(YD);Dh.Group=OD;Dh.__ANT_BUTTON=!0;const Qt=Dh;var ZD=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 QD=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:h,onCompositionEnd:v}=e,g=ZD(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=m__namespace.useContext(nt),y=m__namespace.useRef(!1),S=p("input-search",n),E=p("input",r),{compactSize:C}=Ji(S,b),$=Wn(H=>{var W;return (W=i??C)!==null&&W!==void 0?W:H}),x=m__namespace.useRef(null),w=H=>{H&&H.target&&H.type==="click"&&d&&d(H.target.value,H),f&&f(H);},O=H=>{var W;document.activeElement===((W=x.current)===null||W===void 0?void 0:W.input)&&H.preventDefault();},R=H=>{var W,B;d&&d((B=(W=x.current)===null||W===void 0?void 0:W.input)===null||B===void 0?void 0:B.value,H);},A=H=>{y.current||c||R(H);},_=typeof s=="boolean"?m__namespace.createElement(Oh,null):null,I=`${S}-button`;let P;const T=s||{},N=T.type&&T.type.__ANT_BUTTON===!0;N||T.type==="button"?P=Hn(T,Object.assign({onMouseDown:O,onClick:H=>{var W,B;(B=(W=T==null?void 0:T.props)===null||W===void 0?void 0:W.onClick)===null||B===void 0||B.call(W,H),R(H);},key:"enterButton"},N?{className:I,size:$}:{})):P=m__namespace.createElement(Qt,{className:I,type:s?"primary":void 0,size:$,disabled:u,key:"enterButton",onMouseDown:O,onClick:R,loading:c,icon:_},s),l&&(P=[P,Hn(l,{key:"addonAfter"})]);const M=F(S,{[`${S}-rtl`]:b==="rtl",[`${S}-${$}`]:!!$,[`${S}-with-button`]:!!s},o),L=H=>{y.current=!0,h==null||h(H);},z=H=>{y.current=!1,v==null||v(H);};return m__namespace.createElement(kh,Object.assign({ref:In(x,t),onPressEnter:A},g,{size:$,onCompositionStart:L,onCompositionEnd:z,prefixCls:E,addonAfter:P,suffix:a,onChange:w,className:M,disabled:u}))}),JD=QD;var e6=`
  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;
`,t6=["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"],Cd={},Xn;function n6(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&&Cd[n])return Cd[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=t6.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Cd[n]=l),l}function r6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Xn||(Xn=document.createElement("textarea"),Xn.setAttribute("tab-index","-1"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn)),e.getAttribute("wrap")?Xn.setAttribute("wrap",e.getAttribute("wrap")):Xn.removeAttribute("wrap");var o=n6(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Xn.setAttribute("style","".concat(l,";").concat(e6)),Xn.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=Xn.scrollHeight;if(s==="border-box"?f+=a:s==="content-box"&&(f-=i),n!==null||r!==null){Xn.value=" ";var h=Xn.scrollHeight-i;n!==null&&(c=h*n,s==="border-box"&&(c=c+i+a),f=Math.max(c,f)),r!==null&&(u=h*r,s==="border-box"&&(u=u+i+a),d=f>u?"":"hidden",f=Math.min(u,f));}var v={height:f,overflowY:d,resize:"none"};return c&&(v.minHeight=c),u&&(v.maxHeight=u),v}var o6=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Sd=0,wd=1,xd=2,i6=m__namespace.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var f=Je(n,o6),h=Dt(o,{value:i,postState:function(j){return j??""}}),v=G(h,2),g=v[0],p=v[1],b=function(j){p(j.target.value),d==null||d(j);},y=m__namespace.useRef();m__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var S=m__namespace.useMemo(function(){return a&&at(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),E=G(S,2),C=E[0],$=E[1],x=!!a,w=function(){try{if(document.activeElement===y.current){var j=y.current,K=j.selectionStart,ee=j.selectionEnd,q=j.scrollTop;y.current.setSelectionRange(K,ee),y.current.scrollTop=q;}}catch{}},O=m__namespace.useState(xd),R=G(O,2),A=R[0],_=R[1],I=m__namespace.useState(),P=G(I,2),T=P[0],N=P[1],M=function(){_(Sd);};Ft(function(){x&&M();},[i,C,$,x]),Ft(function(){if(A===Sd)_(wd);else if(A===wd){var V=r6(y.current,!1,C,$);_(xd),N(V);}else w();},[A]);var L=m__namespace.useRef(),z=function(){gt.cancel(L.current);},H=function(j){A===xd&&(s==null||s(j),a&&(z(),L.current=gt(function(){M();})));};m__namespace.useEffect(function(){return z},[]);var W=x?T:null,B=Q(Q({},c),W);return (A===Sd||A===wd)&&(B.overflowY="hidden",B.overflowX="hidden"),m__namespace.createElement(Br,{onResize:H,disabled:!(a||s)},m__namespace.createElement("textarea",Oe({},f,{ref:y,style:B,className:F(r,l,Z({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:b})))}),a6=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function sS(e,t){return Ze(e||"").slice(0,t).join("")}function qp(e,t,n,r){var o=n;return e?o=sS(n,r):Ze(t||"").length<n.length&&Ze(n||"").length>r&&(o=t),o}var s6=m.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,f=e.suffix,h=e.prefixCls,v=h===void 0?"rc-textarea":h,g=e.classes,p=e.showCount,b=e.className,y=e.style,S=e.disabled,E=e.hidden,C=e.classNames,$=e.styles,x=e.onResize,w=Je(e,a6),O=Dt(r,{value:o,defaultValue:r}),R=G(O,2),A=R[0],_=R[1],I=m.useRef(null),P=m.useState(!1),T=G(P,2),N=T[0],M=T[1],L=m.useState(!1),z=G(L,2),H=z[0],W=z[1],B=m.useRef(),V=m.useRef(0),j=m.useState(null),K=G(j,2),ee=K[0],q=K[1],U=function(){var ae;(ae=I.current)===null||ae===void 0||ae.textArea.focus();};m.useImperativeHandle(t,function(){return {resizableTextArea:I.current,focus:U,blur:function(){var ae;(ae=I.current)===null||ae===void 0||ae.textArea.blur();}}}),m.useEffect(function(){M(function(_e){return !S&&_e});},[S]);var X=Number(c)>0,ie=function(ae){W(!0),B.current=A,V.current=ae.currentTarget.selectionStart,u==null||u(ae);},de=function(ae){W(!1);var ve=ae.currentTarget.value;if(X){var be,Se=V.current>=c+1||V.current===((be=B.current)===null||be===void 0?void 0:be.length);ve=qp(Se,B.current,ve,c);}ve!==A&&(_(ve),Oa(ae.currentTarget,ae,s,ve)),d==null||d(ae);},ge=function(ae){var ve=ae.target.value;if(!H&&X){var be=ae.target.selectionStart>=c+1||ae.target.selectionStart===ve.length||!ae.target.selectionStart;ve=qp(be,A,ve,c);}_(ve),Oa(ae.currentTarget,ae,s,ve);},re=function(ae){var ve=w.onPressEnter,be=w.onKeyDown;ae.key==="Enter"&&ve&&ve(ae),be==null||be(ae);},se=function(ae){M(!0),i==null||i(ae);},ue=function(ae){M(!1),a==null||a(ae);},Y=function(ae){var ve;_(""),U(),Oa((ve=I.current)===null||ve===void 0?void 0:ve.textArea,ae,s);},ne=Of(A);!H&&X&&o==null&&(ne=sS(ne,c));var J=f,me;if(p){var he=Ze(ne).length;at(p)==="object"?me=p.formatter({value:ne,count:he,maxLength:c}):me="".concat(he).concat(X?" / ".concat(c):""),J=m.createElement(m.Fragment,null,J,m.createElement("span",{className:F("".concat(v,"-data-count"),C==null?void 0:C.count),style:$==null?void 0:$.count},me));}var ye=function(ae){var ve;x==null||x(ae),(ve=I.current)!==null&&ve!==void 0&&ve.textArea.style.height&&q(!0);},Re=!w.autoSize&&!p&&!l,Be=m.createElement(Rh,{value:ne,allowClear:l,handleReset:Y,suffix:J,prefixCls:v,classes:{affixWrapper:F(g==null?void 0:g.affixWrapper,(n={},Z(n,"".concat(v,"-show-count"),p),Z(n,"".concat(v,"-textarea-allow-clear"),l),n))},disabled:S,focused:N,className:b,style:Q(Q({},y),ee&&!Re?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof me=="string"?me:void 0}},hidden:E,inputElement:m.createElement(i6,Oe({},w,{onKeyDown:re,onChange:ge,onFocus:se,onBlur:ue,onCompositionStart:ie,onCompositionEnd:de,className:C==null?void 0:C.textarea,style:Q(Q({},$==null?void 0:$.textarea),{},{resize:y==null?void 0:y.resize}),disabled:S,prefixCls:v,onResize:ye,ref:I}))});return Be}),l6=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 c6=m.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c}=e,u=l6(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:d,direction:f}=m__namespace.useContext(nt),h=Wn(o),v=m__namespace.useContext(Pr),g=i??v,{status:p,hasFeedback:b,feedbackIcon:y}=m__namespace.useContext(tr),S=cs(p,a),E=m__namespace.useRef(null);m__namespace.useImperativeHandle(t,()=>{var O;return {resizableTextArea:(O=E.current)===null||O===void 0?void 0:O.resizableTextArea,focus:R=>{var A,_;H5((_=(A=E.current)===null||A===void 0?void 0:A.resizableTextArea)===null||_===void 0?void 0:_.textArea,R);},blur:()=>{var R;return (R=E.current)===null||R===void 0?void 0:R.blur()}}});const C=d("input",n);let $;typeof s=="object"&&(s!=null&&s.clearIcon)?$=s:s&&($={clearIcon:m__namespace.createElement(xh,null)});const[x,w]=Nh(C);return x(m__namespace.createElement(s6,Object.assign({},u,{disabled:g,allowClear:$,classes:{affixWrapper:F(`${C}-textarea-affix-wrapper`,{[`${C}-affix-wrapper-rtl`]:f==="rtl",[`${C}-affix-wrapper-borderless`]:!r,[`${C}-affix-wrapper-sm`]:h==="small",[`${C}-affix-wrapper-lg`]:h==="large",[`${C}-textarea-show-count`]:l},lr(`${C}-affix-wrapper`,S),w)},classNames:Object.assign(Object.assign({},c),{textarea:F({[`${C}-borderless`]:!r,[`${C}-sm`]:h==="small",[`${C}-lg`]:h==="large"},lr(C,S),w,c==null?void 0:c.textarea)}),prefixCls:C,suffix:b&&m__namespace.createElement("span",{className:`${C}-textarea-suffix`},y),showCount:l,ref:E})))}),u6=c6,ps=kh;ps.Group=z5;ps.Search=JD;ps.TextArea=u6;ps.Password=tD;const lS=ps,d6=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Yp=e=>d6.test(`#${e}`),f6=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[i,a]=m.useState(n==null?void 0:n.toHex());m.useEffect(()=>{const l=n==null?void 0:n.toHex();Yp(l)&&n&&a(sl(l));},[n]);const s=l=>{const c=l.target.value;a(sl(c)),Yp(sl(c,!0))&&(r==null||r(bn(c)));};return m.createElement(lS,{className:o,value:i,prefix:"#",onChange:s,size:"small"})},m6=f6,h6=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=m.useState(bn(n||"#000"));m.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const u=i.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=bn(u);n||a(d),r==null||r(d);};return m.createElement("div",{className:o},m.createElement(No,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:l=>ll(l||0).toString(),onChange:l=>s(Number(l),"h")}),m.createElement(No,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${ll(l||0)}%`,onChange:l=>s(Number(l),"s")}),m.createElement(No,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${ll(l||0)}%`,onChange:l=>s(Number(l),"b")}))},v6=h6,g6=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=m.useState(bn(n||"#000"));m.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const u=i.toRgb();u[c]=l||0;const d=bn(u);n||a(d),r==null||r(d);};return m.createElement("div",{className:o},m.createElement(No,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),m.createElement(No,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),m.createElement(No,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},p6=g6,b6=[kr.hex,kr.hsb,kr.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),y6=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:i,onChange:a}=e,[s,l]=Dt(kr.hex,{value:n,onChange:i}),c=`${t}-input`,u=f=>{l(f);},d=m.useMemo(()=>{const f={value:r,prefixCls:t,onChange:a};switch(s){case kr.hsb:return m.createElement(v6,Object.assign({},f));case kr.rgb:return m.createElement(p6,Object.assign({},f));case kr.hex:default:return m.createElement(m6,Object.assign({},f))}},[s,t,r,a]);return m.createElement("div",{className:`${c}-container`},m.createElement(fs,{value:s,bordered:!1,getPopupContainer:f=>f,popupMatchSelectWidth:68,placement:"bottomRight",onChange:u,className:`${t}-format-select`,size:"small",options:b6}),m.createElement("div",{className:c},d),!o&&m.createElement(L5,{prefixCls:t,value:r,onChange:a}))},C6=y6;var S6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const w6=()=>{const e=m.useContext(oC),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:i,onChange:a,onClear:s,onChangeComplete:l}=e,c=S6(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return m.createElement(m.Fragment,null,r&&m.createElement(aC,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:u=>{a==null||a(u),s==null||s();}},c)),m.createElement(jk,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:i,onChange:(u,d)=>a==null?void 0:a(u,d,!0),onChangeComplete:l}),m.createElement(C6,Object.assign({value:o,onChange:a,prefixCls:t,disabledAlpha:i},c)))},Zp=w6;var x6={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 $6=x6;var E6=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:$6}))};const Bi=m__namespace.forwardRef(E6);var cS=m.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=m.useState(l||o),d=G(u,2),f=d[0],h=d[1];return m.useEffect(function(){(o||l)&&h(!0);},[o,l]),f?m.createElement("div",{ref:t,className:F("".concat(r,"-content"),(n={},Z(n,"".concat(r,"-content-active"),l),Z(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},m.createElement("div",{className:"".concat(r,"-content-box")},s)):null});cS.displayName="PanelContent";var O6=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],uS=m.forwardRef(function(e,t){var n,r,o=e.showArrow,i=o===void 0?!0:o,a=e.headerClass,s=e.isActive,l=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,f=e.collapsible,h=e.accordion,v=e.panelKey,g=e.extra,p=e.header,b=e.expandIcon,y=e.openMotion,S=e.destroyInactivePanel,E=e.children,C=Je(e,O6),$=f==="disabled",x=f==="header",w=f==="icon",O=g!=null&&typeof g!="boolean",R=function(){l==null||l(v);},A=function(M){(M.key==="Enter"||M.keyCode===ce.ENTER||M.which===ce.ENTER)&&R();},_=typeof b=="function"?b(e):m.createElement("i",{className:"arrow"});_&&(_=m.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(f)?R:void 0},_));var I=F((n={},Z(n,"".concat(d,"-item"),!0),Z(n,"".concat(d,"-item-active"),s),Z(n,"".concat(d,"-item-disabled"),$),n),u),P=F((r={},Z(r,"".concat(d,"-header"),!0),Z(r,"headerClass",a),Z(r,"".concat(d,"-header-collapsible-only"),x),Z(r,"".concat(d,"-icon-collapsible-only"),w),r)),T={className:P,"aria-expanded":s,"aria-disabled":$,onKeyDown:A};return !x&&!w&&(T.onClick=R,T.role=h?"tab":"button",T.tabIndex=$?-1:0),m.createElement("div",Oe({},C,{ref:t,className:I}),m.createElement("div",T,i&&_,m.createElement("span",{className:"".concat(d,"-header-text"),onClick:f==="header"?R:void 0},p),O&&m.createElement("div",{className:"".concat(d,"-extra")},g)),m.createElement(ho,Oe({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:S}),function(N,M){var L=N.className,z=N.style;return m.createElement(cS,{ref:M,prefixCls:d,className:L,style:z,isActive:s,forceRender:c,role:h?"tabpanel":void 0},E)}))}),I6=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],P6=function(t,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(d,f){var h=d.children,v=d.label,g=d.key,p=d.collapsible,b=d.onItemClick,y=d.destroyInactivePanel,S=Je(d,I6),E=String(g??f),C=p??i,$=y??a,x=function(R){C!=="disabled"&&(s(R),b==null||b(R));},w=!1;return o?w=l[0]===E:w=l.indexOf(E)>-1,m.createElement(uS,Oe({},S,{prefixCls:r,key:E,panelKey:E,isActive:w,accordion:o,openMotion:c,expandIcon:u,header:v,collapsible:C,onItemClick:x,destroyInactivePanel:$}),h)})},R6=function(t,n,r){if(!t)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,d=r.expandIcon,f=t.key||String(n),h=t.props,v=h.header,g=h.headerClass,p=h.destroyInactivePanel,b=h.collapsible,y=h.onItemClick,S=!1;i?S=c[0]===f:S=c.indexOf(f)>-1;var E=b??a,C=function(w){E!=="disabled"&&(l(w),y==null||y(w));},$={key:f,panelKey:f,header:v,headerClass:g,isActive:S,prefixCls:o,destroyInactivePanel:p??s,openMotion:u,accordion:i,children:t.props.children,onItemClick:C,expandIcon:d,collapsible:E};return typeof t.type=="string"?t:(Object.keys($).forEach(function(x){typeof $[x]>"u"&&delete $[x];}),m.cloneElement(t,$))};function _6(e,t,n){return Array.isArray(e)?P6(e,n):cr(t).map(function(r,o){return R6(r,o,n)})}function T6(e){var t=e;if(!Array.isArray(t)){var n=at(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var M6=m.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,a=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,f=e.expandIcon,h=e.activeKey,v=e.defaultActiveKey,g=e.onChange,p=e.items,b=F(r,l),y=Dt([],{value:h,onChange:function(O){return g==null?void 0:g(O)},defaultValue:v,postState:T6}),S=G(y,2),E=S[0],C=S[1],$=function(O){return C(function(){if(s)return E[0]===O?[]:[O];var R=E.indexOf(O),A=R>-1;return A?E.filter(function(_){return _!==O}):[].concat(Ze(E),[O])})};Ir(!c,"`children` will be removed in next major version. Please use `items` instead.");var x=_6(p,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:i,onItemClick:$,activeKey:E});return m.createElement("div",{ref:t,className:b,style:a,role:s?"tablist":void 0},x)});const zh=Object.assign(M6,{Panel:uS});zh.Panel;const N6=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=m__namespace.useContext(nt),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=F({[`${a}-no-arrow`]:!i},o);return m__namespace.createElement(zh.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),k6=N6,A6=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:h,colorTextHeading:v,colorTextDisabled:g,fontSize:p,fontSizeLG:b,lineHeight:y,marginSM:S,paddingSM:E,paddingLG:C,paddingXS:$,motionDurationSlow:x,fontSizeIcon:w}=e,O=`${u}px ${d} ${f}`;return {[t]:Object.assign(Object.assign({},Tt(e)),{backgroundColor:i,border:O,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,"&:last-child":{[`
            &,
            & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,paddingInlineStart:E,color:v,lineHeight:y,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:p*y,display:"flex",alignItems:"center",paddingInlineEnd:S,marginInlineStart:r-E},[`${t}-arrow`]:Object.assign(Object.assign({},Uo()),{fontSize:w,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:h,backgroundColor:n,borderTop:O,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:E-$}},[`> ${t}-content > ${t}-content-box`]:{padding:E}}},"&-large":{[`> ${t}-item`]:{fontSize:b,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:b*y,marginInlineStart:C-r}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n          &,\n          & > .arrow\n        ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:S}}}}})}},L6=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},D6=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}}}},z6=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}}}}}},j6=Vt("Collapse",e=>{const t=ft(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return [A6(t),D6(t),z6(t),L6(t),V1(t)]}),B6=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=m__namespace.useContext(nt),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:h,expandIcon:v}=e,g=Wn(O=>{var R;return (R=d??O)!==null&&R!==void 0?R:"middle"}),p=n("collapse",i),b=n(),[y,S]=j6(p),E=m__namespace.useMemo(()=>f==="left"?"start":f==="right"?"end":f,[f]),C=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const R=v?v(O):m__namespace.createElement(Bi,{rotate:O.isActive?90:void 0});return Hn(R,()=>({className:F(R.props.className,`${p}-arrow`)}))},$=F(`${p}-icon-position-${E}`,{[`${p}-borderless`]:!c,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!u,[`${p}-${g}`]:g!=="middle"},o==null?void 0:o.className,a,s,S),x=Object.assign(Object.assign({},R1(b)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),w=m__namespace.useMemo(()=>h?cr(h).map((O,R)=>{var A,_;if(!((A=O.props)===null||A===void 0)&&A.disabled){const I=(_=O.key)!==null&&_!==void 0?_:String(R),{disabled:P,collapsible:T}=O.props,N=Object.assign(Object.assign({},yn(O.props,["disabled"])),{key:I,collapsible:T??(P?"disabled":void 0)});return Hn(O,N)}return O}):null,[h]);return y(m__namespace.createElement(zh,Object.assign({ref:t,openMotion:x},yn(e,["rootClassName"]),{expandIcon:C,prefixCls:p,className:$,style:Object.assign(Object.assign({},o==null?void 0:o.style),l)}),w))}),H6=Object.assign(B6,{Panel:k6}),$d=e=>e.map(t=>(t.colors=t.colors.map(bn),t)),F6=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Nl(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},W6=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=Zi("ColorPicker"),{token:{colorBgElevated:a}}=zi.useToken(),[s]=Dt($d(n),{value:$d(n),postState:$d}),l=`${t}-presets`,c=m.useMemo(()=>s.map(f=>`panel-${f.label}`),[s]),u=f=>{o==null||o(f);},d=s.map(f=>{var h;return {key:`panel-${f.label}`,label:m.createElement("div",{className:`${l}-label`},f==null?void 0:f.label),children:m.createElement("div",{className:`${l}-items`},Array.isArray(f==null?void 0:f.colors)&&((h=f.colors)===null||h===void 0?void 0:h.length)>0?f.colors.map(v=>m.createElement(mh,{key:`preset-${v.toHexString()}`,color:bn(v).toRgbString(),prefixCls:t,className:F(`${l}-color`,{[`${l}-color-checked`]:v.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:F6(v,a)}),onClick:()=>u(v)})):m.createElement("span",{className:`${l}-empty`},i.presetEmpty))}});return m.createElement("div",{className:l},m.createElement(H6,{defaultActiveKey:c,ghost:!0,items:d}))},V6=W6,U6=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=m.useContext(iC);return Array.isArray(n)?m.createElement(V6,{value:t,presets:n,prefixCls:e,onChange:r}):null},Qp=U6;var K6=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 G6=e=>{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:i,onClear:a}=e,s=K6(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),l=`${t}-inner-content`,c=Object.assign({prefixCls:t,value:o,onChange:i,onClear:a},s),u=m.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:i}),[t,o,n,i]),d=m.createElement(m.Fragment,null,m.createElement(Zp,null),Array.isArray(n)&&m.createElement(Pk,{className:`${l}-divider`}),m.createElement(Qp,null));return m.createElement(Bk,{value:c},m.createElement(Hk,{value:u},m.createElement("div",{className:l},typeof r=="function"?r(d,{components:{Picker:Zp,Presets:Qp}}):d)))},X6=G6;var q6=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 Y6=m.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:i,disabled:a,format:s,className:l,showText:c}=e,u=q6(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),d=`${r}-trigger`,f=m.useMemo(()=>i?m.createElement(aC,{prefixCls:r}):m.createElement(mh,{prefixCls:r,color:n.toRgbString()}),[n,i,r]),h=()=>{const g=n.toHexString().toUpperCase(),p=kl(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${g.slice(0,7)},${p}%`:g}},v=()=>{if(typeof c=="function")return c(n);if(c)return h()};return m.createElement("div",Object.assign({ref:t,className:F(d,l,{[`${d}-active`]:o,[`${d}-disabled`]:a})},u),f,c&&m.createElement("div",{className:`${d}-text`},v()))}),Z6=Y6;function Jp(e){return e!==void 0}const Q6=(e,t)=>{const{defaultValue:n,value:r}=t,[o,i]=m.useState(()=>{let a;return Jp(r)?a=r:Jp(n)?a=n:a=e,bn(a||"")});return m.useEffect(()=>{r&&i(bn(r));},[r]),[o,i]},J6=Q6,dS=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),ez=(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},dS("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${i}px solid ${a}`,borderRadius:"inherit"}})}},eb=ez,tz=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:f,colorPickerInputNumberHandleWidth:h,lineWidth:v}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${i}px`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:u+a,fontSize:r,lineHeight:`${l}px`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${d}px`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:`${l-2*v}px`},[`${n}-input-prefix`]:{color:f}}}}}},nz=tz,rz=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:u,colorPickerSliderHeight:d}=e;return {[`${t}-select`]:{[`${t}-palette`]:{minHeight:n*4,overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${l}px solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`,"&-sm":{width:u,height:u}},[`${t}-slider`]:{borderRadius:d/2,[`${t}-palette`]:{height:d},[`${t}-gradient`]:{borderRadius:d/2,boxShadow:o},"&-alpha":dS(`${d}px`,e.colorFillSecondary),"&-hue":{marginBottom:i}},[`${t}-slider-container`]:{display:"flex",gap:i,marginBottom:i,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},oz=rz,iz=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:f,marginXXS:h,paddingXS:v}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:a*l,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${v}px 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:h*1.5,[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:i+4*c,height:i+4*c,position:"absolute",top:-2*c,insetInlineStart:-2*c,borderRadius:u,border:`${c}px solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:i/13*5,height:i/13*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:f,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},az=iz,Tf=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),sz=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},tb=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,red6:s}=e;return {[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${i}px solid ${a}`,position:"relative",cursor:"pointer",overflow:"hidden"},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:i,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:s}})}},lz=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorBorderHover:o,colorWarningBorderHover:i,colorErrorOutline:a,colorWarningOutline:s}=e;return {[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},Tf(ft(e,{controlOutline:a})))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},Tf(ft(e,{controlOutline:s})))}}},cz=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return {[`&${t}-lg`]:{minWidth:n,height:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:l}}}},uz=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:i,colorTextDisabled:a,colorText:s,colorBgContainerDisabled:l,borderRadius:c,marginXS:u,marginSM:d,controlHeight:f,controlHeightSM:h,colorBgTextActive:v,colorPickerPresetColorSize:g,colorPickerPreviewSize:p,lineWidth:b,colorBorder:y,paddingXXS:S,fontSize:E}=e;return [{[t]:Object.assign({[`${t}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:n,"&-divider":{margin:`${d}px 0 ${u}px`},[`${t}-panel`]:Object.assign({},oz(e))},eb(e,p)),nz(e)),az(e)),tb(e,g,{marginInlineStart:"auto",marginBottom:u})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:f,height:f,borderRadius:c,border:`${b}px solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${o}`,background:i,padding:S-b,[`${t}-trigger-text`]:{marginInlineStart:u,marginInlineEnd:u-(S-b),fontSize:E,color:s},"&-active":Object.assign(Object.assign({},Tf(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:a,background:l,cursor:"not-allowed","&:hover":{borderColor:v},[`${t}-trigger-text`]:{color:a}}},tb(e,h)),eb(e,h)),lz(e)),cz(e))},sz(e))}]},dz=Vt("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=ft(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:r*2+n});return [uz(o)]}),jh=e=>{const{value:t,defaultValue:n,format:r,allowClear:o=!1,presets:i,children:a,trigger:s="click",open:l,disabled:c,placement:u="bottomLeft",arrow:d=!0,panelRender:f,showText:h,style:v,className:g,size:p,rootClassName:b,styles:y,disabledAlpha:S=!1,onFormatChange:E,onChange:C,onClear:$,onOpenChange:x,onChangeComplete:w,getPopupContainer:O,autoAdjustOverflow:R=!0,destroyTooltipOnHide:A}=e,{getPrefixCls:_,direction:I,colorPicker:P}=m.useContext(nt),{token:T}=zi.useToken(),[N,M]=J6(T.colorPrimary,{value:t,defaultValue:n}),[L,z]=Dt(!1,{value:l,postState:ye=>!c&&ye,onChange:x}),[H,W]=Dt(r,{value:r,onChange:E}),[B,V]=m.useState(!1),j=_("color-picker",Wk),K=m.useMemo(()=>kl(N)<100,[N]),{status:ee}=m.useContext(tr),q=Wn(p),[U,X]=dz(j),ie={[`${j}-rtl`]:I},de=F(b,ie),ge=F(lr(j,ee),{[`${j}-sm`]:q==="small",[`${j}-lg`]:q==="large"},P==null?void 0:P.className,de,g,X),re=F(j,ie),se=m.useRef(!0),ue=(ye,Re,Be)=>{let _e=bn(ye);(B||(t===null||!t&&n===null))&&(V(!1),kl(N)===0&&Re!=="alpha"&&(_e=cd(_e))),S&&K&&(_e=cd(_e)),Be?se.current=!1:w==null||w(_e),M(_e),C==null||C(_e,_e.toHexString());},Y=()=>{V(!0),$==null||$();},ne=ye=>{se.current=!0;let Re=bn(ye);S&&K&&(Re=cd(ye)),w==null||w(Re);},J={open:L,trigger:s,placement:u,arrow:d,rootClassName:b,getPopupContainer:O,autoAdjustOverflow:R,destroyTooltipOnHide:A},me={prefixCls:j,color:N,allowClear:o,colorCleared:B,disabled:c,disabledAlpha:S,presets:i,panelRender:f,format:H,onFormatChange:W,onChangeComplete:ne},he=Object.assign(Object.assign({},P==null?void 0:P.style),v);return U(m.createElement(fh,Object.assign({style:y==null?void 0:y.popup,overlayInnerStyle:y==null?void 0:y.popupOverlayInner,onOpenChange:ye=>{se.current&&z(ye);},content:m.createElement(Va,{override:!0,status:!0},m.createElement(X6,Object.assign({},me,{onChange:ue,onChangeComplete:ne,onClear:Y}))),overlayClassName:re},J),a||m.createElement(Z6,{open:L,className:ge,style:he,color:t?bn(t):N,prefixCls:j,disabled:c,colorCleared:B,showText:h,format:H})))},fz=nh(jh,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));jh._InternalPanelDoNotUseOrYouWillBeFired=fz;const mz=jh;var hz=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],fS=m.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,i=e.className,a=e.style,s=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,h=e.title,v=e.onChange,g=Je(e,hz),p=m.useRef(null),b=Dt(u,{value:s}),y=G(b,2),S=y[0],E=y[1];m.useImperativeHandle(t,function(){return {focus:function(){var w;(w=p.current)===null||w===void 0||w.focus();},blur:function(){var w;(w=p.current)===null||w===void 0||w.blur();},input:p.current}});var C=F(o,i,(n={},Z(n,"".concat(o,"-checked"),S),Z(n,"".concat(o,"-disabled"),l),n)),$=function(w){l||("checked"in e||E(w.target.checked),v==null||v({target:Q(Q({},e),{},{type:f,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation();},preventDefault:function(){w.preventDefault();},nativeEvent:w.nativeEvent}));};return m__namespace.createElement("span",{className:C,title:h,style:a},m__namespace.createElement("input",Oe({},g,{className:"".concat(o,"-input"),ref:p,onChange:$,disabled:l,checked:!!S,type:f})),m__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const vz=m.createContext(null),mS=vz,gz=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Tt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Tt(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({},Tt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Do(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
        ${n}:not(${n}-disabled),
        ${t}:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
        ${n}-checked:not(${n}-disabled),
        ${t}-checked:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function pz(e,t){const n=ft(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [gz(n)]}const hS=Vt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [pz(n,e)]});var bz=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 yz=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,h=bz(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:g,checkbox:p}=m__namespace.useContext(nt),b=m__namespace.useContext(mS),{isFormItemInput:y}=m__namespace.useContext(tr),S=m__namespace.useContext(Pr),E=(n=(b==null?void 0:b.disabled)||f)!==null&&n!==void 0?n:S,C=m__namespace.useRef(h.value);m__namespace.useEffect(()=>{b==null||b.registerValue(h.value);},[]),m__namespace.useEffect(()=>{if(!d)return h.value!==C.current&&(b==null||b.cancelValue(C.current),b==null||b.registerValue(h.value),C.current=h.value),()=>b==null?void 0:b.cancelValue(h.value)},[h.value]);const $=v("checkbox",r),[x,w]=hS($),O=Object.assign({},h);b&&!d&&(O.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),b.toggleOption&&b.toggleOption({label:a,value:h.value});},O.name=b.name,O.checked=b.value.includes(h.value));const R=F(`${$}-wrapper`,{[`${$}-rtl`]:g==="rtl",[`${$}-wrapper-checked`]:O.checked,[`${$}-wrapper-disabled`]:E,[`${$}-wrapper-in-form-item`]:y},p==null?void 0:p.className,o,i,w),A=F({[`${$}-indeterminate`]:s},qc,w),_=s?"mixed":void 0;return x(m__namespace.createElement(gs,{component:"Checkbox",disabled:E},m__namespace.createElement("label",{className:R,style:Object.assign(Object.assign({},p==null?void 0:p.style),l),onMouseEnter:c,onMouseLeave:u},m__namespace.createElement(fS,Object.assign({"aria-checked":_},O,{prefixCls:$,className:A,disabled:E,ref:t})),a!==void 0&&m__namespace.createElement("span",null,a))))},Cz=m__namespace.forwardRef(yz),vS=Cz;var Sz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wz=(e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=Sz(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=m__namespace.useContext(nt),[h,v]=m__namespace.useState(u.value||n||[]),[g,p]=m__namespace.useState([]);m__namespace.useEffect(()=>{"value"in u&&v(u.value||[]);},[u.value]);const b=m__namespace.useMemo(()=>o.map(I=>typeof I=="string"||typeof I=="number"?{label:I,value:I}:I),[o]),y=I=>{p(P=>P.filter(T=>T!==I));},S=I=>{p(P=>[].concat(Ze(P),[I]));},E=I=>{const P=h.indexOf(I.value),T=Ze(h);P===-1?T.push(I.value):T.splice(P,1),"value"in u||v(T),c==null||c(T.filter(N=>g.includes(N)).sort((N,M)=>{const L=b.findIndex(H=>H.value===N),z=b.findIndex(H=>H.value===M);return L-z}));},C=d("checkbox",i),$=`${C}-group`,[x,w]=hS(C),O=yn(u,["value","disabled"]),R=o.length?b.map(I=>m__namespace.createElement(vS,{prefixCls:C,key:I.value.toString(),disabled:"disabled"in I?I.disabled:u.disabled,value:I.value,checked:h.includes(I.value),onChange:I.onChange,className:`${$}-item`,style:I.style,title:I.title},I.label)):r,A={toggleOption:E,value:h,disabled:u.disabled,name:u.name,registerValue:S,cancelValue:y},_=F($,{[`${$}-rtl`]:f==="rtl"},a,s,w);return x(m__namespace.createElement("div",Object.assign({className:_,style:l},O,{ref:t}),m__namespace.createElement(mS.Provider,{value:A},R)))},xz=m__namespace.forwardRef(wz),$z=m__namespace.memo(xz),Bh=vS;Bh.Group=$z;Bh.__ANT_CHECKBOX=!0;const Hh=Bh;var Ez=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function nb(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 rb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nb(Object(n),!0).forEach(function(r){Oz(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Oz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iz(e,t){if(e==null)return {};var n=Pz(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 Pz(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 Rz={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function _z(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function Tz(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 gS=m.createContext(Rz);gS.Provider;function Ut(e,t,n){return function(r){var o=r.size,i=r.strokeWidth,a=r.strokeLinecap,s=r.strokeLinejoin,l=r.theme,c=r.fill,u=r.className,d=r.spin,f=Iz(r,Ez),h=m.useContext(gS),v=m.useMemo(_z,[]),g=Tz(v,{size:o,strokeWidth:i,strokeLinecap:a,strokeLinejoin:s,theme:l,fill:c},h),p=[h.prefix+"-icon"];return p.push(h.prefix+"-icon-"+e),t&&h.rtl&&p.push(h.prefix+"-icon-rtl"),d&&p.push(h.prefix+"-icon-spin"),u&&p.push(u),m.createElement("span",rb(rb({},f),{},{className:p.join(" ")}),n(g))}}const Mz=Ut("people-delete",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M33 31L41 39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M33 39L41 31",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Nz=Ut("delete",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M9 10V44H39V10H9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M20 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M28 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M4 10H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),kz=Ut("add-two",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M33 7.26261C30.3212 5.81915 27.2563 5 24 5C13.5066 5 5 13.5066 5 24C5 34.4934 13.5066 43 24 43C26.858 43 29.5685 42.369 32 41.2387",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M31 30L43 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15 22L22 29L41 11",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M37 24V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Az=Ut("play-two",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M18.5 24V16.2058L25.25 20.1029L32 24L25.25 27.8971L18.5 31.7942V24Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Lz=Ut("unlike",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C25.1936 41.9295 26.5616 41.3098 28.0099 40.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M34.959 27L41.8375 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M41.8375 27L34.959 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Dz=Ut("dislike-two",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C31 40 44 30 44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 20L20 28L28 20Z",fill:e.colors[1]}),m.createElement("path",{d:"M28 20L20 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 20.0001L28 28L20 20.0001Z",fill:e.colors[1]}),m.createElement("path",{d:"M20 20.0001L28 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),zz=Ut("copy",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M13 12.4316V7.8125C13 6.2592 14.2592 5 15.8125 5H40.1875C41.7408 5 43 6.2592 43 7.8125V32.1875C43 33.7408 41.7408 35 40.1875 35H35.5163",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M32.1875 13H7.8125C6.2592 13 5 14.2592 5 15.8125V40.1875C5 41.7408 6.2592 43 7.8125 43H32.1875C33.7408 43 35 41.7408 35 40.1875V15.8125C35 14.2592 33.7408 13 32.1875 13Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),jz=Ut("efferent-four",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M20 5L10 5C8.89543 5 8 5.89543 8 7L8 41C8 42.1046 8.89543 43 10 43L38 43C39.1046 43 40 42.1046 40 41L40 24.75",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M28 5H40V17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21.0001 23.9998L39 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Bz=Ut("star",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M23.9986 5L17.8856 17.4776L4 19.4911L14.0589 29.3251L11.6544 43L23.9986 36.4192L36.3454 43L33.9586 29.3251L44 19.4911L30.1913 17.4776L23.9986 5Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Hz=Ut("file-cabinet",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M42 4H6V14H42V4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M42 19H6V29H42V19Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M42 34H6V44H42V34Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21 9H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M21 24H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M21 39H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),Fz=Ut("tumblr",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),m.createElement("path",{d:"M15 22V17H20V14L26 12V17H31V22H26V29C26 29 26 30.5 28 31C30 31.5 33 30 33 30L31 36H26C22.5 36 20 32.5 20 30V22H15Z",fill:e.colors[2]}))}),Wz=Ut("concern",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M10.8579 9.85803C7.23858 13.4773 5 18.4773 5 24.0002C5 29.523 7.23858 34.523 10.8579 38.1423",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M39.1421 38.1423C42.7614 34.523 45 29.523 45 24.0002C45 18.4773 42.7614 13.4773 39.1421 9.85803",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M34.8994 33.8997C37.4329 31.3662 38.9999 27.8662 38.9999 24.0002C38.9999 20.1342 37.4329 16.6342 34.8994 14.1007",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M15.1005 14.1007C12.567 16.6342 11 20.1342 11 24.0002C11 27.8662 12.567 31.3662 15.1005 33.8997",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M28.1818 20C30.2905 20 32 21.6118 32 23.6C32 26.1882 29.4545 28.4 28.1818 29.6C27.3333 30.4 26.2727 31.2 25 32C23.7273 31.2 22.6667 30.4 21.8182 29.6C20.5455 28.4 18 26.1882 18 23.6C18 21.6118 19.7095 20 21.8182 20C23.1463 20 24.316 20.6393 25 21.6093C25.684 20.6393 26.8537 20 28.1818 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),Vz=Ut("iphone",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("rect",{x:"11",y:"4",width:"26",height:"40",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),m.createElement("path",{d:"M22 10L26 10",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M20 38H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Uz=Ut("computer",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("rect",{x:"19",y:"32",width:"10",height:"9",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("rect",{x:"5",y:"8",width:"38",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),m.createElement("path",{d:"M22 27H26",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M14 41L34 41",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Kz=Ut("tips",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M40 20C40 26.8077 35.7484 32.6224 29.7555 34.9336H24H18.2445C12.2516 32.6224 8 26.8077 8 20C8 11.1634 15.1634 4 24 4C32.8366 4 40 11.1634 40 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M29.7557 34.9336L29.0766 43.0831C29.0334 43.6014 28.6001 44 28.08 44H19.9203C19.4002 44 18.9669 43.6014 18.9238 43.0831L18.2446 34.9336",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M18 17V23L24 20L30 23V17",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Gz=Ut("return",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Xz=Ut("loading-three",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),qz=Ut("loading",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M4 24C4 35.0457 12.9543 44 24 44V44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M36 24C36 17.3726 30.6274 12 24 12C17.3726 12 12 17.3726 12 24C12 30.6274 17.3726 36 24 36V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Yz=Ut("info",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11C25.3807 11 26.5 12.1193 26.5 13.5C26.5 14.8807 25.3807 16 24 16C22.6193 16 21.5 14.8807 21.5 13.5C21.5 12.1193 22.6193 11 24 11Z",fill:e.colors[2]}),m.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Zz=Ut("help",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M24 28.6248V24.6248C27.3137 24.6248 30 21.9385 30 18.6248C30 15.3111 27.3137 12.6248 24 12.6248C20.6863 12.6248 18 15.3111 18 18.6248",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 37.6248C25.3807 37.6248 26.5 36.5055 26.5 35.1248C26.5 33.7441 25.3807 32.6248 24 32.6248C22.6193 32.6248 21.5 33.7441 21.5 35.1248C21.5 36.5055 22.6193 37.6248 24 37.6248Z",fill:e.colors[2]}))}),Qz=Ut("distraught-face",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M24 29C29 29 31 33 31 33H17C17 33 19 29 24 29Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Jz=Ut("config",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M24 4L18 10H10V18L4 24L10 30V38H18L24 44L30 38H38V30L44 24L38 18V10H30L24 4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M24 30C27.3137 30 30 27.3137 30 24C30 20.6863 27.3137 18 24 18C20.6863 18 18 20.6863 18 24C18 27.3137 20.6863 30 24 30Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),ej=Ut("close",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),tj={Close:ej,Config:Jz,DistraughtFace:Qz,Help:Zz,Info:Yz,Loading:qz,LoadingThree:Xz,Return:Gz,Tips:Kz,Computer:Uz,Iphone:Vz,Concern:Wz,Tumblr:Fz,FileCabinet:Hz,Star:Bz,EfferentFour:jz,Copy:zz,DislikeTwo:Dz,Unlike:Lz,PlayTwo:Az,AddTwo:kz,Delete:Nz,PeopleDelete:Mz};function Lt({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const i=tj[e];return D(i,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}var ob=1/0,nj=17976931348623157e292;function rj(e){if(!e)return e===0?e:0;if(e=Kd(e),e===ob||e===-ob){var t=e<0?-1:1;return t*nj}return e===e?e:0}function oj(e){var t=rj(e),n=t%1;return t===t?n?t-n:t:0}var ij="Expected a function";function aj(e,t){var n;if(typeof t!="function")throw new TypeError(ij);return e=oj(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function sj(e){return aj(2,e)}var Mf={exports:{}};(function(e,t){(function(n,r){var o="1.0.35",i="",a="?",s="function",l="undefined",c="object",u="string",d="major",f="model",h="name",v="type",g="vendor",p="version",b="architecture",y="console",S="mobile",E="tablet",C="smarttv",$="wearable",x="embedded",w=350,O="Amazon",R="Apple",A="ASUS",_="BlackBerry",I="Browser",P="Chrome",T="Edge",N="Firefox",M="Google",L="Huawei",z="LG",H="Microsoft",W="Motorola",B="Opera",V="Samsung",j="Sharp",K="Sony",ee="Xiaomi",q="Zebra",U="Facebook",X="Chromium OS",ie="Mac OS",de=function(ae,ve){var be={};for(var Se in ae)ve[Se]&&ve[Se].length%2===0?be[Se]=ve[Se].concat(ae[Se]):be[Se]=ae[Se];return be},ge=function(ae){for(var ve={},be=0;be<ae.length;be++)ve[ae[be].toUpperCase()]=ae[be];return ve},re=function(ae,ve){return typeof ae===u?se(ve).indexOf(se(ae))!==-1:!1},se=function(ae){return ae.toLowerCase()},ue=function(ae){return typeof ae===u?ae.replace(/[^\d\.]/g,i).split(".")[0]:r},Y=function(ae,ve){if(typeof ae===u)return ae=ae.replace(/^\s\s*/,i),typeof ve===l?ae:ae.substring(0,w)},ne=function(ae,ve){for(var be=0,Se,Ae,ke,we,Ie,Fe;be<ve.length&&!Ie;){var xe=ve[be],Me=ve[be+1];for(Se=Ae=0;Se<xe.length&&!Ie&&xe[Se];)if(Ie=xe[Se++].exec(ae),Ie)for(ke=0;ke<Me.length;ke++)Fe=Ie[++Ae],we=Me[ke],typeof we===c&&we.length>0?we.length===2?typeof we[1]==s?this[we[0]]=we[1].call(this,Fe):this[we[0]]=we[1]:we.length===3?typeof we[1]===s&&!(we[1].exec&&we[1].test)?this[we[0]]=Fe?we[1].call(this,Fe,we[2]):r:this[we[0]]=Fe?Fe.replace(we[1],we[2]):r:we.length===4&&(this[we[0]]=Fe?we[3].call(this,Fe.replace(we[1],we[2])):r):this[we]=Fe||r;be+=2;}},J=function(ae,ve){for(var be in ve)if(typeof ve[be]===c&&ve[be].length>0){for(var Se=0;Se<ve[be].length;Se++)if(re(ve[be][Se],ae))return be===a?r:be}else if(re(ve[be],ae))return be===a?r:be;return ae},me={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},he={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ye={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,p],[/opios[\/ ]+([\w\.]+)/i],[p,[h,B+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[h,B]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[h,"UC"+I]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+I],p],[/\bfocus\/([\w\.]+)/i],[p,[h,N+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[h,B+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[h,B+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[h,"MIUI "+I]],[/fxios\/([-\w\.]+)/i],[p,[h,N]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+I]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+I],p],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,U],p],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[h,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,P+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[h,"Android "+I]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[p,J,me]],[/(webkit|khtml)\/([\w\.]+)/i],[h,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[h,N+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,p],[/(cobalt)\/([\w\.]+)/i],[h,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,se]],[/((?:i[346]|x)86)[;\)]/i],[[b,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/windows (ce|mobile); ppc;/i],[[b,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[b,/ower/,i,se]],[/(sun4\w)[;\)]/i],[[b,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[b,se]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[g,V],[v,E]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[g,V],[v,S]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[g,R],[v,S]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[g,R],[v,E]],[/(macintosh);/i],[f,[g,R]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[g,j],[v,S]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[g,L],[v,E]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[g,L],[v,S]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[g,ee],[v,S]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[g,ee],[v,E]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[g,"OPPO"],[v,S]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[g,"Vivo"],[v,S]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[g,"Realme"],[v,S]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[g,W],[v,S]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[g,W],[v,E]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[g,z],[v,E]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[g,z],[v,S]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[g,"Lenovo"],[v,E]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[g,"Nokia"],[v,S]],[/(pixel c)\b/i],[f,[g,M],[v,E]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[g,M],[v,S]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[g,K],[v,S]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[g,K],[v,E]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[g,"OnePlus"],[v,S]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[g,O],[v,E]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[g,O],[v,S]],[/(playbook);[-\w\),; ]+(rim)/i],[f,g,[v,E]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[g,_],[v,S]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[g,A],[v,E]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[g,A],[v,S]],[/(nexus 9)/i],[f,[g,"HTC"],[v,E]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[f,/_/g," "],[v,S]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[g,"Acer"],[v,E]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[g,"Meizu"],[v,S]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,f,[v,S]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,f,[v,E]],[/(surface duo)/i],[f,[g,H],[v,E]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[g,"Fairphone"],[v,S]],[/(u304aa)/i],[f,[g,"AT&T"],[v,S]],[/\bsie-(\w*)/i],[f,[g,"Siemens"],[v,S]],[/\b(rct\w+) b/i],[f,[g,"RCA"],[v,E]],[/\b(venue[\d ]{2,7}) b/i],[f,[g,"Dell"],[v,E]],[/\b(q(?:mv|ta)\w+) b/i],[f,[g,"Verizon"],[v,E]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[g,"Barnes & Noble"],[v,E]],[/\b(tm\d{3}\w+) b/i],[f,[g,"NuVision"],[v,E]],[/\b(k88) b/i],[f,[g,"ZTE"],[v,E]],[/\b(nx\d{3}j) b/i],[f,[g,"ZTE"],[v,S]],[/\b(gen\d{3}) b.+49h/i],[f,[g,"Swiss"],[v,S]],[/\b(zur\d{3}) b/i],[f,[g,"Swiss"],[v,E]],[/\b((zeki)?tb.*\b) b/i],[f,[g,"Zeki"],[v,E]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],f,[v,E]],[/\b(ns-?\w{0,9}) b/i],[f,[g,"Insignia"],[v,E]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[g,"NextBook"],[v,E]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],f,[v,S]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],f,[v,S]],[/\b(ph-1) /i],[f,[g,"Essential"],[v,S]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[g,"Envizen"],[v,E]],[/\b(trio[-\w\. ]+) b/i],[f,[g,"MachSpeed"],[v,E]],[/\btu_(1491) b/i],[f,[g,"Rotor"],[v,E]],[/(shield[\w ]+) b/i],[f,[g,"Nvidia"],[v,E]],[/(sprint) (\w+)/i],[g,f,[v,S]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[g,H],[v,S]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[g,q],[v,E]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[g,q],[v,S]],[/smart-tv.+(samsung)/i],[g,[v,C]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[g,V],[v,C]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,z],[v,C]],[/(apple) ?tv/i],[g,[f,R+" TV"],[v,C]],[/crkey/i],[[f,P+"cast"],[g,M],[v,C]],[/droid.+aft(\w)( bui|\))/i],[f,[g,O],[v,C]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[g,j],[v,C]],[/(bravia[\w ]+)( bui|\))/i],[f,[g,K],[v,C]],[/(mitv-\w{5}) bui/i],[f,[g,ee],[v,C]],[/Hbbtv.*(technisat) (.*);/i],[g,f,[v,C]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,Y],[f,Y],[v,C]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,C]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,f,[v,y]],[/droid.+; (shield) bui/i],[f,[g,"Nvidia"],[v,y]],[/(playstation [345portablevi]+)/i],[f,[g,K],[v,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[g,H],[v,y]],[/((pebble))app/i],[g,f,[v,$]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[g,R],[v,$]],[/droid.+; (glass) \d/i],[f,[g,M],[v,$]],[/droid.+; (wt63?0{2,3})\)/i],[f,[g,q],[v,$]],[/(quest( 2| pro)?)/i],[f,[g,U],[v,$]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[v,x]],[/(aeobc)\b/i],[f,[g,O],[v,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[v,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[v,E]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,E]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,S]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[h,T+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[p,J,he]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[p,J,he]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,ie],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,p],[/\(bb(10);/i],[p,[h,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[h,N+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[h,P+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,X],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,p],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,p]]},Re=function(ae,ve){if(typeof ae===c&&(ve=ae,ae=r),!(this instanceof Re))return new Re(ae,ve).getResult();var be=typeof n!==l&&n.navigator?n.navigator:r,Se=ae||(be&&be.userAgent?be.userAgent:i),Ae=be&&be.userAgentData?be.userAgentData:r,ke=ve?de(ye,ve):ye,we=be&&be.userAgent==Se;return this.getBrowser=function(){var Ie={};return Ie[h]=r,Ie[p]=r,ne.call(Ie,Se,ke.browser),Ie[d]=ue(Ie[p]),we&&be&&be.brave&&typeof be.brave.isBrave==s&&(Ie[h]="Brave"),Ie},this.getCPU=function(){var Ie={};return Ie[b]=r,ne.call(Ie,Se,ke.cpu),Ie},this.getDevice=function(){var Ie={};return Ie[g]=r,Ie[f]=r,Ie[v]=r,ne.call(Ie,Se,ke.device),we&&!Ie[v]&&Ae&&Ae.mobile&&(Ie[v]=S),we&&Ie[f]=="Macintosh"&&be&&typeof be.standalone!==l&&be.maxTouchPoints&&be.maxTouchPoints>2&&(Ie[f]="iPad",Ie[v]=E),Ie},this.getEngine=function(){var Ie={};return Ie[h]=r,Ie[p]=r,ne.call(Ie,Se,ke.engine),Ie},this.getOS=function(){var Ie={};return Ie[h]=r,Ie[p]=r,ne.call(Ie,Se,ke.os),we&&!Ie[h]&&Ae&&Ae.platform!="Unknown"&&(Ie[h]=Ae.platform.replace(/chrome os/i,X).replace(/macos/i,ie)),Ie},this.getResult=function(){return {ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Se},this.setUA=function(Ie){return Se=typeof Ie===u&&Ie.length>w?Y(Ie,w):Ie,this},this.setUA(Se),this};Re.VERSION=o,Re.BROWSER=ge([h,p,d]),Re.CPU=ge([b]),Re.DEVICE=ge([f,g,v,y,S,C,E,$,x]),Re.ENGINE=Re.OS=ge([h,p]),e.exports&&(t=e.exports=Re),t.UAParser=Re;var Be=typeof n!==l&&(n.jQuery||n.Zepto);if(Be&&!Be.ua){var _e=new Re;Be.ua=_e.getResult(),Be.ua.get=function(){return _e.getUA()},Be.ua.set=function(ae){_e.setUA(ae);var ve=_e.getResult();for(var be in ve)Be.ua[be]=ve[be];};}})(typeof window=="object"?window:Eo);})(Mf,Mf.exports);var lj=Mf.exports;const cj=sn(lj),uj=Symbol(),Fh=Symbol(),da="a",ul="w";let dj=(e,t)=>new Proxy(e,t);const Nf=Object.getPrototypeOf,kf=new WeakMap,pS=e=>e&&(kf.has(e)?kf.get(e):Nf(e)===Object.prototype||Nf(e)===Array.prototype),ib=e=>typeof e=="object"&&e!==null,fj=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(Nf(e),t)},bS=e=>e[Fh]||e,yS=(e,t,n,r)=>{if(!pS(e))return e;let o=r&&r.get(e);if(!o){const l=bS(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,fj(l)]:[l],r==null||r.set(e,o);}const[i,a]=o;let s=n&&n.get(i);return s&&s[1].f===!!a||(s=((l,c)=>{const u={f:c};let d=!1;const f=(v,g)=>{if(!d){let p=u[da].get(l);if(p||(p={},u[da].set(l,p)),v===ul)p[ul]=!0;else {let b=p[v];b||(b=new Set,p[v]=b),b.add(g);}}},h={get:(v,g)=>g===Fh?l:(f("k",g),yS(Reflect.get(v,g),u[da],u.c,u.t)),has:(v,g)=>g===uj?(d=!0,u[da].delete(l),!0):(f("h",g),Reflect.has(v,g)),getOwnPropertyDescriptor:(v,g)=>(f("o",g),Reflect.getOwnPropertyDescriptor(v,g)),ownKeys:v=>(f(ul),Reflect.ownKeys(v))};return c&&(h.set=h.deleteProperty=()=>!1),[h,u]})(i,!!a),s[1].p=dj(a||i,s[0]),n&&n.set(i,s)),s[1][da]=t,s[1].c=n,s[1].t=r,s[1].p},CS=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!ib(e)||!ib(t))return !0;const o=n.get(bS(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[ul]===!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=CS(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i});}},mj=e=>pS(e)&&e[Fh]||null,ab=(e,t=!0)=>{kf.set(e,t);};const Ed=e=>typeof e=="object"&&e!==null,no=new WeakMap,Vs=new WeakSet,hj=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>Ed(c)&&!Vs.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),r=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},o=new WeakMap,i=(c,u,d=r)=>{const f=o.get(c);if((f==null?void 0:f[0])===u)return f[1];const h=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return ab(h,!0),o.set(c,[u,h]),Reflect.ownKeys(c).forEach(v=>{if(Object.getOwnPropertyDescriptor(h,v))return;const g=Reflect.get(c,v),p={value:g,enumerable:!0,configurable:!0};if(Vs.has(g))ab(g,!1);else if(g instanceof Promise)delete p.value,p.get=()=>d(g);else if(no.has(g)){const[b,y]=no.get(g);p.value=i(b,y(),d);}Object.defineProperty(h,v,p);}),Object.preventExtensions(h)},a=new WeakMap,s=[1,1],l=c=>{if(!Ed(c))throw new Error("object required");const u=a.get(c);if(u)return u;let d=s[0];const f=new Set,h=(O,R=++s[0])=>{d!==R&&(d=R,f.forEach(A=>A(O,R)));};let v=s[1];const g=(O=++s[1])=>(v!==O&&!f.size&&(v=O,b.forEach(([R])=>{const A=R[1](O);A>d&&(d=A);})),d),p=O=>(R,A)=>{const _=[...R];_[1]=[O,..._[1]],h(_,A);},b=new Map,y=(O,R)=>{if(f.size){const A=R[3](p(O));b.set(O,[R,A]);}else b.set(O,[R]);},S=O=>{var R;const A=b.get(O);A&&(b.delete(O),(R=A[1])==null||R.call(A));},E=O=>(f.add(O),f.size===1&&b.forEach(([A,_],I)=>{const P=A[3](p(I));b.set(I,[A,P]);}),()=>{f.delete(O),f.size===0&&b.forEach(([A,_],I)=>{_&&(_(),b.set(I,[A]));});}),C=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),x=t(C,{deleteProperty(O,R){const A=Reflect.get(O,R);S(R);const _=Reflect.deleteProperty(O,R);return _&&h(["delete",[R],A]),_},set(O,R,A,_){const I=Reflect.has(O,R),P=Reflect.get(O,R,_);if(I&&(e(P,A)||a.has(A)&&e(P,a.get(A))))return !0;S(R),Ed(A)&&(A=mj(A)||A);let T=A;if(A instanceof Promise)A.then(N=>{A.status="fulfilled",A.value=N,h(["resolve",[R],N]);}).catch(N=>{A.status="rejected",A.reason=N,h(["reject",[R],N]);});else {!no.has(A)&&n(A)&&(T=l(A));const N=!Vs.has(T)&&no.get(T);N&&y(R,N);}return Reflect.set(O,R,T,_),h(["set",[R],A,P]),!0}});a.set(c,x);const w=[C,g,i,E];return no.set(x,w),Reflect.ownKeys(c).forEach(O=>{const R=Object.getOwnPropertyDescriptor(c,O);"value"in R&&(x[O]=c[O],delete R.value,delete R.writable),Object.defineProperty(C,O,R);}),x})=>[l,no,Vs,e,t,n,r,o,i,a,s],[vj]=hj();function ur(e={}){return vj(e)}function Wh(e,t,n){const r=no.get(e);let o;const i=[],a=r[3];let s=!1;const c=a(u=>{if(i.push(u),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(i.splice(0));}));});return s=!0,()=>{s=!1,c();}}function Bl(e,t){const n=no.get(e),[r,o,i]=n;return i(r,o(),t)}var SS={exports:{}},wS={};/**
   * @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 Hi=m;function gj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pj=typeof Object.is=="function"?Object.is:gj,bj=Hi.useState,yj=Hi.useEffect,Cj=Hi.useLayoutEffect,Sj=Hi.useDebugValue;function wj(e,t){var n=t(),r=bj({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Cj(function(){o.value=n,o.getSnapshot=t,Od(o)&&i({inst:o});},[e,n,t]),yj(function(){return Od(o)&&i({inst:o}),e(function(){Od(o)&&i({inst:o});})},[e]),Sj(n),n}function Od(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !pj(e,n)}catch{return !0}}function xj(e,t){return t()}var $j=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?xj:wj;wS.useSyncExternalStore=Hi.useSyncExternalStore!==void 0?Hi.useSyncExternalStore:$j;SS.exports=wS;var Ej=SS.exports;const Oj=sn(Ej),{use:sb}=m,{useSyncExternalStore:Ij}=Oj;const Pj=new WeakMap;function mr(e,t){const n=t==null?void 0:t.sync,r=m.useRef(),o=m.useRef();let i=!0;const a=Ij(m.useCallback(c=>{const u=Wh(e,c,n);return c(),u},[e,n]),()=>{const c=Bl(e,sb);try{if(!i&&r.current&&o.current&&!CS(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>Bl(e,sb));i=!1;const s=new WeakMap;m.useEffect(()=>{r.current=a,o.current=s;});const l=m.useMemo(()=>new WeakMap,[]);return yS(a,s,l,Pj)}const Fi=sj(()=>!!document.querySelectorAll(".bili-feed4").length),xS=()=>document.body.classList.contains("dark"),$S=ur({value:xS()});function Vh(){return mr($S).value}const ES=new MutationObserver(function(){$S.value=xS();});ES.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{ES.disconnect();});const OS=cj();var i0;const Rj=((i0=OS.os.name)==null?void 0:i0.toLowerCase())==="mac os";var a0;const Uh=((a0=OS.browser.name)==null?void 0:a0.toLowerCase())==="safari";var _j=_0(function(e,t){var n=e.styles,r=wi([n],void 0,m__namespace.useContext(T0)),o=m__namespace.useRef();return Rv(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",i),a.hydrate([l])),o.current=[a,s],function(){a.flush();}},[t]),Rv(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(r.next!==void 0&&vm(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush();}t.insert("",r,a,!1);},[t,r.name]),null});function Yn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wi(t)}var Yc={},IS={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;})(IS);var Kh=IS.exports,Zc={};Object.defineProperty(Zc,"__esModule",{value:!0});Zc.default=void 0;var Tj={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:"页码"};Zc.default=Tj;var Qc={},bs={},Jc={};Object.defineProperty(Jc,"__esModule",{value:!0});Jc.default=void 0;var Mj={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:"下一世纪"},Nj=Mj;Jc.default=Nj;var ys={};Object.defineProperty(ys,"__esModule",{value:!0});ys.default=void 0;const kj={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var Aj=kj;ys.default=Aj;var PS=Kh.default;Object.defineProperty(bs,"__esModule",{value:!0});bs.default=void 0;var Lj=PS(Jc),Dj=PS(ys);const RS={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Lj.default),timePickerLocale:Object.assign({},Dj.default)};RS.lang.ok="确定";var zj=RS;bs.default=zj;var jj=Kh.default;Object.defineProperty(Qc,"__esModule",{value:!0});Qc.default=void 0;var Bj=jj(bs),Hj=Bj.default;Qc.default=Hj;var eu=Kh.default;Object.defineProperty(Yc,"__esModule",{value:!0});Yc.default=void 0;var Fj=eu(Zc),Wj=eu(Qc),Vj=eu(bs),Uj=eu(ys);const zn="${label}不是一个有效的${type}",Kj={locale:"zh-cn",Pagination:Fj.default,DatePicker:Vj.default,TimePicker:Uj.default,Calendar:Wj.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:zn,method:zn,array:zn,object:zn,number:zn,date:zn,boolean:zn,integer:zn,float:zn,regexp:zn,email:zn,url:zn,hex:zn},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新"},ColorPicker:{presetEmpty:"暂无"}};var Gj=Kj;Yc.default=Gj;var Xj=Yc;const qj=sn(Xj);function _S({children:e}){const t=Vh(),{colorPrimary:n}=kS();return Ce(th,{locale:qj,theme:{algorithm:t?zi.darkAlgorithm:zi.defaultAlgorithm,token:{colorPrimary:n,colorBgSpotlight:n,zIndexPopupBase:11e3,fontFamily:"inherit"}},children:[D(_j,{styles:Yn(":root{",AS,":",n,";}","")}),e]})}function Hl(e){return D(ds,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}function dn({configKey:e,label:t,extraAction:n,tooltip:r,...o}){const a=!!kn()[e],s=m.useCallback(c=>{const u=c.target.checked;Er({[e]:u}),n==null||n(u);},[]);let l=D("span",{style:{userSelect:"none"},children:t||e});return r&&(l=D(ds,{title:r,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),D(Hh,{...o,checked:a,onChange:s,children:l})}var Yj={name:"1qkltea",styles:"margin-left:5px"};const Zj=function(){const e=Yj;return Ce(Ct,{children:[D(dn,{configKey:"initialShowMore",label:"自动查看更多",css:e}),D(dn,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function Fl({tooltip:e,iconProps:t,tooltipProps:n}){return D(Ct,{children:e&&D(Hl,{...n,title:e,children:D(Lt,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const Qj=[{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)"}],Wl={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},TS={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function Jj(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 MS="UP长期洗涤",e8=Jj(MS,`
  #0545b2 理想之蓝
  #f4cd00 柠檬黄
  #ef2729 石榴红
  #f89c00 鹿箭
  #233728 黛绿
  #f2b9b7 和熙粉
  #f3cc91 芝士黄
  #6b4c68 葡萄紫
  #ff7227 落日橙
  #004d62 碧海天
  #23909b 洗碧空
  #aeb400 芥丝绿
  #425a17 箬叶青

  #002FA7 克莱因蓝
  #003153 普鲁士蓝
  #01847F 马尔斯绿
  #FBD26A 申布伦黄
  #470024 勃艮第红
  #492D22 凡戴克棕
  `),NS=[{name:"预设",themes:[Wl,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},TS]},{name:"移动端",themes:[{id:"app-custom-高能红",name:"高能红",colorPrimary:"#fd453e"},{id:"app-custom-咸蛋黄",name:"咸蛋黄",colorPrimary:"#ffc034"},{id:"app-custom-早苗绿",name:"早苗绿",colorPrimary:"#85c255"},{id:"app-custom-宝石蓝",name:"宝石蓝",colorPrimary:"#0095ef"},{id:"app-custom-罗兰紫",name:"罗兰紫",colorPrimary:"#a029ac"}]},{name:"LX Themes",themes:Qj,tooltip:Ce(Ct,{children:["提取自"," ",D("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),D("br",{}),"Apache License 2.0"]})},{name:MS,themes:e8,tooltip:Ce(Ct,{children:["提取自"," ",D("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",D("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})}],t8=NS.map(e=>e.themes).flat();function kS(){let{theme:e,colorPickerThemeSelectedColor:t}=kn();return e||(e=Wl.id),m.useMemo(()=>{const n=t8.find(r=>r.id===e)||Wl;return n.id===TS.id&&t&&(n.colorPrimary=t),n},[e,t])}const AS=`--${rn}-color-primary`,Wr=`var(${AS})`;var n8={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},r8={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},o8={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function i8(){const e=kS().id,{colorPickerThemeSelectedColor:t}=kn(),[n,r]=m.useState(t||Wl.colorPrimary),o=m.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return D("div",{children:NS.map(({name:i,themes:a,tooltip:s})=>Ce(m.Fragment,{children:[Ce("div",{css:o8,children:[i,D(Fl,{tooltip:s,tooltipProps:{color:"rgba(0, 0, 0, 0.85)"},iconProps:{name:"Tips",size:16}})]}),D("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:a.map(l=>{const c=e===l.id,u=l.isCustom,d=D("div",{className:"preview",css:Yn("width:100%;height:100%;background-color:",u?o:l.colorPrimary,";border-radius:5px;","")});let f=D("div",{className:"preview-wrapper",css:[r8,c&&Yn("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(f=D(mz,{value:n,onChange:h=>r(h),onOpenChange:h=>{h||Er({colorPickerThemeSelectedColor:o});},children:f})),Ce("div",{css:n8,onClick:h=>{Er({theme:l.id});},children:[f,l.name]},l.id)})})]},i))})}const a8="_toast-container_185m9_1",s8="_single-line_185m9_17";function yt(e,t=2e3){const n=document.createElement("div");n.className=a8,n.innerText=e,n.style.backgroundColor=Wr,!e.includes(`
`)&&!e.includes("<br")&&n.classList.add(s8),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const l8="请求失败, 请重试 !!!",LS="操作失败, 请重试 !!!";function DS(){return yt(l8)}function zS(){return yt(LS)}const jS="27eb53fc9058f8c3";async function c8(){var c,u;const t=(await Pc.get("https://passport.bilibili.com/login/app/third",{params:{appkey:jS,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)){yt("你必须登录B站之后才能使用授权");return}if(!((u=t==null?void 0:t.data)!=null&&u.confirm_uri)){yt("无法获得授权网址");return}const n=t.data.confirm_uri;let r,o;const i=new Promise(d=>{const f=h=>{if(h.origin!="https://www.mcbbs.net")return;if(!h.data||typeof h.data!="string"){console.warn("received message event with invalid data");return}const g=new URL(h.data).searchParams.get("access_key");return g?d(g):(yt("没有获得匹配的密钥"),d(void 0))};window.addEventListener("message",f),o=()=>window.removeEventListener("message",f),r=setTimeout(()=>{yt("获取授权超时"),d(void 0);},10*1e3);});let a;{const d=window.open(n,"_blank","popup=true,width=800,height=600");a=()=>d==null?void 0:d.close();}function s(){a==null||a(),o==null||o(),o=void 0,r&&(clearTimeout(r),r=void 0);}const l=await i;return s(),l}async function u8(){const e=await c8();if(e)return bt.accessKey=e,yt("获取成功"),e}function d8(){bt.accessKey="",yt("已删除 access_key");}function f8(e){return new Promise((t,n)=>{let r=e.data;const o=e.headers??{};if(ng.isFormData(r)&&delete o["Content-Type"],e.auth){const u=e.auth.username||"",d=e.auth.password||"";o.Authorization="Basic "+Buffer.from(u+":"+d).toString("base64");}const i=function(){n(new mi.AxiosError("Network Error",mi.AxiosError.ERR_NETWORK,e));},a=function(){n(new mi.AxiosError("timeout of "+e.timeout+"ms exceeded",mi.AxiosError.ECONNABORTED,e));};ng.forEach(o,function(d,f){typeof r>"u"&&f.toLowerCase()==="content-type"&&delete o[f];}),r===void 0&&(r=null);const s=function(d){const f="responseHeaders"in d?LR(d.responseHeaders):{},v={data:!e.responseType||e.responseType==="text"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:f,config:e,request:{responseURL:d.finalUrl,status:d.status,statusText:d.statusText,responseXML:null}};PR(t,n,v);};e.cancelToken&&e.cancelToken.promise.then(function(d){n(d);});let l;e.responseType&&e.responseType!=="json"&&(l=e.responseType);const c=e.method.toUpperCase();c==="UNLINK"||c==="PURGE"||c==="LINK"?n(new mi.AxiosError(`${c} is not a supported method by GM.xmlHttpRequest`)):GM.xmlHttpRequest({method:c,url:wR(kR(e.baseURL,e.url),e.params,e.paramsSerializer),headers:Object.fromEntries(Object.entries(o).map(([u,d])=>[u,d.toString()])),responseType:l,data:r,timeout:e.timeout,ontimeout:a,onload:s,onerror:i});})}const Pn=Pc.create({baseURL:ly,withCredentials:!0});Pn.interceptors.request.use(async function(e){var t;return e.params||(e.params={}),(t=e.url)!=null&&t.includes("/wbi/")&&(e.params={...e.params,...await E_(e.params)}),e});function Go(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const tu=Pc.create({adapter:f8});tu.interceptors.request.use(function(e){return e.params={appkey:jS,access_key:bt.accessKey||"",...e.params},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 Gh(){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 Cs(){const e=Gh().bili_jct;if(!e)throw yt("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}function nu(){return Gh().DedeUserID}function Ss(){return !!Gh().DedeUserID}const Af=ur({cookie:document.cookie,logined:Ss()});function m8(){return Object.assign(Af,{cookie:document.cookie,logined:Ss()}),Af.logined}function BS(){return mr(Af).logined}const lb=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},h8=new WeakMap;function v8({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(lb());let i,a,s;const l=e??clearTimeout,c=()=>{l(i),s(lb());},u=()=>{o&&o.removeEventListener("abort",c);},d=new Promise((f,h)=>{a=()=>{u(),f(r);},s=h,i=(t??setTimeout)(a,n);});return o&&o.addEventListener("abort",c,{once:!0}),h8.set(d,()=>{l(i),i=null,a();}),d}}const Xo=v8(),g8=Xi.extend("utility:dom"),p8=10*1e3,b8=200;async function Ia(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const a=performance.now()+p8;for(;!r.length&&performance.now()<a;)await Xo(b8),o();if(!r.length){console.warn(`[${rn}]: tryAction timeout, selector = %s`,e);return}g8("tryAction: selector=%s count=%s",e,r.length);for(const s of r)await Promise.resolve(t(s));}async function Pa(e,t,n){return typeof n=="number"&&await Xo(n),Ia(e,r=>r.remove(),t)}function ru(){var t;const e=(((t=document.activeElement)==null?void 0:t.tagName)||"").toLowerCase();return !!(["input","textarea"].includes(e)||document.querySelector(".center-search__bar.is-focus"))}function y8(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 ou(e){return e||(e=0),Vo.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function Id(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function Vl(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 C8=Vo().format("YYYY");function ao(e,t=!1){if(!e)return "";const n=Vo.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===C8?n.format("M-D"+r):n.format("YY-M-D"+r)}const S8={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function w8(e){if(!(typeof e>"u")&&!(e>=0))return S8[e]}async function HS(){var n;return ((n=(await Pn.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function Lf(e){var i,a;const t=new URLSearchParams({title:"",banner_url:"",content:"",summary:"",words:"0",category:"15",tid:"0",reprint:"0",tags:"",image_urls:"",origin_image_urls:"",dynamic_intro:"",media_id:"0",spoiler:"0",original:"0",top_video_bvid:"",aid:"",csrf:Cs(),...e}),n=(await Pn.post("/x/article/creative/draft/addupdate",t)).data,r=(a=(i=n==null?void 0:n.data)==null?void 0:i.aid)==null?void 0:a.toString(),o=Go(n);return o||yt(n.message||"addupdate error"),{success:o,aid:r}}async function x8(e){var n;const t=(await Pn.get("/x/article/creative/draft/view",{params:{aid:e}})).data;return ((n=t==null?void 0:t.data)==null?void 0:n.content)||""}async function $8(){const t=(await HS()).find(a=>a.title===rn);if(!t){await Lf({title:rn});return}const n=await x8(t.id),i=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(i)try{return JSON.parse(i)}catch{return}}async function E8(e){const n=(await HS()).find(a=>a.title===rn);let r="";if(n)r=n.id.toString();else {const{success:a,aid:s}=await Lf({title:rn});if(!a)return !1;r=s;}const o=JSON.stringify(e),{success:i}=await Lf({aid:r,title:rn,content:`<p>${o}</p>`,words:o.length.toString()});return i}const O8=Xi.extend("settings"),Xh={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",shuffleForWatchLater:!0,shuffleForFav:!0,excludeFavFolderIds:[],filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowedVideo:!1,filterOutGotoTypePicture:!1,enableFilterForFollowedPicture:!1,styleUseYoutubeLikeCard:!1,styleUseStandardVideoSourceTab:!1,backupSettingsToArticleDraft:!1},bt=ur({...Xh}),FS=Object.keys(Xh),kn=function(){return mr(bt)},I8=rn,WS=`${I8}.settings`;async function P8(){const e=await GM.getValue(WS);e&&typeof e=="object"&&Object.assign(bt,Tm(e,FS)),Wh(bt,()=>{_8();});}const R8=ay(E8,Fm("5s"));async function _8(){const e=Bl(bt);await GM.setValue(WS,e);const t=RP(e,["accessKey"]);if(t.backupSettingsToArticleDraft&&!window[`${rn}-restore`])try{await R8(t),O8("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function Er(e){Object.assign(bt,e);}function T8(){return Er(Xh)}await( P8());var VS={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Eo,function(){var n,r,o=1e3,i=6e4,a=36e5,s=864e5,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=31536e6,u=2592e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:c,months:u,days:s,hours:a,minutes:i,seconds:o,milliseconds:1,weeks:6048e5},h=function($){return $ instanceof E},v=function($,x,w){return new E($,w,x.$l)},g=function($){return r.p($)+"s"},p=function($){return $<0},b=function($){return p($)?Math.ceil($):Math.floor($)},y=function($){return Math.abs($)},S=function($,x){return $?p($)?{negative:!0,format:""+y($)+x}:{negative:!1,format:""+$+x}:{negative:!1,format:""}},E=function(){function $(w,O,R){var A=this;if(this.$d={},this.$l=R,w===void 0&&(this.$ms=0,this.parseFromMilliseconds()),O)return v(w*f[g(O)],this);if(typeof w=="number")return this.$ms=w,this.parseFromMilliseconds(),this;if(typeof w=="object")return Object.keys(w).forEach(function(P){A.$d[g(P)]=w[P];}),this.calMilliseconds(),this;if(typeof w=="string"){var _=w.match(d);if(_){var I=_.slice(2).map(function(P){return P!=null?Number(P):0});return this.$d.years=I[0],this.$d.months=I[1],this.$d.weeks=I[2],this.$d.days=I[3],this.$d.hours=I[4],this.$d.minutes=I[5],this.$d.seconds=I[6],this.calMilliseconds(),this}}return this}var x=$.prototype;return x.calMilliseconds=function(){var w=this;this.$ms=Object.keys(this.$d).reduce(function(O,R){return O+(w.$d[R]||0)*f[R]},0);},x.parseFromMilliseconds=function(){var w=this.$ms;this.$d.years=b(w/c),w%=c,this.$d.months=b(w/u),w%=u,this.$d.days=b(w/s),w%=s,this.$d.hours=b(w/a),w%=a,this.$d.minutes=b(w/i),w%=i,this.$d.seconds=b(w/o),w%=o,this.$d.milliseconds=w;},x.toISOString=function(){var w=S(this.$d.years,"Y"),O=S(this.$d.months,"M"),R=+this.$d.days||0;this.$d.weeks&&(R+=7*this.$d.weeks);var A=S(R,"D"),_=S(this.$d.hours,"H"),I=S(this.$d.minutes,"M"),P=this.$d.seconds||0;this.$d.milliseconds&&(P+=this.$d.milliseconds/1e3);var T=S(P,"S"),N=w.negative||O.negative||A.negative||_.negative||I.negative||T.negative,M=_.format||I.format||T.format?"T":"",L=(N?"-":"")+"P"+w.format+O.format+A.format+M+_.format+I.format+T.format;return L==="P"||L==="-P"?"P0D":L},x.toJSON=function(){return this.toISOString()},x.format=function(w){var O=w||"YYYY-MM-DDTHH:mm:ss",R={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return O.replace(l,function(A,_){return _||String(R[A])})},x.as=function(w){return this.$ms/f[g(w)]},x.get=function(w){var O=this.$ms,R=g(w);return R==="milliseconds"?O%=1e3:O=R==="weeks"?b(O/f[R]):this.$d[R],O===0?0:O},x.add=function(w,O,R){var A;return A=O?w*f[g(O)]:h(w)?w.$ms:v(w,this).$ms,v(this.$ms+A*(R?-1:1),this)},x.subtract=function(w,O){return this.add(w,O,!0)},x.locale=function(w){var O=this.clone();return O.$l=w,O},x.clone=function(){return v(this.$ms,this)},x.humanize=function(w){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!w)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},$}(),C=function($,x,w){return $.add(x.years()*w,"y").add(x.months()*w,"M").add(x.days()*w,"d").add(x.hours()*w,"h").add(x.minutes()*w,"m").add(x.seconds()*w,"s").add(x.milliseconds()*w,"ms")};return function($,x,w){n=w,r=w().$utils(),w.duration=function(A,_){var I=w.locale();return v(A,{$l:I},_)},w.isDuration=h;var O=x.prototype.add,R=x.prototype.subtract;x.prototype.add=function(A,_){return h(A)?C(this,A,1):O.bind(this)(A,_)},x.prototype.subtract=function(A,_){return h(A)?C(this,A,-1):R.bind(this)(A,_)};}});})(VS);var M8=VS.exports;const N8=sn(M8);var iu,cb=s0;iu=cb.createRoot,cb.hydrateRoot;function ub(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function db(e,t,n){var r=[],o=hm(e,r,n);return r.length<2?n:o+t(r)}var k8=function(t){var n=S0(t);n.sheet.speedy=function(s){this.isSpeedy=s;},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=wi(c,n.registered,void 0);return vm(n,d,!1),n.key+"-"+d.name},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=wi(c,n.registered),f="animation-"+d.name;return ub(n,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=wi(c,n.registered);ub(n,d);},a=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return db(n.registered,r,A8(c))};return {css:r,cx:a,injectGlobal:i,keyframes:o,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0;});},flush:function(){n.registered={},n.inserted={},n.sheet.flush();},sheet:n.sheet,cache:n,getRegisteredStyles:hm.bind(null,n.registered),merge:db.bind(null,n.registered,r)}},A8=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},L8=k8({key:"css"}),fb=L8.css,US=function(e){return function(t,n){var r=m.useRef(!1);e(function(){return function(){r.current=!1;}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n);}},sr=function(){return sr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);}return t},sr.apply(this,arguments)};function KS(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 D8(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 z8(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 Df(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value);}catch(s){a={error:s};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(a)throw a.error}}return i}function pn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ta=function(e){return typeof e=="function"},j8=function(e){return typeof e=="string"},GS=function(e){return typeof e=="number"};function it(e){var t=m.useRef(e);t.current=m.useMemo(function(){return e},[e]);var n=m.useRef();return n.current||(n.current=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.current.apply(this,r)}),n.current}const Ul=US(m.useEffect);var XS=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?!0:r,i=t.defaultParams,a=i===void 0?[]:i,s=t.refreshDeps,l=s===void 0?[]:s,c=t.refreshDepsAction,u=m.useRef(!1);return u.current=!1,Ul(function(){!n&&o&&(u.current=!0,e.run.apply(e,pn([],Xt(a),!1)));},[o]),Ul(function(){u.current||n||(u.current=!0,c?c():e.refresh());},pn([],Xt(l),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};XS.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const H8=XS;function zf(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 qS(e,t){var n=m.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!zf(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function Wi(e){var t=m.useRef(e);return t.current=e,t}var F8=function(e){var t=Wi(e);m.useEffect(function(){return function(){t.current();}},[]);};const ws=F8;var dl=new Map,W8=function(e,t,n){var r=dl.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){dl.delete(e);},t)),dl.set(e,sr(sr({},n),{timer:o}));},V8=function(e){return dl.get(e)},fl=new Map,U8=function(e){return fl.get(e)},K8=function(e,t){fl.set(e,t),t.then(function(n){return fl.delete(e),n}).catch(function(){fl.delete(e);});},xo={},G8=function(e,t){xo[e]&&xo[e].forEach(function(n){return n(t)});},Pd=function(e,t){return xo[e]||(xo[e]=[]),xo[e].push(t),function(){var r=xo[e].indexOf(t);xo[e].splice(r,1);}},X8=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,i=t.staleTime,a=i===void 0?0:i,s=t.setCache,l=t.getCache,c=m.useRef(),u=m.useRef(),d=function(h,v){s?s(v):W8(h,o,v),G8(h,v.data);},f=function(h,v){return v===void 0&&(v=[]),l?l(v):V8(h)};return qS(function(){if(n){var h=f(n);h&&Object.hasOwnProperty.call(h,"data")&&(e.state.data=h.data,e.state.params=h.params,(a===-1||new Date().getTime()-h.time<=a)&&(e.state.loading=!1)),c.current=Pd(n,function(v){e.setState({data:v});});}},[]),ws(function(){var h;(h=c.current)===null||h===void 0||h.call(c);}),n?{onBefore:function(h){var v=f(n,h);return !v||!Object.hasOwnProperty.call(v,"data")?{}:a===-1||new Date().getTime()-v.time<=a?{loading:!1,data:v==null?void 0:v.data,error:void 0,returnNow:!0}:{data:v==null?void 0:v.data,error:void 0}},onRequest:function(h,v){var g=U8(n);return g&&g!==u.current?{servicePromise:g}:(g=h.apply(void 0,pn([],Xt(v),!1)),u.current=g,K8(n,g),{servicePromise:g})},onSuccess:function(h,v){var g;n&&((g=c.current)===null||g===void 0||g.call(c),d(n,{data:h,params:v,time:new Date().getTime()}),c.current=Pd(n,function(p){e.setState({data:p});}));},onMutate:function(h){var v;n&&((v=c.current)===null||v===void 0||v.call(c),d(n,{data:h,params:e.state.params,time:new Date().getTime()}),c.current=Pd(n,function(g){e.setState({data:g});}));}}:{}};const q8=X8;var Y8=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,a=m.useRef(),s=m.useMemo(function(){var l={};return r!==void 0&&(l.leading=r),o!==void 0&&(l.trailing=o),i!==void 0&&(l.maxWait=i),l},[r,o,i]);return m.useEffect(function(){if(n){var l=e.runAsync.bind(e);return a.current=iy(function(c){c();},n,s),e.runAsync=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new Promise(function(d,f){var h;(h=a.current)===null||h===void 0||h.call(a,function(){l.apply(void 0,pn([],Xt(c),!1)).then(d).catch(f);});})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=l;}}},[n,s]),n?{onCancel:function(){var l;(l=a.current)===null||l===void 0||l.cancel();}}:{}};const Z8=Y8;var Q8=function(e,t){var n=t.loadingDelay,r=t.ready,o=m.useRef();if(!n)return {};var i=function(){o.current&&clearTimeout(o.current);};return {onBefore:function(){return i(),r!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0});},n)),{loading:!1}},onFinally:function(){i();},onCancel:function(){i();}}};const J8=Q8;var eB=!!(typeof window<"u"&&window.document&&window.document.createElement);const xs=eB;function qh(){return xs?document.visibilityState!=="hidden":!0}var Ra=[];function tB(e){return Ra.push(e),function(){var n=Ra.indexOf(e);Ra.splice(n,1);}}if(xs){var nB=function(){if(qh())for(var e=0;e<Ra.length;e++){var t=Ra[e];t();}};window.addEventListener("visibilitychange",nB,!1);}var rB=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,o=r===void 0?!0:r,i=t.pollingErrorRetryCount,a=i===void 0?-1:i,s=m.useRef(),l=m.useRef(),c=m.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l);};return Ul(function(){n||u();},[n]),n?{onBefore:function(){u();},onError:function(){c.current+=1;},onSuccess:function(){c.current=0;},onFinally:function(){a===-1||a!==-1&&c.current<=a?s.current=setTimeout(function(){!o&&!qh()?l.current=tB(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){u();}}:{}};const oB=rB;function iB(e,t){var n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n||(n=!0,e.apply(void 0,pn([],Xt(r),!1)),setTimeout(function(){n=!1;},t));}}function aB(){return xs&&typeof navigator.onLine<"u"?navigator.onLine:!0}var _a=[];function sB(e){return _a.push(e),function(){var n=_a.indexOf(e);n>-1&&_a.splice(n,1);}}if(xs){var mb=function(){if(!(!qh()||!aB()))for(var e=0;e<_a.length;e++){var t=_a[e];t();}};window.addEventListener("visibilitychange",mb,!1),window.addEventListener("focus",mb,!1);}var lB=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,i=m.useRef(),a=function(){var s;(s=i.current)===null||s===void 0||s.call(i);};return m.useEffect(function(){if(n){var s=iB(e.refresh.bind(e),o);i.current=sB(function(){s();});}return function(){a();}},[n,o]),ws(function(){a();}),{}};const cB=lB;var uB=function(e,t){var n=t.retryInterval,r=t.retryCount,o=m.useRef(),i=m.useRef(0),a=m.useRef(!1);return r?{onBefore:function(){a.current||(i.current=0),a.current=!1,o.current&&clearTimeout(o.current);},onSuccess:function(){i.current=0;},onError:function(){if(i.current+=1,r===-1||i.current<=r){var s=n??Math.min(1e3*Math.pow(2,i.current),3e4);o.current=setTimeout(function(){a.current=!0,e.refresh();},s);}else i.current=0;},onCancel:function(){i.current=0,o.current&&clearTimeout(o.current);}}:{}};const dB=uB;var fB=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,i=m.useRef(),a={};return r!==void 0&&(a.leading=r),o!==void 0&&(a.trailing=o),m.useEffect(function(){if(n){var s=e.runAsync.bind(e);return i.current=ay(function(l){l();},n,a),e.runAsync=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new Promise(function(u,d){var f;(f=i.current)===null||f===void 0||f.call(i,function(){s.apply(void 0,pn([],Xt(l),!1)).then(u).catch(d);});})},function(){var l;e.runAsync=s,(l=i.current)===null||l===void 0||l.cancel();}}},[n,r,o]),n?{onCancel:function(){var s;(s=i.current)===null||s===void 0||s.cancel();}}:{}};const mB=fB;var hB=function(e){m.useEffect(function(){e==null||e();},[]);};const su=hB;var vB=function(){var e=Xt(m.useState({}),2),t=e[1];return m.useCallback(function(){return t({})},[])};const gB=vB;var pB=function(){function e(t,n,r,o){o===void 0&&(o={}),this.serviceRef=t,this.options=n,this.subscribe=r,this.initState=o,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=sr(sr(sr({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=sr(sr({},this.state),t),this.subscribe();},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.pluginImpls.map(function(i){var a;return (a=i[t])===null||a===void 0?void 0:a.call.apply(a,pn([i],Xt(n),!1))}).filter(Boolean);return Object.assign.apply(Object,pn([{}],Xt(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,i,a,s,l,c,u,d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return D8(this,void 0,void 0,function(){var h,v,g,p,b,y,S,E,C,$,x;return z8(this,function(w){switch(w.label){case 0:if(this.count+=1,h=this.count,v=this.runPluginHandler("onBefore",d),g=v.stopNow,p=g===void 0?!1:g,b=v.returnNow,y=b===void 0?!1:b,S=KS(v,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState(sr({loading:!0,params:d},S)),y)return [2,Promise.resolve(S.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),w.label=1;case 1:return w.trys.push([1,3,,4]),E=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,E||(E=(x=this.serviceRef).current.apply(x,pn([],Xt(d),!1))),[4,E];case 2:return C=w.sent(),h!==this.count?[2,new Promise(function(){})]:(this.setState({data:C,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,C,d),this.runPluginHandler("onSuccess",C,d),(a=(i=this.options).onFinally)===null||a===void 0||a.call(i,d,C,void 0),h===this.count&&this.runPluginHandler("onFinally",d,C,void 0),[2,C]);case 3:if($=w.sent(),h!==this.count)return [2,new Promise(function(){})];throw this.setState({error:$,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,$,d),this.runPluginHandler("onError",$,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,$),h===this.count&&this.runPluginHandler("onFinally",d,void 0,$),$;case 4:return [2]}})})},e.prototype.run=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.runAsync.apply(this,pn([],Xt(n),!1)).catch(function(o){t.options.onError||console.error(o);});},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel");},e.prototype.refresh=function(){this.run.apply(this,pn([],Xt(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,pn([],Xt(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=ta(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const bB=pB;function yB(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,i=KS(t,["manual"]);var a=sr({manual:o},i),s=Wi(e),l=gB(),c=qS(function(){var u=n.map(function(d){var f;return (f=d==null?void 0:d.onInit)===null||f===void 0?void 0:f.call(d,a)}).filter(Boolean);return new bB(s,a,l,Object.assign.apply(Object,pn([{}],Xt(u),!1)))},[]);return c.options=a,c.pluginImpls=n.map(function(u){return u(c,a)}),su(function(){if(!o){var u=c.state.params||t.defaultParams||[];c.run.apply(c,pn([],Xt(u),!1));}}),ws(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:it(c.cancel.bind(c)),refresh:it(c.refresh.bind(c)),refreshAsync:it(c.refreshAsync.bind(c)),run:it(c.run.bind(c)),runAsync:it(c.runAsync.bind(c)),mutate:it(c.mutate.bind(c))}}function CB(e,t,n){return yB(e,t,pn(pn([],Xt(n||[]),!1),[Z8,J8,oB,cB,mB,H8,q8,dB],!1))}function YS(e,t){e===void 0&&(e=!1);var n=Xt(m.useState(e),2),r=n[0],o=n[1],i=m.useMemo(function(){var a=t===void 0?!e:t,s=function(){return o(function(d){return d===e?a:e})},l=function(d){return o(d)},c=function(){return o(e)},u=function(){return o(a)};return {toggle:s,set:l,setLeft:c,setRight:u}},[]);return [r,i]}function SB(e){e===void 0&&(e=!1);var t=Xt(YS(!!e),2),n=t[0],r=t[1],o=r.toggle,i=r.set,a=m.useMemo(function(){var s=function(){return i(!0)},l=function(){return i(!1)};return {toggle:o,set:function(c){return i(!!c)},setTrue:s,setFalse:l}},[]);return [n,a]}function lu(e,t){if(xs){if(!e)return t;var n;return ta(e)?n=e():"current"in e?n=e.current:n=e,n}}var wB=function(e){var t=function(n,r,o){var i=m.useRef(!1),a=m.useRef([]),s=m.useRef([]),l=m.useRef();e(function(){var c,u=Array.isArray(o)?o:[o],d=u.map(function(f){return lu(f)});if(!i.current){i.current=!0,a.current=d,s.current=r,l.current=n();return}(d.length!==a.current.length||!zf(d,a.current)||!zf(r,s.current))&&((c=l.current)===null||c===void 0||c.call(l),a.current=d,s.current=r,l.current=n());}),ws(function(){var c;(c=l.current)===null||c===void 0||c.call(l),i.current=!1;});};return t};const xB=wB;var $B=xB(m.useEffect);const ZS=$B;var EB="__lodash_hash_undefined__";function OB(e){return this.__data__.set(e,EB),this}function IB(e){return this.__data__.has(e)}function Xa(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ur;++t<n;)this.add(e[t]);}Xa.prototype.add=Xa.prototype.push=OB;Xa.prototype.has=IB;function PB(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 QS(e,t){return e.has(t)}var RB=1,_B=2;function JS(e,t,n,r,o,i){var a=n&RB,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return !1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&_B?new Xa:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var v=e[d],g=t[d];if(r)var p=a?r(g,v,d,t,e,i):r(v,g,d,e,t,i);if(p!==void 0){if(p)continue;f=!1;break}if(h){if(!PB(t,function(b,y){if(!QS(h,y)&&(v===b||o(v,b,n,r,i)))return h.push(y)})){f=!1;break}}else if(!(v===g||o(v,g,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function TB(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}function Yh(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var MB=1,NB=2,kB="[object Boolean]",AB="[object Date]",LB="[object Error]",DB="[object Map]",zB="[object Number]",jB="[object RegExp]",BB="[object Set]",HB="[object String]",FB="[object Symbol]",WB="[object ArrayBuffer]",VB="[object DataView]",hb=Zn?Zn.prototype:void 0,Rd=hb?hb.valueOf:void 0;function UB(e,t,n,r,o,i,a){switch(n){case VB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case WB:return !(e.byteLength!=t.byteLength||!i(new wl(e),new wl(t)));case kB:case AB:case zB:return pm(+e,+t);case LB:return e.name==t.name&&e.message==t.message;case jB:case HB:return e==t+"";case DB:var s=TB;case BB:var l=r&MB;if(s||(s=Yh),e.size!=t.size&&!l)return !1;var c=a.get(e);if(c)return c==t;r|=NB,a.set(e,t);var u=JS(s(e),s(t),r,o,i,a);return a.delete(e),u;case FB:if(Rd)return Rd.call(e)==Rd.call(t)}return !1}var KB=1,GB=Object.prototype,XB=GB.hasOwnProperty;function qB(e,t,n,r,o,i){var a=n&KB,s=Fd(e),l=s.length,c=Fd(t),u=c.length;if(l!=u&&!a)return !1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:XB.call(t,f)))return !1}var h=i.get(e),v=i.get(t);if(h&&v)return h==t&&v==e;var g=!0;i.set(e,t),i.set(t,e);for(var p=a;++d<l;){f=s[d];var b=e[f],y=t[f];if(r)var S=a?r(y,b,f,t,e,i):r(b,y,f,e,t,i);if(!(S===void 0?b===y||o(b,y,n,r,i):S)){g=!1;break}p||(p=f=="constructor");}if(g&&!p){var E=e.constructor,C=t.constructor;E!=C&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof C=="function"&&C instanceof C)&&(g=!1);}return i.delete(e),i.delete(t),g}var YB=1,vb="[object Arguments]",gb="[object Array]",Us="[object Object]",ZB=Object.prototype,pb=ZB.hasOwnProperty;function QB(e,t,n,r,o,i){var a=Jn(e),s=Jn(t),l=a?gb:Ba(e),c=s?gb:Ba(t);l=l==vb?Us:l,c=c==vb?Us:c;var u=l==Us,d=c==Us,f=l==c;if(f&&Sl(e)){if(!Sl(t))return !1;a=!0,u=!1;}if(f&&!u)return i||(i=new Sr),a||H0(e)?JS(e,t,n,r,o,i):UB(e,t,l,n,r,o,i);if(!(n&YB)){var h=u&&pb.call(e,"__wrapped__"),v=d&&pb.call(t,"__wrapped__");if(h||v){var g=h?e.value():e,p=v?t.value():t;return i||(i=new Sr),o(g,p,n,r,i)}}return f?(i||(i=new Sr),qB(e,t,n,r,o,i)):!1}function cu(e,t,n,r,o){return e===t?!0:e==null||t==null||!Dr(e)&&!Dr(t)?e!==e&&t!==t:QB(e,t,n,r,cu,o)}function JB(e,t){return cu(e,t)}var eH=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),JB(e,t)};function lo(e,t,n){n===void 0&&(n={});var r=Wi(t);ZS(function(){var o=lu(n.target,window);if(o!=null&&o.addEventListener){var i=function(a){return r.current(a)};return o.addEventListener(e,i,{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,i,{capture:n.capture});}}},[e,n.capture,n.once,n.passive],n.target);}function ew(e){var t=Xt(m.useState(e),2),n=t[0],r=t[1],o=m.useRef(n);o.current=n;var i=m.useCallback(function(){return o.current},[]);return [n,r,i]}const _d=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,i=n.onChange,a=Xt(SB(!1),2),s=a[0],l=a[1],c=l.setTrue,u=l.setFalse;return lo("mouseenter",function(){r==null||r(),c(),i==null||i(!0);},{target:e}),lo("mouseleave",function(){o==null||o(),u(),i==null||i(!1);},{target:e}),s};var tH=function(e,t,n){var r=m.useRef(),o=m.useRef(0);eH(t,r.current)||(r.current=t,o.current+=1),ZS(e,[o.current],n);};const nH=tH;var rH=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const oH=rH;var tw={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:oH?[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"?tw.meta.includes(e.keyCode):e.metaKey}};function iH(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 bb(e,t,n){var r,o;if(!e.key)return !1;if(GS(t))return e.keyCode===t;var i=t.split("."),a=0;try{for(var s=Df(i),l=s.next();!l.done;l=s.next()){var c=l.value,u=jf[c],d=tw[c.toLowerCase()];(u&&u(e)||d&&d===e.keyCode)&&a++;}}catch(f){r={error:f};}finally{try{l&&!l.done&&(o=s.return)&&o.call(s);}finally{if(r)throw r.error}}return n?a===i.length&&iH(e)===i.length:a===i.length}function aH(e,t){return ta(e)?e:j8(e)||GS(e)?function(n){return bb(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return bb(n,r,t)})}:function(){return !!e}}var sH=["keydown"];function Zt(e,t,n){var r=n||{},o=r.events,i=o===void 0?sH:o,a=r.target,s=r.exactMatch,l=s===void 0?!1:s,c=r.useCapture,u=c===void 0?!1:c,d=Wi(t),f=Wi(e);nH(function(){var h,v,g,p=lu(a,window);if(p){var b=function(C){var $,x=aH(f.current,l);if(x(C))return ($=d.current)===null||$===void 0?void 0:$.call(d,C)};try{for(var y=Df(i),S=y.next();!S.done;S=y.next()){var E=S.value;(g=p==null?void 0:p.addEventListener)===null||g===void 0||g.call(p,E,b,u);}}catch(C){h={error:C};}finally{try{S&&!S.done&&(v=y.return)&&v.call(y);}finally{if(h)throw h.error}}return function(){var C,$,x;try{for(var w=Df(i),O=w.next();!O.done;O=w.next()){var R=O.value;(x=p==null?void 0:p.removeEventListener)===null||x===void 0||x.call(p,R,b,u);}}catch(A){C={error:A};}finally{try{O&&!O.done&&($=w.return)&&$.call(w);}finally{if(C)throw C.error}}}}},[i],a);}function nw(e){var t=m.useRef(0),n=Xt(m.useState(e),2),r=n[0],o=n[1],i=m.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(a);});},[]);return ws(function(){cancelAnimationFrame(t.current);}),[r,i]}var lH={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 cH=function(e){var t=Xt(nw(lH),2),n=t[0],r=t[1];return lo("mousemove",function(o){var i=o.screenX,a=o.screenY,s=o.clientX,l=o.clientY,c=o.pageX,u=o.pageY,d={screenX:i,screenY:a,clientX:s,clientY:l,pageX:c,pageY:u,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},f=lu(e);if(f){var h=f.getBoundingClientRect(),v=h.left,g=h.top,p=h.width,b=h.height;d.elementPosX=v+window.pageXOffset,d.elementPosY=g+window.pageYOffset,d.elementX=c-d.elementPosX,d.elementY=u-d.elementPosY,d.elementW=p,d.elementH=b;}r(d);},{target:function(){return document}}),n};var uH=function(){var e=m.useRef(!1);return m.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const dH=uH,fH=US(m.useLayoutEffect),mH="_modal-mask_1j5wc_1",hH="_modal_1j5wc_1",vH="_modal-header_1j5wc_23",gH="_modal-body_1j5wc_30",pH="_modal-title_1j5wc_35",bH="_btn-close_1j5wc_42",xr={modalMask:mH,modal:hH,modalHeader:vH,modalBody:gH,modalTitle:pH,btnClose:bH};let ba=0;const yH=()=>{ba++,document.body.style.overflow="hidden";},CH=()=>{ba--,ba<0&&(ba=0),ba===0&&(document.body.style.overflow="");};function Zh({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:i,clsModal:a,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){m.useLayoutEffect(()=>{e?yH():CH();},[e]);const u=m.useRef(null),d=Vh(),{bg:f,c:h}=m.useMemo(()=>{const y=window.getComputedStyle(document.body).backgroundColor,S=window.getComputedStyle(document.body).color;return {bg:y,c:S}},[d]),v=m.useMemo(()=>d?{"--bg":f,"--c":h,backgroundColor:f,color:h}:{},[f,h,d]),g=m.useId(),p=m.useMemo(()=>{const y=document.createElement("div");return y.setAttribute("data-id","base-modal-"+g),document.body.appendChild(y),y},[]),b=it(y=>{var E;const S=y.target;(E=u.current)!=null&&E.contains(S)||S.closest('.ant-tooltip-inner[role="tooltip"]')||S.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return Zt("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?s0.createPortal(D("div",{className:F(xr.modalMask,o),style:r,onClick:b,children:D("div",{className:F(xr.modal,a),style:{...v,width:s,...i},ref:u,children:n})}),p):null}const Qh=e=>D(Lt,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});function Jh(e){const t=ur({data:Array.from(new Set(e)),has(n){return this.data.indexOf(n)!==-1},add(n){let r=!1;return typeof n=="object"&&n!==null&&(r=this.data.indexOf(ur(n))!==-1),this.data.indexOf(n)===-1&&!r&&this.data.push(n),this},delete(n){const r=this.data.indexOf(n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},forEach(n){this.data.forEach(r=>{n(r,r,this);});},get[Symbol.toStringTag](){return "Set"},toJSON(){return new Set(this.data)},[Symbol.iterator](){return this.data[Symbol.iterator]()},values(){return this.data.values()},keys(){return this.data.values()},entries(){return new Set(this.data).entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}function SH(e){const t=ur({data:Array.from(e||[]),has(n){return this.data.some(r=>r[0]===n)},set(n,r){const o=this.data.find(i=>i[0]===n);return o?o[1]=r:this.data.push([n,r]),this},get(n){var r;return (r=this.data.find(o=>o[0]===n))==null?void 0:r[1]},delete(n){const r=this.data.findIndex(o=>o[0]===n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(n){this.data.forEach(r=>{n(r[1],r[0],this);});},keys(){return this.data.map(n=>n[0]).values()},values(){return this.data.map(n=>n[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return "Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}class wH extends Map{constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof t.maxAge=="number"&&t.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=t.maxSize,this.maxAge=t.maxAge||Number.POSITIVE_INFINITY,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0;}_emitEvictions(t){if(typeof this.onEviction=="function")for(const[n,r]of t)this.onEviction(n,r.value);}_deleteIfExpired(t,n){return typeof n.expiry=="number"&&n.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(t,n.value),this.delete(t)):!1}_getOrDeleteIfExpired(t,n){if(this._deleteIfExpired(t,n)===!1)return n.value}_getItemValue(t,n){return n.expiry?this._getOrDeleteIfExpired(t,n):n.value}_peek(t,n){const r=n.get(t);return this._getItemValue(t,r)}_set(t,n){this.cache.set(t,n),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map);}_moveToRecent(t,n){this.oldCache.delete(t),this._set(t,n);}*_entriesAscending(){for(const t of this.oldCache){const[n,r]=t;this.cache.has(n)||this._deleteIfExpired(n,r)===!1&&(yield t);}for(const t of this.cache){const[n,r]=t;this._deleteIfExpired(n,r)===!1&&(yield t);}}get(t){if(this.cache.has(t)){const n=this.cache.get(t);return this._getItemValue(t,n)}if(this.oldCache.has(t)){const n=this.oldCache.get(t);if(this._deleteIfExpired(t,n)===!1)return this._moveToRecent(t,n),n.value}}set(t,n,{maxAge:r=this.maxAge}={}){const o=typeof r=="number"&&r!==Number.POSITIVE_INFINITY?Date.now()+r:void 0;this.cache.has(t)?this.cache.set(t,{value:n,expiry:o}):this._set(t,{value:n,expiry:o});}has(t){return this.cache.has(t)?!this._deleteIfExpired(t,this.cache.get(t)):this.oldCache.has(t)?!this._deleteIfExpired(t,this.oldCache.get(t)):!1}peek(t){if(this.cache.has(t))return this._peek(t,this.cache);if(this.oldCache.has(t))return this._peek(t,this.oldCache)}delete(t){const n=this.cache.delete(t);return n&&this._size--,this.oldCache.delete(t)||n}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0;}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");const n=[...this._entriesAscending()],r=n.length-t;r<0?(this.cache=new Map(n),this.oldCache=new Map,this._size=n.length):(r>0&&this._emitEvictions(n.slice(0,r)),this.oldCache=new Map(n.slice(r)),this.cache=new Map,this._size=0),this.maxSize=t;}*keys(){for(const[t]of this)yield t;}*values(){for(const[,t]of this)yield t;}*[Symbol.iterator](){for(const t of this.cache){const[n,r]=t;this._deleteIfExpired(n,r)===!1&&(yield [n,r.value]);}for(const t of this.oldCache){const[n,r]=t;this.cache.has(n)||this._deleteIfExpired(n,r)===!1&&(yield [n,r.value]);}}*entriesDescending(){let t=[...this.cache];for(let n=t.length-1;n>=0;--n){const r=t[n],[o,i]=r;this._deleteIfExpired(o,i)===!1&&(yield [o,i.value]);}t=[...this.oldCache];for(let n=t.length-1;n>=0;--n){const r=t[n],[o,i]=r;this.cache.has(o)||this._deleteIfExpired(o,i)===!1&&(yield [o,i.value]);}}*entriesAscending(){for(const[t,n]of this._entriesAscending())yield [t,n.value];}get size(){if(!this._size)return this.oldCache.size;let t=0;for(const n of this.oldCache.keys())this.cache.has(n)||t++;return Math.min(this._size+t,this.maxSize)}entries(){return this.entriesAscending()}forEach(t,n=this){for(const[r,o]of this.entriesAscending())t.call(n,o,r,this);}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}async function xH(e){return (await Pn.get("/pvideo",{params:{aid:e}})).data.data}async function $H(e){return []}const Td=new wH({maxSize:1e3});async function EH(e){if(Td.has(e))return Td.get(e);const[t,n]=await Promise.all([xH(e),$H()]);return Td.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function rw(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:Cs()}),i=(await Pn.post("/x/v2/history/toview/"+e,r)).data,a=Go(i);return a||yt((i==null?void 0:i.message)||"出错了"),a}}const Ks=rw("add"),yb=rw("del"),ow=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const i=(await tu.get(cy+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return Go(i)}},OH=ow("dislike"),IH=ow("cancel"),PH="_modal_1rloz_1",RH="_title-desc_1rloz_4",_H="_reason-list_1rloz_8",TH="_reason_1rloz_8",MH="_active_1rloz_29",NH="_reason-no_1rloz_33",kH="_tips-container_1rloz_47",AH="_tips_1rloz_47",qn={modal:PH,titleDesc:RH,reasonList:_H,reason:TH,active:MH,reasonNo:NH,tipsContainer:kH,tips:AH},uu=SH();function LH(){return mr(uu)}function DH(e){const t=LH();if(e)return t.get(e)}function zH({show:e,onHide:t,item:n}){const[r,o]=m.useState(!1),i=it(async h=>{if(!n)return;let v=!1,g;try{o(!0),v=await OH(n,h.id);}catch(p){g=p;}finally{o(!1);}if(g)return console.error(g.stack||g),DS();v?yt("已标记不想看"):zS(),v&&(uu.set(n.param,{...h}),t());}),a=m.useMemo(()=>{var h;return ((h=n==null?void 0:n.three_point)==null?void 0:h.dislike_reasons)||[]},[n]),s=()=>!!e&&!!n,l=["1","2","3","4","5","6"];Zt(l,h=>{if(!s()||!l.includes(h.key))return;const v=Number(h.key)-1;u(v);const g=document.querySelectorAll(`.${qn.reason}`)[v]||null;g==null||g.click();});const[c,u]=m.useState(a.length-1);fH(()=>{u(a.length-1);},[a]);const d=h=>()=>{if(!s())return;const v=c+h;v<0||v>a.length-1||u(v);};Zt("leftarrow",d(-1)),Zt("rightarrow",d(1)),Zt("uparrow",d(-2)),Zt("downarrow",d(2)),Zt("enter",h=>{var v;s()&&(c<0||c>a.length-1||(h.preventDefault(),h.stopImmediatePropagation(),(v=document.querySelector(`.${qn.reason}.${qn.active}`))==null||v.click()));});const f=m.useMemo(()=>{var h;return ((h=a[c])==null?void 0:h.name)||""},[a,c]);return Ce(Zh,{show:e,onHide:t,clsModal:qn.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[Ce("div",{className:xr.modalHeader,children:[Ce("div",{className:xr.modalTitle,children:["我不想看",D("span",{className:qn.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),D("div",{className:"space",style:{flex:1}}),D(Qh,{onClick:t})]}),Ce("div",{className:xr.modalBody,children:[D("div",{className:qn.reasonList,children:a.map((h,v)=>Ce("button",{className:F(qn.reason,{[qn.active]:v===c}),style:{...v===c&&{borderColor:Wr}},"data-id":h.id,onClick:()=>{u(v),i(h);},disabled:r,children:[D("span",{className:qn.reasonNo,style:{backgroundColor:Wr},children:v+1}),h.name]},h.id))}),Ce("div",{className:qn.tipsContainer,children:[Ce("div",{className:qn.tips,children:[D(Lt,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),f&&Ce("div",{className:qn.tips,children:[D(Lt,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",f,"」, 回车键提交"]})]})]})]})}const ml={show:!1,onHide:aw,item:null},iw=ur({value:ml.show}),jH=function(){return mr(iw).value};function aw(){setTimeout(()=>{sw({show:!1,item:null});});}function sw(e){Object.assign(ml,e),iw.value=ml.show,BH().render(D(zH,{...ml,onHide:aw}));}let Md;function BH(){if(!Md){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),Md=iu(e);}return Md}function HH(e){e!=null&&e.param&&uu.has(e.param)||sw({show:!0,item:e});}const lw=m__namespace.createContext(null),FH=lw.Provider,cw=m__namespace.createContext(null),WH=cw.Provider,VH=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},Tt(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"}})}},UH=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,dotSize:d,colorBgContainerDisabled:f,colorTextDisabled:h,paddingXS:v,dotColorDisabled:g,lineType:p,radioDotDisabledSize:b,wireframe:y,colorWhite:S}=e,E=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},Tt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${u}px ${p} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Tt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
        &:hover ${E}`]:{borderColor:r},[`${t}-input:focus-visible + ${E}`]:Object.assign({},Do(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:y?r:S,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,width:0,height:0,padding:0,margin:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[E]:{borderColor:r,backgroundColor:y?l:r,"&::after":{transform:`scale(${d/o})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[E]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[E]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},KH=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:h,controlHeightSM:v,paddingXS:g,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:S,buttonSolidCheckedColor:E,colorTextDisabled:C,colorBgContainerDisabled:$,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:w,colorPrimary:O,colorPrimaryHover:R,colorPrimaryActive:A}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-o*2}px`,background:d,border:`${o}px ${i} ${a}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${i} ${a}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${r}-group-large &`]:{height:h,fontSize:f,lineHeight:`${h-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:v,paddingInline:g-o,paddingBlock:0,lineHeight:`${v-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":Object.assign({},Do(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:O,background:S,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:R,borderColor:R,"&::before":{backgroundColor:R}},"&:active":{color:A,borderColor:A,"&::before":{backgroundColor:A}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:E,background:O,borderColor:O,"&:hover":{color:E,background:R,borderColor:R},"&:active":{color:E,background:A,borderColor:A}},"&-disabled":{color:C,backgroundColor:$,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:$,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:w,backgroundColor:x,borderColor:a,boxShadow:"none"}}}},Cb=e=>e-4*2,uw=Vt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,i=o,a=Cb(r),s=ft(e,{radioDotDisabledSize:a,radioFocusShadow:o,radioButtonFocusShadow:i});return [VH(s),UH(s),KH(s)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u}=e,d=4,f=i,h=t?Cb(f):f-(d+o)*2;return {radioSize:f,dotSize:h,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var GH=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 XH=(e,t)=>{var n,r;const o=m__namespace.useContext(lw),i=m__namespace.useContext(cw),{getPrefixCls:a,direction:s,radio:l}=m__namespace.useContext(nt),c=m__namespace.useRef(null),u=In(t,c),{isFormItemInput:d}=m__namespace.useContext(tr),f=A=>{var _,I;(_=e.onChange)===null||_===void 0||_.call(e,A),(I=o==null?void 0:o.onChange)===null||I===void 0||I.call(o,A);},{prefixCls:h,className:v,rootClassName:g,children:p,style:b}=e,y=GH(e,["prefixCls","className","rootClassName","children","style"]),S=a("radio",h),E=((o==null?void 0:o.optionType)||i)==="button",C=E?`${S}-button`:S,[$,x]=uw(S),w=Object.assign({},y),O=m__namespace.useContext(Pr);o&&(w.name=o.name,w.onChange=f,w.checked=e.value===o.value,w.disabled=(n=w.disabled)!==null&&n!==void 0?n:o.disabled),w.disabled=(r=w.disabled)!==null&&r!==void 0?r:O;const R=F(`${C}-wrapper`,{[`${C}-wrapper-checked`]:w.checked,[`${C}-wrapper-disabled`]:w.disabled,[`${C}-wrapper-rtl`]:s==="rtl",[`${C}-wrapper-in-form-item`]:d},l==null?void 0:l.className,v,g,x);return $(m__namespace.createElement(gs,{component:"Radio",disabled:w.disabled},m__namespace.createElement("label",{className:R,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},m__namespace.createElement(fS,Object.assign({},w,{className:F(w.className,!E&&qc),type:"radio",prefixCls:C,ref:u})),p!==void 0?m__namespace.createElement("span",null,p):null)))},qH=m__namespace.forwardRef(XH),Kl=qH,YH=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m__namespace.useContext(nt),[o,i]=Dt(e.defaultValue,{value:e.value}),a=_=>{const I=o,P=_.target.value;"value"in e||i(P);const{onChange:T}=e;T&&P!==I&&T(_);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:h,size:v,style:g,id:p,onMouseEnter:b,onMouseLeave:y,onFocus:S,onBlur:E}=e,C=n("radio",s),$=`${C}-group`,[x,w]=uw(C);let O=h;u&&u.length>0&&(O=u.map(_=>typeof _=="string"||typeof _=="number"?m__namespace.createElement(Kl,{key:_.toString(),prefixCls:C,disabled:f,value:_,checked:o===_},_):m__namespace.createElement(Kl,{key:`radio-group-value-options-${_.value}`,prefixCls:C,disabled:_.disabled||f,value:_.value,checked:o===_.value,title:_.title,style:_.style},_.label)));const R=Wn(v),A=F($,`${$}-${d}`,{[`${$}-${R}`]:R,[`${$}-rtl`]:r==="rtl"},l,c,w);return x(m__namespace.createElement("div",Object.assign({},ji(e,{aria:!0,data:!0}),{className:A,style:g,onMouseEnter:b,onMouseLeave:y,onFocus:S,onBlur:E,id:p,ref:t}),m__namespace.createElement(FH,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},O)))}),ZH=m__namespace.memo(YH);var QH=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 JH=(e,t)=>{const{getPrefixCls:n}=m__namespace.useContext(nt),{prefixCls:r}=e,o=QH(e,["prefixCls"]),i=n("radio",r);return m__namespace.createElement(WH,{value:"button"},m__namespace.createElement(Kl,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},e9=m__namespace.forwardRef(JH),du=Kl;du.Button=e9;du.Group=ZH;du.__ANT_RADIO=!0;const Sb=du;function t9(e,t){const n=Object.keys(e),r=Tm(JSON.parse(localStorage.getItem(t)||"{}"),n),o=ur({...e,...r});return Wh(o,()=>{const i=Bl(o);localStorage.setItem(t,JSON.stringify(i));}),o}const n9=`${rn}-video-source-tab`,ev=t9({value:"recommend-app"},n9),wb={name:"qamjgr",styles:"margin-right:4px"},Gl=[{key:"recommend-app",icon:"Iphone",label:"推荐",desc:"使用手机 APP 端推荐 API"},{key:"recommend-pc",icon:"Computer",label:"推荐",desc:"使用新版首页顶部推荐 API"},{key:"onlyFollow",icon:"Concern",label:"已关注",desc:"推荐中只保留「已关注」,会很慢"},{key:"dynamic",icon:"Tumblr",iconProps:{size:16},label:"动态",desc:"视频投稿动态",swr:!0},{key:"watchlater",icon:"FileCabinet",iconProps:{size:15},label:"稍后再看",desc:"你添加的稍后再看; 默认随机乱序, 可在设置-高级设置 或 稍后再看 Tab 中关闭乱序",swr:!0},{key:"fav",icon:"Star",iconProps:{size:15},label:"收藏",desc:"你添加的收藏; 默认随机乱序, 可在设置-高级设置 或 收藏 Tab 中关闭乱序",reuseable:!1}],xb=Gl.reduce((e,t)=>({...e,[t.key]:t}),{}),r9=Gl.map(e=>e.key);function dw(e,t){return r9.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function $s(){return dw(mr(ev).value,BS())}function o9(){return dw(ev.value,Ss())}function i9(){return yt("你需要登录B站后使用该功能! 如已完成登录, 请刷新网页重试~")}const a9={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},s9={name:"s0vnfv",styles:"height:32px"};var l9={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},c9={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function fw({onRefresh:e}){const t=BS(),n=$s(),{styleUseStandardVideoSourceTab:r}=kn();return Ce(Ct,{children:[D(Sb.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:n,style:{overflow:"hidden"},onFocus:o=>{o.target.blur();},onChange:o=>{const i=o.target.value;if(i!=="recommend-app"&&i!=="recommend-pc"&&!t&&!m8())return i9();ev.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:Gl.map(({key:o,label:i,icon:a,iconProps:s})=>D(Sb.Button,{css:[a9,r&&s9,"",""],className:"video-source-tab",tabIndex:-1,value:o,children:Ce("span",{css:c9,children:[D(Lt,{name:a,...s,size:(s==null?void 0:s.size)||18,css:wb}),i]})},o))}),D(Fl,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:D(Ct,{children:Gl.map(({key:o,label:i,icon:a,iconProps:s,desc:l})=>Ce("div",{css:l9,children:[D(Lt,{name:a,...s,size:(s==null?void 0:s.size)||18,css:wb}),i,": ",l]},o))})})]})}var u9=ce.ESC,d9=ce.TAB;function f9(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=m__namespace.useRef(!1),s=function(){if(t){var d,f;(d=n.current)===null||d===void 0||(f=d.focus)===null||f===void 0||f.call(d),r==null||r(!1);}},l=function(){var d;return (d=i.current)!==null&&d!==void 0&&d.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(d){switch(d.keyCode){case u9:s();break;case d9:{var f=!1;a.current||(f=l()),f?d.preventDefault():s();break}}};m__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&gt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1;}):function(){a.current=!1;}},[t]);}var m9=m.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=m.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=In(t,i==null?void 0:i.ref);return m.createElement(m.Fragment,null,r&&m.createElement("div",{className:"".concat(o,"-arrow")}),m.cloneElement(i,{ref:Ko(i)?a:void 0}))}),li={adjustX:1,adjustY:1},ci=[0,0],h9={topLeft:{points:["bl","tl"],overflow:li,offset:[0,-4],targetOffset:ci},top:{points:["bc","tc"],overflow:li,offset:[0,-4],targetOffset:ci},topRight:{points:["br","tr"],overflow:li,offset:[0,-4],targetOffset:ci},bottomLeft:{points:["tl","bl"],overflow:li,offset:[0,4],targetOffset:ci},bottom:{points:["tc","bc"],overflow:li,offset:[0,4],targetOffset:ci},bottomRight:{points:["tr","br"],overflow:li,offset:[0,4],targetOffset:ci}},v9=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function g9(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,f=e.placements,h=f===void 0?h9:f,v=e.getPopupContainer,g=e.showAction,p=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,S=e.visible,E=e.trigger,C=E===void 0?["hover"]:E,$=e.autoFocus,x=e.overlay,w=e.children,O=e.onVisibleChange,R=Je(e,v9),A=m.useState(),_=G(A,2),I=_[0],P=_[1],T="visible"in e?S:I,N=m.useRef(null),M=m.useRef(null),L=m.useRef(null);m.useImperativeHandle(t,function(){return N.current});var z=function(U){P(U),O==null||O(U);};f9({visible:T,triggerRef:L,onVisibleChange:z,autoFocus:$,overlayRef:M});var H=function(U){var X=e.onOverlayClick;P(!1),X&&X(U);},W=function(){return m.createElement(m9,{ref:M,overlay:x,prefixCls:a,arrow:o})},B=function(){return typeof x=="function"?W:W()},V=function(){var U=e.minOverlayWidthMatchTrigger,X=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?U:!X},j=function(){var U=e.openClassName;return U!==void 0?U:"".concat(a,"-open")},K=m.cloneElement(w,{className:F((n=w.props)===null||n===void 0?void 0:n.className,T&&j()),ref:Ko(w)?In(L,w.ref):void 0}),ee=p;return !ee&&C.indexOf("contextMenu")!==-1&&(ee=["click"]),m.createElement(Lc,Oe({builtinPlacements:h},R,{prefixCls:a,ref:N,popupClassName:F(b,Z({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:C,showAction:g,hideAction:ee,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:T,stretch:V()?"minWidth":"",popup:B(),onPopupVisibleChange:z,onPopupClick:H,getPopupContainer:v}),K)}const mw=m.forwardRef(g9);var hw=m__namespace.createContext(null);function tv(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function vw(e){var t=m__namespace.useContext(hw);return tv(t,e)}var p9=["children","locked"],dr=m__namespace.createContext(null);function b9(e,t){var n=Q({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function qa(e){var t=e.children,n=e.locked,r=Je(e,p9),o=m__namespace.useContext(dr),i=is(function(){return b9(o,r)},[o,r],function(a,s){return !n&&(a[0]!==s[0]||!Mc(a[1],s[1],!0))});return m__namespace.createElement(dr.Provider,{value:i},t)}var y9=[],gw=m__namespace.createContext(null);function fu(){return m__namespace.useContext(gw)}var pw=m__namespace.createContext(y9);function na(e){var t=m__namespace.useContext(pw);return m__namespace.useMemo(function(){return e!==void 0?[].concat(Ze(t),[e]):t},[t,e])}var bw=m__namespace.createContext(null),nv=m__namespace.createContext({});function $b(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(rh(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 C9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ze(e.querySelectorAll("*")).filter(function(r){return $b(r,t)});return $b(e,t)&&n.unshift(e),n}var Bf=ce.LEFT,Hf=ce.RIGHT,Ff=ce.UP,hl=ce.DOWN,vl=ce.ENTER,yw=ce.ESC,fa=ce.HOME,ma=ce.END,Eb=[Ff,hl,Bf,Hf];function S9(e,t,n,r){var o,i,a,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===vl)return {inlineTrigger:!0};var f=(o={},Z(o,Ff,l),Z(o,hl,c),o),h=(i={},Z(i,Bf,n?c:l),Z(i,Hf,n?l:c),Z(i,hl,u),Z(i,vl,u),i),v=(a={},Z(a,Ff,l),Z(a,hl,c),Z(a,vl,u),Z(a,yw,d),Z(a,Bf,n?u:d),Z(a,Hf,n?d:u),a),g={inline:f,horizontal:h,vertical:v,inlineSub:f,horizontalSub:v,verticalSub:v},p=(s=g["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(p){case l:return {offset:-1,sibling:!0};case c:return {offset:1,sibling:!0};case d:return {offset:-1,sibling:!1};case u:return {offset:1,sibling:!1};default:return null}}function w9(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function x9(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function Cw(e,t){var n=C9(e,!0);return n.filter(function(r){return t.has(r)})}function Ob(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Cw(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 $9(e,t,n,r,o,i,a,s,l,c){var u=m__namespace.useRef(),d=m__namespace.useRef();d.current=t;var f=function(){gt.cancel(u.current);};return m__namespace.useEffect(function(){return function(){f();}},[]),function(h){var v=h.which;if([].concat(Eb,[vl,yw,fa,ma]).includes(v)){var g,p,b,y=function(){g=new Set,p=new Map,b=new Map;var T=i();return T.forEach(function(N){var M=document.querySelector("[data-menu-id='".concat(tv(r,N),"']"));M&&(g.add(M),b.set(M,N),p.set(N,M));}),g};y();var S=p.get(t),E=x9(S,g),C=b.get(E),$=S9(e,a(C,!0).length===1,n,v);if(!$&&v!==fa&&v!==ma)return;(Eb.includes(v)||[fa,ma].includes(v))&&h.preventDefault();var x=function(T){if(T){var N=T,M=T.querySelector("a");M!=null&&M.getAttribute("href")&&(N=M);var L=b.get(T);s(L),f(),u.current=gt(function(){d.current===L&&N.focus();});}};if([fa,ma].includes(v)||$.sibling||!E){var w;!E||e==="inline"?w=o.current:w=w9(E);var O,R=Cw(w,g);v===fa?O=R[0]:v===ma?O=R[R.length-1]:O=Ob(w,g,E,$.offset),x(O);}else if($.inlineTrigger)l(C);else if($.offset>0)l(C,!0),f(),u.current=gt(function(){y();var P=E.getAttribute("aria-controls"),T=document.getElementById(P),N=Ob(T,g);x(N);},5);else if($.offset<0){var A=a(C,!0),_=A[A.length-2],I=p.get(_);l(_,!1),x(I);}}c==null||c(h);}}function E9(e){Promise.resolve().then(e);}var rv="__RC_UTIL_PATH_SPLIT__",Ib=function(t){return t.join(rv)},O9=function(t){return t.split(rv)},Wf="rc-menu-more";function I9(){var e=m__namespace.useState({}),t=G(e,2),n=t[1],r=m.useRef(new Map),o=m.useRef(new Map),i=m__namespace.useState([]),a=G(i,2),s=a[0],l=a[1],c=m.useRef(0),u=m.useRef(!1),d=function(){u.current||n({});},f=m.useCallback(function(S,E){var C=Ib(E);o.current.set(C,S),r.current.set(S,C),c.current+=1;var $=c.current;E9(function(){$===c.current&&d();});},[]),h=m.useCallback(function(S,E){var C=Ib(E);o.current.delete(C),r.current.delete(S);},[]),v=m.useCallback(function(S){l(S);},[]),g=m.useCallback(function(S,E){var C=r.current.get(S)||"",$=O9(C);return E&&s.includes($[0])&&$.unshift(Wf),$},[s]),p=m.useCallback(function(S,E){return S.some(function(C){var $=g(C,!0);return $.includes(E)})},[g]),b=function(){var E=Ze(r.current.keys());return s.length&&E.push(Wf),E},y=m.useCallback(function(S){var E="".concat(r.current.get(S)).concat(rv),C=new Set;return Ze(o.current.keys()).forEach(function($){$.startsWith(E)&&C.add(o.current.get($));}),C},[]);return m__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:f,unregisterPath:h,refreshOverflowKeys:v,isSubPathKey:p,getKeyPath:g,getKeys:b,getSubPathKeys:y}}function ya(e){var t=m__namespace.useRef(e);t.current=e;var n=m__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var P9=Math.random().toFixed(5).toString().slice(2),Pb=0;function R9(e){var t=Dt(e,{value:e}),n=G(t,2),r=n[0],o=n[1];return m__namespace.useEffect(function(){Pb+=1;var i="".concat(P9,"-").concat(Pb);o("rc-menu-uuid-".concat(i));},[]),r}function Sw(e,t,n,r){var o=m__namespace.useContext(dr),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 ww(e){var t=m__namespace.useContext(dr),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 xw(e){var t=e.icon,n=e.props,r=e.children,o;return typeof t=="function"?o=m__namespace.createElement(t,Q({},n)):o=t,o||r||null}var _9=["item"];function Xl(e){var t=e.item,n=Je(e,_9);return Object.defineProperty(n,"item",{get:function(){return Ir(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var T9=["title","attribute","elementRef"],M9=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],N9=["active"],k9=function(e){fo(n,e);var t=mo(n);function n(){return Cn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,s=o.elementRef,l=Je(o,T9),c=yn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ir(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m__namespace.createElement(wr.Item,Oe({},a,{title:typeof i=="string"?i:void 0},c,{ref:s}))}}]),n}(m__namespace.Component),A9=m__namespace.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey;e.warnKey;var a=e.disabled,s=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,h=e.onKeyDown,v=e.onFocus,g=Je(e,M9),p=vw(i),b=m__namespace.useContext(dr),y=b.prefixCls,S=b.onItemClick,E=b.disabled,C=b.overflowDisabled,$=b.itemIcon,x=b.selectedKeys,w=b.onActive,O=m__namespace.useContext(nv),R=O._internalRenderMenuItem,A="".concat(y,"-item"),_=m__namespace.useRef(),I=m__namespace.useRef(),P=E||a,T=ls(t,I),N=na(i),M=function(ie){return {key:i,keyPath:Ze(N).reverse(),item:_.current,domEvent:ie}},L=s||$,z=Sw(i,P,u,d),H=z.active,W=Je(z,N9),B=x.includes(i),V=ww(N.length),j=function(ie){if(!P){var de=M(ie);f==null||f(Xl(de)),S(de);}},K=function(ie){if(h==null||h(ie),ie.which===ce.ENTER){var de=M(ie);f==null||f(Xl(de)),S(de);}},ee=function(ie){w(i),v==null||v(ie);},q={};e.role==="option"&&(q["aria-selected"]=B);var U=m__namespace.createElement(k9,Oe({ref:_,elementRef:T,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":C&&p?null:p},g,W,q,{component:"li","aria-disabled":a,style:Q(Q({},V),r),className:F(A,(n={},Z(n,"".concat(A,"-active"),H),Z(n,"".concat(A,"-selected"),B),Z(n,"".concat(A,"-disabled"),P),n),o),onClick:j,onKeyDown:K,onFocus:ee}),l,m__namespace.createElement(xw,{props:Q(Q({},e),{},{isSelected:B}),icon:L}));return R&&(U=R(U,e,{selected:B})),U});function L9(e,t){var n=e.eventKey,r=fu(),o=na(n);return m__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:m__namespace.createElement(A9,Oe({},e,{ref:t}))}const Es=m__namespace.forwardRef(L9);var D9=["className","children"],z9=function(t,n){var r=t.className,o=t.children,i=Je(t,D9),a=m__namespace.useContext(dr),s=a.prefixCls,l=a.mode,c=a.rtl;return m__namespace.createElement("ul",Oe({className:F(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},ov=m__namespace.forwardRef(z9);ov.displayName="SubMenuList";function iv(e,t){return cr(e).map(function(n,r){if(m__namespace.isValidElement(n)){var o,i,a=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,l=s==null;l&&(s="tmp_key-".concat([].concat(Ze(t),[r]).join("-")));var c={key:s,eventKey:s};return m__namespace.cloneElement(n,c)}return n})}var gn={adjustX:1,adjustY:1},j9={topLeft:{points:["bl","tl"],overflow:gn},topRight:{points:["br","tr"],overflow:gn},bottomLeft:{points:["tl","bl"],overflow:gn},bottomRight:{points:["tr","br"],overflow:gn},leftTop:{points:["tr","tl"],overflow:gn},leftBottom:{points:["br","bl"],overflow:gn},rightTop:{points:["tl","tr"],overflow:gn},rightBottom:{points:["bl","br"],overflow:gn}},B9={topLeft:{points:["bl","tl"],overflow:gn},topRight:{points:["br","tr"],overflow:gn},bottomLeft:{points:["tl","bl"],overflow:gn},bottomRight:{points:["tr","br"],overflow:gn},rightTop:{points:["tr","tl"],overflow:gn},rightBottom:{points:["br","bl"],overflow:gn},leftTop:{points:["tl","tr"],overflow:gn},leftBottom:{points:["bl","br"],overflow:gn}};function $w(e,t,n){if(t)return t;if(n)return n[e]||n.other}var H9={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function F9(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupClassName,a=e.popupOffset,s=e.disabled,l=e.mode,c=e.onVisibleChange,u=m__namespace.useContext(dr),d=u.getPopupContainer,f=u.rtl,h=u.subMenuOpenDelay,v=u.subMenuCloseDelay,g=u.builtinPlacements,p=u.triggerSubMenuAction,b=u.forceSubMenuRender,y=u.rootClassName,S=u.motion,E=u.defaultMotions,C=m__namespace.useState(!1),$=G(C,2),x=$[0],w=$[1],O=Q(f?Q({},B9):Q({},j9),g),R=H9[l],A=$w(l,S,E),_=m__namespace.useRef(A);l!=="inline"&&(_.current=A);var I=Q(Q({},_.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=m__namespace.useRef();return m__namespace.useEffect(function(){return P.current=gt(function(){w(n);}),function(){gt.cancel(P.current);}},[n]),m__namespace.createElement(Lc,{prefixCls:t,popupClassName:F("".concat(t,"-popup"),Z({},"".concat(t,"-rtl"),f),i,y),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:O,popupPlacement:R,popupVisible:x,popup:o,popupAlign:a&&{offset:a},action:s?[]:[p],mouseEnterDelay:h,mouseLeaveDelay:v,onPopupVisibleChange:c,forceRender:b,popupMotion:I},r)}function W9(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=m__namespace.useContext(dr),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,f=m__namespace.useRef(!1);f.current=d===i;var h=m__namespace.useState(!f.current),v=G(h,2),g=v[0],p=v[1],b=f.current?n:!1;m__namespace.useEffect(function(){f.current&&p(!1);},[d]);var y=Q({},$w(i,c,u));r.length>1&&(y.motionAppear=!1);var S=y.onVisibleChanged;return y.onVisibleChanged=function(E){return !f.current&&!E&&p(!0),S==null?void 0:S(E)},g?null:m__namespace.createElement(qa,{mode:i,locked:!f.current},m__namespace.createElement(ho,Oe({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(E){var C=E.className,$=E.style;return m__namespace.createElement(ov,{id:t,className:C,style:$},o)}))}var V9=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],U9=["active"],K9=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var s=t.disabled,l=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,f=t.popupClassName,h=t.popupOffset,v=t.onClick,g=t.onMouseEnter,p=t.onMouseLeave,b=t.onTitleClick,y=t.onTitleMouseEnter,S=t.onTitleMouseLeave,E=Je(t,V9),C=vw(a),$=m__namespace.useContext(dr),x=$.prefixCls,w=$.mode,O=$.openKeys,R=$.disabled,A=$.overflowDisabled,_=$.activeKey,I=$.selectedKeys,P=$.itemIcon,T=$.expandIcon,N=$.onItemClick,M=$.onOpenChange,L=$.onActive,z=m__namespace.useContext(nv),H=z._internalRenderSubMenuItem,W=m__namespace.useContext(bw),B=W.isSubPathKey,V=na(),j="".concat(x,"-submenu"),K=R||s,ee=m__namespace.useRef(),q=m__namespace.useRef(),U=u||P,X=d||T,ie=O.includes(a),de=!A&&ie,ge=B(I,a),re=Sw(a,K,y,S),se=re.active,ue=Je(re,U9),Y=m__namespace.useState(!1),ne=G(Y,2),J=ne[0],me=ne[1],he=function(Me){K||me(Me);},ye=function(Me){he(!0),g==null||g({key:a,domEvent:Me});},Re=function(Me){he(!1),p==null||p({key:a,domEvent:Me});},Be=m__namespace.useMemo(function(){return se||(w!=="inline"?J||B([_],a):!1)},[w,se,_,J,a,B]),_e=ww(V.length),ae=function(Me){K||(b==null||b({key:a,domEvent:Me}),w==="inline"&&M(a,!ie));},ve=ya(function(xe){v==null||v(Xl(xe)),N(xe);}),be=function(Me){w!=="inline"&&M(a,Me);},Se=function(){L(a);},Ae=C&&"".concat(C,"-popup"),ke=m__namespace.createElement("div",Oe({role:"menuitem",style:_e,className:"".concat(j,"-title"),tabIndex:K?null:-1,ref:ee,title:typeof i=="string"?i:null,"data-menu-id":A&&C?null:C,"aria-expanded":de,"aria-haspopup":!0,"aria-controls":Ae,"aria-disabled":K,onClick:ae,onFocus:Se},ue),i,m__namespace.createElement(xw,{icon:w!=="horizontal"?X:null,props:Q(Q({},t),{},{isOpen:de,isSubMenu:!0})},m__namespace.createElement("i",{className:"".concat(j,"-arrow")}))),we=m__namespace.useRef(w);if(w!=="inline"&&V.length>1?we.current="vertical":we.current=w,!A){var Ie=we.current;ke=m__namespace.createElement(F9,{mode:Ie,prefixCls:j,visible:!l&&de&&w!=="inline",popupClassName:f,popupOffset:h,popup:m__namespace.createElement(qa,{mode:Ie==="horizontal"?"vertical":Ie},m__namespace.createElement(ov,{id:Ae,ref:q},c)),disabled:K,onVisibleChange:be},ke);}var Fe=m__namespace.createElement(wr.Item,Oe({role:"none"},E,{component:"li",style:r,className:F(j,"".concat(j,"-").concat(w),o,(n={},Z(n,"".concat(j,"-open"),de),Z(n,"".concat(j,"-active"),Be),Z(n,"".concat(j,"-selected"),ge),Z(n,"".concat(j,"-disabled"),K),n)),onMouseEnter:ye,onMouseLeave:Re}),ke,!A&&m__namespace.createElement(W9,{id:Ae,open:de,keyPath:V},c));return H&&(Fe=H(Fe,t,{selected:ge,active:Be,open:de,disabled:K})),m__namespace.createElement(qa,{onItemClick:ve,mode:w==="horizontal"?"vertical":w,itemIcon:U,expandIcon:X},Fe)};function mu(e){var t=e.eventKey,n=e.children,r=na(t),o=iv(n,r),i=fu();m__namespace.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r);}},[r]);var a;return i?a=o:a=m__namespace.createElement(K9,e,o),m__namespace.createElement(pw.Provider,{value:r},a)}var G9=["className","title","eventKey","children"],X9=["children"],q9=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=Je(t,G9),a=m__namespace.useContext(dr),s=a.prefixCls,l="".concat(s,"-item-group");return m__namespace.createElement("li",Oe({role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:F(l,n)}),m__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),m__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function hu(e){var t=e.children,n=Je(e,X9),r=na(n.eventKey),o=iv(t,r),i=fu();return i?o:m__namespace.createElement(q9,yn(n,["warnKey"]),o)}function av(e){var t=e.className,n=e.style,r=m__namespace.useContext(dr),o=r.prefixCls,i=fu();return i?null:m__namespace.createElement("li",{className:F("".concat(o,"-item-divider"),t),style:n})}var Y9=["label","children","key","type"];function Vf(e){return (e||[]).map(function(t,n){if(t&&at(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,s=r.type,l=Je(r,Y9),c=a??"tmp-".concat(n);return i||s==="group"?s==="group"?m__namespace.createElement(hu,Oe({key:c},l,{title:o}),Vf(i)):m__namespace.createElement(mu,Oe({key:c},l,{title:o}),Vf(i)):s==="divider"?m__namespace.createElement(av,Oe({key:c},l)):m__namespace.createElement(Es,Oe({key:c},l),o)}return null}).filter(function(t){return t})}function Z9(e,t,n){var r=e;return t&&(r=Vf(t)),iv(r,n)}var Q9=["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"],ui=[],J9=m__namespace.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,d=u===void 0?0:u,f=o.items,h=o.children,v=o.direction,g=o.id,p=o.mode,b=p===void 0?"vertical":p,y=o.inlineCollapsed,S=o.disabled,E=o.disabledOverflow,C=o.subMenuOpenDelay,$=C===void 0?.1:C,x=o.subMenuCloseDelay,w=x===void 0?.1:x,O=o.forceSubMenuRender,R=o.defaultOpenKeys,A=o.openKeys,_=o.activeKey,I=o.defaultActiveFirst,P=o.selectable,T=P===void 0?!0:P,N=o.multiple,M=N===void 0?!1:N,L=o.defaultSelectedKeys,z=o.selectedKeys,H=o.onSelect,W=o.onDeselect,B=o.inlineIndent,V=B===void 0?24:B,j=o.motion,K=o.defaultMotions,ee=o.triggerSubMenuAction,q=ee===void 0?"hover":ee,U=o.builtinPlacements,X=o.itemIcon,ie=o.expandIcon,de=o.overflowedIndicator,ge=de===void 0?"...":de,re=o.overflowedIndicatorPopupClassName,se=o.getPopupContainer,ue=o.onClick,Y=o.onOpenChange,ne=o.onKeyDown;o.openAnimation,o.openTransitionName;var J=o._internalRenderMenuItem,me=o._internalRenderSubMenuItem,he=Je(o,Q9),ye=m__namespace.useMemo(function(){return Z9(h,f,ui)},[h,f]),Re=m__namespace.useState(!1),Be=G(Re,2),_e=Be[0],ae=Be[1],ve=m__namespace.useRef(),be=R9(g),Se=v==="rtl",Ae=Dt(R,{value:A,postState:function(vt){return vt||ui}}),ke=G(Ae,2),we=ke[0],Ie=ke[1],Fe=function(vt){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function je(){Ie(vt),Y==null||Y(vt);}De?s0.flushSync(je):je();},xe=m__namespace.useState(we),Me=G(xe,2),tt=Me[0],ut=Me[1],qe=m__namespace.useRef(!1),ct=m__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),Pe=G(ct,2),te=Pe[0],fe=Pe[1],oe=te==="inline",Ee=m__namespace.useState(te),He=G(Ee,2),Qe=He[0],ze=He[1],pe=m__namespace.useState(fe),$e=G(pe,2),Te=$e[0],Ne=$e[1];m__namespace.useEffect(function(){ze(te),Ne(fe),qe.current&&(oe?Ie(tt):Fe(ui));},[te,fe]);var st=m__namespace.useState(0),et=G(st,2),St=et[0],Bt=et[1],Ht=St>=ye.length-1||Qe!=="horizontal"||E;m__namespace.useEffect(function(){oe&&ut(we);},[we]),m__namespace.useEffect(function(){return qe.current=!0,function(){qe.current=!1;}},[]);var Ge=I9(),Ye=Ge.registerPath,Ue=Ge.unregisterPath,mt=Ge.refreshOverflowKeys,ht=Ge.isSubPathKey,_t=Ge.getKeyPath,Xe=Ge.getKeys,We=Ge.getSubPathKeys,dt=m__namespace.useMemo(function(){return {registerPath:Ye,unregisterPath:Ue}},[Ye,Ue]),Et=m__namespace.useMemo(function(){return {isSubPathKey:ht}},[ht]);m__namespace.useEffect(function(){mt(Ht?ui:ye.slice(St+1).map(function(Ot){return Ot.key}));},[St,Ht]);var en=Dt(_||I&&((n=ye[0])===null||n===void 0?void 0:n.key),{value:_}),Mt=G(en,2),un=Mt[0],hr=Mt[1],nr=ya(function(Ot){hr(Ot);}),Xr=ya(function(){hr(void 0);});m.useImperativeHandle(t,function(){return {list:ve.current,focus:function(vt){var De,je=un??((De=ye.find(function(tn){return !tn.props.disabled}))===null||De===void 0?void 0:De.key);if(je){var pt,Nt,It;(pt=ve.current)===null||pt===void 0||(Nt=pt.querySelector("li[data-menu-id='".concat(tv(be,je),"']")))===null||Nt===void 0||(It=Nt.focus)===null||It===void 0||It.call(Nt,vt);}}}});var vo=Dt(L||[],{value:z,postState:function(vt){return Array.isArray(vt)?vt:vt==null?ui:[vt]}}),wn=G(vo,2),Rn=wn[0],go=wn[1],An=function(vt){if(T){var De=vt.key,je=Rn.includes(De),pt;M?je?pt=Rn.filter(function(It){return It!==De}):pt=[].concat(Ze(Rn),[De]):pt=[De],go(pt);var Nt=Q(Q({},vt),{},{selectedKeys:pt});je?W==null||W(Nt):H==null||H(Nt);}!M&&we.length&&Qe!=="inline"&&Fe(ui);},xn=ya(function(Ot){ue==null||ue(Xl(Ot)),An(Ot);}),_n=ya(function(Ot,vt){var De=we.filter(function(pt){return pt!==Ot});if(vt)De.push(Ot);else if(Qe!=="inline"){var je=We(Ot);De=De.filter(function(pt){return !je.has(pt)});}Mc(we,De,!0)||Fe(De,!0);}),Rr=function(vt,De){var je=De??!we.includes(vt);_n(vt,je);},Vn=$9(Qe,un,Se,be,ve,Xe,_t,hr,Rr,ne);m__namespace.useEffect(function(){ae(!0);},[]);var Un=m__namespace.useMemo(function(){return {_internalRenderMenuItem:J,_internalRenderSubMenuItem:me}},[J,me]),qr=Qe!=="horizontal"||E?ye:ye.map(function(Ot,vt){return m__namespace.createElement(qa,{key:Ot.key,overflowDisabled:vt>St},Ot)}),po=m__namespace.createElement(wr,Oe({id:g,ref:ve,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Es,className:F(a,"".concat(a,"-root"),"".concat(a,"-").concat(Qe),c,(r={},Z(r,"".concat(a,"-inline-collapsed"),Te),Z(r,"".concat(a,"-rtl"),Se),r),s),dir:v,style:l,role:"menu",tabIndex:d,data:qr,renderRawItem:function(vt){return vt},renderRawRest:function(vt){var De=vt.length,je=De?ye.slice(-De):null;return m__namespace.createElement(mu,{eventKey:Wf,title:ge,disabled:Ht,internalPopupClose:De===0,popupClassName:re},je)},maxCount:Qe!=="horizontal"||E?wr.INVALIDATE:wr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(vt){Bt(vt);},onKeyDown:Vn},he));return m__namespace.createElement(nv.Provider,{value:Un},m__namespace.createElement(hw.Provider,{value:be},m__namespace.createElement(qa,{prefixCls:a,rootClassName:s,mode:Qe,openKeys:we,rtl:Se,disabled:S,motion:_e?j:null,defaultMotions:_e?K:null,activeKey:un,onActive:nr,onInactive:Xr,selectedKeys:Rn,inlineIndent:V,subMenuOpenDelay:$,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:U,triggerSubMenuAction:q,getPopupContainer:se,itemIcon:X,expandIcon:ie,onItemClick:xn,onOpenChange:_n},m__namespace.createElement(bw.Provider,{value:Et},po),m__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},m__namespace.createElement(gw.Provider,{value:dt},ye)))))}),ra=J9;ra.Item=Es;ra.SubMenu=mu;ra.ItemGroup=hu;ra.Divider=av;var eF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const tF=eF;var nF=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:tF}))};const ql=m__namespace.forwardRef(nF);const Ew=m__namespace.createContext({});var rF=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 oF=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=rF(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=m__namespace.useContext(nt),a=i("menu",t),s=F({[`${a}-item-divider-dashed`]:!!r},n);return m__namespace.createElement(av,Object.assign({className:s},o))},Ow=oF,iF=m.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Yl=iF,aF=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=m__namespace.useContext(Yl),f=y=>{const S=m__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||Hr(r)&&r.type==="span")&&r&&y&&l&&typeof r=="string"?m__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):S},{siderCollapsed:h}=m__namespace.useContext(Ew);let v=i;typeof i>"u"?v=l?r:"":i===!1&&(v="");const g={title:v};!h&&!d&&(g.title=null,g.open=!1);const p=cr(r).length;let b=m__namespace.createElement(Es,Object.assign({},yn(e,["title","icon","danger"]),{className:F({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(o?p+1:p)===1},n),title:typeof i=="string"?i:void 0}),Hn(o,{className:F(Hr(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),f(d));return u||(b=m__namespace.createElement(ds,Object.assign({},g,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},Iw=aF,sF=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=m__namespace.useContext(Yl),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=na();let d;if(!r)d=l&&!u.length&&o&&typeof o=="string"?m__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):m__namespace.createElement("span",{className:`${s}-title-content`},o);else {const h=Hr(o)&&o.type==="span";d=m__namespace.createElement(m__namespace.Fragment,null,Hn(r,{className:F(Hr(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?o:m__namespace.createElement("span",{className:`${s}-title-content`},o));}const f=m__namespace.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]);return m__namespace.createElement(Yl.Provider,{value:f},m__namespace.createElement(mu,Object.assign({},yn(e,["icon"]),{title:d,popupClassName:F(s,n,`${s}-${i||c}`)})))},Pw=sF;var lF={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 cF=lF;var uF=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:cF}))};const sv=m__namespace.forwardRef(uF);var dF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Zl=m__namespace.createContext(null),fF=m__namespace.forwardRef((e,t)=>{const{children:n}=e,r=dF(e,["children"]),o=m__namespace.useContext(Zl),i=m__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]);return m__namespace.createElement(Zl.Provider,{value:i},m__namespace.createElement(Di,null,m__namespace.cloneElement(n,{ref:t})))});var mF=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 Uf(e){return (e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:s}=r,l=mF(r,["label","children","key","type"]),c=a??`tmp-${n}`;return i||s==="group"?s==="group"?m__namespace.createElement(hu,Object.assign({key:c},l,{title:o}),Uf(i)):m__namespace.createElement(Pw,Object.assign({key:c},l,{title:o}),Uf(i)):s==="divider"?m__namespace.createElement(Ow,Object.assign({key:c},l)):m__namespace.createElement(Iw,Object.assign({key:c},l),o)}return null}).filter(t=>t)}function hF(e){return m__namespace.useMemo(()=>e&&Uf(e),[e])}const vF=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
        > ${t}-item-active,
        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},gF=vF,pF=e=>{let{componentCls:t,menuArrowOffset:n}=e;return {[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
    ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},bF=pF,Rb=e=>Object.assign({},Do(e)),yF=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:h,motionEaseOut:v,itemPaddingInline:g,motionDurationMid:p,itemHoverColor:b,lineType:y,colorSplit:S,itemDisabledColor:E,dangerItemColor:C,dangerItemHoverColor:$,dangerItemSelectedColor:x,dangerItemActiveBg:w,dangerItemSelectedBg:O,itemHoverBg:R,itemActiveBg:A,menuSubMenuBg:_,horizontalItemSelectedColor:I,horizontalItemSelectedBg:P,horizontalItemBorderRadius:T,horizontalItemHoverBg:N,popupBg:M}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Rb(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${E} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:A}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:w}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:x},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:O}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Rb(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:T,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:c,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:c,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${v}`,`opacity ${p} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:x}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(",")}}}}}},_b=yF,Tb=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s}=e,l=o+i+a;return {[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${r*2}px)`},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:l}}},CF=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:h,boxShadowSecondary:v,collapsedWidth:g,collapsedIconSize:p}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Tb(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Tb(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${a*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${s} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
          > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}px)`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Lo),{paddingInline:h})}}]},SF=CF,Mb=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Uo()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Nb=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:i*.6,height:i*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},wF=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:h,menuArrowSize:v,menuArrowOffset:g,lineType:p,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:S}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},sf()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),sf()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${s}px ${l}px`,fontSize:S,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:p,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Mb(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n          &-placement-leftTop,\n          &-placement-bottomRight,\n          ":{transformOrigin:"100% 0"},"\n          &-placement-leftBottom,\n          &-placement-topRight,\n          ":{transformOrigin:"100% 100%"},"\n          &-placement-rightBottom,\n          &-placement-topLeft,\n          ":{transformOrigin:"0 100%"},"\n          &-placement-bottomLeft,\n          &-placement-rightTop,\n          ":{transformOrigin:"0 0"},"\n          &-placement-leftTop,\n          &-placement-leftBottom\n          ":{paddingInlineEnd:e.paddingXS},"\n          &-placement-rightTop,\n          &-placement-rightBottom\n          ":{paddingInlineStart:e.paddingXS},"\n          &-placement-topRight,\n          &-placement-topLeft\n          ":{paddingBottom:e.paddingXS},"\n          &-placement-bottomRight,\n          &-placement-bottomLeft\n          ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},Mb(e)),Nb(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),Nb(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${v*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},xF=(e,t)=>Vt("Menu",r=>{if(t===!1)return [];const{colorBgElevated:o,colorPrimary:i,colorTextLightSolid:a,controlHeightLG:s,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:h,darkItemSelectedBg:v,darkDangerItemSelectedBg:g,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:S,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:$}=r,x=l/7*5,w=ft(r,{menuArrowSize:x,menuHorizontalHeight:s*1.15,menuArrowOffset:`${x*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),O=ft(w,{itemColor:c,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:h,itemBg:d,popupBg:d,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:S,dangerItemColor:u,dangerItemHoverColor:E,dangerItemSelectedColor:C,dangerItemActiveBg:$,dangerItemSelectedBg:g,menuSubMenuBg:f,horizontalItemSelectedColor:a,horizontalItemSelectedBg:i});return [wF(w),gF(w),SF(w),_b(w,"light"),_b(O,"dark"),bF(w),V1(w),uo(w,"slide-up"),uo(w,"slide-down"),zc(w,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:h,lineWidthBold:v,controlItemBgActive:g,colorBgTextHover:p,controlHeightLG:b,lineHeight:y,colorBgElevated:S,marginXXS:E,padding:C,fontSize:$,controlHeightSM:x,fontSizeLG:w,colorTextLightSolid:O,colorErrorHover:R}=r,A=new Wt(O).setAlpha(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:h,activeBarBorderWidth:h,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:S,itemMarginBlock:E,itemPaddingInline:C,horizontalLineHeight:`${b*1.15}px`,iconSize:$,iconMarginInlineEnd:x-$,collapsedIconSize:w,groupTitleFontSize:$,darkItemDisabledColor:new Wt(O).setAlpha(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:i,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:O,darkDangerItemHoverColor:R,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:i}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e);var $F=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 EF=m.forwardRef((e,t)=>{var n,r;const o=m__namespace.useContext(Zl),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=m__namespace.useContext(nt),u=a(),{prefixCls:d,className:f,style:h,theme:v="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:y,items:S,children:E,rootClassName:C,mode:$,selectable:x,onClick:w,overflowedIndicatorPopupClassName:O}=e,R=$F(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),A=yn(R,["collapsedWidth"]),_=hF(S)||E;(n=i.validator)===null||n===void 0||n.call(i,{mode:$});const I=Tn(function(){var j;w==null||w.apply(void 0,arguments),(j=i.onClick)===null||j===void 0||j.call(i);}),P=i.mode||$,T=x??i.selectable,N=m__namespace.useMemo(()=>y!==void 0?y:b,[b,y]),M={horizontal:{motionName:`${u}-slide-up`},inline:R1(u),other:{motionName:`${u}-zoom-big`}},L=a("menu",d||i.prefixCls),[z,H]=xF(L,!o),W=F(`${L}-${v}`,c==null?void 0:c.className,f);let B;if(typeof g=="function")B=g;else {const j=g||i.expandIcon;B=Hn(j,{className:F(`${L}-submenu-expand-icon`,Hr(j)?(r=j.props)===null||r===void 0?void 0:r.className:"")});}const V=m__namespace.useMemo(()=>({prefixCls:L,inlineCollapsed:N||!1,direction:l,firstLevel:!0,theme:v,mode:P,disableMenuItemTitleTooltip:p}),[L,N,l,p,v]);return z(m__namespace.createElement(Zl.Provider,{value:null},m__namespace.createElement(Yl.Provider,{value:V},m__namespace.createElement(ra,Object.assign({getPopupContainer:s,overflowedIndicator:m__namespace.createElement(sv,null),overflowedIndicatorPopupClassName:F(L,`${L}-${v}`,O),mode:P,selectable:T,onClick:I},A,{inlineCollapsed:N,style:Object.assign(Object.assign({},c==null?void 0:c.style),h),className:W,prefixCls:L,direction:l,defaultMotions:M,expandIcon:B,ref:t,rootClassName:F(C,H)}),_))))}),OF=EF,Os=m.forwardRef((e,t)=>{const n=m.useRef(null),r=m__namespace.useContext(Ew);return m.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o);}})),m__namespace.createElement(OF,Object.assign({ref:n},e,r))});Os.Item=Iw;Os.SubMenu=Pw;Os.Divider=Ow;Os.ItemGroup=hu;const IF=Os,PF=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},RF=PF,_F=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,dropdownPaddingVertical:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:h,controlPaddingHorizontal:v,colorBgElevated:g}=e;return [{[t]:Object.assign(Object.assign({},Tt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
          &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
          &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:lh},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
          &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
          &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:uh},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
          &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
          &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:ch},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
          &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
          &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:dh}})},ah(e,{colorBg:g,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},zo(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${v}px`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${c}px ${v}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},zo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:v+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[uo(e,"slide-up"),uo(e,"slide-down"),Ml(e,"move-up"),Ml(e,"move-down"),zc(e,"zoom-big")]]},Rw=Vt("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:s,paddingXXS:l,componentCls:c,borderRadiusLG:u}=e,d=(i-a*s)/2,{dropdownArrowOffset:f}=ih({contentRadius:u}),h=ft(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:f,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return [_F(h),RF(h)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),lv=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:s,getPopupContainer:l,overlayClassName:c,rootClassName:u,open:d,onOpenChange:f,visible:h,onVisibleChange:v,mouseEnterDelay:g=.15,mouseLeaveDelay:p=.1,autoAdjustOverflow:b=!0,placement:y="",overlay:S,transitionName:E}=e,{getPopupContainer:C,getPrefixCls:$,direction:x}=m__namespace.useContext(nt),w=m__namespace.useMemo(()=>{const K=$();return E!==void 0?E:y.includes("top")?`${K}-slide-down`:`${K}-slide-up`},[$,y,E]),O=m__namespace.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:x==="rtl"?"bottomRight":"bottomLeft",[y,x]),R=$("dropdown",r),[A,_]=Rw(R),{token:I}=zi.useToken(),P=m__namespace.Children.only(o),T=Hn(P,{className:F(`${R}-trigger`,{[`${R}-rtl`]:x==="rtl"},P.props.className),disabled:a}),N=a?[]:i;let M;N&&N.includes("contextMenu")&&(M=!0);const[L,z]=Dt(!1,{value:d??h}),H=Tn(K=>{f==null||f(K),v==null||v(K),z(K);}),W=F(c,u,_,{[`${R}-rtl`]:x==="rtl"}),B=B1({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:b,offset:I.marginXXS,arrowWidth:n?I.sizePopupArrow:0,borderRadius:I.borderRadius}),V=m__namespace.useCallback(()=>{z(!1);},[]),j=()=>{let K;return t!=null&&t.items?K=m__namespace.createElement(IF,Object.assign({},t)):typeof S=="function"?K=S():K=S,s&&(K=s(K)),K=m__namespace.Children.only(typeof K=="string"?m__namespace.createElement("span",null,K):K),m__namespace.createElement(fF,{prefixCls:`${R}-menu`,expandIcon:m__namespace.createElement("span",{className:`${R}-menu-submenu-arrow`},m__namespace.createElement(Bi,{className:`${R}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:V,validator:ee=>{}},K)};return A(m__namespace.createElement(mw,Object.assign({alignPoint:M},yn(e,["rootClassName"]),{mouseEnterDelay:g,mouseLeaveDelay:p,visible:L,builtinPlacements:B,arrow:!!n,overlayClassName:W,prefixCls:R,getPopupContainer:l||C,transitionName:w,trigger:N,overlay:j,placement:O,onVisibleChange:H}),T))};function TF(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const MF=nh(lv,"dropdown",e=>e,TF),NF=e=>m__namespace.createElement(MF,Object.assign({},e),m__namespace.createElement("span",null));lv._InternalPanelDoNotUseOrYouWillBeFired=NF;const _w=lv,kF=()=>er()&&window.document.documentElement;let Gs;const AF=()=>{if(!kF())return !1;if(Gs!==void 0)return Gs;const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div"));const t=document.createElement("div");return t.style.position="absolute",t.style.zIndex="-9999",t.appendChild(e),document.body.appendChild(t),Gs=e.scrollHeight===1,document.body.removeChild(t),Gs},LF=()=>{const[e,t]=m__namespace.useState(!1);return m__namespace.useEffect(()=>{t(AF());},[]),e},Tw=m.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),DF=Tw.Provider,zF=e=>{let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:s,style:l}=e;const{horizontalSize:c,verticalSize:u,latestIndex:d,supportFlexGap:f}=m__namespace.useContext(Tw);let h={};return f||(n==="vertical"?r<d&&(h={marginBottom:c/(a?2:1)}):h=Object.assign(Object.assign({},r<d&&{[o]:c/(a?2:1)}),s&&{paddingBottom:u})),i==null?null:m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("div",{className:t,style:Object.assign(Object.assign({},h),l)},i),r<d&&a&&m__namespace.createElement("span",{className:`${t}-split`,style:h},a))},jF=zF;var BF=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 HF={small:8,middle:16,large:24};function FF(e){return typeof e=="string"?HF[e]:e||0}const WF=m__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=m__namespace.useContext(nt),{size:s=(i==null?void 0:i.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:f="horizontal",prefixCls:h,split:v,style:g,wrap:p=!1,classNames:b,styles:y}=e,S=BF(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),E=LF(),[C,$]=m__namespace.useMemo(()=>(Array.isArray(s)?s:[s,s]).map(z=>FF(z)),[s]),x=cr(d,{keepEmpty:!0}),w=l===void 0&&f==="horizontal"?"center":l,O=o("space",h),[R,A]=F1(O),_=F(O,i==null?void 0:i.className,A,`${O}-${f}`,{[`${O}-rtl`]:a==="rtl",[`${O}-align-${w}`]:w},c,u),I=F(`${O}-item`,(n=b==null?void 0:b.item)!==null&&n!==void 0?n:(r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r.item),P=a==="rtl"?"marginLeft":"marginRight";let T=0;const N=x.map((z,H)=>{var W,B;z!=null&&(T=H);const V=z&&z.key||`${I}-${H}`;return m__namespace.createElement(jF,{className:I,key:V,direction:f,index:H,marginDirection:P,split:v,wrap:p,style:(W=y==null?void 0:y.item)!==null&&W!==void 0?W:(B=i==null?void 0:i.styles)===null||B===void 0?void 0:B.item},z)}),M=m__namespace.useMemo(()=>({horizontalSize:C,verticalSize:$,latestIndex:T,supportFlexGap:E}),[C,$,T,E]);if(x.length===0)return null;const L={};return p&&(L.flexWrap="wrap",E||(L.marginBottom=-$)),E&&(L.columnGap=C,L.rowGap=$),R(m__namespace.createElement("div",Object.assign({ref:t,className:_,style:Object.assign(Object.assign(Object.assign({},L),i==null?void 0:i.style),g)},S),m__namespace.createElement(DF,{value:M},N)))}),Mw=WF;Mw.Compact=C3;const vu=Mw;var VF=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 Nw=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=m__namespace.useContext(nt),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:h,arrow:v,autoFocus:g,overlay:p,trigger:b,align:y,open:S,onOpenChange:E,placement:C,getPopupContainer:$,href:x,icon:w=m__namespace.createElement(sv,null),title:O,buttonsRender:R=ie=>ie,mouseEnterDelay:A,mouseLeaveDelay:_,overlayClassName:I,overlayStyle:P,destroyPopupOnHide:T,dropdownRender:N}=e,M=VF(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),L=n("dropdown",o),z=`${L}-button`,[H,W]=Rw(L),B={menu:h,arrow:v,autoFocus:g,align:y,disabled:s,trigger:s?[]:b,onOpenChange:E,getPopupContainer:$||t,mouseEnterDelay:A,mouseLeaveDelay:_,overlayClassName:I,overlayStyle:P,destroyPopupOnHide:T,dropdownRender:N},{compactSize:V,compactItemClassnames:j}=Ji(L,r),K=F(z,j,f,W);"overlay"in e&&(B.overlay=p),"open"in e&&(B.open=S),"placement"in e?B.placement=C:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const ee=m__namespace.createElement(Qt,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:x,title:O},d),q=m__namespace.createElement(Qt,{type:i,danger:a,icon:w}),[U,X]=R([ee,q]);return H(m__namespace.createElement(vu.Compact,Object.assign({className:K,size:V,block:!0},M),U,m__namespace.createElement(_w,Object.assign({},B),X)))};Nw.__ANT_BUTTON=!0;const UF=Nw,kw=_w;kw.Button=UF;const Aw=kw;function gi(e,t,n){const r=it(n);m.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}var KF=Math.floor,GF=Math.random;function XF(e,t){return e+KF(GF()*(t-e+1))}function Lw(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var i=XF(n,o),a=e[i];e[i]=e[n],e[n]=a;}return e.length=t,e}function qF(e){return Lw(K0(e))}function YF(e,t){return gm(t,function(n){return e[n]})}function ZF(e){return e==null?[]:YF(e,os(e))}function QF(e){return Lw(ZF(e))}function Kf(e){var t=Jn(e)?qF:QF;return t(e)}var JF=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Dw=m__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,h=e.onChange,v=e.onKeyDown,g=Je(e,JF),p=Dt(!1,{value:a,defaultValue:s}),b=G(p,2),y=b[0],S=b[1];function E(w,O){var R=y;return l||(R=w,S(R),h==null||h(R,O)),R}function C(w){w.which===ce.LEFT?E(!1,w):w.which===ce.RIGHT&&E(!0,w),v==null||v(w);}function $(w){var O=E(!y,w);f==null||f(O,w);}var x=F(o,i,(n={},Z(n,"".concat(o,"-checked"),y),Z(n,"".concat(o,"-disabled"),l),n));return m__namespace.createElement("button",Oe({},g,{type:"button",role:"switch","aria-checked":y,disabled:l,className:x,ref:t,onKeyDown:C,onClick:$}),c,m__namespace.createElement("span",{className:"".concat(o,"-inner")},m__namespace.createElement("span",{className:"".concat(o,"-inner-checked")},u),m__namespace.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))});Dw.displayName="Switch";const e7=e=>{const{componentCls:t}=e,n=`${t}-inner`;return {[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},t7=e=>{const{componentCls:t}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},n7=e=>{const{componentCls:t,motion:n}=e,r=`${t}-handle`;return {[t]:{[r]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${r}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:n?{[`${r}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${r}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},r7=e=>{const{componentCls:t}=e,n=`${t}-inner`;return {[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},o7=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),zo(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},i7=Vt("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=2,o=t-r*2,i=n-r*2,a=ft(e,{switchMinWidth:o*2+r*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:o/2,switchInnerMarginMax:o+r+r*2,switchPadding:r,switchPinSize:o,switchBg:e.colorBgContainer,switchMinWidthSM:i*2+r*2,switchHeightSM:n,switchInnerMarginMinSM:i/2,switchInnerMarginMaxSM:i+r+r*2,switchPinSizeSM:i,switchHandleShadow:`0 2px 4px 0 ${new Wt("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [o7(a),r7(a),n7(a),t7(a),e7(a)]});var a7=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 zw=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l}=e,c=a7(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:f}=m__namespace.useContext(nt),h=m__namespace.useContext(Pr),v=(o??h)||i,g=u("switch",n),p=m__namespace.createElement("div",{className:`${g}-handle`},i&&m__namespace.createElement(Eh,{className:`${g}-loading-icon`})),[b,y]=i7(g),S=Wn(r),E=F(f==null?void 0:f.className,{[`${g}-small`]:S==="small",[`${g}-loading`]:i,[`${g}-rtl`]:d==="rtl"},a,s,y),C=Object.assign(Object.assign({},f==null?void 0:f.style),l);return b(m__namespace.createElement(gs,{component:"Switch"},m__namespace.createElement(Dw,Object.assign({},c,{prefixCls:g,className:E,style:C,disabled:v,ref:t,loadingIcon:p}))))});zw.__ANT_SWITCH=!0;const jw=zw;function s7(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function l7(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:m.createElement(Uc,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!s7(e,t,o))return [!1,null];const a=typeof t=="boolean"||t===void 0||t===null?r:t;return [!0,n?n(a):a]}function c7(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Xs=(e,t,n)=>{const r=c7(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},u7=e=>c1(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"}}}}),d7=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return {[o]:Object.assign(Object.assign({},Tt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Bw=Vt("Tag",e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`,i=ft(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [d7(i),u7(i),Xs(i,"success","Success"),Xs(i,"processing","Info"),Xs(i,"error","Error"),Xs(i,"warning","Warning")]},e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}));var f7=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 m7=e=>{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=f7(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=m__namespace.useContext(nt),l=h=>{o==null||o(!r),i==null||i(h);},c=s("tag",t),[u,d]=Bw(c),f=F(c,`${c}-checkable`,{[`${c}-checkable-checked`]:r},n,d);return u(m__namespace.createElement("span",Object.assign({},a,{className:f,onClick:l})))},h7=m7;var v7=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 g7=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:f=!0}=e,h=v7(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:v,direction:g,tag:p}=m__namespace.useContext(nt),[b,y]=m__namespace.useState(!0);m__namespace.useEffect(()=>{"visible"in h&&y(h.visible);},[h.visible]);const S=K1(l)||lk(l),E=Object.assign(Object.assign({backgroundColor:l&&!S?l:void 0},p==null?void 0:p.style),i),C=v("tag",n),[$,x]=Bw(C),w=F(C,p==null?void 0:p.className,{[`${C}-${l}`]:S,[`${C}-has-color`]:l&&!S,[`${C}-hidden`]:!b,[`${C}-rtl`]:g==="rtl",[`${C}-borderless`]:!f},r,o,x),O=T=>{T.stopPropagation(),c==null||c(T),!T.defaultPrevented&&y(!1);},[,R]=l7(d,u,T=>T===null?m__namespace.createElement(Uc,{className:`${C}-close-icon`,onClick:O}):m__namespace.createElement("span",{className:`${C}-close-icon`,onClick:O},T),null,!1),A=typeof h.onClick=="function"||a&&a.type==="a",_=s||null,I=_?m__namespace.createElement(m__namespace.Fragment,null,_,a&&m__namespace.createElement("span",null,a)):a,P=m__namespace.createElement("span",Object.assign({},h,{ref:t,className:w,style:E}),I,R);return $(A?m__namespace.createElement(gs,{component:"Tag"},P):P)},Hw=m__namespace.forwardRef(g7);Hw.CheckableTag=h7;const ro=Hw,Ql=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},p7=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:i}=n;o&&t.set(i,r);}),t};function b7(e,t,n){const r=m__namespace.useMemo(()=>(e||[]).map(a=>(t&&(a=Object.assign(Object.assign({},a),{key:t(a)})),a)),[e,t]),[o,i]=m__namespace.useMemo(()=>{const a=[],s=new Array((n||[]).length),l=Ql(n||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:a.push(c);}),[a,s]},[r,n,t]);return [r,o,i]}const y7=[];function di(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function kb(e){return Array.from(e).join(";")}function C7(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y7;const[r,o]=m__namespace.useMemo(()=>[new Set(e.map(c=>c.key)),new Set(t.map(c=>c.key))],[e,t]),[i,a]=m__namespace.useState(()=>di(n,r)),[s,l]=m__namespace.useState(()=>di(n,o));return m__namespace.useEffect(()=>{a(di(n,r)),l(di(n,o));},[n]),m__namespace.useEffect(()=>{a(di(i,r)),l(di(s,o));},[kb(r),kb(o)]),[i,s,a,l]}var S7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const w7=S7;var x7=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:w7}))};const Ab=m__namespace.forwardRef(x7);var $7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const E7=$7;var O7=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:E7}))};const Lb=m__namespace.forwardRef(O7);var So={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const I7={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var Fw=function(e){fo(n,e);var t=mo(n);function n(){var r;Cn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.state={goInputText:""},r.getValidValue=function(){var s=r.state.goInputText;return !s||Number.isNaN(s)?void 0:Number(s)},r.buildOptionText=function(s){return "".concat(s," ").concat(r.props.locale.items_per_page)},r.changeSize=function(s){r.props.changeSize(Number(s));},r.handleChange=function(s){r.setState({goInputText:s.target.value});},r.handleBlur=function(s){var l=r.props,c=l.goButton,u=l.quickGo,d=l.rootPrefixCls,f=r.state.goInputText;c||f===""||(r.setState({goInputText:""}),!(s.relatedTarget&&(s.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||s.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&u(r.getValidValue()));},r.go=function(s){var l=r.state.goInputText;l!==""&&(s.keyCode===So.ENTER||s.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()));},r}return Sn(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,i=o.pageSize,a=o.pageSizeOptions;return a.some(function(s){return s.toString()===i.toString()})?a:a.concat([i.toString()]).sort(function(s,l){var c=Number.isNaN(Number(s))?0:Number(s),u=Number.isNaN(Number(l))?0:Number(l);return c-u})}},{key:"render",value:function(){var o=this,i=this.props,a=i.pageSize,s=i.locale,l=i.rootPrefixCls,c=i.changeSize,u=i.quickGo,d=i.goButton,f=i.selectComponentClass,h=i.buildOptionText,v=i.selectPrefixCls,g=i.disabled,p=this.state.goInputText,b="".concat(l,"-options"),y=f,S=null,E=null,C=null;if(!c&&!u)return null;var $=this.getPageSizeOptions();if(c&&y){var x=$.map(function(w,O){return m.createElement(y.Option,{key:O,value:w.toString()},(h||o.buildOptionText)(w))});S=m.createElement(y,{disabled:g,prefixCls:v,showSearch:!1,className:"".concat(b,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||$[0]).toString(),onChange:this.changeSize,getPopupContainer:function(O){return O.parentNode},"aria-label":s.page_size,defaultOpen:!1},x);}return u&&(d&&(C=typeof d=="boolean"?m.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:g,className:"".concat(b,"-quick-jumper-button")},s.jump_to_confirm):m.createElement("span",{onClick:this.go,onKeyUp:this.go},d)),E=m.createElement("div",{className:"".concat(b,"-quick-jumper")},s.jump_to,m.createElement("input",{disabled:g,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,C)),m.createElement("li",{className:"".concat(b)},S,E)}}]),n}(m.Component);Fw.defaultProps={pageSizeOptions:["10","20","50","100"]};var ha=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(r,"-item"),f=F(d,"".concat(d,"-").concat(o),(n={},Z(n,"".concat(d,"-active"),i),Z(n,"".concat(d,"-disabled"),!o),Z(n,t.className,a),n)),h=function(){l(o);},v=function(b){c(b,l,o);},g=u(o,"page",m.createElement("a",{rel:"nofollow"},o));return g?m.createElement("li",{title:s?o.toString():null,className:f,onClick:h,onKeyPress:v,tabIndex:0},g):null};function Gf(){}function Db(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var P7=function(t,n,r){return r};function eo(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var Ww=function(e){fo(n,e);var t=mo(n);function n(r){var o;Cn(this,n),o=t.call(this,r),o.paginationNode=m.createRef(),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(eo(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(c,u){var d=o.props.prefixCls,f=c||m.createElement("button",{type:"button","aria-label":u,className:"".concat(d,"-item-link")});return typeof c=="function"&&(f=m.createElement(c,Q({},o.props))),f},o.isValid=function(c){var u=o.props.total;return Db(c)&&c!==o.state.current&&Db(u)&&u>0},o.shouldDisplayQuickJumper=function(){var c=o.props,u=c.showQuickJumper,d=c.total,f=o.state.pageSize;return d<=f?!1:u},o.handleKeyDown=function(c){(c.keyCode===So.ARROW_UP||c.keyCode===So.ARROW_DOWN)&&c.preventDefault();},o.handleKeyUp=function(c){var u=o.getValidValue(c),d=o.state.currentInputValue;u!==d&&o.setState({currentInputValue:u}),c.keyCode===So.ENTER?o.handleChange(u):c.keyCode===So.ARROW_UP?o.handleChange(u-1):c.keyCode===So.ARROW_DOWN&&o.handleChange(u+1);},o.handleBlur=function(c){var u=o.getValidValue(c);o.handleChange(u);},o.changePageSize=function(c){var u=o.state.current,d=eo(c,o.state,o.props);u=u>d?d:u,d===0&&(u=o.state.current),typeof c=="number"&&("pageSize"in o.props||o.setState({pageSize:c}),"current"in o.props||o.setState({current:u,currentInputValue:u})),o.props.onShowSizeChange(u,c),"onChange"in o.props&&o.props.onChange&&o.props.onChange(u,c);},o.handleChange=function(c){var u=o.props,d=u.disabled,f=u.onChange,h=o.state,v=h.pageSize,g=h.current,p=h.currentInputValue;if(o.isValid(c)&&!d){var b=eo(void 0,o.state,o.props),y=c;return c>b?y=b:c<1&&(y=1),"current"in o.props||o.setState({current:y}),y!==p&&o.setState({currentInputValue:y}),f(y,v),y}return g},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1);},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1);},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage());},o.jumpNext=function(){o.handleChange(o.getJumpNextPage());},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current<eo(void 0,o.state,o.props)},o.runIfEnter=function(c,u){if(c.key==="Enter"||c.charCode===13){for(var d=arguments.length,f=new Array(d>2?d-2:0),h=2;h<d;h++)f[h-2]=arguments[h];u.apply(void 0,f);}},o.runIfEnterPrev=function(c){o.runIfEnter(c,o.prev);},o.runIfEnterNext=function(c){o.runIfEnter(c,o.next);},o.runIfEnterJumpPrev=function(c){o.runIfEnter(c,o.jumpPrev);},o.runIfEnterJumpNext=function(c){o.runIfEnter(c,o.jumpNext);},o.handleGoTO=function(c){(c.keyCode===So.ENTER||c.type==="click")&&o.handleChange(o.state.currentInputValue);},o.renderPrev=function(c){var u=o.props,d=u.prevIcon,f=u.itemRender,h=f(c,"prev",o.getItemIcon(d,"prev page")),v=!o.hasPrev();return m.isValidElement(h)?m.cloneElement(h,{disabled:v}):h},o.renderNext=function(c){var u=o.props,d=u.nextIcon,f=u.itemRender,h=f(c,"next",o.getItemIcon(d,"next page")),v=!o.hasNext();return m.isValidElement(h)?m.cloneElement(h,{disabled:v}):h};var i=r.onChange!==Gf,a="current"in r;a&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var s=r.defaultCurrent;"current"in r&&(s=r.current);var l=r.defaultPageSize;return "pageSize"in r&&(l=r.pageSize),s=Math.min(s,eo(l,void 0,r)),o.state={current:s,currentInputValue:s,pageSize:l},o}return Sn(n,[{key:"componentDidUpdate",value:function(o,i){var a=this.props.prefixCls;if(i.current!==this.state.current&&this.paginationNode.current){var s=this.paginationNode.current.querySelector(".".concat(a,"-item-").concat(i.current));if(s&&document.activeElement===s){var l;s==null||(l=s.blur)===null||l===void 0||l.call(s);}}}},{key:"getValidValue",value:function(o){var i=o.target.value,a=eo(void 0,this.state,this.props),s=this.state.currentInputValue,l;return i===""?l=i:Number.isNaN(Number(i))?l=s:i>=a?l=a:l=Number(i),l}},{key:"getShowSizeChanger",value:function(){var o=this.props,i=o.showSizeChanger,a=o.total,s=o.totalBoundaryShowSizeChanger;return typeof i<"u"?i:a>s}},{key:"render",value:function(){var o=this.props,i=o.prefixCls,a=o.className,s=o.style,l=o.disabled,c=o.hideOnSinglePage,u=o.total,d=o.locale,f=o.showQuickJumper,h=o.showLessItems,v=o.showTitle,g=o.showTotal,p=o.simple,b=o.itemRender,y=o.showPrevNextJumpers,S=o.jumpPrevIcon,E=o.jumpNextIcon,C=o.selectComponentClass,$=o.selectPrefixCls,x=o.pageSizeOptions,w=this.state,O=w.current,R=w.pageSize,A=w.currentInputValue;if(c===!0&&u<=R)return null;var _=eo(void 0,this.state,this.props),I=[],P=null,T=null,N=null,M=null,L=null,z=f&&f.goButton,H=h?1:2,W=O-1>0?O-1:0,B=O+1<_?O+1:_,V=ji(this.props,{aria:!0,data:!0}),j=g&&m.createElement("li",{className:"".concat(i,"-total-text")},g(u,[u===0?0:(O-1)*R+1,O*R>u?u:O*R]));if(p){z&&(typeof z=="boolean"?L=m.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):L=m.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z),L=m.createElement("li",{title:v?"".concat(d.jump_to).concat(O,"/").concat(_):null,className:"".concat(i,"-simple-pager")},L));var K=this.renderPrev(W);return m.createElement("ul",Oe({className:F(i,"".concat(i,"-simple"),Z({},"".concat(i,"-disabled"),l),a),style:s,ref:this.paginationNode},V),j,K?m.createElement("li",{title:v?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:F("".concat(i,"-prev"),Z({},"".concat(i,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},K):null,m.createElement("li",{title:v?"".concat(O,"/").concat(_):null,className:"".concat(i,"-simple-pager")},m.createElement("input",{type:"text",value:A,disabled:l,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),m.createElement("span",{className:"".concat(i,"-slash")},"/"),_),m.createElement("li",{title:v?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:F("".concat(i,"-next"),Z({},"".concat(i,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(B)),L)}if(_<=3+H*2){var ee={locale:d,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:v,itemRender:b};_||I.push(m.createElement(ha,Oe({},ee,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var q=1;q<=_;q+=1){var U=O===q;I.push(m.createElement(ha,Oe({},ee,{key:q,page:q,active:U})));}}else {var X=h?d.prev_3:d.prev_5,ie=h?d.next_3:d.next_5,de=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(S,"prev page")),ge=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(E,"next page"));y&&(P=de?m.createElement("li",{title:v?X:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:F("".concat(i,"-jump-prev"),Z({},"".concat(i,"-jump-prev-custom-icon"),!!S))},de):null,T=ge?m.createElement("li",{title:v?ie:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:F("".concat(i,"-jump-next"),Z({},"".concat(i,"-jump-next-custom-icon"),!!E))},ge):null),M=m.createElement(ha,{locale:d,last:!0,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_,page:_,active:!1,showTitle:v,itemRender:b}),N=m.createElement(ha,{locale:d,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:v,itemRender:b});var re=Math.max(1,O-H),se=Math.min(O+H,_);O-1<=H&&(se=1+H*2),_-O<=H&&(re=_-H*2);for(var ue=re;ue<=se;ue+=1){var Y=O===ue;I.push(m.createElement(ha,{locale:d,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ue,page:ue,active:Y,showTitle:v,itemRender:b}));}O-1>=H*2&&O!==1+2&&(I[0]=m.cloneElement(I[0],{className:"".concat(i,"-item-after-jump-prev")}),I.unshift(P)),_-O>=H*2&&O!==_-2&&(I[I.length-1]=m.cloneElement(I[I.length-1],{className:"".concat(i,"-item-before-jump-next")}),I.push(T)),re!==1&&I.unshift(N),se!==_&&I.push(M);}var ne=!this.hasPrev()||!_,J=!this.hasNext()||!_,me=this.renderPrev(W),he=this.renderNext(B);return m.createElement("ul",Oe({className:F(i,a,Z({},"".concat(i,"-disabled"),l)),style:s,ref:this.paginationNode},V),j,me?m.createElement("li",{title:v?d.prev_page:null,onClick:this.prev,tabIndex:ne?null:0,onKeyPress:this.runIfEnterPrev,className:F("".concat(i,"-prev"),Z({},"".concat(i,"-disabled"),ne)),"aria-disabled":ne},me):null,I,he?m.createElement("li",{title:v?d.next_page:null,onClick:this.next,tabIndex:J?null:0,onKeyPress:this.runIfEnterNext,className:F("".concat(i,"-next"),Z({},"".concat(i,"-disabled"),J)),"aria-disabled":J},he):null,m.createElement(Fw,{disabled:l,locale:d,rootPrefixCls:i,selectComponentClass:C,selectPrefixCls:$,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:O,pageSize:R,pageSizeOptions:x,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:z}))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a={};if("current"in o&&(a.current=o.current,o.current!==i.current&&(a.currentInputValue=a.current)),"pageSize"in o&&o.pageSize!==i.pageSize){var s=i.current,l=eo(o.pageSize,i,o);s=s>l?l:s,"current"in o||(a.current=s,a.currentInputValue=s),a.pageSize=o.pageSize;}return a}}]),n}(m.Component);Ww.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Gf,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Gf,locale:I7,style:{},itemRender:P7,totalBoundaryShowSizeChanger:50};function R7(){const[,e]=m__namespace.useReducer(t=>t+1,0);return e}const _7=["xxl","xl","lg","md","sm","xs"],T7=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),M7=e=>{const t=e,n=[].concat(_7).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o<n.length-1){const l=`screen${i}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function N7(){const[,e]=Kr(),t=T7(M7(e));return m.useMemo(()=>{const n=new Map;let r=-1,o={};return {matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister();},unregister(){Object.keys(t).forEach(i=>{const a=t[i],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener);}),n.clear();},register(){Object.keys(t).forEach(i=>{const a=t[i],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}));},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l);});},responsiveMap:t}},[e])}function k7(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=m.useRef({}),n=R7(),r=N7();return Ft(()=>{const o=r.subscribe(i=>{t.current=i,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const Vw=e=>m__namespace.createElement(fs,Object.assign({},e,{showSearch:!0,size:"small"})),Uw=e=>m__namespace.createElement(fs,Object.assign({},e,{showSearch:!0,size:"middle"}));Vw.Option=fs.Option;Uw.Option=fs.Option;const A7=e=>{const{componentCls:t}=e;return {[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},L7=e=>{const{componentCls:t}=e;return {[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
    &${t}-mini ${t}-prev ${t}-item-link,
    &${t}-mini ${t}-next ${t}-item-link
    `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},Th(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},D7=e=>{const{componentCls:t}=e;return {[`
    &${t}-simple ${t}-prev,
    &${t}-simple ${t}-next
    `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},z7=e=>{const{componentCls:t}=e;return {[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
    ${t}-prev,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{marginInlineEnd:e.marginXS},[`
    ${t}-prev,
    ${t}-next,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},hs(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},j7=e=>{const{componentCls:t}=e;return {[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},B7=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.itemSize-2}px`,verticalAlign:"middle"}}),j7(e)),z7(e)),D7(e)),L7(e)),A7(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},H7=e=>{const{componentCls:t}=e;return {[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},F7=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},zo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Do(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Do(e))}}}},W7=Vt("Pagination",e=>{const t=ft(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Mh(e));return [B7(t),F7(t),e.wireframe&&H7(t)]},e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0}));var V7=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 U7=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:i,size:a,locale:s,selectComponentClass:l,responsive:c,showSizeChanger:u}=e,d=V7(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=k7(c),{getPrefixCls:h,direction:v,pagination:g={}}=m__namespace.useContext(nt),p=h("pagination",t),[b,y]=W7(p),S=u??g.showSizeChanger,E=m__namespace.useMemo(()=>{const _=m__namespace.createElement("span",{className:`${p}-item-ellipsis`},"•••"),I=m__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},v==="rtl"?m__namespace.createElement(Bi,null):m__namespace.createElement(ql,null)),P=m__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},v==="rtl"?m__namespace.createElement(ql,null):m__namespace.createElement(Bi,null)),T=m__namespace.createElement("a",{className:`${p}-item-link`},m__namespace.createElement("div",{className:`${p}-item-container`},v==="rtl"?m__namespace.createElement(Lb,{className:`${p}-item-link-icon`}):m__namespace.createElement(Ab,{className:`${p}-item-link-icon`}),_)),N=m__namespace.createElement("a",{className:`${p}-item-link`},m__namespace.createElement("div",{className:`${p}-item-container`},v==="rtl"?m__namespace.createElement(Ab,{className:`${p}-item-link-icon`}):m__namespace.createElement(Lb,{className:`${p}-item-link-icon`}),_));return {prevIcon:I,nextIcon:P,jumpPrevIcon:T,jumpNextIcon:N}},[v,p]),[C]=Zi("Pagination",Yy),$=Object.assign(Object.assign({},C),s),x=Wn(a),w=x==="small"||!!(f&&!x&&c),O=h("select",n),R=F({[`${p}-mini`]:w,[`${p}-rtl`]:v==="rtl"},g==null?void 0:g.className,r,o,y),A=Object.assign(Object.assign({},g==null?void 0:g.style),i);return b(m__namespace.createElement(Ww,Object.assign({},E,d,{style:A,prefixCls:p,selectPrefixCls:O,className:R,selectComponentClass:l||(w?Vw:Uw),locale:$,showSizeChanger:S})))},K7=U7;var G7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const X7=G7;var q7=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:X7}))};const Y7=m__namespace.forwardRef(q7);var Z7=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 Q7={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},J7=m__namespace.forwardRef((e,t)=>{const n=c=>{const{keyCode:u}=c;u===ce.ENTER&&c.preventDefault();},r=c=>{const{keyCode:u}=c,{onClick:d}=e;u===ce.ENTER&&d&&d();},{style:o,noStyle:i,disabled:a}=e,s=Z7(e,["style","noStyle","disabled"]);let l={};return i||(l=Object.assign({},Q7)),a&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),o),m__namespace.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},s,{onKeyDown:n,onKeyUp:r,style:l}))}),eW=J7,tW=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:i,prefixCls:a,onClick:s,onRemove:l,showRemove:c}=e,u=F(`${a}-content-item`,{[`${a}-content-item-disabled`]:i||r.disabled,[`${a}-content-item-checked`]:o});let d;(typeof t=="string"||typeof t=="number")&&(d=String(t));const[f]=Zi("Transfer",zr.Transfer),h={className:u,title:d},v=m__namespace.createElement("span",{className:`${a}-content-item-text`},n);return c?m__namespace.createElement("li",Object.assign({},h),v,m__namespace.createElement(eW,{disabled:i||r.disabled,className:`${a}-content-item-remove`,"aria-label":f==null?void 0:f.remove,onClick:()=>{l==null||l(r);}},m__namespace.createElement(Y7,null))):(h.onClick=i||r.disabled?void 0:()=>s(r),m__namespace.createElement("li",Object.assign({},h),m__namespace.createElement(Hh,{className:`${a}-checkbox`,checked:o,disabled:i||r.disabled}),v))},nW=m__namespace.memo(tW),rW=["handleFilter","handleClear","checkedKeys"],oW=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),iW=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:i,showRemove:a,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[d,f]=m__namespace.useState(1),h=m__namespace.useMemo(()=>s?oW(typeof s=="object"?s:{}):null,[s]),[v,g]=Dt(10,{value:h==null?void 0:h.pageSize});m__namespace.useEffect(()=>{if(h){const x=Math.ceil(r.length/v);f(Math.min(d,x));}},[r,h,v]);const p=x=>{c==null||c(x.key,!o.includes(x.key));},b=x=>{u==null||u([x.key]);},y=x=>{f(x);},S=(x,w)=>{f(x),g(w);},E=m__namespace.useMemo(()=>h?r.slice((d-1)*v,d*v):r,[d,r,h,v]);m__namespace.useImperativeHandle(t,()=>({items:E}));const C=h?m__namespace.createElement(K7,{size:"small",disabled:i,simple:h.simple,pageSize:v,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:d,onChange:y,onShowSizeChange:S}):null,$=F(`${n}-content`,{[`${n}-content-show-remove`]:a});return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("ul",{className:$,onScroll:l},(E||[]).map(x=>{let{renderedEl:w,renderedText:O,item:R}=x;return m__namespace.createElement(nW,{key:R.key,item:R,renderedText:O,renderedEl:w,prefixCls:n,showRemove:a,onClick:p,onRemove:b,checked:o.includes(R.key),disabled:i||R.disabled})})),C)},aW=m__namespace.forwardRef(iW),sW=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:i,handleClear:a}=e,s=m__namespace.useCallback(l=>{i==null||i(l),l.target.value===""&&(a==null||a());},[i]);return m__namespace.createElement(lS,{placeholder:t,className:r,value:n,onChange:s,disabled:o,allowClear:!0,prefix:m__namespace.createElement(Oh,null)})},Kw=sW,lW=()=>null;function cW(e){return !!(e&&!Hr(e)&&Object.prototype.toString.call(e)==="[object Object]")}function va(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const uW=e=>e!==void 0,dW=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:o,disabled:i,showSearch:a=!1,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:u,selectCurrent:d,selectInvert:f,removeAll:h,removeCurrent:v,showSelectAll:g=!0,showRemove:p,pagination:b,direction:y,itemsUnit:S,itemUnit:E,selectAllLabel:C,selectionsIcon:$,footer:x,renderList:w,onItemSelectAll:O,onItemRemove:R,handleFilter:A,handleClear:_,filterOption:I,render:P=lW}=e,[T,N]=m.useState(""),M=m.useRef({}),L=Y=>{N(Y.target.value),A(Y);},z=()=>{N(""),_();},H=(Y,ne)=>I?I(T,ne):Y.includes(T),W=Y=>{let ne=w?w(Y):null;const J=!!ne;return J||(ne=m.createElement(aW,Object.assign({ref:M},Y))),{customize:J,bodyContent:ne}},B=Y=>{const ne=P(Y),J=cW(ne);return {item:Y,renderedEl:J?ne.label:ne,renderedText:J?ne.value:ne}},V=m.useMemo(()=>Array.isArray(c)?c[y==="left"?0:1]:c,[c,y]),[j,K]=m.useMemo(()=>{const Y=[],ne=[];return n.forEach(J=>{const me=B(J);T&&!H(me.renderedText,J)||(Y.push(J),ne.push(me));}),[Y,ne]},[n,T]),ee=m.useMemo(()=>{if(o.length===0)return "none";const Y=Ql(o);return j.every(ne=>Y.has(ne.key)||!!ne.disabled)?"all":"part"},[o,j]),q=m.useMemo(()=>{const Y=a?m.createElement("div",{className:`${t}-body-search-wrapper`},m.createElement(Kw,{prefixCls:`${t}-search`,onChange:L,handleClear:z,placeholder:l,value:T,disabled:i})):null,{customize:ne,bodyContent:J}=W(Object.assign(Object.assign({},yn(e,rW)),{filteredItems:j,filteredRenderItems:K,selectedKeys:o}));let me;return ne?me=m.createElement("div",{className:`${t}-body-customize-wrapper`},J):me=j.length?J:m.createElement("div",{className:`${t}-body-not-found`},V),m.createElement("div",{className:F(a?`${t}-body ${t}-body-with-search`:`${t}-body`)},Y,me)},[a,t,l,T,i,o,j,K,V]),U=m.createElement(Hh,{disabled:n.length===0||i,checked:ee==="all",indeterminate:ee==="part",className:`${t}-checkbox`,onChange:()=>{O==null||O(j.filter(Y=>!Y.disabled).map(Y=>{let{key:ne}=Y;return ne}),ee!=="all");}}),X=(Y,ne)=>{if(C)return typeof C=="function"?C({selectedCount:Y,totalCount:ne}):C;const J=ne>1?S:E;return m.createElement(m.Fragment,null,(Y>0?`${Y}/`:"")+ne," ",J)},ie=x&&(x.length<2?x(e):x(e,{direction:y})),de=F(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!ie}),ge=ie?m.createElement("div",{className:`${t}-footer`},ie):null,re=!p&&!b&&U;let se;p?se=[b?{key:"removeCurrent",label:v,onClick(){var Y;const ne=va((((Y=M.current)===null||Y===void 0?void 0:Y.items)||[]).map(J=>J.item));R==null||R(ne);}}:null,{key:"removeAll",label:h,onClick(){R==null||R(va(j));}}].filter(Boolean):se=[{key:"selectAll",label:u,onClick(){const Y=va(j);O==null||O(Y,Y.length!==o.length);}},b?{key:"selectCurrent",label:d,onClick(){var Y;const ne=((Y=M.current)===null||Y===void 0?void 0:Y.items)||[];O==null||O(va(ne.map(J=>J.item)),!0);}}:null,{key:"selectInvert",label:f,onClick(){var Y;const ne=va(b?(((Y=M.current)===null||Y===void 0?void 0:Y.items)||[]).map(he=>he.item):j),J=new Set(o),me=[];ne.forEach(he=>{J.has(he)||me.push(he);}),O==null||O(me,"replace");}}];const ue=m.createElement(Aw,{className:`${t}-header-dropdown`,menu:{items:se},disabled:i},uW($)?$:m.createElement($h,null));return m.createElement("div",{className:de,style:s},m.createElement("div",{className:`${t}-header`},g?m.createElement(m.Fragment,null,re,ue):null,m.createElement("span",{className:`${t}-header-selected`},X(o.length,j.length)),m.createElement("span",{className:`${t}-header-title`},r)),q,ge)},Xf=dW,fW=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:i="",leftActive:a,rightActive:s,className:l,style:c,direction:u,oneWay:d}=e;return m__namespace.createElement("div",{className:l,style:c},m__namespace.createElement(Qt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?m__namespace.createElement(Bi,null):m__namespace.createElement(ql,null)},i),!d&&m__namespace.createElement(Qt,{type:"primary",size:"small",disabled:t||!a,onClick:n,icon:u!=="rtl"?m__namespace.createElement(ql,null):m__namespace.createElement(Bi,null)},o))},Gw=fW,mW=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:i,margin:a}=e,s=`${t}-table`,l=`${t}-input`;return {[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r},[`${s}-wrapper`]:{[`${s}-small`]:{border:0,borderRadius:0,[`${s}-selection-column`]:{width:o,minWidth:o}},[`${s}-pagination${s}-pagination`]:{margin:`${a}px 0 ${i}px`}},[`${l}[disabled]`]:{backgroundColor:"transparent"}}}},zb=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},hW=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},zb(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},zb(e,e.colorWarning))}},vW=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,listHeight:d,listWidth:f,listWidthLG:h,fontSizeIcon:v,marginXS:g,paddingSM:p,lineType:b,antCls:y,iconCls:S,motionDurationSlow:E,controlItemBgHover:C,borderRadiusLG:$,colorBgContainer:x,colorText:w,controlItemBgActiveHover:O}=e;return {display:"flex",flexDirection:"column",width:f,height:d,border:`${o}px ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:h,height:"auto"},"&-search":{[`${S}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${s-o}px ${p}px ${s}px`,color:w,background:x,borderBottom:`${o}px ${b} ${r}`,borderRadius:`${$}px ${$}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},Lo),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},Uo()),{fontSize:v,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:p}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${l}px ${p}px`,transition:`all ${E}`,"> *:not(:last-child)":{marginInlineEnd:g},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},Lo),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${E}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",inset:`-${l}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:C,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:O}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${o}px ${b} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${o}px ${b} ${r}`}}},gW=e=>{const{antCls:t,iconCls:n,componentCls:r,headerHeight:o,marginXS:i,marginXXS:a,fontSizeIcon:s,fontSize:l,lineHeight:c,colorBgContainerDisabled:u}=e;return {[r]:Object.assign(Object.assign({},Tt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:u}},[`${r}-list`]:vW(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${i}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:a},[n]:{fontSize:s}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(l*c)}})}},pW=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},bW=Vt("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,i=Math.round(t*n),a=ft(e,{transferHeaderVerticalPadding:Math.ceil((o-r-i)/2)});return [gW(a),mW(a),hW(a),pW(a)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o}=e,i=Math.round(t*n);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-i)/2}}),gu=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:o=[],operations:i=[],style:a={},listStyle:s={},locale:l={},titles:c,disabled:u,showSearch:d=!1,operationStyle:f,showSelectAll:h,oneWay:v,pagination:g,status:p,prefixCls:b,className:y,rootClassName:S,selectionsIcon:E,filterOption:C,render:$,footer:x,children:w,rowKey:O,onScroll:R,onChange:A,onSearch:_,onSelectChange:I}=e,{getPrefixCls:P,renderEmpty:T,direction:N,transfer:M}=m.useContext(nt),L=P("transfer",b),[z,H]=bW(L),[W,B,V]=b7(t,O,n),[j,K,ee,q]=C7(B,V,r),U=m.useCallback((te,fe)=>{if(te==="left"){const oe=typeof fe=="function"?fe(j||[]):fe;ee(oe);}else {const oe=typeof fe=="function"?fe(K||[]):fe;q(oe);}},[j,K]),X=m.useCallback((te,fe)=>{te==="left"?I==null||I(fe,K):I==null||I(j,fe);},[j,K]),ie=te=>{var fe;return (fe=c??te.titles)!==null&&fe!==void 0?fe:[]},de=te=>{R==null||R("left",te);},ge=te=>{R==null||R("right",te);},re=te=>{const fe=te==="right"?j:K,oe=p7(W),Ee=fe.filter(pe=>!oe.has(pe)),He=Ql(Ee),Qe=te==="right"?Ee.concat(n):n.filter(pe=>!He.has(pe)),ze=te==="right"?"left":"right";U(ze,[]),X(ze,[]),A==null||A(Qe,te,Ee);},se=()=>{re("left");},ue=()=>{re("right");},Y=(te,fe,oe)=>{U(te,Ee=>{let He=[];if(oe==="replace")He=fe;else if(oe)He=Array.from(new Set([].concat(Ze(Ee),Ze(fe))));else {const Qe=Ql(fe);He=Ee.filter(ze=>!Qe.has(ze));}return X(te,He),He});},ne=(te,fe)=>{Y("left",te,fe);},J=(te,fe)=>{Y("right",te,fe);},me=te=>_==null?void 0:_("left",te.target.value),he=te=>_==null?void 0:_("right",te.target.value),ye=()=>_==null?void 0:_("left",""),Re=()=>_==null?void 0:_("right",""),Be=(te,fe,oe)=>{const Ee=Ze(te==="left"?j:K),He=Ee.indexOf(fe);He>-1&&Ee.splice(He,1),oe&&Ee.push(fe),X(te,Ee),e.selectedKeys||U(te,Ee);},_e=(te,fe)=>{Be("left",te,fe);},ae=(te,fe)=>{Be("right",te,fe);},ve=te=>{U("right",[]),A==null||A(n.filter(fe=>!te.includes(fe)),"left",Ze(te));},be=te=>typeof s=="function"?s({direction:te}):s||{},Se=m.useContext(tr),{hasFeedback:Ae,status:ke}=Se,we=te=>Object.assign(Object.assign(Object.assign({},te),{notFoundContent:(T==null?void 0:T("Transfer"))||m.createElement(EC,{componentName:"Transfer"})}),l),Ie=cs(ke,p),Fe=!w&&g,xe=K.length>0,Me=j.length>0,tt=F(L,{[`${L}-disabled`]:u,[`${L}-customize-list`]:!!w,[`${L}-rtl`]:N==="rtl"},lr(L,Ie,Ae),M==null?void 0:M.className,y,S,H),[ut]=Zi("Transfer",zr.Transfer),qe=we(ut),[ct,Pe]=ie(qe);return z(m.createElement("div",{className:tt,style:Object.assign(Object.assign({},M==null?void 0:M.style),a)},m.createElement(Xf,Object.assign({prefixCls:`${L}-list`,titleText:ct,dataSource:B,filterOption:C,style:be("left"),checkedKeys:j,handleFilter:me,handleClear:ye,onItemSelect:_e,onItemSelectAll:ne,render:$,showSearch:d,renderList:w,footer:x,onScroll:de,disabled:u,direction:N==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:o[0],pagination:Fe,selectionsIcon:E},qe)),m.createElement(Gw,{className:`${L}-operation`,rightActive:Me,rightArrowText:i[0],moveToRight:ue,leftActive:xe,leftArrowText:i[1],moveToLeft:se,style:f,disabled:u,direction:N,oneWay:v}),m.createElement(Xf,Object.assign({prefixCls:`${L}-list`,titleText:Pe,dataSource:V,filterOption:C,style:be("right"),checkedKeys:K,handleFilter:he,handleClear:Re,onItemSelect:ae,onItemSelectAll:J,onItemRemove:ve,render:$,showSearch:d,renderList:w,footer:x,onScroll:ge,disabled:u,direction:N==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:o[1],showRemove:v,pagination:Fe,selectionsIcon:E},qe))))};gu.List=Xf;gu.Search=Kw;gu.Operation=Gw;const yW=gu;function Xw(){}var qo=m__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function qf(e,t,n){return (e-t)/(n-t)}function cv(e,t,n,r){var o=qf(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 Ci(e,t){return Array.isArray(e)?e[t]:e}var CW=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],SW=m__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,f=Je(e,CW),h=m__namespace.useContext(qo),v=h.min,g=h.max,p=h.direction,b=h.disabled,y=h.keyboard,S=h.range,E=h.tabIndex,C=h.ariaLabelForHandle,$=h.ariaLabelledByForHandle,x=h.ariaValueTextFormatterForHandle,w="".concat(o,"-handle"),O=function(P){b||s(P,a);},R=function(P){if(!b&&y){var T=null;switch(P.which||P.keyCode){case ce.LEFT:T=p==="ltr"||p==="btt"?-1:1;break;case ce.RIGHT:T=p==="ltr"||p==="btt"?1:-1;break;case ce.UP:T=p!=="ttb"?1:-1;break;case ce.DOWN:T=p!=="ttb"?-1:1;break;case ce.HOME:T="min";break;case ce.END:T="max";break;case ce.PAGE_UP:T=2;break;case ce.PAGE_DOWN:T=-2;break}T!==null&&(P.preventDefault(),d(T,a));}},A=cv(p,i,v,g),_=m__namespace.createElement("div",Oe({ref:t,className:F(w,(n={},Z(n,"".concat(w,"-").concat(a+1),S),Z(n,"".concat(w,"-dragging"),u),n)),style:Q(Q({},A),l),onMouseDown:O,onTouchStart:O,onKeyDown:R,tabIndex:b?null:Ci(E,a),role:"slider","aria-valuemin":v,"aria-valuemax":g,"aria-valuenow":i,"aria-disabled":b,"aria-label":Ci(C,a),"aria-labelledby":Ci($,a),"aria-valuetext":(r=Ci(x,a))===null||r===void 0?void 0:r(i)},f));return c&&(_=c(_,{index:a,prefixCls:o,value:i,dragging:u})),_}),wW=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],xW=m__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=Je(e,wW),u=m__namespace.useRef({});return m__namespace.useImperativeHandle(t,function(){return {focus:function(f){var h;(h=u.current[f])===null||h===void 0||h.focus();}}}),m__namespace.createElement(m__namespace.Fragment,null,a.map(function(d,f){return m__namespace.createElement(SW,Oe({ref:function(v){v?u.current[f]=v:delete u.current[f];},dragging:l===f,prefixCls:n,style:Ci(r,f),key:f,value:d,valueIndex:f,onStartMove:o,onOffsetChange:i,render:s},c))}))});function jb(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function $W(e,t,n,r,o,i,a,s,l){var c=m__namespace.useState(null),u=G(c,2),d=u[0],f=u[1],h=m__namespace.useState(-1),v=G(h,2),g=v[0],p=v[1],b=m__namespace.useState(n),y=G(b,2),S=y[0],E=y[1],C=m__namespace.useState(n),$=G(C,2),x=$[0],w=$[1],O=m__namespace.useRef(null),R=m__namespace.useRef(null);m__namespace.useEffect(function(){g===-1&&E(n);},[n,g]),m__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",O.current),document.removeEventListener("mouseup",R.current),document.removeEventListener("touchmove",O.current),document.removeEventListener("touchend",R.current);}},[]);var A=function(M,L){S.some(function(z,H){return z!==M[H]})&&(L!==void 0&&f(L),E(M),a(M));},_=function(M,L){if(M===-1){var z=x[0],H=x[x.length-1],W=r-z,B=o-H,V=L*(o-r);V=Math.max(V,W),V=Math.min(V,B);var j=i(z+V);V=j-z;var K=x.map(function(X){return X+V});A(K);}else {var ee=(o-r)*L,q=Ze(S);q[M]=x[M];var U=l(q,ee,M,"dist");A(U.values,U.value);}},I=m__namespace.useRef(_);I.current=_;var P=function(M,L){M.stopPropagation();var z=n[L];p(L),f(z),w(n);var H=jb(M),W=H.pageX,B=H.pageY,V=function(ee){ee.preventDefault();var q=jb(ee),U=q.pageX,X=q.pageY,ie=U-W,de=X-B,ge=e.current.getBoundingClientRect(),re=ge.width,se=ge.height,ue;switch(t){case"btt":ue=-de/se;break;case"ttb":ue=de/se;break;case"rtl":ue=-ie/re;break;default:ue=ie/re;}I.current(L,ue);},j=function K(ee){ee.preventDefault(),document.removeEventListener("mouseup",K),document.removeEventListener("mousemove",V),document.removeEventListener("touchend",K),document.removeEventListener("touchmove",V),O.current=null,R.current=null,p(-1),s();};document.addEventListener("mouseup",j),document.addEventListener("mousemove",V),document.addEventListener("touchend",j),document.addEventListener("touchmove",V),O.current=V,R.current=j;},T=m__namespace.useMemo(function(){var N=Ze(n).sort(function(L,z){return L-z}),M=Ze(S).sort(function(L,z){return L-z});return N.every(function(L,z){return L===M[z]})?S:n},[n,S]);return [g,d,T,P]}function EW(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,s=m__namespace.useContext(qo),l=s.direction,c=s.min,u=s.max,d=s.disabled,f=s.range,h="".concat(t,"-track"),v=qf(r,c,u),g=qf(o,c,u),p=function(S){!d&&a&&a(S,-1);},b={};switch(l){case"rtl":b.right="".concat(v*100,"%"),b.width="".concat(g*100-v*100,"%");break;case"btt":b.bottom="".concat(v*100,"%"),b.height="".concat(g*100-v*100,"%");break;case"ttb":b.top="".concat(v*100,"%"),b.height="".concat(g*100-v*100,"%");break;default:b.left="".concat(v*100,"%"),b.width="".concat(g*100-v*100,"%");}return m__namespace.createElement("div",{className:F(h,f&&"".concat(h,"-").concat(i+1)),style:Q(Q({},b),n),onMouseDown:p,onTouchStart:p})}function OW(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=m__namespace.useContext(qo),s=a.included,l=a.range,c=a.min,u=m__namespace.useMemo(function(){if(!l){if(r.length===0)return [];var d=o??c,f=r[0];return [{start:Math.min(d,f),end:Math.max(d,f)}]}for(var h=[],v=0;v<r.length-1;v+=1)h.push({start:r[v],end:r[v+1]});return h},[r,l,o,c]);return s?u.map(function(d,f){var h=d.start,v=d.end;return m__namespace.createElement(EW,{index:f,prefixCls:t,style:Ci(n,f),start:h,end:v,key:f,onStartMove:i})}):null}function IW(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=m__namespace.useContext(qo),s=a.min,l=a.max,c=a.direction,u=a.includedStart,d=a.includedEnd,f=a.included,h="".concat(t,"-text"),v=cv(c,o,s,l);return m__namespace.createElement("span",{className:F(h,Z({},"".concat(h,"-active"),f&&u<=o&&o<=d)),style:Q(Q({},v),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){i(o);}},r)}function PW(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?m__namespace.createElement("div",{className:o},n.map(function(i){var a=i.value,s=i.style,l=i.label;return m__namespace.createElement(IW,{key:a,prefixCls:o,style:s,value:a,onClick:r},l)})):null}function RW(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=m__namespace.useContext(qo),a=i.min,s=i.max,l=i.direction,c=i.included,u=i.includedStart,d=i.includedEnd,f="".concat(t,"-dot"),h=c&&u<=n&&n<=d,v=Q(Q({},cv(l,n,a,s)),typeof r=="function"?r(n):r);return h&&(v=Q(Q({},v),typeof o=="function"?o(n):o)),m__namespace.createElement("span",{className:F(f,Z({},"".concat(f,"-active"),h)),style:v})}function _W(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=m__namespace.useContext(qo),s=a.min,l=a.max,c=a.step,u=m__namespace.useMemo(function(){var d=new Set;if(n.forEach(function(h){d.add(h.value);}),r&&c!==null)for(var f=s;f<=l;)d.add(f),f+=c;return Array.from(d)},[s,l,c,r,n]);return m__namespace.createElement("div",{className:"".concat(t,"-step")},u.map(function(d){return m__namespace.createElement(RW,{prefixCls:t,key:d,value:d,style:o,activeStyle:i})}))}function TW(e,t,n,r,o,i){var a=m__namespace.useCallback(function(h){var v=isFinite(h)?h:e;return v=Math.min(t,h),v=Math.max(e,v),v},[e,t]),s=m__namespace.useCallback(function(h){if(n!==null){var v=e+Math.round((a(h)-e)/n)*n,g=function(S){return (String(S).split(".")[1]||"").length},p=Math.max(g(n),g(t),g(e)),b=Number(v.toFixed(p));return e<=b&&b<=t?b:null}return null},[n,e,t,a]),l=m__namespace.useCallback(function(h){var v=a(h),g=r.map(function(y){return y.value});n!==null&&g.push(s(h)),g.push(e,t);var p=g[0],b=t-e;return g.forEach(function(y){var S=Math.abs(v-y);S<=b&&(p=y,b=S);}),p},[e,t,r,n,a,s]),c=function h(v,g,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var y,S=v[p],E=S+g,C=[];r.forEach(function(R){C.push(R.value);}),C.push(e,t),C.push(s(S));var $=g>0?1:-1;b==="unit"?C.push(s(S+$*n)):C.push(s(E)),C=C.filter(function(R){return R!==null}).filter(function(R){return g<0?R<=S:R>=S}),b==="unit"&&(C=C.filter(function(R){return R!==S}));var x=b==="unit"?S:E;y=C[0];var w=Math.abs(y-x);if(C.forEach(function(R){var A=Math.abs(R-x);A<w&&(y=R,w=A);}),y===void 0)return g<0?e:t;if(b==="dist")return y;if(Math.abs(g)>1){var O=Ze(v);return O[p]=y,h(O,g-$,p,b)}return y}else {if(g==="min")return e;if(g==="max")return t}},u=function(v,g,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=v[p],S=c(v,g,p,b);return {value:S,changed:S!==y}},d=function(v){return i===null&&v===0||typeof i=="number"&&v<i},f=function(v,g,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=v.map(l),S=y[p],E=c(y,g,p,b);if(y[p]=E,o===!1){var C=i||0;p>0&&y[p-1]!==S&&(y[p]=Math.max(y[p],y[p-1]+C)),p<y.length-1&&y[p+1]!==S&&(y[p]=Math.min(y[p],y[p+1]-C));}else if(typeof i=="number"||i===null){for(var $=p+1;$<y.length;$+=1)for(var x=!0;d(y[$]-y[$-1])&&x;){var w=u(y,1,$);y[$]=w.value,x=w.changed;}for(var O=p;O>0;O-=1)for(var R=!0;d(y[O]-y[O-1])&&R;){var A=u(y,-1,O-1);y[O-1]=A.value,R=A.changed;}for(var _=y.length-1;_>0;_-=1)for(var I=!0;d(y[_]-y[_-1])&&I;){var P=u(y,-1,_-1);y[_-1]=P.value,I=P.changed;}for(var T=0;T<y.length-1;T+=1)for(var N=!0;d(y[T+1]-y[T])&&N;){var M=u(y,1,T+1);y[T+1]=M.value,N=M.changed;}}return {value:y[p],values:y}};return [l,f]}var MW=m__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-slider":r,i=e.className,a=e.style,s=e.disabled,l=s===void 0?!1:s,c=e.keyboard,u=c===void 0?!0:c,d=e.autoFocus,f=e.onFocus,h=e.onBlur,v=e.min,g=v===void 0?0:v,p=e.max,b=p===void 0?100:p,y=e.step,S=y===void 0?1:y,E=e.value,C=e.defaultValue,$=e.range,x=e.count,w=e.onChange,O=e.onBeforeChange,R=e.onAfterChange,A=e.allowCross,_=A===void 0?!0:A,I=e.pushable,P=I===void 0?!1:I,T=e.draggableTrack,N=e.reverse,M=e.vertical,L=e.included,z=L===void 0?!0:L,H=e.startPoint,W=e.trackStyle,B=e.handleStyle,V=e.railStyle,j=e.dotStyle,K=e.activeDotStyle,ee=e.marks,q=e.dots,U=e.handleRender,X=e.tabIndex,ie=X===void 0?0:X,de=e.ariaLabelForHandle,ge=e.ariaLabelledByForHandle,re=e.ariaValueTextFormatterForHandle,se=m__namespace.useRef(),ue=m__namespace.useRef(),Y=m__namespace.useMemo(function(){return M?N?"ttb":"btt":N?"rtl":"ltr"},[N,M]),ne=m__namespace.useMemo(function(){return isFinite(g)?g:0},[g]),J=m__namespace.useMemo(function(){return isFinite(b)?b:100},[b]),me=m__namespace.useMemo(function(){return S!==null&&S<=0?1:S},[S]),he=m__namespace.useMemo(function(){return P===!0?me:P>=0?P:!1},[P,me]),ye=m__namespace.useMemo(function(){var Ge=Object.keys(ee||{});return Ge.map(function(Ye){var Ue=ee[Ye],mt={value:Number(Ye)};return Ue&&at(Ue)==="object"&&!m__namespace.isValidElement(Ue)&&("label"in Ue||"style"in Ue)?(mt.style=Ue.style,mt.label=Ue.label):mt.label=Ue,mt}).filter(function(Ye){var Ue=Ye.label;return Ue||typeof Ue=="number"}).sort(function(Ye,Ue){return Ye.value-Ue.value})},[ee]),Re=TW(ne,J,me,ye,_,he),Be=G(Re,2),_e=Be[0],ae=Be[1],ve=Dt(C,{value:E}),be=G(ve,2),Se=be[0],Ae=be[1],ke=m__namespace.useMemo(function(){var Ge=Se==null?[]:Array.isArray(Se)?Se:[Se],Ye=G(Ge,1),Ue=Ye[0],mt=Ue===void 0?ne:Ue,ht=Se===null?[]:[mt];if($){if(ht=Ze(Ge),x||Se===void 0){var _t=x>=0?x+1:2;for(ht=ht.slice(0,_t);ht.length<_t;){var Xe;ht.push((Xe=ht[ht.length-1])!==null&&Xe!==void 0?Xe:ne);}}ht.sort(function(We,dt){return We-dt});}return ht.forEach(function(We,dt){ht[dt]=_e(We);}),ht},[Se,$,ne,x,_e]),we=m__namespace.useRef(ke);we.current=ke;var Ie=function(Ye){return $?Ye:Ye[0]},Fe=function(Ye){var Ue=Ze(Ye).sort(function(mt,ht){return mt-ht});w&&!Mc(Ue,we.current,!0)&&w(Ie(Ue)),Ae(Ue);},xe=function(Ye){if(!l){var Ue=0,mt=J-ne;ke.forEach(function(_t,Xe){var We=Math.abs(Ye-_t);We<=mt&&(mt=We,Ue=Xe);});var ht=Ze(ke);ht[Ue]=Ye,$&&!ke.length&&x===void 0&&ht.push(Ye),O==null||O(Ie(ht)),Fe(ht),R==null||R(Ie(ht));}},Me=function(Ye){Ye.preventDefault();var Ue=ue.current.getBoundingClientRect(),mt=Ue.width,ht=Ue.height,_t=Ue.left,Xe=Ue.top,We=Ue.bottom,dt=Ue.right,Et=Ye.clientX,en=Ye.clientY,Mt;switch(Y){case"btt":Mt=(We-en)/ht;break;case"ttb":Mt=(en-Xe)/ht;break;case"rtl":Mt=(dt-Et)/mt;break;default:Mt=(Et-_t)/mt;}var un=ne+Mt*(J-ne);xe(_e(un));},tt=m__namespace.useState(null),ut=G(tt,2),qe=ut[0],ct=ut[1],Pe=function(Ye,Ue){if(!l){var mt=ae(ke,Ye,Ue);O==null||O(Ie(ke)),Fe(mt.values),R==null||R(Ie(mt.values)),ct(mt.value);}};m__namespace.useEffect(function(){if(qe!==null){var Ge=ke.indexOf(qe);Ge>=0&&se.current.focus(Ge);}ct(null);},[qe]);var te=m__namespace.useMemo(function(){return T&&me===null?!1:T},[T,me]),fe=function(){R==null||R(Ie(we.current));},oe=$W(ue,Y,ke,ne,J,_e,Fe,fe,ae),Ee=G(oe,4),He=Ee[0],Qe=Ee[1],ze=Ee[2],pe=Ee[3],$e=function(Ye,Ue){pe(Ye,Ue),O==null||O(Ie(we.current));},Te=He!==-1;m__namespace.useEffect(function(){if(!Te){var Ge=ke.lastIndexOf(Qe);se.current.focus(Ge);}},[Te]);var Ne=m__namespace.useMemo(function(){return Ze(ze).sort(function(Ge,Ye){return Ge-Ye})},[ze]),st=m__namespace.useMemo(function(){return $?[Ne[0],Ne[Ne.length-1]]:[ne,Ne[0]]},[Ne,$,ne]),et=G(st,2),St=et[0],Bt=et[1];m__namespace.useImperativeHandle(t,function(){return {focus:function(){se.current.focus(0);},blur:function(){var Ye=document,Ue=Ye.activeElement;ue.current.contains(Ue)&&(Ue==null||Ue.blur());}}}),m__namespace.useEffect(function(){d&&se.current.focus(0);},[]);var Ht=m__namespace.useMemo(function(){return {min:ne,max:J,direction:Y,disabled:l,keyboard:u,step:me,included:z,includedStart:St,includedEnd:Bt,range:$,tabIndex:ie,ariaLabelForHandle:de,ariaLabelledByForHandle:ge,ariaValueTextFormatterForHandle:re}},[ne,J,Y,l,u,me,z,St,Bt,$,ie,de,ge,re]);return m__namespace.createElement(qo.Provider,{value:Ht},m__namespace.createElement("div",{ref:ue,className:F(o,i,(n={},Z(n,"".concat(o,"-disabled"),l),Z(n,"".concat(o,"-vertical"),M),Z(n,"".concat(o,"-horizontal"),!M),Z(n,"".concat(o,"-with-marks"),ye.length),n)),style:a,onMouseDown:Me},m__namespace.createElement("div",{className:"".concat(o,"-rail"),style:V}),m__namespace.createElement(OW,{prefixCls:o,style:W,values:Ne,startPoint:H,onStartMove:te?$e:null}),m__namespace.createElement(_W,{prefixCls:o,marks:ye,dots:q,style:j,activeStyle:K}),m__namespace.createElement(xW,{ref:se,prefixCls:o,style:B,values:ze,draggingIndex:He,onStartMove:$e,onOffsetChange:Pe,onFocus:f,onBlur:h,handleRender:U}),m__namespace.createElement(PW,{prefixCls:o,marks:ye,onClick:xe})))});const NW=m__namespace.forwardRef((e,t)=>{const{open:n}=e,r=m.useRef(null),o=m.useRef(null);function i(){gt.cancel(o.current),o.current=null;}function a(){o.current=gt(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),o.current=null;});}return m__namespace.useEffect(()=>(n?a():i(),i),[n,e.title]),m__namespace.createElement(ds,Object.assign({ref:In(r,t)},e))}),kW=NW,AW=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s}=e;return {[t]:Object.assign(Object.assign({},Tt(e)),{position:"relative",height:r,margin:`${a}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`
            inset-inline-start ${e.motionDurationMid},
            inset-block-start ${e.motionDurationMid},
            width ${e.motionDurationMid},
            height ${e.motionDurationMid},
            box-shadow ${e.motionDurationMid}
          `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
          ${t}-dot
        `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new Wt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`
          ${t}-mark-text,
          ${t}-dot
        `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},qw=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart";return {[a]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track`]:{[l]:r},[`${n}-handle`]:{[c]:(r*3-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[u]:r*3+(t?0:e.marginFull),[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-i)/2}}},LW=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},qw(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},DW=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},qw(e,!1)),{height:"100%"})}},zW=Vt("Slider",e=>{const t=ft(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [AW(t),LW(t),DW(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*3;return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});var jW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const BW=e=>typeof e=="number"?e.toString():"",HW=m.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:f}=e,h=jW(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:v,slider:g,getPrefixCls:p,getPopupContainer:b}=m.useContext(nt),y=m.useContext(Pr),S=s??y,[E,C]=m.useState({}),$=(N,M)=>{C(L=>Object.assign(Object.assign({},L),{[N]:M}));},x=(N,M)=>N||(M?v==="rtl"?"left":"right":"top"),w=p("slider",n),[O,R]=zW(w),A=F(o,g==null?void 0:g.className,i,{[`${w}-rtl`]:v==="rtl"},R);v==="rtl"&&!h.vertical&&(h.reverse=!h.reverse);const[_,I]=m.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),P=(N,M)=>{var L;const{index:z,dragging:H}=M,{tooltip:W={},vertical:B}=e,V=Object.assign({},W),{open:j,placement:K,getPopupContainer:ee,prefixCls:q,formatter:U}=V;let X;U||U===null?X=U:c||c===null?X=c:X=BW;const ie=X?E[z]||H:!1,de=(L=j??u)!==null&&L!==void 0?L:j===void 0&&ie,ge=Object.assign(Object.assign({},N.props),{onMouseEnter:()=>$(z,!0),onMouseLeave:()=>$(z,!1)}),re=p("tooltip",q??l);return m.createElement(kW,Object.assign({},V,{prefixCls:re,title:X?X(M.value):"",open:de,placement:x(K??f,B),key:z,overlayClassName:`${w}-tooltip`,getPopupContainer:ee||d||b}),m.cloneElement(N,ge))},T=Object.assign(Object.assign({},g==null?void 0:g.style),a);return O(m.createElement(MW,Object.assign({},h,{step:h.step,range:_,draggableTrack:I,className:A,style:T,disabled:S,ref:t,prefixCls:w,handleRender:P})))}),FW=HW;var WW={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 VW=WW;var UW=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:VW}))};const Yw=m__namespace.forwardRef(UW);function Bb(e){return !!(e&&e.then)}const KW=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=m__namespace.useRef(!1),f=m__namespace.useRef(null),[h,v]=Ro(!1),g=function(){i==null||i.apply(void 0,arguments);};m__namespace.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{var S;(S=f.current)===null||S===void 0||S.focus();})),()=>{y&&clearTimeout(y);}},[]);const p=y=>{Bb(y)&&(v(!0),y.then(function(){v(!1,!0),g.apply(void 0,arguments),d.current=!1;},S=>{if(v(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(S)}));},b=y=>{if(d.current)return;if(d.current=!0,!u){g();return}let S;if(s){if(S=u(y),c&&!Bb(S)){d.current=!1,g(y);return}}else if(u.length)S=u(i),d.current=!1;else if(S=u(),!S){g();return}p(S);};return m__namespace.createElement(Qt,Object.assign({},aS(t),{onClick:b,loading:h,prefixCls:r},o,{ref:f}),n)},GW=KW,XW=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return {[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},Zw=Vt("Popconfirm",e=>XW(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}});var qW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Qw=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=m__namespace.createElement(Yw,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:h,onPopupClick:v}=e,{getPrefixCls:g}=m__namespace.useContext(nt),[p]=Zi("Popconfirm",zr.Popconfirm),b=Ai(o),y=Ai(i);return m__namespace.createElement("div",{className:`${t}-inner-content`,onClick:v},m__namespace.createElement("div",{className:`${t}-message`},c&&m__namespace.createElement("span",{className:`${t}-message-icon`},c),m__namespace.createElement("div",{className:`${t}-message-text`},b&&m__namespace.createElement("div",{className:F(`${t}-title`)},b),y&&m__namespace.createElement("div",{className:`${t}-description`},y))),m__namespace.createElement("div",{className:`${t}-buttons`},u&&m__namespace.createElement(Qt,Object.assign({onClick:h,size:"small"},r),a??(p==null?void 0:p.cancelText)),m__namespace.createElement(GW,{buttonProps:Object.assign(Object.assign({size:"small"},aS(l)),n),actionFn:f,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))},YW=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=qW(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=m__namespace.useContext(nt),s=a("popconfirm",t),[l]=Zw(s);return l(m__namespace.createElement(Y1,{placement:n,className:F(s,r),style:o,content:m__namespace.createElement(Qw,Object.assign({prefixCls:s},i))}))},ZW=YW;var QW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Jw=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o="click",okType:i="primary",icon:a=m__namespace.createElement(Yw,null),children:s,overlayClassName:l,onOpenChange:c,onVisibleChange:u}=e,d=QW(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:f}=m__namespace.useContext(nt),[h,v]=Dt(!1,{value:e.open,defaultValue:e.defaultOpen}),g=(w,O)=>{v(w,!0),u==null||u(w),c==null||c(w,O);},p=w=>{g(!1,w);},b=w=>{var O;return (O=e.onConfirm)===null||O===void 0?void 0:O.call(globalThis,w)},y=w=>{var O;g(!1,w),(O=e.onCancel)===null||O===void 0||O.call(globalThis,w);},S=w=>{w.keyCode===ce.ESC&&h&&g(!1,w);},E=w=>{const{disabled:O=!1}=e;O||g(w);},C=f("popconfirm",n),$=F(C,l),[x]=Zw(C);return x(m__namespace.createElement(fh,Object.assign({},yn(d,["title"]),{trigger:o,placement:r,onOpenChange:E,open:h,ref:t,overlayClassName:$,content:m__namespace.createElement(Qw,Object.assign({okType:i,icon:a},e,{prefixCls:C,close:p,onConfirm:b,onCancel:y})),"data-popover-inject":!0}),Hn(s,{onKeyDown:w=>{var O,R;m__namespace.isValidElement(s)&&((R=s==null?void 0:(O=s.props).onKeyDown)===null||R===void 0||R.call(O,w)),S(w);}})))});Jw._InternalPanelDoNotUseOrYouWillBeFired=ZW;const Hb=Jw;var JW={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 eV=JW;var tV=function(t,n){return m__namespace.createElement(hn,Oe({},t,{ref:n,icon:eV}))};const nV=m__namespace.forwardRef(tV),pu=m.createContext(null);var ex=m__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return m__namespace.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:F(n,a&&"".concat(n,"-active"),r),ref:t},l)}),rV=["key","forceRender","style","className"];function oV(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=m__namespace.useContext(pu),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return m__namespace.createElement("div",{className:F("".concat(s,"-content-holder"))},m__namespace.createElement("div",{className:F("".concat(s,"-content"),"".concat(s,"-content-").concat(o),Z({},"".concat(s,"-content-animated"),c))},l.map(function(d){var f=d.key,h=d.forceRender,v=d.style,g=d.className,p=Je(d,rV),b=f===n;return m__namespace.createElement(ho,Oe({key:f,visible:b,forceRender:h,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(y,S){var E=y.style,C=y.className;return m__namespace.createElement(ex,Oe({},p,{prefixCls:u,id:t,tabKey:f,animated:c,active:b,style:Q(Q({},v),E),className:F(g,C),ref:S}))})})))}var Fb={width:0,height:0,left:0,top:0};function iV(e,t,n){return m.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Fb,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)||Fb;}var d=o.get(l)||Q({},c);d.right=a-d.left-d.width,o.set(l,d);}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Wb(e,t){var n=m__namespace.useRef(e),r=m__namespace.useState({}),o=G(r,2),i=o[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,i({});}return [n.current,a]}var aV=.1,Vb=.01,gl=20,Ub=Math.pow(.995,gl);function sV(e,t){var n=m.useState(),r=G(n,2),o=r[0],i=r[1],a=m.useState(0),s=G(a,2),l=s[0],c=s[1],u=m.useState(0),d=G(u,2),f=d[0],h=d[1],v=m.useState(),g=G(v,2),p=g[0],b=g[1],y=m.useRef();function S(O){var R=O.touches[0],A=R.screenX,_=R.screenY;i({x:A,y:_}),window.clearInterval(y.current);}function E(O){if(o){O.preventDefault();var R=O.touches[0],A=R.screenX,_=R.screenY;i({x:A,y:_});var I=A-o.x,P=_-o.y;t(I,P);var T=Date.now();c(T),h(T-l),b({x:I,y:P});}}function C(){if(o&&(i(null),b(null),p)){var O=p.x/f,R=p.y/f,A=Math.abs(O),_=Math.abs(R);if(Math.max(A,_)<aV)return;var I=O,P=R;y.current=window.setInterval(function(){if(Math.abs(I)<Vb&&Math.abs(P)<Vb){window.clearInterval(y.current);return}I*=Ub,P*=Ub,t(I*gl,P*gl);},gl);}}var $=m.useRef();function x(O){var R=O.deltaX,A=O.deltaY,_=0,I=Math.abs(R),P=Math.abs(A);I===P?_=$.current==="x"?R:A:I>P?(_=R,$.current="x"):(_=A,$.current="y"),t(-_,-_)&&O.preventDefault();}var w=m.useRef(null);w.current={onTouchStart:S,onTouchMove:E,onTouchEnd:C,onWheel:x},m__namespace.useEffect(function(){function O(I){w.current.onTouchStart(I);}function R(I){w.current.onTouchMove(I);}function A(I){w.current.onTouchEnd(I);}function _(I){w.current.onWheel(I);}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",A,{passive:!1}),e.current.addEventListener("touchstart",O,{passive:!1}),e.current.addEventListener("wheel",_),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",A);}},[]);}function tx(e){var t=m.useState(0),n=G(t,2),r=n[0],o=n[1],i=m.useRef(0),a=m.useRef();return a.current=e,$i(function(){var s;(s=a.current)===null||s===void 0||s.call(a);},[r]),function(){i.current===r&&(i.current+=1,o(i.current));}}function lV(e){var t=m.useRef([]),n=m.useState({}),r=G(n,2),o=r[1],i=m.useRef(typeof e=="function"?e():e),a=tx(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 Kb={width:0,height:0,left:0,top:0,right:0};function cV(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,f;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",f=Math.abs(n)):(u="height",d="top",f=-n),m.useMemo(function(){if(!s.length)return [0,0];for(var h=s.length,v=h,g=0;g<h;g+=1){var p=e.get(s[g].key)||Kb;if(p[d]+p[u]>f+t){v=g-1;break}}for(var b=0,y=h-1;y>=0;y-=1){var S=e.get(s[y].key)||Kb;if(S[d]<f){b=y+1;break}}return b>=v?[0,0]:[b,v]},[e,t,r,o,i,f,l,s.map(function(h){return h.key}).join("_"),c])}function Gb(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var uV="TABS_DQ";function nx(e){return String(e).replace(/"/g,uV)}function rx(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function dV(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return !r||r.showAdd===!1?null:m__namespace.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s});}},r.addIcon||"+")}const ox=m__namespace.forwardRef(dV);var Xb=m__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return at(o)==="object"&&!m__namespace.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?m__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});function fV(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.moreIcon,l=s===void 0?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,f=e.editable,h=e.tabBarGutter,v=e.rtl,g=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,S=m.useState(!1),E=G(S,2),C=E[0],$=E[1],x=m.useState(null),w=G(x,2),O=w[0],R=w[1],A="".concat(r,"-more-popup"),_="".concat(n,"-dropdown"),I=O!==null?"".concat(A,"-").concat(O):null,P=i==null?void 0:i.dropdownAriaLabel;function T(B,V){B.preventDefault(),B.stopPropagation(),f.onEdit("remove",{key:V,event:B});}var N=m__namespace.createElement(ra,{onClick:function(V){var j=V.key,K=V.domEvent;p(j,K),$(!1);},prefixCls:"".concat(_,"-menu"),id:A,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[O],"aria-label":P!==void 0?P:"expanded dropdown"},o.map(function(B){var V=B.closable,j=B.disabled,K=B.closeIcon,ee=B.key,q=B.label,U=rx(V,K,f,j);return m__namespace.createElement(Es,{key:ee,id:"".concat(A,"-").concat(ee),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ee),disabled:j},m__namespace.createElement("span",null,q),U&&m__namespace.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(_,"-menu-item-remove"),onClick:function(ie){ie.stopPropagation(),T(ie,ee);}},K||f.removeIcon||"×"))}));function M(B){for(var V=o.filter(function(U){return !U.disabled}),j=V.findIndex(function(U){return U.key===O})||0,K=V.length,ee=0;ee<K;ee+=1){j=(j+B+K)%K;var q=V[j];if(!q.disabled){R(q.key);return}}}function L(B){var V=B.which;if(!C){[ce.DOWN,ce.SPACE,ce.ENTER].includes(V)&&($(!0),B.preventDefault());return}switch(V){case ce.UP:M(-1),B.preventDefault();break;case ce.DOWN:M(1),B.preventDefault();break;case ce.ESC:$(!1);break;case ce.SPACE:case ce.ENTER:O!==null&&p(O,B);break}}m.useEffect(function(){var B=document.getElementById(I);B&&B.scrollIntoView&&B.scrollIntoView(!1);},[O]),m.useEffect(function(){C||R(null);},[C]);var z=Z({},v?"marginRight":"marginLeft",h);o.length||(z.visibility="hidden",z.order=1);var H=F(Z({},"".concat(_,"-rtl"),v)),W=a?null:m__namespace.createElement(mw,{prefixCls:_,overlay:N,trigger:["hover"],visible:o.length?C:!1,transitionName:c,onVisibleChange:$,overlayClassName:F(H,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},m__namespace.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:z,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":A,id:"".concat(r,"-more"),"aria-expanded":C,onKeyDown:L},l));return m__namespace.createElement("div",{className:F("".concat(n,"-nav-operations"),d),style:u,ref:t},W,m__namespace.createElement(ox,{prefixCls:n,locale:i,editable:f}))}const mV=m__namespace.memo(m__namespace.forwardRef(fV),function(e,t){return t.tabMoving});function hV(e){var t,n=e.prefixCls,r=e.id,o=e.active,i=e.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=e.closable,d=e.renderWrapper,f=e.removeAriaLabel,h=e.editable,v=e.onClick,g=e.onFocus,p=e.style,b="".concat(n,"-tab"),y=rx(u,c,h,l);function S($){l||v($);}function E($){$.preventDefault(),$.stopPropagation(),h.onEdit("remove",{key:a,event:$});}var C=m__namespace.createElement("div",{key:a,"data-node-key":nx(a),className:F(b,(t={},Z(t,"".concat(b,"-with-remove"),y),Z(t,"".concat(b,"-active"),o),Z(t,"".concat(b,"-disabled"),l),t)),style:p,onClick:S},m__namespace.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(x){x.stopPropagation(),S(x);},onKeyDown:function(x){[ce.SPACE,ce.ENTER].includes(x.which)&&(x.preventDefault(),S(x));},onFocus:g},s),y&&m__namespace.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(x){x.stopPropagation(),E(x);}},c||h.removeIcon||"×"));return d?d(C):C}var fi=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]},qs=function(t,n){return t[n?0:1]};function vV(e,t){var n,r=m__namespace.useContext(pu),o=r.prefixCls,i=r.tabs,a=e.className,s=e.style,l=e.id,c=e.animated,u=e.activeKey,d=e.rtl,f=e.extra,h=e.editable,v=e.locale,g=e.tabPosition,p=e.tabBarGutter,b=e.children,y=e.onTabClick,S=e.onTabScroll,E=m.useRef(),C=m.useRef(),$=m.useRef(),x=m.useRef(),w=m.useRef(),O=m.useRef(),R=m.useRef(),A=g==="top"||g==="bottom",_=Wb(0,function(Xe,We){A&&S&&S({direction:Xe>We?"left":"right"});}),I=G(_,2),P=I[0],T=I[1],N=Wb(0,function(Xe,We){!A&&S&&S({direction:Xe>We?"top":"bottom"});}),M=G(N,2),L=M[0],z=M[1],H=m.useState([0,0]),W=G(H,2),B=W[0],V=W[1],j=m.useState([0,0]),K=G(j,2),ee=K[0],q=K[1],U=m.useState([0,0]),X=G(U,2),ie=X[0],de=X[1],ge=m.useState([0,0]),re=G(ge,2),se=re[0],ue=re[1],Y=lV(new Map),ne=G(Y,2),J=ne[0],me=ne[1],he=iV(i,J,ee[0]),ye=qs(B,A),Re=qs(ee,A),Be=qs(ie,A),_e=qs(se,A),ae=ye<Re+Be,ve=ae?ye-_e:ye-Be,be="".concat(o,"-nav-operations-hidden"),Se=0,Ae=0;A&&d?(Se=0,Ae=Math.max(0,Re-ve)):(Se=Math.min(0,ve-Re),Ae=0);function ke(Xe){return Xe<Se?Se:Xe>Ae?Ae:Xe}var we=m.useRef(),Ie=m.useState(),Fe=G(Ie,2),xe=Fe[0],Me=Fe[1];function tt(){Me(Date.now());}function ut(){window.clearTimeout(we.current);}sV(x,function(Xe,We){function dt(Et,en){Et(function(Mt){var un=ke(Mt+en);return un});}return ae?(A?dt(T,Xe):dt(z,We),ut(),tt(),!0):!1}),m.useEffect(function(){return ut(),xe&&(we.current=window.setTimeout(function(){Me(0);},100)),ut},[xe]);var qe=cV(he,ve,A?P:L,Re,Be,_e,Q(Q({},e),{},{tabs:i})),ct=G(qe,2),Pe=ct[0],te=ct[1],fe=Tn(function(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,We=he.get(Xe)||{width:0,height:0,left:0,right:0,top:0};if(A){var dt=P;d?We.right<P?dt=We.right:We.right+We.width>P+ve&&(dt=We.right+We.width-ve):We.left<-P?dt=-We.left:We.left+We.width>-P+ve&&(dt=-(We.left+We.width-ve)),z(0),T(ke(dt));}else {var Et=L;We.top<-L?Et=-We.top:We.top+We.height>-L+ve&&(Et=-(We.top+We.height-ve)),T(0),z(ke(Et));}}),oe={};g==="top"||g==="bottom"?oe[d?"marginRight":"marginLeft"]=p:oe.marginTop=p;var Ee=i.map(function(Xe,We){var dt=Xe.key;return m__namespace.createElement(hV,{id:l,prefixCls:o,key:dt,tab:Xe,style:We===0?void 0:oe,closable:Xe.closable,editable:h,active:dt===u,renderWrapper:b,removeAriaLabel:v==null?void 0:v.removeAriaLabel,onClick:function(en){y(dt,en);},onFocus:function(){fe(dt),tt(),x.current&&(d||(x.current.scrollLeft=0),x.current.scrollTop=0);}})}),He=function(){return me(function(){var We=new Map;return i.forEach(function(dt){var Et,en=dt.key,Mt=(Et=w.current)===null||Et===void 0?void 0:Et.querySelector('[data-node-key="'.concat(nx(en),'"]'));Mt&&We.set(en,{width:Mt.offsetWidth,height:Mt.offsetHeight,left:Mt.offsetLeft,top:Mt.offsetTop});}),We})};m.useEffect(function(){He();},[i.map(function(Xe){return Xe.key}).join("_")]);var Qe=tx(function(){var Xe=fi(E),We=fi(C),dt=fi($);V([Xe[0]-We[0]-dt[0],Xe[1]-We[1]-dt[1]]);var Et=fi(R);de(Et);var en=fi(O);ue(en);var Mt=fi(w);q([Mt[0]-Et[0],Mt[1]-Et[1]]),He();}),ze=i.slice(0,Pe),pe=i.slice(te+1),$e=[].concat(Ze(ze),Ze(pe)),Te=m.useState(),Ne=G(Te,2),st=Ne[0],et=Ne[1],St=he.get(u),Bt=m.useRef();function Ht(){gt.cancel(Bt.current);}m.useEffect(function(){var Xe={};return St&&(A?(d?Xe.right=St.right:Xe.left=St.left,Xe.width=St.width):(Xe.top=St.top,Xe.height=St.height)),Ht(),Bt.current=gt(function(){et(Xe);}),Ht},[St,A,d]),m.useEffect(function(){fe();},[u,Se,Ae,Gb(St),Gb(he),A]),m.useEffect(function(){Qe();},[d]);var Ge=!!$e.length,Ye="".concat(o,"-nav-wrap"),Ue,mt,ht,_t;return A?d?(mt=P>0,Ue=P!==Ae):(Ue=P<0,mt=P!==Se):(ht=L<0,_t=L!==Se),m__namespace.createElement(Br,{onResize:Qe},m__namespace.createElement("div",{ref:ls(t,E),role:"tablist",className:F("".concat(o,"-nav"),a),style:s,onKeyDown:function(){tt();}},m__namespace.createElement(Xb,{ref:C,position:"left",extra:f,prefixCls:o}),m__namespace.createElement("div",{className:F(Ye,(n={},Z(n,"".concat(Ye,"-ping-left"),Ue),Z(n,"".concat(Ye,"-ping-right"),mt),Z(n,"".concat(Ye,"-ping-top"),ht),Z(n,"".concat(Ye,"-ping-bottom"),_t),n)),ref:x},m__namespace.createElement(Br,{onResize:Qe},m__namespace.createElement("div",{ref:w,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(P,"px, ").concat(L,"px)"),transition:xe?"none":void 0}},Ee,m__namespace.createElement(ox,{ref:R,prefixCls:o,locale:v,editable:h,style:Q(Q({},Ee.length===0?void 0:oe),{},{visibility:Ge?"hidden":null})}),m__namespace.createElement("div",{className:F("".concat(o,"-ink-bar"),Z({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:st})))),m__namespace.createElement(mV,Oe({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:O,prefixCls:o,tabs:$e,className:!Ge&&be,tabMoving:!!xe})),m__namespace.createElement(Xb,{ref:$,position:"right",extra:f,prefixCls:o})))}const qb=m__namespace.forwardRef(vV);var gV=["renderTabBar"],pV=["label","key"];function bV(e){var t=e.renderTabBar,n=Je(e,gV),r=m__namespace.useContext(pu),o=r.tabs;if(t){var i=Q(Q({},n),{},{panes:o.map(function(a){var s=a.label,l=a.key,c=Je(a,pV);return m__namespace.createElement(ex,Oe({tab:s,key:l,tabKey:l},c))})});return t(i,qb)}return m__namespace.createElement(qb,n)}function yV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=Q({inkBar:!0},at(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var CV=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],Yb=0;function SV(e,t){var n,r=e.id,o=e.prefixCls,i=o===void 0?"rc-tabs":o,a=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,h=e.tabPosition,v=h===void 0?"top":h,g=e.tabBarGutter,p=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,S=e.moreIcon,E=e.moreTransitionName,C=e.destroyInactiveTabPane,$=e.renderTabBar,x=e.onChange,w=e.onTabClick,O=e.onTabScroll,R=e.getPopupContainer,A=e.popupClassName,_=Je(e,CV),I=m__namespace.useMemo(function(){return (s||[]).filter(function(Y){return Y&&at(Y)==="object"&&"key"in Y})},[s]),P=l==="rtl",T=yV(f),N=m.useState(!1),M=G(N,2),L=M[0],z=M[1];m.useEffect(function(){z(Ac());},[]);var H=Dt(function(){var Y;return (Y=I[0])===null||Y===void 0?void 0:Y.key},{value:c,defaultValue:u}),W=G(H,2),B=W[0],V=W[1],j=m.useState(function(){return I.findIndex(function(Y){return Y.key===B})}),K=G(j,2),ee=K[0],q=K[1];m.useEffect(function(){var Y=I.findIndex(function(J){return J.key===B});if(Y===-1){var ne;Y=Math.max(0,Math.min(ee,I.length-1)),V((ne=I[Y])===null||ne===void 0?void 0:ne.key);}q(Y);},[I.map(function(Y){return Y.key}).join("_"),B,ee]);var U=Dt(null,{value:r}),X=G(U,2),ie=X[0],de=X[1];m.useEffect(function(){r||(de("rc-tabs-".concat(Yb)),Yb+=1);},[]);function ge(Y,ne){w==null||w(Y,ne);var J=Y!==B;V(Y),J&&(x==null||x(Y));}var re={id:ie,activeKey:B,animated:T,tabPosition:v,rtl:P,mobile:L},se,ue=Q(Q({},re),{},{editable:d,locale:y,moreIcon:S,moreTransitionName:E,tabBarGutter:g,onTabClick:ge,onTabScroll:O,extra:b,style:p,panes:null,getPopupContainer:R,popupClassName:A});return m__namespace.createElement(pu.Provider,{value:{tabs:I,prefixCls:i}},m__namespace.createElement("div",Oe({ref:t,id:r,className:F(i,"".concat(i,"-").concat(v),(n={},Z(n,"".concat(i,"-mobile"),L),Z(n,"".concat(i,"-editable"),d),Z(n,"".concat(i,"-rtl"),P),n),a)},_),se,m__namespace.createElement(bV,Oe({},ue,{renderTabBar:$})),m__namespace.createElement(oV,Oe({destroyInactiveTabPane:C},re,{animated:T}))))}var wV=m__namespace.forwardRef(SV);const xV=()=>null,$V=xV,EV={motionAppear:!1,motionEnter:!0,motionLeave:!0};function OV(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({},EV),{motionName:Nc(e,"switch")})),n}var IV=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 PV(e){return e.filter(t=>t)}function RV(e,t){if(e)return e;const n=cr(t).map(r=>{if(m__namespace.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=IV(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return PV(n)}const _V=e=>{const{componentCls:t,motionDurationSlow:n}=e;return [{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[uo(e,"slide-up"),uo(e,"slide-down")]]},TV=_V,MV=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},NV=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},Tt(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({},Lo),{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"}}})}})}},kV=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},AV=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},LV=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s}=e,l=`${t}-tab`;return {[l]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},zo(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:i}}}},DV=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},zV=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},zo(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),LV(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"}}}}}},jV=Vt("Tabs",e=>{const t=ft(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return [AV(t),DV(t),kV(t),NV(t),MV(t),zV(t),TV(t)]},e=>{const t=e.controlHeightLG;return {zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}});var BV=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 ix=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:f,style:h}=e,v=BV(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:g,moreIcon:p=m__namespace.createElement(sv,null)}=v,{direction:b,tabs:y,getPrefixCls:S,getPopupContainer:E}=m__namespace.useContext(nt),C=S("tabs",g),[$,x]=jV(C);let w;t==="editable-card"&&(w={onEdit:(P,T)=>{let{key:N,event:M}=T;i==null||i(P==="add"?M:N,P);},removeIcon:m__namespace.createElement(Uc,null),addIcon:l||m__namespace.createElement(nV,null),showAdd:a!==!0});const O=S(),R=RV(d,u),A=OV(C,f),_=Wn(o),I=Object.assign(Object.assign({},y==null?void 0:y.style),h);return $(m__namespace.createElement(wV,Object.assign({direction:b,getPopupContainer:E,moreTransitionName:`${O}-slide-up`},v,{items:R,className:F({[`${C}-${_}`]:_,[`${C}-card`]:["card","editable-card"].includes(t),[`${C}-editable-card`]:t==="editable-card",[`${C}-centered`]:s},y==null?void 0:y.className,n,r,x),popupClassName:F(c,x),style:I,editable:w,moreIcon:p,prefixCls:C,animated:A})))};ix.TabPane=$V;const HV=ix,Zb=D(Qt,{target:"_blank",href:"https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E",children:"access_key 说明"});function ax({style:e,className:t}){const{runAsync:n,loading:r}=CB(u8,{manual:!0}),{accessKey:o}=kn(),i=d8,a="请允许弹出窗口并等待窗口自动关闭";return D(vu,{size:"small",style:e,className:t,children:o?Ce(Ct,{children:[D(Hl,{title:a,children:D(Qt,{onClick:n,disabled:r,children:D("span",{children:"重新获取 access_key"})})}),D(Qt,{onClick:i,children:D("span",{children:"删除 access_key"})}),Zb]}):Ce(Ct,{children:[D(Hl,{title:a,children:D(Qt,{onClick:n,disabled:r,size:"middle",children:D("span",{children:"获取 access_key"})})}),Zb]})})}const FV="_config-icon_1xtyf_1",WV="_settings-group_1xtyf_6",VV="_settings-group-title_1xtyf_9",UV="_settings-group-sub-title_1xtyf_14",KV="_settings-group-content_1xtyf_20",GV="_row_1xtyf_26",XV="_check_1xtyf_34",qV="_setting-tabs_1xtyf_39",YV="_tab-pane_1xtyf_42",Ke={configIcon:FV,settingsGroup:WV,settingsGroupTitle:VV,settingsGroupSubTitle:UV,settingsGroupContent:KV,row:GV,check:XV,settingTabs:qV,tabPane:YV};async function uv(){yt("即将刷新网页"),await Xo(500),location.reload();}function ZV(){return T8(),uv()}async function QV(){const e=await $8(),t=Tm(e||{},FS);return Object.keys(t).length?(window[`${rn}-restore`]=Date.now(),Er({...t}),uv()):yt("备份不存在或没有有效的配置")}function Ys(e,t,n){return Zt(e,r=>{if(ru())return;bt[t]=!bt[t];const o=!bt[t];yt(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function JV({show:e,onHide:t}){const{autoPreviewUpdateInterval:n,filterMinPlayCount:r,filterMinPlayCountEnabled:o,filterMinDuration:i,filterMinDurationEnabled:a,filterOutGotoTypePicture:s}=kn();return Ys(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Ys(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Ys(["shift.c"],"useNarrowMode","居中模式"),Ys(["shift.y"],"styleUseYoutubeLikeCard","大卡片样式"),Ce(Zh,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[Ce("div",{className:xr.modalHeader,children:[Ce("div",{className:xr.modalTitle,children:[D(Lt,{name:"Config",className:Ke.configIcon}),"设置项"]}),D("div",{className:"space",style:{flex:1}}),D(Qh,{onClick:t})]}),D("main",{className:xr.modalBody,style:{overflow:"hidden"},children:D(HV,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:Ke.settingTabs,items:[{label:"常规设置",key:"normal",children:Ce("div",{className:Ke.tabPane,children:[Ce("div",{className:Ke.settingsGroup,children:[Ce("div",{className:Ke.settingsGroupTitle,children:["access_key",D(Fl,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:Ce(Ct,{children:["用于「推荐」Tab",D("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),D("div",{className:F(Ke.settingsGroupContent),children:D("div",{className:Ke.row,style:{marginTop:5},children:D(ax,{})})})]}),Ce("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"开关"}),Ce("div",{className:F(Ke.settingsGroupContent,Ke.row),children:[D(dn,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:Ce(Ct,{children:["首页只保留推荐",D("br",{}),"P.S 需要刷新网页~"]}),className:Ke.check,extraAction:uv}),D(dn,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",className:Ke.check,extraAction:l=>{l&&yt("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),D(dn,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:Ce(Ct,{children:["居中两列",D("br",{}),"切换设置快捷键: ",D(ro,{color:"green",children:"shift+c"})]}),className:Ke.check})]})]}),Ce("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"预览"}),Ce("div",{className:F(Ke.settingsGroupContent,Ke.row),children:[D(dn,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Ke.check,tooltip:Ce(Ct,{children:["手动预览快捷键: ",D(ro,{color:"green",children:"."})," or ",D(ro,{color:"green",children:"p"}),D("br",{}),"切换设置快捷键: ",D(ro,{color:"green",children:"shift+p"})]})}),D(dn,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Ke.check,tooltip:Ce(Ct,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",D("br",{}),"切换设置快捷键: ",D(ro,{color:"green",children:"shift+m"})]})})]})]}),Ce("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"帮助"}),D("div",{className:F(Ke.settingsGroupContent),children:D("div",{className:Ke.row,children:Ce(vu,{size:"small",children:[D(Qt,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),D(Qt,{href:"http://greasyfork.icu/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),D(Qt,{href:"https://github.com/magicdawn/bilibili-app-recommend#%E5%BF%AB%E6%8D%B7%E9%94%AE%E8%AF%B4%E6%98%8E",target:"_blank",children:"查看可用的快捷键"}),D(Qt,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),D(Qt,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})},{label:"内容过滤",key:"filter",children:D("div",{className:Ke.tabPane,children:Ce("div",{className:Ke.settingsGroup,children:[Ce("div",{className:Ke.settingsGroupTitle,children:["内容过滤",D(Fl,{iconProps:{name:"Tips"},tooltip:Ce(Ct,{children:["启用过滤会大幅降低加载速度, 谨慎开启! ",D("br",{}),"仅推荐类 Tab 生效"]})})]}),Ce("div",{className:F(Ke.settingsGroupContent),children:[D("div",{className:Ke.settingsGroupSubTitle,children:"视频"}),Ce("div",{className:Ke.row,children:[D(dn,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:D(Ct,{children:"不显示播放量很少的视频"})}),D(If,{size:"small",min:1,step:1e3,value:r,onChange:l=>l&&Er({filterMinPlayCount:l}),disabled:!o})]}),Ce("div",{className:Ke.row,style:{marginTop:3},children:[D(dn,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:D(Ct,{children:"不显示短视频"})}),D(If,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:i,onChange:l=>l&&Er({filterMinDuration:l}),disabled:!a})]}),D(dn,{className:Ke.row,style:{marginTop:3},configKey:"enableFilterForFollowedVideo",label:"对「已关注」的视频启用过滤",tooltip:D(Ct,{children:"默认不过滤「已关注」"})}),D("div",{className:Ke.settingsGroupSubTitle,children:"图文"}),D(dn,{className:Ke.row,configKey:"filterOutGotoTypePicture",label:"启用图文(动态 & 专栏)过滤",tooltip:D(Ct,{children:"过滤掉图文推荐"})}),D(dn,{className:Ke.row,disabled:!s,configKey:"enableFilterForFollowedPicture",label:"对「已关注」的图文启用过滤",tooltip:D(Ct,{children:"默认不过滤「已关注」"})})]})]})})},{label:"外观设置",key:"ui",children:D("div",{className:Ke.tabPane,children:Ce("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),Ce("div",{className:F(Ke.settingsGroupContent),children:[D("div",{className:Ke.row,children:D(dn,{configKey:"styleUseYoutubeLikeCard",label:"视频卡片: 使用类似 YouTube 大卡片",tooltip:Ce(Ct,{children:["增加卡片大小, 增大卡片间距",D("br",{}),"仅「查看更多」弹窗 & 纯推荐模式可用",D("br",{}),"切换设置快捷键: ",D(ro,{color:"green",children:"shift+y"})]})})}),D("div",{className:Ke.row,style:{marginTop:5},children:D(dn,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab 按钮: 使用标准高度",tooltip:"默认紧凑高度"})})]})]})})},{label:"主题选择",key:"theme-select",children:D("div",{className:Ke.tabPane,children:Ce("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),D("div",{className:F(Ke.settingsGroupContent),children:D(i8,{})})]})})},{label:"高级设置",key:"advance",children:D("div",{className:Ke.tabPane,children:Ce("div",{className:Ke.settingsGroup,children:[D("div",{className:Ke.settingsGroupTitle,children:"设置项"}),D("div",{className:F(Ke.settingsGroupContent),children:D("div",{className:Ke.row,children:D(Hb,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:ZV,children:D(Qt,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),D("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),Ce("div",{className:F(Ke.settingsGroupContent),children:[Ce("div",{className:Ke.row,children:[D(dn,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${rn}`}),Ce("a",{style:{marginLeft:15,display:"inline-flex",alignItems:"center"},href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[D(Lt,{name:"EfferentFour",size:16,style:{marginRight:4}}),"去草稿箱浏览"]})]}),D("div",{className:Ke.row,style:{marginTop:5},children:D(Hb,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:QV,children:D(Qt,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),D("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"稍后再看 & 收藏"}),Ce("div",{className:F(Ke.settingsGroupContent),children:[D("div",{className:Ke.row,children:D(dn,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:D(Ct,{children:"不包括最近添加的「稍后再看」"})})}),D("div",{className:Ke.row,children:D(dn,{configKey:"shuffleForFav",label:"对「收藏」Tab 使用随机顺序"})})]}),D("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"预览"}),Ce("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",D(FW,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>bt.autoPreviewUpdateInterval=l,value:n}),Ce("span",{style:{width:"65px"},children:["(",n,"ms)"]})]})]})})}]})})]})}const Qb=()=>document.querySelector(".bili-header__bar");function eU(){return !!(Qb()&&window.getComputedStyle(Qb()).display==="none")}function Yf(){if(!eU())return 64;if(!document.body.classList.contains("fixed-navbar"))return 0;const t=document.documentElement.style.getPropertyValue("--navbar-height");if(!t)return 50;const n=Number(t.replace("px",""));return isNaN(n)?50:n}const Jl=ur({value:Yf()});function tU(){return mr(Jl).value}function sx(){return Jl.value}setTimeout(()=>{Jl.value=Yf();const e=new MutationObserver(()=>{Jl.value=Yf();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);function nU(){const e=m.useRef(null),[t,n]=m.useState(!1);return m.useEffect(()=>{function r(){if(!e.current)return;const o=Math.trunc(e.current.getBoundingClientRect().top*10)/10,i=parseInt(getComputedStyle(e.current).top),a=o<=i;n(a);}return r(),document.addEventListener("scroll",r),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),()=>{document.removeEventListener("scroll",r),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r);}},[t]),[e,t]}const rU="_expand-btn_wdzp9_1",oU="_expanded_wdzp9_12",Jb={expandBtn:rU,expanded:oU},iU=m.forwardRef(function({children:t},n){const[r,o]=YS(!1);m.useImperativeHandle(n,()=>o,[o]);const i=D("button",{className:F("primary-btn",Jb.expandBtn),onClick:o.toggle,children:D("svg",{className:F({[Jb.expanded]:r}),children:D("use",{href:"#widget-arrow"})})});return Ce(Ct,{children:[i,r&&t]})}),aU="_modal-mask_7bwzz_1",sU="_narrow-mode_7bwzz_1",lU="_modal_7bwzz_1",cU="_modal-header_7bwzz_18",uU="_modal-body_7bwzz_19",dU="_btn-refresh_7bwzz_22",ga={modalMask:aU,narrowMode:sU,modal:lU,modalHeader:cU,modalBody:uU,btnRefresh:dU};var fU={name:"1q4vxyr",styles:"margin-left:8px"};const mU=m.memo(function({show:t,onHide:n}){const r=m.useRef(null),o=m.useRef(null),{useNarrowMode:i}=kn(),a=m.useMemo(()=>({[ga.narrowMode]:i}),[i]),s=it((...h)=>{var v;return (v=o.current)==null?void 0:v.refresh(...h)}),l=it(()=>{r.current&&(r.current.scrollTop=0);}),c=Vh(),u=m.useMemo(()=>c?{border:`1px solid ${Wr}`}:void 0,[c]),[d,f]=m.useState(!1);return Ce(Zh,{show:t,onHide:n,clsModalMask:F(a),clsModal:F(ga.modal,a),styleModal:{...u},children:[Ce("div",{className:F(xr.modalHeader,ga.modalHeader),children:[D(fw,{onRefresh:s}),D("div",{className:"space",style:{flex:1}}),D(iU,{children:D(Zj,{})}),D(dx,{css:fU,refreshing:d,onRefresh:s,className:ga.btnRefresh,refreshHotkeyEnabled:t}),D(Qh,{onClick:n})]}),D("div",{className:F(xr.modalBody,ga.modalBody),ref:r,children:D(Ux,{ref:o,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:f})})]})}),hU=Xi.extend("RecHeader"),dv=Yn`
  display: flex;
  align-items: center;
  justify-content: center;
`,e0={btn:Yn`
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    ${dv}
  `,icon:Yn`
    svg {
      width: 14px;
      height: 14px;
    }
  `},co=ur({modalFeedVisible:bt.initialShowMore,modalConfigVisible:!1}),vU=function(){return mr(co)},gU=()=>{co.modalFeedVisible=!0;},pU=()=>{co.modalFeedVisible=!1;},bU=()=>{co.modalConfigVisible=!0;},yU=()=>{co.modalConfigVisible=!1;},lx=m.createContext({onRefresh:Xw});function cx(){return m.useContext(lx)}const ux=m.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},i){const{accessKey:a,pureRecommend:s}=kn(),{modalFeedVisible:l,modalConfigVisible:c}=mr(co);Zt(["shift.comma"],v=>{ru()||(co.modalConfigVisible=!co.modalConfigVisible);},{exactMatch:!0});const[u,d]=nU(),f=it(()=>{var b;if(!s)return;const v=(b=u.current)==null?void 0:b.parentElement;if(!v)return;const g=v.getBoundingClientRect(),p=sx();if(g.top<p){const y=p-g.top+1;hU("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",g.top,p,y),document.documentElement.scrollTop-=y;}});m.useImperativeHandle(i,()=>({scroll:f}));const h=tU();return D(Ct,{children:Ce(lx.Provider,{value:{onRefresh:t},children:[Ce("div",{ref:u,className:"area-header",css:[Yn`
              margin-bottom: 0;
              height: 50px;
            `,s&&Yn`
                position: sticky;
                top: ${h-1}px; // 有缝隙, 故 -1 px
                z-index: 1000;
              `,s&&d&&Yn`
                background-color: var(--bg1_float);
                box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
              `,"",""],children:[Ce("div",{className:"left",children:[D("svg",{className:"icon",children:D("use",{href:"#channel-cinephile"})}),D(fw,{onRefresh:t}),r]}),D("div",{className:"right",children:Ce(vu,{size:"small",children:[o,!a&&D(ax,{style:{marginLeft:5}}),D(Qt,{onClick:bU,css:e0.btn,children:D(Lt,{name:"Config",css:e0.icon})}),D(dx,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(c||l)}),!s&&Ce(Qt,{css:dv,onClick:gU,children:[D("span",{children:"查看更多"}),D("svg",{css:Yn`
                      width: 12px;
                      height: 12px;
                      margin-left: 2px;
                    `,children:D("use",{href:"#widget-arrow"})})]})]})})]}),D(mU,{show:l,onHide:pU}),D(JV,{show:c,onHide:yU})]})})}),dx=m.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},i){r??(r=!0);const[a,s]=m.useState(0),l=m.useRef(null),c=it(()=>{l.current&&(l.current.disabled||l.current.click());});m.useImperativeHandle(i,()=>({click:c}),[]),Zt("r",()=>{ru()||r&&c();},{exactMatch:!0});const u=$s(),d=["dynamic","watchlater"].includes(u)?"刷新":"换一换",f=it(h=>(s(v=>v+360),e==null?void 0:e()));return Ce(Qt,{disabled:o,className:t,style:n,css:Yn`
        ${dv}
        &.ant-btn:not(:disabled):focus-visible {
          outline: none;
        }
      `,ref:l,onClick:f,children:[D("svg",{style:{transform:`rotate(${a}deg)`,width:"11px",height:"11px",marginRight:5,transition:a===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{s(0);},children:D("use",{href:"#widget-roll"})}),D("span",{children:d})]})});function fx(e){return `https://space.bilibili.com/${nu()}/favlist?fid=${e}`}const Si=class Si{constructor(){wt(this,"useShuffle");wt(this,"allFolderServices",[]);wt(this,"folderServices",[]);wt(this,"bufferQueue",[]);wt(this,"total",0);wt(this,"returnedItems",[]);wt(this,"foldersLoaded",!1);this.useShuffle=bt.shuffleForFav;}doReturnItems(t){return this.returnedItems=this.returnedItems.concat(t||[]),t}restore(){this.bufferQueue=[...this.returnedItems,...this.bufferQueue],this.returnedItems=[];}get folderHasMore(){return this.folderServices.some(t=>t.hasMore)}get hasMore(){return this.bufferQueue.length>0||this.folderHasMore}get usageInfo(){if(this.foldersLoaded)return D(wU,{allFavFolderServices:this.allFolderServices})}async loadMore(){if(this.foldersLoaded||await this.getAllFolders(),!this.hasMore)return;const t=()=>{if(this.bufferQueue.length){const n=this.bufferQueue.slice(0,Si.PAGE_SIZE);return this.bufferQueue=this.bufferQueue.slice(Si.PAGE_SIZE),this.doReturnItems(n)}};if(!this.useShuffle){if(this.bufferQueue.length)return t();const n=this.folderServices.find(o=>o.hasMore);if(!n)return;const r=await n.loadMore();return this.doReturnItems(r)}if(this.bufferQueue.length<Si.PAGE_SIZE){for(;this.folderHasMore&&this.bufferQueue.length<100;){const n=this.folderServices.filter(i=>i.hasMore),r=Kf(n).slice(0,5),o=(await Promise.all(r.map(async i=>await i.loadMore()||[]))).flat();this.bufferQueue=[...this.bufferQueue,...o];}this.bufferQueue=Kf(this.bufferQueue);}return t()}async getAllFolders(){const r=(await Pn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:nu()}})).data.data.list;this.foldersLoaded=!0,this.allFolderServices=r.map(o=>new CU(o)),this.folderServices=this.allFolderServices.filter(o=>!bt.excludeFavFolderIds.includes(o.entry.id.toString())),this.total=this.folderServices.reduce((o,i)=>o+i.entry.media_count,0);}};wt(Si,"PAGE_SIZE",20);let Ya=Si;class CU{constructor(t){wt(this,"entry");wt(this,"hasMore");wt(this,"info");wt(this,"page",0);this.entry=t,this.hasMore=t.media_count>0;}async loadMore(){if(!this.hasMore)return;const n=(await Pn.get("/x/v3/fav/resource/list",{params:{media_id:this.entry.id,pn:++this.page,ps:20,keyword:"",order:"mtime",type:"0",tid:"0",platform:"web"}})).data;if(!Go(n)){yt(n.message);return}this.hasMore=n.data.has_more,this.info=n.data.info;let r=n.data.medias;return r=r.filter(o=>o.title!=="已失效视频"),r.map(o=>{var i;return {...o,folder:this.info,api:"fav",uniqId:`fav-${(i=this.info)==null?void 0:i.id}-${o.bvid}`}})}}var SU={name:"1uu99zq",styles:"margin-left:15px;cursor:pointer;font-size:12px"};function wU({allFavFolderServices:e}){const{excludeFavFolderIds:t,shuffleForFav:n}=kn(),{onRefresh:r}=cx(),[o,i]=m.useState(!1),a=it((u,d,f)=>{i(!0),Er({excludeFavFolderIds:u});}),s=e.length-t.length,l=m.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).reduce((u,d)=>u+d.entry.media_count,0),[e,t]),c=it(u=>{u?i(!1):o&&r();});return Ce(Ct,{children:[D(fh,{trigger:"click",placement:"bottom",onOpenChange:c,content:D(Ct,{children:D(yW,{dataSource:e,rowKey:u=>u.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:a,render:u=>u.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:Ce(ro,{color:"success",css:SU,children:["收藏夹(",s,") 收藏(",l,")"]})}),D(jw,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序",checked:n,onChange:u=>{Er({shuffleForFav:u}),setTimeout(()=>{r();});}})]})}const xU=hx("add"),$U=hx("remove"),mx={add:xU,remove:$U},Zf=Jh();function EU(e){const t=mr(Zf);return e&&t.has(e)}function hx(e){const t=e==="add"?5:6;return async function(r){const o=nu(),i=new URLSearchParams({fid:r,act:String(t),re_src:"11",spmid:"333.999.0.0",extend_content:JSON.stringify({entity:"user",entity_id:o,fp:OU()}),csrf:Cs()}),s=(await Pn.post("/x/relation/modify",i)).data,l=Go(s);return l||yt(s.message||"未知错误"),l&&(e==="add"?Zf.add(r):e==="remove"&&Zf.delete(r)),l}}function OU(){let e,t,n=((e=window.reportObserver)===null||e===void 0||(t=e.cache)===null||t===void 0?void 0:t.fpriskMsg)||{},r="empty";return n&&(r=n.webdriver+""+n.screenResolution+""+n.platform+""+n.hardwareConcurrency+""+n.deviceMemory+""+n.colorDepth+""+n.indexedDb+""+n.language+""+n.openDatabase+""+n.touchSupport+""+n.userAgent),decodeURIComponent(r)}const Nd={removeFav:IU,addFav:_U,getVideoFavState:PU};async function IU(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:Cs()}),o=(await Pn.post("/x/v3/fav/resource/batch-del",n)).data,i=Go(o);return i||yt(o.message||LS),i}async function PU(e){if(!Ss())return;const r=(await Pn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:nu(),type:2,rid:e}})).data.data.list.filter(a=>a.fav_state>0),o=r.map(a=>a.title),i=r.map(a=>fx(a.id));return {favFolders:r,favFolderNames:o,favFolderUrls:i}}async function RU({avid:e,add_media_ids:t="",del_media_ids:n=""}){const r=new URLSearchParams({rid:e.toString(),type:"2",add_media_ids:t,del_media_ids:n,platform:"web",eab_x:"2",ramval:"0",ga:"1",gaia_source:"web_normal",csrf:Cs()}),i=(await Pn.post("/x/v3/fav/resource/deal",r)).data,a=Go(i);return a||yt((i==null?void 0:i.message)||"fav deal api fail"),a}let kd=0,Qf="";async function _U(e){if(!kd||!Qf){const t=new Ya;await t.getAllFolders(),kd=t.folderServices[0].entry.id,Qf=t.folderServices[0].entry.title;}return await RU({avid:e,add_media_ids:kd.toString()})}var TU=1,MU=4;function NU(e){return wa(e,TU|MU)}const Ei=ur({updatedAt:0,bvidSet:Jh()});function kU(e){return mr(Ei).bvidSet.has(e)}Ss()&&setTimeout(()=>{new Za().loadMore();});const Nr=class Nr{constructor(t){wt(this,"loaded",!1);wt(this,"page",-1);wt(this,"hasMore",!0);wt(this,"count",0);wt(this,"items",[]);wt(this,"keepOrder");this.keepOrder=t??!1;}async fetch(){const n=(await Pn.get("/x/v2/history/toview/web")).data;let r=n.data.list.map(a=>({...a,api:"watchlater",uniqId:`watchlater-${a.bvid}`}));Date.now()>Ei.updatedAt&&(Ei.updatedAt=Date.now(),Ei.bvidSet=Jh(r.map(a=>a.bvid)));const o=Vo().subtract(2,"days").unix(),i=r.findIndex(a=>a.add_at<o);if(i!==-1){const a=r.slice(0,i);let s=r.slice(i);this.keepOrder&&Nr.LAST_ITEMS.length?(s=s.map(l=>({item:l,index:Nr.LAST_ITEMS.findIndex(c=>c.bvid===l.bvid)})).sort((l,c)=>l.index-c.index).map(l=>l.item),r=[...a,...s]):bt.shuffleForWatchLater&&(r=[...a,...Kf(s)]);}this.count=n.data.count,this.items=r,Nr.LAST_ITEMS=r;}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return D(AU,{count:t})}async loadMore(){if(!this.hasMore)return;this.loaded||(await this.fetch(),this.loaded=!0),this.page++;const t=this.page*Nr.PAGE_SIZE,n=t+Nr.PAGE_SIZE,r=NU(this.items.slice(t,n));return this.hasMore=n<=this.count-1,r}};wt(Nr,"PAGE_SIZE",15),wt(Nr,"LAST_ITEMS",[]);let Za=Nr;function AU({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=kn(),{onRefresh:o}=cx();return Ce(Ct,{children:[Ce(ro,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{yt(`稍后再看: ${n}`);},children:[e," / 100"]}),D(jw,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:i=>{Er({shuffleForWatchLater:i}),setTimeout(()=>{o();});}})]})}function vx(e){return {all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n]);},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]));},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n);}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n);});}}}const LU="_bili-video-card_mnvtu_1",DU="_preview-card-wrapper_mnvtu_4",zU="_preview-card-inner_mnvtu_17",jU="_watch-later_mnvtu_21",BU="_badge_mnvtu_24",HU="_recommend-reason_mnvtu_33",FU="_bangumi-desc_mnvtu_48",WU="_btn-dislike_mnvtu_51",VU="_btn-dislike-icon_mnvtu_66",UU="_btn-dislike-tip_mnvtu_73",KU="_disliked-wrapper_mnvtu_88",GU="_dislike-content-cover_mnvtu_102",XU="_dislike-content-cover-inner_mnvtu_108",qU="_dislike-icon_mnvtu_119",YU="_dislike-reason_mnvtu_122",ZU="_dislike-desc_mnvtu_126",QU="_dislike-content-action_mnvtu_130",JU="_skeleton-active_mnvtu_147",eK="_ant-skeleton-loading_mnvtu_1",jt={biliVideoCard:LU,previewCardWrapper:DU,previewCardInner:zU,watchLater:jU,badge:BU,recommendReason:HU,bangumiDesc:FU,btnDislike:WU,btnDislikeIcon:VU,btnDislikeTip:UU,dislikedWrapper:KU,dislikeContentCover:GU,dislikeContentCoverInner:XU,dislikeIcon:qU,dislikeReason:YU,dislikeDesc:ZU,dislikeContentAction:QU,skeletonActive:JU,antSkeletonLoading:eK};function tK(...e){for(const t of e)if(!isNaN(t))return t;return 0}function nK({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const i=m.useRef(null),a=cH(i),[s,l]=m.useState(()=>({width:0,height:0}));su(()=>{var f;const d=(f=i.current)==null?void 0:f.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof o=="number")c=o;else {const d=tK(a.elementX,r||0);s.width&&d&&!isNaN(d)&&(c=d/s.width,c<0&&(c=0),c>1&&(c=1));}const u={videoDuration:t,pvideo:n,elWidth:s.width,elHeight:s.height,progress:c};return D("div",{ref:i,className:F(jt.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&D(rK,{...u})})}function rK({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var C;const i=Math.floor((e||0)*o);let a=m.useMemo(()=>{const $=(t==null?void 0:t.index)||[];let x=iK($,i);return x!==-1?x:i>$[$.length-1]?(x=Math.floor($.length*o)-1,x<0&&(x=0),x):0},[t,i]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:u}=t,d=l*s;a=a+1;const f=Math.floor(a/d),h=a-f*d,v=((C=t.image)==null?void 0:C[f])||"",g=Math.floor(h/s)+1,p=h-(g-1)*s,b=n*s,y=r*l,S=(g-1)*r,E=(p-1)*n;return D("div",{className:jt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${v})`,backgroundPosition:`-${E}px -${S}px`,backgroundSize:`${b}px ${y}px`},children:D(oK,{progress:o})})}function oK({progress:e}){return D("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:D("div",{className:"bar",style:{backgroundColor:Wr,height:"100%",width:`${e*100}%`}})})}function iK(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const s=Math.floor((n+r)/2),l=e[s];if(t===l)return s;l<t?(n=s+1,o=s):r=s-1;}if(o===-1)return -1;const i=e[o],a=e[o+1]??0;return i<t&&t<a?o:-1}const Ca={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},Qa={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},aK={bangumiFollow:1.3},sK=e=>{const t=Qa[e]||Qa[1];return Ca[t]},lK=e=>{const t=Qa[e];if(t)return aK[t]};function t0(e){return {iconSvgName:sK(e),iconSvgScale:lK(e)}}var Lr=class{static av2bv(t){const n=(t^this.XOR)+this.ADD,r=["B","V","1",,,"4",,"1",,"7"];for(let o=0;o<6;o++)r[this.S[o]]=this.TABEL[Math.floor(n/58**o)%58];return r.join("")}static bv2av(t){let n=0;for(let r=0;r<6;r++)n+=this.TR[t[this.S[r]]]*58**r;return n-this.ADD^this.XOR}};Lr.TABEL="fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF";Lr.TR={};Lr.S=[11,10,3,8,4,6];Lr.XOR=177451812;Lr.ADD=8728348608;(()=>{const e=Lr.TABEL.length;for(let t=0;t<e;t++)Lr.TR[Lr.TABEL[t]]=t;})();var Ja=Lr;Ja.av2bv.bind(Ja);Ja.bv2av.bind(Ja);function gx(e,t){const n=e.api==="pc",r=e.api==="app",o=e.api==="dynamic",i=e.api==="watchlater";return e.api,n?t.pc(e):r?t.app(e):o?t.dynamic(e):i?t.watchlater(e):t.fav(e)}function px(e){return gx(e,{pc:cK,app:uK,dynamic:dK,watchlater:fK,fav:mK})}function cK(e){var t;return {avid:String(e.id),bvid:e.bvid,goto:e.goto,href:e.goto==="av"?`/video/${e.bvid}/`:e.uri,title:e.title,coverRaw:e.pic,pubts:e.pubdate,pubdateDisplay:ao(e.pubdate),duration:e.duration,durationStr:ou(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 uK(e){var i,a,s;const t=l=>{const{cover_left_icon_1:c,cover_left_text_1:u,cover_left_icon_2:d,cover_left_text_2:f}=e;if(c&&Qa[c]===l)return Vl(u);if(d&&Qa[d]===l)return Vl(f)},n=e.param,r=Ja.av2bv(Number(e.param)),o=(()=>{var l;if(e.uri.startsWith("http://")||e.uri.startsWith("https://"))return e.uri;if(e.goto==="av")return `/video/${r}/`;if(e.goto==="bangumi")return console.warn(`[${rn}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const c=(l=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:l[1];return c?`/read/cv${c}`:e.uri}return e.uri})();return {avid:n,bvid:r,goto:e.goto,href:o,title:e.title,coverRaw:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((i=e.player_args)==null?void 0:i.duration)||0,durationStr:ou((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 dK(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=Vo().subtract(2,"days").unix(),o=(()=>{const i=n.pub_ts;return i>r?n.pub_time:ao(i)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,coverRaw:t.cover,pubts:n.pub_ts,pubdateDisplay:o,duration:y8(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:Vl(t.stat.play),danmaku:Vl(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function fK(e){const t=w8(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?D(Hl,{title:Ce(Ct,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:Ce("del",{children:[e.viewed?"【已观看】· ":"",e.title,"`"]})}):void 0;return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:e.uri,title:n,titleRender:r,coverRaw:e.pic,pubts:e.pubdate,pubdateDisplay:ao(e.pubdate),pubdateDisplayTitle:`${ao(e.pubdate,!0)} 发布, ${ao(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:ou(e.duration),recommendReason:`${ao(e.add_at)} · 稍后再看`,invalidReason:t,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function mK(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:Ce(Ct,{children:["【",D(Lt,{name:"Star",size:16,theme:"two-tone",fill:["currentColor",Wr],style:{display:"inline-block",verticalAlign:"middle",marginLeft:10,marginRight:4,marginTop:-4}}),e.folder.title,"】· ",e.title]}),coverRaw:e.cover,pubts:e.pubtime,pubdateDisplay:ao(e.pubtime),duration:e.duration,durationStr:ou(e.duration),recommendReason:`${ao(e.fav_time)} · 收藏`,play:e.cnt_info.play,like:void 0,coin:void 0,danmaku:e.cnt_info.danmaku,favorite:e.cnt_info.collect,authorName:e.upper.name,authorFace:e.upper.face,authorMid:String(e.upper.mid)}}const hK=e=>(e||"").replace(/^http:\/\//,"https://");function n0(e){GM.setClipboard(e),yt(`已复制: ${e}`);}const bx=vx(),vK="--video-card-border-radius",yx=`var(${vK})`,Cx={borderRadius:yx},ec=m.memo(function({style:t,className:n,item:r,loading:o,active:i,onRemoveCurrent:a,onMoveToFirst:s,emitter:l,...c}){o=o??!r;const u=Ce("div",{className:F("bili-video-card__skeleton",{hide:!o,[jt.skeletonActive]:o}),children:[D("div",{className:"bili-video-card__skeleton--cover",style:Cx}),D("div",{className:"bili-video-card__skeleton--info",children:Ce("div",{className:"bili-video-card__skeleton--right",children:[D("p",{className:"bili-video-card__skeleton--text"}),D("p",{className:"bili-video-card__skeleton--text short"}),D("p",{className:"bili-video-card__skeleton--light"})]})})]}),d=DH((r==null?void 0:r.api)==="app"&&r.param),f=m.useMemo(()=>r&&px(r),[r]),h=EU(f==null?void 0:f.authorMid);return Ce("div",{style:t,className:F("bili-video-card",jt.biliVideoCard,n),...c,children:[u,!o&&r&&f&&(d?D(gK,{item:r,emitter:l,dislikedReason:d}):h?D(pK,{cardData:f}):D(bK,{item:r,cardData:f,active:i,emitter:l,onRemoveCurrent:a,onMoveToFirst:s}))]})}),gK=m.memo(function({dislikedReason:t,item:n,emitter:r=bx}){const o=it(async()=>{if(!(t!=null&&t.id))return;let i=!1,a;try{i=await IH(n,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),DS();i?yt("已撤销"):zS(),i&&uu.delete(n.param);});return gi(r,"cancel-dislike",o),Ce("div",{className:F(jt.dislikedWrapper),children:[D("div",{className:jt.dislikeContentCover,children:Ce("div",{className:jt.dislikeContentCoverInner,children:[D(Lt,{name:"DistraughtFace",size:32,className:jt.dislikeIcon}),D("div",{className:jt.dislikeReason,children:t==null?void 0:t.name}),D("div",{className:jt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),D("div",{className:jt.dislikeContentAction,children:Ce("button",{onClick:o,children:[D(Lt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),pK=m.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,i=it(async()=>{if(!n)return;await mx.remove(n)&&yt(`已移出黑名单: ${o}`);});return Ce("div",{className:F(jt.dislikedWrapper),children:[D("div",{className:jt.dislikeContentCover,children:Ce("div",{className:jt.dislikeContentCoverInner,children:[D(Lt,{name:"PeopleDelete",size:32,className:jt.dislikeIcon}),D("div",{className:jt.dislikeReason,children:"已拉黑"}),Ce("div",{className:jt.dislikeDesc,children:["UP: ",o]})]})}),D("div",{className:jt.dislikeContentAction,children:Ce("button",{onClick:i,children:[D(Lt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),bK=m.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:i,emitter:a=bx}){var ct,Pe;const s=t.api==="pc",l=t.api==="app";t.api,t.api,t.api;const{avid:c,bvid:u,goto:d,href:f,title:h,titleRender:v,coverRaw:g,pubdateDisplay:p,pubdateDisplayTitle:b,duration:y,durationStr:S,recommendReason:E,invalidReason:C,play:$,like:x,coin:w,danmaku:O,favorite:R,authorName:A,authorFace:_,authorMid:I,appBadge:P,appBadgeDesc:T}=n,N=d==="av";["av","bangumi","picture"].includes(d)||console.warn(`[${rn}]: none (av,bangumi,picture) goto type %s`,d,t);const M=m.useMemo(()=>hK(g),[g]),[L,z]=m.useState(null),H=m.useRef(!1),W=it(async()=>{if(!L&&!H.current)try{H.current=!0,z(await EH(c));}finally{H.current=!1;}}),B=m.useRef(null),[V,j]=m.useState(void 0);lo("mouseenter",te=>{var He;const fe=(He=B.current)==null?void 0:He.getBoundingClientRect();if(!fe)return;const{x:oe}=fe,Ee=te.pageX-window.pageXOffset-oe;j(Ee);},{target:B});const K=_d(B),{autoPreviewWhenHover:ee}=kn(),{onStartPreviewAnimation:q,onHotkeyPreviewAnimation:U,previewAnimationProgress:X}=yK({bvid:u,title:h,autoPreviewWhenHover:ee,active:r,tryFetchVideoData:W,videoPreviewWrapperRef:B});Ul(()=>{if(r){try{unsafeWindow[`${eR}_activeItem`]=t;}catch(te){console.warn("set unsafeWindow activeItem error"),console.warn(te.stack||te);}bt.autoPreviewWhenKeyboardSelect&&q();}},[r]);const ie=m.useRef(null),de=_d(ie),ge=kU(u),{accessKey:re}=kn(),se=!!re;m.useEffect(()=>{K&&W();},[K]);const ue=m.useRef(!1),Y=it(async(te,fe)=>{if(te==null||te.preventDefault(),fe??(fe=ge?yb:Ks),fe!==Ks&&fe!==yb)throw new Error("unexpected usingAction provided");if(ue.current)return;ue.current=!0;let oe=!1;try{oe=await fe(c);}finally{ue.current=!1;}if(oe){const Ee=fe===Ks;Ee?Ei.bvidSet.add(u):Ei.bvidSet.delete(u),t.api==="watchlater"&&Ee===!1&&(await Xo(100),o==null||o(t,n));}return oe}),ne=m.useRef(null),J=_d(ne),me=it(te=>{if(te==null||te.stopPropagation(),te==null||te.preventDefault(),!we)return t.api!=="app"?yt("当前视频不支持提交「我不想看」"):se?void 0:yt("请先获取 access_key");HH(t);}),he=m.useMemo(()=>Id($),[$]),ye=m.useMemo(()=>Id(x),[x]),Re=m.useMemo(()=>Id(R),[R]),Be=s?ye:Re,_e=({text:te,iconSvgName:fe,iconSvgScale:oe})=>Ce("span",{className:"bili-video-card__stats--item",children:[D("svg",{className:"bili-video-card__stats--icon",style:{transform:oe?`scale(${oe})`:void 0},children:D("use",{href:fe})}),D("span",{className:"bili-video-card__stats--text",children:te})]}),[ae,ve]=m.useState(void 0),[be,Se]=m.useState(void 0),Ae=it(async()=>{if(t.api!=="watchlater")return;const te=await Nd.getVideoFavState(c);if(te){const{favFolderNames:fe,favFolderUrls:oe}=te;ve(fe),Se(oe);}}),ke=it(()=>{window.open(f,"_blank");});gi(a,"open",ke),gi(a,"toggle-watch-later",()=>Y()),gi(a,"trigger-dislike",()=>me()),gi(a,"start-preview-animation",q),gi(a,"hotkey-preview-animation",U);const we=l&&se&&((Pe=(ct=t.three_point)==null?void 0:ct.dislike_reasons)==null?void 0:Pe.length),Ie=it(()=>{let te=f;f.startsWith("/")&&(te=new URL(f,location.href).href),n0(te);}),Fe=it(()=>{let te=f;t.api==="watchlater"&&(te=`/video/${t.bvid}`);const fe=new URL(te,location.href).href,oe=`iina://open?url=${encodeURIComponent(fe)}`;window.open(oe,"_self");}),xe=$s(),Me=xe==="recommend-app"||xe==="recommend-pc",tt=it(async()=>{if(!I)return yt("UP mid 为空!");await mx.add(I)&&yt(`已加入黑名单: ${A}`);}),ut=m.useMemo(()=>{const te=ge?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:D(Lt,{name:"EfferentFour",size:15}),onClick:ke},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:D(Lt,{name:"Copy",size:15}),onClick:Ie},{key:"copy-bvid",label:"复制 BVID",icon:D(Lt,{name:"Copy",size:15}),onClick(){n0(u);}},{type:"divider"},we&&{key:"dislike",label:"我不想看",icon:D(Lt,{name:"DislikeTwo",size:15}),onClick(){me();}},Me&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:D(Lt,{name:"PeopleDelete",size:15}),onClick(){tt();}},t.api==="watchlater"&&{key:"add-fav",icon:D(Lt,{name:"Star",size:15,...ae!=null&&ae.length?{theme:"two-tone",fill:["currentColor",Wr]}:void 0}),label:ae!=null&&ae.length?`已收藏 ${ae.map(fe=>`「${fe}」`).join("")}`:"快速收藏",async onClick(){!!(ae!=null&&ae.length)?be==null||be.forEach(oe=>{window.open(oe,"_blank");}):await Nd.addFav(c)&&yt(`已加入收藏夹「${Qf}」`);}},{key:"watchlater",label:te,icon:D(Lt,{name:ge?"Delete":"FileCabinet",size:15}),onClick(){Y();}},t.api==="watchlater"&&ge&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:D(Lt,{name:"AddTwo",size:15}),async onClick(){await Y(void 0,Ks)&&(i==null||i(t,n));}},...t.api==="fav"?[{type:"divider"},{key:"open-fav-folder",label:"浏览收藏夹",icon:D(Lt,{name:"EfferentFour",size:15}),onClick(){const{id:fe}=t.folder,oe=fx(fe);window.open(oe,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:D(Lt,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await Nd.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...Rj?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:D(Lt,{name:"PlayTwo",size:15}),onClick:Fe}]:[]].filter(Boolean)},[t,ge,we,Me,ae,be]),qe=it(te=>{te&&Ae();});return Ce("div",{className:"bili-video-card__wrap __scale-wrap",children:[D(Aw,{menu:{items:ut},trigger:["contextMenu"],onOpenChange:qe,children:D("a",{href:f,target:"_blank",children:Ce("div",{className:"bili-video-card__image __scale-player-wrap",ref:B,style:{...Cx,aspectRatio:"16 / 9"},children:[Ce("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[Ce("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!Uh&&D("source",{srcSet:`${M}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),D("source",{srcSet:`${M}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),D("img",{src:`${M}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(K||typeof X=="number")&&D(nK,{videoDuration:y,pvideo:L==null?void 0:L.pvideoData,mouseEnterRelativeX:V,previewAnimationProgress:X}),Ce("div",{className:`bili-watch-later ${jt.watchLater}`,style:{display:K||r?"flex":"none"},ref:ie,onClick:Y,children:[D("svg",{className:"bili-watch-later__icon",children:D("use",{href:ge?"#widget-watch-save":"#widget-watch-later"})}),D("span",{className:"bili-watch-later__tip",style:{display:de?"block":"none"},children:ge?"移除稍后再看":"稍后再看"})]}),we&&Ce("div",{ref:ne,className:jt.btnDislike,onClick:me,style:{display:K?"flex":"none"},children:[D("svg",{className:jt.btnDislikeIcon,children:D("use",{href:"#widget-close"})}),D("span",{className:jt.btnDislikeTip,style:{display:J?"block":"none"},children:"我不想看"})]})]}),D("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:Ce("div",{className:"bili-video-card__stats",children:[D("div",{className:"bili-video-card__stats--left",children:s?Ce(Ct,{children:[_e({text:he,iconSvgName:Ca.play}),_e({text:d==="av"?ye:Be,iconSvgName:Ca.like})]}):l?Ce(Ct,{children:[t.cover_left_text_1&&_e({...t0(t.cover_left_icon_1),text:d==="picture"?t.cover_left_text_1+(t.cover_left_1_content_description||""):t.cover_left_text_1}),t.cover_left_text_2&&_e({...t0(t.cover_left_icon_2),text:d==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]}):Ce(Ct,{children:[_e({text:he,iconSvgName:Ca.play}),_e({text:(O||0).toString(),iconSvgName:Ca.danmaku})]})}),D("span",{className:"bili-video-card__stats__duration",children:N&&S})]})})]})})}),D("div",{className:"bili-video-card__info __scale-disable",children:Ce("div",{className:"bili-video-card__info--right",children:[D("a",{href:f,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:D("h3",{className:"bili-video-card__info--tit",title:h,children:v??h})}),D("p",{className:"bili-video-card__info--bottom",children:N?Ce("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${I}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",title:`${A} ${b||p}`,children:[E?D("span",{className:jt.recommendReason,children:E}):D("svg",{className:"bili-video-card__info--owner__up",children:D("use",{href:"#widget-up"})}),D("span",{className:"bili-video-card__info--author",children:A}),p&&Ce("span",{className:"bili-video-card__info--date",children:["· ",p]})]}):P||T?Ce("a",{className:"bili-video-card__info--owner",href:f,target:"_blank",children:[D("span",{className:jt.badge,children:P||""}),D("span",{className:jt.bangumiDesc,children:T||""})]}):null})]})})]})});function yK({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:i}){const[s,l]=nw(void 0),[c,u]=m.useState(!1),d=m.useRef(!1),f=m.useRef(!1);lo("mouseenter",w=>{d.current=!0,n&&!v.current&&x(!0);},{target:i}),lo("mouseleave",w=>{d.current=!1;},{target:i}),lo("mousemove",w=>{u(!0),n||p();},{target:i});const h=dH(),v=m.useRef(void 0),g=it(()=>{if(h.current)return !0;if(n){if(f.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),p=it((w=!1)=>{v.current&&cancelAnimationFrame(v.current),v.current=void 0,l(void 0),y(!1);}),[b,y,S]=ew(!1),E=m.useRef(),C=it(()=>{var w;if(!v.current){x();return}y(O=>!O),b&&((w=E.current)==null||w.call(E,s||0));}),$=it(()=>s||0),x=it((w=!1)=>{f.current=w,u(!1),y(!1),o(),p(!0),l(P=>typeof P>"u"?0:P);const O=8e3,R=()=>typeof bt.autoPreviewUpdateInterval=="number"?bt.autoPreviewUpdateInterval:400;let A=performance.now(),_=0;E.current=()=>{A=performance.now()-$()*O;};function I(P){if(g()){p();return}const T=()=>{const N=performance.now()-A,M=Math.min(N%O/O,1);l(M);};S()||(R()?(!_||performance.now()-_>=R())&&(_=performance.now(),T()):T()),v.current=requestAnimationFrame(I);}v.current=requestAnimationFrame(I);});return {onHotkeyPreviewAnimation:C,onStartPreviewAnimation:x,previewAnimationProgress:s}}var CK=1,SK=2;function wK(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return !i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return !1}for(;++o<i;){s=n[o];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return !1}else {var d=new Sr;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?cu(u,c,CK|SK,r,d):f))return !1}}return !0}function Sx(e){return e===e&&!Qn(e)}function xK(e){for(var t=os(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Sx(o)];}return t}function wx(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function $K(e){var t=xK(e);return t.length==1&&t[0][2]?wx(t[0][0],t[0][1]):function(n){return n===e||wK(n,e,t)}}function EK(e,t,n){var r=e==null?void 0:xc(e,t);return r===void 0?n:r}var OK=1,IK=2;function PK(e,t){return Rm(e)&&Sx(t)?wx(Gi(e),t):function(n){var r=EK(n,e);return r===void 0&&r===t?sy(n,e):cu(t,r,OK|IK)}}function RK(e){return function(t){return t==null?void 0:t[e]}}function _K(e){return function(t){return xc(t,e)}}function TK(e){return Rm(e)?RK(Gi(e)):_K(e)}function MK(e){return typeof e=="function"?e:e==null?ry:typeof e=="object"?Jn(e)?PK(e[0],e[1]):$K(e):TK(e)}function NK(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 kK(e){return e!==e}function AK(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}function LK(e,t,n){return t===t?AK(e,t,n):NK(e,kK,n)}function DK(e,t){var n=e==null?0:e.length;return !!n&&LK(e,t,0)>-1}function zK(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return !0;return !1}var jK=1/0,BK=xi&&1/Yh(new xi([,-0]))[1]==jK?function(e){return new xi(e)}:Xw;const HK=BK;var FK=200;function WK(e,t,n){var r=-1,o=DK,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=zK;else if(i>=FK){var c=t?null:HK(e);if(c)return Yh(c);a=!1,o=QS,l=new Xa;}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u);}else o(l,d,n)||(l!==s&&l.push(d),s.push(u));}return s}function bu(e,t){return e&&e.length?WK(e,MK(t)):[]}const fv="_video-grid_t2sr7_9",xx="_video-grid-new-homepage_t2sr7_17",VK="_limit-two-lines_t2sr7_20",$x="_video-grid-internal-testing_t2sr7_52";const r0="_video-grid-container_t2sr7_80",UK="_video-grid-youtube-like_t2sr7_84",KK="_narrow-mode_t2sr7_112";function GK({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:i,changeScrollY:a,videoCardEmitters:s}){const[l,c]=m.useState(void 0),u=it(()=>!(!e||ru())),d=it(()=>{var x;if(typeof l!="number"||!o.current)return !1;const C=i(),$=(x=o.current.querySelector(`.${Ii.card}.${Ii.cardActive}`))==null?void 0:x.getBoundingClientRect();return !(!C||!$||$.top-C.top<-(C.height+$.height)||$.top-C.top>C.height*2+$.height)}),f=C=>$=>{if(!u())return;$==null||$.preventDefault();let x=typeof C=="number"?C:C();const w=d()?l+x:p();if(w<n){E(n);return}if(w>r){E(r);return}c(w),E(w);};Zt("leftarrow",f(-1),{exactMatch:!0}),Zt("rightarrow",f(1),{exactMatch:!0}),Zt("tab",f(1),{exactMatch:!0}),Zt("shift.tab",f(-1),{exactMatch:!0});const h=()=>mv(o.current);Zt("uparrow",f(()=>-h()),{exactMatch:!0}),Zt("downarrow",f(h),{exactMatch:!0});const v=()=>{u()&&c(void 0);},g=()=>{if(!(!u()||typeof l!="number"))return s[l]};Zt("esc",v),Zt("enter",()=>{var C;!u()||typeof l!="number"||(C=g())==null||C.emit("open");}),Zt("backspace",()=>{var C;!u()||typeof l!="number"||(C=g())==null||C.emit("trigger-dislike");}),Zt(["s","w"],()=>{var C;!u()||typeof l!="number"||(C=g())==null||C.emit("toggle-watch-later");},{exactMatch:!0}),Zt(["period","p"],()=>{var C;!u()||typeof l!="number"||(C=g())==null||C.emit("hotkey-preview-animation");},{exactMatch:!0});function p(){const C=i();if(!C)return 0;const $=y();for(let x=0;x<$.length;x++)if($[x].getBoundingClientRect().top>=C.top)return x;return 0}const b=`.${Ii.card}`;function y(){var C;return [...((C=o.current)==null?void 0:C.querySelectorAll(b))||[]]}function S(C){return y()[C]}function E(C){var O;const $=S(C);(O=$==null?void 0:$.scrollIntoViewIfNeeded)==null||O.call($,!1);const x=i(),w=$.getBoundingClientRect();if(!(!x||!w)){if(w.top<=x.top){const R=-(x.top-w.top+10);a==null||a({offset:R});return}if(x.bottom-w.bottom<10){const R=10-(x.bottom-w.bottom);a==null||a({offset:R});return}}}return {activeIndex:l,clearActiveIndex:v}}const XK=new Map,qK=new Map;function mv(e,t=!0){if(t&&bt.useNarrowMode)return 2;const n=bt.styleUseYoutubeLikeCard?XK:qK;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${fv}`)),!e)return 0;const o=window.getComputedStyle(e);return o.display!=="grid"?0:(r=o.gridTemplateColumns.split(" ").length,n.set(window.innerWidth,r),r)}function Ex(e){return e==="onlyFollow"||bt.filterMinDurationEnabled||bt.filterMinPlayCountEnabled||bt.filterOutGotoTypePicture}function Ox(e,t){return Ex(t)?e.filter(n=>{const{play:r,duration:o,recommendReason:i,goto:a}=px(n),s=i==="已关注"||(i==null?void 0:i.includes("关注"));if(t==="onlyFollow"&&!s)return !1;const l=a==="av",c=a==="picture";if(l)return u();if(c)return d();return !0;function u(){return s&&!bt.enableFilterForFollowedVideo?!0:!(bt.filterMinPlayCountEnabled&&bt.filterMinPlayCount&&typeof r=="number"&&r<bt.filterMinPlayCount||bt.filterMinDurationEnabled&&bt.filterMinDuration&&o&&o<bt.filterMinDuration)}function d(){return bt.filterOutGotoTypePicture?!!(s&&!bt.enableFilterForFollowedPicture):!0}}):e}var yu={exports:{}},hv={exports:{}},Ix={exports:{}},Jt=Ix.exports={},vr,gr;function Jf(){throw new Error("setTimeout has not been defined")}function em(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?vr=setTimeout:vr=Jf;}catch{vr=Jf;}try{typeof clearTimeout=="function"?gr=clearTimeout:gr=em;}catch{gr=em;}})();function Px(e){if(vr===setTimeout)return setTimeout(e,0);if((vr===Jf||!vr)&&setTimeout)return vr=setTimeout,setTimeout(e,0);try{return vr(e,0)}catch{try{return vr.call(null,e,0)}catch{return vr.call(this,e,0)}}}function YK(e){if(gr===clearTimeout)return clearTimeout(e);if((gr===em||!gr)&&clearTimeout)return gr=clearTimeout,clearTimeout(e);try{return gr(e)}catch{try{return gr.call(null,e)}catch{return gr.call(this,e)}}}var Ar=[],Oi=!1,Io,pl=-1;function ZK(){!Oi||!Io||(Oi=!1,Io.length?Ar=Io.concat(Ar):pl=-1,Ar.length&&Rx());}function Rx(){if(!Oi){var e=Px(ZK);Oi=!0;for(var t=Ar.length;t;){for(Io=Ar,Ar=[];++pl<t;)Io&&Io[pl].run();pl=-1,t=Ar.length;}Io=null,Oi=!1,YK(e);}}Jt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ar.push(new _x(e,t)),Ar.length===1&&!Oi&&Px(Rx);};function _x(e,t){this.fun=e,this.array=t;}_x.prototype.run=function(){this.fun.apply(null,this.array);};Jt.title="browser";Jt.browser=!0;Jt.env={};Jt.argv=[];Jt.version="";Jt.versions={};function Gr(){}Jt.on=Gr;Jt.addListener=Gr;Jt.once=Gr;Jt.off=Gr;Jt.removeListener=Gr;Jt.removeAllListeners=Gr;Jt.emit=Gr;Jt.prependListener=Gr;Jt.prependOnceListener=Gr;Jt.listeners=function(e){return []};Jt.binding=function(e){throw new Error("process.binding is not supported")};Jt.cwd=function(){return "/"};Jt.chdir=function(e){throw new Error("process.chdir is not supported")};Jt.umask=function(){return 0};var QK=Ix.exports;const Ad=sn(QK);var tm;typeof Object.create=="function"?tm=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:tm=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const Tx=tm;var JK=/%[sdj%]/g;function Vi(e){if(!Ps(e)){for(var t=[],n=0;n<arguments.length;n++)t.push($r(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,i=String(e).replace(JK,function(s){if(s==="%%")return "%";if(n>=o)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return "[Circular]"}default:return s}}),a=r[n];n<o;a=r[++n])Is(a)||!Yo(a)?i+=" "+a:i+=" "+$r(a);return i}function vv(e,t){if(yr(global.process))return function(){return vv(e,t).apply(this,arguments)};if(Ad.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(Ad.throwDeprecation)throw new Error(t);Ad.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var Zs={},Ld;function Mx(e){if(yr(Ld)&&(Ld={}.NODE_DEBUG||""),e=e.toUpperCase(),!Zs[e])if(new RegExp("\\b"+e+"\\b","i").test(Ld)){var t=0;Zs[e]=function(){var n=Vi.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else Zs[e]=function(){};return Zs[e]}function $r(e,t){var n={seen:[],stylize:tG};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Cu(t)?n.showHidden=t:t&&yv(n,t),yr(n.showHidden)&&(n.showHidden=!1),yr(n.depth)&&(n.depth=2),yr(n.colors)&&(n.colors=!1),yr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=eG),tc(n,e,n.depth)}$r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};$r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function eG(e,t){var n=$r.styles[t];return n?"\x1B["+$r.colors[n][0]+"m"+e+"\x1B["+$r.colors[n][1]+"m":e}function tG(e,t){return e}function nG(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function tc(e,t,n){if(e.customInspect&&t&&Na(t.inspect)&&t.inspect!==$r&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return Ps(r)||(r=tc(e,r,n)),r}var o=rG(e,t);if(o)return o;var i=Object.keys(t),a=nG(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),Ma(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Dd(t);if(i.length===0){if(Na(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Ta(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(nc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ma(t))return Dd(t)}var l="",c=!1,u=["{","}"];if(gv(t)&&(c=!0,u=["[","]"]),Na(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(Ta(t)&&(l=" "+RegExp.prototype.toString.call(t)),nc(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Ma(t)&&(l=" "+Dd(t)),i.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return Ta(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return c?f=oG(e,t,n,a,i):f=i.map(function(h){return nm(e,t,n,a,h,c)}),e.seen.pop(),iG(f,l,u)}function rG(e,t){if(yr(t))return e.stylize("undefined","undefined");if(Ps(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(pv(t))return e.stylize(""+t,"number");if(Cu(t))return e.stylize(""+t,"boolean");if(Is(t))return e.stylize("null","null")}function Dd(e){return "["+Error.prototype.toString.call(e)+"]"}function oG(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)zx(t,String(a))?i.push(nm(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(l){l.match(/^\d+$/)||i.push(nm(e,t,n,r,l,!0));}),i}function nm(e,t,n,r,o,i){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},l.get?l.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),zx(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(Is(n)?s=tc(e,l.value,null):s=tc(e,l.value,n-1),s.indexOf(`
`)>-1&&(i?s=s.split(`
`).map(function(c){return "  "+c}).join(`
`).substr(2):s=`
`+s.split(`
`).map(function(c){return "   "+c}).join(`
`))):s=e.stylize("[Circular]","special")),yr(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"));}return a+": "+s}function iG(e,t,n){var r=e.reduce(function(o,i){return i.indexOf(`
`)>=0,o+i.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(t===""?"":t+`
 `)+" "+e.join(`,
  `)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function gv(e){return Array.isArray(e)}function Cu(e){return typeof e=="boolean"}function Is(e){return e===null}function Nx(e){return e==null}function pv(e){return typeof e=="number"}function Ps(e){return typeof e=="string"}function kx(e){return typeof e=="symbol"}function yr(e){return e===void 0}function Ta(e){return Yo(e)&&bv(e)==="[object RegExp]"}function Yo(e){return typeof e=="object"&&e!==null}function nc(e){return Yo(e)&&bv(e)==="[object Date]"}function Ma(e){return Yo(e)&&(bv(e)==="[object Error]"||e instanceof Error)}function Na(e){return typeof e=="function"}function Ax(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function Lx(e){return Buffer.isBuffer(e)}function bv(e){return Object.prototype.toString.call(e)}function zd(e){return e<10?"0"+e.toString(10):e.toString(10)}var aG=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function sG(){var e=new Date,t=[zd(e.getHours()),zd(e.getMinutes()),zd(e.getSeconds())].join(":");return [e.getDate(),aG[e.getMonth()],t].join(" ")}function Dx(){console.log("%s - %s",sG(),Vi.apply(null,arguments));}function yv(e,t){if(!t||!Yo(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function zx(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const lG={inherits:Tx,_extend:yv,log:Dx,isBuffer:Lx,isPrimitive:Ax,isFunction:Na,isError:Ma,isDate:nc,isObject:Yo,isRegExp:Ta,isUndefined:yr,isSymbol:kx,isString:Ps,isNumber:pv,isNullOrUndefined:Nx,isNull:Is,isBoolean:Cu,isArray:gv,inspect:$r,deprecate:vv,format:Vi,debuglog:Mx},cG=Object.freeze(Object.defineProperty({__proto__:null,_extend:yv,debuglog:Mx,default:lG,deprecate:vv,format:Vi,inherits:Tx,inspect:$r,isArray:gv,isBoolean:Cu,isBuffer:Lx,isDate:nc,isError:Ma,isFunction:Na,isNull:Is,isNullOrUndefined:Nx,isNumber:pv,isObject:Yo,isPrimitive:Ax,isRegExp:Ta,isString:Ps,isSymbol:kx,isUndefined:yr,log:Dx},Symbol.toStringTag,{value:"Module"})),uG=e$(cG);var dG=uG.format;function fG(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function mG(e,t){return function(){var n=this,r=[].slice.call(arguments);fG();var o=new AbortController;return r.push(o.signal),new Promise(function(i,a){var s=setTimeout(function(){var l=new jx(t);a(l),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(l){clearTimeout(s),i(l);},function(l){clearTimeout(s),a(l);});})}}let jx=class Bx extends Error{constructor(t){super(),this.timeout=t,this.message=dG("timeout of %sms exceed",t),Error.captureStackTrace(this,Bx);}};hv.exports=mG;hv.exports.TimeoutError=jx;var hG=hv.exports;const Hx=hG,vG=Hx.TimeoutError;yu.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,i=n.timeout;i&&(t=Hx(t,i));const a=n.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(o);for(let u=0;u<o;u++){let d,f;try{d=await t.apply(s,l);}catch(h){f=h;}if(!f)return d;if(f instanceof TypeError)throw f;if(f instanceof gG)throw f.originalError;c[u]=f,a&&a(f,u);}throw new Fx({times:o,timeout:i,fn:r,errors:c})}};class Fx 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 gG 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 pG=yu.exports.RetryError=Fx;yu.exports.TimeoutError=vG;var bG=yu.exports;const yG=sn(bG);class Cv extends Error{constructor(n){super();wt(this,"json");Error.captureStackTrace(this,Cv),this.json=n,this.message=n.message||JSON.stringify(n);}}async function CG(){var r;const t=(await tu.get(cy+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)+"0"+Math.trunc(Math.random()*1e3).toString().padStart(3,"0")}})).data;if(!t.data){if(t.code===-663)throw new Cv(t);return yt(`${rn}: 未知错误, 请联系开发者

  code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const SG=yG(CG,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",rn,t,e);}});async function wG(){try{return await SG()}catch(e){if(e instanceof pG){console.error(e.errors);const t=[Vi("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>Vi("  %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(`
`);yt(t,5e3);}throw e}}class rc{constructor(){wt(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommendTimes(t){let n=[];return await(async()=>{n=(await Promise.all(new Array(t).fill(0).map(()=>wG()))).flat();})(),n=bu(n,o=>o.param),n.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}}wt(rc,"PAGE_SIZE",10);const oc=class oc{constructor(){wt(this,"page",0);wt(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommend(t=void 0){var a,s;const n=++this.page,o=(await Pn.get("/x/web-interface/wbi/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:oc.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (a=o.data)!=null&&a.item||yt(o.message||"API 请求没有返回结果"),((s=o.data)==null?void 0:s.item)||[]}async getRecommendTimes(t,n=void 0){let r=[];return await(async()=>{r=(await Promise.all(new Array(t).fill(0).map(()=>this.getRecommend(n)))).flat();})(),r=bu(r,i=>i.id),r.forEach(i=>{var a,s;((a=i.rcmd_reason)==null?void 0:a.reason_type)===1&&((s=i.rcmd_reason).content||(s.content="已关注"));}),r.map(i=>({...i,uniqId:i.id+"-"+crypto.randomUUID(),api:"pc"}))}};wt(oc,"PAGE_SIZE",14);let es=oc;const Qs=Xi.extend("service"),bl=e=>gx(e,{pc:t=>t.id,app:t=>t.param,dynamic:t=>t.modules.module_dynamic.major.archive.aid,watchlater:t=>t.bvid,fav:t=>t.bvid});function xG(e,t){const n=e.map(bl);return t=bu(t,bl),e.concat(t.filter(r=>!n.includes(bl(r))))}const rm=e=>e==="onlyFollow"||e==="recommend-pc";async function Wx(e,t,n=5){const{pcRecService:r,dynamicFeedService:o,watchLaterService:i,favService:a,tab:s,abortSignal:l}=t,c=new rc;let u=[],d=!0;const f=async h=>{let v=[];if(s==="dynamic"){v=await o.loadMore(l)||[],d=o.hasMore,u=u.concat(v);return}if(s==="watchlater"){v=await i.loadMore()||[],d=i.hasMore,u=u.concat(v);return}if(s==="fav"){v=await a.loadMore()||[],d=a.hasMore,u=u.concat(v);return}let g;if(s==="onlyFollow")g=8,Qs("getMinCount: addMore(restCount = %s) times=%s",h,g);else {const p=rm(s)?es.PAGE_SIZE:rc.PAGE_SIZE,b=Ex(s)?n:1.2;g=Math.ceil(h*b/p),Qs("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",h,b,p,g);}v=rm(s)?await r.getRecommendTimes(g,l):await c.getRecommendTimes(g),v=Ox(v,s),u=u.concat(v),u=bu(u,bl);};for(await f(e);;){if(l!=null&&l.aborted){Qs("getMinCount: break for abortSignal");break}if(!d){Qs("getMinCount: break for tab=%s hasMore=false",s);break}if(u.length>=e)break;await f(e-u.length);}return u}async function $G(e){let t=await Wx(mv(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function EG(e){return Wx(mv()*3+1,e,5)}async function OG(e,t,n){let r=rm(t)?await n.getRecommendTimes(e):await new rc().getRecommendTimes(e);return r=Ox(r,t),r}var om=new Map,Js=new WeakMap,o0=0,IG=void 0;function PG(e){return e?(Js.has(e)||(o0+=1,Js.set(e,o0.toString())),Js.get(e)):"0"}function RG(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?PG(e.root):e[t]}`).toString()}function _G(e){let t=RG(e),n=om.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(s=>{var l;const c=s.isIntersecting&&o.some(u=>s.intersectionRatio>=u);e.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=c),(l=r.get(s.target))==null||l.forEach(u=>{u(c,s);});});},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},om.set(t,n);}return n}function TG(e,t,n={},r=IG){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:o,observer:i,elements:a}=_G(n);let s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),i.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),om.delete(o));}}function MG({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:s,fallbackInView:l,onChange:c}={}){var u;const[d,f]=m__namespace.useState(null),h=m__namespace.useRef(),[v,g]=m__namespace.useState({inView:!!s,entry:void 0});h.current=c,m__namespace.useEffect(()=>{if(a||!d)return;let S;return S=TG(d,(E,C)=>{g({inView:E,entry:C}),h.current&&h.current(E,C),C.isIntersecting&&i&&S&&(S(),S=void 0);},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{S&&S();}},[Array.isArray(e)?e.toString():e,d,o,r,i,a,n,l,t]);const p=(u=v.entry)==null?void 0:u.target,b=m__namespace.useRef();!d&&p&&!i&&!a&&b.current!==p&&(b.current=p,g({inView:!!s,entry:void 0}));const y=[f,v.inView,v.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}function NG(e){const t=m.useRef(null);return t.current||(t.current=e()),t}class im{constructor(){wt(this,"offset","");wt(this,"page",0);wt(this,"hasMore",!0);}async loadMore(t=void 0){if(!this.hasMore)return;this.page++;const n={timezone_offset:"-480",type:"video",features:"itemOpusStyle",page:this.page};this.offset&&(n.offset=this.offset);const o=(await Pn.get("/x/polymer/web-dynamic/v1/feed/all",{signal:t,params:n})).data;return this.hasMore=o.data.has_more,this.offset=o.data.offset,o.data.items.map(s=>({...s,api:"dynamic",uniqId:s.id_str||crypto.randomUUID()}))}}wt(im,"PAGE_SIZE",15);function Vx({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:i,setUpperRefreshing:a}){const s=o9(),l=NG(()=>({})),[c,u]=m.useState(!0),[d,f]=m.useState([]),[h,v]=m.useState(()=>new es),[g,p]=m.useState(()=>new im),[b,y]=m.useState(()=>new Za),[S,E]=m.useState(()=>new Ya),[C,$]=m.useState(!1),[x,w,O]=ew(()=>Date.now()),[R,A]=m.useState(s),[_,I]=m.useState(()=>new AbortController),[P,T]=m.useState(!1),[N,M]=m.useState(void 0),L=it(async(z=!1,H)=>{var ne;const W=performance.now();if(C)if(s===R){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",s);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",R,s),_.abort();else e("refresh(): [start] tab = %s",s);await(i==null?void 0:i());const B=J=>{$(J),a==null||a(J);};B(!0),w(Date.now()),A(s),f([]),M(void 0),u(!0),await(r==null?void 0:r());let V=[],j;const K=!!(z&&((ne=l.current[s])!=null&&ne.length)),ee=!!(K&&(xb[s].swr||s==="fav"));T(ee);const q=K&&(ee||s==="fav"),U=async()=>{try{V=await n(ue);}catch(J){j=J;}},X=t?new es:h;t&&v(X);let ie=g;s==="dynamic"&&(ie=new im,p(ie));let de=b;s==="watchlater"&&(de=new Za(H==null?void 0:H.watchlaterKeepOrder),y(de));let ge=S;s==="fav"&&(K?ge.restore():(ge=new Ya,E(ge)));const re=new AbortController,se=re.signal;I(re);const ue={tab:s,pcRecService:X,dynamicFeedService:ie,watchLaterService:de,favService:ge,abortSignal:se};if(e("refresh(): shouldReuse=%s swr=%s",K,ee),K?(V=l.current[s]||[],f(V),q&&await U()):(l.current[s]=[],await U()),se.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}if(B(!1),j){console.error(j),M(j);return}f(V),xb[s].swr?l.current[s]=V.slice(0,30):l.current[s]=V,s==="dynamic"&&u(ie.hasMore),s==="dynamic"&&u(ie.hasMore),s==="fav"&&u(ge.hasMore),await(o==null?void 0:o());const Y=performance.now()-W;e("refresh(): [success] cost %s ms",Y.toFixed(0));});return {items:d,itemsCache:l,setItems:f,error:N,refreshedAt:x,setRefreshedAt:w,getRefreshedAt:O,refreshing:C,setRefreshing:$,refreshFor:R,setRefreshFor:A,refreshAbortController:_,setRefreshAbortController:I,hasMore:c,setHasMore:u,swr:P,setSwr:T,pcRecService:h,dynamicFeedService:g,watchLaterService:b,favService:S,setPcRecService:v,setDynamicFeedService:p,setWatchLaterService:y,setFavService:E,refresh:L}}const pa=Xi.extend("components:RecGrid"),Ii={card:fb`
    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:fb`
    border-color: ${Wr};
    border-radius: ${yx};
    overflow: hidden;
  `};var kG={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const Ux=m.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:i,setExtraInfo:a},s)=>{const{useNarrowMode:l,styleUseYoutubeLikeCard:c}=kn(),u=$s(),[d,f]=m.useState(0),h=it(async()=>{V(),a==null||a();}),v=it(()=>{V(),f(1),u==="watchlater"&&(a==null||a(A.usageInfo)),u==="fav"&&(a==null||a(_.usageInfo)),N();}),{refresh:g,items:p,setItems:b,error:y,refreshing:S,refreshedAt:E,getRefreshedAt:C,swr:$,hasMore:x,setHasMore:w,pcRecService:O,dynamicFeedService:R,watchLaterService:A,favService:_}=Vx({tab:u,debug:pa,fetcher:EG,recreateService:!0,preAction:h,postAction:v,onScrollToTop:n,setUpperRefreshing:i});su(g),m.useImperativeHandle(s,()=>({refresh:g}),[]);const I=m.useRef();lo("visibilitychange",re=>{if(!(document.visibilityState==="visible")){I.current=Date.now();return}S||P.current[E]||u==="watchlater"&&I.current&&Date.now()-I.current>Fm("1h")&&g(!0,{watchlaterKeepOrder:!0});},{target:document});const P=m.useRef({}),T=it(async()=>{if(!x||S)return;const re=E;if(P.current[re])return;P.current={[re]:!0};let se=p,ue=!0;try{if(u==="dynamic")se=se.concat(await R.loadMore()||[]),ue=R.hasMore;else if(u==="watchlater")se=se.concat(await A.loadMore()||[]),ue=A.hasMore;else if(u==="fav")se=se.concat(await _.loadMore()||[]),ue=_.hasMore;else for(;!(se.length>p.length);){const ne=await OG(u==="onlyFollow"?5:2,u,O);se=xG(se,ne);}}catch(Y){throw P.current[re]=!1,Y}if(re!==C()){pa("loadMore: skip update for mismatch refreshedAt, %s != %s",re,C());return}pa("loadMore: seq(%s) len %s -> %s",d+1,p.length,se.length),w(ue),b(se),f(Y=>Y+1),P.current[re]=!1,N();}),N=it(async()=>{await Xo(Uh?100:50),pa("checkShouldLoadMore(): footerInView = %s",X.current),X.current&&T();}),M=m.useRef(null),L=it(()=>{var re;if(e){const se=sx()+50;return new DOMRect(0,se,window.innerWidth,window.innerHeight-se)}else return (re=o==null?void 0:o.current)==null?void 0:re.getBoundingClientRect()}),z=jH(),H=m.useMemo(()=>new Map,[E]),W=m.useMemo(()=>p.map(({uniqId:re})=>H.get(re)||(()=>{const se=vx();return H.set(re,se),se})()),[p]),{activeIndex:B,clearActiveIndex:V}=GK({enabled:t&&!z,refresh:g,maxIndex:p.length-1,containerRef:M,getScrollerRect:L,videoCardEmitters:W,changeScrollY:e?function({offset:re,absolute:se}){const ue=document.documentElement;if(typeof re=="number"){ue.scrollTop+=re;return}if(typeof se=="number"){ue.scrollTop=se;return}}:void 0}),j=Fi(),K=it((re,se)=>{b(ue=>{const Y=ue.findIndex(J=>J.uniqId===re.uniqId);if(Y===-1)return ue;let ne=ue.slice();return ne.splice(Y,1),yt(`已移除: ${se.title}`,4e3),u==="watchlater"&&(A.count--,a==null||a(A.usageInfo)),u==="fav"&&(_.total--,a==null||a(_.usageInfo)),ne});}),ee=it((re,se)=>{b(ue=>{const Y=ue.find(me=>me.uniqId===re.uniqId);if(!Y)return ue;const ne=ue.indexOf(Y),J=ue.slice();return J.splice(ne,1),J.unshift(Y),J});}),{ref:q,inView:U}=MG({root:e?null:(o==null?void 0:o.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(re){re&&(pa("footerInView change to visible",re),T());}}),X=Wi(U),ie=D("div",{ref:q,css:kG,children:!S&&D(Ct,{children:x?Ce(Ct,{children:[D(Lt,{name:"Loading",fill:Wr,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),de=F(`${rn}-video-grid`,fv,c?UK:j?$x:xx,l&&KK,r);return !p.length||y||S&&!$?D("div",{className:r0,children:D("div",{className:de,children:new Array(28).fill(void 0).map((re,se)=>D(ec,{loading:!0,className:Ii.card},se))})}):Ce("div",{style:{minHeight:"100%"},className:r0,children:[D("div",{ref:M,className:de,children:p.map((re,se)=>{const ue=se===B;return D(ec,{className:F(Ii.card,{[Ii.cardActive]:ue}),item:re,active:ue,onRemoveCurrent:K,onMoveToFirst:ee,emitter:W[se]},re.uniqId)})}),ie]})}),AG={grid:Yn`
    /* card=360 col-gap=16  */
    width: ${360*2+20}px;
    margin: 0 auto;
  `};function LG(){const{useNarrowMode:e}=kn(),{modalFeedVisible:t,modalConfigVisible:n}=vU(),r=m.useRef(null),o=m.useRef(null),i=it((...d)=>{var f;return (f=o.current)==null?void 0:f.refresh(...d)}),a=it(()=>{var d;return (d=r.current)==null?void 0:d.scroll()}),[s,l]=m.useState(!1),[c,u]=m.useState(null);return Ce("section",{"data-area":"推荐",children:[D(ux,{ref:r,refreshing:s,onRefresh:i,leftSlot:c}),D(Ux,{ref:o,css:[e&&AG.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:a,setRefreshing:l,setExtraInfo:u})]})}const DG=Xi.extend("components:SectionRecommend");function zG(){const e=m.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=Fi(),n=$s(),{refreshing:r,items:o,refresh:i,error:a,swr:s}=Vx({tab:n,debug:DG,fetcher:$G,recreateService:!1});su(i);const l=!o.length||a||r&&!s;return Ce("section",{"data-area":"推荐",children:[D(ux,{refreshing:r,onRefresh:i}),D("div",{className:F(fv,VK,t?$x:xx),style:{marginBottom:t?30:0},children:l?e.map(c=>D(ec,{},c)):o.map(c=>D(ec,{item:c},c.uniqId))})]})}Vo.extend(N8);(function(){var t,n;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?")){window.stop(),window.top===window?(t=window.opener)==null||t.postMessage(location.href,"https://www.bilibili.com"):(n=window.top)==null||n.postMessage(location.href,"https://www.bilibili.com");return}if(location.pathname==="/"||location.pathname==="/index.html")return jG()})();async function jG(){return Pa(".adblock-tips"),Ia("html.gray",e=>e.classList.remove("gray")),bt.pureRecommend?HG():BG()}async function BG(){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(Fi()&&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 Xo(200);}if(!n){console.error(`[${rn}]: init fail`);return}const r=document.createElement("section");n(r),iu(r).render(D(_S,{children:D(zG,{})})),Fi()&&Pa(".bili-feed4 .header-channel");}async function HG(){var o,i;Uh&&await Xo(500),Fi()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),Pa(".bili-feed4 .header-channel"),Ia(".palette-button-wrap .storage-box",a=>a.classList.remove("hidden")),Ia(".palette-button-wrap .top-btn-wrap .top-btn",a=>a.classList.add("visible")),Ia(".palette-button-wrap",a=>{a.style.position="absolute";})):((i=document.querySelector(".bili-layout"))==null||i.remove(),Pa(".bili-footer"),Pa(".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(Fi()?"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),iu(n).render(D(_S,{children:D(LG,{})}));}

})(React, ReactDOM);